texts: Adjust shipping cost based on product Variation?

texts: We're using Store to sell magazines that have three variations: Print, Digital and Print + Digital. We're currently using Flat Rate shipping with a base rate and a per-item cost. However, if the visitor selects only the Digital version of an individual magazine, can we override the shipping costs for that particular product, while keeping Flat Rate shipping costs in place for any other products in the cart?


texts:
I'm using the code below on EE2.5.3 and playa 4.3.3 and am not getting expected results. With the orderby and sort parameters in place, I only get 1 entry returned.

If I remove the orderby and sort parameters I get 4 entries returned, albeit not in the order I want.

Can anyone explain this disparity?

    {exp:channel:entries channel="subcontractors" orderby="title" sort="asc" dynamic="no" disable="categories|category_fields|member_data|pagination"}
        {if {exp:playa:total_parents} >= 1}
            <li>{title} &rarr; {exp:playa:total_parents} Warranty items</li>
        {/if}
    {/exp:channel:entries}


texts: Stash and Multiple Grid Fields Not Populating

texts:
Running into strange issue getting content into a Stash list from two grid field. A stripped down version of my code is below.

The two grid fields are {meeting_people} and {meeting_faculty}. In the entry I'm using to test this both grid fields have four rows. With the code below, all four rows of the field called first are stashed but only one row of the second field gets stashed.

Note: This is true even if the field order is switched in my code. That is, if I move {meeting_faculty} above {meeting_people}, all four rows of {meeting_faculty} are stashed while only one row of {meeting_people} gets stashed.

This is on an ExpressionEngine 2.9.2 build running Stash 2.6.2.

{exp:stash:set_list name="alt_faculty_{url_title}" scope="site" site="default_site" save="yes" parse_tags="yes" parse_depth="10"}
  {exp:channel:entries site="default_site" channel="meetings" url_title="{segment_2}" limit="1" dynamic="no"}

    {meeting_people}
      {stash:people_bio_override}{meeting_people:biography}{/stash:people_bio_override}
      {stash:people_director}{meeting_people:director}{/stash:people_director}
      {meeting_people:name}
        {stash:people_name}people_name: {meeting_people:name:title}{/stash:people_name}
        {stash:people_credentials}{meeting_people:name:people_credentials}{/stash:people_credentials}
      {/meeting_people:name}
    {/meeting_people}

    {meeting_faculty}
      {stash:faculty_name}faculty_name: {meeting_faculty:name}{/stash:faculty_name}
      {stash:faculty_bio}{meeting_faculty:bio}{/stash:faculty_bio}
     {/meeting_faculty}

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


texts: How do I add a content-type header to my template?

texts:
I am trying to build out an api template inside our CMS to expose a particular channel as json.  I'm going to call that channel "public." Here's the template that I have put together thus far:

[
{exp:channel:entries channel="public" dynamic="no"
    limit="{segment_3}"
    offset="{segment_4}"
    orderby="{segment_5}"
}

    { "title" : "{title}", "source" : "{public_html}" }{if count < total_results},{/if}
{/exp:channel:entries}
]

There are two channel fields defined public_html and public_css that represent the stored contents of the content item.  As is, it is delivering my data as text/html and I am needing to switch it to application/json to instruct the browser.

So, I tried adding

<?php header("Content-Type: application/json"); ?>

to the top of my template (moved it around and saw no changes), but it is still delivering text/html (verified through fiddler)  In the long run, I can handle text/html in my service layer, but I would really prefer this to be done right.

How do I add the Content-Type: application/json HTTP Header to the template that I provided?


texts: 2-layer children - I can't wrap my head around this! ;-)

texts:
So I have three channels. One is called Event Categories, one is called Events, and one is called Standard Pages.

For other reasons I don't want to get into here, I have decided not to use the native EE "Category" functionality to accomplish this.

What I need to have happen is this. Events are related to Event Categories and then Event Categories are related to Standard Pages. So if I associate an Event Category with a Standard Pages entry, it needs to list all of the specific Events associated with the Event Categories associated with that Standard Page entry. These Events should be listed under a title h3 element for each Event Category listed. If an Event Category is related to the Standard Page, but has no active Events associated with it, it should not be shown.

I am sure this is a very easy thing to accomplish, but relationships always mess with my head and I cannot, for the life of me, figure out the template code to accomplish this.

Thanks for your help!


texts: Content Elements - too many elements causing problems

texts:
So I am running into an interesting problem.  I have an article that, within 'Content Elements' (https://devot-ee.com/add-ons/content-elements) field there are over 50 elements.

When I save a revision, it reloads the article and the 'Content Elements' field is now empty.  The other EE fields (thumbnail, url-title) still appear however.
What's interesting is that if I go to Revisions, and load a prior revision (where the same issue happened), all of the properly saved content elements fields appear.  Moreover, if I load the latest revision (again, where Content Elements was blank after save), all of the data properly appears.  So the data is all being saved properly, it's just not being shown.

When I try to view the page (via Live Look), none of the Content Elements data is shown though.

If I go back to Content->Edit->Entry, the Content Elements is again blank (other EE fields like thumbnail and url-title load fine). I have to load a previous revision first, and then load the most recent revision again in order to see the latest Content Elements data.

So I tried shortening my article, by removing about 10 elements inside the Content Elements field.  This brought the article closer to ~40 elements.  Presto! It all works as it should.  So it appears it's something to do with the amount of elements I'm using inside Content Elements.

Curious if anyone has run into this before? Any suggestions on trying to debug this?

Thanks!


texts:
I've recently upgraded an ee2.5.3 site build up to ee2.11.9 (ready for further  EE3.5x upgrade).

The site also has an existing CartThrob 2.5 installation upgraded to 2.7.1 along with an existing custom plugin called: pi.cc_marketplace.php.

When the plugin runs (ie. the plugin activates when a site user has products in the site basket etc) I'm getting the following database error (from the custom plugin code) ie.

Error Number: 1052 Column 'entry_date' in where clause is ambiguous

select sum(quantity) as quantity_available from ( select -coalesce(sum(quantity),0) as quantity from exp_channel_titles as order_titles join exp_cartthrob_order_items as order_items on sm.order_items.order_id = sm.order_titles.entry_id where status = "Processing" and channel_id = 6 and entry_date > unix_timestamp(date_sub(now(), interval 30 minute)) and sm.order_items.entry_id = 31500 union select field_id_369 as quantity from exp_channel_data where entry_id = 31500 ) as quantity

Filename: third_party/cc_marketplace/pi.cc_marketplace.php

Line Number: 93

For clarity I have provided the actual PHP class (with the problematic SQL query code) from the pi.cc_marketplace.php plugin as per below:

public function _get_quantity_available($entry_id){
        $order_id = $this->EE->cartthrob->cart->order("order_id");
        $order_id_sql = "";
        if (isset($order_id) && $order_id != ""){
            // In case the user goes back to the checkout process after leaving for the gateway
            $order_id_sql = " and order_titles.entry_id != $order_id";
        }
        $field_ids = $this->get_channel_field_ids();
        $sql = <<<EOF
    select sum(quantity) as quantity_available
    from (
        select
            -coalesce(sum(quantity),0) as quantity
        from exp_channel_titles as order_titles
        join exp_cartthrob_order_items as order_items on order_items.order_id = order_titles.entry_id
        where
        status = "Processing"
        and channel_id = 6
        and entry_date > unix_timestamp(date_sub(now(), interval 30 minute))
        and order_items.entry_id = $entry_id
        $order_id_sql
    union
        select
            field_id_${field_ids["cc_mp_product_quantity_available"]} as quantity
        from exp_channel_data
        where entry_id = $entry_id
    ) as quantity
EOF;
        $res = $this->EE->db->query($sql);
        $res = $res->row();
        return $res->quantity_available;
    }

I've seen some similar posts on here regarding the 'Error Number: 1052 Column 'xxx' in where clause is ambiguous' error but the example issues don't quite match the issue I have here.

Can anyone help with the above?

Many thanks in advance.

Regards

Karl


texts: Freeform Composer spam prevention recommendations?

texts:
I'm using Composer to create my form and the Channel Entry Fieldtype (http://www.solspace.com/docs/freeform/channel_entry_fieldtype) to output it. Works great and is so simple. But a spambot just made it through the Captcha field I used (the default EE one), so I'm wondering what spam prevention you guys can recommend?

I've also used HonEEpot (http://devot-ee.com/add-ons/hon-ee-pot-captcha) with success, but using the channel entry fieldtype, I'm not sure how to insert that into my form.


texts: Where is the {events_cost} variable defined? How can I strip the $ sign from its value?

texts:
ExpressionEngine newbie here. Please bear with me.

A client recently asked me to help them update the PayPal code on their ExpressionEngine powered website because their usual PHP developer went MIA. They're aware I'm not an ExpressionEngine expert, but still asked me to take a look.

The client has an event page where they change the event periodically via an entry in ExpressionEngine. The entry controls the cost of the event and can be changed by an admin. This cost of the event is made in a variable called {events_cost}. The variable is translated to Paypal via a Paypal buy now button integration. What I'm trying to do is change how the {events_cost} dynamic variable is parsed by ExpressEngine so that instead of outputting as "$30" for example, it will output without the dollar sign and be just "30." The actual cost amount is controlled via a post entry under Content > Edit > Events. (I'm in need of taking out the dollar sign in order to make sure the code conforms with Paypal's new integration standards, as they don't allow currency signs in the code anymore.)

I've been trying to look for where the {events_cost} value is stored or translated, so that I can remove the dollar sign from the output. I'm sure this a newbie question with an obvious answer, but are there any thoughts as to where I can find where this value is being stored by the system to remove the dollar sign?

Their site currently runs on EE v2.10.1.

Thank you!


texts:
I've posted this issue to the Ellis Lab Forums, but thought I'd also post it here in case it helps. As best as I can tell, images placed using the Rich Text Editor's 'image' button do not properly honour the directory path. It would appear that the image's src url is derived  from the path specified in File Upload Preferences at the time of entry, but that it is somehow hard-coded at that point, not set as a dynamic variable. The result is that the RTE-placed images are not portable between servers.

An example:
Suppose I am building a site on a local server, which will then be moved to a remote server. When the site is moved between servers all the paths (such as File Upload Preference directory paths) get adjusted to match the new server by means of Focus Lab's Master.Config system. Now, working locally I place two images in a blog post: one placed in an RTE field via the 'image' button, and one placed via a 'file' field. (It makes no difference for this example whether they are new uploads or pre-existing images; the result is the same). I reference each image in a page template, via custom field tags – let's call them {my_rte_field} and {my_file_field}.

I then move the site to the remote server. What I find when I check the page source code is that the src url for the image placed via the {my_file_field} tag is correctly represented as http://www.myremotedomain.com/path/to/image/file.jpg, but the image that was placed as part of the {my_rte_field} tag has the incorrect src url of http://localdevserver/path/to/image/file.jpg. As a result, the image does not display on the remote site.

It took me a while to notice this because I was viewing the remote site in a browser on the same machine that was running the development server. So of course the image was available, albeit from the wrong server — but that wasn't obvious at a casual glance. Only when I checked the remote site on my iPad did the problem reveal itself.

RTE Bug? Or am I missing something here?


texts: Show categories associated with a list of channel entries

texts:
I'm wanting to filter a list of product entries with Ajax and I am wanting to create a dropdown list of all categories associated with the current list of entries.

eg. I have 100 products that have a main category and have all been assigned a category or two for filtering. In the dropdown list, I want to show ONLY the filtering categories that have been assigned to the current list of products.

So far, I've got a list of ALL categories from a group and not the limited list based on the products in the main category.

I'm currently playing with the query module to see if I can filter the category list down to the correct list of filtering categories.

Its a tough one to explain, but I hope I have done a good job.

Does anyone know the best approach?

I've test GWcodes categories and provided a list of entry_ids, however this shows up a list duplicated categories. Basically the right result, but I get duplicates.

Any help and guidance would be gratefully received.

Thanks


texts: Dropdown menu using child structure pages

texts:
I have the following code and I'm trying to make it so that the children page titles populate in the dropdown listing and then link to that page. Any

                                        {exp:structure:entries dynamic="off"}
                                        {machine_support_category}

{title}

                                            <select>
                                                {structure:child_listing:channel_id}
                                                <option>{title}</option>
                                                {structure:child_listing:channel_id}
                                            </select>

                                        {/machine_support_category}
                                        {/exp:structure:entries}

Backend Pages Structure:

Frontend:


texts:
Im experimenting with Moblog as would really like to get this to publish short read entries into my site. Ive got it working to some extent, its publishing to channel entries and I could display those with templates if I wish. But, every time I check for new emails, I get all the emails again, and they create new (repeat) entries.

Any idea why this is happening and how I can stop it?


texts: Stash: How can I get the 'url_title' of the first channel entry?

texts:
I am not very used to stash.
My code looks like this:

{exp:channel:entries
    channel="moebel"
    orderby="date"
    sort="desc"
    dynamic="off"
    disable="member_data|trackbacks|pagination"
}
    {count}

{if count == '1'}
    {exp:stash:set name="myurltitle"}{url_title}{/exp:stash:set}
{/if}
{/exp:channel:entries}

This does not work because the variable 'myurltitle' will always be the last url_title of the 10 entries in the channel.

How can I realize this? Thanks!


texts:
Is there a way of customizing the errors Solspace freeform displays as it currently just says "Required field missing input". I would like to make the error a bit more explanatory. Also, as the website is in Italian, I would also like the error displayed to also be in Italian and not English. Is there somewhere where I can edit/customise this?

Edit 1/12/2018

I have not been able to get the {if freeform:errors} to work properly. I have added the code for my form below in case it helps.

{exp:freeform:composer form:id="reportForm" form:class="report-form" form_name="report_issue"}
  {composer:page}
    <form class="report-form" id="reportForm">
      <fieldset>

        {composer:rows}
          {composer:columns}
            {composer:fields}
              {if composer:field_label}
                {if composer:field_type == 'nonfield_captcha'}
                  {if freeform:captcha}

                    {composer:field_label}

                  {/if}
                {if:else}

                    {composer:field_label}{if composer:field_required}*{/if}

                {/if}
              {/if}
              {if composer:field_output}
                {if composer:field_type == 'nonfield_title'}
                  <legend>{composer:field_output}</legend>
                {if:elseif composer:field_type == 'nonfield_paragraph'}
                  {composer:field_output}
                {if:elseif composer:field_name == 'indirizzo_url'}
                  <input type="text" name="indirizzo_url" value="{current_url}" id="freeform_indirizzo_url" maxlength="150">
                {if:elseif composer:field_type == 'nonfield_captcha'}
                  {if freeform:captcha}
                      {freeform:captcha}

                      <input type="text" name="captcha" value="" size="20" maxlength="20" style="width:140px;" />
                  {/if}
                {if:else}
                  {composer:field_output}
                {/if}
              {/if}
              {if freeform:field_errors}

                  {if freeform:error:indirizzo_url}

L'indirizzo della pagina (URL) è obbligatorio. Per piacere inserisci l'indirizzo del gioco in questione.

                  {if:else}

Messaggio obbligatorio. Per cortesia, indica il problema presente nel gioco in questione.

                  {/if}

              {/if}
            {/composer:fields}
          {/composer:columns}
        {/composer:rows}
      </fieldset>
    </form>
  {/composer:page}
{/exp:freeform:composer}


texts: Freeform 4.2.5 bcc notifications not sending

texts:
I have an old site running EE v2.11.3 and Freeform Pro v4.2.5. I know it needs updating but I can't at the moment for... reasons.

I have a freeform form that notifies admins on submission.

admin_notify email is sent OK
admin_cc_notify emails are sent OK
admin_bcc_notify emails are NOT sent

I've checked and double checked the form parameters.

I have email logs turned on in Freeform but no errors.

EE email is sent through sendgrid. In the activity feed of the sendgrid control panel I can see the admin and cc emails but nothing at all for bcc emails. No errors, nothing, it looks like they aren't being triggered by Freeform at all.

Parameters are like this (addresses changed).

admin_notify="aaa@test.com"
admin_cc_notify="bbb@test.com"
admin_bcc_notify="ccc@test.com"
admin_notification_template="find_local_members_to_admin"
notify_admin="yes"

Any ideas what else I can test or if anyone has come across this before.


texts:
I have a tournaments channel where ppl will be able to add tourney's through front end. I now need other members to be able to submit a "team" to a specific tourney entry.  There will need to be like 10 "teams" linking to a specific "tournament" channel.  I'm trying to figure out best scenario for Teams to register for tourney's.

I was also thinking of allowing someone entering a team to select/seach from a list of "members".  I don't think you can have a relationship to members though.  Any advice for all this?


texts:
I am breaking my head with this issue for several days.

I am using Expression Engine 2.11.1

When trying to upload an image using the File Upload feature, I am getting the following error

Fatal error: Allowed memory size of 4251572 bytes exhausted (tried to allocate 100 bytes) in /srv/XXXXXXXXXX/public_html/site/zocalo/cm/codeigniter/system/libraries/Image_lib.php on line 1255

Everyone will say that my php.ini is low on memory but I have set everything correctly. Here my php.ini setup

memory_limit = 200M
max_execution_time = 300
max_input_time = 60
log_errors_max_len = 1024
post_max_size = 8M
upload_max_filesize = 100M
max_file_uploads = 20

The problem is that my pictures are 2KB and 100x100pixels. See images attached.

Any idea how I can fix this?


texts:
I'm running into a problem with Assets & Structure Entries 1.3.4 & 1.2.8 — effectively it boils down to the fact that my Assets field only returns the filename, not the entire folder path.

Here's a couple of examples:

{exp:channel:entries channel="staff"}
  {staff_photo} - returns /ee-uploads/images/staff/filename.jpg
{/exp:channel:entries}

That works as expected, however if I need to do this within Structure Entries:

{exp:structure_entries depth="1" parent="9"}
  {staff_photo} - returns filename.jpg but not the full path
  {staff_photo:url} - returns nothing just the tag
{/exp:structure_entries}

I've also tried adding parse inward to this tag:

{exp:structure_entries depth="1" parent="9" parse="inward"}
  {staff_photo} - returns filename.jpg but not the full path
  {staff_photo:url} - returns nothing just the tag
{/exp:structure_entries}

However I get the exact same result with or without parse="inward". Does anyone have any ideas I'm really stuck here. It's worth noting that this problem doesn't arise when using the build in Structure tag of exp:structure:entries but I need access to the {current_page} variable available within the Structure Entries plugin as well as a couple of other features. Any help would be really appreciated at this point.

ExpressionEngine: 2.6.1 / Assets: 2.1.3 / Structure 3.3.10 / Structure Entries 1.3.4

Thanks!

EDIT:
It's worth noting that when I add the parse inward tag I do get this error:

  Severity: Notice

  Message: Undefined property: Assets_ft::$row

  Filename: assets/ft.assets.php

  Line Number: 1094


texts: In CartThrob, how can I determine whether a specific product is in cart already and therefore use it in a conditional?

texts:
I'm looking for a simple search of the cart contents. If a specific item I am looking for is already in cart (which I can simply define by the entry ID since the products are entries), I want to change the price applied in my add_to_cart form on the page to 0 (instead of the product's "usual" price).  How can I do this?  I don't think i want to do it with the cart_items_info tags from CartThrob - they have much more to them than I suspect I need.

So I'm aiming for something like this:

{if cart_contains_item_a OR cart_contains_item_b OR cart_contains_item_c}
{exp:cartthrob:add_to_cart_form return="" entry_id="{entry_id}" price="0.00"}
<input type="submit" class="button" value="Add" />
{/exp:cartthrob:add_to_cart_form}
{if:else}
{exp:cartthrob:add_to_cart_form return="" entry_id="{entry_id}" price="{cf_prod_price}"}
<input type="submit" class="button" value="Add" />
{/exp:cartthrob:add_to_cart_form}
{/if}

I'm just looking for guidance on the simplest way to determine what to include in the conditional.


texts: How can I bind custom JS to a Wygwam field after it has intialised?

texts:
I'm using EE 2.5.2 and Wygwam 2.6.3. I need to bind some custom javascript to a Wygwam field on the publish/edit screen in the CP once the field has initialised.

Specifically, I need to bind to something like this:

$(#cke_field_id_12).find('iframe').contents().find('body');

However as the iframe is created dynamically, I need to wait until after Wygwam has initialised for $(#cke_field_id_12) to have a child iframe plus contents for me to bind to.

Does CKEditor/Wygwam fire an event when it's ready that I can hook into to bind my functionality to? Or is the an alternative way to do this that I haven't thought of?


texts: Insert Custom Channel Field Grid into Database?

texts:
Is there a better way to tie into EE to create a grid field? During my module install, I am having it setup a new grid field to relate to a custom channel field group that setups up the required table information for a grid in my database. Example below. I feel there has to be a better/cleaner way to achieve this.

    // Create exp_channel_fields and assign by group_id
    ee()->db->insert(

        'exp_channel_fields',
            array(

                'site_id'               => 1,
                'group_id'              => 0,
                'field_name'            => 'menu',
                'field_label'           => 'Sidebar Nav',
                'field_instructions'    => 'Add links to display on sidebar nav.',
                'field_type'            => 'grid',
                'field_pre_populate'    => 0,
                'field_pre_channel_id'  => 0,
                'field_pre_field_id'    => 0,
                'field_ta_rows'         => 6,
                'field_maxl'            => 128,
                'field_required'        => 'n',
                'field_text_direction'  => 'ltr',
                'field_search'          => 'n',
                'field_is_hidden'       => 'n',
                'field_fmt'             => 'xhtml',
                'field_show_fmt'        => 'n',
                'field_order'           => 3,
                'field_content_type'    => 'any',
                'field_settings'        => $field_settings

            )
    );

    ee()->db->insert(

        'exp_grid_columns',
            array(

                'field_id'         => $exp_channel_field_id,
                'content_type'     => 'channel',
                'col_order'        => 0,
                'col_type'         => 'multi_select',
                'col_label'        => 'Nav Select',
                'col_name'         => 'nav_option',
                'col_required'     => 'n',
                'col_search'       => 'n',
                'col_width'        => 0,
                'col_settings'     => '{"field_fmt":"none","field_list_items":"link1\nlink2\nlink3","field_required":"n"}'

            )

    );


texts: Solspace Freeform Pro Captcha Error erases all form data

texts: I'm using Freeform pro 4.1.3 and everything is working great with the default EE captcha, etc. However, when your captcha field is incorrect or not filled in, all of the data is lost on submit. This is a non-https page. Am I missing a setting somewhere?


texts: Proper way to add PHP code in Expression engine Template?

texts: I am new in Expression engine. I know that We can not write PHP code in template due to security reason. I want to know the flow like from where can write php code and how it will render in my template ?


texts:
Im trying to add pagination to my Search results page. Each time i do a search for a product that has a lot of results they are all appearing on the one page. Can anyone help me?

{exp:search:total_results} Result(s) for "{exp:search:keywords}"

        {exp:search:search_results results="10" paginate="bottom"}

{title} - ({channel})

            {sn:global_pagination}
        {/exp:search:search_results}
        {sn:global_sidebar}


texts: Assets not working with Amazon S3 external source

texts:
I have set up an external source for S3 and it's not working. I cannot update the index - the white bar shows up but nothing happens.

I cannot upload - when I try, I get this error dialog box: "Could not upload the file - server returned an unexpected response. Please check the server settings."

I am using Assets 2.5 and EE v2.9.2 - Build Date: 20141004.

I would appreciate any help on this. thanks!


texts: Member custom profile data not outputting correctly

texts:
I've created a custom member field called "member_code", I'm trying to output this code but it seems to only ever output the code from the first member in the system, even when I use the member_id="3" parameter. My code is as follows:

{exp:member:custom_profile_data}{member_code}{/exp:member:custom_profile_data}

No matter which user I login as it's always outputting the first users details, any ideas? I'm running expressionengine 2.6.1


texts:
{exp:channel:entries channel="games" limit="1" dynamic="yes"}
{game_platforms}
    {if item == "PS3"}test{/if}
    <span>{item}</span>
{/game_platforms}
{/exp:channel:entries}

I set this up in a testing template and oddly, the curly braces aren't even parsing, here's what I'm getting:

{if "PC" == "PS3"}PS3{/if} PC {if "PS3" == "PS3"}PS3{/if} PS3 {if "Xbox 360" == "PS3"}PS3{/if} Xbox 360

Am I doing something wrong?


texts: Count the number of entries with a field value?

texts:
I'm wondering if it is possible to show a count of entries with a custom field value.

For example if I have a channel with a custom field that can have a value of either "Y" or "N".

When I show a list of entries in that channel I can easily show the total number of entries, but how would I show the total number of entries along with the total number of entries with my custom field set to "N" and the total number of entries with my custom field set to "Y"?

Something like: All Entries = 12, Y Entries = 4, N Entries = 8

Thanks!


texts: Solspace Calender Filtering events by category

texts: I am using the demo templates from Solspace and having a bit of trouble getting filtering working. I have one calendar and I want to be able to filter the events based on a category. I can't get it to work. Do I need to create a calendar for every type of category and then just link to each calendar?


texts: Does anybody knows what tags are used to get Emma integration with EE (http://myemma.com/email-marketing-integrations/cms-email-integration/expression-engine) to work on templates?


texts: Enabling the User to make different layouts on the site

texts: How would I create different template HTML layouts for the user to pick/select when they want to make a new page on the site? Would I need a channel for each? Template group for each? I am aware there are multiple ways of doing this given the flexibility of EE. Can anyone assist a newb?


texts: Disabling Postmaster from sending emails using a config.php override

texts: Is it possible to disable Postmaster from sending emails using a config.php override? I've got a development version of a site and it'd be good if I could disable the emails from sending when I'm triggering the parcels during testing. Thanks.


texts: Using CartThrob and Worldpay pre-authorization?

texts:
I want to essentially defer a payment with Worldpay, apparently this is possible using something called 'authorization'/'pre-authorization' which is detailed in their documentation:

https://developer.worldpay.com/jsonapi/docs/authorize-payment

We're using EE2 and Carthrob 2.x with a Worldpay integration, and I'm trying to figure out if this is possible. I can't seem to find any documentation on this, and going through the code is proving a bit frustrating.

Does anyone know if this is possible using CartThrob and the default Worldpay integration? Or would this require modification to the payment Gateay?


texts: Issues with EE Flickr for ExpressionEngine and favorited photos

texts:
I'm using EE hive's flickr plugin. I've authenticated ExpressionEngine with my flickr account but i'm having issues getting the favorites tag pair to display any information. I'm using EE 2.5.3 and the extension is version 2.1.9.

Here's my testing code

Photo stream

{exp:eehive_flickr:photostream}{flickr_url}
{/exp:eehive_flickr:photostream}

Sets

{exp:eehive_flickr:photosets}{set_url}
{/exp:eehive_flickr:photosets}

Favorites

{exp:eehive_flickr:favorites}{flickr_img}
{/exp:eehive_flickr:favorites}

The favorites tag pair just returns the {flickr_img} variable in plain text.

Any ideas?


texts: Using an EE date tag with formatting in php code

texts:
I'm using some php code (output parsing) in a template, between {exp:channel:calendar} tags. I have a line assigning the value of a custom date field to the php variable %endDate. Then, I need to test if {date} is equal to this $endDate variable. But if I use {date} alone it just takes the string "{date}" instead of its actual value, and I think that's because that tag requires a format parameter, so now I'm tryng this:

if ("{date format="%U"}" == $endDate)

but, obviously, this gives me a php syntax error and just screws up half of the template... Any idea what syntax I should use to do this?


texts: Can't Acess the CP - Unable to load class jquery

texts:
Went to log into a local dev site tonight and suddenly get this error:

An Error was encountered
Unable to load the requested class: jquery

I have no idea what might have changed.  I've replaced all of the files in the system folder, and have slowly gone back through the themes folder, replacing everything I could think of, and making sure that all of the add-ons were updated.

Currently running EE 2.6.1 with the master config in place.  I enabled debug = 1 in the admin.php file but it doesn't show anything else.  The front end of the site comes up as expected.

Anyone happen to see this before?

Todd


texts: CartThrob Checkout - Create Account after order completes

texts:
Does anyone know if it's possible to allow a user account to create an account after they have completed their order and then assign that order to their newly created account?

Thanks.


texts: Update Fails (Log file path not writable) on Windows, Apache, PHP environment

texts:
When running the One Click Update on a new installation of ExpressionEngine 5.2.3, the update fails with the following messages:

    We stopped on Updating files.

    Log file path not writable:[Server path]\system/user/cache/ee_update

The error message also provided the stack trace below. The full server path has been replaced with [Server path].

    #0 [Server path]\system\ee\updater\EllisLab\ExpressionEngine\Updater\Service\Updater\Runner.php(351): EllisLab\ExpressionEngine\Updater\Service\Logger\File->__construct(‘[Server path]…’, Object(EllisLab\ExpressionEngine\Updater\Library\Filesystem\Filesystem), false)

    #1 [Server path]\system\ee\updater\EllisLab\ExpressionEngine\Updater\Service\Updater\Runner.php(37): EllisLab\ExpressionEngine\Updater\Service\Updater\Runner->makeLoggerService()

    #2 [Server path]\system\ee\updater\EllisLab\ExpressionEngine\Updater\Controller\Updater\Updater.php(34): EllisLab\ExpressionEngine\Updater\Service\Updater\Runner->__construct()

    #3 [Server path]\system\ee\updater\boot.php(94): EllisLab\ExpressionEngine\Updater\Controller\Updater\Updater->run()

    #4 [Server path]\system\ee\updater\boot.php(65): routeRequest(‘updater’, ‘updater’, ‘run’)

    #5 [Server path]\hq.php(143): require_once(‘[Server path]…’)

    #6 {main}

The following log information is generated in the file \system\user\cache\ee_update\update:

    [00:18:45 -0500] Maximum execution time: 0

    [00:18:45 -0500] Memory limit: 256M

    [00:18:45 -0500] Checking file permissions needed to complete the update

    [00:18:45 -0500] Cleaning up upgrade working directory

    [00:18:45 -0500] Old zip archives found, deleting

    [00:18:45 -0500] Old extracted archives found, deleting

    [00:18:46 -0500] Checking free disk space

    [00:18:46 -0500] Free disk space (bytes): 38158372864

    [00:18:47 -0500] Downloading update package

    [00:18:55 -0500] Unzipping package

    [00:19:03 -0500] Package unzipped

    [00:19:03 -0500] Verifying integrity of unzipped package

    [00:19:04 -0500] Package contents successfully verified

    [00:19:04 -0500] Checking server requirements of new ExpressionEngine version

    [00:19:04 -0500] Server requirements check passed with flying colors

    [00:19:04 -0500] Moving the updater micro app into place

    [00:19:04 -0500] Taking the site offline

ExpressionEngine is installed on a server running Windows Server 2016 with Apache 2.4, PHP 7 and MySQL 8. The system is installed and appears to be working normally except for this update error. This is a new installation, and I have not been able to previously run the updater successfully.

I can confirm that ExpressionEngine is able to write to the \system\user\cache directory in two ways:

The updater is able to create the ee_update directory within the cache directory and successfully download and write the following directories and files:

ExpressionEngine (dir)
configs.json
ExpressionEngine.zip
index.html
update.txt

Also, I am able to run and successfully complete the Database Backup Utility from the Control Panel, which results in a SQL text file written to \system\user\cache.

While the error code clearly points to a permissions issue, my understanding is that default installations of Apache on Windows Server run under the System account, which has full permissions to the \system\user\cache directory.

I confirmed that PHP is running as the System account by running the following statement:

<?php echo exec('whoami'); ?>

I wondered if differences in the use of \ and / to separate file paths in UNIX and Windows might be an issue, but I am able to navigate to the [Server path]\system/user/cache/ee_update directory given by the update error message from the command line.

Any ideas for troubleshooting or a fix for this issue? Any guidance would be a huge help! Thank you!


texts: Membership system - parents purchasing for children

texts:
I am currently extending an ExpressionEngine site to include a membership system.

I'm trying to find a way to allow parents to purchase memberships for their children, ideally multiple children in one transaction. It is for a sports park where the target age group is 6-16.

We are currently using CartThrhob for simple transactions for booking an individual session, so it would be good to make use of this.

We have looked at Membrr however it doesn't look like you can purchase on behalf of another person. I suppose in a way it is like a gift membership system with a cart for mulitple memberships.

Has anyone achieved this type of system? Or can point me in the right direction?

The logic seems straightforward but can't quite work out the best approach with EE.

Many thanks,
Martyn


texts: Why can I only see "Super Admins" in the Communicate interface?

texts: I am working on a site with several (20+) member groups. The administrator would like to send an email via Tools > Communicate to one of the member groups. However, only the “Super Admins” under “Member Groups” in the email interface. Why would all the other member groups not be displayed?


texts:
I'm having trouble retrieving the child pages when giving the parent id.

        {exp:playa:children channel="patient-services" entry_id="422"}
        <li>{title}</li>
    {/exp:playa:children}

This yields no results. In the CP, I have several pages with a 'Obstetrics' as the parent (which has id 422). Hopefully the attached images will show what I'm trying to do. I know this would work better in Structure, but this site wasn't planned well.


texts: Order Status getting changed automatically

texts:
I am facing an issue in my site.
The order status is getting changed automatically for several orders.

The issue has been noted mostly for 'canceled' orders.

Actual Order flow:

New >> Processing >> Canceled

The process should have end there.

But the orders are getting updated automatically.

New Order flow:

New >> Processing >> Canceled >> Processing

For some orders, we tried changing the status back to Canceled. But still the order gets updated back to 'Processing' status after some days.

New >> Processing >> Canceled >> Processing >> Canceled >> Processing

Is there any feature or setting in the Expresso store to check for the orders and turn the status to 'Processing'.

Can somebody please help me.


texts:
This is an old issue that has resurfaced. I am creating entries using Profile:Edit and Relationships, that have address information and for some reason the first of the series displays all the address fields (which are set to format:none) with extra
 tags on each element. The second series does not add those tags.

Here is the code I am using:

{facilities:title}

    {facilities:facility_street_address}

    {facilities:facility_city}, {facilities:facility_state} {facilities:facility_zip}

If I go into the field properties and change it to XHTML and then change it back to none, it solves the problem for existing entries, but any new entries, revert back.

Does anyone know how to resolve this?


texts: Accessing site without ~tilde (alternate domain using hosts file?)

texts:
I am developing a site that resides on a different server to where the current site resides.

I am accessing the site via a url such as:

http:// host.server.com.au/~username/

(So i am logging in via http:// host.server.com.au/~username/admin.php and viewing the site at eg, http:// host.server.com.au/~username/index.php/index)

This is causing some issues with links/linked files so i want be be able to access the site via a specific url, such as mytempdomainsite.com.au

I have tried altering my hosts file in such a way:

111.222.33.44 mytempdomainsite.com.au
111.222.33.44/~username/ mytempdomainsite.com.au

however that does not work for me. I have also tried editing the htaccess file with rewrites (found via searching the web), and then editing my system configuration within EE but nothing seems to work.

I have no idea the steps involved in getting this to work for me. The ~username is causing me some grief, so if anyone can help with this it would be deeply appreciated!


texts: Channel Ratings: PHP Errors in Control Panel

texts:
I'm getting these PHP errors when I visit Channel Ratings in the control panel:
Ratings, Likes, and Fields Tabs:

A PHP Error was encountered Severity: Notice Message: Array to string
conversion Filename: libraries/Ratings_helper.php Line Number: 164

Settings Tab:

A PHP Error was encountered Severity: Notice Message: Array to string
conversion Filename: libraries/Ratings_helper.php Line Number: 164
A PHP Error was encountered Severity: Notice Message: Array to string
conversion Filename: libraries/Ratings_helper.php Line Number: 164
A PHP Error was encountered Severity: Notice Message: Array to string
conversion Filename: libraries/Ratings_helper.php Line Number: 164

EE 2.9
Channel Ratings 4.0.8


texts: Assets file fieldtype does not work in Safecracker (script uses too much memory)

texts:
I have a simple safecracker form that allows guests to submit entries to my site. It works fine until I include Pixel and Tonic's Assets module, upon which point, when the browser attempts to load the page (even before submission) - I get an error in chrome stating "script on the page used too much memory".

This is essentially all i'm doing:

{exp:safecracker channel="inspirations" return="site/inspiration_submitted"}
    {field:inspiration_image}
{/exp:safecracker}

Anyone able to successfully get Safecracker to work with Assets? I'm using the latest versions of both as of today's date, along with jquery 1.8.3.


texts: Wish a bit help with conditionals and operators

texts:
Im trying to show results after search so that if there is under 10, it shows A, but if there is more than 10 results, it shows B. But I dont understand how to make this happen.

I tried this but it wont work:
{if count == '1'}
total results: {absolute_results}.
{if:elseif count > '10'}
There is more than 10 results. Refine your search?
{/if}


texts: Some add-ons don't work after EE1 upgrade

texts:
I've upgraded a site from EE1 to EE2 and a few of the add-ons don't seem to be working inside the templates.

They are working fine inside the Admin area and all the content is showing up in the entries perfectly. But on the front end I'm getting things like:

  M90o93H7pQ09L8X1t49cHY01Z5j4TT91fGfr

Appear where that add-on is trying to output the content.

I can't figure it out! All the add-ons are up to date and I'm using the updated / correct template code for that plugin.

One in particular is Structure:

{exp:structure:nav start_from="/{segment_1}" include_ul="no" current_class="selected"}

Outputs:

  M10O93H7PQ09L8X1T49CHY01Z5J4TT91FGFR

What do these long mix of characters & numbers mean?!

Add-ons currently causing this to happen are:

Matrix
Playa
Structure
CE Image


texts: Using EE Proform tag inside Javascript - Not working

texts:
I've got protect_javascript set to no, here's what I'm trying to do...I'm trying to insert a proform form (blog subscribe) after the 2nd paragraph in every blog post.  I've got this:

<script>
 $( ".blogbody p:nth-child(3)" ).after( "{exp:proform:simple form='blog_subscribe' thank_you_url='/page/thank-you-for-signing-up'}" );
 </script>

However, it renders immediately in the footer (where the script is) and breaks the javascript.  Anyone have a clue how to fix this?


texts:
First, thanks in advance for any input or direction.

Does anyone have an idea how I might be able to receive entry updates by XML? Specifically, I'm looking to integrate ShipStation with CartThrob, particularly receiving shipping updates. More about the process can be found here, in the "Receiving Shipping Notifications" section:

http://app.shipstation.com/content/integration/ShipStationCustomStoreDevGuide.pdf

I've been digging into accomplishing this with EE's Channel Forms (aka Safecracker), but not sure if I'm on the right path. I also reached out to the developers of Data Grab, but it's not quite the right fit.

If anyone could point me in the direction of a possible solution, I'd greatly appreciate getting moving down the right path.

Cheers,

Chris


texts:
I need to create entries with dates and times based upon the timezone they are occurring in and then display them to the user on the front end with all dates/times in both event date/time and a localised date/time.

Is this possible with ExpressionEngine and if so how should I best approach it?

Edit

So it looks like the only real option is to standardise all dates/times entered via the CMS to UTC/GMT and use the users timezone preference to display the dates/times relative to where they are...

OR

Add a custom field that specifies timezone for an event and then offset the display date/time accordingly on the front end using a custom plug-in.

Any other thoughts?


texts: Simple Commerce cyrillic characters turned in question marks in PayPal

texts:
I have a Russian website where in the head section I wrote:

<!DOCTYPE html>
<html lang="ru">
<meta charset="utf-8">

In Simple Commerse template I have included country_code="RU"  parameter but in PayPal page the titles turn into question marks.

Can someone tell me what I am missing here?


texts:
I'm using Expression Engine 2.7.2 and Structure 3.3.17 and am having a problem creating a nested URL structure.

I have one Channel "Landing Pages" whose entries point to the template /region/index and calls the page content like so:

{exp:channel:entries disable="member_data|pagination" url_title="{last_segment}" limit="1" channel="landing_page" cache="yes" refresh="1500"}

    {if no_results}
        {redirect="404"}
    {/if}

    OUTPUT CONTENT....

{/exp:channel:entries}

I have created two test entries:

Wellington Landing Page (URL title and 'Structure URL title' both "wellington") - this page is able to be viewed as expected at /region/wellington/

Wellington Kitchens Landing Page (URL title and Structure URL title both "kitchen"). This page has "Wellington Landing Page" specified as its Structure Parent Entry. We need to be able to view this below its parent page in the URL structure, that is at /region/wellington/kitchen/ however this returns 404. It is possible to view it at /region/anyrandomtext/kitchen/ or /region/kitchen/

I have tried replacing the {exp:channel:entries} tag with {exp:structure:entries} and the problem persists.

Is this something that should work? Any suggestions would be much appreciated.


texts:
I just updated a site from 2.1.3 to 2.5.3 and I'm having some trouble with old file uploads.

First Problem
EE now seems to URL Encode the file URL which causes some issues with Image Sizer since it tries to use the encoded path.

Is there a way to get the unencoded path or do I need to modify Image Sizer or use a different plugin?

Second problem
Some of the old files had an & (ampersand) or other invalid characters in their name. After the upgrade when I did a sync on the upload directories it seems to have stripped those characters from the file names on the filesystem, but not from the actual File Upload Fields. Now I have to re-chose the files that got renamed and I get a PHP error (see below) when editing the entries.

A PHP Error was encountered
Severity: Notice
Message: Undefined index: filename
Filename: libraries/File_field.php
Line Number: 77

Is there a query I can run on all the upload fields, or anything else I can do to fix this?

Here's some examples of the files being renamed.
The name from the live server is on the left and the name from the dev server where I ran the upgrade is on the right.

MP900409379[1].jpg --> MP9004093791.jpg
004_LB-Cottages F&F.PDF --> 004_LB-Cottages FF.PDF


texts: Expresso Store : Storing data within the exp_store_order_items table

texts:
I just wanted to check if I'm missing something here. Is there anyway to store custom data against an order item - for example, I have a set of sessions (think events) and I would like to store details against the specific session they've booked. Something like the name, address of the person attending the session.

This data may be different from the billing details, and the customer who purchases maybe purchasing multiple sessions for different people. I think the order items table is where this should come (or join) from.

I understand this is fairly edge case, but wanted to check I wasn't re-inventing some functionality before I crack out the extension generator...

Thanks


texts: Cartthrob Gateway Fields Custom Html Seems to Be Missing

texts: I'm using Cartthrob's {exp:cartthrob:checkout_form} tag pair. Currently it is using the {gateway_fields} variable to output the right fields. I would like to customize the form using my own html and my understanding is that I should be able to find the html in the Cartthrob payments page. For some reason though, that html is not showing up when I select the dpm payment method (which is what we are using). I can see html to copy when I select other payment methods though. Any ideas why it is not there for dpm?


texts:
I want to create a link from the font side of my site to the admin area.

The problem is the session id

go to admin

This goes back to the login page even though I am logged in, how can I achieve this.


texts: Cart Throb / Subscriptions Gateway issues

texts:
I have an existing working live store running CartThrob using Moneris as the payment gateway.

I want to add subscriptions (auto renewal) but CartThrob has not developed a payment gateway to work with subscriptions even though Moneris seems to offer vault/token requirements.

I was hoping to maybe use Stripe as an option JUST for subscriptions but I need to use Moneris for all other purchases.  I though maybe I could use a gateway selector and get people to choose Stripe is they are purchasing a subscription but then I found out the Stripe does not like the gateway switcher and will through you errors based on the JS they use.

Does anyone have any ideas?  I have have ZERO luck getting any feedback or support directly from Cart Throb. Tries to get a quote for developing a new Moneris plugin that would work with  subscriptions.  They didn't even reply.


texts: How can I make the Return path for the Freeform Channel Fieldtype dynamic?

texts:
I'm using (the latest) Freeform Pro to create forms with its Composer feature. Then I'm using the Freeform Channel Fieldtype to assign a form to a specific channel entry. In my template, I'm outputting the form by simply calling the channel field name. Something like this:

{exp:channel:entries
    channel="forms"
    url_title="{segment_2}"
    dynamic="no"
    limit="1"
    disable="member_data|categories|pagination"
}

{title}

        {form_description}

    {form_form}
    {if no_results}{redirect="404"}{/if}
{/exp:channel:entries}

...where {form_form} is the Freeform Channel Field. This will output the channel entry and form as expected.

In the Freeform Channel Field, you can also define the Return path for the form. However, the only dynamic segment you can set is the Entry ID of the Freeform entry: form/sent/%%entry_id%%

I need to add the URL title of the associated channel entry in this return path, so something like: form/sent/{url_title}/%%entry_id%% — is this possible?

On top of that, I'd like all my forms to have this particular return path, so there's no need for that input field in the channel form. Can you set the default value and hide the input field?


texts: SQL query getting entries from current day

texts:
I am trying to use this script that I have put together, forgive me I am a bit of a newbie with sql.

When I run the script it is outputting an empty csv file, only showing column titles, no data.

What I want it to do is export entries from today's (current date) date only.

i think the issue is with this line:

$sql = "SELECT * FROM exp_freeform_form_entries_3 where FROM_UNIXTIME(entry_date) = CURDATE() ORDER BY entry_id";

If i remove from "where" onwards it seems to work, but obviously outputs all entries, not todays only.

<?php

//delete existing files
$files = glob('/home/sitename/csv/*'); // get all file names
foreach($files as $file){ // iterate files
  if(is_file($file))
    unlink($file); // delete file
}

// Connect and query the database for the users
$conn = new PDO("mysql:host=localhost;dbname=dbname", 'username', 'password');
$sql = "SELECT * FROM exp_freeform_form_entries_3 where FROM_UNIXTIME(entry_date) = CURDATE() ORDER BY entry_id";
$results = $conn->query($sql);

// Pick a filename and destination directory for the file
// Remember that the folder where you want to write the file has to be writable
//$filename = "/tmp/db_user_export_".time().".csv";
$filename = "/home/sitename/csv/db_user_export_".time().".csv";

// Actually create the file
// The w+ parameter will wipe out and overwrite any existing file with the same name
$handle = fopen($filename, 'w+');

// Write the spreadsheet column titles / labels
fputcsv($handle, array('Entry ID','First Name'));

// Write all the user records to the spreadsheet
foreach($results as $row)
{
    fputcsv($handle, array($row['entry_id'],$row['form_field_1']));
}

// Finish writing the file
fclose($handle);

?>


texts: Set age for the Private Messages within Trash folder

texts:
If a private messages is being deleted, it stores into Trash folder. Here, I 'd like to set a time limit and after that time, PM might be permanently deleted from Trash.

I was looking for any configuration variable for it but didn't get luck. Could anyone please help me for it.


texts:
When attempting to use the UPS Shipping Extension for Exp-resso store, the install runs fine, but when attempting to add anything to the cart on the front-end we get the message:

  A PHP Error was encountered

  Severity: Warning

  Message: call_user_func_array() expects parameter 1 to be a valid callback, class 'Store_ups_ext' does not have a method 'store_order_shipping_methods'

  Filename: libraries/Extensions.php

  Line Number: 262

I have attempted to uninstall and reinstall the UPS extension, the EE installation was newly installed prior to adding the UPS Extension.

We are using the following:

EE 2.9.2
Store 2.5.0
UPS Extension 1.1.0

Thanks

Phil Dowson


texts: I am new to expression engine, I am trying to create a form with the channel:form tags but whatever I put in the tags don't show up on the website.  Do I have to activate channel form tags in the settings somewhere?


texts: Publish layouts for channel entries, not just channel groups

texts:
I have a project that requires a lot of individual fields specific to a page. I am looking to use a single field group, and hide unwanted fields from a client so they can edit a section on the one page rather than editing individual channel entries. From what I can tell, there are a couple of addons to go about this:

Entry Layout - Which looks like it hasn't been updated in a long time, and on installation I'm getting this error (same as another):

Class Entrylayout_ext does not exist in (ext.entrylayout.php)
Filename: cp/addons_extensions.php
Line Number: 107

Content Elements - probably wouldn't work, with fieldtypes limited to their own (matrix is required)
Blueprints - probably best candidate, but it's unclear if you can set fields on an individual entry basis. I would also like to lock the fields once set so they don't go screwing things up.

Each method has it's ups and downs. Any thought's on my best approach? Entry Layout feels like it would be the easiest fit but unfortunately it looks like it's dead.

What to do, what to do!?


texts: Expresso Store: Shipping Name - Surname goes missing

texts:
I've recently updated my installation of Store to 2.3.1. All seemed to be going smoothly, but my client has recently reported that surnames are going missing from peoples orders.

I'll break it down below:

The shipping name is captured as {field:shipping_name} {error:shipping_name}

Any name captured here is displayed correctly in the order admin screen:

However, when trying to show this name in the confirmation email only the first name is displayed. The template code is: {shipping_name}

Checking the member record the surname isn't being added to that either:

Have I missed some template changes? Do I need to capture first and surname separately now?

Any advice much appreciated.

T


texts: EE Version 2.11.7 - 500 Internal Server Error after Publishing Entry

texts:
We recently upgraded our EE2 clients to the latest version 2.11.7
After logging in and publishing/editing an entry the site goes down with a 500 Internal Server Error (front end and control panel.)
After clearing cookies the site and CP come back up, and the change was successfully made.

This is happening to ALL the clients we upgraded (several of them), so we can confirm it is not limited to a specific extension or module error.

If anyone can help it's much appreciated!
Thanks


texts:
I've got a search form using Low Search where I want to restrict results to only one specific channel. I've created a collection called "galleries" and a shortcut called "galleries" and this code below:

{exp:low_search:form
    result_page="/search/results"
    required="keywords"
    form_class="form-inline"
    shortcut="galleries"
    }

    Search our Colorado Trips
    <input type="text" class="form-control" id="keywords" name="keywords" placeholder="Search our Galleries">

  <button type="submit" class="btn btn-default">Go</button>
{/exp:low_search:form}

But no matter what I do the results page shows results for all channels not just the Galleries channel


texts: Freeform Pro AJAX Validation with AJAX Submit using jQuery Form plugin

texts:
I'm using the jQuery Form plugin (http://malsup.com/jquery/form/) to return an AJAX message on successful submission of a contact form. However, I also need to do AJAX validation.

My current form and script looks like this;

{exp:freeform:form
    form_name="callback"
    form:id="callback"
    return="ajax/success_callback"
    required="full_name|message"
}
    Full Name
    {if freeform:error:full_name}
    {freeform:field:full_name}

    Message
    {if freeform:error:message}
    {freeform:field:message}

    <input class="more_info" type="submit">
{/exp:freeform:form}

As you can see, on success I am hiding the 'send1' div and simply loading a success template into the 'send2' div.

I was wondering if anyone might be able to help on how to construct the error messaging using AJAX that will work using or alongside the jQuery Form plugin?

Thank you.


texts: How can I list channel entries with same relationship to another channel?

texts:
I have two channels, Destinations and Hotels

Within the Hotels channel, I have a relationship field called hotel_destination, which relates it to the destination channel.

Now, on the hotel entry page/template, I'm struggling in being able to list the other hotel entries that are also related to the same destination.

Example. If Hotel 1, Hotel 2 and Hotel 3 were all related to Destination 1, then on the Hotel 1 entry page, I'd like to be able to display a listing of Hotel 2 and Hotel 3, as they are also related to Destination 1. Likewise if I selected the Hotel 2 entry page, I'd want to see Hotel 1 and Hotel 3.

The ultimate aim is to have the 'sibling' hotels listed in a sidenav of sorts, so that users know which other hotels are in a given destination.

I read and played around with the Relationship field with no luck and hoped someone might point me in the right direction

Thanks


texts: Wygwam: Can I create custom link_type with editable URL?

texts:
I'm trying to create a custom link type in Wygwam (using the wygwam_config extension hook): I want the user to be able to specify a URL (like the normal URL link type), but I want to specify a CSS class that is predefined and not editable.

The Wygwam docs only describe to create links with predefined URLs (i.e. Wygwam auto-generates a dropdown menu of possible pages for each link type). Is there a way I can force a CSS class but leave the URL editable in the dialog box?


texts: How to migrate an existing site into an MSM install?

texts:
I have inherited a client project that involves a number of EE installs (6 in all, though some are MSMs themselves, so total number of sites is ~10) which I would like to merge into a single MSM install.

One of these installs is EE1, the rest are various versions of EE2. All use Matrix, Playa and Assets. The EE1 site could be migrated to EE2 though (the DB at least).

I'm trying to work out the best way of  migrating the data (as far as I am aware there is no first party tool to import an existing site into an MSM install).

At the moment our approach is an increasing complex custom script that maps data from the columns of the old DB to the (manually created in the case of exp_channel_titles/exp_channel_data) columns in the new db. I'm concerned that this is actually such a complex task that we're going to miss something in the process though.

If you have accomplished this task in the past, how did you go about it? What approach/tools did you use etc.


texts:
Bit of a weird problem. We are able to upload images successfully via the basic publish entry form, but if an edit is made to the entry (even if it's just a text edit), the image disappears from the entry. Worse, though the field is marked as required, no error is thrown to notify the user that the image isn't being saved in the entry. Permissions are correct, directories are correct--I'm at a loss.

-D


texts: XML template 500 error with one category group

texts:
I"m setting up an xml template on an old site to use for importing to a new site via datagrab. Everything is working fine except when I try to output categories from one specific category group. When I do that the page gives a 500 error.

Here is the relevant part of my template

<root>
{exp:channel:entries channel="trips" paginate="bottom" status="Open|Closed" limit="500" dynamic="off"}
    <entry>

        <categories>

        {!-- // causes 500 error on page load not sure why
            <cat_activities>
                {categories show_group="6" backspace="1"}
                    <![CDATA[{category_name}]]>,
                {/categories}
            </cat_activities>
        --}

            <cat_difficulty-class>
                {categories show_group="7" backspace="1"}
                    <![CDATA[{category_name}]]>,
                {/categories}
            </cat_difficulty-class>

        </categories>

    </entry>
{/exp:channel:entries}
</root>

I've taken the same code and put it into a test html template and there are no errors and it outputs the categories as expected. See below:

{exp:channel:entries channel="trips" paginate="bottom" status="Open|Closed" limit="500" dynamic="off"}

            <cat_activities>
                {categories show_group="6" backspace="1"}
                    {category_name},

                {/categories}
            </cat_activities>

            <cat_difficulty-class>
                {categories show_group="7" backspace="1"}
                    {category_name},

                {/categories}
            </cat_difficulty-class>

{/exp:channel:entries}

Any idea on why the xml template is getting a 500 error? As soon as I comment out the one category group the xml template loads correctly.

***********UPDATE***************

I also checked that the categories in this category group don't have any special characters or anything that would obviously affect output in either the title or url_title. Have attached screenshot of categories.


texts:
Is there a good way to handle giving your clients easy access to an Add-On? For example, I'm using Low Variable to allow a client to edit their homepage content. But as far as I can tell in order for them to do that I have to give them access to Add-Ons and Modules, which they have to click through to get to Low Variables. I wish I could just give them single-click access directly to Low Variables.

In the past, I've added a custom tab to the CP for this kind of thing (which even lets me give it a better name like "Edit Homepage"), but that really doesn't scale well since it requires logging in as each member one at a time, and you have to remember to do it every time you add a new member. I'd probably just keep doing this anyway if it didn't require also making the Add-Ons tab visible anyway.

Any suggestions? How does everyone else handle this? Any way to hide the Add-Ons tab?


texts:
Within the eateries tag, is there a peramiter that equals status="any" that will pull all entries no matter the status (including 'closed')?

I thought status="not none"  worked, but it's not...


texts: Forum users report being logged out even after checking 'keep logged in'

texts:
We are currently running EE 2.5.2 and using the Discussion Forum Module (3.1.8). We have several users who report that they are logged out even when they have checked the 'keep logged in' option. We've triple checked our cookie settings and verified the cookie domain is correct and that the 'keep logged in' option has a cookie with an expiration date set to a year from the log in date. Our user sessions are currently at the default 2 hours, so we are NOT using the 'user_session_ttl' hidden variable. We also have the User Session Type set to 'Cookies Only' in the 'Security and Session Preferences', so I assume any of the session stuff shouldn't matter. All of our cookies to set to the full domain 'www.macobserver.com' and I have not yet tried setting the cookie domain setting in EE as it doesn't seem like we should have to.

My questions are:
1) Are there know issues with cookie logins and the Discussion Forum Module?

2) Should I set the Cookie domain setting anyway even though it's seems like it should be required?


texts: Low Alphabet and entries range (filtering)

texts:
I have two tabs - first should to display doctors names starting from A-N and second one names starting from O-Z

    {exp:low_alphabet:entries channel="doctors" alpha_field="doctor_short_name" alpha_groups="A-N" alpha_filter="A-N"}
        {photos limit="1"}

        {/photos}

        {title}
    {/exp:low_alphabet:entries}

    {exp:low_alphabet:entries channel="doctors" alpha_field="doctor_short_name" alpha_groups="O-Z" alpha_filter="O-Z"}
        {title}
    {/exp:low_alphabet:entries}

but somehow both tabs are displaying same entries not triggering Low Alphabet filter.

Any clue what can be wrong?

Thanks


texts:
I am using expresso store:search tag in a page and I am submitting a price range (min/max) to the tag as follows:

{exp:store:search channel="products" search:price:min="{post:min_price}" search:price:max="{post:max_price}" category="{segment_category_ids}" paginate='bottom' dynamic_parameters="orderby|limit|sort"}

There is a lot going on in this I know, but it does work - to a point. When I do a search for a combination that doesn't exist (say there is nothing in that price range) I get a blank page because there are no entries associated.

My question is, does store:search have a no_results tag pair? And if so, how is it implemented? I looked through the documentation and in here, but have found nothing to direct me and it seems like it should be part of a search tag by default.


texts: How do I import checkbox field values using DataGrab?

texts:
How do I format checkbox field values in an XML DataGrab import? I should mention that this checkbox field is in a Matrix but I am not sure if that will affect anything.

I've tried using the usual PHP_EOL and pipes to separate multiple values but neither worked.


texts:
I don't know how one would track such things, but does something exist/can something be built that tracks an estimation of the market share for each version of EE?

The reason I ask, is that if such a resource existed it would be massively beneficial to add-on developers in making informed decisions when to stop supporting older EE builds.


texts: how can I safely change the empty lines /n in the database to  so they will be rendered correctly when I change the field type?

texts:
On a website with many many entries i've recently changed a textarea field to an expresso field.

I now have 2 types of entries, entries with formatting, and without formatting.

My idea so far:

Buy low_search, use find and replace
Write some SQL code, try to find the all the saved
 tags and remove them.

Am I looking at this the wrong way?
Is there a way to (re)enforce a text formatting (auto
 or none) to all entries on a site without opening and resaving each entry?

UPDATE:
I logged in to the database and found out that the formatting hadn't changed. So no need to add
 or
. Expression Engine does recognize the empty lines (/n) and somehow adds the neccesary tags when the page is rendered.

This changes my question a bit: Is there a way to add html text formatting (

) to all entries in the database so I can switch to another field type without losing my line breaks?

The original question was: "Is there a way to (re)enforce a text formatting (auto
 or none) to all entries on a site without opening and resaving each entry?"

UPDATE2:
It turns out there is a way to add text-formatting to Expresso, which is the field type i'm using. It's quite simple:

In the file ft.expresso.php find the line

  text-format => 'none',
  And change it to
  text=format => 'xhtml',

However, since I got so much help figuring this out AND I changed the question, because I thought it was impossible to change in Expresso itself I'm gonna select the answer given by nonprofit_tech as the correct answer.


texts: using "if else" conditionals with Channel Images

texts:
I'm trying to make a "previous" button link dependent on a couple of conditions: 1) if there's a previous image, it links to that; 2) if there is no previous image, it goes to the main portfolio page. Here's my basic code:

{image:paginate}
        {if image:previous_page}
        {if:else}{/if}

{/image:paginate}

But when I try this, I get an error code:

Parse error: syntax error, unexpected T_ELSE....

Any thoughts on either what's wrong or how to do this properly?

Thanks in advance....


texts: CE Cache :escape Parsing on Custom System Messages Securit:ee Error

texts:
I've got one clusterf*** of a problem here:

I have 2 sets of CE Cache :escape tags in my site's global header snippet:

{exp:ce_cache:escape}
  {if '{exp:cartthrob:unique_items_count}' > '0'}
    {exp:cartthrob:unique_items_count}
  {/if}
{/exp:ce_cache:escape}

{exp:ce_cache:escape}
  {if logged_out}
    Login
    Sign Up Free
  {if:else}

Hi {exp:user:stats}{if first_name}{first_name}{if:elseif screen_name}{screen_name}{/if}{/exp:user:stats} | My Account | Logout

  {/if}
{/exp:ce_cache:escape}

That global header snippet is inside a Custom System Messages error template:

{embed='_global/document_head' page_title='{title}'}

{header}

{heading}

    {content}

{footer}
{global_scripts}
{document_foot}

Now, for 99% of error messages, this setup works beautifully, no issues. But if I submit a bogus email on a Securit:ee forgot password form, the CE Cache :escape tags return this text:

  -ce_cache_placeholder:94ec4f506cc81e96bf9b33205449ad19

  -ce_cache_placeholder:a612a2267145a9d4684fdffde5442c62

I don't even know where to start, people. Why is this one error different from the rest, and how can I fix those CE Cache errors?

EE 2.6.1
CE Cache 1.9.5
Custom System Messages 2.5
Securit:ee 1.3.6


texts: Comments Module {screen_name} -> {name} updating for previous comments?

texts:
Version is EE2.11.3.

I have a private, members only blog with comments set up.

When submitting comments, the {name} input field doesn't seem to do anything. The comments module always defaults to the member's {screen_name}.

If a member changes their {screen_name} using the CP, default member templates, or template tags provided by Zeal Smart Members any past comments still keep the OLD {name} value.

NEW comments DO store the updated screen_name as name.

Looking through the comments table, the name column isn't getting updated. I would have thought it would, unless I have something set wrong?

Looks like DevDemon Freemember posted a fix for their module a few years ago to address something like this:

https://github.com/devdemon/freemember/pull/77/commits/3917d3037919bebd80163140635caa6c5f90001c

Does anyone here know how to get EE to properly update the comments "name" field when a member updates their "screen_name"?

Thank you,

{exp:comment:form
  channel="CHANNEL"
  entry_id="ENTRY_ID"
  return="{segment_1}/{segment_2}/updated"}

<input type="text" name="name" value="new_name"> <!-- doesn't do anything for logged in members -->
<input type="text" name="author" value="new_name"> <!-- worth a try but nothing -->
<input type="text" name="screen_name" value="new_name"> <!-- nope -->
<input type="checkbox" name="save_info" value="yes" {save_info} /> <!-- seems to just save a session cookie -->
<textarea name="comment"></textarea>

{/exp:comment:form}


texts: Create a variable from a URL's Query String

texts:
How can I create a variable that is pulled from a URL like the one below?

eg: http://www.example.com/page.php?Item_ID=774&score=42

Need to pull the number "42" from the url and placed into a form which is then emailed by the user.


texts: Better workflow for ongoing site development

texts:
We have a number of client sites which are pretty much always evolving so we often find ourselves in a place where we're adding new structure and content to a site and trying to adjust the existing structure and content whilst the client may also be publishing new content or editing existing content!

Previously we've approached this using a number of different methods:

1) Creating a 'dev' server on which we carry out the development but we then have to mirror all edits and amends to the live server at a later date to avoid trashing any new content on the live server.

2) Working new developments into temporary 'template groups' and 'channels' and then adjusting the template group names and channel names accordingly once we're done.

3) Using conditionals in live templates to allow a logged in admin to preview changes without us having to resort to a full staging server.

There has to be a better way to do this, some way to marry ongoing site development (changes to templates, sections, fields and content) with a database full of live changing data.

Any ideas? I would be interested in solutions for both EE1.x and EE2.x.

Thanks in advance for your time! :)


texts: How to show next/prev links for specific category

texts:
I have an artists page where i want to show next/prev from that artist
How to do that in Expression Engine?
Also: The artist is a child of a parent, and i only want the child(artist id) not parent category id. The {exp:channel:next_entry/prev_entry} tag is outside of my   {exp:channel:entries} tag

This works:

                {exp:channel:next_entry category="12" }
                     Next Project
                {/exp:channel:next_entry}

                {exp:channel:prev_entry category="12" }
                     Previous Project
                {/exp:channel:prev_entry}

And this gives 12 as result because of some previous coding:

                  <? echo $artistid ?>

So i thought this would work:

                {exp:channel:next_entry category="<?php echo $artistid ?>" }
                       Next Project
                {/exp:channel:next_entry}

                {exp:channel:prev_entry category="<?php echo $artistid ?>" }
                     Previous Project
                {/exp:channel:prev_entry}

Why doesn't it work?


texts: Simple HTML file field uploads with Assets and Safecracker

texts:
The release notes for Assets 2 says "Added support for simple HTML file field uploads via SafeCracker".

Does anyone have any example template code of how this should work, including how to remove the file if necessary? I can't see anything in the docs.


texts: EE reading path variables as subfolders/subpages and giving 404 error. What am I missing?

texts:
I've got a page: /events/ that I'd like to pass year and month into: /events/2014/07/ ...and access them ({segment_1}, etc) in the template being used for that page.

But when I go to the url http://host.com/events/2014/07, I get a 404 error because it's apparently looking for a subpage named '2014' with a subpage named '07'.

Regarding posting the code:
Why? This doesn't seem to be a code-related issue because I can't even get EE to execute the code in question. The 'events' page is just my standard page template (master/standard). All the pages, for now, use one template. So, /events is using the 'master/standard' template. In it I include 'widgets/calendar' but I want to pass in {segment_2} and {segment_3}. EE won't let me because it doesn't go to the events page. It tries to find a page named "07" under a page named "2014" under the events page. None of this is being handled in the code yet, so I'm not sure what good it would serve to post a bunch of irrelevent EE code.

How do I tell EE to just stop at the events page and use the rest of the url as segments?I know I'm missing some basic EE logic but I'm stumped.


texts: 403 Error with Assets 2.0.5 and Freemember

texts:
I'm running into an issue with Assets and Freemember running together. I've narrowed it down to some code in Assets.

Freemember is throwing a 403 error on register because it's generating the template from the ACTION function. This is causing Assets to throw a 403 because it's checking for an ACTION request on line 24 of sources/ee/source.ee.php.

Is this something that can be fixed in assets or should Freemember fix it?

This is happening on:
EE 2.5.5
Assets 2.0.5
Freemember 2.1.1

Thanks,

Chris


texts: Embed YouTube Video not displaying when code is in TextArea or TextField

texts:
I am running EE 5.2.6 and have an issue with embedding YouTube videos in a TextArea or TextField. If I do it this way, it does not display the video from the channel entry field.

...

    {video}

...

If I add the code directly into the template like this it shows fine:

The TextArea is set to formatting None, but it appears that the field is still stripping out the special characters somehow, thus preventing the video from displaying properly and there is no trace of the iframe in the browser inspection window.

Does anyone know how to resolve this?


texts:
This one's a little hairy. I have 3 channels: Products, Where to Buy Product and Retailers. We're displaying a Where to Buy dialog on the Products page. So I have 6 relationships on the Where to Buy Product channel: one to the Products channel, and 5 to the Retailers channel. (Yes, I have retailer_1, retailer_2, and so on.)

The Retailers channel is just an image for the retailer's logo. The Where to Buy Product channel is the product reference, and 5 sets of retailer references, and associated links to the retailer's website for that product.

Here's the code I put together:

{exp:channel:entries channel="products" limit="1"}

{reverse_related_entries channel="where_to_buy_product"}
    {retailer_1}

    {link_1}

    {related_entries id="retailer_1"}

    {/related_entries}

    {retailer_2}

    {link_2}

    {related_entries id="retailer_2"}

    {/related_entries}
{/reverse_related_entries}

{/exp:channel:entries}

So I got to the first level, where I can display the link to the retailer's website; but the second level, reaching to the Retailers channel, doesn't seem to work. I'm getting a funky code in curly braces that changes on each request. ({REL[79][retailer_1]AT42ME0eREL} ) I even tried switching to reverse_related_entries, even though that doesn't make sense to me, and apparently, it doesn't make much sense to EE either. (It dumped the {reverse_related_entries} tags.)

Can anyone help me make this work? I hope I have the concepts down right. Thanks for your help.


texts: Can I see a file's public URL from inside File Manager?

texts: In EE2 I used to be able to mouse-over a file in File Manager to see its public URL. But in EE5 I only see control panel-based URLs (for edit or download). While I can naturally go into the Edit Upload Directory > Upload Directory, then prefix this to the file name, it would be easier to have the public link somewhere for easy copying. Is this possible?


texts: Is it possible to add a data attribute to a DevDemon Forms form tag?

texts:
I discovered that you can use attr:id and attr:class in a DevDemon Forms tag using parameters such as attr:class="form-class". I didn't see this listed in the docs anywhere and now I'm wondering if it's possible to add a data attribute to the form tag as well?

Does anyone know if this is possible? I'd like to use some form validation that requires a data attribute on form tag.


texts:
I have two Stash embeds. Both embed templates accept a color variable, but it's optional:

{if '{stash:color}'}
  {stash:color}<br>
{/if}

If I explicitly set the variable in both embeds, everything works as expected:

{exp:stash:embed name='template1' stash:color='Red'}
{exp:stash:embed name='template2' stash:color='Green'}

Outputs:

Red
Green

If I set the variable in the first embed but not the second, it also works as expected:

{exp:stash:embed name='template1' stash:color='Red'}
{exp:stash:embed name='template2'}

Outputs:

Red

But if I leave the first variable empty and set the second, both are assigned the second value:

{exp:stash:embed name='template1'}
{exp:stash:embed name='template2' stash:color='Green'}

Outputs:

Green
Green

Is this a bug? Shouldn't Stash embed variables only be scoped to the embed template they're passed to?

Stash 2.6.0
EE 2.10.1


texts: Alternating layouts within one set of channel entry tags

texts:
New to ExpressionEngine so apologies if my question has an obvious answer. Basically, I have two paths for a single channel's content on one page, one arranges the image to the left and the title to the right while the other does the opposite. They both have a specific pattern of five different sizes each that I have organised using the {switch} tag. [I should mention Foundation is how I'm creating the HTML structure.]

The image left layout:

            {title}

</div

The image right layout:

            {title}

What I'm looking to do is flow a single channel's entries from one to the other, alternating left and right on the way down. The only result I've managed to get anywhere near this is having the channel entries tag outside both but this causes each entry to be duplicated, but the layout is correct. Sorting the entries would require calling the channel entry each time and offsetting and limiting which doesn't help either.

Any help or insight would be brilliant.

Thanks in advance!


texts:
I need to customize the Admin Control Panel in Expression Engine I don't know how to do it. If any one knows kindly tell me.

Updated
Actually I want to show the channel data(any entries) in different UI inside EE2 Admin panel and I have my own module and I need to show that modules records also in EE2 Admin panel.


texts: Best Practice for moving a site using Assets

texts: I have a fairly big site with substantial use of Assets2 in development and am wondering what general guidelines / best practices anyone can suggest for when moving this to the production server? Any gotchas or preparation?


texts: Synchronising dev and live ExpressionEngine 3.x websites

texts:
I'm working for a company who have an ExpressionEngine 3.x website. They have 2 copies: a dev version (on a development server), and their live website.

Periodically I will pull down a full copy of the live website (file structure + database) on to the dev domain.

Staff at the company will be making different changes to both websites. For example the live website has a 'news' channel which is constantly updated - whilst it will remain fixed on the dev site from whatever point the copy was taken. On the dev copy we may be adding new channels, channel fields, changing templates etc.

I was wondering what the best way to manage keeping things in sync is, particularly from the ExpressionEngine database perspective? If we're changing channel fields in the dev database, we cannot simply replace the live database with the dev one when we want to update the live site with our changes. Because this will remove content that's been added to the live site (news in the example given above).

What strategies do people use in this situation? I noticed there is a feature in the EE Admin panel to export channel fields. But this doesn't seem to do what's needed. For example if I've changed channel fields on the dev site and export them, I can't import them on the live site as it will complain of duplicate fields. If I delete the channel, I lose the content.

We are not using any version control systems like git for this site, and I don't actually think that will help with database related things anyway?


texts: Is it possible to delete data from a specific custom member field in every member account in one operation (ie not going through every member account and deleting the data one at a time)?


texts:
I'm receiving a PHP parse error whenever the safecracker tag is parsed. The error is:

Parse error: syntax error, unexpected 'function' (T_FUNCTION) in /srv/sites/xxx/xxx/xxx/expressionengine/modules/safecracker/libraries/safecracker_lib.php on line 2083

Running EE 2.5.3 on PHP 5.4.15.


texts: How to get cropping functionality on front-end image upload?

texts:
Need to have users upload images on front-end via Safecracker but they need to be a specific width and height - otherwise could just limit the width - so really is going to need some cropping functionality.

Anyone done this? Add-ons? Is it possible?


texts:
I have a site that's being ported to ExpressionEngine as a temporary stopgap while a longer term strategy is worked out. The issue is that there are URLs in Google (and the wild) that have "bad" query strings from the previous (Java) build so when a user visits a URL from the old site they get a generic "Invalid GET Data" error.

Is there a way to allow for those characters in an ExpressionEngine URL?


texts: How to bind code when you delete a row with Grid?

texts:
I'm trying to figure out how to run some jquery after you click trash can icon to delete a row in grid. I have ajax code I have to run if you delete a row. EE has code in there that probably has preventDefault() which is stopping my code from triggering.

This is inside a channel form field on frontend.  I can't seem to bind anything to that delete row icon


texts:
Is it possible in ExpressionEngine 2.x to manage your uploaded files and images with categories? So when een customer add a new image in the default FileManager, they can select one categorie (like Products, News etc).

And when you want to select a uploaded image in the default FileManager to place in a wysiwyg editor, you want to see those categories at the left side in the default FileManager. Like this:

Images
- Category 1
- Category 2
- Category 2.1
Files
- Category 1
- Category 2
- Category 2.1

Is their a way to do this? I know the Assets addon from Pixel and tonic...


texts:
I am trying to set up a coupon code but I don't think I understand what purchased quantity is.

I have 6 products and want to set a code that will give a 20% discount on one of these products if one of the 6 is purchased at full price.

I am assuming in this scenario I would need to use the buy x get y plugin and that:

buy_x_entry_ids = 1,2,3,4,5,6
Purchased Quantity = 2
get_y_entry_ids = 1,2,3,4,5,6
Discount Quantity = 1
Percentage Off = 20
Per Item Limit = 1

If I put 1 x product_1 and 1 x product_2 in my cart no discount is applied.

If I put 2 x product_1 and 1 x product_2 in my cart 20% discount is applied to one product.

However if I put 1 x product_1 and 2 x product_2 in my cart no discount is applied.

If I remove Purchased Quantity it is better but then applies the 20% discount on a single product in the checkout.

Any ideas what the correct settings should be?


texts: Using Expresso I want to insert an image from a sub-folder of the upload directory. But the file manager doesn't display the subfolders, even after to synchronize the files. I tried many settings with no results


texts: Why are all snippets loading several times on page load?

texts: I have a simple about page being rendered with the content of only one entry and some Low Variables bits. It's rather slow (3.8806 seconds according to the Output Profiler), and the Template Debugging shows that all possible snippets are being loaded 6 times in each page load. The only number I could correlate with that is the number of templates being rendered in the page (aside from the main page, there's embedded template partials for the header and footer, scripts, etc). Am I correct in assuming that all snippet content is being loaded for every time a template is loaded? Is there any way to make it not do that?


texts: How can I pass the category ID of the current entry into the exp:calendar:cal tag?

texts:
I have an entry assigned to a specific category. I want events from exp:calendar:cal that share the same category to be displayed on the same page. When I hard code the category ID it works like a charm, but I want to know how I can pass the category ID dynamically. I've tried embeds, snippets and Stash embeds and I can't get anything to work.

Here's the calendar code...

{exp:calendar:cal channel="calendar_events" date_range_start="today" date_range_end="12 months" event_limit="4" enable="categories|custom_fields" related_categories_mode="yes" custom_fields="yes" category="[SNIPPET? EMBED? STASH?]"}

{event_start_date format="%M %j"}{title}
{/exp:calendar:cal}

And here's what I'm using to grab the category ID of the current page...

{exp:channel:entries channel="cool_stuff" disable="{gv_disable}"}
{categories}{category_id}{/categories}
{/exp:channel:entries}

Thanks in advance to anyone who can help at all!


texts: Call to Stash embed being evaluated inside a Switchee statement when it shouldn't be

texts:
I have a problem with a Stash embedded template being called when it's inside a switch statement (or a conditional, already tried that too) which should evaluate as false.

For example:

{exp:switchee variable="{stash:_nav_active}" parse="inward"}

    {case value="home|404"}{/case}

    {case default="Yes"}

        {stash:embed
            name="partials:nav:{segment_1}"
            process="start"
        }

    {/case}

{/exp:switchee}

even when stash:_nav_active equals 404, the embed is being called and because the segment doesn't exist, I get:

  Stash: the file "/stash_templates/partials/nav/made-up-segment.html" was not found.


texts: Is there a way to have a field with autocomplete values that are based on the input from another field? The values would be a result of previously entered data in the Channels (along with some other custom logic possibly). Is there an addon for this already? Or a native way to do this in EE?


texts: url rewrite / removing index.php on IIS 7

texts:
Does anyone have experience doing this on a windows server, running IIS7?

I've got access to the IIS manager, and the URL Rewrite module, but how to setup the rewrite rules, and how should the patterns look?

Ive tried this example, but the auto-generated examples of public url's are no good

http://www.iis.net/learn/extensions/url-rewrite-module/user-friendly-url-rule-template

When inputting:

www.domain.com/index.php/url-title

i only get this option for public url:

www.domain.com/index

No good :)

So i need to make a blank rule, but have no clue how to create the pattern.


texts:
Is it possible to replace/prepend the file name on upload with some member data?

For example original file is called file_data.zip but then prepend the filename with third_hyperion_991 leaving third_hyperion_991_file_data.zip


texts:
Fatal error: ob_start() [ref.outcontrol]: Cannot use output buffering in output buffering display handlers in /home/.../public_html/system/codeigniter/system/core/Exceptions.php on line 166

Unfortunately the web server to my site was hacked and an add-on designed for the control panel had code inserted into one of it's files. I have removed the offending file and ensured that my server settings were secure. Unfortunately, in the process aspects of that plugin are not working. I attempted to manually remove the add-on by removing references to it within the database.

This did resolve the original error that I was receiving. However, I am now receiving a new error as noted above. I have checked and even replaced the entire codeigniter directory, so there is no malicious code within it.

At this point the website is rendering correctly, but the admin.php is still displaying the above error. I assume that it has something to do with what i did in the sql database, but I am unsure how to track down and repair this issue. Any assistance would be appreciated.


texts: Expresso Store: pass value from one page to another one

texts:
Just to be clear about my configuration:

I have 2 templates:

1) Start (user makes selection)
2) Destination (I need to display the user's choice)

Start (user makes selection)
Template: {site_url}my_test_channel/Start

{exp:channel:entries channel="my_test_channel"}
    {exp:store:product entry_id="{entry_id}"  input:my_input_name1="My_input_name1"  input:my_input_name2="My_input_name2"}

                  <select id="my_input_name1" name="my_input_name1">
                        <option value="option1" selected="selected"> option1 </option>
                        <option value="option2"> option2 </option>
                  </select>

                  <select id="my_input_name2" name="my_input_name2">
                        <option value="option1" selected="selected"> option1 </option>
                        <option value="option2"> option2 </option>
                  </select>

        SEND-INFO-TO-DESTINATION

    {/exp:store:product}
{/exp:channel:entries}

Then in the Destination template:

{exp:channel:entries channel="my_test_channel"}
    {exp:store:product entry_id="{entry_id}"  input:my_input_name1="My_input_name1"  input:my_input_name2="My_input_name2"}

    User chioice1:  {product_details:my_input_name1}

    User chioice2:  {product_details:my_input_name2}

    {/exp:store:product}
{/exp:channel:entries}

Nothing happens.

How can I save the values selected on the first page, ad then display them on the second page?


texts:
I have what I think is a simple and straight forward goal.  I want to update a custom member field.

Here is the scenario.

Users will be offered to browse our web site for free for 15 days.

When they register (the have to register for me to get their email address) they can choose to activate the 15 day trial by submitting a form on the site.

I want to form to set the value of a custom member field to the current date plus 15 days.  I also want to set another custom field to the value of "yes" so that I know that this registered user has used the trial...the user can only use the trial once.

Do I need an addin to set the value of custom member fields?  What is the best way to accomplish this?

Thanks in advance.


texts: How can Playa combine multiple category filters in the CP?

texts:
I have a site with many similarly-named article entries that are organized by multiple categories. When selecting these articles in a Playa field in the control panel, I'd like to be able to select more than one category filter to narrow down the results.

Right now, adding multiple category filters displays entries that are in either one category or the other (e.g., it shows entries that are in either cat_1 OR cat_2). I want it to select entries that are in cat_1 AND cat_2.  Is this possible?

Using Playa 4.3.3 on EE 2.3.1. Thanks!

EDIT: This doesn't seem to be built in to Playa, but if anyone knows how to hack it so this works, I'd accept that as an answer!


texts: How to stop extra authentication with admin area

texts:
When I am logged in as any user on my EE site (including superadmins), when I click over to the admin area it forces me to login again. This happens even if I've just logged in 5 seconds earlier. Is there any way to prevent this extra authentication?

Thanks.