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
19 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
55 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
27 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
59 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
26 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
36 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
32 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
15 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
24 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
10 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
47 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 ...
0
votes
0answers
24 views

How can I setup composer within Store so it doesn't conflict with other addons?

Store uses it's own composer.json file with various dependancies; however I have another addon which is also using composer and shares some of the same dependancies (but different versions). I'm ...
1
vote
2answers
25 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
97 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
112 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
154 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
49 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
49 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
35 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
18 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
36 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
41 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
26 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 ...
1
vote
2answers
129 views

is it healthy to built a web services or a web app using EE?

we are growing company and we support and use EE for more than 4 years and continues, because we believe in it, and it is our choice ever. Any ways, I was in interesting discussion with a developer ...
0
votes
2answers
34 views

Possible to access templates from plugin?

From within a plugin, is it possible to access a template? I need to do some processing on the resulting output of a template from within the plugin.
1
vote
1answer
55 views

Plugin Development - using template params in a function

I'm querying an external timetable database, and I need to get the start and end points of the journey to use in a hidden field. My template code looks like this: {exp:get_piers:departure_pier ...
0
votes
0answers
22 views

how to upload image in custom module

I am making an expression engine add-on using a file field form_upload(image) in view/file what image field is excist in table of module and other input field data is inserting perfectly but image ...
0
votes
1answer
31 views

Conditionally returning result from a plugin

I'm writing a custom plugin to tap into an external database, and I'm getting the overall results I want. However, I want to wrap my return values around a conditional to avoid processing unnecessary ...
0
votes
0answers
47 views

Is it safe to initiate a temporary session in plugin for use with the Channel Entries API?

I have a plugin that will accept posted form data from a member group and then create or update a channel entry which that member group is not given permission to post or update in (via the control ...
1
vote
1answer
70 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
65 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
62 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
31 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
29 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
96 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
16 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
1answer
49 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
34 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, ...
1
vote
0answers
90 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
92 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
36 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
171 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
79 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 ...
2
votes
1answer
72 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
29 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
61 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
59 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
80 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
119 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' ); ...