texts: Stash set_list not displaying channel entry loop

texts:
I'm having trouble displaying a channel entry loop within my EE setup which uses the Stash and IfElse modules. First of all, see this screenshot of my file structure:

I'm using the 'partials approach' (heavily based on this article) and therefore have an index.html file which handles my routing.

index.html:

{!-- If we're on one of the main support pages --}
{if segment_2!="" AND segment_3==""}
{embed="support/main-landing"}

{!-- If we're on one of the Financial Support sub-pages --}
{if:elseif segment_2=="financial-support" AND segment_3!=""}
{embed="support/main-detail"}

{/if}

So if we look at the main-landing template file, you can see that I'm specifying the stash layout file to use and also setting some variables - one for the actual landing page itself and the other for the loop I am having trouble displaying.

main-landing.html:

{stash:embed:layouts:support-main-landing}

{!-- Set data for the landing page --}
    {exp:channel:entries channel="support" url_title="{segment_3}"}
        {exp:stash:set}
            {stash:url_title}{url_title}{/stash:url_title}
            {stash:title}{title}{/stash:title}
            {stash:page_content}{page_content}{/stash:page_content}
        {/exp:stash:set}
    {/exp:channel:entries}

      {!-- Set data for the financial support sub-pages --}
      {exp:stash:set_list name="financial_support_options" parse_tags="yes"}
      {exp:channel:entries channel="financial_support"}
                {stash:financial_url_title}{url_title}{/stash:financial_url_title}
                {stash:financial_title}{title}{/stash:financial_title}
                {stash:financial_page_content}{page_content}{/stash:financial_page_content}
                {stash:financial_summary}{summary}{/stash:financial_summary}
     {/exp:channel:entries}
     {/exp:stash:set_list}

The following layout file then gets the loop that we just set, using get_list.

support-main-landing.html:

{stash:embed:wrappers:main} {!-- Select the main wrapper template --}

{exp:stash:set name="content"} {!-- Set everything in between here as the content --}
    {stash:embed:partials:breadcrumb}

{exp:stash:get name='title'}

                    {exp:stash:get_list name="financial_support_options"}

{financial_title}

{financial_summary}

                    {/exp:stash:get_list}

                {!-- If we're on the Financial Support page, show it's unique sidebar --}
                {if segment_2=="financial-support"}
                    {stash:embed:content:sidebar-financial-support}
                {/if}

{/exp:stash:set}

The Problem:

Everything seems to be working except for the loop financial_support_options. When the page is rendered, it manages to display the surrounding
 but no data inside...so the problem must lie where I am actually setting the loop variable in main-landing.html.

FYI - The financial-support channel and support channel both use the same Channel Field Group

Do you absolutely HAVE to set the tags as stash variables in order to use them within the layout files in the stash folder?

Any help will be greatly appreciated!


texts:
Looking to be able to style/customize error pages for Expresso Store or EE.
Anyone have experience ideas of this please?
Thanks.


texts:
Is there any way to deny multiple user logins when using the same username & password?

So if a user is logged in, they can't login from another machine using the same login credentials.

Thanks for any help.


texts: Safecracker error after upgrading from 2.5.5 to 2.7

texts:
I see this in pages where I have Safecracker forms

A PHP Error was encountered

Severity: Warning

Message: require_once(/home/dsvrtwo/public_html/system/expressionengine/third_party/safecracker/mod.safecracker.php) [function.require-once]: failed to open stream: No such file or directory

Filename: libraries/Template.php

Line Number: 1011

Any idea why it is still pointing to "safecracker"?

In the Channel Form documentation page, I don't see any opening/closing tag documentation. Am I supposed to rename my Safecracker forms?

UPDATE: I found this Channel Form examples page.

So I tried renaming my tag to {exp:channel:form}.

However, I get 2 new errors

A PHP Error was encountered
Severity: Notice
Message: Undefined property: Channel_form_lib::$EE
Filename: safecracker_registration/ext.safecracker_registration.php
Line Number: 125

A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: safecracker_registration/ext.safecracker_registration.php
Line Number: 125


texts: How to show all pagination pages, not just next two pages

texts:
I'm using the native EE pagination and it's only showing the next two pages (i.e. 1, 2 & 3) when there's actually 4 pages. Once you go to page two it then shows all numbers (1,2,3 & 4) but I'd like it to show all pages all the time.

Any ideas on how to do this?

Here's my code:

{paginate}

        {pagination_links}

Page:
                {page}
                    {pagination_page_number}
                {/page}

                {first_page}
                    First
                {/first_page}
                {previous_page}
                    Previous
                {/previous_page}
                {next_page}
                    Next
                {/next_page}
                {last_page}
                    Last
                {/last_page}

        {/pagination_links}

{/paginate}

Thanks in advance,

Tom


texts:
I have asked this question in the official EE forum but didn't get any replies so thought about asking the same question here, hope someone can help?!

What I am trying to do:

I have the SolSpace user module installed and pulling the username of my members as segment 1 (e.g. www.domain.com/peter) now I have a channel where my users can enter a blog entry but I want each user to have their own blog address (e.g. www.domain.com/peter/blog) so got all that working fine.

The problem:

When I go to www.domain.com/peter/blog I see Peter’s entries and that’s good and all but when I click on the title to read more I get the permalinks page for that blog entry, what I would like to get is www.domain.com/peter/blog/hello-world served on the screen and no matter what I try it’s getting that the 3rd segment to show that entry…

This is my code:

{if segment_2 =="blog"}
 {exp:channel:entries channel="blog" username="{segment_1}" limit="10" dynamic="no"}
  {title}
 {/exp:channel:entries}
{if:else}
 {exp:channel:entries channel="blog" username="{segment_1}" limit="1" dynamic="yes"}
  {title}
 {/exp:channel:entries}
{/if}

Also tried

    {if segment_2 =="blog"}
     {exp:channel:entries channel="blog" username="{segment_1}" limit="10" dynamic="no"}
      {title}
     {/exp:channel:entries}
    {/if}
    {if segment_2 =="blog" AND segment_3 ==""}
     {exp:channel:entries channel="blog" username="{segment_1}" limit="1" dynamic="yes"}
      {title}
     {/exp:channel:entries}
    {/if}

I have tried so many different combos to get the 3rd segment to show but nothing shows or I get a blank page.

I can link the page to www.domain.com/blog/hello-world and that works but I wanted to get www.domain.com/peter/blog/hello-world.

I have am running EE 2.5.5

I hope I made sense, if not please let me know and I will try again,
I know the code is wrong but if someone can put me on the right track…

Thanks in advance.
Tony


texts: Validating "Relationship" fields with ExpressionEngine Channel Form (SafeCracker)

texts:
I'm trying to get the built in ExpressionEngine Channel Form (formerly Safecracker) validation working for a custom relationship field I have. This is using the rules parameter.

Markup snippet of the channel form below

{custom_fields}
{if field_name == "exp_entry_related_to"}

    Context
    <select name="{field_name}[data][]" id="{field_name}" class="form-control">
    {options}
        <option value="{option_value}"{selected}>{option_name}</option>
    {/options}
    </select>

{/if}
{custom_fields}

There is a requirement (as per the docs, and per my testing) for the field name to be exp_entry_related_to[data][] for this to populate the channel data, but of course I can't target that field name i.e.

{!-- Neither of these work as expected --}
rules:exp_entry_related_to[data][]="required|min_length[1]"
rules:exp_entry_related_to="required|min_length[1]"

Has anyone got any idea how to get this to work? Thanks.


texts:
we are using Freeform Pro and Transcribe to build forms and translate content.

Using the composer tag, is there a way for the CAPTCHA label 'Please enter the word you see in the image below' to be translated.

Is there a way to break the captcha out of the tag and translate?

We are using the tag below to bring in the code:

{exp:freeform:composer
  form_name="general_product_enquiry"
  return="{segment_1}/{segment_2}/{segment_3}/thank_you"
  parse="inward"
}

Any help or suggestions would be appreciated.


texts: Has anyone written a shell script to set all the default file/folder permissions on a new EE install?


texts: Output/Debugging: What does the exclamation mark mean and how to interpret it?

texts:
When I turn on output and debugging I get an exclamation-mark in some cases (only in "templates"), like this:

What does this mean and how can I get more information about the error?

Thanks in advance!


texts: Body field of an entry(channel) not being styled?

texts:
I hope this is the right place, not sure if its a css issue, or whether or not it has something to do with what EE is doing.

I have a news channel setup, with a main "body" field. This is a textarea. When the entry is outputted, it doe not take on the css styling. I do not have this problem anywhere else  within my templates, just these main body fields.

When I inspect it, all the HTML markup is there, however its just plain straight text.

Could EE be having any play in it, or am I missing something with regards to my css?


texts:
I currently have Store (1.6.4) up and running amazingly. However, I've just spotted that if a user clicks cancel while on worldpay then I get a callback failure alert:

Error reported: Callback to https://capuk.org/?ACT=35&H=8ea9360d3687aa3ae10091b4fa2be74c: NOT OK, recevied HTTP status: 302
Server Reference: mg4imsps3p:callbackFailureEmail-122700:MerchReq-870-97

Any help would be great.

Thanks,
Dan


texts:
So my members update their courses which is a matrix channel field, tis channel field has 2 cells. Date and course name.

what I would like to do is get the last 3 matrix fields by date across all my members then output the name of the person who updated last.

{exp:channel:entries channel="zoo_visitor" limit="10"}
       {member_firstname}{member_lastname}
      {courses_completed}

      {Date}
      {/courses_completed}
      {/exp:channel:entries}


texts: Expresso Store: Registering Members - Specify member group in template

texts:
I am setting a site up where customers purchase memberships.

I was going to setup a product to handle this and then do a check in the checkout tag to see if the product had been bought and if it had specify a member id to add that user, during checkout, to their new member group.

Unless there is a better way overall, I am hoping there may be a way within the Registering Members templating to specify a member id

Any help, much appreciated.
Thanks.

See: https://www.exp-resso.com/docs/checkout_tag.html#registering_members


texts: Problems to display average rating with Solspace Rating

texts:
I need some help, about Solspace Rating,

If the entry named hamburger was rated 20 times,  there are 20 Entry's Rating with the hamburger name, in the Rating's Control Panel.

When I Using this code, the 20 Entry's Rating of the Hamburger Rated entries are displayed on 20 lines. How to display only one line, and not all the entries, where appear the average note of all the hamburger Entry's Rating and of the other ones?

{exp:rating:entries}

                {exp:rating:stats entry_id="{entry_id}"}
                     {stars_avg_rating}
                {/exp:rating:stats}

{/exp:rating:entries}

Update:

Using this code, appear the average's notes of the Rated entries

{exp:channel:entries channel="receitas"}
    {exp:rating:entries limit="1" }

                    {exp:rating:stats entry_id="{entry_id}"}
                         {title}{stars_avg_rating}
                    {/exp:rating:stats}

    {/exp:rating:entries}
{/exp:channel:entries}

Does exist a more direct method than parsing exp:rating:entries inside exp:channel:entries ??


texts: How can I use stash->parse in my extension

texts:
I'm writing an addon which can take an EE template, replace some variables and then crucially parse the EE tags in it and then email it.

I was hoping stash:parse might come to my rescue after a day of poking around various addons code and other options.

So here's what I want to do:

echo "Template following process 1: $msg_body
";

  if ( ! class_exists('Stash'))
  &#123;
      include_once PATH_THIRD . 'stash/mod.stash.php';
  &#125;

  $stash = new Stash(TRUE); // instantiate with initialising

  $params = array(
   'process' => 'inline',
   'parse_depth' => 5
  );

  $parsed_string = $stash->parse($params, $msg_body);

  echo "Template following process 2: $parsed_string
";

  return $parsed_string;

This all seems to work - $msg_body is my template ready to parse. It contains a channel entries tag, which even when I make it as basic as possible, still gives the following error:

Error

The following tag has a syntax error:

&#123;exp:channel:entries&#125;

Please correct the syntax in your template.

The template code is
[code]{entry_id}
{exp:channel:entries
 channel="clients"
 entry_id="18813"
 status="not closed"
}
 {title}
{/exp:channel:entries}[/code]

So unless I've missed something obvious, there isn't a syntax error here.

It seems like this should work, especially as the parse example includes a channel entries tag (https://github.com/croxton/Stash/wiki/{exp:stash:parse})

I put together a quick function in my module called "test_stash" which DOES work.

    function test_stash(){
    if ( ! class_exists('Stash'))
    {
        include_once PATH_THIRD . 'stash/mod.stash.php';
    }

    $msg_body = '

{exp:channel:entries
    channel="clients"
    entry_id="18813"
    status="not closed"
}
    {title}
{/exp:channel:entries}';

    $stash = new Stash(TRUE); // instantiate with initialising

    $params = array(
        'process' => 'inline',
        'parse_depth' => 5
    );

    $parsed_string = $stash->parse($params, $msg_body);

    echo $parsed_string;

}

So it seems like the issue is with parsing the tag in my EXTENSION. Is there anything about this which could be causing an issue?

The extension fires on channel_form_submit_entry_end.

Any help/advice appreciated. Thanks.


texts:
I run expression engine 2.9.2 but if I want to use related_entry's it display the tag on my front-end, I don't now what is wrong I have selected another entry. It looks like it doesn't understand the tag {related_entries id="dashcam_relatie"} because it displays as text. Also can I find nothing on EE only the v3 solutions

{exp:channel:entries channel="dashcam" limit="1" disable="member_data" paginate="bottom" track_views="two"}

...

{related_entries id="dashcam_relatie"}
        {title}
{/related_entries}

{/exp:channel:entries}

display

{related_entries id="dashcam_relatie"} display title from the active entry {/related_entries}


texts: Is there a way to require a checkbox field on a Log In form?

texts:
I've set up a standard exp:member:login form for members-only content. My client has requested that I add a checkbox field that would require users to check before they would be allowed to log in. It doesn't appear that the standard login form allows for "rules:" parameters. I've looked around on Devot-ee, and I haven't seen anything that looks like it would fit the bill.

Is there a way to do this using standard EE tags/parameters? Or maybe an add-on that would allow me to add this functionality? If not, do you have suggestions for how I might build this?


texts:
I am trying to do a category filter using segments. I will try to break it down as best as possible! Hopefully someone can assist me.

EE Versions: v2.9.2, Low Seg2Cat: v2.8.1

I am using 2 category groups at the moment. "Training Brand" & "Training Category".

Step 1 is choosing the "Training Category" Like so...

{exp:channel:categories style="linear" category_group="3" category="{segment_category_ids}" show_empty="no"}

{category_name}

{/exp:channel:categories}

Which works fine, it only shows me the categories that have an entry in them.

Step 2 is where I am running into trouble.

I am trying to display a list of categories from the group "Training Category" that have an associated category with the category now in the segment.

I've tried using this code...

    {exp:channel:entries channel="training_resources" category="{segment_category_ids}"}

            {categories category_group="2" limit="1"}{category_url_title} {category_id}{/categories}
            View

    {/exp:channel:entries}

This snippet of code, displays only the entries that are in the related to the segment, which is good. But it also duplicates the entries showing the categories multiple times if there are multiple entries per category.

This is a 3 page process where on the 1st and second you are selecting 2 different categories, and on the 3rd will display all the entries based on those 2 categories.

Has anyone had any luck by filtering with categories?

Thanks,
Funk


texts: Allow duplicate emails/no email address on Member Registration

texts:
I'm working on a membership site for a Triathlon club (using Zoo Visitor).

My problem lies in that when a family registers to become members they all use the same email address (as their children may not have one yet) and I'm getting hit with EEs "The email you chose is not available".

I thought about adding the extra member details as custom fields but we do need them to register as individuals in the system.

I need to able to either:

have a duplicate email address
be able to leave the email address empty on some submissions

I am currently looking to use some javascript to create a "dummy" email address from the timestamp for the other family members but I'm not sure how safe this will be.

Has anyone had this issue before and found a solution? Any ideas would be appreciated.

Cheers


texts: Missing Structure fields after changing channel from listing type to page type

texts:
A client wanted to be able to drag/drop the ordering of some customers on their site, so I've changed the customers channel in Structure from being a listing to being a page based channel and was going to have one "page" per customer.

The problem I'm having now is all existing (and new) rows have a Structure tab, but are missing these fields.

"Structure parent entry"
"Hide from nav?"
"Listing channel"

In the channel sidebar (where you can view fields) these fields appear but have no icon next to them (the eye) and can't be dragged onto the Structure tab.

Has anyone come across this before?


texts:
I need to restructure the channel entries (I'm trying to group them by one of the channel fields). For example, say I have a list of fruits and each fruit had a color. I'm trying to group these fruits in an associative array by color, like:

$fruits['yellow'] = array('fruit_name' => 'banana' ...

Once I have this restructured data, I then need to loop over it and output certain mark up.

So far, what I have done is to set Allow PHP? to Yes and declared an array, built that array within the entries tag pair, and now going to loop through that array and output the markup I need.

This seems messy. Is there a "cleaner" approach?

UPDATE

This is how I want to output the data, which I think would be impossible to achieve with an orderby:

Yellow
 -- Banana
 -- Lemon
 -- Papaya

Red
 -- Apple
 -- Strawberry
 -- Cherry

So, I need to loop over the colors, then loop over the fruits within each color. It's a nested array that I need. Using orderby does not give me a nested array.


texts: Redeem Coupon Form Inside Expresso Store Checkout

texts: I am using expresso store as my checkout form (which is already using the checkout & product tags to wrap the products inside of the cart), but need an additional form which consists of a simple textbox and button inside of these tags which will redeem a specific coupon. If I use the  HTML tag, the button to go to the next step does not work (as there are now two forms on the page). How would I be able to include this form and then link the 'Redeem' button to a function that I already have in my module? Is there a way to achieve this?


texts:
Good Afternoon,

For a long time I've used a PHP enabled template to export channel data to a Microsoft Excel spreadsheet and it's worked very well. Recently, I've discovered that since everyone has now upgraded their Excel and the default extension is now XLSX instead of XLS, an alert is displayed when opening the file. If you click proceed anyway you can still open the spreadsheet but if possible I'd like to now export to XLSX instead of XLS as to avoid this alert message. Please find an example of the alert I'm talking about below:

In my export template I have 'Allow PHP' set to 'Yes' and 'PHP Parsing Stage' set to 'Output'. The template contains a basic HTML table that is setup to output the channel data I want in my spreadsheet and below is the PHP I have at the top of this template that generates the Excel file:

<?php
    header("Content-type: application/vnd.ms-excel");
    header("Content-Disposition: attachment; filename=My-Channel-Data Spreadsheet.xls");
    header("Pragma: no-cache");
    header("Expires: 0");
?>

Does anyone know of a way to adjust the code above so that the spreadsheet is exported as a modern Excel file using the XLSX extension? Any tips or suggestions to achieve this would be greatly appreciated, Thanks!


texts:
I'am trying to create a new Field of type "Fieldtype - Switch", but I'am getting this error:

Unable to load requested field type file: ft.pt_switch.php.
Confirm the fieldtype file is located in the expressionengine/third_party/ directory

Which is weird, because the correct file should be ft.fieldpack_switch.php.

I had the old 1.x version installed, but I uninstalled everything and removed the files. My EE version is 2.6.

What can cause this and how to fix it?


texts:
I downloaded the free/basic version of ExpressionEngine2 just to get use to EE and all of its features. How would I go about installing / setting it up on my pc? Would I follow the same steps as the commercial one, just without entering the serial key?

I love that there's a free version for beginners to get use to the system and it's inner workings, even though it's very basic..


texts: stash:cache and no_results inside channel:entries does not redirect

texts:
This seems to be linked to the issue discussed on this question however it's using cache tags instead of parse and I'm redirecting to a 404.

My code is as follows:

{exp:stash:cache name="page"}

  {exp:channel:entries
    channel="post"
    disable="categories|category_fields|member_data|pagination|trackbacks"
    require="yes"
  }

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

  {/exp:channel:entries}

{/exp:stash:cache}

I'm accessing this template from the following URI - /posts/test-post-that-doesnt-exist

This post doesn't exist, however the template still renders and does not redirect as you'd expect with the no_results tag.

Following the idea on this question I added an empty no_results and it redirects correctly.

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

It smells like a prefix issue, if I removed the stash:cache tags it redirects correctly.

Has anyone else has this issue? Is there a work around? Am I missing something (have tried prefix and unprefix parameters on the stash:cache tag).

Ta


texts:
I'm in the process of setting up an e-commerce site using Exp:resso Store version 1.6.3. My client wants to be able to add surcharges to particular UK postcode areas based on the fact that they are hard to reach regions.

I assumed this would be easy using the Standard Shipping Plugin, by adding different rules for the first part of each postcode.

For example, if we wanted to surcharge all customers with postcodes starting 'AB', I would simply add a rule to match postcode 'AB' and apply a charge to that. I'm not sure how to match this though as if I then complete a test order to the checkout confirmation page with postcode 'AB34 3DP', this rule is ignored.

In addition, I would not want to apply this rule if the customer postcode was, for example 'TN4 3AB'. Is there a method to add wildcards to the postcode shipping rules? I could not find any information in the Exp:resso Store docs.


texts:
Can I assign members to subscription packages without payment transactions? So maybe a visitor to the site would buy a package through my own separate shopping cart, which would send an email to an admin. That admin would then log into the EE control panel and assign that member to the subscription package he asked for. But this would bypass the payment gateways built into the Subscriptions add-on.

Possible?


texts: low seg2cat on MSM site segment_x_cat not working

texts:
Just upgraded a site from EE 2.5 something to 2.7.2 it is running MSM all the subsites pull content from the main site. Each subsite has no content or categories of its own. (This is the way I inherited it) When I did the update I also updated low seg2cat from 2.6.1 to 2.8.0 The code below is a template in a subsite and it used to work just fine.

{if "{segment_1_category_id}" != ""}
  {exp:channel:entries channel="channel_name" site="site_name" category_group="11" category="{segment_1_category_id}" status="top_page"}

{if long_title}{long_title}{if:else}{title}{/if}

{if article_img}
{if article_source}{/if}{if article_img_link}{/if}{article_img wrap="image"}{if article_img_link}{/if}{if article_source}{/if}

{article_img_caption}

{/if}
    {body}
{if more_info}

For more information:
{more_info}{/if}

Tagged with: {exp:tag:tags entry_id="{entry_id}" type="weblog" site="sitenames" backspace="2" orderby="clicks" sort="desc" limit="10"}{tag}, {/exp:tag:tags}

    {embed="site_name:includes/fb-twitter"}
  {/exp:channel:entries}
{/if}

Now {segment_1_category_id} returns nothing. I rolled back the seg2cat version to 2.6.1 and then it produces the proper output. Only problem is it also creates php errors even though everything seems to work anyways. This is the error

Severity: Warning

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

Filename: libraries/Extensions.php

Any suggestions on a solution? I have a feeling it is now treating categories as site specific and because the subsite has no categories and technically it is referencing a category from the main site it is not returning anything.


texts: Load stash partials with custom extension

texts:
I'm trying to parse markdown files stored on the server, and display them inside EE templates in a nice automatic fashion.

My first idea was to read the files using Stash, then parse them using Smartdown. However, I have run into a problem:

Stash assumes the files have an extension of .html. If I use this:

{exp:stash:get name="index.md" file="yes"}

I get the error:

  Stash: the file "/path/to/stash/index.md.html" was not found.

Is there a way to tell Stash not to automatically add the .html extension?

Alternatively, is there another easy way to read in files (and cache them)?


texts:
Does anybody know of a solution to nested playa tags?

Currently I believe that the only way to retrieve playa entires from within another playa tag pair is to use an embed, is this still the case? Can we circumvent this using Stash or something similar?

This is what I'd like to be able to do:

{exp:channel:entries channel="products" dynamic="yes"}
        {!-- Product specific stuff goes here --}

        {!-- My Playa fieldtype that relates other products to this one --}
        {cf_phone_similar_products}

            {title}

            {!-- Each Product has a Related plan that I need to grab --}

Free on the {exp:playa:children field="cf_phone_free_with_a_plan"}{title}{/exp:playa:children}

        {/cf_phone_similar_products}

{/exp:channel:entries}


texts: Google Maps for EE field not displaying correctly in a jQuery tabbed form

texts:
I've got a tabbed SafeCracker form and one of the fields is a Google Maps for ExpressionEngine field. I've noticed an issue where the map only loads properly if it's on the first/selected tab when the page loads. If it's on another tab, then when you click that particular tab, the map doesn't display correctly.

I believe it's an issue to do with the map needing to be redrawn as the tab it's within is clicked, and it sounds like a similar issue this other question. But I can't figure out how to implement or adapt that other solution to fix my problem, though it might be because I'm using a SafeCracker field and different template code so the other solution might not apply completely to my situation.

So I'm posting this as a new question, and any advice on this would be appreciated. My stripped-down template code is below:

{exp:safecracker channel="event" include_jquery="no" datepicker="no" return="/events"}

Tab 1

Tab 2

Tab 3

Tab 1

Tab 2

      {field:cf_event_map_location}
      <input name="cf_event_map_latitude" type="hidden" value="{cf_event_map_latitude}" />
      <input name="cf_event_map_longitude" type="hidden" value="{cf_event_map_longitude}" />

Tab 3

    <input type="submit" value="Save" />

{/exp:safecracker}

Edit: I've updated my code to show how I've tried (unsuccessfully) to use Justin's code from the other answer linked to above.


texts: CartThrob and multiple currencies on separate domains

texts:
I have two nearly duplicate sites accessed from two domains – .com.au and .co.nz – run from a single non-MSM installation of EE where different custom fields are used to display info and prices specific to each site.

Given that both sites are using the same templates and entries, what's the best way for taking orders in the currency specific to the domain they're ordered from?

Do I need to use separate gateways for each domain or is there a single gateway that can handle both?

Or is there a tag or parameter that can be used to in either add_to_cart_form or checkout_form that can specify which currency to use?


texts: SSL Redirect (no idea where it's coming from)

texts:
I recently had to do some emergency-work on my client's live server, and wanted to sync those changes back into my repository and staging environment. Now that I've synced them back (copied new files to local, committed them to my repo and pushed to staging) my staging environment and local environment both try to redirect to https:// versions of their frontend. The backend is fine, but fornt-end wants to load over SSL. I don't have DM Force SSL or any other SSL-related plugins installed. Any thoughts as to why this might occur? I've already checked my .htaccess, but that only contains EE's basic URL-rewrite... I'm stumped here.

Thanks,

Steven


texts:
Have on mind that this post comes from someone who still after very few projects in EE is still a newcomer. That being said I’m looking forward to start a new project with a “best practice” approach. So, after listening and learning so much from the “unofficial” podcast with @lealea and @emilylewis (hopefully @mediagirl becomes part of the show) I’m in this anti-embed situation:

For I what I heard and read, {embeds} are not the best approach since they use many resources. But still I find no alarm or recommendation from EllisLab on how NOT to use them. The community via #eecms has shared some insights @Boyink tells me “try embeds and measure performance yourself. They still work fine in most cases.”  @jasonleelab recommends Low Variables and @pauloelias goes for a Stash approach.

I thought about using Template Morsels and tried Stash Embed with very bad results: pages wont refresh and it was a design nightmare. (I did tried https://github.com/croxton/Stash/blob/dev/docs/working_with_files.md approach and I’m sure I’m doing something wrong).

I’m trying to find the best DRY method that doesn’t affect the site’s performance. At this point I have some HTML code that I want to use on several templates, a couple of {exp:channel:categories channel="Publicaciones" style="nested"} , etc. But I’m heading to a user site with lots of sessions and downloads and really wish to start the best way.

Any ideas?
Thanks!


texts: Restricting access to forum to logged-in members area

texts:
I have a client who's site has a password protected member section. There is also a forum built using the Forum Module.

The client wants the forum to be protected like the rest of the member area as it is only for members. They do not want anyone to be able to see the forum unless they are logged into the member area.

Since there is a login form on the forum itself and you can't see any posts unless you are logged in this seems a little unnecessary but the client has requested this.

Is there a way to do this?


texts: How to collect payment of invoice with Expresso Store

texts: We would like clients to be able to pay their invoices online, in a single page checkout. The form would collect the Customer name, email, invoice #, amount, and all the Credit Card info needed to send to authorize.net. In reviewing Expresso Store documentation, it isn't clear to us how to let the customer set the amount.


texts: significantly short term log out of the control panel

texts: I am a super admin in a new EE6 install. The system has been logging me out every 5 minutes literally. Does anyone know how to resolve this issue?


texts: How to use images from themes/third_party folder in a plugin?

texts: I am writing a simple plugin and I want to use some images within the plugin. I assume that the *themes/third_party*-folder is the right place for those. How can I use them? I cannot link to them directly (e.g. <img src="/themes/third_party/...") because the folder is not directly accessible.


texts: Garbled stash:nocache output when in stash:set_list in a nested embed

texts:
I'm putting together a sort of ViewModel-ish setup and getting strange output from {stash:nocache}

Here's the setup. First, the EE template:

{stash:embed
  context="@URI"
  file_name="viewmodels:detail"
  parse_stage="both"
  stash:_type="blog"
  stash:_layout="standard"
 }

viewmodels/detail.html

{stash:embed:layouts:{stash:_layout} priority="1"}

{stash:embed
  file_name="viewmodels:detail:{stash:_type}"}

viewmodels/detail/blog.html

{exp:channel:entries [single entry parameters...]}

[SNIP store some other data, eg title, body…]

  {exp:stash:set_list name="post_links" parse_conditionals="yes" parse_tags="yes"}
    [SNIP some other items…]

    {stash:link}
      {if forum_topic}
        {path='forums/viewthread'}/{forum_topic_id}/
      {if:else}
        {stash:nocache}
          {if logged_in}
            {path='/forums/newtopic/18/'}
          {if:else}
            /forums/member/login/
          {/if}
        {/stash:nocache}
      {/if}
    {/stash:link}
    {stash:text}
      {if forum_topic}
        Discuss in the forums
      {if:else}
        {stash:nocache}
        {if logged_out}Log in and start{if:else}Start{/if} a discussion in the forums
        {/stash:nocache}
      {/if}
    {/stash:text}

  {/exp:stash:set_list}

{/exp:channel:entries}

layouts/standard.html

(part of it)

{exp:stash:get_list name="post_links"}
  {text}

{/exp:stash:get_list}

All told, that outputs

[_Stash_2_SOMERANDOMLETTERSANDNUMBERS]

At first I thought it might an issue using {stash:nocache} within the {stash:KEY} elements of {exp:stash:set_list}, so I tried prefix="CUSTOM" on any/all of the {stash:embed}s and using {CUSTOM:nocache}, but that got me the same sort of garbled result. No combination of parse_stage="both" on any of the nested embeds seemed to make a difference either.

Extra weird, if I place the contents of viewmodels/detail/blog.html directly in 'viewmodels/detail.html' instead of the nested embed and just use {stash:nocache}, that works OK. So I could do that. But if anyone has any ideas why those list/{stash:nocache} elements are getting parsed that way so I could use the nested embed, that'd be useful.


texts: retrieve the database name in an extension

texts:
I'm building a small plugin for EE and I need to retrieve the name of the database. ( specified in config > database.php )

But I can't seem to find any docs that point me in the right direction.


texts:
I'm looking for a way to easily customize the look of the core EE Private Messaging functionality. I know that there are add-ons out there that open up some of the functionality, but I would really like to utilize as much of the core functionality as possible. I've found the templates in the 'themes' > 'profile_themes' directory, but is there any documentation or anything out there on how to actually customize this? Anyone out there have experience doing this?

Thanks in advance.


texts: How do I use Cartthrob's tax by class plugin with countries?

texts:
I'm trying to figure out how the Tax By Class plugin works. Specifically the country parameter.

I've got a set up whereby site admins can set a Tax Class in the product entry and this gets applied as an item_option using a hidden field when adding that item to the cart. This works OK so far as I've tested it.

In the tax by class settings I have 3 classes, "Standard", "Discounted", and "Zero Rated".

I have then created different tax rates in the matrix like so:-
VAT 20% UK "Standard"
Reduced VAT 15% UK "Discounted"
Zero rated 0% UK "Zero Rated"

These all work as expected.

I then tried adding a new rate for Belgium:
VAT 21% Belgium "Standard"

But changing the shipping country on the checkout doesn't seem to apply the new tax rate as defined in the plugin. Previously I had been using Tax By Location and the rate would changed based on shipping country set so I know that bit is working as it should and updating the customer's country info.

Am I misunderstanding how this should work or have I just set it up incorrectly? Or is it a genuine bug?


texts: Solspace Favorites Count inside Favorites Saved tag

texts:
This may be a simple yes/no but is it possible to show the Favorites Count within the Favorites Saved tag?

Currently I'm trying to achieve this by using the Favorites Count tag within the Favorites Saved tag but unfortunately I'm getting a weird encrypted looking number outputted on the front-end.

I've even tried adding the count tag as a snippet within the saved tag as I know this sometimes helps with channel entries within channel entries, but not luck.

Is what I'm doing possible? Or is there some variable for the saved tag that will output the count that I'm missing in the documentation?

Note: When I separate the count from the saved tag, I get a number, so the tag is correct. However I would prefer the count within the saved tag because I am using ajax to action the save and would like the count to update "on-the-fly" along with the saved/unsaved status.


texts: Using {redirect=""} to redirect to an external website

texts:
We're trying to use redirect to allow our website editors to link to external pages, however when we use:

{exp:channel:entries}
  {redirect='{external_link}'}
{/exp:channel:entries}

It just takes them to http://example.com//http://www.myredirecturl.com

Is it possible to use redirect to link to external websites? Thanks!


texts: Output List of P&T Dropdown Field Options

texts:
I was hoping to output the available options in my P&T Fieldpack Dropdown field with a template (into a dropdown used to filter results) but am having no luck.

I've seen some folks referencing a tag pair like {options:papers_type} but I'm getting nowhere. Is anyone else familiar with how to do this?

Feels like I must be missing something. Merci!


texts: Freeform "Field Options" Multi-List List type not working

texts:
I am trying to set up a form using Freeform Pro and when I try to use a "Select" field I am not able to click on any of the List type options. If I click on "Load from Channel Field" with the proper Channel Field selected I receive an error that says:

"You must choose some data option for multi-rows in order for this field type to work."

It seems as though it is not letting me actually select a list type.

I re-installed it, but it still didn't work.

Any ideas?


texts: Simple search - Only works the first time?

texts:
My users only get proper search results when using the simple search form the first time. Each subsequent search either returns no results or an error.

"The action you have requested is invalid."

EE 2.7.2

Has anyone seen this or have insight?


texts: Channel Form change return & return_url with javascript

texts:
I'm upgrading a site from 2.5.5 to 2.7.3 and I am running into an issue migrating one of my safecracker forms.  The values for return & return_url were being set using javascript in the safecracker form. The form would submit to 1 of 2 return templates based on information entered in the form.

When I upgraded the form, I seem to have lost the ability to change the return & return_url params & the form will only submit to the default return template when it is supposed to be returning to the alternate.

My Console is clean when submitting/viewing the page, so I think the issue has something to do with the new channel form open tags. Has anyone else encountered an issue like this upgrading a safecracker form?


texts:
I have a client using Freeform (free) 4.2 that has about 30K of submissions between two forms. They have no need to save these and I'd like to clear them out or better yet set them up to do it. I see no "delete all" in the Freeform CP so assume my options are either duplicate the form, delete the original, and then rename the new one. Or get crafty with SQL queries at the db level.

Any other options I'm missing, or has anyone done this and have some pointers?


texts: Checking the channel in the channel entries tag

texts:
What I am trying to do is combine the output of 2 channels. They both have an image with a different name so I am trying to check the channel to determine the which image I need to output. Code below.

{exp:channel:entries channel="work"  dynamic="no" limit="3"}

               {if channel=="work"}

                {if:elseif channel == 'latest'}

               {/if}

 {title}

        {/exp:channel:entries}


texts: Reduce queries of Matrix with nested Playa fields

texts:
I need to display a tour itinerary which is put together in a Matrix field where the first column selects the day of the itinerary and another column is a Playa field that relates to entries in a variety of other channels. The image in the related field is an Assets field.

I've got everything to display OK how I want it which is similar to this:

Day 1
- Title / image
- Title / image
- Title / image
Day 2
- Title / image
- Title / image

but the way I have it at the moment adds about 100 queries and an extra second load time to the page.

So I'm after some advice on how to better optimise the below to reduce the queries.

Do I need to use the query module or can it all be done with Stash cacheing/nested lists?

{exp:stash:set_list
  name="days"
  parse_tags="yes"
  parse_depth="3"
  trim="yes"
  save="yes"
  refresh="1440"
  replace="no"
}
  {!-- Matrix --}
  {itinerary var_prefix="day"}

    {stash:number}{day:day}{/stash:number}

    {!-- Playa --}
    {day:place var_prefix="place"}

      {stash:place-title}{place:title}{/stash:place-title}

      {!-- This is ugly but it appears you can't do {channel_short_name}-images  --}
      {stash:place-image}
        {exp:switchee variable="{place:channel_short_name}" parse="inward"}
          {case value="place"}
            {place:place-images limit='1'}
              {!-- Snippet to output thumb with CE Image --}
            {/place:place-images}
          {/case}
          {case value="departure"}
            {place:departure-images limit='1'}
              {!-- Snippet to output thumb with CE Image --}
            {/place:departure-images}
          {/case}
        {/exp:switchee}
      {/stash:place-image}

      {/day:place}

  {/itinerary}
{/exp:stash:set_list}

{!-- Output – loop through days 1-30 and output matrix rows whose day equals the current count --}

{exp:low_list:each
  items="1|30"
  range="yes"
  parse="inward"
}

{exp:stash:get_list
  name="days"
  match="#^{val}$#"
  against="number"
  prefix="list"
}

  {list:place-title}
  {list:place-image}

{/exp:stash:get_list}
{/exp:low_list:each}


texts: Do you think EE is appropriate for a membership-based website with some more advanced functionality?

texts:
We're working with a prospect who is a non-profit membership based organization. They have a website that they mainly use for:

Event listings and registrations (payments processed for events with different prices for different membership types)
Business listing management (adding, editing, deleting, moderation)
Membership management. Members are organizations with multiple employees. Memberships grant these organizations a certain number of seats at each event for no charge (included in their membership fee). Admins need ability to log payments for members and see which members are coming-due or past-due.
Email newsletters and event invitations to member employees and previous event attendees

My questions are: Are there any add-ons we can take advantage of that would provide this functionality? If not, is there any other solution you know of that could provide this functionality that we could custom-integrate with EE?


texts: Cloned ee2 site not working due to "undefined variable: templateGroup"

texts:
This is an EE2 site that I have cloned from production. I've copied all files and cloned the backing database. I'm able to enter the control panel and most things appear to be working.
However, when I attempt to load a page that relies on templates I get the "undefined variable: templateGroup".
These files exists in the same path and show up in the Template Manager. I've not been able to find anything in the configuration that I can change to fix this.
The only other reference I found to this bug, is when upgrading EE2, but I'm not upgrading -- just cloning the site.
Any help would be appreciated.


texts: Hello—the dropdown accordion feature on this linked landing page on our site is not working. When you click the dropdown button, the accordion feature only stays open for a split second. This is a new glitch! Does anyone have any feedback on what may be causing this issue and how we may troubleshoot it? Thanks!


texts: Is there native OEmbed support (or a plugin that adds support)?

texts: Is there a plugin available that adds support for oembed http://oembed.com/ to expression engine?


texts: Using categories tag pair with related categories mode

texts:
I'm having issues trying to display a category name when using the related categories option. Two snippets below:

{exp:channel:entries channel="blog" limit="4" related_categories_mode="yes" custom_fields="yes"}

And inside of the above:

{categories limit="1" show="not 1"}{category_name}{/categories}

When I remove related_categories_mode the categories will display fine, but it's unfortunately necessary for this situation.


texts: Anyone with PHP skills interested in updating an add-on for EE 5?

texts:
Obscure, (see files on GitHub), encodes all content between the tags {exp:obscure}{/exp:obscure} similar to the way the {encode} tag for email works in ExpressionEngine. Add-on provides additional flexibility by allowing you to include other elements or images within the tag. For example:

  {exp:obscure}

   {/exp:obscure}

Currently this add-on only works in EE version 2 & 3. ☹

Are there any PHP-savvy folks out there interested in updating this code so it works in ExpressionEngine 5?


texts:
I work with channel images and my remote location is amazon S3. as our content theam is creating galleries on live site, I would like to create these galleries also on development. is there any simple solution to create a gallery with images already uploaded on S3?

otherwise I have to upload images on development again and a new gallery is created in my remote, which is not needed.


texts: SafeCracker, guests, and can_edit_other_entries

texts:
I have a SafeCracker form that will allow users to enter data about a trip. Users will not necessarily be logged in when submitting the form. For that I have set up a "Guest Posters" member group. That group contains a single "Guest Poster" user. That user's member_id is used for the logged_out_member_id parameter in SafeCracker.

That part all works fine.

Things fall apart when a user wants to edit a form submitted by somebody else. This can happen if, for example, an admin starts the form for a user and then hands it off to the user to complete the rest. In that scenario, if the user submits the form he sees the error: "You are not authorized to perform this action".

The error message originates because can_edit_other_entries ("Can edit entries authored by others" in the control panel) is set to 'n' for logged out users. But since I have that value set to 'y' for the "Guest Posters" group, I would expect the form submission to succeed.

I've stared at this for too long. At this point I figure there are two possibilities: either the solution is obvious and Friday fatigue has blinded me; or this is a bug in EE.

Any suggestions?


texts:
What would be the best way to create multiple entries?

In short: I'm working on a website where an entry always contains 1 image. No more, no less. An entry without an image can't be published. All entries have exactly one image.

The (html5) input tag. I can create a (channel) form where a user is able to upload multiple images via drag and drop or via

<input type="file" multiple>

I would like to create a new entry for each file. What would be the best way to create multiple entries?

Can I send the files somewhere (AJAX) and create a new entry based on the file?


texts: Showing Expired Entries Only. Not working

texts:
I want to show previous concerts (past concerts) under a special tab. I only want to show past concerts, not current or upcoming concerts that is under a different tab. I tried the following code. Using EE 2.x

 {exp:channel:entries channel="concerts" sort="desc" limit="20" show_expired="yes" }

  {if expiration_date < current_time}

  {concert-info}

  {/if}

  {/exp:channel:entries}

This does not work it shows both upcoming concerts and past concerts. I double checked and the past concerts have an expired dates and they have expired.


texts: Expresso Store - Why is there no action="" attribute tag?

texts:
When Store generates a form from a tag such as:

{exp:store:product entry_id="{entry_id}"}

This outputs the below:

<form method="post" id="" name="" class="store_product_form">
<div style="margin:0;padding:0;display:inline;">
<input type="hidden" name="return_url" value="products">
<input type="hidden" name="entry_id" value="45">
<input type="hidden" name="ACT" value="88">
<input type="hidden" name="RET" value="products">
<input type="hidden" name="site_id" value="1">
<input type="hidden" name="_params" value="Uy1bcQE4CWMFIFZ9AXhQDgsxU2cBLgAyBSYDZgA1UCcJfFUhUjYHOgVjDHZdeAF1UndXa105AlwLKAc2DHNVPFQ4U3FWdFI9D2cFLg==">
<input type="hidden" name="XID" value="6642e568194f9a1872e398f2739ce8aa591a6436">
</div>
</form>

Why is there no action="" set on this form? It appears to be using the ACT to submit to the index.php but if that isn't set in the config it falls over.

Is this an expression engine philosophy or just store?

I also wanted to know what the logic/thought behind this decision and if it's able to be modified?


texts: PHP Error when trying to assign a product channel in Cartthrob

texts:
Whenever I attempt to visit the Addons > Modules > Cartthrob > Products page after installing CT, I receive the following PHP errors: (http://cl.ly/image/2H0t162L2A2c).

A PHP Error was encountered
Severity: Notice
Message: Undefined variable: channel_dd
Filename: views/product_channels.php
Line Number: 206

And

A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: helpers/form_helper.php
Line Number: 324

This only happens when the default product channel doesn't exist. After creating the default channel I'm able to assign a new, custom product channel and delete the default.

I'm running EE 2.8.1 and CT 2.5.

Is this a known bug in Cartthrob, and is there a way to assign a product channel without first creating the default products channel?


texts:
I copied an online example exactly, named it appropriately, placed it in the plugin folder, and (I think) changed the location attribute to match the other plugins in my plugin folder. The code is below.

File Name: pi.auto_acronym.php

<?php
    $plugin_info       = array(
    'pi_name'        => 'Auto Acronym',
    'pi_version'     => '1.0',
    'pi_author'      => 'John G',
    'pi_author_url'  => 'http://google.com',
    'pi_description' => 'Automatically wraps certain acronyms in the HTML <acronym> tag',
    'pi_usage'       => Auto_acronym::usage()
    );

class Auto_acronym{
    function Auto_acronym(){
    }
    // ----------------------------------------
    //  Plugin Usage
    // ----------------------------------------
    function usage()  {
        ob_start();
        ?>
        This is where our simplified documentation will go
        <?php
        $buffer = ob_get_contents();
        ob_end_clean();
        return $buffer;
    }
}
/* End of file pi.auto_acronym.php */
/* Location: ./system/expressionengine/plugins/pi.auto_acronym.php */

This file is indeed placed in my .\PROJECT_NAME\system\expressionengine\plugins folder. There are other plugins in the folder that came with the install.

Edit: I just noticed that there is a missing '?>' at the end of the plugin. I tried completing the block, but it still didn't work. I checked the other plugins, they too all have that missing closing php block. So that isn't the issue.

Edit 2: Based off Rob Sanchez's suggestion, which solved my issue. I moved my plugin to the third-party folder as follows.

File Name: pi.auto_acronym.php

<?php
    $plugin_info       = array(
    'pi_name'        => 'Auto Acronym',
    'pi_version'     => '1.0',
    'pi_author'      => 'John G',
    'pi_author_url'  => 'http://google.com',
    'pi_description' => 'Automatically wraps certain acronyms in the HTML <acronym> tag',
    'pi_usage'       => Auto_acronym::usage()
    );

class Auto_acronym{
    function Auto_acronym(){
    }
    // ----------------------------------------
    //  Plugin Usage
    // ----------------------------------------
    function usage()  {
        ob_start();
        ?>
        This is where our simplified documentation will go
        <?php
        $buffer = ob_get_contents();
        ob_end_clean();
        return $buffer;
    }
}
/* End of file pi.auto_acronym.php */
/* Location: ./system/expressionengine/third_party/auto_acronym/pi.auto_acronym.php */

The above file is placed in the ./PROJECT_NAME/system/expressionengine/third_party/auto_acronym/ folder.


texts: .htaccess remove index.php sort of works, but not the first time after browser cache is cleared

texts:
I don't know if this is a new thing or if it's been an issue all along, but the client just noticed and i recreated the issue myself. If I clear my browser cache and then visit my client's site at a URL like http://www.example.com/product/product1 it will redirect to http://www.example.com/index.php/product/product1. The page looks fine. After refreshing or visiting that URL again the URL will pull up correctly at http://www.example.com/product/product1. If I clear my browser cache again it will redirect to the index.php url again.

Here's my .htaccess file, any ideas why this might be happening? Thanks for any ideas!

RewriteEngine On

RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

RewriteCond $1 !(^index\.php|(\.(gif|jpe?g|png|css|js)))$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]

Redirect 301 /helpdesk http://helpdesk.example.com
Redirect 301 /splash http://example.com
Redirect 301 /webmail http://mail.example.com:32000
Redirect 301 /email http://mail.example.com:32000
Redirect 301 /timeclock http://timeclock.example.com:62345
Redirect 301 /signature http://signature.example.com

EDIT: I modified my .htaccess file to the recommended one from EllisLab and that seems to have fixed the index.php from showing up. Something is still a little wonky though. When I clear the browser cache and visit a url with a hash tag at the end (http://www.example.com/product/product1#tab3), the redirect removes the hash tag and the rest of the url after it. If I refresh the page it will work as expected. it only has issues with the first time visiting the url after a clean browser cache. Any ideas?

    RewriteEngine On
    RewriteBase /

    # Removes index.php from ExpressionEngine URLs
    RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
    RewriteCond %{REQUEST_URI} !/system/.* [NC]
    RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]

    # Directs all EE web requests through the site index file
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php/$1 [L]


texts:
I think my question is very easy, but I can't find out how. I have changed the default language under Admin > General Configuration to "Dutch". But the e-mail that are send when a user registers or does a password recovery are all in English. The Dutch file email_date.php does contain the translation but this English is send.

How do I fix this? Of do I need to change another language setting?


texts: DevDemon Subscriptions Not Renewing Automatically - All are "Skipped"

texts:
When my first group of subscribers came up for renewal, all of them slipped into Past Due status.

Nothing was in the Subscription event log to indicate anything had happened.
Stripe had no record of attempted payments.

On the advice of DevDemon I manually backdated the "next retry" date on one of the subscriptions (in the database), then manually visited the Subscriptions CRON url in my browser.

The process ran, and behold, the renewal process worked. So I repeated this process for all the other past_due subscriptions.

But the next day, more of them had failed to renew. So I started the process over again. And once again, when I triggered the update via the web, it worked fine.

Why would CRON based updates fail, but when I trigger it via the web, everything works?


texts:
I'm currently running ExpressionEngine v2.10.1. Two plugins currently throw the same error. Seems like something has been depreciated / is broken. The two plugins are:

Campaigner 4.5.0
Charge 1.9.2

Fatal error: Call to undefined method EE_Javascript::generate_json() in /system/expressionengine/third_party/campaigner/ext.campaigner.php on line 706

Any suggestions would be welcome.


texts: Setting up recipients and dates to be sent in Postmaster Module

texts:
I am trying to configure a parcel to be sent out once everyday, i have "+1 day" in the field, but it is not sending at all, as for the recipients section i have the tag {member:screen_name} for "from" and {member:email} for the "to" this is just temporary so I can test to see if it works properly.

Any Help would be great!


texts: Outputting Exp-resso Store modifier-options without form-tag

texts:
I'm building an XML-feed for publishing my client's products to a third party, and I need to output a list of modifier-options sans the form-tag. I would imagine this to work something along these lines:

{product_store_variations:modifier_options backspace='1'}
    {option_name}
{/product_store_variations:modifier_options}

This doesn't output anything though. Any thoughts?


texts: Using Playa to display fixed and then random entries

texts:
I'm using Playa to display entries in a "Featured Stories" list.  Let's say I have ten stories selected in the Playa.  I'd like to be able to control the first three featured stories in the order they appear in Playa but the other seven should come next in random order.

Is this possible in one loop?  Something like:

{playa-featured-stories}

  {stuff}

 {if "{count}" > "3" sort="random"}

  {stuff}

 {/if}

{/playa-featured-stories}

which obviously doesn't work

I suppose I could use two loops and target entries 1-3 and 4-10 separately but feel like there is a cleaner solution that I am missing?


texts:
We have an EE2 on which there is a lot of content, there are several thousand entries, and within the entires each body field has 500+ words.

We are using Solspace Super Search, and results take 5+ minutes to render, I have looked in the documentation but I couldn't find any optimisation options, the only thing I could find in the 'Preferences' is the caching, which I have set up.

I've also added a from date, this helps immensely but obviously filters out older results.

Is there anything else I can do to optimise searching, placing indexes on tables etc, or limiting results by relevance?


texts: Template partials within a template partial (is that OK?)

texts:
I have a template partial within another template partial. And that seems to work.

Is this a coincidence or correctly so?

If it is correct, where to stop with such a nesting? A partial that has a partial in a partial?

Thanks for some clarification.


texts: Displaying entries listed within a category, strange!

texts:
I have a strange issue, that I am hoping is something simple, and I'm just missing it.

I have two channels, that have different sets of categories.

In my first channel, I display what child cat it is in via GWcode categories.

{exp:gwcode_categories style="linear" last_only="yes" channel="walks" entry_id="{entry_id}"}

 {cat_name}

{/exp:gwcode_categories}

This gives me the Url of domain.com/walks/category/categoryname

Then I have a template via Switchee, that displays these entries in this category. It uses segment 2 as the case value {category) and then displays the following channel entries tag.

{exp:channel:entries channel="walks" status="open|new" disable="member_data|category_fields" show_expired="yes" paginate="bottom" limit="10"}

{lv_walkdetails_main}
{lv_pagination}

{if switchee_no_results}

Sorry, no results!

{/if}

{/exp:channel:entries}

Now, as I said this displays all the entries that are listed within that category, however when I perform nearly exactly the same thing on another channel, "news", it displays every single entry, regardless as to whats in the URL.

Am I doing something wrong here? Whats the preferred way to showing a list of entries that belong to a certain child category?


texts: Extend 48 hour time limit for new member activation codes

texts:
I have had a client complain after receiving "several emails a month" from new members getting the "invalid activation request" error after clicking the link in their activation email after signing up.

I think this is because they've left it longer than the 48 hours default time limit that each activation code is valid for.

Is there a straightforward way to increase this time limit?

Thanks.


texts:
I am trying to display only the products that are on sale using the following code but instead of only displaying the one product I have on sale, it is displaying all my products. Please can someone tell me what is wrong with my code.

I am testing using Expression Engine 2.7.1 and Expresso Store 2.0.6

{exp:store:search channel="products" search:on_sale="yes" }

        {title}

{/exp:store:search}


texts: Add item to main menu (nav-main-author) in CP

texts:
Using Expressionengine 3.5.11

I would like to add another item alongside:

'Create'
'Edit'
'Files'
'Members'

in the Admin control panel for for creating Pages.

I found instructions for adding a custom dropdown menu but that's not what I want. According to Ellis Labs docs Pages should have been added to the Create menu when I installed it, but it wasn't.

Will I have to do this by hacking the template?


texts: Blank / white page while there is an additional segment in the URL

texts:
I am using freemember to customize the password change process of EE. It allow to change the default page used for resetting the password. This page is accessed by a link provided in a mail send to the user. This link is formatted as following.

site/template_group/my_reset_password_page/reset_token

The reset token look like this one : exldroeqlik4

I can access my custom reset page flawlessly if I don't add the reset token, so if the URL is the following : site/template_group/my_reset_password_page

Unfortunately, I can't access the page with the reset token. I am just stock in front of a white page.

From this doc, I understand that these kind of URL are suppose to point to a specific entry. Here the entry channel is specified by the template_group segment of the URL and the entry is specified by the last segment.

In my case, the template_group segment does not refer to a channel.

What I am understanding is that since there is no channel EE can't find an entry and just show a white page.

Am I wrong?

How can I resolve this?

I am using :

EE v2.6.1
Freemember v2.3.2

Edit 1 :

I don't think this will help a lot since the problem is on every page, but here is the code of my template.

Reset password

            {exp:freemember:reset_password

            error_handling="inline"
            error_delimiters="|"

            reset_code="{segment_2}"
            }

            <input type="password" name="password" placeholder="New password" value="">
            {error:password}

            <input type="password" name="password_confirm" placeholder="Confirmation password" value="">
            {error:password_confirm}

            <input type="submit" value="Change">

            {/exp:freemember:reset_password}


texts: Prevent Users from Switching Sites in CP with Multi Site Manager

texts:
Does anyone know if it is possible to hide the 'Switch sites' links in the CP for certain member groups?

Thanks.


texts: Solspace Calendar; list events by day but suppress output of days with no events

texts:
I have a client with an older EE (2.1.1) running Calendar 1.5.3.

They want an event list by day that doesn't display days with no events. I'm using this code at present:

{exp:calendar:cal date_range_start="today" show_days="30" pad_short_weeks="n"}
 {display_each_day}

{day format="%l, %F %j"}

   {if day_event_total == 0}
No Events
{/if}
    {events}

{event_title} {event_start_date format="%g:%i %a"} - {event_end_date format="%g:%i%a"}

    {/events}

 {/display_each_day}
{/exp:calendar:cal}

Which essentially works aside from the fact that of course all days with no events display with the message. They're reasoning that there's no need to show a day if there's no event. Is there a way to do this?

MANY thanks in advance!


texts:
It is possible to paginate the categories??

Inside the site project there is a lot of categories, and i would paginate them. But i don't know if it's possible or not to paginate a categories list.

Thanks,

Stéphane


texts: ExpressionEngine 1.7 user & group permissions setting

texts: Does EE 1.7 have a setting where I can have an arthor and editor? I would like to set roles where an author submits a blog post and an editor gets an email confirmation to edit and publish. Is that possible or is there a plugin I can utilize?


texts: Redirect url from /blog/singlepage/entry_id to /blog/singlepage/url-title

texts:
I have two types of urls for each posting on my EE5-installation, namely
www.xy.com/blog/singlepage/url_title

www.xy.com/blog/singlepage/entry_id

The reason for this doubling lies back in ancient times, I want to remove this.
Is it possible to somehow redirect all
www.xy.com/blog/singlepage/entry_id

to
www.xy.com/blog/singlepage/url_title

?
Another one had the problem other way round, but I am not sure if the answer to his question is fitting my needs. Another idea would be to use the addon Detour, but I am not sure if this could do the trick. Also I would prefer to do it without a plugin if possible.
I would appreciate help very much, thanks!


texts:
I'm getting the following fatal error when trying to load EE 2.11.2 with ChannelImages 5.4.19 under PHP 7/7.1:

  Fatal error: 'continue' not in the 'loop' or 'switch' context in /home/omart/public_html/system/expressionengine/third_party/channel_images/libraries/image_helper.php on line 913

Here is the code snippet in question. Line is 913 is the last if statement:

//----------------------------------------
        // Channel?
        //----------------------------------------
        if (strpos($param_channel, '|') !== FALSE)
        {
            $channel_id = array();
            $temp = explode('|', $param_channel);

            foreach($temp as $item)
            {
                if (isset($channels[$item]) == FALSE) continue;
                $channel_id[] = $channels[$item];
            }

            return $channel_id;
        }
        else
        {
            if (isset($channels[$param_channel]) == FALSE) continue;
            else return $channels[$param_channel];
        }


texts:
It was my understanding that Stash embeds are cached by default. I'm working on an ecommerce site where all template groups have EE templates similar to:

{stash:embed
    name="file"
    context="@URI"
    file_name="views:file"
    process="static"
}

(I've got process=static in there but I've also got static cacheing turned off in my config for now. Will be looking at that part of things later.)

Each view file then contains code that looks like:

{stash:embed name="layouts:global"}
{exp:stash:set name="st_content"}Page content goes here{/exp:stash:set}

So I thought that I would need to escape the add to cart part of my product detail page with {stash:nocache}. But when I add that tag to my page, my form disappears and instead I get [_Stash_1].

If I remove the {stash:nocache} tags, the page appears as intended and then if I add products to the cart (which is also set up the same way and currently doesn't have any nocache tags in it), items get added to the cart successfully.

So my question is, am I misunderstanding how cacheing works with Stash or am I doing something else wrong and will I get tripped up somewhere if I didn't correct the cacheing set-up now?


texts: Assets v2.4 producing error when saving an entry after upgrade from EE v2.4 to EE v2.9

texts:
I've recently performed an update of both Assets (v1.x to v2.4) and EE (v2.4 to v2.9) and now I'm seeing the following error/s when I try to save an entry in the EE control panel.

A PHP Error was encountered
Severity: Notice
Message: Undefined index: entry_id
Filename: assets/ft.assets.php
Line Number: 2214

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /path/to/system/codeigniter/system/core/Exceptions.php:170)
Filename: core/EE_Input.php
Line Number: 212

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /path/to/system/codeigniter/system/core/Exceptions.php:170)
Filename: libraries/Functions.php
Line Number: 447

This error appears to relate to the recent function added to Assets v2.4 to support adding data into third party search indexes.

Would really appreciate some quick help from Pixel and Tonic for this.

Thanks
Brendan


texts: Using Solspace's Importer, how to update Structure-managed listings?

texts: I have been trying to import 3k+ entries using the Solspace Importer, and each entry is being imported into a channel managed by Structure as listings. When I try to manually edit one of these imported entries, the Structure URL field is blank until I save it. Is there a way to have the Structure URL updated for all these entries without having to manually save each one?


texts: Avoiding syntax errors with PHP and strings with quotation marks

texts:
What is the best practice for manipulating strings with PHP (output mode) that might contain straight quote marks (single or double)? I'm not totally clear how EE stores and outputs these normally, and so I've run into PHP parse errors in certain situations.

Is the only reliable method to use {exp:xml_encode}? For example:

$excerpt = '{exp:xml_encode}{post_excerpt}{/exp:xml_encode}';

...and are those single quotes above around the EE code better than using double quotes?

EE's implementation of {exp:xml_encode} incorporates the PHP strip_tags() function, so this is not always ideal (e.g the excerpt above might have a phrase wrapped in <strong> tags. But at the same time, it seems there's no other way to store and manipulate the field content in PHP if it contains single or double quotes.


texts:
Context: In this situation, I cannot use the template tag {exp:member:login_form}.

I'm trying to parse the information sent via POST to login a member to the site.

$this->EE =& get_instance();
$this->EE->load->library('session');
$this->EE->load->library('auth');

$return = "..."; // This variable is set somewhere else and is not an issue

// DEBUG A: print_r($this->EE->session->userdata);

if(!!$this->EE->session->userdata["username"]) {

    // Member is already logged in
    $this->EE->functions->redirect($return);

} else {

    // Member is trying to log in
    $username = $this->input->post("username", true);
    $password = $this->input->post("password", true);

    $session = $this->EE->auth->authenticate_username($username, $password);

    if(!$session){

        // Error handling here

    } else {

        // Member authenticated. Redirects.
        $session->start_session();
        $session->remember_me();

        // DEBUG B: print_r($this->EE->session->userdata);

        $this->functions->redirect($return);

    }
}

I confirm that a session is created in the database when $session->start_session() is called. Cookies are also present in the browser.

If I uncomment DEBUG B, I can see that the $this->EE->session->userdata array is filled with correct info. If I uncomment DEBUG A and revisit the page, $this->EE->session->userdata does not recognized the user I'm logged as. It seems the session does not persists. What am I doing wrong here?


texts: In Cartthrob, how could one stop a discount being applied with any other coupon?

texts:
We created a custom Cartthrob plugin which applies a 10% discount to items in the cart if purchased before a certain date, which works fine.

But we also have a coupon code to give 10% off.

Coupons and discounts are "not to be used with with any other offer". It means if someone enters the coupon code, the our custom discount should not be applied.

I can't find any help on this and wondered if anyone has a suggestion/solution?

Thanks


texts: Output entry info for multiple channels in category loop

texts:
How can I output the entry_ids for multiple channels within a category loop organized by channel?

I have 3 channels that share a category group so I need to loop through the categories and list out all entry ids but organized by their channel.

The info needs to be like so:

category 1 title
  - channel 1 (entry id 1, entry id 2, etc)
  - channel 2 (entry id 1, entry id 2, etc)
  - channel 3 (entry id 1, entry id 2, etc)

category 2 title
  - channel 1 (entry id 1, entry id 2, etc)
  - channel 2 (entry id 1, entry id 2, etc)
  - channel 3 (entry id 1, entry id 2, etc)

Hope that makes sense.

Any help is appreciated.


texts:
What is the best directory structure to adopt when setting up a website based on this url structure:

www.example.com - home page
subdomain1.example.com
subdomain2.example.com
subdomain3.example.com

I am told this is difficult to setup with expressionengine out of the box and needs some fancy .htaccess code to rewrite urls e.t.c.  If i didn't want to go that route, what are my options?

is this easier if each subdomain had its own ee install? Do i need to use some sort of CNAME mapping?  ideally, I'd like all sub pages under each subdomain to correctly show the url structure i.e "subdomain1.example.com/page1"  vs  "www.example.com/subdomain/page1"

Thx


texts: Member Field Mapping in Cartthrob and Profile Edit

texts:
I am having problems mapping member data fields with the Cartthrob / ProfileEdit combo. As I understood it with both of these modules installed I should be able to go to the 'Members' tab in CT and map the fields to the relevant fields in my chosen  profile channel.

I am sure in the past this is exactly what I have done, however now when I go to the 'Members' tab and click on the Member Custom Fields drop downs to map the fields their are no options available.

Have I just imagined this or is that how it is supposed to work.. going a little crazy!

Cartthrob 2.4
ProfileEdit 1.1.7
ExpressionEngine 2.7.2

Edit:

I have just tested this by installing some old versions:

EE 2.5.3
CT 2.2.7
P:E 1.1.7

The CT member fields can be mapped to P:E, but as soon as I upgrade CT to:

EE 2.5.3
CT 2.3.9.1
P:E 1.1.7

CT's member fields cannot be mapped to P:E. So it seems somewhere between CT 2.2.7 and 2.3.9.1 it lost the ability to map. Is anyone else experiencing this?


texts: Bypassing Shipping Options for FREE shipping

texts:
I asked this question previously and am still having trouble.  I want to bypass shipping options for items with free shipping.

I added this code to the shipping options page:

 {if order_shipping_val == 0}
    {redirect="Store/Confirm-Order"}
{/if}

Unfortunately it redirects for all items including ones that should have paid shipping.  Any ideas?


texts: My Assets plugin is not working on EE 2.4.  It continually loads.  Also when I try to add an asset when adding an entry, nothing comes up when I click "Add File".    I have Super Admin access and when I click "Settings" I just get a blank field for "License Key"


texts: The system does not appear to have created a CP menu option to get to the store.  Currently I am having to go through Developer, Add ons, Store to see the store dashboard.  Is there a way I can create this button manually?


texts:
I am new to expression engine and following the tutorial on creating a module here:
http://ellislab.com/expressionengine/user-guide/development/module_tutorial.html

issue is, there is that

  tools_model::get_files()

is no longer valid in EE 2.6. How do I get the files list in the 2.6 version?

Thanks,
Bharath


texts:
I have uploaded a site into a sub folder onto my server and when I try to login into the admin area, it allows me to login, however when I go to click on any link, it redirects/loops me, logging me out and taking me back to the admin login page.

Site was working fine locally and the previous SQL which is live (redesigning the site) also allows me to login fine without this redirect problem.

Could it be anything to do with the fact it is in a folder on the server E.G.

httpdocs/new/...

I also thought it might be the .htaccess file throwing it off, maybe with the www. redirect and removing the index.php, but when the problem keeps arising with and without a .htaccess file.

Any ideas?


texts:
Ok, I have the following:

the edit_date is stored in the exp_channel_titles table in the edit_date field by default.

This is the value 20130320100306 (20/03/2013 10:03:06)

I tested the following tags within a ZooVisitor update form

{edit_date}

output: 08-01-1970

{edit_date format="%d-%m-%Y"}

output: 639874-06-14 00:25

{exp:low_nice_date date="{edit_date}" format="%d-%m-%Y"}

output: 14-06-1974

Running EE v2.5.3 - Build Date: 20120911

kind regards,
Vic


texts:
I'm getting the following error when trying to upload images on all of the upload directories. The directories are set to 777.

"Thumbnail could not be created for the image. Please make sure the thumbnail directory is writable."

If I create a new upload directory I get the same error but it's able to create the _thumbs folder.


texts: S=5eb7474c89555... in URL? What is it? How do I get rid of it?

texts:
I setup the links in my header navigation using {path='site'}, {path='about'}, etc. When I view the rendered pages, the links have an extra parameter S=.

Examples:

http://example.com/index.php/S=5eb7474c89555bd5d9e41ec21a99566906803a2d/
http://example.com/index.php/S=5eb7474c89555bd5d9e41ec21a99566906803a2d/site/about

What is the S parameter and how do I get rid of it?

I thought perhaps it was session variable or something, but I can't seem to find any information about it in the user docs.

Any assistance is appreciated.


texts: Uninstall Module via Database Query EE1-EE2 upgrade

texts:
I'm in the middle of a very very complex EE1-EE2 upgrade and found that I made a mistake and did not uninstall LG Polls before doing the upgrade and am now getting the following error on front end pages

I've commented out template code that references lg polls and also changed the lg polls fieldtype to a text input but the error persists. I'd really rather not have to rollback and do the upgrade again.

Is it possible to uninstall the module using something like Navicat and have these errors disappear?


texts: WYGWAM Hangs (504 Gateway Time-out) when adding apostrophe

texts:
I have a Channel Form on the frontend that contains a WYGWAM field. The field works fine unless I add an apostrophe.

If I do, after hitting submit, it hangs and I get a "504 Gateway Time-out" error.

I can add other symbols like quotes, dashes, question marks, etc. without issue. Clicking the WYGWAM source button, I see it is displaying correctly &#39;. I am using the basic {field:event_description} code, nothing special.

Other fields in the form (not WYGWAM) work fine and I can add apostrophes to those fields without errors. The issue is also only on the front end and not in the control panel where I can add apostrophes there.

I am using EE 2.7.3 and WYGWAM 3.2.2


texts:
I have a Matrix field (parent) in a channel set to have exactly 4 rows. The rows feature a Playa drop-down. These will serve as promotional tiles in the page templates to cross-promote other pages in the site

In the templates I must always display 4 tiles so need to write a fallback so if only 3 are selected then 1 extra random tile is shown, if only 2 are selected then 2 extra random tiles are shown, etc.

I've got this working fine using the Search parameter, eg:

{parent search:child="not IS_EMPTY"}
    DO THIS
{/parent}

However, the problem I'm experiencing is what to do if no options are selected (i.e. all Playa fields/rows are empty). Ideally would be able to do an {if no_results} conditional but can't access from within the {parent} loop and because using search cannot access via a {if parent:total_rows==0} conditional.

Any thoughts?


texts: How do I add jquery animation to the pagination in Matrix? I got help from P&T Support and they showed me how to add pagination to Matrix in Expression Engine. I was wondering how to add jquery animation/fade/slide to the Matrix row changes?


texts: Safecracker Registration, Zoo Visitor, Profile:Edit - not Matrix compatible?

texts:
I'm looking into developing a membership site using Membrr (http://www.membrr.com). The member details I want to store require line item entries, such as:

1 hour, Web Development, $100
1 hour, Web Design, $125

In order to support line item entries, I think I need to get Matrix.

Now, in order for my member fields to use Channels, I think I need to use Safecracker Registration, Zoo Visitor or Profile:Edit. However, none of them are listed as "Matrix compatible" on Devot-ee site.

Am I on the wrong path? Is what I'm wanting to do impossible?

Also, any suggestions to do membership other than using Membrr? The addon is a bit expensive.


texts: EE custom function to return State Name rather than abbreviation

texts:
I have a channel for communities that stores community_name as the 2 letter abbreviation since it is part of the mailing address.

I am trying to build a filtered search but want to display the complete state name rather than its abbreviation.

Where in EE do you put helper functions? In CI, I would just add a file in the system/helpers folder that would hold all of my sitewide functions ( like formatPhone ).

Once I know where to place this very simple function, I also need to know how to display it. Right now I am using {community_state} but that would, of course, be the abbreviation.

Thanks in advance,
Jon


texts: When viewing entries in CP, can I view custom fields?

texts: I'd like to show custom fields--more than just defaults (ID/Title/Date/Status). Anyone know of a way to do this? Using EE 3.4.0


texts: How to 'embed' a template from within a plugin

texts:
In a plugin is it possible to output the equivalent of {embed="my_template"} if a certain condition is met?

My site index file is as follows at the moment, with php enabled and set to input:

<?php
// Define segment one variable
$seg1 = $this->EE->uri->segment(1);

// If this is the homepage, embed the homepage template
if($seg1 == "") { ?>{embed="embeds/homepage"}<?php
    } else {

    // IF NOT HOMEPAGE, DO THIS...
    if(substr($seg1, 0, 11) == "property-in") // if first 11 characters = 'property-in'
    {
        ?>{embed="embeds/property-in-town" url_title="<?php $seg1;?>"}<?php
    } else {
        ?>{embed="embeds/town-property" url_title="<?php $seg1;?>"}<?php
    }
}

So what I'd like to do is move this to a plugin and avoid having php turned on.

Cheers

Jim


texts:
What's the difference between "templates" (default location system/expressionengine/templates/default_site/) and "themes" (default location themes/)?

I'm curious particularly for a single site setup.

I want to manage my templates as files (for my editor + git) and by default it set me up with the templates folder, but it looks like the themes folder which came with a nice site_themes/agile_records example is the same thing? Should I point my Template File Directory setting to themes/?


texts: Problem with injecting stash pipe separated entry_ids into channel entries loop when no results

texts:
I've came across a problem today where I wanted to 'inject' a stash pipe separated list of entry_ids into the entry_id parameter of a channel entries loop.

The problem wasn't to do with stash as such. I'd got my parse order correct, and stash was doing it's job as expected. The problem was that when my stash variable didn't contain any entry_ids, the channel_entries loop just output the latest entries in that channel rather than output nothing.

Here's my initial code that didn't do what I wanted:

{exp:stash:set name="recently_viewed_ids" output="no" parse_tags="yes" trim="yes"}
{exp:channel:entries channel="properties" disable="categories|member_data|pagination|trackbacks" dynamic="no" backspace="1"}{entry_id}|{/exp:channel:entries}
{/exp:stash:set}

and the channel entries loop that used the stash variable:

{exp:channel:entries
    channel="properties"
    entry_id="{exp:stash:get name='recently_viewed_ids'}"
    limit="4"
    disable="categories|member_data|pagination|trackbacks"
    parse="inward"
}
{!-- display custom fields here --}
{/exp:channel:entries}

So even if recently_viewed_ids was empty, EE returned the 4 latest entries in the channel, rather than nothing.

So what's the way around this?

Jim


texts:
I'm trying to use the following conditionals in exp:stash:parse to set some values based on the category_id. However, I just can't get it to work and it always just gold for channel_colour or 20 for channel_category_group:

{exp:stash:set_list name="landing-{segment_1}" parse_tags="yes" parse_conditionals="yes" parse_depth="3" save="yes" refresh="60" scope="site" replace="yes"}
    {exp:channel:entries
        channel="landing_page"
        disable="{global:channel_disable_basic}"
        status="open"
        limit="1"
    }
        {exp:stash:parse process="inline" parse_depth="2"}
        {categories limit="1" show_group="5"}
            {if category_id == "60"}
                {exp:stash:set_value name="channel_short_name" value="things-to-do"}
                {exp:stash:set_value name="channel_url" value="things-to-do"}
                {exp:stash:set_value name="channel_category_group" value="2"}
                {exp:stash:set_value name="channel_colour" value="blue"}
            {if:elseif category_id == "62"}
                {exp:stash:set_value name="channel_short_name" value="food-drink"}
                {exp:stash:set_value name="channel_url" value="food-drink"}
                {exp:stash:set_value name="channel_category_group" value="3"}
                {exp:stash:set_value name="channel_colour" value="red"}
            {if:elseif category_id == "61"}
                {exp:stash:set_value name="channel_short_name" value="stay"}
                {exp:stash:set_value name="channel_url" value="stay"}
                {exp:stash:set_value name="channel_category_group" value="4"}
                {exp:stash:set_value name="channel_colour" value="yellow"}
            {if:elseif category_id == "63"}
                {exp:stash:set_value name="channel_short_name" value="study"}
                {exp:stash:set_value name="channel_url" value="study"}
                {exp:stash:set_value name="channel_category_group" value="20"}
                {exp:stash:set_value name="channel_colour" value="green"}
            {if:else}
                {exp:stash:set_value name="channel_colour" value="gold"}
            {/if}
        {/categories}
        {/exp:stash:parse}
    {/exp:channel:entries}
{/exp:stash:set_list}

Wondered if someone can help figure out what's going on?

Thanks,


texts:
I'm really confused about this moblog feature. And I can't understand what the documentation tells me, I don't feel it distinguish how the moblog template should look like, and what the email template should look like. So basically, I'd like some info on how the Moblog Template in the Control Panel should look like, and how the email itself should look like, to correspond with the right fields.

I have these fields that I'd like to populate with the data from the email.

{moblog_image}, {moblog_photographer}, {moblog_latlng}, {moblog_facts}

My Moblog Template looks like this:

{field name="moblog_image" format="none"}
   {images}
      <img src="{file}" width="{width}" height="{height}" alt="pic" />
   {/images}
{/field}

{field name="moblog_photographer}" format="none"}{text}{/field}
{field name="moblog_latlng" format="none"}{text}{/field}
{field name="moblog_facts" format="none"}{text}{/field}

I'm really not sure if this is correct..
And below is how the email looks like:

{field:moblog_image}
image.png (image I paste in the email)
{/field:moblog_image}

{field:moblog_photographer}
John Appleseed
{/field:moblog_photographer}

{field:moblog_latlng}
3464,5896
{/field:moblog_latlng}

{field:moblog_facts}
Some facts
{/field:moblog_sekundaer}

Is this correct? What am I missing, because when I send this email and check the moblog, the entry contains basically the whole email, fields and all.


texts: Visitor (from DevDemon) - How to logout upon conditionals?

texts:
I'm using Visitor (for EE v3) and would like to know if there is a way to use the {exp:visitor:logout return="/mytemplategroup/mytemplate"} within conditionals?

Because the tag is triggered as soon as the template is parsed, it does not take into account the consitionals I've surrounded it with.

Thank you in advance for your help.


texts: Expresso store : add on, hook store_order_complete_end creates order id+1

texts:
Expression Engine 2.10.1 , Expresso Store 2.5.1

For enabling payment via Klarna we have used following Hook to create a custom add-on to handle order creation via API.

https://www.exp-resso.com/docs/extension_hooks.html
store_order_complete_end

The API connection is succesfull however after order completion we get some strange behavior:

An order ID is created, but after the hook is called the order ID get +1 on the order id (e.g original order 451 becomes order 452).


texts: Store: Hide modifiers section by default?

texts: Just a very minor question but is there a way to have the modifiers panel contracted by default? Shipping an advanced panels both seem to be hidden by default and I'd like to do the same to modifiers to make things as clutter free and simple to use from a system administrator's point of view (they seem to get overwhelmed when they see so many open fields all at once when they only need price and SKU.


texts: 'default_author' cannot be null' Error when saving channel settings

texts:
It is an upgraded site that runs now on EE 5.2.0 without major troubles.

Only when I save channel settings in the CP there is always this error message. Data is saved but this is the message:

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'default_author' cannot be null:
UPDATE `exp_channel_form_settings` SET `default_author` = NULL WHERE `channel_form_settings_id` = '1'

What do I need to do to get rid of it?


texts: How to build a "featured content" system?

texts:
I want to provide a way for content managers to easily select and unselect "Featured Content" (choosing from existing entries) on our EE site. This content would come from about four channels, all of which use the same field group.

The field group contains a "File" field which is used to add an image to the entry. Not all entries have an image, but only entries with images are eligible for "Featured Content."

Ideally, we'll also be able to set a minimum and maximum number of featured entries.

I thought about setting up a "Featured Content" channel, and adding a single "Featured Content" entry to it, using a multi-select Relationships field to add or remove featured entries. However, this does not limit entries to only those containing images, rendering the system cumbersome (as managers would have to check entries individually for images before featuring them) and prone to error (in case they don't do so carefully enough.) I'm willing to look into this further if anyone knows how to work around this limitation.

The second thought I had was to somehow use a Channel Form to do the job. The idea would be to use a Channel Entries tag to pull in recent entries that contain images, display enough information about them for managers to decide what to feature, and add a checkbox beside each one to feature or un-feature it. While this obviously addresses the "must contain image" requirement, I'm not sure how to handle almost anything else about the system. How would they actually be set as "Featured?" How could we enforce the minimum and maximum featured entries? Can a Channel Entries tag even be nested within a Channel Form? Etc.

We're also open to other possibilities not yet explored (including PHP in templates or even stepping outside of EE if necessary - although obviously not preferred.)

I'm working on this at the moment and will answer this question myself if I find a solution. Otherwise, I'd very much appreciate any other answers the community can provide!


texts:
I have a created a website using expression engine.  I would like to integrated search capability with it.

could some provide a sample code of how to integrate search and results in expression engine.  I tried to copy and paste the following from here but it doesn't show any results.:
http://ellislab.com/expressionengine/user-guide/modules/search/simple.html#par_result_page

    {exp:search:simple_form}

                    Search:

                    <input type="text" name="keywords" id="keywords" value="" size="18" maxlength="100">

                    Advanced Search

                    <input type="submit" value="submit" class="submit">

    {/exp:search:simple_form}


texts:
I would like to make sure an extension isn't run, via sessions_end hook, in the control panel.

I'm currently doing this like so:

if ($this->EE->input->get_post('D') == "cp")
{
    return FALSE;
}

My question: is there a better or prefered method of having an extension only run a hook on the frontend and not in the CP?


texts: How can I remove index.php from my URLs? Please provide rationale for why the specific method should be used.


texts:
I'm creating discounts in Expresso Store that use the "match entries field".

Is it possible to show the offer details on the single product view. Most likely from within a product tag?

It would be nice to be able to advertise the discount & offer. Such as buy 5 of these products, get 10% off.


texts: Status parameter in native EE Relationship field

texts:
I have a test tag where it's pulling data from a Native Relationship here:

http://staging.sewcratic.com/export/test

Here's the code under the "Data" header:

{exp:channel:entries channel="patterns" limit="1" status="Open|Closed"}

{title}

designer_label: {designer_label}{designer_label:entry_id}{/designer_label}

design_label2: {design_label2 status="Open|Closed|Draft|Edited|Proofread"}{design_label2:title}{/design_label2}

pattern_groups2: {pattern_groups2 backspace="1"}{pattern_groups2:entry_id},{/pattern_groups2}

pattern_company2: {pattern_company2}{pattern_company2:entry_id}{/pattern_company2}

{/exp:channel:entries}

The fields {designer_label} and {pattern_groups2} are pulling, while {design_label2} does not. I've added all statuses to the {design_label2} tag, but does not seem to be working. Am I missing something?


texts: 403 Forbidden error (unsafe operation) when updating template with script/meta/link tag 2.11.6

texts:
I have a pretty old site which I've just recently upgraded to 2.11.6.  Everything works well, except that I can't update templates (in the CP) if they contain <script>, <meta>, <link>, or <style> tags.  If I try, I get the error

403 Forbidden

A potentially unsafe operation has been detected in your request to this site.

Has anyone seen anything like this, or have an idea where I might check to solve this?

Edit/Additional information:  While looking into Derek's suggestion about mod_security, I remembered that I had set this site to use PHP7 as a test, and sure enough, when I set it back to 5.6, I can update templates fine.  So it's something to do with PHP7, but not sure what yet.