Hot answers tagged

9

Ok, this is something it looks like Ellis is not ready to really let people do even though it's in documentation, except perhaps developers who would provide via a full add-on installer and handling. However, it is possible. a. First, there is an EE interface to install new button features, but it is not called anywhere, Addons_installer:install_rte_tool. ...


7

Totally agree with Steven's comment, I'll give my own answer though as we recently went through similar. We were migrating to a new server and took the opportunity to build php 5.5 on the server to skip a version and save us the hassle of any major version upgrades again anytime soon. Here was our strategy. Upgrade all sites to latest EE build Upgrade all ...


4

There are multiple PHP settings you should change to allow for larger file uploads: upload_max_filesize max_input_time memory_limit max_execution_time post_max_size This page gives details.


4

GROUP_CONCAT is your friend. Instead of returning multiple rows of entry IDs, GROUP_CONCAT lets you return a single row containing a concatenated string of a single field, like entry_id, like in this example: {exp:query sql="SELECT GROUP_CONCAT(DISTINCT entry_id SEPARATOR '|') AS entry_ids FROM exp_channel_titles WHERE channel_id = 1 ...


4

So here's what I've found out: EE uses an INT database field to store a UNIX timestamp Because of this, EE can display dates back to about 1901 Switching the database field from INT to BIGINT fixes the problem, but can dramatically increase the size of that database table I discovered the INT vs BIGINT fix through a web search and tested it with success. I ...


4

Yes, as long as the template in which you put the snippet has PHP enabled.


4

It won't work at all. EE 2.7 (and most add-ons built for it) use features only available in PHP 5.2+, probably most notable is json_encode which EE uses a lot internally. Some add-ons such as Store 2 even require PHP 5.3 as minimum now. Personally I would ditch the host and find one who takes software updates (and therefore server security) more seriously. ...


4

This is easily accomplished using the start_on parameter. If the start_on date/time should be current time use: {exp:channel:entries channel="events" limit="3" sort="asc" start_on="{current_time format='%Y-%m-%d %H:%i'}" show_future_entries="yes" } If the start_on date/time should be dynamic, enable PHP in the template and set it ...


4

If you add parse="inward" to your channel entries tag parameters, it will force module tags inside your parameters to be parsed before the channel entries tag.


4

Turns out, this has nothing to do with Store at all. Found my answer on StackOverflow: Since PHP 5.3.9 there's a new configuration setting called "max_input_vars" which limits the number of input variables. The default setting is 1000. Also check if Suhosin is installed, because there's also a similar setting.


4

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->return_data = '<p>Sorry, there are no sailings on Christmas Day.</p>'; return; } Incidentally, it isn't necessary to set the $return_data class ...


4

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.) More info on EE actions here. Essentially, you need to develop a module to perform your desired action, then call the associated ACT URL (e.g. http://example....


4

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 3am 00 03 * * * wget http://example.com/index.php?ACT=XX&task_id=1 Or if you want something really quick and simple: Create a special template with some ...


4

Do you have PHP Parsing Stage on "Input"? <form method='POST' action='gen_req'> <input id='input' name='uid' placeholder='uid' /> <button class='btn'>Go</button> </form> {exp:member:custom_profile_data member_id="<? echo ee()->input->post('uid', TRUE); ?>"} <p>{email}</p> {/exp:member:...


4

Why aren't you just using https://devot-ee.com/add-ons/character-limiter ?? Also, if PHP is set on output, what happens when {event_summary} has a value like this? And the event was great, he said "Everything is healing nicely!"


4

Replace the continue with return statement.


4

There are at least two ways to get copies of EE 3 and 4. 1) Log in to https://expressionengine.com. If you have any EE purchases from this site before, you can go to your Purchases page and download the latest 2, 3, and 4 versions of EE. 2) Clone the git repository at https://github.com/ExpressionEngine/ExpressionEngine/. There is a master-v3 and master-v4 ...


4

Have you created all the necessary files for your add-on? I'm not sure EE will look for your library file in an empty add-on folder. You need to make sure you have an addon.setup.php file at least, and possibly the basic framework for a module I believe for EE to try and load any libraries from your addon. You may need to install said module as well for it ...


3

The array of embed_vars can be accessed this way on EECMS 2.5.5-: $this->EE->TMPL->embed_vars And this way on EECMS 2.6+: ee()->TMPL->embed_vars Use "embed:var_name" as the array key.


3

Yep they can. My emphasis: Dates and Times Are Easy in ExpressionEngine 2.6 Dates will still be stored in the database as Unix timestamps for the time being while it offers the best performance advantages under MySQL, so no need to change your add-ons there. But don’t let that stop you entering dates pre-January 1, 1970, ExpressionEngine will handle it just ...


3

That's Parse Order. Advanced conditionals, like the one in your example, are parsed after PHP is parsed. In fact, it doesn't even matter if PHP is set on Output or Input. So, think of this step by step. First, your PHP is executed, echoing both 1 == 1 is true and 1 == 1 is false. And the var $test is first set to hello, then to goodbye, after which the ...


3

Twitter's switch to v1.1 of their API isn't supposed to happen until next month, though this may have been one of their "blackout tests". Definitely API related at any rate. Regardless, CE Tweet is the only Twitter add-on I know of that's currently compliant with the API changes. I would strongly recommend migrating.


3

Try setting post_max_size=120M http://www.php.net/manual/en/ini.core.php#ini.post-max-size


3

Oof, that's a lot of ugly PHP to have to add to get around a bug. May I suggest a couple of alternatives? One would be to just fix the bug while you wait for Solspace to release an update. (Ha.) But failing that, use the Query module to grab all of an author's entries and pass them to a standard channel entries loop (which you can then use your standard ...


3

Thank you all for the help. After a lot of digging around, once again the culprit was everyone's friend htaccess. There was a rogue rule that included /images/ which seems to occasionally interfere, removing the rule, clearing the /made folder, clearing the EE tag cache and we are back in business. Phew... Lesson learnt, if in doubt it's always blooming ....


3

@James Right, I really do understand that argument, but at the same time the "streams of content" philosophy requires knowing quite a lot about content before it is ever created. Yep, you're absolutely right there. Most EE sites I've made usually end up with a generic 'Pages' channel, but I always try to drill home that it needs to be for exceptional ...


3

The changelog says: Deprecated methods: Security helper’s do_hash(), use PHP’s hashing functions instead. Removed Methods: Functions::hash() The link you provide shows that do_hash() uses SHA1 by default. So: $encrypted_password = hash('sha1',stripslashes($user_info['password']));


3

This was a bug in Assets and will be fixed in the next release. In the meantime, the patch is: in mcp.assets.php in the save_source() method, line 1000 is: $data = array( 'name' => $name, 'settings' => Assets_helper::get_json((object) $save_data) ); I changed it to: $data = array( 'name' => $name, 'settings' => Assets_helper:...


3

The solution involved the following steps: set the $system_path in the index.php and admin.php to $system_path = '../../system'; change a couple of lines in the config.master.php: on line 93 add your directory name to the $base_url variable like so: $base_url = $protocol . $_SERVER['HTTP_HOST'].'/my_subdirectory'; on line 94 add your directory name to ...


3

Create a category group in EE called "Cars" (assumes cat group ID of 2 in code below). In there you create categories with the Make. You then create child categories of each Make with the relevant Model. You can then create children of the models if there are variants of the model. Channel Categories Main landing page template has this code: {!-- MAKE --} ...


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