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

learn more… | top users | synonyms (1)

1
vote
1answer
18 views

How can I use third party class in EE to render instagram images on templates?

I have been using an instagram class in projects for Laravel and other small php sites and it has seemed to work well. I include a require_once in my functions file. I then create a function that ...
1
vote
1answer
19 views

Parse custom field data in entry_submission_end_hook

What I'm trying to do is parse the custom field data sent to the entry_submission_end hook. Here's what I was able to dissect out of the channel entries module, but what I'm confused is how to ...
1
vote
0answers
14 views

ACT ID gives 403 from Paypal IPN

I created a function in ee module to handle Paypal IPN as follows: function ipn_paypal(){ include_once("libraries/Paypal_lib.php"); $objPaypal = new Paypal_Lib(); ...
1
vote
1answer
22 views

Stored module version number fails to update after upgrade successfully runs

We have a custom module which has successfully used the update method in upd.addon-name.php to apply database changes. We are attempting to use it again for another version update (from 1.4.0 to ...
2
votes
1answer
22 views

File_upload_preferences_model::get_upload_preferences() removed - What to use?

I've had a plugin for ExpressionEngine developed that uses the File_upload_preferences_model::get_upload_preferences() method, which is now removed. Is there a way for me to update the plugin to ...
3
votes
3answers
68 views

Add-on - Building Queries w/ Field Names vs Field ID's

I have an add-on I've built to provide custom e-commerce reports for a client. It started as one of those 'we need this very specific thing' builds and of course has grown and grown as more needs ...
0
votes
0answers
9 views

edit_entries_additional_celldata

I'm looking for a way to display entries in the control panel in the order of being last updated. I saw that EE1 has the hook edit_entries_additional_celldata but it's not present in EE2. Is there any ...
0
votes
0answers
29 views

Looking for an a icon dropdown add-on?

Did anybody ever make an add-on that has a icon dropdown (select dropdown)? Something like this: http://www.marghoobsuleman.com/jquery-image-dropdown Where you can add icons. Preferrably svg with a ...
1
vote
0answers
20 views

When building a fieldtype add-on, are you able to extend Grid?

I wish to create my own fieldtype add-on (a fieldtype where users are able to create advanced, responsive layouts using simple tools in the backend). I currently do this without an add-on using Grid, ...
0
votes
0answers
32 views

Problem parsing deep arrays with parse_variables()

I have a problem with the parse_variables() method once my data contains an array at a certain depth: foreach ($cvs->result_array() as $id => $row) { $variables[] = array( 'id' ...
2
votes
1answer
68 views

Developing EE add-ons with code assist

First off, pardon the noob aspect of this question. I have developed on other platforms, but it's been a while now. I was starting to build an EE2 module for one of my sites and I keep getting ...
1
vote
1answer
32 views

Store Sessions Timer

We're looking for a plug in that is already made or someone who would know how to create a plug in for Store that would essentially create sessions for buyers. What I mean is that someone places Item ...
1
vote
3answers
59 views

parse_variables multidimentional empty array?

I have a template tag that uses $this->EE->TMPL->parse_variables() to create a single item with an array of [items]. Array ( ... [accessRole] => reader [items] => Array ...
1
vote
3answers
49 views

Plugin to conditionally update status via cron

I need to create a plugin to conditionally update the status on all entries in a channel each day based on a date field. I don't think I need to interact with a template in this case, so would want to ...
0
votes
0answers
71 views

display results in template after submitting form, keeps redirecting

I have a recipe search form (it calls the results method in the mod.recipe_finder.php file) and it has a return parameter of "/recipes/results" On the results page, I want to display all the recipes ...
2
votes
1answer
61 views

Hook for Adding Custom Channel Entries Parameter Option

I'm trying to do something like orderby="custom_order" What hook would let you add and run a custom parameter option? Thanks!
1
vote
0answers
26 views

Get the current entry/template fieldtypes in a plug-in

I'm working on my first, more complex add-on and had a question on gathering field properties. If I create a tag pair, which wraps a field inside a template, what would it take to get the tag ...
2
votes
1answer
48 views

channel entries tag seems to run before my module function

The {exp:bmi_favorite:list_ids entry_type="recipe" site_id="1"} outputs 18|19 to be passed to the entry_id parameter. It does not work, unless I manually add the 18|19 into the entry_id, like ...
1
vote
1answer
39 views

Add on development. Database class not executing correct queries

i'm developing an addon. While developing i'm encountering a strange problem that I don't know how to solve. It's like EE is executing the wrong queries or something. For example, when I call this ...
1
vote
1answer
53 views

Best method to split module mcp file into multiple files

We are developing a module and the controller mcp file has become quite large. I wondered if there is a best practice for splitting this into multiple files. It's a collection of methods in the class ...
0
votes
0answers
73 views

Update channel entry

I'm new to EE. Actually I have some problem updating a entry. This is my code: ee()->load->library('api'); $data_item = array( 'stock' => '4' ); ...
1
vote
2answers
58 views

Member “change log” addon for EE

Is there an equivalent of a Change Log addon to track members actions in the CP for EE? I'm haven't seen anything like that unless I'm missing some native functionality.
1
vote
2answers
50 views

Retrieve Assets file data from custom module

I'm writing a custom module that's going to need to retrieve channel data using a direct database query. One of the custom fields is an Assets image and I need to get the full image URL and alt_text ...
3
votes
1answer
55 views

Initialize Wygwam within Custom Fieldtype

I'm developing a fieldtype add-on and within the fieldtype, I would like to include the option to let users choose Wygwam as the text element, if they have it installed. Is there some sort of a ...
3
votes
1answer
63 views

Parse exp:channel

Is there any way to parse tags exp:channel in a third party module. In my custom module I need to call exp:channel, but need to get entry ids before final rendering of the module. Can anyone know how ...
9
votes
1answer
244 views

Tools for learning ExpressionEngine addon development

What are the available tools/tutorials for learning to develop ExpressionEngine addons (modules, fields, extensions, plugins and accessories)?
2
votes
1answer
46 views

Load RTE into custom module for use in control panel

is there a way to load the RTE javascript in a module for the cpanel? I have tried the following, but keep getting an error when refreshing the page: ee()->load->library(array('javascript', ...
1
vote
1answer
30 views

Prevent multiple add_to_head() calls

In function display_field(), if a fieldtype needs to use ee()->cp->add_to_head('/path/to/foo.css') and ee()->cp->add_to_foot('/path/to/bar.js'), how can I get it to do so only once, even ...
1
vote
1answer
45 views

Old ExpressionEngine builds [duplicate]

Is there an official resource for downloading previous EE builds for add-on development/testing. I have recently started archiving all versions of EE and add-ons that I install, however I have only ...
0
votes
1answer
25 views

Version market share

I don't know how one would track such things, but does something exist/can something be built that tracks an estimation of the market share for each version of EE? The reason I ask, is that if such a ...
1
vote
2answers
83 views

Adding module configuration settings to config.php

As here, I'm looking to set some variables for a module. Creating a DB table seems a bit overkill (or maybe it's really not). I've noticed that the Simple Commerce Module does two things: creates DB ...
1
vote
1answer
63 views

Custom config files in an EE addon

I moved a custom addon out of system/third_party into a third_party folder above web root all was well until I realized that the addon didn't account for a different third_party folder location I ...
1
vote
1answer
42 views

Bundling Plugins and Templates

I looked at EE's Addons and the closest thing I can think off is to use Modules. However, the templates that I have in mind are using EE tags. I looked at EE's pre-installed modules and they seem to ...
2
votes
3answers
246 views

How do I add an XID hash to an old addon?

I'm using an older EE2 addon that doesn't appear to have support for secure forms. Does anyone know how to add the hidden XID hash field to the form via the addon code? I guess I'm really looking to ...
1
vote
0answers
173 views

How to load CodeIgniter language file into ExpressionEngine add-on?

in a custom add-on I am writing I am using Upload library. I cannot use $this->EE->load->library function because I'm rewriting some code, so I'm creating instance using this code: if ( ! ...
1
vote
1answer
161 views

pagination with current URL in custom module

I added pagination to a module, in a mod.filename.php Below is my code, it outputs the pagination (after it lists all the reviews) if you pass yes into the template tag parameter as seen below. After ...
1
vote
1answer
54 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
54 views

How do I add a new action in update method of my .upd module file?

I can't find any resources explaining how to use the update() method of a .upd file in module development. All the tutorials gloss over it saying things like; "we don't need this right now, so we ...
0
votes
0answers
35 views

How do I get the resized version of an image in a fieldtype plugin?

I have a custom fieldtype on my site which allows you to upload an image and draw on it. However, while the site uses a resized version of the image, the fieldtype displays the full-sized version when ...
2
votes
1answer
60 views

Is it possible to call public methods in my module using the core codeigniter mvc routing?

I am developing a module which resides in the third_party directory of my expression engine install, which includes a public method which sends an email when called via cron. Currently the only way I ...
0
votes
1answer
31 views

How can I add configurable variables to my add-on?

I have developed a module, and now I would like it to make it configurable by admin users. How do I go about adding editable variables (I assume to the control panel page) and how do I later access ...
2
votes
1answer
113 views

TMPL->parse_variables_row() not available in model?

I have a model (core_model.php) with lots of functions in there, however having an issue with the following one in specific : Class core_model { function __construct(){ $this->EE ...
1
vote
2answers
50 views

possible for custom module entries to show up in search results

I built a custom module that has its own group of tables that holds the data, it uses mcp.module_name and mod.module_name for the back/frontend I want to know if there is a hook or some api that ...
0
votes
1answer
230 views

custom form validation class for a module I am building

I am building a module for EE2 and I want to extend CI's form validation library. I also want a separate language file too, kept within my module's directory so it's separate from future EE updates. ...
0
votes
1answer
76 views

Passing preload_replace variables into a plugin

I've been working on my first EE plugin today, and I need to make it dynamic by passing either a PHP variable, or I would have thought I can use a preload_replace variable, from the template that ...
2
votes
2answers
55 views

{if} conditional prevent running module function

I created a module for GitHub's API and am having trouble preventing the module's function {exp:cl_github:repo_contents_archive} from running given a conditional. The reason this is imperative is that ...
2
votes
1answer
41 views

Is there a helper function to generate a link to a member profile for a control panel view?

Does EE have any built in classes or helper functions to perform common tasks in module code? In this instance, I want to generate an href to a member profile to use in a control panel view, from a ...
2
votes
1answer
36 views

How do I limit access to certain actions based on member role?

I only want a particular action to be available to certain user types. Is there a way to 'bake' this in when I register the action in my module install file, or do I need to check authorisation in the ...
1
vote
1answer
73 views

upload library not working in module I am building

I've been stuck trying to upload a file in a module I am buidling. I've tried using the EE instance and now I am trying the CI instance. I've checked permission settings and those are fine for the ...
2
votes
1answer
94 views

Possible to add data-validate=“x” to Safecracker form tag?

I'm wanting to add a new parameter (data-validate="parsley") to the Safecracker form tag. I know this isn't possible out of the box but was wondering whether it was possible to write a simple(ish) ...