Questions tagged [plugin]

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

49 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
1answer
502 views

How to customize user registration in Joomla 3.7?

Now that Joomla 3.7 supports custom fields, can anyone point me to documentation or a YouTube video that outlines how to customize user registration? I assume that additional work is also required to ...
2
votes
0answers
37 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 ...
2
votes
0answers
133 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 ...
1
vote
0answers
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 ...
1
vote
1answer
38 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), ...
1
vote
0answers
55 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 ...
1
vote
0answers
34 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 ...
1
vote
0answers
13 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/...
1
vote
0answers
84 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....
1
vote
0answers
27 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 ...
1
vote
1answer
275 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. ...
1
vote
0answers
36 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 ...
1
vote
0answers
102 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 ...
1
vote
1answer
312 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::...
1
vote
0answers
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 ...
1
vote
0answers
398 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 ...
1
vote
0answers
30 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 ...
1
vote
1answer
263 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 ...
1
vote
0answers
274 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 ...
1
vote
0answers
37 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 ...
1
vote
0answers
49 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: $...
1
vote
0answers
427 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, ...
1
vote
0answers
239 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 ...
1
vote
0answers
127 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 ...
1
vote
1answer
222 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 ...
1
vote
1answer
148 views

Joomla plugin - get parameters from syntax

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
0answers
25 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 ...
0
votes
1answer
32 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 ...
0
votes
1answer
54 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 ...
0
votes
0answers
35 views

Add a packet with composer

I have seen Joomla has composer build in -in the core- under /libraries/vendor. Now I want to implement AMP Optimizer with composer for modifying the html output. Is it possible, and how to add this ...
0
votes
0answers
9 views

confirm dialog, on New Custom Field creation

I am in the process of creating a new type of Custom Field. (Joomla 3.9x) As a new Field under Plugin. I need to have a confirm-dialog on beforeSave, but I can't find any proper tutorial on how to do ...
0
votes
0answers
81 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 ...
0
votes
0answers
41 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/...
0
votes
1answer
61 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 ...
0
votes
0answers
110 views

Joomla custom SSO plugin

I need to create a custom SSO plugin. The way it should work is: User authenticates on 3rd party application 3rd party application calls a Joomla URL via POST request The URL that has been hit deals ...
0
votes
0answers
47 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 ...
0
votes
1answer
39 views

Upgrading an Old Joomla 2.5 Site to 3.x Version

I have an old Joomla 2.5 site and am trying to upgrade it to the current version. My problem is I need to update some items but I'm not finding the old versions of them for doing that. They are: ...
0
votes
1answer
43 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 ...
0
votes
0answers
33 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
0
votes
0answers
34 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 ...
0
votes
0answers
153 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 ...
0
votes
1answer
192 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 ...
0
votes
0answers
105 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 (...
0
votes
0answers
137 views

Plugin "Hello World!" for User onUserAuthorisation

I am trying to create a plugin to make some database queries from the event onUserAuthorisation. Right now I am just trying to set up a "Hello World" style plugin, because I am not sure yet that my ...
0
votes
1answer
130 views

Can't get ARK editor to replace Tiny Editor

I have Joomla 3.5 on Windows pro 7. I went and downloaded Ark Editor. Extention Manager says it is successfully installed. Go to global configurations to activate, but is not showning in drop down ...
0
votes
1answer
761 views

VM - custom payment plugin and payment methods do not work

I can't make my VM payment plugin to work at joomla v3.5.0 and virtuemart v3.0.12. I've install a custom payment plugin. Initially it worked, yet the same time other payment methods (when invoked) ...
0
votes
0answers
1k views

Joomla plugin search not working

I upgraded my Joomla site from 1.5 to 2.5 and a few weeks ago to 3.4. I realised that my search didn't work. It returned a white blank page. I struggled over some articles on the web that a broken ...
0
votes
0answers
97 views

Joomla 1.5 creating or editing back end user

I have a website in joomla , the problem is that when i am creating new back end user (administrator/super user) from joomla user manager it makes an entry in the users table after that it deleted it ...
-1
votes
1answer
230 views

Joomla 2.5 - fulltext in category blog layout

i modified blog_item.php to display fulltext in category blog layout. Works fine, but the content plugins are not rendered. They are rendered fine in introtext. Can anyone help me with the right code ...