For questions specific to the creation/development of ExpressionEngine addons which include Modules, Extensions and Plugins.

learn more… | top users | synonyms (1)

0
votes
1answer
18 views

How to create an Addon

So I've been using EE for some years but I've never created an add-on before and I was hoping for some guidance on how to approach it and whether it should be an extension or a module. Requirements: ...
0
votes
1answer
26 views

Codeigniter style validation callback function not working

I've created an EE custom addon that processes a simple enquiry form. All works well but I'm trying to add a callback function to my validation rules and it appears to be completely ignored. Here's ...
0
votes
0answers
6 views

How do I create a new menu item

When I create a new page in Expression Engine I do not know how to link it to a new menu item. Could you please offer advice on how this can be achieved?
0
votes
1answer
18 views

Is there a way to get the member_id of a user that was just logged out?

I currently have the core file Session.php modified a little to keep track of login/logout information and member_ids - create_new_session() for login, destroy() for logout. I realize that this can ...
0
votes
0answers
17 views

EE3 Hooks - Equivalent to 'publish_form_channel_preferences' or 'publish_form_entry_data'

We're working on porting BWF over to EE3 and are looking for the best match for all the hooks we use - there's a lot of them. Most seems to have an EE3 equivalent but we can't find anything which ...
0
votes
1answer
18 views

Enable “search:” Parameter in Custom Add-On Channel Entries Method (EE2)

I'm extending the Channel module entries() method in my custom plugin and am trying to figure out how to include the search: parameter. I get that the search parameters are an array accessed via ...
0
votes
1answer
83 views

Upgrading module from EE2 > EE3

Can I confirm that if a custom module does not have a control panel interface, conversion from EE2 > EE3 only requires the following changes: Create a addon.setup.php file
0
votes
1answer
16 views

Lang text with control panel interface

On a new project, the client requires that it be possible to add/modify all text. I will be using channel entries to hold majority of the 'content' text, but I am more perplexed by how I should allow ...
3
votes
2answers
63 views

For a list of events, get the first occurrence of each event, programmatically

In an add-on, I'd like to get a list of entries (events) ordered by the first upcoming occurrence of that event. For example: Event X: 2016-01-05 and 2016-01-08 (2 occurrences) Event Y: 2016-01-07, ...
0
votes
2answers
26 views

Custom AddOn, Using SimplePie to display an enclosure

I need to display an RSS feed on my site. I could use the built in RSS_Parser add-on, however that add-on does not appear to support adding an item enclosure (image). This is a requirement for this ...
0
votes
1answer
10 views

Date Input Field in CP View

Is it possible to have a date input field in a control panel view page? Is there any kind of build in javascript library for the date calendar etc? Thank you.
0
votes
0answers
19 views

Module Settings Column

I am creating a competition website. For the competition I am creating a custom module. The module has a cp backend where I want to be able to add some details about the competition. For example, ...
0
votes
2answers
22 views

How to add a new database column in third party module?

I've created a module for ExpressionEngine and since it's initial installation I need to add a new column to the database. I've managed to create the update funtion in the upd.modulename.php file and ...
0
votes
1answer
15 views

Possible to spoof last page, or end early in multi-page form?

I have a form with a number of pages and radio buttons, each one has a score attached. If the score is lower than 5 by the 5th page I need to end the form and display the results, else carry on with ...
0
votes
1answer
27 views

How do I find/make the URL to a PHP page in my extension?

If I have a control panel page and I want to submit it to a PHP page in my extensions' directory, how do I do that? What would the URL be? Or would I instead make an ACT URL? If so, how do I do that ...
0
votes
1answer
28 views

What's the proper way to alter a form in the control panel? (Using an extension in EE3)

I have looked through the hooks and cannot figure out which hook could provide a way to alter a form in the control panel (e.g. the create/edit member form or publish/edit entry form). I don't want to ...
0
votes
1answer
28 views

Trigger the member self activation email from custom add-on with member registration

So i have written a custom module to do some stuff, but part of that stuff is to register a new member into EE. All of that is working great, but, it doesn't send the self activation email out (even ...
0
votes
2answers
68 views

How to access a custom table name that isn't prefixed with exp_

I'm developing an EE module that needs to access a non EE database table that isn't prefixed with 'exp_'. How would I go about doing this? In Codeigniter I can use set_dbprefix, but that doesn't ...
0
votes
1answer
22 views

Can the 3rd tagpart of a plugin be used freely, or does it HAVE To be the name of a method?

I'm trying to make a plugin that I need to be as simple as possible to use. If possible, I want the usage to be: {exp:pluginname:anytext} And the output to be: anytext Obviously there will be ...
0
votes
1answer
18 views

expression engine extension development - make a field required

In a custom extension, can I make a settings field required to have a value without having a create a custom form using settings_form()?
0
votes
1answer
28 views

Render embed tags Shine pdf

I want to use the module Shine pdf to generate pdf's. Only problem is it doesn't render embed tags in the template. I would like to change the code in the module so it would render embed tags. This ...
0
votes
2answers
65 views

Hook to add a new column in control panel

For an extension I would like to add an extra column in the cp's entries overview. I have searched for a hook I could use for this, but could not find anything. I could use Zenbu, but that is a bit ...
0
votes
1answer
39 views

Add a new menu button in control panel on module installation

For the module I am developing I would like to add a new menu button in the control panel. I could do that manually, but I was wondering if there is a standard EE function to add a new menu button ...
0
votes
0answers
32 views

Processing file uploads with api_channel_entries

Does anyone know how to (or whether it's possible) to process file uploads using api_channel_entries? I'm building a prototype of a mobile app which posts into an EE channel via a custom module. The ...
0
votes
1answer
17 views

Update field content with extension when saving or editing an entry

I have created an extension which uses the entry_submission_ready hook. It is doing some calculations which I want to add to a field in the entry. How can I add the output of the calculations to the ...
0
votes
0answers
18 views

Implementing Assets in my Addon

I'm working on an ExpressionEngine addon that will allow users to upload a single image through my custom field. According to here I should be able to hook into Assets to care for this file ...
0
votes
1answer
14 views

List upload destinations in module

I'd like to show a list of available upload destinations on a form in a custom module, are there functions to help with this?
1
vote
1answer
21 views

how to make multi value variable in addon development

I am developing an addon for EE. i could not find a way to make a variable with multi value behavior. like: i would like to write in the template: {location:lat} {location:lng} this can be (Pair ...
0
votes
1answer
125 views

form validation for module mod file template tags

I am creating a dynamic form on the fly for use in EE templates. I create the tags using the mod.module_name.php file of my module. I am trying to run validation on the form, every field is required ...
1
vote
1answer
31 views

module template tag looping thru values in module template tag

I am building a module and I am looping thru data to set a value for each key, to be used as EE template tags. foreach($missing_fields as $field) { $count++; $vars = array( ...
0
votes
4answers
250 views

How to edit Expression Admin panel

I need to customize the Admin Control Panel in Expression Engine I don't know how to do it. If any one knows kindly tell me. Updated Actually I want to show the channel data(any entries) in ...
1
vote
1answer
43 views

Syntax for checkboxes in extension

I’m creating a custom ExpressionEngine extension and I need to add a checkbox. I’m struggling to find the options I need to use for the channel fields API. Currently I have: array( 'field_name' ...
1
vote
1answer
99 views

redirect in add-on module redirecting me to admin control panel login form with # appended in URL

$this->EE->functions->redirect(BASE . AMP . 'C=addons_modules' . AMP . 'M=show_module_cp' . AMP . 'module=module_name_here' . '#tabsettings'); EE v2.9.2 I want to redirect the user after ...
1
vote
3answers
51 views

Channel Entries - addon to charge members per entry?

Does EE have an addon, either native or third party, that can charge members to post entries? Some entries will be a one time payment while others need to be recurring. I need the entry to expire at a ...
1
vote
1answer
17 views

is it possible to set and retrieve flashdata in sessions_start() hook

I'm attempting to set flashdata in the sessions_start() hook and retrieve it on the next page load. It does not seem to work although I am able to set_flashdata and then var_dump the session object ...
1
vote
1answer
35 views

Get IDs of deleted entries

I’m creating an ExpressionEngine extension. I want to get the IDs of any records that are deleted. I’m aware of the delete_entries_end() and delete_entries_loop() hooks, but they both return void ...
0
votes
1answer
23 views

Is it possible to use $lang variable in fatal_error output on front end?

In my custom module I want to display a series of error messages for X, Y & Z. I have a single tag in the mod.[module_name].php file and I want to throw out an error if no id has been provided. ...
2
votes
1answer
74 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
43 views

How to include search params in plugin with TMPL->tagparams

I'm building a custom plugin tag pair which returns channel entries, following the excellent answer to this question. Almost everything seems to be working: I set the TMPL->tagparams array to my ...
0
votes
1answer
279 views

Send email from EE template with file get contents

I’m creating a custom ext. that handles form submission + email sending. When a form or reservation has been made the data is put in EE and 2 emails are being send. One email to the client and one to ...
1
vote
1answer
177 views

Formatting custom date fields within channel entries row hook

In Shortlist the {exp:shortlist:view} tag extends the channel->entries() method for it's parsing needs. This works and allows for full custom tag parsing without much extra effort, but runs into ...
0
votes
1answer
337 views

entry_submission_end hook with ee()->api_channel_entries->save_entry

EE v2.9.0 Build Date: 20140715 This error displays about 44 times after submitting an entry with a white screen when using the entry_submission_end hook. I have roughly 20 field types enabled, and 37 ...
0
votes
1answer
145 views

load->view not working in some cases

I have a function in my module.php file: public function evo_admin_pb() { $this->EE->load->library('db/cache_mproc', '', 'qodb'); ...
1
vote
1answer
55 views

Does replace_tag fire for single tags if there is no $data?

I'm having a problem with a custom field type where I want to return 'some value' on the condition of there being no value in data. This works when I use a tag pair, but not when I use a single tag. ...
0
votes
1answer
38 views

How do I create a single template tag which outputs multiple bits of data?

I have just created my own module and need a bit of help displaying the content on the front end. I currently have some template tags {exp:address_book:contact}{/exp:address_book:contact} and within ...
1
vote
0answers
21 views

Show small icon in Assets if image is being used in system or not?

Looking for a way to show, with a little icon or other indicator, if a file in the Assets module is used in the system or not, as this would be a great help to editors. This would help while ...
0
votes
1answer
41 views

Problem setting a stash variable in a custom module

I'm trying to set a stash variable in a custom module I'm writing with the following code: $params = array( 'name' => 'st_test_variable', 'scope' => 'user', 'type' => 'snippet' ...
1
vote
1answer
42 views

Accesoire development, determine publish page

An older accesoire add-on i have have, uses if($this->EE->input->get('C') == 'content_publish'){ ... } to determine if we're on the publish page. Since 2.8/2.9 the cp url structure changed ...
0
votes
1answer
29 views

How do I add an entry to a category progammatically in an add-on?

I have a site that uses ChannelForms for users to add entries to a channel. These entries need to be categorised, but I can't rely on users to pick the right category as this depends on data they ...
0
votes
1answer
46 views

Custom fieldtype: tag pair and replace_tag_catchall()

I'm building a new fieldtype which should be used with: single tag: {myfield} ...which correctly calls replace_tag() method single tag with modifier: {myfield:modifier} ...which correctly ...