Hot answers tagged

4 votes
Accepted

What Addons are compatible with EE 3.0?

I found the answer. Devotee has a list here.
forrest's user avatar
  • 1,068
3 votes
Accepted

PHP Version compatibility issue with EE module

As error says, PHP 7 is only allow variables to passed by reference not an instance. You now need to remove that line and replace all $this->EE calls to ee(). That will work for you.
Jainil's user avatar
  • 626
3 votes
Accepted

Module development: Any reasons creating catch-all action is a bad idea?

It's really your choice here. I imagine that this framework is best for smaller addons. One point of access is always slightly frowned upon; because it creates a SPOF in your addon. Trust me, I ...
jrothafer's user avatar
  • 5,900
3 votes

How to create modules in ExpressionEngine?

The 1st party guide is everything you need to get the concept of module/extension/add-on/plugin/fieldtype development : https://ellislab.com/expressionengine/user-guide/development/index.html If you'...
Blatant's user avatar
  • 2,418
2 votes
Accepted

Stash with timestamps and custom written module

Carefully "unescape" the variables you want to be cached, so e.g. {stash:nocache} <div> {if {current_time format="%U"} - {/stash:nocache}{event_time format="%U"}{stash:nocache} < -86400} ...
Mark Croxton's user avatar
  • 5,234
2 votes
Accepted

Render embed tags Shine pdf

What you're looking to do is far from trivial, however.... Lets simplify first. Forget the pdf module, I assume you want to render your embed (and any other) tags and push the result into your pdf ...
Blatant's user avatar
  • 2,418
2 votes
Accepted

Add a new menu button in control panel on module installation

There isn't a standard function, but there is a standard event hook, so within your module you can create an extension too, and use this to input your menu item. This way when you install the module, ...
Blatant's user avatar
  • 2,418
2 votes

Add form to EE Module for front end processing

Take a look at the Code Ignitor Validation Helper. You can use this within PHP on an EE template, it really is as easy as this (example from the CI Docs), just replacing $this with a reference to EE : ...
Blatant's user avatar
  • 2,418
2 votes
Accepted

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

The add column function requires the database name, something that I had missed out in my function. ee()->dbforge->add_column( 'module_table', $updates ); Full code: public function update( $...
Kieran McClung's user avatar
2 votes

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

add_column just defines the column specs. After which you need to run create_table https://codeigniter.com/userguide2/database/forge.html#add_field "After the fields have been defined, they can be ...
Jim Wyse's user avatar
  • 1,987
2 votes
Accepted

Global variable as a module tag pair's parameter?

One really simple way to get around parse order is just to use an embed. {embed="embeds/_rest" ip_address="{ip_address}"} Then in your embedded template (embeds/_rest): {exp:rest url="http://domain....
Alex Kendrick's user avatar
  • 7,961
2 votes

How to update Modules?

Important edit: a database backup before you do any module updating might prevent data loss and is always a good idea! It is a pretty straight forward process. For Transcribe simply follow the ...
JCOGS Design's user avatar
  • 3,587
2 votes
Accepted

Upgrading module from EE2 > EE3

Generally yes, you only need to add addon.setup.php. There of course could be some deprecated code etc.
Yuri Salimovskiy's user avatar
  • 2,846
1 vote
Accepted

Settings for a module

For modules, you just go ahead and create your own DB table that stores your module settings. So just like you create your modules main table for storing data submitted from your form when you install ...
jrothafer's user avatar
  • 5,900
1 vote

Creating a button in module control panel to manually perform module action in EE 2

I suggest you to use below code in mcp file of your module folder. url = BASE .'&'.'C=addons_modules'.'&'.'M=show_module_cp'.'&'.'module=MODULE_NAME'. '&' . 'method='.$method; $this-&...
Harsh Barach's user avatar
1 vote
Accepted

Lang text with control panel interface

You can either use built-in Global Variables feature or Low Variables add-on Both will work same way, you'll just place {variable_name} in your templates, without any other special tags, but you may ...
Yuri Salimovskiy's user avatar
  • 2,846
1 vote

PHP Version compatibility issue with EE module

Pretty sure you don't need this in a plugin `$this->EE =& get_instance(); ref https://docs.expressionengine.com/v2/development/plugins.html
Jim Wyse's user avatar
  • 1,987
1 vote
Accepted

Storing Single Option Value in Admin

Set up a Global Variable with the value you need. Then you can access the value from within a template simply by including the Global Variable name (within curly brackets) within your templates - e.g....
JCOGS Design's user avatar
  • 3,587
1 vote
Accepted

Unable to Access Add-ons Folder

This is a bug in 3.4.5. the solution is here. Click on the solution tab to see the necessary code change.
forrest's user avatar
  • 1,068
1 vote
Accepted

Return Variables to a Template

I had similar situation this week. I've made two functions - one for the form template tag and second is action callback that works with form data. In this manner I could output information with ee()...
sirBlond's user avatar
  • 126
1 vote

Module not showing in modules list for installing

You will need to make sure the folder you place in the third_party directory matches the package name. From the Github repo, you can see that the files are called xxx.flag_master.php, so therefore ...
Fred Jones's user avatar
1 vote
Accepted

Module not showing in modules list for installing

The files should be located inside system/expressionengine/third_party/flag_master/ folder, not directly in third_party folder. Please check that.
Yuri Salimovskiy's user avatar
  • 2,846
1 vote

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

The email are being sent with help of Email library. In the code you posted, there is no reference for it, therefore no emails go out. Here is sample code for sending member activation email from one ...
Yuri Salimovskiy's user avatar
  • 2,846
1 vote
Accepted

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

If I recall correctly, using the query module (and relative portion of the database class) doesn't force the prefix. https://ellislab.com/expressionengine/user-guide/add-ons/query/ So you can use ...
jrothafer's user avatar
  • 5,900
1 vote

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

You can set the database to be used like so: $mydb = ee()->load->database('mydatabase', TRUE); By setting the second parameter to TRUE the function will return the database object. and then ...
foamcow's user avatar
  • 7,176
1 vote
Accepted

Store: who can access "Settings?"

You will have to login with your super admin account and go to the settings panel. From there you will need to navigate to the security panel. You should see your member group on the right hand side ...
Justin Long's user avatar
  • 7,556
1 vote

form validation for module mod file template tags

Looks like you're looking for the Forn Validation library that is inherited from CodeIgnitor. What you seem to be trying to do is set the validation rules at thes same time as setting up the form, ...
Blatant's user avatar
  • 2,418

Only top scored, non community-wiki answers of a minimum length are eligible