Questions tagged [joomla-3.x]
For question regarding Joomla 3.x of the Content Management System. This includes versions 3.0 up to 3.8.
3,134
questions
1
vote
1
answer
359
views
From outside of a component how to change a parameter
In a system plugin, I am using the onAfterRoute event to change a single parameter from a 3rd party component before being loaded.
public function onAfterRoute()
{
if ('com_abc' == JFactory::...
0
votes
1
answer
167
views
Jquery script loaded on every page
Every page on site has this script
Is there any role, seems like of tinymce editor
how to disable same, any plugin to disable, as i do not use tinymce on front end of site
<script type="text/...
1
vote
1
answer
23
views
Change first item in Breadcrumb to custom static link
I've got this bit of code that works well for my Joomla setup
However, due to the way my main menu is set up, the first item in every page we have breadcrumbs enabled is always "Products" ...
0
votes
0
answers
26
views
Use Text Box Value In Query Of Separate Text Box
I have a field called Manager_ID and I want a drop down list of employees to be populated with the results of the query:
SELECT * FROM employees WHERE managerID = Manager_ID
How do I capture the ...
0
votes
1
answer
41
views
I have view of categories showing one category after other one, I want to show it but each one in tab can You help?
ok I had view like this
<?php
foreach ($categories as $category)
{
if (!$config->show_empty_cat && !count($category->events))
{
continue ;
}
?>
<div ...
1
vote
2
answers
93
views
How to count aggregate data from RSForm submission values with Joomla's query building methods?
user
SubmissionId
FormId
FieldName
FieldValue
bob
2
16
state
mystate1
bob
2
16
qda
myqad1
bob
2
16
city
mycity1
rob
3
16
state
mystate2
rob
3
16
qda
myqad1
rob
3
16
city
mycity1
jac
4
16
state
...
1
vote
2
answers
485
views
UPDATE query to add 1 to multiple columns
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.
What I would like, is for me to write in the names of ...
1
vote
1
answer
42
views
Simple Joomla plugin not working on frontend
I have a simple Joomla 3 plugin that works fine on backend for resizing images when uploading from multimedia manager:
<?php
defined('_JEXEC') or die('Restricted access');
class ...
0
votes
1
answer
146
views
Only allow user to assign categories and articles to his own usergroup
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/...
1
vote
1
answer
61
views
Getlistquery Joomla conditional values
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.
...
1
vote
1
answer
170
views
Joomla BuildRule adds language code at the back of setPath
I'm having a problem with building the rule for a particular URL. Here's what I have in my system plugin:
//...
function onAfterInitialise() {
require_once '/path/to/myhelper.php';
$router = $...
0
votes
2
answers
38
views
How to set error in component code for FormController
I'm creating a custom J3.x component.
I'm manually adding my own error notices where needed via
JFactory::getApplication()->enqueueMessage()
However, when a record is not saved by my component, ...
1
vote
1
answer
66
views
how to override mvc component in joomla 3?
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.
i have been trying to create a ...
0
votes
1
answer
179
views
Call a function using AJAX from a Joomla-View to retrieve data from the DB
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.
In fact the DB access and the building ...
1
vote
1
answer
51
views
Joomla admin session ends prematurely
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 ...
0
votes
2
answers
159
views
Article content to load from mysql based on ID in url
On my old website built in PHP, I had a link on a page which picked an ID based on what line was clicked.
<td width=124><a href="tp/package.php?ID=<?php echo $row[0];?>">...
1
vote
1
answer
100
views
Virtuemart 3.4 - products on manufacturer page
Virtuemart 3.4.2, joomla 3.8
i try copy code from category template, but cant fix this errors:
at /my_template/html/com_virtuemart/manufacturer/details.php
NOW I HAVE Two ERRORS:
Call to a member ...
0
votes
2
answers
39
views
Is it possible to change the parent of a menu item at certain widths?
I have a horizontal main menu in which the last item is a dropdown containing further items.
Is it possible, as the screen width is reduced, to move items from the horizontal menu into the dropdown?
...
2
votes
0
answers
34
views
Unit tests for Joomla 3 plugin
I have written some moderately complicated software for my Joomla site and want to improve on my code base in coming releases.
To this end I am writing some unit tests however it's hard to run the ...
0
votes
1
answer
45
views
How to show k2 article previous date only and upcoming only
I am creating k2 articles as events. There will be:
Upcoming events
Old events.
I am not able to show old events for current date. How to filter both types of events (Upcoming/Old) with ...
1
vote
1
answer
29
views
admin edit.php saves but doesn't retrieve data from "params" database field
I have a config.xml with some parameters for my component.
I need to define these parameters for each individual item.
So in admin/models/forms/myview.xml, I've written my fields:
<fields name=&...
0
votes
1
answer
114
views
How to redirect all exceptions/error to a 404 page or back to home page
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:
You have an error in your SQL syntax; ...
0
votes
2
answers
70
views
Multple urls for a product with multiply categories
I have a cctv camera shop and
I'm using the last version of joomla and virtuemart.
I have a "bullet hd camera" the categories are:
camera --> hd-camera --> bullet-hd-camera
bullet-hd-camera is ...
2
votes
2
answers
62
views
Joomla - Page Builder - With Publish Workflow
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 ...
1
vote
3
answers
97
views
How to inject a custom message in joomla update without touching the core code
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 ...
0
votes
1
answer
43
views
How to show all articles in blog without tags etc
I created my own design for blog layout, but after I understand, that blog don't display all articles - only intro of lead. Maybe I somehow can edit code and display all articles?
Sorry for my English....
1
vote
2
answers
141
views
Joomla 3.10.x SQL Injection XSS Vulnerability
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.
The setup includes a bunch of ...
0
votes
1
answer
34
views
CSS position: absolute doesn't display correctly on Amazon Fire tablet
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 ...
0
votes
2
answers
66
views
Page url is damaged when changing language back to the default language
My site is running on Joomla3.
When I load my page for first time everything is fine (the default language is Spanish) -- even if I navigate in menus.
However, when I click the English flag and I ...
0
votes
1
answer
43
views
EasyBlog Component missing image to URL to Facebook
I have problem with sharing URL to Facebook is missing image with Easyblog.
I have upload cover image and there are pictures in article also.
I check with Sharing Debugger and I can see the image.
og:...
1
vote
1
answer
68
views
When a user logs in it always goes to edit-your-profile page
Joomla version: Joomla! 3.10.1 Stable
PHP: 7.4
This joomla website doesn't have many plugins. I only have OneSocial plugin.
Anyways, I am willing to try any suggestions at this point, I have tried to ...
3
votes
2
answers
296
views
Edit Contacts on Front End
Joomla 3.9.14
Is it possible to edit a list of contacts from the front end?
I need to display a list of contacts from a certain category, and allow administrators to edit their details.
Currently ...
2
votes
1
answer
25
views
Uninstalling packages with shared component
I have three related components - call them comA comB and comC
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 ...
0
votes
3
answers
1k
views
How to run delete sql query with multiple values in Joomla?
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.
In controller.php page:
function deleteFiles()
{
...
1
vote
1
answer
40
views
How to validate a user name in Joomla registration forms so that it is not used for spamming?
The problem
I have had a problem with a spammer registering fake users to send spam around.
The method used is to set the user name to something like "Yesterday I published this awesome video ...
1
vote
4
answers
1k
views
Login redirect to redirect to previous page
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.
I have restricted access pages, thus ...
0
votes
1
answer
222
views
Using a custom field with different names
I want to use a flexible field name for a field across different forms thru my extension.
My custom example field looks like this:
defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\...
0
votes
1
answer
45
views
Virtuemart Call for price form submission allows user to got logged in to the frontend of the website
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?
0
votes
1
answer
27
views
Home flag in content languages is set to NO and cannot be set back to YES
I am trying to build a multilingual site with Joomla 3.9. Due to unknown reason, one of the "Home" flag in content languages is set to "NO" and I can't set it back to "YES&...
0
votes
1
answer
104
views
JRoute does not show the URL it is supposed to
I have the following problem:
I set a URL with JRoute like this:
JRoute::_('index.php?option=com_gallery&view=gallery');
This gives me example.site/gallery, which is correct, however, if I ...
1
vote
1
answer
23
views
How to know the Joomla article ID for customization
I have a demo installation of J 3.10.9 with protostar template (https://joomla4.extrowebsite.com/).
The menu item "Home" -> blog category - has N articles.
The article "Welcome to ...
1
vote
0
answers
32
views
Pre-filter set without any effect in List Fabrik Joomla
I have a List "Document Manager" 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 ...
0
votes
1
answer
2k
views
How to change the default page in the Language Switcher?
I am creating a multi-language page in Joomla with 5 different languages.
Everything is ok except for the language switcher.
My home page is set for English, when I try to change the language from ...
1
vote
3
answers
344
views
How to iterate over the "params" of an item ZOO Joomla?
The item of my interest is in the __zoo_item table. My query:
$query
->select($db->quoteName(array('params')))
->from($db->quoteName('#__zoo_item'));
$db->setQuery($query);
$...
0
votes
2
answers
602
views
How to remove category from URL?
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. ...
0
votes
0
answers
28
views
How to check in my plugin whether the user has bought a product in the j2store or not
I am going to write a plugin for J2store to check if the current user has purchased the product successfully or not.
I do not know how to use the J2store API to check if the user has purchased the ...
1
vote
1
answer
125
views
Contact Form Non Unique id #jform_id
Joomla 3.9.14
When I open a contact to edit their details and look in the browser console I can see the following notice;
[DOM] Found 2 elements with non-unique id #jform_id:
(More info: https://...
1
vote
2
answers
208
views
Joomla plugin - replace placeholders with dynamic content in article text
Based on the this tutorial https://docs.joomla.org/J3.x:Creating_a_content_plugin, I managed to write my first content plugin with this helper.php code:
$regex_cat = '/{reillorama:(.*?)}/i';
...
0
votes
3
answers
436
views
Joomla 3 call model function inside controller
I want to call a function from model inside controller
my model : httpdocs/components/com_storemanager/models/searchmanager.php
<?php
/**
* @version CVS: 1.0.2
* @package ...
0
votes
0
answers
26
views
Joomla all versions not worked 404 pages on Litespeed server
i see front page without component, → 404 error not shows but i have its in my template..
error.php:
error->getCode(); ?> - title; ?>
i found very much articles, whats is maybe litespeed not support ...