Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
4 votes
1 answer
112 views

How to find out what class/function has invoked extension hook?

I have an extension that relies on certain extension hook. The hook can be invoked either by function from EE core or third-party module. I need to be able to tell what function / class has invoked ...
Yuri Salimovskiy's user avatar
2 votes
2 answers
1k views

Plugin help; Cannot redeclare fatal error

I'm writing my first plugin in attempt to learn more about the backend of EE and Codeigniter. My PHP is enough to get by, but I'm no expert. This plugin is as follows: <?php if ( ! defined('...
dgrebb's user avatar
  • 440
2 votes
1 answer
234 views

SLASH constant isn't the same as "/" character [in PHP]?

I recently discovered that the EE/CI's SLASH constant isn't the same as the "/" character. Or, at least, in my plug-in code, (SLASH == "/") evaluates to FALSE... They output the same character, ...
Michael Rog's user avatar
2 votes
1 answer
127 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 entry_id=...
Brad's user avatar
  • 572
1 vote
1 answer
306 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 ...
M dunbavan's user avatar
0 votes
1 answer
42 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 ...
Andrew Armitage's user avatar
0 votes
1 answer
312 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 ...
Andrew Armitage's user avatar