Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
61 views

Joomla. How to disallow Joomla download OpenSearch xml-file?

We can enable OpenSearch in Joomla search-component to insert links in <head> section like this: <link href="http://site.name/component/search/?id=45&amp;Itemid=104&amp;format=...
2
votes
1answer
17 views

Footer columns render different in each page

Here is the website. The footer should have 4 columns like this page, but in other pages it renders with 2 columns (here) like when page is rendered in smaller screen. Why is that?
1
vote
2answers
37 views

How to re-write sql for joomla JDatabase

I am new to custom Joomla coding so excuse me for this, I want to execute the following statement: "SELECT MAX(CASE WHEN v.FieldName = 'Team_Name' THEN v.FieldValue END) 'Team_Name' , MAX(...
1
vote
2answers
160 views

Remove menu parent from url

The Joomla menu system includes the menu's parent name in the URL structure for sub-menu items as follows: https://www.mysite.com/parent/page I'd like to remove the parent as follows: https://www....
1
vote
0answers
35 views

Add Install from Web tab in the Extension manager gives console error

Add Install from Web tab in the Extension manager gives console error Uncaught TypeError: Cannot set property 'value' of undefined When clicking on "Add Install from Web tab" button getting a ...
0
votes
0answers
86 views

getuserstatefromrequest is deprecated - what should I use instead

I have been creating a simple component and was using getuserstatefromrequest to handle pagination thus: $limit = $app->getUserStateFromRequest('global.list.limit', 'limit', $itemsperpage); $this-&...
0
votes
0answers
116 views

Cannot read property 'appendChild' of null when embedding JS game

Update 2: Ok, so I've realised that the 'css' was actually 'scss', after compiling it down everything is working as expected. Update: I have managed to get the cards to load, by moving the js file ...
1
vote
1answer
48 views

two-step authentication

To access the administration of the site ( https://philosciences.com/administrator/), I have a two-step authentication procedure set up several years ago. A first authentication of the type: The site ...
2
votes
1answer
25 views

3.5.1 to 3.8.7?

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 ...
1
vote
1answer
35 views

Send mail on execute

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 ...
0
votes
1answer
30 views

Content displayed with [col=200]

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 [col=200]. How to remove [col=200] ...
0
votes
1answer
20 views

Clicking any/all articles in search results goes to 404 page

I have something strange going occurring on one of my sites and have no idea how to resolve it. When searching for an article, clicking any article link in the search results leads to a 404 page for ...
2
votes
0answers
37 views

Why calling addIncludePath from self has different results than from JModelLegacy

I'm trying to get an instance of a com_menus model from within my component. The following code works: JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_menus/models/'); $model = ...
0
votes
0answers
20 views

Virtuemart plgVmOnUserStore and plgVmAfterUserStore not being triggered

I currently just have defined( '_JEXEC' ) or die( 'Restricted access' ); if (!class_exists('vmCustomPlugin')) require(JPATH_VM_PLUGINS . DS . 'vmcustomplugin.php'); var_dump("the plugin is loading"...
0
votes
1answer
40 views

Hikashop, extract text after read more

I want to have the introtext and then the rest of the text in Hikashop product details page. So in the product description I insert the <hr id="system-readmore" /> to separate the introtext and ...
3
votes
1answer
38 views

Component Development PHP Version Check

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 ...
1
vote
0answers
30 views

Joomla Custom-Component Select Field with Editor [closed]

I'm trying to make a dropdown box from my table (#__projectinfo) where I can choose, for example, an article and show in an editor ready-to-use, update or save. The objective is to choose an email ...
0
votes
1answer
31 views

Including Results from API Call in Joomla! Search Results

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! ...
3
votes
2answers
152 views

Check if INSERT query was successful or failed because of a duplicate UNIQUE KEY

I have a db-table called league where the mail column is the unique id: |name |mail | |Bryan|bryan@hotmail.com | I have a frontend where users can sign up and then I have this for ...
0
votes
0answers
51 views

How to make Tag Field from joomla in a Custom component

I have this custom component and I just want to replicate the tag field from joomla but in my database #__projectinfo still able to create and choose a tag from the field, but I dont know how to do it,...
0
votes
2answers
86 views

Rows with same id in same div

I have a db-table called vm_kupon. It looks a little like this: |id |uid |bet | |1 |20 |1 | |2 |20 |2 | |1 |21 |X | |2 |21 |1 | |1 |22 |X | |2 |22 |X | I ...
0
votes
1answer
77 views

product url problem after updating virtuemart

on vm Configuration under SEO tab i'v checked "Use full category tree for product links" so my products detail page default routing was like this: example.com/cat1/subcat1/subcat2/product1-detail ...
1
vote
1answer
52 views

Query gives a single value when two columns in SELECT clause

I do have a database connection earlier in the script. $db = JFactory::getDbo(); Here's the query code: $albumartistidquery = $db->getQuery(true); $albumartistidquery->select($db->...
1
vote
1answer
46 views

Don't add empty fields to database after submission?

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. How can I not add the ...
1
vote
1answer
76 views

What is the correct way to add Javascript as of Joomla 3.x?

I'd like to know the 'currently' correct way to add JavaScript to the head of a page. The documentation suggests using $document->addStyleSheet($url);, but the API documentation says that this ...
2
votes
2answers
114 views

Get contact details from article override

I need to display the contact information of a contact on an article override (addresse, phone number...). I can get the user with : $user = JFactory::getUser(); but how can I get a user contact ...
0
votes
1answer
199 views

Assign user to a specific group based on custom field selected

I'd like to assign a user to a custom group instead a some standard Joomla group, based on a dropdown choice. I've created a user group named "students". Then I added a new custom custom field for ...
0
votes
0answers
366 views

Joomla getting Jquery not defined after upgrading to (3.8.7)

I am getting uncertain errors in console afer upgrading Joomla to 3.8.7. I am getting (Uncaught ReferenceError: jQuery is not defined). Please have a look at following screenshot. I also tried adding ...
3
votes
1answer
82 views

What is the prefered method for sharing code and SQL queries in joomla 3.9+?

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 ...
0
votes
1answer
26 views

How can I prevent Joomla from removing octothorpe/pound from URL post login?

For example, I would like to send the following links in an email to users: https://www.example.com/#foo https://www.example.com/deep-link/#foo When clicked on, I get the following results: https://...
0
votes
2answers
38 views

Template without modules

Is there any template whith no module positions, just content position. I need it to make Iframe link for the component on my site.
1
vote
2answers
33 views

How change default search setting from “all words” to “any words”?

By default, in the Search module of Joomla, "all words" is selected by default. I want "any words" to be selected by default. Does anyone know where I have to make the changes in files and the ...
0
votes
1answer
70 views

where is frontend user parameter in Joomla 3.8

I want to hide some fields from Joomla front-end Profile editor (Editor, Timezone, Front-end Language). There was a post on this exchange in 2014 that describes the procedure: Users >> User Manager >...
1
vote
1answer
24 views

How to include the Smart Search box in my home page?

Currently I am having the normal search box in my home page with, <jdoc:include type="modules" name="search" style="xhtml" /> I want to replace it with Smart Search plugin as I need to change ...
0
votes
1answer
33 views

Bootstrap forms and pagination getting messed up

In my backend, all forms look like this: Instead of how they used to look:
1
vote
2answers
89 views

Update multiple columns with plus 1

I have a website for my footballteam. I have some statistics and so on in there, fx how many games each player has played and so on. What I would like, is for me to write in the names of every player ...
1
vote
1answer
43 views

Cannot get variable to update in IF/Else statement based on page class

I am trying to dynamically update a variable in a link depending on the page class, but I cannot seem to get the variable ebox to update in the if/else statement below. At present the variable is ...
5
votes
1answer
309 views

SQL Injections using Jfactory::getDBO and setQuery()

$db = JFactory::getDBO(); $searchP = JRequest::getVar('key'); $sql = "SELECT name FROM people LIKE " . "'%" . $searchP . "%'"; $db->setQuery($sql); $fileR = $db->loadObjectList(); Will ...
2
votes
1answer
32 views

Create a local version of my website [duplicate]

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 ...
1
vote
1answer
39 views

Dynamically change ID of a href based on page class

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 ...
2
votes
2answers
51 views

Custom form field types unavailable in plugin backend when plugin disabled

I've created a plugin and added a couple of custom fields to its backend. For that I followed the indications from the Joomla docs. I extended for example JFormFieldList to get a dropdown list of ...
2
votes
2answers
45 views

Restrict unregistered users from accessing the whole joomla site

How to Restrict unregistered users from accessing any of the Joomla website?
0
votes
1answer
97 views

Trying to embed custom YouTube iFrame into Joomla module

I have some custom code which randomises a joomla video, this works fine outside of Joomla as can be seen at this fiddle, however when the code is placed into a Joomla custom module and published the ...
1
vote
2answers
250 views

Calling Joomla!'s Default 404 Page

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, ...
0
votes
0answers
85 views

How to integrate Joomla Oauth2 SSO

I want to integrate Oauth2 SSO.Can any body have idea how to implement oauth2 SSO. I want to get access to third party site to access but for this they require SSO integration in Joomla. Can anybody ...
1
vote
1answer
29 views

how can i find which source file defines a specific class

Does anyone have any tips on how to quickly find the file that would contain the class definition of class in Joomla? I often find myself wanting to look up the definition of an object to be sure ...
0
votes
1answer
27 views

How to trouble-shoot alert error message with no information

I am receiving the following error on a site component list view "Error An error has occurred." That's it. Nothing said of what caused it, where the error occurred or anything else. By searching ...
0
votes
1answer
102 views

I've missed something with how category layout override is working

I'm working on a students directory with the following structures: Directory (parent category) |_ 2017-2016 (child category) |_ 2016-2015 (child category) |_ 2015-2014 (child category) … In each ...
2
votes
2answers
433 views

Problems with Custom form field select list

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. There are two ...
0
votes
0answers
177 views

Custom fields - JS in template override

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