New answers tagged

0

You could add a script (or CSS) to the doc head using the HTML Helper use Joomla\CMS\HTML\HTMLHelper; HTMLHelper::_('script', 'path/to/your/js/script.js', ['version' => 'auto', 'relative' => false] ); 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 ...


3

Start with: $assoc = $db->loadAssoc(); https://docs.joomla.org/Selecting_data_using_JDatabase#loadAssoc.28.29 This will provide a flat, associative result set array: $assoc = [ 'AIG' => '88,32', 'ALLIANZ' => '86,96', 'LLOYDS' => '118,11', ]; Then prepare the results for sorting by creating a new column as the first element that ...


0

I found it similar ask. I solved it. Helpful answer nevermind I solved the problem


1

The "question mark data" = token that prevents caching issues after Joomla updates. 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. If you really don't want that, you could change the 'version' => '...


2

To answer your newer question, 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? 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....


1

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: Note: I just put the revelant part of what your component ...


3

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. The most likely issues you will encounter moving from PHP 5 to PHP 7.x will be whether all the required PHP extensions are ...


0

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. You also mention creating a database via cPanel which unless you have some reason for having it external to ...


0

Use this: $this->input->files->get('file', [], 'array'); Note that returned data is formatted differently to allow iterating over files: array(2) { [0]=> array(5) { ["name"]=> string(16) "joomla_black.png" ["type"]=> string(9) "image/png" ["tmp_name"]=> string(...


2

It's how Repeatable field stores its data. Pick a field to iterate over and use its key to access value of another field: foreach ($carousel_images['carouselimage'] as $key => $image) { // do something clever for each of the images '<img src="' . $image .'"><p>' . $carousel_images['carouselcaption'][$key] . '</p>'; } ...


1

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 "block". It's not an actual fix, but a workaround that works pretty well.


2

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. In some cases you could prefer to use non-system methods in your System Plugin (like what you described). One of my custom System Plugins does some stuff at the method onAfterRoute(). I also needed to change ...


0

I could solved the problem. but I dont know how to correct do it <p><iframe width="560" height="315" src="https://www.youtube.com/embed/IDSJ0iMLq_U" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" ...


3

Q1 - In J4 I found that this simple function gets what you might want: /** * Get the version of the component * @return version element of manifest */ public static function getComponentVersion() { $componentXML = Installer::parseXMLInstallFile(Path::clean(JPATH_ADMINISTRATOR . '/components/com_mycomponent/mycomponent.xml')); return $componentXML[...


1

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. I would expect that you ...


1

Your screenshot mentions both Facebook as Google Tag Manager. Both assets to do not come with Joomla core. So there must be some kind of 3th party extension that adds this. Google Tag Manager https://www.googletagmanager.com/gtag/js?id=UA-110217943-1&l=dataLayer&cx=c This all contains an id=UA-110217943-1 which looks a lot like a Google Universal ...


0

It looks like you found the pivot pages on JSE -- well done. Also, you coding attempt is very close -- you just need to create two-column rows for PlotALot. You didn't supply me with realistic database data, so I needed to mock up my own minimal sample data set. INSERT INTO `r4l7i_rsform_submission_values` (`SubmissionValueId`, `FormId`, `SubmissionId`, `...


0

To find out which plugins or other parts of your website load the JavaScript, you could install that website on your local computer and use an IDE (like PHPStorm, Netbeans, Visual Studio, etc) to analyse it. You can run a Joomla website locally using an "AMP" stack (like LAMP, MAMP, WAMP, etc). With Akeeba Backup you can create a backup that you ...


1

I can solve it. JCH Optimize solved the problem almost. You can add Js what you want to remove if unused. you should do: Downloads plugin JCH Optimize. I use free version get in setting plugin 3.Basic Features ---> Remove Unused Javascript ---> add item save and clear chache I was wrong before. It works only if you have script on you server or ...


2

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. Select the Tab Create Override and then going to com_users at the bottom of the Components list, expanding the selection and ...


Top 50 recent answers are included