15,005 questions
0
votes
1
answer
117
views
How to handle incompatible versions of PHP interfaces?
I have a PHP application which uses the \Psr\Log\LoggerInterface interface and classes that implement that interface. My application can be configured to authenticate users against a Joomla ...
1
vote
0
answers
63
views
Joomla 4 does not find the Provider class when installing a new component
I recently started using Joomla 4 and continue having problems with the Provider.
I have the following file and folder structure:
This is the contents of my PaymentsProvider.php:
<?php
namespace ...
0
votes
1
answer
72
views
Issue with Rotating Image in Joomla 5 (SP Page Builder v5 + Custom CSS/HTML)
I'm working with Joomla 5 using SP Page Builder version 5, and I've embedded custom HTML/CSS via CodePen to prototype a visual effect.
CodePen 1 (Image rotates but doesn't stay upright):
/*Slide 1*/
....
0
votes
1
answer
57
views
No result using latest Joomla 5 syntax
I wrote the following code to check if there is already a record with same user_id and group_id in the data base:
$db = Factory::getContainer()->get('db');
$query = $db->getQuery(true);
...
0
votes
1
answer
159
views
How to enforce X-Joomla-Token authentication in custom Joomla 5 Web Services plugins (without using 'public' => true)
I’m developing a custom Joomla 5 Web Services plugin (under plugins/webservices/helloworldapi) using the onBeforeApiRoute event to expose a route like this:
$route = new \Joomla\Router\Route(
['GET']...
0
votes
0
answers
26
views
Joomla 3.9 updating Session variables logs off user
We want to add an API call when we load a page to get an external value, which will be added to our session variables. However, after we do that, logged-in users find that they have been logged out. ...
0
votes
0
answers
69
views
Custom field type in Joomla 5
I'm trying to create a plugin that adds a file type field with support for dropzone and other functions to user fields.
Plugin structure:
/plugins/fields/upload/
/fields
upload.php
/...
0
votes
1
answer
42
views
How I can push data in some tables Joomla ignore errors?
I have an array with data in it.
$data[1] = 1
$data[2] = 2
$data[3] = 3
How I can push this data in ~ five tables of Joomla, which have only part of columns (1,2; 2,3; 3,1 etc)?
The Code I want to ...
0
votes
0
answers
23
views
Increment and decrement button for j2store product using joomla 5
how can i make my j2store product increment and decrement button always visible without need user to bring their mouse close to the edit quantity button.
this is the sample code for one of the product:...
2
votes
2
answers
111
views
How to redirect any URL containing 'wp' at any level
I have a Joomla website but keep getting hackers trying to access it with various 'wp' URLs, e.g. /wp-json/[plus sub-folders] or /wp-content/etc etc
I would like to use .htaccess something like this:
...
2
votes
0
answers
43
views
Loaded image container occupies the entire width of the page regardless of image size
I am using TinyMCE in Joomla 5. When I load an image from Joomla Media, the image container (the area within the blue lines) covers the entire width of the page, regardless of the image size. Attempts ...
0
votes
1
answer
35
views
How to insert link content into joomla article
I am trying to insert some content into a Joomla article. The content is a list produced by Acymailing. I am able to inset a link to the content, however, what I really want is for the list itself to ...
0
votes
1
answer
64
views
How do I stop Joomla 5 messing with my Javascript?
I want to use the following Javascript to fetch a video URL. It works fine in a raw HTML page, but within an article in Joomla 5 the URL always has the local URL prepended.
<script>
...
0
votes
1
answer
69
views
Is there any way to add link in order details page at shipment section?
Potential backward compatibility issues in Joomla 4
https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_4#Plugins_.28Events.29
im trying to develop a plugin in php Joomla ...
0
votes
0
answers
37
views
RSForm Add tick box which adds 3% to total
I have created a donation form and would like to add a tick box which adds 3% of the donated amount to the total to cover card fees (I want to make it optional for the donor) - I tried the answer ...