texts: P&T Dropdown/Select Dropdown - allow users to enter item not in list?

texts:
I'm using Matrix and one of my fields needs to be a Select Dropdown, but since it apparently isn't an option in Matrix I had to install P&T Dropdown. Is there a way to let users enter their own value if they would rather not select an item from the list? I'd like to know how to do this P&T Dropdown and Select Dropdown, if possible. If not, are there any other options?

Also, I suppose not all field types are "Matrix compatible" and that's why I don't see Select Dropdown as an option for cell type. Is that right? What makes a field type Matrix compatible?


texts: Is there a downside of using WYGWAM over Rich Text formatting buttons

texts:
I've always tried to avoid using WYSIWYG except for the main body field, thinking that it was better to try and keep as much as possible as plain text in the database.

But the conflicting methods/styles could confuse content editors, so I'm now thinking it might  be better to use a constrained version of WYGWAM for all textareas instead of the Rich Text Formatting buttons/toolbar.

Is there any performance loss or a problem further down the line that may cause me to regret going down this road?


texts: Objective HTML Postmaster – send by date, not add/edit entry

texts:
I've been working on solving this problem for a while, and hoping someone can help me come up with a solution.

Basically what I'm doing is creating an EE Grid field with a title, date, and description. The way I want Postmaster to trigger is based on the Grid date field.

When a date is 5 days in the future I want a reminder email to be sent. I can't seem to figure out how to do this? Currently I have the Grid field name "calendar", and for testing I put this in the "Post date specific" field of the Postmaster Parcel setting:

{calendar:date format="%m-%d-%Y"}

However, nothing happens if I add an row with today's date? If I change the trigger to "Edit" an email gets sent, but it also gets sent every time one of the rows is edited or a new row added to the calendar Grid field? Not what I want, I only want it to trigger 5 days prior to the date entered? How can I accomplish this?

I believe it should be possible with Postmaster, but can't seem to figure out how to do it??


texts:
I am having trouble with getting the coupon to work properly. According to the docs all I had to do was add a blank field with the name of coupon but it isn't working.

When I test with a real coupon code it still charges full price. I have tried testing with an incorrect coupon code. Both times the form doesn't throw any errors and charges full price.

I am using a testing gateway to submit the form with the coupon.

I can confirm:

The name and id on the blank text field is correct.
It is inside of the membrr form tag.
The coupon was created correctly in OpenGateway.

Would love any insight to why the coupon is being ignored. We just need the coupon to work for now until we can migrate the client to a new addon.


texts: How do I get the Channel Entries count within a Channel Categories loop?

texts:
I have a exp:channel:categories loop that is filtered by category group, and within that I have an exp:channel:entries loop that is filtered by category_id.  This outputting the data that I expecting.

The issue is that I need to get a count on the entries loop, but all I am able to get is a count on the categories loop.

Here is a slimmed down version of my loops:

{exp:channel:categories style="linear" category_group="2"}
    {exp:channel:entries channel="team" category="{category_id}"}
        {title} - {count}
    {/exp:channel:entries}
{/exp:channel:categories}

I need to get a count on the channel entries, not the channel categories.


texts: Low Variables & Grid with text input containing http:// gives 403 error on save

texts:
EE 2.7.2
LV 2.4.0

I have low variables variable containing a grid with two text inputs and a radio button. In the text input for a link, if I add a link containing http:// and save I get taken to a 403 error. If I save the link without http:// everything saves just fine.

Any idea how to fix this? Is it a bug? if so with Grid or with Low Variables?

In case it's relevant have included a screenshot of my grid settings.


texts: Add link for downloadable products in Expresso Store's emails?

texts:
Exp:resso Store 2.3.1 and EE 2.8.1.

How can I include a download link right in the Order Confirmation email that Store sends out for any downloadable products in that order?


texts: Is there a helper function to generate a link to a member profile for a control panel view?

texts:
Does EE have any built in classes or helper functions to perform common tasks in module code?

In this instance, I want to generate an href to a member profile to use in a control panel view, from a member ID. I have looked in the expression engine core code and not found anything.


texts: Expresso Store - Related entries within {items} loop

texts:
Under my basket page (based on the sample 'checkout.html) I want to suggest any accessories that might be associated with the products in the basket.

I've tried two ways to achieve this, neither is really working for me at the moment. My first attempt was to use PHP to capture the {entry_id} of each item in the first loop and then use that below. Problem I encountered is that I need PHP to be rendered both on InPut and Output on the template (one to capture the id's, the other to make using them possible).

My second attempt is just to have a second {items} loop under the first. Within this loop I try to get the exp:channel:entries with the {entry_id} of each item then within the exp:channel:entries loop get the related_entries (there are 4).

This logic seems sound to me, but I am new to expression engine and store so I am sure I am missing something obvious!

My code is below, any help you can offer is very much appreciated.

Suggested Accessories / Related Products

{items}
    {exp:channel:entries limit="1" dynamic="off" entry_id="{entry_id}" }
        {related_entries id="related_product_1"}
            A {title} - {entry_id}
        {/related_entries}

        {related_entries id="related_product_2"}
            B {title} - {entry_id}
        {/related_entries}

        {related_entries id="related_product_3"}
            C {title} - {entry_id}
        {/related_entries}

        {related_entries id="related_product_4"}
            D {title} - {entry_id}
        {/related_entries}

    {/exp:channel:entries}
{/items}


texts:
I'm new to Cartthrob, what an amazing product. I'd like to incorporate Stripe's Checkout API as a way to have my client's checkout. It's beautiful, and very easy to use - but I can't figure out how to integrate the API into Cartthrob.

Information can be found here: https://stripe.com/docs/checkout

Do you offer support for this?

Thanks,
-Nick


texts: Avoiding duplicate based on title in exp:channel:entries

texts:
I have a bunch of testimonials in a channel. Some have the exact same value in the title field.

My code looks like:

{exp:query
sql="
SELECT DISTINCT title
FROM exp_channel_titles
WHERE channel_id=19
ORDER BY RAND() LIMIT 3
"}

    {exp:channel:entries channel="testimonials" disable="categories|member_data|pagination"
    search:title="{the_title}" dynamic="no" limit="1"}

       {title}

     {/exp:channel:entries}

{/exp:query}

How can I insure I do not get more than one entry with the same title?

I can write a little SQL if needed.

Thx.


texts:
First time using store and have hit my first "WTF" moment.

Add items to cart - DONE :)

Checkout Page - Displaying items in cart, cost and tax etc. :)

Delete Items in Cart - Using the documented method - remove_items input field. I cannot remove individual items from cart.

<input type="checkbox" name="remove_items[{key}]" value="1" /> Remove {title}

I have this inside the {items} loop. Then before {/exp:store:checkout} I have:

<input type="submit" name="update_cart" value="Update Totals" class="btn" />
<input type="submit" name="empty_cart" value="Empty Cart" class="btn btn-danger" />
<input type="submit" name="next" value="Continue to Billing Details" class="btn btn-primary" />

Update Totals - DOES NOT WORK. Page refreshes but nothing changes

Empty Cart - DOES WORK!!

Before I go and dig further, can anyone who has successfully used a checkbox to delete items from an Expresso Store project confirm the code they used or point me in the right direction.

EE 2.7.2 + Store 2.0.3


texts: Control Panel/MCP: Table class in older versions of EE2

texts:
Have there been any changes to the table class in EE2? I have a bug report on an add-on from a user with EE v2.3.1. They've received the following error in my mcp. file:

<b>Fatal error:</b> Call to undefined method CI_Table::set_columns()

My code looks like this, nothing looks amiss:

$this->EE->load->library('table');
$this->EE->table->set_columns(array(
    // column mappings
));

And things work fine in 2.5.5. Here's the EE documentation I relied on:

http://ellislab.com/expressionengine/user-guide/development/usage/table.html

Thanks for any insight you can offer!


texts:
I'm trying to import a CSV file of about 20 items with a number of columns. I was hoping i could import the file and have each of the rows in 1 entry (ie. each row DOES NOT get imported as a separate entry). Ultimately, I would like to output a template that displays the 1 entry and the rows of data associated with that entry.

I have purchased Solspaces Importer, but it appears to import each row as an entry. I really need the entire import to be 1 entry. I hope that's clear.

I will be importing CSV files on a continuous basis. Each import could range from 2 rows to 40rows. Again... Each import should be a single entry.

Any thoughts?


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

texts:
I've created a module for ExpressionEngine and since it's initial installation I need to add a new column to the database. I've managed to create the update funtion in the upd.modulename.php file and it's working. The problem is the code contained to add the new column doesn't seem to be doing what I need it to.

public function update( $current = '' ) {
    ee()->load->dbforge();

    if ( $current == $this->version ) {
        return FALSE;
    }

    if ( $current < '1.1.0' && ! ee()->db->field_exists( 'new_field', 'module_table' ) ) {
        $updates = array(
            'new_field' => array(
                'type' => 'varchar',
                'constraint' => '250'
            )
        );
        ee()->dbforge->add_column( $updates );
    }

    return TRUE;
}

This conditional is working as I've managed to print out a message when running the module updates but it doesn't appear to be adding the new column to the table. I don't suppose anyone has any ideas?


texts:
Can anyone give me some advice on how I can add some specific content to a publish/edit screen? I'm specifically wondering if this is possible using hooks and an extension.

Right now I'm hooking in to the publish_form_entry_data hook and running some actions based on certain parameters. I'd like to push a notice to the publish/edit form depending on conditions in my extension (which I've already got working.)

Is it possible to push a notice to the publish/edit form from an extension?


texts:
I need to add some logic for a plugin in the CMS login page but I can't find the correct template to modify.

How can I find the template used by /admin.php?

What have I tried so far:

I can see that when it fails to login it goes to admin.php?/cp/login this I assume this should be template path name?

Anyhow, I tried going to Design > Themes > Member Profile Templates > Default and select Login Form I deleted all content from there but still when I go to /admin.php i see the form. I've also done the same with the Agile Records but still no luck in making any changes in the template. I've cleared cache after each modification to rule out caching problems.

My other guess that is because we are using an in-house custom theme the system is using that and not the system default one. but when I go to the custom theme folder, there is no login custom page. I can however see that we are using custom CSS but no custom login html form, thus the system cant be using a custom one.


texts: Use onClick to update the status of an entry

texts:
I have a simple page that is displaying entries and statuses from the database. I would like to be able to click a link (i.e. remove entry) and have that onClick event set the entry status to removed.

{entry:title}

    Entry Status:
    {if entry:status == "open"}
        Paid
    {if:else}
        {entry:status}
    {/if}

    {NEED ON CLICK ACTION/SYNTAX HERE}Remove Entry


texts: Stashing a tag to use with Solspace tag entries

texts:
I have a template that sets some stash values from a campign entry, such as campaigntag. This custom field is just a text input. What i'm then trying to do on the page is show a bunch of entries from another channel using the campaigntag as follows;

{exp:channel:entries
    channel="campaign"
    status="open"
    limit="1"
}
{exp:stash:set_value name="campaigntag" value="{campaign_tag}"}
{/exp:channel:entries}

{exp:tag:entries
    channel="event"
    status="open"
    orderby="title"
    sort="asc"
    paginate="bottom"
    limit="9"
    tag="{exp:stash:campaigntag}"
}
{title}
{/exp:tag:entries}

For some reason, I can't get any entries to display when I use a stash variable in the tag="". I can get results if I hard code the tag in here.

Wondered if someone might be able to help figure out what's going on.

Thanks.


texts:
I have a Cartthrob MSM installation (2 stores) that use sagepay (europe offsite) for processing payments.

Every time I try to make a payment through the sites, I get all the way through the payment process and at the very end I get the following error:

> HTTP Status Code:    500
> HTTP Status Message: The request was unsuccessful due to an unexpected condition encountered by the server.
> Error Code :         5006
> Error Description :  Unable to redirect to Vendor's web site. The Vendor failed to provide a RedirectionURL.

I've checked that extload.php is configured correctly, and when I output the NotificationURL value from the gateway plugin it looks correct:

http://mysite.com/themes/third_party/cartthrob/lib/extload.php/sage_s

Does anyone have any experience of this error and possible solutions? I contacted the hosts (Nexcess) who said they couldn't think of any security that might be on the server, stopping a callback from sage.

I've been trying to get these sites working for a week through a host of errors, I'm hoping this is the last hurdle.


texts: Unable to modify data with ‘entry_submission_ready’ extension hook

texts:
I’ve read a few posts on this, and for the life of me I can’t get this working. I want to intercept a Channel Form submission, and modify the submitted data.

I’m using the ‘entry_submission_ready’ extension hook, which fires fine. I can access the $data array, but I cannot modify an element so that it is saved when the entry is saved.

I’m accessing the $data arary by reference ( &$data ), but that doesn’t make any difference.

Where an I going wrong?

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * ExpressionEngine - by EllisLab
 *
 * @package     ExpressionEngine
 * @author      ExpressionEngine Dev Team
 * @copyright   Copyright (c) 2003 - 2011, EllisLab, Inc.
 * @license     http://expressionengine.com/user_guide/license.html
 * @link        http://expressionengine.com
 * @since       Version 2.0
 * @filesource
 */

// ------------------------------------------------------------------------

/**
 * Contact Notify Extension
 *
 * @package     ExpressionEngine
 * @subpackage  Addons
 * @category    Extension
 * @author      James Seavers
 * @link        http://www.symphonyonline.co.uk
 */

class Contact_notify_ext {

    public $settings        = array();
    public $description     = 'Notifies when an entry is created in contact request channel after changing some data';
    public $docs_url        = '';
    public $name            = 'Contact Notify';
    public $settings_exist  = 'n';
    public $version         = '1.0';

    private $EE;

    private $recipient = 'me@gmail.com';

    /**
     * Constructor
     *
     * @param   mixed   Settings array or empty string if none exist.
     */
    public function __construct($settings = '')
    {
        $this->EE =& get_instance();
        $this->settings = $settings;
    }// ----------------------------------------------------------------------

    /**
     * Activate Extension
     *
     * This function enters the extension into the exp_extensions table
     *
     * @see http://codeigniter.com/user_guide/database/index.html for
     * more information on the db class.
     *
     * @return void
     */
    public function activate_extension()
    {
        // Setup custom settings in this array.
        $this->settings = array();

        $data = array(
            'class'     => __CLASS__,
            'method'    => 'change_data',
            'hook'      => 'entry_submission_ready',
            'settings'  => serialize($this->settings),
            'version'   => $this->version,
            'enabled'   => 'y'
        );

        $this->EE->db->insert('extensions', $data);

    }

    // ----------------------------------------------------------------------

    /**
     * change_data
     *
     * @param
     * @return
     */
    public function change_data($meta, &$data, $autosave=false)
    {
        $data['field_id_60'] = 'test';
    }

}

Thanks in advance, James


texts: Cartthrob: Add item to cart with JQuery & no page refresh, no ajax?

texts:
I have this shopping cart with a drop down menu with a list of products (titles are zip codes). When a user selects one, my JQuery replaces all subtotals with "Loading..." and then submits the update_cart_form. This is all well and good.

Problem: Upon submission, I want to add a line in JQuery to add the product selected in the drop-down to the cart. Since the form is being submitted, I don't think I need an AJAX call, but I could be wrong? I basically want to just add the item to the cart on submission and when the page reloads it will be showing the new addition.

I would also need to have a similar line to remove any products that are currently in the cart that are assigned to the EE category="delivery_rates."

  Note: One may ask why I am handling delivery rates in the
  update_cart_form rather than the checkout_form. This is because
  there is a minimum price that a customer needs to have in their cart
  prior to having delivery options available to them. Additionally,
  there are only a handful of zip codes where my client will be
  delivering and it's important to establish this immediately to prevent
  delivery errors.

I have tried the options listed here: http://cartthrob.com/docs/tags_detail/add_to_cart/index.html, but to no avail.

Link to cart: http://dandelionflowershop.com/index.php/website/cart. Note: You will need to add at least $40 to the cart to view the delivery options that I'm working on here.

Here's the JQuery code that I have going on right now. Everything works here. I just would like to know what I should be looking to alter for this functionality:

 $("#zip").change(function() {
            $("#total").toggleClass("gray").html("Loading...").show().fadeOut( 1000 );
            $(".line_subtotal").toggleClass("gray").html("Loading...").show().fadeOut( 1000 );
/* Add function: Remove all products from cart with category="delivery_rates" */
/* Add function: Add product (if possible by {title="{custom_data:zipcode"}, not {entry_id}) */
            $('#cartform').submit();
        });

I hope I'm at least going down the right path here.

Thank you guys and gals!


texts: Matrix field losing value when editing entry

texts:
ExpressionEngine version: 2.5.5
Matrix version: 2.5.5
P&T Field Pack version: 1.03

I have a channel entry that uses several Matrix fields, and one of them uses P&T Dropdown. If I publish a new entry the value from the P&T Dropdown shows up properly when viewing on the frontend. This works fine.

However, if I then go in to edit the entry, the P&T Dropdown field is now defaulting to whatever the first value is. This has caused the value to unexpectedly change if an author goes in to edit something else in the entry and does not realize that the P&T Dropdown has reset to its default value.

Any suggestions?


texts: How to integrate calendar module with structure module

texts:
We have setup calendar module and create calendar template (as below) but when i click on previous or next month rise an error "404 page not found"

Note: I'm using structure module to generate pages and navigation

 {exp:calendar:events limit="1"}
{calendar_title}
{/exp:calendar:events}
{exp:calendar:cal
    enable="custom_fields"
    pad_short_weeks="y"
    show_weeks="4"
    date_range_start="{embed:embeded_date}-01" date_range_end="{embed:embeded_date}-last"
    category="{embed:cat}"
    dynamic="no"
    parse="inward"
    status="not closed"
}
 {display_each_month}

{date format="%F %Y"}

                               Previous

                                Next

    {display_each_day_of_week}

{day_of_week_short}

        {/display_each_day_of_week}

    {display_each_week}

        {display_each_day}

{if day_event_total !="0"}
                    {date format="%d"}

{date format="%F %d, %Y"}

                    {events}

› {event_title}

                    {/events}

                    {if:else}
                   {date format="%d"}
        {/if}

        {/display_each_day}

    {/display_each_week}

{/display_each_month}
{/exp:calendar:cal}


texts: Freeform: No submit button on new form or duplicate form screen?

texts:
Am I nuts? Did I install the module wrong? I don't see a submit button to confirm my changes within the module. Any ideas? I can't add a field either. Button is there in that case but submitting does not do anything. Thx.

update: I'm too new to answer my own question so I'll edit:

Found the answer after I jumped the gun:

Freeform 4.0.12 ceate form button missing in firefox ie and chrome

I was missing the themes. Sheeeeeit, as Clay Davis would say, who knew you had to install those files too, to make the thing work?

You put the freeform folder under "third party" in the module distribution under [eebase] >  themes > third party on your server.

Anyway I'm happy now, for now.

/amy


texts: Is there a way within Exp:resso Store to change the starting number on orders so they match my client's internal invoicing numbers?


texts: Freeform multiple file upload, only one appears in review/edit form

texts:
I'm using Freeform Pro v.4.0.12.  My form submits a to a review page so that user can edit their form data.

I'm using 2 file upload fields and both files are successfully uploading.  However, on the review page, only one file appears.  Any idea why or what I can do to make the 2nd file upload field editable?

Thanks!

Peter T

I saw this other post below, but since both my files are uploading, I don't think it applies to my issue.

Other post


texts: Exp-resso Store Orphaned Products after Channel Field Removed

texts:
Scenario:

Add an Exp-resso Store Product field to an existing channel field
group.
Populate the product data for every entry in that channel.
Delete the store custom field from the channel field group

The Problem

Store still thinks these products exist. They still show up in the Inventory page and the old entries (that used to have a product field) show up in all the "match product" fields for setting up discounts, etc..

Why

When deleting the store custom field from the channel field group, it seems that the corresponding entries in the Exp-resso Store Products database table should be deleted too, but they are not.

Question

Is there a way to remove a Store Custom Field from a Channel Field Group that will cause the corresponding entries in the Store Products database table to be deleted?


texts:
Do I need to have the latest version of EE2 installed before upgrading to EE3?

Thank you!


texts:
I'm having an odd issue with Stash and a 404 redirect. When an entry isn't found the "layout" template is getting rendered twice around the main Stash content. Anyone seen this before? I can kinda see why it is happening, but can see any way around it. Thoughts?

The page template

{!-- Layout --}
{embed="shared/_layout"}

{!-- Set main content --}
{exp:stash:set
    name="main_content"
    parse_tags="yes"
    parse_depth="2"
    no_results_prefix="nested"}

  {exp:channel:entries limit="1" url_title="{segment_3}"}
    {if nested:no_results}{redirect="404"}{/if}
  {/exp:channel:entries}

{/exp:stash:set}

The 404 template

{!-- Layout --}
{embed="shared/_layout"}

{!-- Set main content --}
{exp:stash:set name="main_content"}

Page not found

{/exp:stash:set}

The layout template

  HEADER GOES HERE!!!
  {exp:stash:get name='main_content'}
  FOOTER GOES HERE!!!

The resulting output to browser

  HEADER GOES HERE!!!

  HEADER GOES HERE!!!

Page not found

  FOOTER GOES HERE!!!

  FOOTER GOES HERE!!!

EDIT:
Seems I can get around the issue by removing the Stash/layout stuff from the 404 template and just having it as...

Page not found

But then a 404 generated by some means other than no_results won't get the layout. Hmm. Ideas?


texts: Need to add a Zoo Visitor to mailchimp on registration - options?

texts:
I'm using Zoo Visitor to handle membership on an EE2.6.1 site and my client would like members to have the option to add themselves to their mailchimp account when filling out the member registration form.
I'm seeing a number of mailchimp add-ons on Devot-ee but none that mention zoo visitor.
What are my options? Any one been succesful in doing this?


texts: Error 500 Server Error if no trailing slash

texts:
New site that we're building in 2.7 is having a weird issue which I don't appear to be able to get any log information about.

we have http://site.com/c/content-url-title-here and if you try accessing this URL we get a 500 Server Error.

However, if we manually add a trailing slash to make the URL http://site.com/c/content-url-title-here/ it loads the page fine.

I can't see anything in the Changelogs that would indicate a specific 2.7 issue around this, has anyone come across this issue?

For Info, this is my .htaccess:

Options +FollowSymLinks
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule (.*) /index.php/$1 [L]

I've never had this issue before and none of my apache logs are giving any errors at all. Anyone able to advise?


texts:
I'm having issues with using anchors in my URLs. For example, I have a url http://myurlhere.com/page#anchor, the site fails to go to the anchor. Has anyone experienced this issue?

Edit: When I'm testing on local, the local URLs + anchor tags work, but when I test on my production servers, UTM tags are being added to the URLs, and the anchors seem to be ignored and not appended. I tried manually editing the URLs to include the UTM tags, but duplicate UTM tags are then appended to the URL.


texts:
I have an EE site that is using Assets to display large images (1080px wide) that stack vertically.  I would love to use this LazyLoad jQuery script, however it is required to change the "src=" in the  tag to "data-original="

In my EE install, I am using Assets to manage these images along with CE Image to resize.  In my template, I have this Assets tag pair to output the images.  I would wish to keep the CE Image single tag, only because I want it to output both the width (which should stay at 1080px), and variable height using "add_dims=" parameter.

{gallery_items var_prefix="file"}
  {exp:ce_img:single src="{file:url}" alt="{file:alt_text}" max_width="1080" itemprop="image" add_dims="yes" class="lazyload"}
{/gallery_items}

If I simply change out the "src=", nothing seems to output. Any help would be great!!


texts: Grid hooks to change dynamically change table headers on the fly

texts:
I am looking for a hook where I can dynamically change the table headers of a displayed Grid field in the frontend on the fly.

There are hooks for grid, grid_query and grid_save. So far in the documentation, I don't see anything where I can change the table headers output text.

Am I just missing something in these hooks or is there no way to change the table headers output other than editing the core files?


texts: Alternative to global ee() function for v2.1.3

texts:
I'm trying to implement this password protected content method on a v2.1.3 build.

This code...

<?php
global $IN;

if ( ! $the_password = $IN->GBL('the_password', 'POST') ) :

?>

...returns an error

Fatal error: Call to undefined method EE_Input::GBL() in  /homepages/42/d186459053/htdocs/dri/expressionengine/libraries/Functions.php(650) : eval()'d code on line 17

After some research, it looks like part of this has been deprecated.

Instead I should be using...

ee()->input->post('the_password');

However, after reading this, it looks like the

  global ee() function is only available since EE 2.6.0

Upgrading EE at this time isn't an option. What could I do to to retrieve the POST variable in this instance so this method works?


texts: Freeform Pro - Channel Entry Fieldtype - Custom error page

texts:
This is partially related to this question:
Additional parameters while using Freeform Pro Fieldtype

I can't see these options in the Freeform docs, but it seems if you add parameters to the single tag some do output.
http://www.solspace.com/docs/freeform/channel_entry_fieldtype/

Eg. short name of field is channel_field

{channel_field}

To add a custom class name to all forms in the template:

{channel_field form:class="your_class_name"}

This outputs the form from composer including the custom class name.

Parameters for the form tag pair are here, including the option of a custom error page:
http://www.solspace.com/docs/freeform/form/#error_page

But this does not work:

{channel_field error_page="path_to/template"}

How can I specify a custom error page while using the freeform field type?

This question is directed at Solspace, but it would be great if anyone else could help.

** Edit 11 Feb 2014 **
Thanks @Solspace. I'd forgotten I've actually set this up already. I have a custom Composer Template assigned to this form with these Template Params:

Param Name: error_page
Param Value: site/form-error

But I hadn't realised this custom page was working as the error page URL is:
    http://example.co.uk/?ACT=72

Rather than:
    http://example.co.uk/form-error/

It looks like you're handling the error template display during a form submission method and not redirecting?

Now I know where the error page is coming from I've got an unrelated issue why this isn't working. I'll raise a support ticket.


texts:
I have never worked with another Third Party System before that prefers to push data to me than provide an API to just pull that data down as needed - but they have their reasons they say!

On that basis they say they typically use a basic method of the client providing a form to which they post the data each time. Now this means they post direct to the form submission URL - so my initial thought was channel forms - but then i remembered XSS and how this will prevent it.
So is there a way to disable XSS token checks specifically for a single form, or just site wide (which i would prefer to avoid).

If not - i will use  addon to create a REST api on the EE end and get them to submit to that. Does anyone have any experience with such a addon as:
http://docs.reinos.nl/webservice/#introduction

Thanks, N


texts:
On a site I'm working on, I've got a lists of projects. These lists have two views: a thumbnail and a text-list view. On each page, there's a button to switch to the other view.

I'd like to make that selection persistent. So hit the button to change views, and all pages load that view (until you change the view again).

Is there an easy/recommended way to do this?

Edit: would be nice if it were compatible with some sort of template caching.


texts: How to count Matrix rows that are not empty?

texts:
This seems like it should be a piece of cake, but I'm at a loss.

I have a Matrix field called {the_matrix} which contains two columns {comment} and {image}.  And I'm attempting to output the number of images like so:  Total Images: 4

The {total_rows} tag is not sufficient on its own because oftentimes there may be a {comment} and no {image}.  So essentially, I need to output the number of rows in which the {image} cell is not empty.

I have tried several different things (including the snippets below) to output the number of rows that contain an {image}, but have had no luck.

{the_matrix}
    Total Images: {image}{total_rows}{/image}
{/the_matrix}

{the_matrix}
    Total Images: {image}{field_row_count}{/image}
{/the_matrix}

{the_matrix}
    Total Images: {image:total_rows}
{/the_matrix}

Am I missing something obvious or am I just out of luck?

Thank you.


texts: Creating a "testimonials" form in ExpressionEngine, no clue where to start

texts:
Creating a "testimonials" form in ExpressionEngine, NO CLUE WHERE TO START

We're using ExpressionEngine v.2.2.0, just FYI.

The boss wants me to create a textfield form (served by EE) that will collect user feed back, have the responses placed in EE's moderation queue and then when approved, have those responses integrated as blockquotes on the site as "testimonials". The idea is that we'll use good feedback to hopefully inspire others to convert.

I have NO idea where to even begin. I am totally EE illiterate and there's no one here to point me in the right direction. The developer who set up EE for our blogger and videographer moved to another part of the state two weeks ago. I've spent the entire morning trying to figure this thing out, but I'm no closer than where I was when I started.

Can someone who knows EE well please give me a little direction? :( Thanks.


texts:
On one of our new builds, we're getting an "This site can't be reached" error when using GWCode Categories with EE 2.11.1.

Any reason for this? Haven't seen it with any other EE version. Here's the error message:

Severity: 8192
Message: Non-static method Gwcode_categories::usage() should not be called statically, assuming $this from incompatible context
Filename: gwcode_categories/pi.gwcode_categories.php
Line Number: 29

Usually, this error can be resolved by changing the function usage() to public static usage(). However, in this instance the fix doesn’t seem to make a difference.

Thanks all in advance!


texts:
I'm trying to get SolSpace User to output a cvs formatted file, but I can't get it to leave in the line breaks, so it only produces one row with all the data in it.

Can anyone confirm that User strips out the line breaks, and is there a way to get it not to?

thanks!

my code:

'ID,Status,Last name,First name,Email,Last Payment,Join Date
{exp:user:users orderby="total_entries" sort="desc" dynamic_parameters="no" limit="500" }{member_id}{if group_id == 10}Member Admin,{/if}{last_name},{first_name},{email},{payment},{join_date format="%m/%d/%y"}
{/exp:user:users}


texts:
I there a way to restrict the number of entries by a user to one active entry at a time?

I'd love to create some kind of freemium model for my classifieds site, which only allows for one active ad by any free user.


texts:
A brand new EE 2.9 installation and it is NOT loading the updated version of a template. The template is called "index", lives in a "home" group and is set to be the Site Homepage

The Template manager shows the new version, the file on the server shows the new version, the website shows the old version.

If I go to "example.com" it shows the old version.
If I go to "example.com/index" it shows the new version.

If I create NEW group with a NEW template as the homepage it STILL loads the original old "index" template from "home" group.

I have: Cleared all EE caches, ensured template caching is turned of, cleared all browser caches, tested on Firefox, Chrome and IE.

WTF?

Update: Deleted template files from server and Template Group from EE and IT STILL shows the old template! Checked the "exp_templates" table and it shows NO templates.


texts: Stash set_list and cartthrob order_items not playing nicely, parse order perhaps?

texts:
I've got the following code which is meant to output a list of authors of orders in cartthrob that match a certain entry id:

{exp:stash:set_list name="participants" scope="user" save="yes" parse_tags="yes"}

         {exp:channel:entries channel="orders" dynamic="no" status="Paid"}

                    {exp:cartthrob:order_items order_id="{entry_id}"}
                           {stash:authors_id}{item:author_id}{/stash:authors_id}
                     {/exp:cartthrob:order_items}

           {/exp:channel:entries}

   {/exp:stash:set_list}

But it doesn't pick up the author_id from the cartthrob tag at all. If i take out that cartthrob tag and just get stash to pick up the author_id from the channel tag it works fine.
I've tried every combination of parse="inward" you can imagine but nothing gives.

Any ideas?


texts:
I am using freemember(https://github.com/expressodev/freemember) for login in and registration. I just installed it and I'm logged in as admin. When i try to logout i get this error:
A PHP Error was encountered

Severity: Warning

Message: require(/home/a7116614/public_html/ee/system/expressionengine/modules/member/mod.member.php) [function.require]: failed to open stream: No such file or directory

Filename: libraries/freemember_lib.php

Line Number: 554

Fatal error: require() [function.require]: Failed opening required '/home/a7116614/public_html/ee/system/expressionengine/modules/member/mod.member.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a7116614/public_html/ee/system/expressionengine/third_party/freemember/libraries/freemember_lib.php on line 554

I used my ftp client to check and navigate to public_html/ee/system/expressionengine/modules/member/mod.member.php, but member/mod.member.php  does not exist.
Please help me, I am stuck here.
Thanks!


texts: Multiple channel entries on the same page?

texts:
I'm creating a site that uses a masonry grid layout as the homepage. It's designed in a way that the content is organised semi-randomly (I've chosen the randomness). I have portfolio images, which link to the single entry, showing in various blocks of the grid. My issue is that only the content in the first channel entries tag pair is parsing. For example here, only two entries are being displayed—

{exp:channel:entries channel="projects" limit="2"}

{/exp:channel:entries}

some other elements here...

{exp:channel:entries channel="projects" limit="2"}

{/exp:channel:entries}

Is it possible to have multiple channel entries tags, displaying information from the same channel, on one page?

Thanks in advanced.


texts: Correct way of ordering entries by a single month view

texts:
I have a calendar. Currently viewable by year.

I need to add in a drop down/list of some sort which will show

January 2015
February 2015
...

When the user selects from the list I need to show only entires from that particular month. What is the correct way of achieving this?

I have the following in mind.

I pass variables to the URL either POST or GET so the url looks like

domain.com/calendar/january/2016
or
domain.com/calendar?month=january&year=2016

Then return the variables, using start_on & stop_before work some magic.

Similar as to above, I could pass some variables into a session & again use the content of the variables to affect my exp loop.

How would you perform this, is my logic sound or is there a simpler way?


texts: Zoo Visitor forgot password form redirecting

texts:
I'm trying to create a forgot-password form on my site where Zoo Visitor is used to manage members, however, when adding the standard form code from the examples provided I cannot access the form url, I'm getting a 302 redirect back to my login page (I've no redirects set in my htaccess)

linking to {site_url}members/forgot-password

members/forgot-password template code:

{exp:zoo_visitor:forgot_password error_handling="inline" reset_url="/members/reset_password" parse="inward"}
    {if password_sent}

            A password reset mail has been sent to the provided email.

    {if:else}
        <fieldset>

                    Your email:

                <input type="text" name="email" id="email" class="form-text" value="" />

            {error:email}
        </fieldset>

            <input type="submit" value="Retrieve password" class="button" />

    {/if}
{/exp:zoo_visitor:forgot_password}


texts:
Does {exp:calendar:events} accept dynamic parameters?

I am trying to pass this in:

calendar_id="{tunnel_calendar}{entry_id}{/tunnel_calendar}"

where {tunnel_calendar} is a PLAYA field but this isn't being parsed.

Any ideas?


texts: Strategy to remove malware from EE install

texts: A client's host has reported Malware present in a EE 3 install. I've not found anything myself, but I wondered if anyone has a strategy to deal with this. I was thinking I should upgrade to the latest version, but is it a good idea to ask the host to roll back the installation to an instance before the Malware was reported first?


texts: Low Search: search parameter conditional

texts:
Situation: I have a Low Search outputting my search results using the "search:field" parameter. This works.
In the publish form a user can add a Video EITER by submitting a youtube/vimeo link or pasting an embed code from another video service.

Problem: I would like to use the search param to only display entries that have either one of these fields set.

Something like: search:my_field_video="not IS_EMPTY" OR search:my_field_embed="not IS_EMPTY"

If I use conditionals in the output to check for the existence of there field values, the search results aren't correct (it'll say: 103 items when there are only 100 because 3 are counted but not shown).


texts:
I was wondering if anyone had already setup some inline coupon validation script that I could use on my order pages - something I could hook up with AJAX upon the user filling out the coupon form where it then queries the database and tells me if this coupon is valid and not used. If this is already available, that would be great! If not, just let me know and I suppose I'll create one myself.

Thanks!


texts:
Alright, I will start by saying that I'm very new to this and will not be using the most technical terminology....

I am helping with a project that someone else left. She created a web page, and I'm trying to edit a few things.

There is one page full of links that redirects to other parts of the website.
I can edit the redirected pages, but cannot find a way to edit the linking page.

It's frustrating because the linking page is named the same as the page it's redirected to. It's like they should all be in the same template folder, but they're not.

Do you guys have any ideas on how to fix this???


texts: Is it possible to have category name instead of template_group in uri?

texts:
I would like to be able to have the url-structure like

  http://example.com/category_name/entry_url_title

Now i know that the default structure in ExpressionEngine is template_group/template_name. The thing i would like to avoid is having to create an entire new Template Group when adding a page group. Also that would seem to make the creation of menus a lot simpler and dynamic.

Is this making any sense or am i going about this problem all wrong?

I'm happy to elaborate if you something is missing in this question. Any help/insights would be enormously appreciated!

Thanks.


texts: While viewing entry in CP, can a generate a link to view it on the web?

texts:
While viewing an entry in the control panel, can I generate a link that would open it in my public website? That is, display a link like "www.mysite.com/articles/{url_title}"?

Using EE3, but can update to 5 if needed.


texts: SafeCracker: change email address, change password, delete member account

texts:
I need to provide my members the ability to change their email address and password and delete their member account. I'm using SafeCracker. How do I do the following:

Allow users to enter a new email address, but that address will only become effective once the user has verified the new email address (meaning they need to go to their inbox and click a link)
Change the current password. Just in case, I also don't want the users to have to enter their existing password. As a matter of fact, I would prefer if they just entered the new password without having to confirm it. (I won't be using password input type.)
Delete member account, which will delete some Channel entries, but not all


texts: How to get all values of a field pack channel field

texts:
I've a Channel Field, I create a field-pack drop-down list that works great on the Article page back-end.

Now I need to get all values of that list and output it into the article temple if i do {cuisine:label} it will give me the selected value as set on the back-end when the article was created. But I need all values not only the selected one.

How can I get the full list of that particular channel field - drop down to output it into a template?

The rational is that in the front-end I need to recreate that list and then use those values for search queries. Hence I need value:label pairs so i dont have to replicate the data.


texts: Use php inside entry-field instead of snippet

texts:
How is it possible to use php inside an entry-field? When I write e.g. in the summary-field

test <?php echo 'bla'; ?> test

I get exactly the same string in the frontend:

test <?php echo 'bla'; ?> test

How can I manage that the php-command is executed? The template where I am trying to use this allows php to be parsed; changing parsing-stage from output to input changes nothing.

UPDATE 1:
I am working with EE 5.3.2

UPDATE 2:
The reason I want to do this is the following: I have a snippet which contains the number of mailinglist-subscribers; it just shows the pure number. In (only) one/some of my entries I want to show this number, like "The mailinglist contains 32673 subscribers". If I could use the snippet (like I could in a template) I just would write "The mailinglist contains { snip_number } subscribers." As I assume that the allow-ee-code-plugin might be deprecated for EE5 and is not futuresafe I tried to realize it with php like

The mailinglist contains <?php echo(file_get_contents('/path/getnumbers.php'));?>

UPDATE 3: It seems that the allow-eecode-plugin still is working with EE 5.3.x (as JCOGS points out in his comment). For me with the snippet/partial it still does not work, as

{exp:allow_eecode query="y"}{summary}{/exp:allow_eecode}

allows to parse an exp:query-tag which I enter in the summary-field, but not a snippet/partial.


texts:
I want to password protect one specific page on an ee site.

http://nameofsite/site/media

for some reason I can't get it to work

I have both htaccess and htpasswd in the site folder.


texts: PHP error when using Low Variables with Grid and Assets

texts:
I created a Low Variable, using a Grid field. One of the Grid columns is an Assets field. It actually all works as supposed to. Except that I get an annoying PHP notice:

Severity: Notice
Message: Array to string conversion
Filename: assets/ft.assets.php
Line Number: 1778

Is there a way to resolve this?

Some example code

{exp:low_variables:pair var="low_var_grid"}
    {low_var_grid:grid_assets_col}
        <img src="{low_var_grid:grid_assets_col:url}">
    {/low_var_grid:grid_assets_col}
{/exp:low_variables:pair}

Setup

EE 2.9.2
Low Variables 2.5
Assets 2.5


texts: Show only parent when segment 3 is active and dynamic

texts:
I have a simple entry with categories and children.

Parent A
  Child A
  Child B

When an entry is set to ONLY Parent A I want that entry to display.  BUt what happens is the children entry is displayed instead.

{exp:channel:entries channel="channel_name" dynamic="on" limit="1"}
{content}{/exp:channel:entries}

http://domain.com/home/Classes/category/parent-a

in the example above the child category a displays instead of Parent A


texts:
I have my category links:

{exp:channel:categories channel="pages" category_group="3"}
        {category_name}
        {if category_description}{category_description}{/if}
{/exp:channel:categories}

I'm trying to display the name of the category that was clicked on "cat-landing" template.

Using the following code, but that's just outputting all the categories I have selected in my entries.

{categories} {category_name}{/categories}

Any help is much appreciated!


texts: Issue with database.php either being overriden on cached on ee2 site migration

texts:
Trying to get an old site up & running on a new server  (EE 2)

Have changed the credentials in database.php to one for the new MySQL db.

However, the site errors with "Failed to connect to MySQL: Access denied for user 'OLDUSER'@'localhost' (using password: YES) "

with 'olduser' being the previous MySQL account before database.php was edited.

So it looks like it's cached somewhere, or is being overridden elsewhere.

I've searched for this username in the php files and can't see it anywhere else so am a little stumped.

Could anyone give me any pointers?

TIA.


texts: Safecracker How to clone entry after update to EE2.6.1

texts:
Before updating to latest EE version 2.6.1, setting title and url-title to new values + setting hidden input field with name "entry_id" to '' on a safecracker edit entry form would generate a clone. Now instead the new entry  simply overwrites the original one. What else is needed?

Being able to clone entries is a huge time saver, so I would really appreciate an answer on where to look to get this working again.


texts: Trying to install EE on MAC localhost - getting error in Licence.php

texts:
I'm trying to install EE 3.2.1 on localhost on my Mac. But I'm getting the following 'undefined function' error. Through Google I can't find any mention of anyone else having the same issue. What might be the cause?

Call to undefined function EllisLab\ExpressionEngine\Service\License\openssl_verify()
in /Users/xxxxx/www/iffa/system/ee/EllisLab/ExpressionEngine/Service/License/License.php on line 248

My system versions are:
Apache: 5.5.31
mySQL:  5.6.25


texts:
I am taking over a website from previous developers who used ExpressionEngine. When I upload a new image via ExpressionEngine, it is not visible. I have tried to upload the image through the File Manager and through its own entry. Here is what I see in Safari when I try to view the image through the CMS. I just see a question mark when I view it on the actual webpage.

What is the problem here? The size of the image is correct, and when I download the image from the File Manager, I can view it on my computer. Is there something I'm missing here?


texts: Using CE Images bulk tag for responsive images syntax

texts:
I know how to use a CE Images tag pair to generate a one-off example of responsive images syntax from an image (the image being represented by the custom field {base_pic} in the following example):

{exp:ce_img:pair src="{base_pic}" width="400"}
    <img
        src="{made}"
        alt="my alt text"
        title="my title"
        srcset="
            {exp:ce_img:single src="{base_pic}" width="250" url_only="yes"} 250w,
            {exp:ce_img:single src="{base_pic}" width="600" url_only="yes"} 600w,
            {exp:ce_img:single src="{base_pic}" width="1200" url_only="yes"} 1200w"
        sizes="
            (min-width: 1110px) 625px,
            (min-width: 768px) 56vw,
            (min-width: 321px) 86vw,
            258px"
        >
{/exp:ce_img:pair}

What I am struggling with is how to generate such syntax for multiple images using the ce_img:bulk tag (so I can use it to process an Expresso rich text field). I tried using the output= parameter, but that failed because of course it requires me to specify the output markup as the parameter's value, and you can't put a ce_img:single tag inside another ce_img tag's parameter.

AFAICT I can't just put the img markup between the opening and closing tags like I did with the example above, because that's where the entire {expresso_field} needs to go.

I'm very much a CE Image noob and am getting lost amid the plethora of available options parameter and tag options (an embarrassment of riches!), so I'm confident that I'm just missing something and it can be done somehow. But I'm just not seeing it, so can somebody help? Thanks.


texts: How can I import a Filemaker database into EE?

texts:
I have a client who has their organization's membership info in a Filemaker database. Can anyone provide guidance as to how I can bring that database into EE? Ideally, I'd like to move the membership database functions out of Filemaker entirely and into EE.

Thanks in advance.


texts:
I see in the latest version of WYGWAM 2.7 that if I use Assets 2.0.4 it will connect my files if I move or rename them.  Does this affect just new files or is it 'clever' enough for all of the past files I've used.

I'm noticing that, even though a folder is indexed, the paths are not updating completely throughout my site.  Most of it is, but not all of it.

What is the best way to search this site to find which assets are not being tracked through Assets 2.0.4 versus going through every entry?  Would Low Search work to search Assets fields?


texts: Stash and ce_cache, conditional caching?

texts:
I'm trying to cache some templates using ce_cache and Stash. I can't get this to work, at the moment it's outputting nothing. My simplified 'model' code is something along the lines of:

{stash:embed:layouts:default stash:cache_tags="true"}

{exp:channel:entries status="not closed" disable="categories|category_fields|member_data|pagination|trackbacks"}
    {exp:stash:set name="content_full"}

{title}

    {/exp:stash:set}
{/exp:channel:entries}

And the embed/view:

{if exp:stash:cache_tags}
 {exp:ce_cache:it tags="default"}
{/if}
{lv_head}

        {if {exp:stash:not_empty name="content_full"}}
            {exp:stash:content_full}
        {/if}

{lv_footer}
{if exp:stash:cache_tags}
 {/exp:ce_cache:it}
{/if}


texts: upload library not working in module I am building

texts:
I've been stuck trying to upload a file in a module I am buidling.

I've tried using the EE instance and now I am trying the CI instance.

I've checked permission settings and those are fine for the directory I am trying to upload to.

I set the form type to use the form_open_multipart

Here is my upload function that does not want to work:

function upload_file()
{
    $this->CI =& get_instance();

    $file = $this->EE->input->post('userfile');

    $config['upload_path'] = './images/';
    $config['allowed_types'] = 'gif|jpg|png';
    $this->CI->load->library('upload', $config);

    if ( ! $this->CI->upload->do_upload($file) )
        print 'could not upload file';
}


texts: Sync a channel with google docs spreadsheet

texts:
Is there a way to sync a google docs spreadsheet to a certain channel in ExpressionEngine. I know this might be way advanced, and the main problem i see is maintaining unique entry_id when a google row is updated or moved.

Has anyone worked on this, and can possibly share some tips, information or even code?


texts:
I am new in expression engine , in my project i have to fix some bugs, used here EE1

I have two weblogs , elections and school - In election weblog used one field 'election_school_id' , and this 'election_school_id' is the id of weblog of  'school' . I need retrive postcode of school using this id , my code is displaying below,

{exp:weblog:entries weblog="election" search:election_id="{segment_3}" dynamic="off"}

    postcode = "{exp:replace find='\n' multiple='yes' regex='yes'}{exp:get_data weblog='school' id='{election_school_id}' field='{school_postcode}'}      {/exp:replace}";

{/exp:weblog:entries}

In this used {exp:get_data} is searched on Google , but i didn't get any results.

I searched the word get_data in the filesystem, then I got the file 'system/plugins/pi.get_data.php' and function like

function Get_data() { global $TMPL;

$weblog = $TMPL->fetch_param('weblog');
$id = $TMPL->fetch_param('id');
$field = $TMPL->fetch_param('field');

//echo("field: " . $field . " required for entry id: " . $id);
if ($field == 'title') $this->return_data = $this->get_entry_title_by_id($id);
else $this->return_data = $this->get_field_data($field,$id);
}


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

texts:
I'm building a fieldtype plugin that is essentially planned to be an extension of the 'Grid' fieldtype. I can see in the docs how you create a new fieldtype to be used inside of a 'Grid' but that's not what I want to do. I'm looking to create a plugin that essentially takes the functionality of a grid but with custom fields already inside.

Is there a way to do this? I'm using EE 3.4.7


texts: FreeForm Pro {all_form_fields} ordering fields by order in form

texts:
I'm creating a Notification Template with this tag pair:

{all_form_fields}
    {field_label}
    {field_data}
{/all_form_fields}

But the order's ending up alphabetical, not in the order I put them in Composer.

After finding http://www.solspace.com/forums/viewthread/15678 then seeing that this appeared to be fixed at http://www.solspace.com/docs/freeform/change_log/#v4.0.11:

  Fixed a bug where Notification templates using the '{all_form_fields}'
  variable pair were not ordering data by the field order set in the
  form edit screen in the CP and were going in Alphabetical order
  instead.

I'm not sure what to do. Anyone have any ideas?


texts: listing entries on lowest category level only

texts:
I'm using a classic /products/category/subcategory/ url structure.

On parent category pages I'm displaying a list of subcategories. However, for categories without children I'd like to show entries in stead.

Any thoughts on how to best approach this?


texts: Category filtering with combination of Not and Include Low Seg2Cat

texts:
I have the following code which doesn't showing any result if I combine these two together, is this the correct syntax?

{exp:channel:entries channel="people" orderby="date" category="{segment_3_category_id}&not51"   sort="desc"}


texts:
I'm struggling to get CE Image to work on my install. I'm on a Windows server and have made the 'images/made' and 'images/remote' folders and given full control to everyone to make them writable.

However, when I include the tag pair in my template, it's as if CE Image isn't doing anything. Here's my template code:

<?php
            if("{cf_recipes_size}" == "tiny" or "{cf_beers_size}" == "tiny")
            {
                $imgWidth   = "270";
                $imgHeight  = "270";
            }
            else if("{cf_recipes_size}" == "vert" or "{cf_beers_size}" == "vert")
            {
                $imgWidth   = "270";
                $imgHeight  = "540";
            }
            else if("{cf_recipes_size}" == "hori" or "{cf_beers_size}" == "hori")
            {
                $imgWidth   = "540";
                $imgHeight  = "270";
            }
            else if("{cf_recipes_size}" == "big" or "{cf_beers_size}" == "big")
            {
                $imgWidth   = "540";
                $imgHeight  = "540";
            }

            ?>

            {exp:ce_img:pair src="{cf_recipes_image}"}
                    <img src="{made}" alt="" width="<?php echo $imgWidth; ?>px"              height="<?php echo $imgHeight; ?>px" />
            {/exp:ce_img:pair}

I've turned on template debugging but there's nothing there to suggest that the directories can't be created. the URL generated from the {made} tag is just the source URL of the uploaded image (via a standard EE file control for a custom field).

The output is

Any ideas why this isn't working?


texts: Why won't SuperSearch look in Matrix field to find results?

texts:
I am trying to figure out why my technology channel won't return any results when using keywords contained in a wygwam text field within a matrix row.  The search yields results for this section when keywords are the title of the entry, so channel is set correctly and I am receiving results.  If I search a term not contained in the title, but within the matrix field I get results from other channels, but not from my technology channel.

Versions

EE 2.9.0
SuperSearch 2.2.2
Matrix 2.6

Search template

<form method="get" action="{path=search/results/search}">
     <input type="text" name="keywords" id="keywords" placeholder="Search">
     <input type="submit" />
</form>

Result template

{exp:super_search:results channel="technology_update"}
        ...output content here...
{/exp:super_search:results}

Matrix field

{technology_rd} is my matrix field.  Which has Is field searchable? set to Yes as well as the Is col searchable? checkbox selected for the wygwam textbox in the matrix row.

I recently updated the module form 2.1.4 to 2.2.2 as I noticed a number of Matrix related improvements in the the changelog to no avail.  Any ideas what I could be missing here? Any help would be greatly appreciated, thanks!


texts:
I have an ExpressionEngine site, using v2.7.3.

I appear to have lost access to the Members page in the back-end - no longer finding it in Control Panel or through Admin menu.

I have a purchased license, arranged by my then-developer in 2013 (would have been in September or October of that year).

But the module seems to have vanished. How do I access or regain access?

Thanks,
Andy


texts: I know with EE2 there was a great addon by @Viget Labs called Single Entry that limited entries in channels to a single use. Is there nothing for EE3 that can accomplish this easily? It's amazing to me that this hasn't been absorbed by Ellis Lab yet as a core feature in the channel settings.


texts: How to give site id or site name in Search in Expression Engine(bug in expression engine)

texts:
Search functionality is not working for multiple sites i have three website

eg.

1)example1.com
2)example2.com
3)example3.com

the (2) and (3) no. site is taking data from site (1) but search is only working on site (1) not on others two its redirecting to no_result_page="search/no_results"

{exp:search:simple_form
    channel="default_site:news|business|travel"
    result_page="search/results"
    no_result_page="search/no_results"
    search_in="everywhere"}

    <input type="text" name="keywords" id="search" value="" class="form-control input-sm" placeholder="Search" required />

    <button type="submit" id="submit" name="submit" class="btn btn-default btn-sm">
        <i class="fa fa-search"></i>
    </button>

{/exp:search:simple_form}

So I want to know anything else i have to add in this above code

Thanks in advance.


texts: Freeform loses its values if an error occurs when not using the standard {freeform:field:short_name}

texts:
due to the nature of my project, I cannot use the standard freeform syntax:

    {freeform:field:short_name}

I instead have to use the following syntax:

        <input type="text" placeholder="Vor- Nachname" id="short_name" value="" name="short_name" required />

It all works great - but If one omits something that triggers an error, the fields that were already filled in are blank.

I am looking to populate the value="" parameter with the things one entered before the error occurred.

e.g. value="{..._short_name}

is this possible?

btw: values are stored if you use the {freeform:field:short_name} syntax.

cheers
stefan


texts: Altering item data from store_order_item_add hooks (_start or _end)

texts:
I'm not sure if is deliberate, but the way hooks have been implemented in Exp:resso Store don't seem to allow the modification of data?

Using pass by reference has no effect (because of EE's hook calling approach?); any changes made to the data passed in the params is not available in the same variables in the hook calling method.

And there doesn't seem to be any point returning data from the extension method because there is no assignment in the Order model's addItem method, where the hook is called.

Are the hooks designed to expose data for reading-only? If I have to start hacking the Store logic code to add an assignment, or messing about modifying the records in the database, then the likelihood of functionality breaking with an update is high.

I'm disappointed this type of situation wasn't envisioned by the module developers. Why limit the hooks like this?


texts: Getting disc path to a Matrix File without using a tag pair

texts:
I'm currently forced to do this to get a disc path that I can send to CE Image for resizing:

{exp:ce_img:single src="{product_carousel_images limit='1'}{slide_image}{rel_path}{/slide_image}{/product_carousel_images}" width="320"}

I though there was a way to do something like

 {exp:ce_img:single src="{product_carousel_images limit='1'}{slide_image:rel_path}{/product_carousel_images}" width="320"}

But that does not seem to work. It'd be even better if I could do something this:

{exp:ce_img:single src="{product_carousel_images:1:slide_image:rel_path}" width="320"}

But that is a different problem.

For various reasons using remote images is not an option for us - we use a BasicAuth on all of our sites during development, and it a hit to performance to load massive images over HTTP then re-cache them, when they can easily be loaded from local disc.


texts: Setting Stash variables inside Channel entry loop - parse order problems?

texts:
I'm passing an embed variable to an email form. The email form can either send an email to one member or multiple members. If the embed variable is just one entry id, then it's an email for one member. If the ember variable is a piped list of entry ids, then it's an email for multiple members.

I'm trying to capture certain values in a Stash variable, but it's not working for me:

{exp:stash:set name="recipients"}{/exp:stash:set}
{exp:stash:set name="user_recipients"}no{/exp:stash:set}

{if {embed:advertisers_entry_id}}
    {exp:channel:entries
        channel="advertisers"
        entry_id="{embed:advertisers_entry_id}"
    }
        {if {absolute_results} == 1}
            {exp:stash:set name="recipients"}
                {author}
            {/exp:stash:set}
        {if:elseif absolute_results > 1}
            {exp:stash:set name="user_recipients"}yes{/exp:stash:set}
        {/if}
    {/exp:channel:entries}
{/if}

I've tried adding parser="inward" to the Channel entry loop and also parse_tags="yes" parse_vars="yes" in the Stash setters. No go.

How do I set Stash variables inside the Channel entry loop?

EDIT 1:

I wrote a test script, based on https://github.com/croxton/Stash/wiki/%7Bexp%3Astash%3Aset%7D#basic-usage:

{exp:channel:entries limit="1" disable="member_data|pagination|categories"}
    {exp:stash:set name="title"}{title}{/exp:stash:set}
{/exp:channel:entries}

{exp:stash:set name="recipients"}me@domain.com{/exp:stash:set}
{exp:stash:set name="user_recipients"}no{/exp:stash:set}

title: {exp:stash:title}

recipients: {exp:stash:recipients}

user_recipients: {exp:stash:user_recipients}

{exp:stash:title} outputs nothing. {exp:stash:recipients} and {exp:stash:user_recipients} outputs as expected. Does this mean that there is something about the setup of my environment that makes Stash not work as expected?

EDIT 2:

Once I have those variables set, I want to be able to use them in:

{exp:email:contact_form
    charset="utf-8"
    form_class="customer-email-form"
    recipients="{exp:stash:recipients}"
    user_recipients="{exp:stash:user_recipients}"
}

They aren't getting parsed. I have tried adding `parse="inward". No go.


texts: How do I set dynamic values based on previous entries?

texts:
I am working on a volunteer signup form where some of the fields have a limited number of slots available (for example Monday setup needs 15 people). I am good with the form in general but I need a way to determine how many slots are already filled so that the slot doesn't get overbooked. In the past I was able to do this using Freeform 3, but when the changed the structure in 4.x that option vanished. As such I bring my case to the community for guidance on the best way to accomplish this.

Thanks.


texts: JSON: export file from template with a JSON extension

texts:
I'm using JSON from Rob Sanchez, it's working fine.

The template create a file, but what is the solution for the template save the file with a json extension instead of .html or .js ??


texts:
I'm trying to implement this:
https://www.viget.com/articles/building-an-expressionengine-mini-calendar-scroller/

However comments are closed and the contact link goes to an agency. Help! I'm clearly not adding the Javascript snippet correctly, everything else seems to work. What am I doing wrong? Here is the test page:

https://www.sea.edu/sea_currents/calendar-test

Calendar is in the lower left, the arrow should slide the old month out of the way and pull in the new one, rather than directing to a new page.

Thanks!


texts: Expresso Store: SagePay Server rejecting missing BillingSurname

texts:
I can't figure this one out. I just have a standard checkout form that is hooked up to SagePay Server.

In the Store settings there is no mapping of billing firstname and surname but in the gateway class I can see the values being requested. When i submit the form, I get the message saying "3107 : The BillingSurname field is required."

If I amend the gateway class to hardcode values in the field it goes through fine. What makes it even stranger is that on a live site using the same codebase and database, it all goes through to SagePay without any errors at all.

Any suggestions?

Thanks


texts: Solspace Freeform Pro 4.0.12 Not Sending notify_user email

texts:
I'm having some troubles with Freeform Pro.

I've got my forms working correctly, using the {exp:freeform:form} tag, the information is being logged into Freeform correctly, the Admins are getting the email, but the notify_user template doesn't seem to be working. I've read the documentation and it looks as if you have to use "notify_user", "user_email_field", and "user_notification_template" all together. I've got all three params in my Freeform tag, but cannot seem to figure out why they're not getting the email.

I'm using Ajax to send the forms and to run simple validation, but I don't think that would have any effect on the user emails, would it?

Here's my code:

    {exp:freeform:form form:class="jqtransform form_main" form_id="4" required="first_name|where_do_you_live|user_message" return="your-dreams-goals" admin_notify="my_email@address.com" notify_admin="yes" notify_user="yes" user_email_field="email" user_notification_template="default"}
    <input type="text" id="first_name" name="first_name" placeholder="First name" />
    <input type="text" id="where_do_you_live" name="where_do_you_live" placeholder="Where do you live?" />
<textarea id="user_message" name="user_message" rows="5" cols="15" placeholder="Click here to type your dream or goal...">Click here to type your dream or goal...</textarea>

Would you like to send your dream or goal to yourself?

<input type="text" class="input" name="email" id="email" placeholder="Email Address" />
(Optional)

<input type="checkbox" id="accept" class="checkbox" />
By checking this box, you agree to share your Dreams and Goals on our website and other social media sites like Facebook and Twitter for others to see and enjoy.  We might also show them in our IPMG written materials.  We would only use your first name and city.  If you do not want us to show your Dreams and Goals, do not check this button, and they will be kept private.

<input type="submit" class="cta float-left" id="form-main" onclick="return ValidateForm();" {/exp:freeform:form}

I have a notification template called "default" saved in Freeform.

Any ideas as to what may be going on? Any help would be appreciated.

Thanks!!


texts: Custom add-on accessing method from another custom add-on …

texts:
I've got a custom add-on/extension that extends the Store module by tapping into the store_order_complete_end hook to save details of an order to an XML file stored on the server.

I want to access this method from within another plugin. How best to achieve this? In Craft CMS I would abstract this method in my first plugin into a service that could then be called by another add-on. However, my EE is a bit rusty and not sure how best to achieve this in EE (EE2).

Thoughts appreciated.

Cole


texts: Wygwam field with sub-domains - Can't insert media from YouTube

texts:
ExpressionEngine v2.7.1 - Build Date: 20130924
Wygwam 3.1.2

If I create a new entry, I am able to click on the "Embed Media" button in the toolbar and paste the YouTube provided embed code, click "Save" and the video inserts without issue.

However, if I edit that entry, or edit another entry and attempt to insert a video in another location, I click the "Embed Media" button in the toolbar and paste the YouTube provided embed code, click "Save" and nothing happens.

In the console window, (Chrome), I get the following:

Uncaught SecurityError: Blocked a frame with origin "http://admin.domain.com" from accessing a frame with origin "http://domain.com". Protocols, domains, and ports must match.        ckeditor.js:876

In IE script error window I get:

SCRIPT5: Access is denied.        ckeditor.js, line 876 character 99

I don't understand why it works the first go, but not the edit.


texts: How do I include an entry image in an RSS Feed?

texts:
A site (running EE 2.11.1) I am working on has the following RSS feed code:

{preload_replace:master_channel_name="blog"}
{exp:rss:feed channel="{master_channel_name}"}

<?xml version="1.0" encoding="{encoding}"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/">

    <channel>

    <title>The corecubed Blog</title>
    <link>{channel_url}</link>
    <description>{channel_description}</description>
    <dc:language>{channel_language}</dc:language>
    <dc:creator>{email}</dc:creator>
    <dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
    <dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
    <admin:generatorAgent rdf:resource="http://expressionengine.com/" />

{exp:channel:entries channel="{master_channel_name}" limit="10" dynamic_start="on" disable="member_data|pagination"}
    <item>
      <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
      <link>{title_permalink='blog/entry'}</link>
      <guid>{title_permalink='blog/entry'}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
      <description>{exp:xml_encode}{blog_body}{/exp:xml_encode}</description>
      <dc:subject>{exp:xml_encode}{categories backspace="1"}{category_name}, {/categories}{/exp:xml_encode}</dc:subject>
      <dc:date>{gmt_entry_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
    </item>
{/exp:channel:entries}

    </channel>
</rss>

{/exp:rss:feed}

Each blog entry has a photo associated with it and I would like to add it to the fee. I tried adding it using the following:

<![CDATA[<img src="{blog_image}" alt="{title}">]>

But that broke the feed.

Any suggestions would be helpful.


texts: Is there a maximum number of emails that can be sent through EE?

texts: We are looking into an email solution for our client. They would like to email their site members once or twice a month. The amount of members is around 6,000. Does anyone know if there is a maximum number of emails that can be sent via ExpressionEngine (Tools > Communicate)? It is set up to send via SMTP (SendGrid). Note: we have the ability to send 40,000 emails per month with SendGrid, so that would not be a bottleneck. I would appreciate any insight or feedback you can offer. I have very limited experience sending emails via the Control Panel's Tools > Communicate.


texts:
I cannot access sql manager on a site which is running EE v 4.0.8
I've checked the file permissions and they look fine.  This is the error message.  Any suggestions of what to check next?

View file not found: utilities/sql/manager
ee/EllisLab/ExpressionEngine/Service/View/View.php:331

Stack Trace: Please include when reporting this error
#0 ee/EllisLab/ExpressionEngine/Service/View/View.php(83): EllisLab\ExpressionEngine\Service\View\View->getPath()
#1 ee/legacy/libraries/View.php(39): EllisLab\ExpressionEngine\Service\View\View->render(Array)
#2 ee/legacy/libraries/Cp.php(252): View->render('utilities/sql/m...', Array, false)
#3 ee/EllisLab/ExpressionEngine/Controller/Utilities/Sql.php(117): Cp->render('utilities/sql/m...', Array)
#4 [internal function]: EllisLab\ExpressionEngine\Controller\Utilities\Sql->index()
#5 ee/EllisLab/ExpressionEngine/Core/Core.php(240): call_user_func_array(Array, Array)
#6 ee/EllisLab/ExpressionEngine/Core/Core.php(109): EllisLab\ExpressionEngine\Core\Core->runController(Array)
#7 ee/EllisLab/ExpressionEngine/Boot/boot.php(146): EllisLab\ExpressionEngine\Core\Core->run(Object(EllisLab\ExpressionEngine\Core\Request))
#8 htdocs/cmssystem.php(147): require_once('...')
#8 htdocs/cmssystem.php(147): require_once('...')


texts: Now that Solspace Importer is a legacy product, what is the recommended method to import tags into my new EE3 installation? The rest of the entries are imported (using DataGrab and XML), so I can use the titles and URLs as keys for the import; but I cannot get multiple tags to import just using DataGrab. I tried separating the tags with commas, but when that imported in and was associated with the entry, what I got was one tag with commas in it rather than five separate tags on the entry.


texts: Is there a simple way for the client to add to a dropdown list on a publish page?

texts:
I'm creating an "events" channel and I want to have a dropdown list on the publish page so the editor can select the country in which an event takes place. Initially, events will only happen in 2 or 3 different countries (e.g., US, Italy, France) and so I don't want to populate a list of all countries. What I'm looking for, then, is a way that in the future, an editor can easily add a country to the list without having to go into the field settings etc.

Is this doable?


texts:
I tried to do an upgrade to 2.7.2 using Updater but found that the version of Updater was old. Hence, it didn't work! I know it's my fault and I should have checked first.

Now when I try to login to the Control Panel I get the following error message -

  A Database Error Occurred

  Error Number: 1054

  Unknown column 'hash' in 'field list'

  SELECT hash, timestamp FROM (exp_developer_log) ORDER BY
  timestamp asc

  Filename: libraries/Logger.php

  Line Number: 106

It's not critical as the site is in development, but when I get home tonight and have a chance to look at it, if I do a manual upgrade of the EE files for 2.7.2 will that solve the issue?

I do have a back up of the database before I began the upgrade and I host with enginehosting.


texts:
Have an issue with using DevDemons Tagger with Safecracker.
Know this has been working before, so the syntax "should" be right.

Running EE 2.5.5 and TAGGER 3.0.6

The code (I totally stripped all css for testing) looks something like this on the site:

{exp:safecracker channel="patricks_blogg" include_jquery="yes"}
<label for="patricks_blogg_tags" class="clearfix">Taggar</label>
{field:patricks_blogg_tags}
{/exp:safecracker}

The error I get is:

Error Number: 1054

Unknown column 'ip_address' in 'where clause'

SELECT `hash` FROM (`exp_security_hashes`) WHERE `ip_address` = '80.217.184.33' AND `date` > UNIX_TIMESTAMP()-3600 LIMIT 1

Filename: third_party/tagger/libraries/tagger_helper.php

Line Number: 221

Any ideas?


texts: Cart Throb: The totals of the cart item amounts do not match order amounts. 10413

texts:
Having a serious issue with Cart Throb:

When checking out I am getting this error

Your payment failed: Failed: The totals of the cart item amounts do not match order amounts. 10413 Try checking out again »

I am using Paypal Express

Cart Throb version 2.2.2
EE version 2.5.2

I checked my plugin and this line is already there:

if (!empty($_POST['PR']) || !empty($_POST['price']) || $this->order('pp_alt_total'))

What could be causing this error?  Please help this is a live store.

Here is my checkout code:

{if "{exp:cartthrob:total_items_count}" > 0}

      Total
      {exp:cartthrob:cart_total}

      Subtotal
      {exp:cartthrob:cart_subtotal}

      Shipping
      {exp:cartthrob:cart_shipping}

      Tax
      {exp:cartthrob:cart_tax}

      Discount
      -{exp:cartthrob:cart_discount}

 *All fields are required

  {!-- add secure_action="yes" parameter if you want to submit this form using HTTPS:// connection --}
  {exp:cartthrob:checkout_form
   return="shop/order_info"}

   {!-- {if {exp:cartthrob:view_setting allow_gateway_selection="yes"}}

Select a payment method
    {exp:cartthrob:gateway_select id="gateway"}

   {/if}--}
   Coupon: &lt;input type="text" name="coupon_code" /&gt;

   {gateway_fields}

      &lt;input type="submit" class="cart_submit_button" value="Complete Checkout" /&gt;
  {/exp:cartthrob:checkout_form}

  {if:else}

You have no items in your cart. Continue shopping

  {/if}


texts: Sorting Low Search results across multiple channels

texts:
We've got two channel, Images and Videos, that we're combining in search results. Searching by keyword works great. So does sorting by entry_date and title. But we'd also like to sort by other fields.

To simplify things, imagine a custom field in each channel - video_score, image_score - that hold integers received from elsewhere. So, how would it be possible to combine these two for the orderby?

If it's easier we can create fields video_order and image_order with unique ordering numbers, but due to the custom fields being in two channels I don't see how to use the same custom field name, which appears to be what we need for orderby.

Do we maybe need to hijack a core field?

Thanks,
Paul


texts:
I'm using NSM Better Meta 1.1.3 with EE 2.7.2 . I'm trying add entry specific meta data, however when I use the tag: {exp:nsm_better_meta:template url_title="{segment_3}"} I get the error below.  It seems to the url_title part that's causing the issue, any other nsm_better_tag works just fine.

Any ideas?

Thanks,

Error Number: 1054

Unknown column 'exp_channel_titles.dst_enabled' in 'field list'

SELECT exp_members.screen_name   as e_author, exp_channel_titles.entry_id    as e_entry_id, exp_channel_titles.channel_id    as e_channel_id, exp_channel_titles.site_id     as e_site_id, exp_channel_titles.title  as e_title, exp_channel_titles.url_title    as e_url_title, exp_channel_titles.entry_date   as e_date_created, exp_channel_titles.edit_date     as e_date_modified, exp_channel_titles.expiration_date  as e_date_valid, exp_channel_titles.author_id   as e_author_id, exp_channel_titles.day  as e_day, exp_channel_titles.month  as e_month, exp_channel_titles.year     as e_year, exp_channel_titles.dst_enabled   as e_dst_enabled, exp_nsm_better_meta.language_id   as e_language, exp_nsm_better_meta.title    as meta_title, exp_nsm_better_meta.description  as meta_description, exp_nsm_better_meta.keywords   as meta_keywords, exp_nsm_better_meta.keywords_append_default   as meta_keywords_append_default, exp_nsm_better_meta.publisher  as meta_publisher, exp_nsm_better_meta.author   as meta_author, exp_nsm_better_meta.rights  as meta_rights, exp_nsm_better_meta.canonical_url   as meta_canonical_url, exp_nsm_better_meta.robots_index     as meta_robots_index, exp_nsm_better_meta.robots_follow     as meta_robots_follow, exp_nsm_better_meta.robots_archive   as meta_robots_archive, exp_nsm_better_meta.sitemap_include     as meta_sitemap_include, exp_nsm_better_meta.sitemap_change_frequency  as meta_sitemap_change_frequency, exp_nsm_better_meta.sitemap_priority   as meta_sitemap_priority, exp_nsm_better_meta.geo_region    as meta_geo_region, exp_nsm_better_meta.geo_placename   as meta_geo_placename, exp_nsm_better_meta.geo_latitude     as meta_geo_latitude, exp_nsm_better_meta.geo_longitude     as meta_geo_longitude FROM exp_channel_titles INNER JOIN exp_members ON exp_channel_titles.author_id = exp_members.member_id LEFT JOIN exp_nsm_better_meta ON exp_channel_titles.entry_id = exp_nsm_better_meta.entry_id WHERE (exp_channel_titles.url_title = 'about_us' AND exp_channel_titles.site_id = '1') AND ( exp_nsm_better_meta.language_id = 0 OR exp_nsm_better_meta.entry_default = 1 OR # NULL for entries that have no meta exp_nsm_better_meta.language_id IS NULL ) ORDER BY exp_nsm_better_meta.language_id DESC LIMIT 1

Filename: third_party/nsm_better_meta/mod.nsm_better_meta.php

Line Number: 205


texts: Styled `span` elements injected into comment output

texts:
Does anyone know of a way to stop EE from injecting spans (with inline styles) into code blocks in comments? I'm fine with the div wrapping the code (that's not that big of a deal), but the spans are completely unnecessary.

Example output from EE:

            This is code

Edit to update: I've worked around this problem by using the following CSS to override the inline styles, so really this is just a matter of "I don't want junk in my markup" over broken functionality. (Also, a matter of pride, because !important is !embarassing.)

.codeblock code, .codeblock span {
    color: #ddd !important;
}


texts:
We’re using CE Image along with Assets images stored in S3. We’ve used curl to go through all the pages so that CE Image does its thing to the image and stores its “made” image in S3. The hopes is to cut down the load time when a user goes to that page., BUT we’re still seeing slowdown when a user visits a page with CE Image modified/stored S3 images. Other pages open up really fast.

It seems like CE Image isn’t using the already existing “made” image on S3, but instead is double-checking each image over again. Does that make sense? How can we speed up the load time of CE Image assets? Particularly with pages that have a lot of images.

Example of how we're using CE Cache to wrap CE Image/Assets tags:

{exp:ce_cache:it id="{g:alamo_market:url_title}-slider-on-sale" tags="schedules" global="yes"}

    {exp:channel:entries
      channel="schedules"
      disable="categories|member_data|pagination"
      dynamic="no"
      status="{global:status}"
      entry_id="{segment_3}"
    }
      {schedule_on_sale}
        {schedule_show}

          {show_poster var_prefix="file"}

          {/show_poster}

{title}

            Buy Tickets

        {/schedule_show}
      {/schedule_on_sale}
    {/exp:channel:entries}

{/exp:ce_cache:it}


texts: Error when trying to display member profiles

texts:
When I try to display a member's profile using the url:

http://coastsider.com/[member trigger]/[member number]

I get the following error message:

A PHP Error was encountered

Severity: Notice

Message: Undefined property: Member_settings::$config

Filename: member/mod.member_settings.php

Line Number: 370

Fatal error: Call to a member function item() on a non-object in [home directory]/expressionengine/modules/member/mod.member_settings.php on line 370

Interestingly, I get this message for every user except the Superadmin (user #1).


texts: Using Channel Form to change the channel of an entry

texts:
I've searched the docs and don't see any native way to change an entry from one channel to another via a channel form. (In my case the 2 channels share the same field and status groups so this should be doable. Indeed, it is possible in the CP when editing entries.)

Am I missing something, or will a plugin be required here.

Thanks!


texts: How to prevent EE and CartThrob setting cookies for anonymous users?

texts:
I'm trying to set up Varnish to cache certain static pages on my site for users who have not logged in or added anything to their cart.

Basically, Varnish will check whether the user has any cookies set on the site. If not, it will serve a cached version of the page. This can help dramatically when the page is under heavy load (like during a press push), where the majority of visitors won't have logged in or added anything to the cart.

The problem is, ExpressionEngine and CartThrob both set a bunch of cookies when the user first arrives, before there's any need for session data to be stored. As such, pages are (rightly) never cached by Varnish. I'm seeing these cookies set immediately on the first request:

exp_cartthrob_session_id
exp_last_activity
exp_last_visit
exp_tracker

Ideally, neither EE or CartThrob should set a cookie until either the user logs in or adds something to their cart. Is there any way to prevent all of these cookies from being set on first visit?


texts: Displaying a Wygwam field in a SAEF/Channel_Form entry

texts: I finally have a project to use SAEF/Channel Forms in and I am banging my head against the wall trying to display the wygwam fields. Does anyone know the trick here?


texts: Delete EE's Member Profile Templates to Prevent SPAM, what do you think?

texts:
If all my membership functionality is handled on the front end via an addon like User or Freemember, can I just delete EE's built in member profile templates?

What do you think? Would that help prevent spam accounts?


texts: {filename} is outputting the extension as well

texts:
I am on EE 2.5.5 and Assets 2.1.3.

{cf_moebel_assets} is a custom assets field.  The {filename} variable outputs the extension as well:

{cf_moebel_assets}
    {subfolder}{filename}-z1.{extension}
{/cf_moebel_assets}

this will render as:

designklassiker_tisch.jpg-z1.jpg

I've tried it on a standalone template and the short version. It always outputs the extension.


texts: Expresso Store Hook store_order_complete_end

texts:
I am very new to EE2 and using Expresso Store in one of my websites in EE2 and need to use this hook when the order has completed and payment has been made successfully. The code I need to call is this: ee()->extensions->call('store_order_complete_end', $order);

What I would like to ask is what do I parse to the $data parameter?

When this hook runs, I need to call a function that generates a coupon code and add this code to the database, but what is the $order parameter in this piece of code and where exactly in the project would I call this piece of code?


texts:
Is it possible to calculate a members' age with Low Nice Date?

Experimented with this but really need to know what format the (native) {member_birthday} outputs...

{exp:low_nice_date date="{current_time format="%F %j%S, %Y"}-{member_birthday}" format="%F %j%S, %Y"}


texts: Fieldtype display_field() function converting to htmlentities()?

texts:
I'm having some trouble where my display_fields() function is converting my json encoded data from $data into htmlentities().

Here's my function:

function display_field($data)
{
    error_log($data);
}

Return:

[{&quot;approved&quot;:true}]

Stored in database as:

[{"approved":true}]


texts:
I just moved a site from my dev hosting to my client's hosting.
Every path has been updated correctly. However, all files on Assets or the File manager are not showing on the front end.

When I click "update indexes" on Assets, I get this message:

There are some entries in the database that are out of date - please select the ones that you want to delete below

In addition, I can't upload new files.

Any ideas?
Thanks in advance,

Santiago


texts: Register member during checkout doesn't work in Store2 [solved]

texts:
Edit: Problem solved in store update. Just download and install it.

After installing Store 2 on a new site, i am no longer able to register members during checkout. To be sure, I also tried with the code I can confirm works on store 1, but it doesn't work on store 2. My form looks like this.

I have also enabled "Allow New Member Registrations" in EE.

If anyone can spot my problem, or give me some direction, it would keep me from ripping my hair out and be much appreciated! Thanks

{exp:store:checkout
form_class="form default"
next="butikk/personalia"}

{if no_items}
    {redirect="butikk/handlevogn"}
{/if}

Faktureringsadresse

        Fornavn
        {field:billing_first_name} {error:billing_first_name}
        Etternavn
        {field:billing_last_name} {error:billing_last_name}
        Adresse
        {field:billing_address1} {error:billing_address1}
        Postnummer
        {field:billing_postcode} {error:billing_postcode}
        Sted
        {field:billing_address2} {error:billing_address2}
        Land
        {field:billing_country} {error:billing_country}

        Telefon
        {field:billing_phone} {error:billing_phone}
        E-post
        {field:order_email} {error:order_email}

            Passord
            {field:password} {error:password}
            Bekreft passord
            {field:password_confirm} {error:password_confirm}

            {field:register_member} Opprett konto (valgfritt)

Leveringsadresse

            Fornavn
            {field:shipping_first_name} {error:shipping_first_name}
            Etternavn
            {field:shipping_last_name} {error:shipping_last_name}
            Adresse
            {field:shipping_address1} {error:shipping_address1}
            Postnummer
            {field:shipping_postcode} {error:shipping_postcode}
            Sted
            {field:shipping_address2} {error:shipping_address2}
            Land
            {field:shipping_country} {error:shipping_country}

            Telefon
            {field:shipping_phone} {error:shipping_phone}

            {field:shipping_same_as_billing} Samme som faktureringsadresse

    <input type="submit" name="next" value="Fortsett" class="btn-flat green">

{/exp:store:checkout}


texts: How to force installation of extension during module install

texts:
When installing a module how do you require it's extension to be installed at the same time and vice versa?

I did a google search and looked over the docs as well and didn't find anything. That doesn't mean it's not out there. Maybe I wasn't searching for the right terms.


texts: Unable to upload files to directory 'file upload path not valid'

texts:
Site has just launched - and no issue with uploaded pdfs previously.

Some pdf links were broken and exisiting files not visible in directories. Trying to re-upload pdf and get message, file upload path is not valid.

Only have CMS access is there anything I can do to resolve and upload the file?


texts: InnoDB or MyISAM - What's the "correct" database storage engine for EE4/EE5?

texts:
As I am looking into my database via phpMyAdmin I see that most of the tables are MyISAM, some are InnoDB (e.g. from plugins). As far as I read in the web InnoDB is known as "better", but I am no expert.

As I have been upgrading EE for years I am not sure if it's problematic if MyISAM is used instead of InnoDB. Also I would like to know if it could cause problems with EE to convert all tables to InnoDB.

Thanks in advance!


texts: Need a regex ninja's help with replacing a YouTube string

texts:
I'm looking for some help with replacing YouTube embed codes with something that can be used with AMP pages https://www.ampproject.org/

Example, we would like replace this:

<iframe allowfullscreen="" frameborder="0" height="439" src="https://www.youtube.com/embed/xxxxxxxxxxx" width="780"></iframe>

with this:

<amp-youtube width="480" height="270" layout=responsive data-videoid="xxxxxxxxxxx"></amp-youtube>

Unfortunately, we can't simply replace the iframe tag with amp-youtube because we have other non-YouTube iframes floating around our site. To make things even more complicated, the YouTube embed codes live in our main content area as a WYGWAM field. Obviously, we'd like to also retain the video ID, illustrated above as 'xxxxxxxxxxx'

I've gotten pretty close with using Low Replace but my head can't wrap around regex. Here is the template code for our main content:

{exp:low_replace regex="yes" find='youtube_example' replace='amp_example' multiple="yes"}
    {exp:ce_img:bulk max_width="780" bucket="site" hide_relative_path="yes" attributes='layout="responsive"'}
        {content}
    {/exp:ce_img:bulk}
{/exp:low_replace}

Any help would be much appreciated!