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
2
votes
1answer
522 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
538 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
108 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
649 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
31 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
489 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
65 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
112 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
270 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
102 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
43 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
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
370 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
78 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
259 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
317 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
167 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
122 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
351 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
97 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
61 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
126 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
70 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
107 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
149 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
27 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
87 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
156 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
990 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
138 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
81 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
86 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
360 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?
2
votes
1answer
272 views

Editor-xtd custom button with external Iframe Call

I am developing a custom button to integrate with an external commercial publishing software. My button base works and some how the iframe is called onto my test web site where the external App and ...
4
votes
1answer
2k views

Get all installed Joomla extensions and their version

I'm not really familiar with Joomla, but I need to write a script that is supposed to list all the installed extensions and their version number, if possible. I've already done this for WordPress, ...
3
votes
2answers
917 views

Using com_ajax in a custom plugin to retrieve k2 items from database

I am using rsform pro to show dropdown option values from joomla database. I have 2 dropdown boxes, A list all the category name and its id while B lists all the available k2 items. I have a jquery ...
0
votes
1answer
115 views

Two reversed conditions in one onAfterDispatch() plugin function

In my system plugin, I use the following condition class PlgSystemMyPlugin extends JPlugin { public function onAfterDispatch() { $uri = JFactory::getURI(); $current_url = $uri-...
1
vote
1answer
25 views

How to make a Joomla module installation from a module already installed on another page

I'm working on a new website and I wanted to install a module that I have on another website that I'm administrating (I didn't make that website and the developer who made it, made that module himself)...
5
votes
2answers
1k views

What does $context parameter of content plugin mean?

I've read that $context parameter is: "The context of the content being passed to the plugin - this is the component name and view - or name of module (e.g. com_content.article)" https://docs....
5
votes
2answers
543 views

Apply the same code on PHP to content of component and each module

I have some code on PHP something like: $oldstring = ...; ... $pattern = ...; $newstring = preg_replace_callback($pattern, ... {...}, $oldstring); echo $newstring; I need to apply this code (maybe ...
3
votes
2answers
567 views

Adding Custom Fields to Article Component [Not in attribs field]

I am trying to save some additional fields into the Article Content and there has been a few questions like this relating to this issue but all of the solutions seem to point to saving the extra field ...
2
votes
1answer
425 views

Simple Image Gallery plugin not displaying the images

I am using Simple Image Gallery plugin to preview my images in articles. However , when I add my images in the folder set in the configuration only the {gallery} tag is displayed and not the actual ...
1
vote
0answers
426 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, ...
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 ...
1
vote
1answer
140 views

Running content plugins for a custom editor type field in com_content

For our latest Joomla-Projects, I extended the com_content component with custom fields using the following documentation: https://docs.joomla.org/...
2
votes
1answer
30 views

What are the PluginGroup types that I can use when developing a Joomla plugin?

When developing a plugin, what are the PluginGroup types that I can use in Joomla? For example, if you were to create a search plugin the <PluginGroup> would be Search. I've tried to find a ...
2
votes
1answer
641 views

Can't add Javascript in plugin

I've been trying for the last hour or so to get a single javascript added to the head via my system plugin, and am kind of pulling my hair out as to why it is not showing up. Here's what I've got ...
0
votes
2answers
378 views

Is it possible to disable a plugin/module via template in Joomla 3?

I have a menu with different template assigned. I want to disable the plugin Tabs & Sliders (by JoomlaWorks) in this menu. Can I disable this plugin via template ?
1
vote
2answers
582 views

Add Content Field Data on form submit

I have a plugin that adds a couple extra fields to com_content. I've already sorted out how to add the fields to the frontend editing form, so that they're displayed and saved appropriately, that is ...