Questions tagged [extension]

Extensions enable third party developers to modify aspects of ExpressionEngine without hacking the backend scripts.

Filter by
Sorted by
Tagged with
13
votes
2answers
761 views

Testing Extensions / Calling Hooks

I'm about to embark on writing a new extension for the Ecommerce module "Store" though this should relate to any extension hook. I am planning to "hook" into "store_order_complete_end" in order to ...
11
votes
1answer
183 views

Exp:resso's Store apply coupon to category only

Does anyone know if it is possible to set up a promo code in Store that only applies to products in a certain category? I am happy to use an extension (if one exists) to fill the gap if this isn't ...
9
votes
1answer
181 views

Turn off extension in Control Panel

I would like to make sure an extension isn't run, via sessions_end hook, in the control panel. I'm currently doing this like so: if ($this->EE->input->get_post('D') == "cp") { return ...
8
votes
2answers
1k views

How can I enable HttpOnly cookies in EE

Update: Thanks to Dom Stubbs, I have an extension to accomplish this now. It is up on devot-ee and also up on GitHub. Thanks Dom! The Original Question I am nearly through a security review of a ...
7
votes
1answer
203 views

Development: how to know current site selected in Control Panel

I'm developing a custom extension that should work also in Control Panel. In an EE MSM environment I need to know which site is selected (site_id). Is there any variabile? I can't find anything in EE ...
7
votes
1answer
208 views

Extension Development - Use existing settings column or create a new table?

I was pondering this today and trying to decide on the best route when it comes to storing data for an extension. The data I am storing in an extension involves a many to many relationship with two ...
7
votes
1answer
205 views

Issues with EE Flickr for ExpressionEngine and favorited photos

I'm using EE hive's flickr plugin. I've authenticated ExpressionEngine with my flickr account but i'm having issues getting the favorites tag pair to display any information. I'm using EE 2.5.3 and ...
6
votes
2answers
564 views

How to add a custom JavaScript to the “New Entry” control panel?

How can I add a custom script to the "New Entry" control panel page to interact with the input form. The script does not need to be added to the "Edit Entry" page and certainly should not be added to ...
6
votes
1answer
180 views

template_fetch_template hook $row parameter

I'm considering writing an extension that greatly depends on hooks that are available before and during template parsing. I see in the ExpressionEngine hook documentation that there is a hook called '...
6
votes
2answers
215 views

What hook should I use that executes before a channel entries tag is parsed?

Suppose I have a template with a channel entries tag on it. I need to execute an extension method during a hook that runs before the channel entries query takes place. It doesn't matter what ...
5
votes
1answer
521 views

Multiple Hooks, One Extension

In the documentation the code to add enable extension hooks is like this $data = array( 'class' => __CLASS__, 'method' => 'truncate_this', 'hook' => '...
4
votes
2answers
1k views

ExpressionEngine add javascript to CP head

I have been struggling with this for a while now and am stuck I am writing an extension for ExpressionEngine 2 (not a module) and need to add a script tag to the header of the page. I have tried: $...
4
votes
2answers
222 views

Pre-populating SEO lite fields: custom extension advice

I have a client site which utilises the SEO lite module. The client has come back with a feature request which I'm trying to figure out a way to achieve: they want to pre-populate the SEO fields on a ...
4
votes
1answer
108 views

How to find out what class/function has invoked extension hook?

I have an extension that relies on certain extension hook. The hook can be invoked either by function from EE core or third-party module. I need to be able to tell what function / class has invoked ...
4
votes
2answers
1k views

Channel entries not automatically filtered by language when using Transcribe

Hello fellow ExpressionEngineers, I'm in the process of translating the website of one of my companies. It was made in french and I'm doing the english language translation. For that job, it seemed ...
4
votes
1answer
85 views

Is there documentation on the Safecracker object argument on the safecracker_submit_entry_start/_end callback function?

I am using an extension that uses the hook "safecracker_submit_entry_start" and "safecracker_submit_entry_end". The function that handles the callback has a safecracker object argument. I am ...
4
votes
1answer
327 views

Tax issue with Cart Throb

I'm scratching my head with a Cart Throb problem. I have a custom extension that handles tax, and it is returning the value of tax properly. But the tax is not being added to the total in the cart. ...
3
votes
1answer
178 views

How to force installation of extension during module install

When installing a module how do you require it's extension to be installed at the same time and vice versa? I did a google search and looked over the docs as well and didn't find anything. That doesn'...
3
votes
3answers
91 views

ExpressionEngine snapshot add-ons?

My client is forever concerned with making big changes in EE. For instance, using Structure to reorder pages, or renaming entire sections of the site. I'm wondering: Are there any add-ons that can ...
3
votes
1answer
100 views

Modules vs Extensions

I am very new to ExpressionEngine and don't quite fully understand all the concepts yet as I come from a solid OOP environment. When would you use functions in modules and when would you use functions ...
3
votes
1answer
154 views

Correct way to share functions/methods between Module and Extension

I'm just getting acquainted with Add-on development beyond basic plugins and I'm not exactly sure the proper way to organize my files. I have a base Module file, mod.xxxx.php that has a handful of ...
3
votes
1answer
437 views

Trying to write a simple extension… problem 1, getting it to enable!

I'm trying to put together a simple Extension that will update an existing database table when an entries in a specific channel are set to 'open'. I have been looking at the Ellislab tutorial on ...
3
votes
2answers
378 views

Saving entry with grid field isn’t working

I’m creating an ExpressingEngine extension that upon activation, automatically creates a channel with fields. One of the fields the extension creates is a grid field. I create the field like this: $...
3
votes
1answer
39 views

Problems overriding mod.member_settings.php email_prefs_form and update_un_pw_form

I have an extension and module that handles authentication for EE. I'm having some troubles understanding how to go about over-riding the handling in mod.member_settings.php. There is a hook for ...
2
votes
1answer
325 views

before_channel_entry_save hook

I am writing an extension on EE 3.5.11 and I am using the before_channel_entry_save hook. In the EE documentation it says and modifications to the object will be saved. I am doing something like this ...
2
votes
2answers
275 views

Expresso Store tax hook help?

I’m creating an AvaTax Tax Calculator extension for Expresso Store utilizing the ‘store_order_taxes’ hook. After getting a response from the API, I'm modifying the value of the tax rate as follows: ...
2
votes
3answers
2k views

Accessing libraries in modules and extensions

I'm developing a module and an extension and I'm having trouble accessing the custom libraries that I placed inside the "libraries" folder of my module directory. I've been trying to link to them ...
2
votes
2answers
253 views

entry_submission_start does not fire as expected

I am trying to use the entry_submission_start hook to be able to check the current settings before the extension updates them. I expected the hook to fire before the entry is submitted, but when I ...
2
votes
1answer
78 views

In EE 2.X what replaces the submit_new_entry_end hook?

I'm working on converting an old 1.X extension over to EE 2.X, but my hook was 'submit_new_entry_end'. I can't seem to find a reference to what hook should replace it. My guess is '...
2
votes
3answers
361 views

With the hook entry_submission_end, is it possible to know if the entry is inserted or updated?

I'm working on an extension that indexes the content of the entry when publish form is submitted, but I need to know if the entry is a new one or an updated one, and in both case, I need the entry_id (...
2
votes
3answers
114 views

New items since last visit

I'm in the process of setting up a new member based site. I'm avoiding the Forum module as the templating system is difficult at best to style and many of the functions are overkill for our ...
2
votes
2answers
2k views

What is the best way to start using hooks?

I've used EE for a while now but I'm new to creating extensions or modules. I want to add a functionality where a bunch of email addresses stored in a database get notified when an entry is submitted ...
2
votes
1answer
96 views

Run extension on page refresh?

I am new to plugin/extension development in EE. I currently have an extension that creates a cookie and saves a value to it. What I want is on every page refresh this value to be updated. Is there a ...
2
votes
1answer
123 views

Add-on Dev: Extending channel->entries and tagdata

I have a search module that grabs locations based on coordinates and estimates distances. I've decided to extend then channel class so I can take advantage of the entries method to display search ...
2
votes
2answers
242 views

Gateway Extension Error

I installed a new custom gateway I use via omnipay into EE2 backend, but when I go to 'Expresso Store' and click on 'Payment Gateways' to see if my payment gateway displays in the list, it gives me ...
2
votes
1answer
411 views

Add custom validation to Content_publish form

In our system, entries are created from the Control Panel, and one of our custom entries needs more complicated validation rules. Basically, depending on the status of the submitted entry, we need to ...
2
votes
1answer
1k views

Calling extension or module method from plugin

I need to call an extension or module method from a plugin. Anyone know how to do that? Eventually solved with this code: include_once(PATH_THIRD.'extension/mod.extension.php'); $this->EE->...
2
votes
1answer
216 views

Problem calling action in browser

I have made an extension that creates an action. The action has been created and is in the database with an ID of 34. But when I go to the following URL: http://mywebsite.com/index.php?ACT=34 I get ...
2
votes
2answers
32 views

How do you get the parsed html of a page on the back end? (Within an Extension Using PHP)

How do you get the parsed HTML of a page on the back end? (Within an Extension Using PHP) EE5
2
votes
1answer
156 views

Exp:resso Store Add a new Custom Report

The documentation suggests that you should be able to (fairly easily) create a custom report type and add it to the Exp:resso Store Reports section. But beyond the hook $reports = ee()->extensions-&...
2
votes
1answer
316 views

Unable to modify data with ‘entry_submission_ready’ extension hook

I’ve read a few posts on this, and for the life of me I can’t get this working. I want to intercept a Channel Form submission, and modify the submitted data. I’m using the ‘entry_submission_ready’ ...
2
votes
1answer
311 views

Expresso Store Hook store_order_complete_end

I am very new to EE2 and using Expresso Store in one of my websites in EE2 and need to use this hook when the order has completed and payment has been made successfully. The code I need to call is ...
2
votes
2answers
125 views

Synchronise Files programmatically/automatically

I'm using phantomjs via an extension to save a screenshot into an EE file directory, but before it's accessible in the admin area, I need to synchronise files. I can't see anything in the docs for ...
2
votes
2answers
137 views

EE Extension for OmniPay / Paypal

I have created a simple extension in EE to handle PayPal payments on submission of a Channel Form, which seems to be working up to a point. My problem is how do I get the extension to handle the ...
2
votes
1answer
267 views

Local site breaks with production database

I've been using the Focus Labs bootstrap with great success for my last few projects. However just now I ran into a snag. I exported my production database, imported it locally, and now the site does ...
2
votes
1answer
104 views

Member Activation Redirect conflicts with Twomile Login Redirect

The add-ons Member Activation Redirect and Twomile Login Redirect don't play nicely together - has anyone gotten that to work? It seems like the "welcome" page set under the first extension gets ...
2
votes
1answer
65 views

EE Store 2 and paid UPS extension seems to be broken

I am trying to implement the UPS Shipping Extension purchased and it appears to be broken. I've uploaded the extension, enabled it, entered in the Access Key, User ID and Password. I've setup the ...
2
votes
1answer
4k views

displaying a flash message after redirect

I'm programming an EE extension, and in the save_settings() method, if I redirect() (after unsuccessful data validation), the message stored in the set_flashdata() method doesn't show. If I comment ...
2
votes
2answers
46 views

How can I find out the file extension of a Safecracker file within matrix?

I would like to attach different CSS classes for different types of file within a Matrix field. I have tried: <a href="{group_files}{if group_files_file}{group_files_file}{if:else}{...
1
vote
2answers
92 views

Member Group Tabs throws blank screen after EE upgrade to 2.10

After an update to EE 2.10.1 the module Member Group Tabs throws the following error: Call to undefined method Cp::set_variable() in /path/sh_member_group_tabs/ext.sh_member_group_tabs.php on line ...