As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [plugin]

A plugin is a kind of Joomla! extension. Plugins provide functions which are associated with trigger events.

57 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
0 answers
68 views

Subform default values escaped when installing/discovering plugin first time

I made a small plugin, which uses a repeatable subform param element. It doesn't really matter what the plugin does: <config> <fields name="params"> <fieldset name=...
maidan's user avatar
  • 359
2 votes
0 answers
44 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 ...
Huw Evans's user avatar
  • 351
2 votes
1 answer
158 views

Scheduled Tasks Infrastructure in Joomla 4.1

Is there documentation for the new Scheduled Tasks Infrastructure in Joomla 4.1 (https://github.com/joomla/joomla-cms/pull/35143)? I just created a test task for setting the site offline. I scheduled ...
agi's user avatar
  • 171
2 votes
0 answers
128 views

How to create custom filter type option for a custom field to extend the custom fields in Joomla?

I'm trying to figure out how to add/extend the "Filter" options for a Custom Field. I first started looking to see if I could figure out where I could add my own filter to the list of ...
seamonkey's user avatar
2 votes
0 answers
184 views

__PHP_Incomplete_Class when trying to access an object stored in session

I work on implementing single sign on with joomla and simplesamlphp. I try to use the simpleamlphp api in the context of a joomla plugin in the onAfterInitialise event. To that end, the plugin in ...
user615274's user avatar
2 votes
0 answers
155 views

FieldsPlugin onCustomFieldsPrepareDom $field on save different on front and backend

I currently develop a FieldPlugin for myself. I noticed some things and don't understand them fully right now. My plugin works in the backend perfect, but raises errors on the frontend, so I did some ...
svanschu's user avatar
  • 133
1 vote
0 answers
14 views

Joomla Logman Notify modify email message

A question about the joomla plugin Logman Notify. (https://www.joomlatools.com/extensions/logman/documentation/plugins/notify-plugin) The Notify plugin can send activity notifications to a selected ...
TheoS's user avatar
  • 11
1 vote
1 answer
13 views

Super slow editing mask because repeatable custom field is in subform and calls API many times

I have some options to configure a plugin of mine. These options contain one subform field, that can be repeated. The purpose of the field is to match names of one type to ones of another type. The ...
maidan's user avatar
  • 359
1 vote
0 answers
15 views

Sketch / Drawing extension for Joomla!

I'm looking for a plugin for Joomla! where guests can leave paintings. Just something simple like Microsoft Paint.
user avatar
1 vote
1 answer
78 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 ...
Diego Moreno's user avatar
1 vote
0 answers
31 views

Custom Canonical plugin throws "404 - page not found" error when enabled for Tags

I use Joomla Custom Canonical plugin for creating the canonical links. It works well, except for the tags: If I switch on the canonical creation for tags and then some of the tags, will drop a 404 ...
CodeGuru's user avatar
1 vote
1 answer
62 views

How to add GET parameter to CSS filename in plugin JCH Optimize (Joomla)

I cannot find an answer to for several weeks. Perhaps my experience in development is not so great :) One site uses the JCH Optimize plugin and I noticed that after clearing the old memory (cache), ...
Arsen's user avatar
  • 111
1 vote
0 answers
88 views

Loading own Composer Stack

I am working on Joomla 3.9.24 I want to globally load my own composer Stack which resides in JPATH_ROOT/vendor I tried it with a plugin that just includes the autoload and a file for starting some ...
Uther Pendragon's user avatar
1 vote
0 answers
56 views

Can you add a different mail option to Joomla e.g with a plugin?

I'm wanting to create a plugin to send e-mails using API methods (e.g. mailgun API or others) Is there a recommended way to do this? Can anyone point me at any good practice / hints & tips ? I'm ...
Kiran Cheema's user avatar
1 vote
0 answers
24 views

Joomla mkdir() error

I have a problem with the Virtuemart Color Swatch plugin for Joomla 3. When I add thumbnails to the product, in the admin panel, I get this error: Warning: mkdir(): No such file or directory in /var/...
user14521's user avatar
1 vote
0 answers
121 views

JCE plugin to add custom toolbar dropdown list

I am trying to add a dropdown menu in JCE editor. The dropdown will contain a list of items fetched from database. Please find the below code: (function () { tinymce.create('tinymce.plugins....
Liz.'s user avatar
  • 1,375
1 vote
0 answers
36 views

Getting user submitted product properties programmaticaly in j2store

So I'm developing j2store plugin to calculate price for item based on product's width and height (these values are entered by the user). The form is rendered as following: function ...
Mindaugas's user avatar
  • 157
1 vote
1 answer
404 views

how to route url - JRoute get wrong itemid and wrong sef url

Joomla 3.9.12, JoomGallery 3.4 I have a site with joomShopping for e-shop and JoomGallery for portfolio. The site has 2 menus where some menu items of the first are menu item aliases of the second. ...
Sergey Tolkachyov's user avatar
1 vote
0 answers
42 views

Adding an alias to the body class by appending it to the existing alias

I have successfully managed to add the alias to the body class by creating a plugin. It uses vanilla JS and isn't overly problematic except when I combine and compress my JS it stops working. I'm ...
Eoin's user avatar
  • 1,879
1 vote
1 answer
392 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::...
n.h.'s user avatar
  • 871
1 vote
0 answers
17 views

Desktop application for macOS to generate components, plugins and modules

I would like to know if there's a desktop application to easy generate components, plugins and modules for Joomla. I have tested this two generators: https://www.npmjs.com/package/generator-joomla3 ...
troyKoutei's user avatar
1 vote
0 answers
421 views

How to dynamically add extra input fields in k2 item form

Problem I'm currently working on a form which has to implement a way to create a schedule for a single day. It should use a time for when an event starts, and a description about the events. The ...
T.P's user avatar
  • 11
1 vote
0 answers
32 views

One to many contact history

I am wanting to add a history for the contacts component, essentially a history of them being contacted with a few other fields. I looked at seblod and it seems like a lot of overhead. I have written ...
poproar's user avatar
  • 323
1 vote
2 answers
289 views

Need to Change the Default URL on Mobile Joomla

As you can probably see in my previous queestions, I'm new to Joomla with less than a year's worth of experience. I'm looking to start building out Mobile pages - but a previous developer left me in a ...
kjkentner's user avatar
1 vote
0 answers
310 views

Why use ob_start and eval instead of using a simple include in this Joomla Plugin?

I was looking at the code of a Plugin for Joomla! CMS for a functionality I need: the possibility to run custom PHP scripts when a Joomla! Plugin/Events is fired. I wanted to learn the mechanism used ...
Gruber's user avatar
  • 302
1 vote
0 answers
43 views

How can I make the Botscout feature work in the EasyCalcCheck+ security plugin?

I'm using EasyCalcCheck+ to beef up security on a Joomla site. In general it works well, adding a random math question to contact forms and registration. ECC+ also has options that enable ...
boot13's user avatar
  • 131
1 vote
0 answers
57 views

How to use handler: 'string' in joomla modals

Im looking for some examples of how to use {handler: 'string' ...} for joomla modals, as used in editors-xtd buttons plugins $button->options = '{handler: 'iframe' ......}'; but I want to use: $...
Martin's user avatar
  • 11
1 vote
0 answers
432 views

reCaptcha 1.0 works but 2.0 won't?

I'm on Joomla 3.4.3, PHP 5.4.40 and using reCaptcha for the contact form. Whenever I use reCaptcha 1.0 everything works as intended. If I use reCaptcha 2.0 it's like this: I fill the contact form, ...
Borg777's user avatar
  • 157
1 vote
0 answers
243 views

Closing multiple modals in a Joomla Plugin

I am trying to call an image popup box for a flexicontent plugin in J3.4.1. The problem is - the insert & cancel don't seem to close the modal. Code: <div class="pull-right"> <button ...
iamrobert's user avatar
  • 505
1 vote
0 answers
128 views

Facebook like poke button

I'm new to writing Joomla plugins so bear with me. I wanted to create a poke like feature for the Joomla 1.5 Community Builder. When I click on the poke-button of a user, I want this user and only ...
thadeuszlay's user avatar
1 vote
1 answer
234 views

Redirect on extension plugin with onExtensionBeforeInstall

i've created an extension plugin and i'am having issue to redirect on the trigger onExtensionBeforeInstall Here is my code : class plgExtensionExample extends JPlugin{ function ...
remi leclercq's user avatar
0 votes
0 answers
19 views

Error 0 after uninstalling Nicepage plugin

I uninstalled the Nicepage plugin in Joomla after I had problems with the menu on my website. I made a menu in Joomla with all of the articles, but it wouldn't show when I opened the website in the ...
Sam Peeters's user avatar
0 votes
1 answer
52 views

How to connect custom authentication plugin to openid so I can authenticate it through steam?

I need to create a "login using steam button" for a website using Joomla, from my research I can gather up that using OAuth no longer works for Steam, so I'll have to create a custom ...
gabriel0369's user avatar
0 votes
0 answers
17 views

modal popup just after login

I am new to the Joomla world and I have to face a difficult problem. I have to make sure that immediately after logging in to the user, a modal popup with a select box is proposed. The content of the ...
Muflo's user avatar
  • 1
0 votes
0 answers
20 views

OnContentPrepareForm load xml based on article data

I'm trying to figure out how to conditionally load extra form fields into articles. I have made succesfully a plugin that add fields: function onContentPrepareForm($form, $data) { $app =...
Kuubs's user avatar
  • 345
0 votes
0 answers
83 views

How to use emoji picker plugin from editor in Joomla in a textarea field?

I need to use the emoji picker plugin from editor to add emojis in a textarea field. Is it possible? It's for my chat component: https://extensions.joomla.org/extension/communication/chat/tabapapo/
JonatasCF's user avatar
0 votes
1 answer
32 views

Joomla field logic control plug-in

Is there a plugin in joomla that controls the display or hiding of another field based on the specified field similar to the XML showon attribute, or similar to the conditional logic in the WordPress ...
user avatar
0 votes
0 answers
132 views

Adding Azuracast JSON file to my AM HTML5 AUDIO PRO PLAYER in joomla

I need help for a problem that i didn't found solution. we have a web radio created with joomla and we start to put our programs 24h/24. I bought an AM HTML5 AUDIO PRO PLAYER and everything work fine ...
Ahmed Boudraa's user avatar
0 votes
1 answer
110 views

How to customize Joomla registration form?

How to create proper override folder for com_user? Apparently, simply copying it to template/html folder doesn't work What is displayed on registration page is largely controlled by the .xml file, can ...
shenkwen's user avatar
  • 1,369
0 votes
1 answer
74 views

Custom User plugin for the group

Looking for the info to have a custom User plugin but instead it shows up in the User, it needs to show up in the (User) group (backend Joomla Administrator). There is a very good example how to ...
PWRM's user avatar
  • 1
0 votes
0 answers
91 views

Set article attribs on-the-fly via JTable

I am using a CCK (Seblod) that extends com_content and allows adding complex fields, like PHP code to be run on onBeforeRender event. I need to change the values of some attribs of an article in the ...
Nene's user avatar
  • 1
0 votes
0 answers
46 views

Can I load my controller, model and view directly from the plugin?

I am trying to create a plugin that adds a new view to my component (addon). Can I load my controller, model and view directly from the plugin? For example: require_once("/pludins/myplugintype/...
MaXX's user avatar
  • 141
0 votes
1 answer
99 views

When exactly is onContentPrepareData triggered?

According to https://docs.joomla.org/Plugin/Events/Content, it is Called after the data for a JForm has been retrieved. It is not very clear when exactly the event is triggered. Based on the ...
shenkwen's user avatar
  • 1,369
0 votes
0 answers
48 views

Possible to add template file to component on plugin installation?

I am making a plugin for a custom component. It's a basic editor extend plugin that allows users to select an item from custom component using a button in editor. It's simular to native editor extend ...
TVBZ's user avatar
  • 213
0 votes
1 answer
63 views

How to add custom php in plugin settings?

I need to display iframe in plugin settings. Iframe will be have src="https://somepage.../<=$adminEmail?>/<=$domain?>". So i need to show iframe and pass parameters of admin login and page ...
Maksym Ostapchuk's user avatar
0 votes
0 answers
41 views

Load banner in Joomla article

Is there any plugin that can load banner "id x" from banner component? Or is there any other way, but not with {loadmoduleid x}? Thanks in advance
Midhat's user avatar
  • 99
0 votes
0 answers
68 views

Which Event to include in User Plugin that fires on Save button in Plugin manager?

My user plugin, "Myplugin", works. I have extra parameters in the plugin that can be set in the Plugin Manager (Menu: Extensions / Plugins / MyPlugin). Those are stored in the database when using the ...
PWRM's user avatar
  • 1
0 votes
0 answers
211 views

Install from web tab fails installation

Install from Web tab initially returned a blank page in both Firefox and Chrome. I disabled then uninstalled plugin. When I click on "Add Install from Web" button, I get the following: Error ...
GrannyKat's user avatar
  • 111
0 votes
1 answer
259 views

Use the “sql” form field type in extension xml only if the table exists

I developed a plugin for Joomla!, and I have the below sql parameter field in my sampleplugin.xml <field name="cb_fields" type="sql" label="Select CB fields" query="SELECT name ...
ahmad's user avatar
  • 21
0 votes
0 answers
115 views

Custom Joomla plugin to catch specific database queries

Is it possible to make a plugin which will get triggered by specific database events in Joomla? I need to watch the $this->getTable() request in Joomla. For eg: $table = $this->getTable(); if (...
Perino's user avatar
  • 667