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 [plugin]

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

0
votes
1answer
264 views

Please correct the path for Joomla Javascript Async and Defer plugin

Hello i want to Defer parsing of JavaScript of the following link in joomla by using Javascript Async and Defer plugin. http://www.domain.com/media/plg_jchoptimize/assets/gz/1/0/...
1
vote
3answers
646 views

After update to 3.6.2 no intall plugins are visible even not in “discover”

I wanted to reinstall the plugins via the "discover" button, but they do not appear there at all. Do you have any suggestions how I can reinstall the install-plugins manually without the discover-...
1
vote
1answer
57 views

jQuery UI issue with jQueryEasy plugin

Hello I have an old Joomla 2.5 site. I use the jQueryEasy for optimization and if I dont I get some random mootools error. My issue is : I want to use the draggable() method of jQuery UI. It seems ...
2
votes
2answers
144 views

Set module assignment at menu creation

I have a component which creates content pages for custom entities. I have an xml which allows to set those pages as menu items of that entity type. I have 1 module that I always want to display on ...
1
vote
1answer
217 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
71 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
165 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
78 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
5
votes
1answer
237 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
2k 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
538 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
70 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
46 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
93 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 ...
3
votes
1answer
299 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
366 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 ...
0
votes
0answers
81 views

Load plugin parameters outside plugin itself

I am using the following code to access a plugin parameters outside plugin itself. $plugin = JPluginHelper::getPlugin('my_plugin_type', 'my_plugin'); $pluginParams = new JRegistry($plugin->params);...
1
vote
1answer
35 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 ...
3
votes
1answer
349 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
72 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
97 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
200 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
443 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
0answers
119 views

Simple joomla k2 plugin not working

Just I started to make a plugin for Joomla k2, but somehow it does not work or I did something wrong. Plugin files: plg_k2_imagecrw.xml <?xml version="1.0" encoding="utf-8"?> <extension ...
0
votes
1answer
371 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
99 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
540 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
22 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 ...
5
votes
1answer
404 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 ...
3
votes
1answer
62 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 ...
1
vote
0answers
102 views

Plugin conflict troubleshooting

Joomla 3.4.8. T3 Joomlart JA University Template I have been experiencing some conflicts certain plugins I have installed on my site, two in particular - only one of them seems to work at a time. ...
0
votes
2answers
232 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 ...
6
votes
1answer
86 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 ...
0
votes
0answers
111 views

Extension to create a custom configuration file

I am looking for an extension (if available OR if I can make it) to create a custom configuration file (the same way as configuration.php with a user interface). Is there any extension which will let ...
1
vote
0answers
38 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: $...
3
votes
2answers
64 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
1k 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
290 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 ...
5
votes
1answer
61 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 ...
0
votes
0answers
113 views

Problem with a Joomla Plugin

I have a problem about a the Issuu Smart Look Plugin of Joomla. The plugin is this: http://extensions.joomla.org/extension/issuu-smart-look This plugin is a button of my menu and when i push this ...
9
votes
1answer
220 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
290 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
161 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' => $...
0
votes
0answers
93 views

Joomla file upload in a plugin

Am creating a file upload in a user profile type plugin below is my code i use on onUserAfterSave which helps me save the custom fields , all fields are working except the file upload , kindly help ! ...
1
vote
1answer
100 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
270 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
90 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
51 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
120 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
61 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 ...