Stack Exchange Network

Stack Exchange network consists of 175 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 [plugin-events]

The tag has no usage guidance.

0
votes
2answers
37 views

How to use plugin content-events on featured contacts page

Using the content event onContentPrepare() within a plugin in the contexts of 'com_contact.category' and 'com_contact.contact' works fine. But the following code doesn't output anything on a page ...
1
vote
3answers
36 views

Develop a System Plugin with Sample Data for Options

I'm in the process of developing a system plugin. In the options is a subform-field (repetable), which contains several fields. In the "default" of the subform I can specify a record. a) How can I ...
2
votes
1answer
62 views

How does Joomla! event system (plugins) avoid namespace conflicts?

As I understand, to use Joomla! plugin events from my user code, I first need to load the plugin class (which registers the named functions as events in the event dispatcher): JPluginHelper::...
0
votes
1answer
48 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! ...
4
votes
1answer
72 views

onUserAfterLogin popup - Joomla 3.6.4 Plugin

I need to create a plugin that displays a popup when an user makes a log in on my Joomla 3.6.4 website. I know that I need to create a Plugin and trigger the onUserAfterLogin event, but I don't know ...
0
votes
0answers
61 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 (...
1
vote
1answer
53 views

search component/plugin in joomla

I am new to joomla! and would like to design a custom search plugin to search through my database. I know that when using the default search, the onContentSearch() function is triggered and "search ...
1
vote
1answer
67 views

How to control the execution order of the same event?

I would like to know if it's possible to control the order of the execution of the same event in several plugins. For example, I have the event event1 in 2 plugins, and I want the plugin1 execute the ...
1
vote
1answer
30 views

onAfterModuleList not triggered in Home or in Wrapper menu type?

I got a plugin that uses the onAfterModuleList event, it works fine on most menu types. But it doesn't seem to be triggered in neither home or wrapper menu types. Event though there are modules ...
1
vote
2answers
281 views

Event for saving Custom Fields data? Or before save

I am looking for the event is triggered when saves or just before the com_fields custom field saves the data? Also, is there any where I can find the list of all com_fields event trigger the ones I ...
1
vote
1answer
497 views

renderField with fields from custom plugin

I need to expand the functionality of the registration form. Following some tutorials and the sample profile plugin I was able to use the onContentPrepareForm to add the new fields. Now the second ...
1
vote
1answer
94 views

How to stop (or 'untrigger') a Joomla event, for example onUserLogin

Using J3.7.2 with MySQL 5.7.14 and PHP 5.6.25. I have built a Joomla user plugin (let's name it "My_Plugin") which does all the things that the default Joomla user plugin "User-Joomla" does, plus some ...
0
votes
1answer
113 views

How to remove rel=“nofollow” with Joomla Buffer?

I am developing a plugin to get rid of any rel="nofollow" on HTML links using a buffer, but its not working. I am testing it with a nofollow link on a Custom HTML Module. I thought that "JFactory::...
3
votes
1answer
185 views

Is there an event for saving a menu item?

I'm trying to create a plugin that fires when a menu item is saved, but I'm having trouble finding an event to listen to. Sor far I have function onContentAfterSave() { ...
0
votes
3answers
177 views

How to remove specific articles from blog view using a plugin custom code. Its possible? How?

I would like to prevent some specific articles from being shown on com_content blog view and featured articles view. For example, if the article has a specific ID that I seted on code like "27" he ...
1
vote
1answer
49 views

Logout within plugin interfering with other plugins

I have a user plugin which performs some tasks and then logs the user out using $app->logout($userID, []);. This is intentional and part of the plugin's functionality, and works well if no other ...
3
votes
1answer
16 views

Unable to update deploy server url during postflight event

When I install myplugin the very first time, it should update the location column in #__update_sites table with updated string which includes the API key. I'm unable to update at first install as I ...
1
vote
1answer
28 views

native voting for events of events booking plugin

I am using the events booking plugin and struggle with some issues for voting. How can I enable the native joomla 5 star rating for events, like I can use for articles? It would also be good to use ...
4
votes
1answer
767 views

Trigger event for specific plugin only

Is it possible to trigger a event for specific plugin? I can load a specific plugin $loaded = JPluginHelper::importPlugin('my_component', 'my_plugin_1'); But when I trigger an event, all the ...
1
vote
0answers
188 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 ...
5
votes
1answer
255 views

Is there an event like “OnAfterCompileHead”?

As per title, is there already an event that can work like a sort of OnAfterCompileHead? Maybe onAfterDispatch, onAfterRender or onBeforeRender? I need to change some meta tags in the <head> ...
0
votes
1answer
82 views

Event Booking - Javascript error on function

I started having a strange error on some pages. The website has been working fo the last 3 years with no problem. We sell IT courses and have pages for both individual and group registration. Group ...
2
votes
2answers
1k views

How to leverage external JSON REST API in Joomla 3.5.1 after user login?

I need to integrate a Joomla website with a third party REST API. Let me try to clarify what I'm trying to do. Ideally when a user logs on to the Joomla website once they authenticate they will also ...
3
votes
2answers
256 views

Simple Joomla plugin doesn't work

I'm new to Joomla. The first time I create a plugin. I am trying to create a new plugin, but it does not work. Events did not react. Joomla version 3.4.8. PHP 5.6 My Code plgcontenttitlere.php ...
6
votes
1answer
94 views

onFinderCategoryChangeState event for com_finder in Joomla never fires

I am implementing a plugin for jdownloads to be used in the component smart search. To implement this plugin I have to use the event onFinderCategoryChangeState to actualize the state to the download ...
2
votes
1answer
34 views

Are there any events dispatched after a user's email confirmation in joomla 3.x?

I need to perform some actions after the user confirms their email accounts/registration. I have been looking for whether Joomla dispatches any events on registration confirmation but i still cant ...
1
vote
1answer
75 views

Why doesn't onUserAfterSaveGroup get triggered when editing groups as Administrator?

I'm having problems getting onUserAfterSaveGroup to fire on Joomla3.4.x I've published a system plugin and tested that it works using function onUserLogin(), but when I try to use function ...
1
vote
1answer
107 views

What Joomla events are triggered when a usergroup is changed?

I've been looking at Joomla 3.x plugin events to determine if a particular event gets triggered when a user's usergroup is changed. Update-specifically I've been trying to detect an event that is ...
1
vote
1answer
26 views

How to execute custom php/mysql code after a user successfully logs in?

After a user logs in, I want to call a little mysql program. How and where (in what module eg. mod_login) do I place the code?
1
vote
1answer
903 views

Login user by Username without getting password

Thank you in advance for your help. I am creating a "Single Sign On" for a Joomla site and have reached the final stages. The user is providing a username & password to authenticate with a 3rd ...
1
vote
3answers
665 views

Joomla 3 onContentAfterSave not work backend

I want use onContentAfterSave in Joomla backend but it's not working. My code this is: class plgContentTest extends JPlugin { public function onContentAfterSave($context, &$article, $isNew) { ...
0
votes
1answer
752 views

Running content plugin on content prepare trigger for com_content attributes text

I created a custom plugin that allows the user to save custom text from a predefined list through editors buttons, in the attributes (attribs). The idea was to give the users an easy way to add a few ...