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.

2
votes
1answer
1k views

Custom profile plugin fields not showing

I've made my own profile plugin based on the tutorials here and here. But they are a little outdated so I had to fill in some gaps. Now, the plugin installs correctly, and if I click on it, I'm able ...
5
votes
1answer
58 views

Can components / non-plugins react to events?

Is it possible for components to react to events - i.e. in some way become an observer to plugin events?
-1
votes
1answer
164 views

joomla sidebar comments module/plugin/component [closed]

I would like to find component/module/plugin (does not matter) for showing comments in sidebar. For example - Phoca guestbook component + phoca guestbook latest entries module component is good ...
3
votes
1answer
217 views

How to create a custom profile plugin

I want to write my own custom profile plugin, but the problem is that the available tutorials (here and here) are a little outdated. Right now I'm looking at the setFieldAttribute(), the last ...
0
votes
1answer
598 views

Got js error “Uncaught TypeError: undefined is not a function” on testing server because of megamenu and YT framework

I am in trouble from few days, suddenly I got js error "Uncaught TypeError: undefined is not a function" and it's point to megamenu initialization code. Few days back I have tried to uninstall the YT ...
0
votes
1answer
661 views

How can I use Joomla oncontentprepare in category blog

I created a custom Joomla plugin and I want to display my custom data on content in category blog. I use oncontentprepare event for display data. But in category blog only show all data on first ...
2
votes
2answers
94 views

How to implement less compiler when saving options

This question is not so specific, but I will ask it anyway. Is it possible (better possible and easy) to use less compiler when saving options for a component or plugin? What I want - many content ...
1
vote
2answers
609 views

Proper way to call/use plugin parameters

I know this could be interpreted as a minor or a newbie question but I would like to improve my code. So, in a best coding practice perspective how to call/use plugin parameters? My two code examples ...
1
vote
2answers
238 views

Change existing xml field name values

I have a system plugin where I need to change some existing field name values in xml manifest file. In a new plugin installation this is not a problem, but if I want to upgrade an older version I will ...
2
votes
1answer
559 views

How to create a “Discount Plugin”

VirtueMart doesn't have a lot of plugins... So, I thought about creating a plugin which shows the percent of the price of the product in ofert. Just making a div with ::after (CSS3) and inserting it ...
2
votes
1answer
120 views

Retrieve a large number of plugin params

In my plugin xml file I have a large number of parameters to retrieve, about 100. Presently, to set a more friendly name to parameters, I am retrieving them like this: public function __construct(&...
1
vote
1answer
69 views

Plugin config checkbox, setting default=true breaks it

In a plugin config xml file, the following creates a config checkbox fine: <field name="post_allowed" type="checkbox" default="0" description="Post Allowed" label="Post Allowed" /> ...
1
vote
1answer
354 views

Joomla Plugin With Helper File

Is there a conventional way of making a helper file to a Joomla Plugin? Like class names (helper or plgNameHelper) and the way of calling it? class Helper { public static function test() { ...
1
vote
1answer
419 views

How to change virtuemart cart values?

I am using Joomla 2.5 version. And I am using Virtuemart component for my website. I have to check that if user is a VIP user then, deduct 10% amount from default virtuemart cart prices. How can ...
1
vote
1answer
90 views

System plugin development

I am planning the development of a joomla system plugin and I need an advice on how to implement it. This plugin will be triggered in 4 or 5 events, like onBeforeRender, onAfterRender ... For a ...
5
votes
1answer
431 views

Joomla plugins are not working even when they are enabled

I installed some Joomla plugins but they are not working at all. I checked the plugin states and found that they were enabled. I even added some code to the plugins to check whether they were getting ...
3
votes
2answers
2k views

How to display Microsoft Office files (word and excel),pdf and video?

How can I display Microsoft Office files (word and excel),pdf and video files in a page? Do you know any plugin? I use RSForm where I show the submitted details once users submitted them;part of it ...
1
vote
1answer
450 views

Config field of plugin is not showing Joomla 3.3

I create a custom shipping plugin for Virtuemart-3 . it installed successfully. but its config fields are not showing. Here are my fedex.xml file <?xml version="1.0" encoding="UTF-8" ?> &...
0
votes
2answers
134 views

Notify user from unsaved data

How can I notify user about unsaved plugin parameters? I have a plugin with a large number of settings and I would like to notify the user if he had made any changes to those settings but didn't save ...
1
vote
1answer
368 views

Add a custom button to plugin

I need to add a custom button to the toolbar inside of a system plugin, near 'save', 'save & close' and 'close' buttons. How can I achieve it?
1
vote
1answer
454 views

k2 plugin not fired by any event

here you are my xml <?xml version="1.0" encoding="utf-8"?> <extension version="3.0" type="plugin" group="k2" method="upgrade"> <name>com_related_news_programme</name> <...
1
vote
1answer
385 views

How to enable email cloaking for my email address that is shown in rsform?

I have a contact us form built using the RSForm Pro component. At the top of the form I have a brief intro-text, using the RSForm freetext field, where I have my email address for those that don't ...
2
votes
1answer
101 views

Is triggering an event in a list view bad for performance?

As a component developer I can see how useful is to include events to call plugins so other people can extend you component without hacking your core files. However I am always concerned about this “...
1
vote
1answer
2k views

Dynamically add fields to component's menu edit form

I am looking to add parameters to the edit-view of my component's menu editor on the fly instead of statically defining them as you normally would (as described : https://docs.joomla.org/J3.x:...
2
votes
4answers
963 views

Blank page after attempting to install extension

I'm getting a blank page when attempting to install AutoTweetNG on Joomla 2.5. I've already checked the post_max_size and upload_max_filesize variables in the php.ini, which are set to 20M and 60M ...
1
vote
2answers
623 views

How to load plugin to a specific page

I've created a plugin, that has administrator fields that will setup things to be shown on the site page. I was wondering if is there a way to load this plugin to a page as it's done with a module. ...
0
votes
1answer
381 views

Joomla 3 template plugin is not working

I am new to Joomla plugin development and I am trying to build a basic Hello World plugin. What I want is for the text "Hello World" to appear in the front-end after the article title. I am running ...
0
votes
4answers
2k views

About jquery and $document->addScriptDeclaration($js) by developing a plugin

I seem to be having an issue when using jQuery in my plugin, which results in a blank page. When I delete the last line $document->addScriptDeclaration($js);, the site display but the code doesn't ...
2
votes
1answer
782 views

Joomla custom authentication plugin only for frontend

I've created a custom authentication plugin and it works well. The plugin is in the plugins folder plugins/authentication. Now I face the problem, when I would like to login in my backend, then the ...
2
votes
2answers
660 views

Dynamic article filter

I'm trying to build a dynamic "gallery" for categories/articles on my site. Essentially, there will be 3 dropdown menus at the top: Refine By: COUNTRY | HOLIDAY | LOCATION and each one will have ...
1
vote
1answer
530 views

Showon works on plugin backend but not frontend

I'm changing user profile plugin in Joomla 3.3, using method described in http://www.inmotionhosting.com/support/edu/joomla-25/user-profile tutorial. Everything works and OK. But I want to make some ...
1
vote
1answer
298 views

Cannot redeclare class error with System Override plugin

I'm creating a Core override plugin(for overriding the 3r party extension) using Joomla system plugin. The issue is Cannot redeclare class VirtueMartCart error showing on t3 framework based template. ...
5
votes
1answer
299 views

How to pass, with a custom button, the selected items to a controller?

As seen in this question (Add a custom button to a core backend component), I've created a simple plugin that adds a custom button on the com_content component. When I click on this button, the site ...
3
votes
2answers
372 views

How to replace the content of Div for plugin

I'm writing a plugin for Virtuemart its System type plugin. In their older version (VM2.x) they managed the Div simply with a class and there is no inside Div structure so preg_replace is sufficient ...
0
votes
2answers
93 views

Javascript in custom content plugin output

I want to use javascript in my custom Joomla content plugin, but I can't get my custom text when type text in my input by using getElementById. My code is: <?php $output = ' <input ...
1
vote
0answers
121 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
votes
1answer
509 views

j2store plugin tag is not working in bt content slider

I have used J2Store my for website. All articles are working and add to cart button appears but in "BT content slider" module I have displayed articles in 3 columns and inside articles I just added ...
6
votes
4answers
1k views

Script not running on plugin installation

I am creating a plugin and am attempting to run a script after it is installed. For whatever reason, it appears the script file is loading, but my code is never run. My script.php file contains the ...
10
votes
1answer
212 views

Last Event Triggered by Plugin

I need to know which event is most probably the last one triggered in normal application flow. The Event should be triggered after all default controller actions have been run, the template is ...
2
votes
1answer
46 views

Why my pages come in English even the current language is another?

Until wednesday, everything was fine but for two days it is so strange. I am using DirectPHP plug-in to create my own pages. And use template's language files for the constant expressions and labels ...
0
votes
1answer
231 views

Realtime Push Popup window for website [closed]

Is there a way to trigger a popup on an end users browser in real time, not just when page loads, sort of like a live push notification but instead a popup window (modal) opens up on the end users ...
4
votes
1answer
260 views

Trigger plugin event in fof

I am working in Akeeba subscription it's based on FoF.I wanted to check some condition before user can delete subscription. I have a plugin MyPlugin and class is - class plgAkeebasubsMyPlugin ...
3
votes
2answers
607 views

Is it possible to change the joomla user authentication algorithm

Hi I'm doing initial research on changing the way joomla authenticates a user. I want to do this only for the frontend user and not the admin user. WHY I want to do this? I'm importing a list of ...
7
votes
2answers
481 views

How do I properly raise an error from within a plugin?

I am successfully preventing some content from being saved under certain conditions, but am having trouble handling the error message to the user. The actual text does display, but there is ...
5
votes
2answers
688 views

Custom profile fields, restricted to admin only

I am following this example here Profile plugin to create my own profile plugin. What I can't figure out is how to make a field admin only? In the original customer / profile there are fields like ...
5
votes
1answer
77 views

Need some help optimizing new compression plugin [closed]

I am working on new free compression plugin https://github.com/youjoomla/jcompress https://github.com/youjoomla/jcompress/archive/master.zip and need some help in speeding things up. The process ...
7
votes
1answer
4k views

Override MVC classes in Joomla 3

Is there anyway to override MVC classes in Joomla 3? I have found this thread but it is for Joomla 2.5. How to override core classes? I have done MVC overrides in Joomla 2.5 successfully but now I ...
2
votes
1answer
248 views

How to add image selector field in k2 example plugin?

i am working on k2 example plugin, i want to add image selector field in k2 category section, i have already created html contents and text fields using the same and is working , but i don't know that ...
4
votes
2answers
599 views

Trying to save multiple field in Plugin

I can add a multiple select field to my plugin's xml file, like this for countries but when I save it, it only saves the value "array" in the parameters. I would like to save it as a comma separated ...
4
votes
2answers
51 views

How can I determine which component is creating a new user?

I'm working on a tricky User plugin that needs to do certain things only if being called from a 3rd party component. I could check the option in the url, but I need to consider that the user may be ...