New answers tagged

0

If you Joomla work and need to access the database use Joomla functional to connect database $db = JFactory::getDbo();


1

From this sample data: INSERT INTO `o2pe0_rsform_submission_values` (`SubmissionValueId`, `FormId`, `SubmissionId`, `FieldName`, `FieldValue`) VALUES (2124732, 23, 47529, 'SHELTER', 'Bellville'), (2124728, 23, 47529, 'Amount', '500'), (2124731, 23, 47529, 'ClientID', 'G993HJOS'), (2124729, 23, 47529, 'Monthpayment', '2020-07-09'), (2124743, 23, 47530, '...


2

If you know the ID, you can use JModuleHelper::getModuleById(). https://api.joomla.org/cms-3/classes/Joomla.CMS.Helper.ModuleHelper.html#method_getModuleById


1

As @Sharky said, it seems like your SQLSRV extension isn't enabled. You can manually activate it by changing your php.ini file, enabling this extension and downloading the drivers. PHP Documentation says: The SQLSRV extension is enabled by adding appropriate DLL file to your PHP extension directory and the corresponding entry to the php.ini file. The SQLSRV ...


0

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.


2

Here are the official Joomla! Docs for anyone else looking in the future: https://docs.joomla.org/How_do_I_use_Gmail_as_my_mail_server%3F How do I use Gmail as my mail server? If you have a working Gmail account you can use Gmail as your mail server by setting it in the global configuration. On the server tab set the following: Mailer: SMTP SMTP Host: smtp....


1

You need to add your own router.php and build your own views in the build + parse methods in it. I would create a router.php file with this information: https://docs.joomla.org/J3.x:Supporting_SEF_URLs_in_your_component#A_more_complex_Example PS: I'd recommend to use name spacing to be compatible with future Joomla versions. It's possible since Joomla 3.8 + ...


2

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: jQuery(function ($){ $("#jform_password2-lbl").parent().hide(); $("#jform_password1").focusout(function () { $("#jform_password2").val($(this).val()); }); $("#...


1

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: https://extensions.joomla.org/https://extensions.joomla.org/extension/virtuemart/ Last update was June 18, 2020. Version: 3.8.4


1

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. <version>Updated_version_of_your_component</version> I had this: <name>COM_GALLERY</...


0

I have exactly the same problem and have been ignoring it and periodically I see if I can find a way to solve it. 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 ...


2

joomla.getOptions is a JS function available in Joomla 3.7+, hence the reason you have this error. You have two options: Source an older version of Advanced Module Manager which is compatible with Joomla 3.6.X. This option is not advised due to multiple security vulnerabilities in your version of Joomla. Upgrade to the latest Joomla 3.9.X, which will solve ...


2

You'd better not edit ("core hack") Joomla's core files because that's a recipe for disaster. The async attribute is available if you use the HTMLHelper to include your CSS file. See Joomla 3.9.19 /libraries/src/HTML/HTMLHelper.php line 687 for how to write a <link> element to load a CSS file and it's documentation. // Namespace to include ...


1

If you want to add attributes to all scripts, use a system plugin with onBeforeCompileHead event. defined('_JEXEC') or die; use Joomla\CMS\Plugin\CMSPlugin; class PlgSystemExample extends CMSPlugin { protected $app; public function onBeforeCompileHead() { foreach ($this->app->getDocument()->_scripts as &$script) { ...


1

The solution was the change the Login Redirect Type to an Internal URL, and ensure it was non-sef. This is in the documentation https://docs.joomla.org/How_do_you_redirect_users_after_a_successful_login%3F Due to a security fix on Joomla 3.4.6, the redirect url must be an internal url, it must start with index.php? and be a non-sef url. Before Joomla 3.4.6, ...


2

It's important to keep your software up-to-date.Your Joomla 3.6.4 has been released in October 2016. The most recent Joomla version is Joomla 3.9.19 (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 ...


3

json_encode() 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). If you tried to NOT json_encode() the iterable params data, then your code would fail because the ...


-1

Save $myParams in array format, not json, i.e. do not json_encode($myParams);


1

Zoo is another alternative. You can use Chronoforms and ChronoConnect. It isn't easy to setup. Chronoforms can't natively do "Join" on databases like Fabrik can. Here is a link to an example of Chronoforms & Connect together. https://blog.grimeymedia.com/chronoforms-chronoconnectivity-5-example/


0

I think I understand the 'misunderstandnis' and I will try to make it more clear. 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 I have ...


3

For starters, perhaps just an oversight on bringing your code to the JSE platform here, but... $menuTable = JTable::getInstance('Menu', 'JTable', array()); You are passing in an empty array. $newMenu = new stdClass(); $newMenu->title="blah"; $newMenu->type="component"; etc Then you can do: $menuTable = JTable::getInstance('...


1

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? 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 ...


2

You retrieve cookies in Joomla 3 by: JFactory::getApplication()->input->cookie->get('cookiename'); The cookie set in your print_r($_COOKIE) is the session cookie, this is usually referenced by: $session = JFactory::getSession(); echo $session->getId(); Other cookies will be set depending if you the user is logged in, and a multitude of others ...


0

Try this: Global Configuration > Search Engine Friendly URLs: OFF Do the "broken" pages now work? Content > Articles > Options > "Integration" tab "URL Routing" - is this set to Legacy or Modern? If "Modern" is set, what is "Remove IDs from URLs" set to?


0

I haven't verified what's below, but I think it should work. 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. ...


Top 50 recent answers are included