Questions tagged [plugin]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
290 views

Call content plugin in Joomla! component

I want to display social share plugin in MediaStore component but my skills are not high enough to make it work. Can somebody give me some clues on how to do this? This is how I tried to call the ...
0
votes
1answer
76 views

Auto redirect after vote

how to add auto redirect URL after voting ? its possible? here is the code public function vote(){ $app = JFactory::getApplication(); $params = $app->getParams(); $vote=$params->get(...
1
vote
0answers
235 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 ...
2
votes
1answer
91 views

Set plugin order when installing

During plugin installation, is it possible to set it to be always the last one in its group? Thanks
4
votes
1answer
327 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> ...
6
votes
2answers
3k views

How to call a model method from a system plugin?

I have a component ('com_foo') which has a model called 'foobar'. The class declaration is like this: class FooModelbar extends JModelItem This class has a public method called getFooBar(). I also ...
0
votes
1answer
944 views

How to render content plugin into a module

I'm porting a code from a template override of com_content category blog_item into a module. Everything is all right done, except for one thing I'm struggling with. I have this code from com_content ...
2
votes
2answers
102 views

Content Plugin 'loads' multiple times on Category Page

I have a plugin where I am trying to instantiate a new class but every time the plugin was enabled, the page kept dying saying the object already exists. Upon investigating, I found out that it only ...
0
votes
1answer
72 views

My challenges,Joomla Administrator www.melhevconcept.com/administrator [closed]

My challenges>>>> JAuthentication: :authenticate: Failed to load plugin: plgauthenticationcookie JAuthentication: :authenticate: Failed to load plugin: ...
1
vote
2answers
126 views

Extending joomla registeration with a plugin

I have found a plugin that extends joomla's core registration by adding a new field named User group selector. There is a trigger method in this plugin named onUserAfterSave that save the custom field ...
2
votes
1answer
484 views

How Can I Set The <title> Tag Using The Sourcerer Extension?

I'm trying to build a Joomla article to display a photo the user selects. I'm using the Regular Labs Sourcerer plugin to place the required PHP code into my article. I want to set various tags within ...
4
votes
2answers
498 views

Joomla Plugin to fire onUserLogin

All, I have a simple plugin which does fire on login. I have the same plugin working in 2.5 but in my joomla 3.5 I cannot get it work get the username. This does work on Joomla 2.5 Here it is. Any ...
1
vote
1answer
36 views

Joomla3 Loading two diffrent plugin for two diffrent user group in their profile page

I have two profile plugin (core profile and newly created profile5), How can I load these two plugin with two diffrent user group. (For Register type user load core profile and for Editor load ...
2
votes
1answer
470 views

Use of $_SERVER variables in custom plugin

In my Joomla application, I have functionality where I use server variables, like request_uri and query parameters for parsing url string. This function is used in many modules. So, I wanted to ...
0
votes
1answer
96 views

K2:How to run a certain task every time an item is saved

I am using k2 to buildg my Joomla 3.5 site. My k2 items are basically youtube videos, every youtube video has a URL pattern for its preview image and I want it to be the item's image. But I don't want ...
3
votes
1answer
132 views

Media field use local or remote file

I have looked all around for the use of the media field, and I see that is to load local files only. I need to use it to load not only local but also remote images. I notice that if I put a URL to ...
3
votes
2answers
379 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 ...
2
votes
1answer
566 views

com_ajax and JFactory::getUser()

I'm using com_ajax for requests, and I've run into a problem. I'm trying to determine if the user making an AJAX request is logged in. When I call JFactory::getUser(), it's returning a guest user, ID=...
0
votes
1answer
653 views

How do I create an Editor Add-In?

I've searched around, but I can't find how to do this. I'd like to add an extension to the wysiwig editor in Joomla. I'm writing a calendar plugin, and I'd like to have a dialog that would help the ...
2
votes
2answers
113 views

How to tweak a plugin so it will load below the author?

I use an override of com_content/views/article/tmpl/default.php to display the author name below the article text: <div itemprop="articleBody"> <?php echo $this->item->text;?> <?...
0
votes
1answer
695 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) ...
1
vote
0answers
34 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 ...
4
votes
1answer
535 views

Article custom fields for one category

With the help of this and this I made a plugin to add a custom fields to the article component. It works fine but I would like to make these custom fields mandatory and only for a specific article ...
2
votes
1answer
67 views

First Attempt PHP Plugin

New to php and plugin building. I am a front end guy but need to learn templates building in Joomla. I have a small one working that gives you the ability to insert and change some text in the ...
0
votes
2answers
331 views

Share article and with short url / short link

If you share a youtube video, youtube automatically create a shortlink that you can send manually, or via a variaty of different social media plattforms. See screenshot: I've searched for a joomla ...
5
votes
1answer
109 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 ...
1
vote
0answers
47 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: $...
2
votes
2answers
70 views

When I save an article, URLs are modified to include hostname

I've inherited a Joomla site. I've noticed that some articles contain URLs like this: <a href="http://testdomain.test/rest_of_url">example</a> This site gets copied from our staging ...
2
votes
2answers
2k views

How do I remove and/or change the 'name' field in the registration form so that I can ask for first and last name separately?

I've developed a plugin that allows me to create a custom user profile. It works and I'm able to add/remove fields as necessary. The issue I'm facing is: How do I remove and/or change the 'name' ...
3
votes
1answer
400 views

JLayout recommended usage

Inside a plugin I need to make a popup window to preview some HTML structure. Can I use JLayout to achieve it or is there a more proper way to do it? If JLayout is the way to do it, also would like to ...
4
votes
1answer
86 views

How to use getContentExtras() in SmartSearch indexing?

I've read google all the very limited documention of SmartSearch/com_finder routines after starting with How to add com_content extra fields to Smart Search Index, and am no further along ...
8
votes
1answer
289 views

Plugin event only when Email activation

I am just referring the Joomla User plugin events in the URL https://docs.joomla.org/Plugin/Events/User/en onUserLogin onUserAuthenticate onUserBeforeSave Just wondering which one will help me to do ...
6
votes
3answers
349 views

Configure Joomla to send an email at login

Can someone let me know how to configure Joomla so that I get an email each time someone logs into my site. At the moment, I get an email only when someone has registered. I'm running Joomla 3.5
3
votes
1answer
170 views

Will Joomla JAuthentication obey the user plugins?

I do a custom PHP page that allows member to validate their Joomla login credentials. Following is the code. $credentials = array( 'username' => $username, 'password' => $...
1
vote
1answer
136 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 ...
0
votes
2answers
380 views

Submit form to other url within Joomla! plugin

What I'm trying to achieve is auto submit a subscribe form (with specific user details) to my email provider (similar to mailchimp), when a new user register to my joomla site. I already defined a ...
2
votes
1answer
106 views

Joomla create content plugin to add fields to article (com_content)

Am a beginner to joomla development ,id like to add extra fields to the article (com_content)component. I have read this article https://docs.joomla.org/Adding_custom_fields_to_the_article_component ...
4
votes
1answer
68 views

What types of functions in Joomla are analogous to Drupal hooks?

Drupal has many hooks, such as hook_menu and hook_form. What are some functions in Joomla analogous to these?
1
vote
2answers
129 views

How to add simple visitor interaction in joomla 3x?

I have a download page on my website. I would like to know who downloaded the content so I need to put this behind user login. Free registration is required, and by providing details like email they ...
3
votes
1answer
72 views

Handling of Plugin Custom Field Type Data

I have written a custom field type which will allow users to upload a file (CSV). Upon submitting the file, the plugin needs to be able to read through it and then do its own thing (update database ...
0
votes
1answer
109 views

Custom Joomla 3.4 Finder Plugin Not Displaying in Results

I have created a custom finder plugin to reference my custom component content, however, the content indexes as expected but it doesn't show up in the results on the front end. Have I missed a step? ...
3
votes
1answer
165 views

Is there any equivalent event to onContentAfterSave for Modules?

Is there a way we can 'listen' to the module save event so that we can use a plugin to do some additional work. I found this question on stack overflow but I am confused as to where dispatcher will be ...
1
vote
1answer
30 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?
0
votes
1answer
89 views

Is possibile to hide $article object

I'm developing a content plugin to filter articles according to a field in CB profile. Something like: public function onContentPrepare ($context, &$article, &$params, $limitstart) { ...
1
vote
1answer
175 views

Add category name to Smart Search results?

I want to add the articles category name, when the results show up for "Smart search" plugin. right now it only shows the article name. i tried to use this code, but it didn't work: <?php $title = ...
3
votes
1answer
1k views

Calling plugin code from module

Currently developing a module and a plugin (content) for a project that have some similar code in them (read: code for accessing APIs, organizing data, etc). Any environments that they're installed on ...
0
votes
1answer
151 views

Make a payplan app in joomla

I am developing a custom payment plugin for the PayPlan component. Below is the structure which I made after referring to the URL: https://github.com/readybytes/PayplansCustomApp firstdata(Folder) --...
1
vote
1answer
86 views

Plugin result at module position

Can I display Plugin result in module position. I want to display allvideo plugin in module position. AllVideo associate video with K2 Item.
0
votes
1answer
87 views

Flag based on Language and Two Factor Authentication

In a system plugin I need to have two flags, one to check if there are more than one language in administration and another flag to check if a two factor authentication is needed. Tried the following ...
1
vote
0answers
369 views

k2 simple image gallery display at module position [closed]

I want to display gallery at module position associated with k2 item. Currently it display at bottom of K2 Item but I want to display it at Module Position "Right" How is it possible?

1 2 3
4
5
7