Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Hot answers tagged

11 votes

expression engine upgrade from 2 to 3 to 4

The upgrade from EE2 to EE3 is a major step - from EE3 to EE4 not such a big one. So getting your site to EE3 is the thing to focus on. How hard this will be will very much depend upon how your EE2 ...
user avatar
  • 3,562
7 votes
Accepted

Error from YearList plugin: Non-static method Yearlist::usage() should not be called statically

Fixed it by changing this line: function usage() To this: public static function usage() Source: https://support.ellislab.com/bugs/detail/20352/plugins-through-php-warning-with-strict-errors-on
user avatar
  • 397
5 votes

Batch Uploading & Watermarking?

The CE Image plugin has a watermark functionality (and much more), check 'watermark' on this page: http://www.causingeffect.com/software/expressionengine/ce-image/user-guide/parameters
user avatar
  • 1,356
5 votes

Batch Uploading & Watermarking?

Channel Images can do that and a lot of other neat stuff: http://www.devdemon.com/documentation/channel-images
user avatar
  • 136
4 votes
Accepted

Conditionally returning result from a plugin

After setting the return data, you need to return program control to the Template class, which ends execution of the current method. if ($date[2] == 25 && $date[1] == 12) { $this->...
user avatar
  • 2,255
4 votes
Accepted

Documentation for Shine PDF

Shine PDF Documentation Shine PDF uses the mPDF library to generate a PDF on-the-fly from an ExpressionEngine template. At its core, Shine PDF is simply a tag pair that accepts channel:entries ...
user avatar
  • 5,407
4 votes

Run plugin without affecting loading time (external)

You can make a module - like Steve advice. Use Yeoman ExpressionEngine Add-On generator to simplify developing process. On server you will need to setup cron with wget: execute cronjob every day at ...
user avatar
  • 5,781
4 votes
Accepted

Run plugin without affecting loading time (external)

You can do this by developing your add-on as a module rather than a plugin since only modules can use EE actions. (See the EE docs for an explanation of the difference between the types of add-on.) ...
user avatar
4 votes
Accepted

What Addons are compatible with EE 3.0?

I found the answer. Devotee has a list here.
user avatar
  • 1,068
4 votes

Expression engine 3 - plugin not being picked up

you need to add a addon.setup.php file to the folder. https://docs.expressionengine.com/latest/development/addon_setup_php_file.html
user avatar
  • 1,987
3 votes
Accepted

no_results in custom plugin?

Yes, of course! return $this->return_data = ee()->TMPL->no_results(); Or this, on the versions before 2.6: return $this->return_data = $this->EE->TMPL->no_results();
user avatar
  • 6,108
3 votes
Accepted

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

You could create an extension which uses the channel_entries_query_result hook to add your variable to each entry row. That will get parsed along with the native vars. To pass data from your module/...
user avatar
  • 11.3k
3 votes
Accepted

Entries within entries from a single channel template

No add-ons are necessary. You could use an embed, passing the lawyer's member ID to the embedded template. Embedded templates are parsed separately, and would allow you to use a separate channel ...
user avatar
  • 2,255
3 votes
Accepted

Custom Plugin Won't Work

Your plugin class method needs to return the (parsed) tagdata instead of setting the $this->return_data property. The latter is only needed if the class constructor is used for template output. So: ...
user avatar
  • 11.3k
3 votes
Accepted

Accessing extension settings from plugin throws a PHP warning

Judging from this statement: "The plugin uses the calculation method of the extension", I assume you're doing something like this in your plugin: $ext = new Your_addon_ext(); return $ext->...
user avatar
  • 4,002
2 votes

Expression Engine Plugin for Changes Log

I found that Audit Pro does the job! Thanks though
user avatar
  • 151
2 votes
Accepted

Problem with ee()->input->post in plugin

So this is now fixed. What I did was convert the plugin to a module and use EE's ACT action urls to handle the form posting. I got some great tips from looking at Andrew Weaver's EE Addon Recipes ...
user avatar
2 votes

How do I add a no follow meta tag to expression engine CMS templates?

It's a simple matter of adding the robots meta tag to the templates which you don't wish to be indexed. Then use Google's Webmaster Tools to remove those URLs from its index. You could create a '...
user avatar
  • 7,176
2 votes

Hook into the channel entry display

Yes, you can. Check Channel Module Extension Hooks You possible need channel_entries_tagdata($tagdata, $row, $this) Modify the tagdata for the channel entries before anything else is parsed.
user avatar
  • 5,781
2 votes
Accepted

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

The search parameters belong in a different property of the Template object: ee()->TMPL->search_fields So use something like this: ee()->TMPL->search_fields['weekday'] = '=Monday';
user avatar
  • 11.3k
2 votes

Member Portals for Employees

think you're very lucky :) check this new post by Sean Smith on how he built a resume builder Channel Form and Grid/Matrix fields
user avatar
2 votes

Custom data in user sesstion

Remember Me Save entries for a user during a session. This could be used for a 'add to cart' function or for a 'product compare' function (save entry_id's for later use). Entries are only ...
user avatar
2 votes
Accepted

Plugin function question

Conditionals are your friend! Assuming both parameters are required: public function eventtitle($eventCode=NULL,$_type=NULL) { // is either of our parameters null? // if so, try and get it ...
user avatar
  • 5,900
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.
user avatar
  • 2,831
2 votes

Plugin Development - Is it possible to extend the 'Grid' fieldtype?

I'm doing the same right now. In short - yes, it's possible. Unfortunately there are almost no docs on that, so I took Grid field as example and tried to re-create it with modified functionality. ...
user avatar
  • 2,831
2 votes

EE2 - plugins page blank

EE has to look at all your plugin files to create the list of plugins. You have a rogue plugin that isn't formatted correctly, and is causing the issue. Start by removing all of your plugins. Then ...
user avatar
  • 5,900
1 vote

How to modify existing plugins parameters

You don't need to edit the file for that. You can just use monthsort="desc" on the tag. Check out docs to see what other parameters are available.
user avatar
  • 11.3k
1 vote

Relationship field lookup in an EE plugin?

You may need to query the exp_relationships table directly. It uses a lot of ids, so you'll have to know them in advance, but from your requirements, it sounds like that shouldn't be a big deal.
user avatar
  • 418
1 vote
Accepted

How to filter by status in a Plugin?

You would need to perform a JOIN on the entry id column in the two tables then set a WHERE clause for titles table. If you're unfamiliar with JOINs then if you can post the full query we may be able ...
user avatar
  • 7,176
1 vote

Stash forgetting value

Thanks to Croxton for the answer... I needed to add save => 'y' to the params array.
user avatar
  • 1,986

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