texts: Stash set_list/get_list only returning one entry

texts:
I'm using Stash to create an A-Z page, that will simply loop through each {title} from the Pages module, using the match/against regex as follows;

{exp:channel:entries channel="page" sort="asc" orderby="title" dynamic="no"}

    {exp:stash:set_list name="pages_a" parse_tags="yes" match="#^A#" against="{title}"}
        {stash:title_a}{title}{/stash:title_a}
        {stash:url_title_a}{url_title}{/stash:url_title_a}
    {/exp:stash:set_list}

    {exp:stash:set_list name="pages_b" parse_tags="yes" match="#^B#" against="{title}"}
        {stash:title_b}{title}{/stash:title_b}
        {stash:url_title_b}{url_title}{/stash:url_title_b}
    {/exp:stash:set_list}

    {exp:stash:set_list name="pages_c" parse_tags="yes" match="#^C#" against="{title}"}
        {stash:title_c}{title}{/stash:title_c}
        {stash:url_title_c}{url_title}{/stash:url_title_c}
    {/exp:stash:set_list}

{/exp:channel:entries}

A

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

&#8594; {title_a}

    {/exp:stash:get_list}

B

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

&#8594; {title_b}

    {/exp:stash:get_list}

C

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

&#8594; {title_c}

    {/exp:stash:get_list}

However, it is only returning one entry for each get_list/letter. I was wondering if anyone can spot something that I am missing?

Admittedly the code is a little more verbose than it perhaps needs to be.

Thanks.


texts:
Not sure really what type of issue this is, but I figure I'll ask here. I have a site that's running live on the server right now which has the following error:

A PHP Error was encountered
Severity: Notice
Message: unserialize(): Error at offset 0 of 326 bytes
Filename: drivers/Cache_file.php
Line Number: 74

This error does not happen locally, only live. The only difference I can see is that on the live server the templates are synched, whereas locally they are not.

I am running EE v 2.8.1, php 5.5.9. Permissions on my cache directory are 777.


texts: How can I control output order using Low Variables and Playa

texts:
I am trying to control the order of my products using Low Variables (2.3.4) and Playa (4.3.3).

I have a Low Variable of type Playa name lv_product_order which I use to output the ids in the following manner.

{exp:low_variables:parse var="lv_product_order"}{entry_id},{/exp:low_variables:parse}

This gives me entry ids that I selected in the correct order, also including hte additional unnecessary comma.  So I tried to than include this in my channel entries loop in the following manner.

    {exp:channel:entries
        channel="product"
        disable="member_data|pagination|category_fields"
        dynamic="off"
        fixed_order="{exp:low_variables:parse var="lv_product_order"}{entry_id},{/exp:low_variables:parse}"}

This results in the all products being output - even though I only selected a few in the LV Playa field, and order is obviously not preserved either.  Template debugging displays the following tag output:

{exp:channel:entries channel="product" disable="member_data|pagination|category_fields" dynamic="off" fixed_order="M40o93H7pQ09L8X1t49cHY01Z5j4TT91fGfr"}

Where does the following hash come from? I expect this to be a list of IDs.

  M40o93H7pQ09L8X1t49cHY01Z5j4TT91fGfr

I have the field set to early parsing so I figured this would parse before the channel entry tag. Is this a parsing order issue?

Any help would be greatly appreciated.
Thanks, Thomas


texts:
After making a new form, using Free Form in EE, and adding the "notify" parameter, I get PHP errors. The data gets submitted, but the re-direct to the thank you page doesn't happen for the end user. It seems like if it sits for a day, then the redirect works, but the notification still doesn't happen. If I don't add the "notify" parameter, everything seems to work.

I didn't do the initial install of EE or FreeForm, so I don't know how it all goes together. Or how to trouble shoot. The hosting company recently switched servers, so I thought that might be the problem, but they updated permissions and don't think they are the issue.

Here are some examples of the errors:

A PHP Error was encountered
Severity: Warning
Message: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known
Filename: libraries/Email.php

A PHP Error was encountered
Severity: Warning
Message: fwrite(): supplied argument is not a valid stream resource
Filename: libraries/Email.php

A PHP Error was encountered
Severity: Warning
Message: fgets(): supplied argument is not a valid stream resource
Filename: libraries/Email.php


texts: Expresso Store: Order a single modifier in the store product tag

texts:
I'm trying to order a product that has one or more modifiers. I added a modifier which let's the user order a box or bag of a specific product. Now I'd like to be able to purchase that modifier with a push of a button. So I can show both modifiers with an amount, the modifier name and the order button to add it to the cart. Is such a thing possible?

{modifiers}
{if modifier_type == 'var_single_sku'}
{modifier_options}

                        {option_name}

                                <input type="hidden" value="{option_id}" name="{modifier_input_name}">
                                <input type="text" size="2" id="frm-order-number" value="1" name="item_qty" data-required="true">

                            <input type="submit" title="Orderww" value="Add" title="Add to cart">

{/modifier_options}
{/if}
{/modifiers}


texts: Is it possible to use category_url_title in the first segment without having to create a template group for each category? I'd just like to link to categories on the fly using the first segment (site.com/news, site.com/athletics) and using just one template group. Possible?


texts: Location of Wiki Variable Settings e.g for [[Image:imageFile]] Substitution

texts:
Having a nightmare converting site from old http:// to https:// protocol.

I can't find settings that change the root of wiki article links to https:// nor that do the same for images.

The file under Edit File Upload Preferences under URL and server path are both correct yet any [Image:imageFile]] is still being replaced using http://.

The site_url variable has been changed (and the blog content reflects this) but the wiki seems to be behaving differently.


texts: Set Stash variable in Channel entry loop, then use in email contact form? Parse order issues?

texts:
The following is part of an embedded template, which is passed {embed:advertisers_entry_id} that contains a string like 34|68|124|:

{!-- Set defaults --}
{exp:stash:recipients}{/exp:stash:recipients}
{exp:stash:user_recipients}no{/exp:stash:user_recipients}

{!-- Set Stash variables for email contact form --}
{exp:stash:set parse_conditionals="yes" parse_tags="yes"}
    {exp:channel:entries
        channel="advertisers"
        disable="categories|category_fields|pagination"
        entry_id="{embed:advertisers_entry_id}"
    }
        {if {absolute_results} == 1}
            {stash:recipients}{if "{advertiser_email}"}{advertiser_email}{if:else}{author}{/if}{/stash:recipients}
        {if:else}
            {stash:user_recipients}yes{/stash:user_recipients}
        {/if}
    {/exp:channel:entries}
{/exp:stash:set}

{!-- Use Stash variables in email contact form --}
{exp:email:contact_form
    charset="utf-8"
    form_class="customer-email-form"
    recipients="{exp:stash:recipients}"
    user_recipients="{stash:user_recipients}"
}
{/exp:email:contact_form}

The goal is to setup the email contact form to send to either one recipient or multiple sender-specified recipients. Unfortunately, the above code is not working properly and I suspect it's a parse order issue.

It seems like the Channel entry loop is not occuring, and thus my Stash variables are not getting set properly for the email contact form.

Questions:

How do I make the Channel entry loop work?
Once the Stash variables are properly set within the Channel entry loop, how do I use it in the email contact form?

I've tried various combinations of parse="inward", process="end", parse_vars="yes", etc. No go.


texts:
I have a client looking into setting up a low volume auction site for a niche market. The user would like to avoid a different login for members and admins and prefers to stay with EE if at all possible

Are there any available add-ons that are designed to allow community members (non-admins) to post their own auction items, timed and buy it now options and require a commission payout to the website upon auction completion.
Can this functionality be rolled out with any of the existing store add-ons (espresso, cart-throb, brilliant retail), if so, how would you approach this?

Thanks for any input.


texts: Comment URL Title Auto Path for other channel

texts:
I've run into a bit of an issue when working on a video archive site for a church. I currently have sermon series in a channel and then services in another channel that is tied to the series channel by a relationship field. I want to be able to feature a single week's service on the homepage, but I can't seem to figure out how to get the service's URL to point to the series  URL. The site is here: video.lifebridgechurch.com. On the homepage, I have the featured post which is using Comment URL Title Auto Path to generate the URL. However, I need the last segment of the URL to be the series URL instead of the service title since I don't have a template for just a single service. If you go to the full archives and click on a series, all of the services are shown in tabs so they don't need their own template.

I've tried MX Title Control but I can't seem to get it to do what I need.

Hopefully this makes sense! Thanks for any help!


texts: Member groups, Freemember and self-activation via email?

texts:
I am using Freemember to manage my site members information and registration etc, however I have come across an issue with my current setup.

I need to use the 'Self-activation via email' option so that new registrants have to verify their email address before gaining access to the site. With this I have 3 initial member groups for different levels of access, so I have 3 separate forms to register.

For this I have setup the forms to use the parameter group_id="8" for example, so the user is added to the correct group.

Now the problem now is that when a user registers using one of these forms they can login straight away without having to verify their email via the activation link which is due to them being added straight to the member group bypassing the 'pending' stage.

This is the same as this question: New member registration set to require activation, but new registrants are working without it, although it doesn't offer an alternative method.

I need a way to utilise both features where the user is first added as 'pending' but when they activate via the link they are added to the correct member group according to the form they used initially.

Can anyone help please?

Thanks Wes.


texts:
I have an issue with creating and deleting field types ,its takes a really long time to do both and sometimes the site times out and when I get back in the field is only half created.I can then save the field again and it will take around 3 minutes to process through the database.
At the end of the day i can create a field but it is taking too long and I want to know whats going on with the database that is causing that delay .I am running EE 2.9.2 and have no other issues with EE as everything else runs fast.
Thanks in advance for any help or advice


texts: File and Image Upload in a Wygwam field in a Safecracker Form

texts:
I was trying to find confirmation about whether the Browse Server button in the Image and File Upload functionality in Wygwam could be used in Safecracker. Currently the windows pop open fine, but the Browse Server button is not visible.

The only reference I could find was http://ellislab.com/forums/viewthread/223476/ which suggested switching to Ckfinder for the File Manager, which I tried and then wasn't able to see the Browse Server button on the frontend or the backend.

I get an error Uncaught TypeError: Cannot read property 'length' of null that seems unrelated, because it occurs regardless of whether the Browse Server button appears or not.

Thanks in advance for any help!


texts: Links out of Structure Listing in Wygwam is missing trailing slash

texts: When adding a link in Wygwam through Structure Listing, the link is missing a trailing slash. Due to our SEO policy we would like to have a trailing slash in the url's. How to realize?


texts: Google Maps for ExpressionEngine Multiple Markers - incorrect display

texts:
ExpressionEngine 2.9.2
Google Maps for ExpressionEngine 3.3.8
Geocoder 1.2.0

I have a channel for branches and on the single entry page the map correctly displays the branches location using this code.

{exp:gmap:init id="map" scrollwheel="false"  style="width:1200px;height:460px"}

{exp:gmap:center id="map" address="{branch_address} {branch_city}"}

{exp:gmap:marker id="map" latitude="{branch_latitude}" longitude="{branch_longitude}" zoom="13"}

However on the landing page where I need to have a map showing all branches across Canada it is not working correctly. There are currently 27 branches but on the google map only 4 are displaying and they are not in the correct location. Furthermore the infobox for all pins contains exactly the same data rather than the data for that pins location.

Template code:

{exp:channel:entries channel="branches" disable="member_data|pagination|categories|category_fields" limit="300"}

 {exp:gmap:marker
  id="map"
  latitude="{branch_latitude}"
  longitude="{branch_longitude}"
  duplicate_markers="false"
  icon="/images/map-pin.png"
  geocode="true"
  clustering="false"
  latitude="48"
  longitude="-83"
  limit="100"

  infobox="true"
  offsetY="-40"
  offsetX="0"
  class="entry-{entry_id} ui-infobox-dark"
  closeBoxMargin="5px"
}

{title}

    {branch_address}

    {branch_city} {branch_province}

    {branch_postcode}

    Work Phone: {branch_phone}

    Toll Free: {branch_toll_free}

    Fax Number: {branch_fax}

{/exp:gmap:marker}

{!--
// add active class to branch card to highlight it.
--}
{exp:gmap:event id="map"}
  $('.block article.entry{entry_id}').addClass('active');

  $( ".ui-infobox-dark  img" ).click(function() {
    $('.block article').removeClass('active');
  });

{/exp:gmap:event}

{/exp:channel:entries}

I've tried a number of different approaches and scoured the documentation but cannot seem to figure out what I'm doing wrong. Please advise.


texts: Ensuring links have http:// in rich text fields

texts:
anyone know of a good plugin that looks for inline links where an editor has added the link like: example.com not http://example.com and corrects them automatically?

If it was matrix/grid compatible that'd help.

Best, Liam


texts: Templates with playa returning blank pages

texts:
I have a fully-functioning EE site (which I didn't build) but I am migrating over to a new server, and everything is operating as it should with the exception of pages that have playa code in it.  If I remove the playa code, the page works.

Playa 4.4.5 / EE 2.7.3 / PHP  5.3.2

Here is an example of code that works on the old server but not on the old:

{exp:stash:set_list
    name="related_insights"
    parse_tags="yes"
  }
  {exp:playa:children
     field="cf_hm_related_resources"
     status="open"
     disable="members"
    }
    {lv_md_related_insights}
  {/exp:playa:children}
{/exp:stash:set_list}

I've tried deleting cache. I've tried enabling debugging.  All I get is a blank page unless I remove this snippet of code.  Any ideas?  Any ideas on what I can do to get some insight into what's happening?


texts: Cartthrob multi-add-to-cart not reducing inventory on

texts:
I have set up CT to use a Matrix for pricing on products. Everything is adding to cart and checkout is OK. I have allow_user_price on as it is a multi-lingual site and I need to show different prices.

No matter what I tweak, I can't get the inventory to reduce once a sale as gone through.

In my Matrix field I have the following:

option_value
inventory
uk_price
eu_price
us_price

I have also mapped inventory in to the name of he matrix field in products (pricing).

The multi_add_to_cart is wrapped round a bunch of products. When a customer clicks on more details, Jquery fetches the options - An EE template that loops through options.

Here is a highlight of the options:

{exp:cartthrob:item_options entry_id="{segment_6}" field="pricing"}
{options}
<input type="hidden" name="entry_id[{segment_6}{count}]" value="{segment_6}"/>
<input type="hidden" name="item_options[{segment_6}{count}][option_value]" value="{option_value}"/>
<input type="hidden" name="item_options[{segment_6}{count}][size]" value="{size}"/>
<input type="hidden" name="item_options[{segment_6}{count}][pack]" value="{pack}"/>
<input type="text" id="cart-qty" name="quantity[{segment_6}{count}]" value="">

<button type="submit"  class="add_to_cart_submit btn btn-danger btn-small" >{phrase:add_to_cart}</button>
{/options}
{/exp:cartthrob:item_options}

I have omitted the price field and other styling for clarity.

Can anyone see if I am missing anything obvious?


texts: Within two sites under Multiple Site Manager, what would be the easiest way for an editor (ie:from the CP) to move or duplicate an entry from siteA to siteB ?


texts: How do I hide files from the search? Files are showing up on the results page, but the extension is stripped, so they return a 404. I'd like to either hide the files, or fix the URL returned by search to include the extension. By "files" I mean uploaded files.Thanks for your time.


texts: Freeform Pro - AJAX response information not being returned

texts:
We have recently moved server to the AWS platform so this might be an issue on the infrastructure side of things rather than with Freeform Pro.

However I have a modal contact us form that is being submitted by AJAX. The data is being saved to Freeform but I'm not getting any kind of AJAX response data when I take a look in Chrome Dev Tools.

Could this be an issue with using a load balancer?


texts:
I am new to Freeform and EE; we are using Freeform 3.1.5. I have following questions.  Please advise.  Thanks!

Is this version of Freeform support inline error message?
Our inquiry form allows users to upload multiple files.  However, when users tried to upload files with large file sizes and timeout (so failed to save and submit the form), no error message is displayed and it will just redirect users to the thank you page that we specified on “return=”. Is there any way to display error message to users when timeout?

Updates - Here is my template:

{exp:freeform:form
    collection="Field Installation Report"
    notify="OUREMAIL@XXX.COM"
    required="customer_name|install_site|install_date"
    send_user_email="yes"
    template="field_report_template"
    user_email_template="user_field_report_template"
    file_upload="Field Service"
    allowed_file_types="jpg|pdf|zip"
    return="support/success"
}

<fieldset>
    <legend>Field Report</legend>
    <input type="hidden" name="subject" value="Field Report Submitted" />
    <input type="hidden" name="fir_user" id="fir_user" value="{name}" />
    <input type="hidden" name="form_entry_date" id="form_entry_date" value="{current_time format='%Y-%m-%d'}"/>

Customer Name*:
    <input type="text"  id="customer_name" name="customer_name" />

    <fieldset class="photo">
        <legend>Photos or Documentation</legend>

<input type="file" name="file1">

<input type="file" name="file2" >

<input type="file" name="file3" >

<input type="file" name="file4" >

<input type="file" name="file5" >

<input type="file" name="file6" >

    </fieldset>

Email Confirmation To:
    <input type="email"  id="email" name="email" value="{email}" />

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

</fieldset>
{/exp:freeform:form}


texts:
Is it possible to globaly hide the category-name in the Forum-Breadcrumb? {include:breadcrumb} includes the «Forum Home», Category, Forum and Title — but I wan't to get rid of the category.

What do I have to edit in the modules/forum-folder to delete the category from the breadcrumb?


texts: simple multi language site (two languages, mostly static content)

texts:
This is my first multi language project and should be very simple. The only dinamic content is for blog, but it doesn't need to be translated.
I thought to take these steps, i would like to have some opinion if I'm doing something wrong
Templates:
For the main language:

/index
/contatti
/blog
etc..

For english language i create the template_group "en"

en/index
en/contact
en/blog

Global variables/embed templates
i.e.

"head_html" and "en_head_html"
"body" "en_body"
etc...

Is this correct or i'm doing something wrong? Are there better methods for a simple situation like this? Thanks in advance


texts: tracking site searches with google universal analytics

texts:
I've been looking for a way to get Google Universal Analytics to keep track of our internal search results. We use the simple search and have results showing up in our search log inside EE.

There is a solution laid out in this article for the old analytics system: tracking site searches in google analytics

I'm wondering if anyone has done something similar for the new code Google has blessed us with.

Maybe something like:

ga('create', 'UA-XXXX-Y', 'auto');
ga('send', 'pageview {if segment_1 == 'search' && segment_2 == 'results'}, ['/search/results/?q={exp:search:keywords}']{/if});

Thank you in advance,

Lincoln


texts:
I'm using Assets 2.0.4 and I just noticed that it doesn't include my subfolders that exist within my upload directories from when I had Assets 1.  For instance, I have a press releases folder that has about 8-10 subfolders in it, but all I see in Assets 2 is the parent directory.  Is this a bug?

If not, how would I get all of my subfolders indexed in Assets without having to re-upload them all?

System: EE 2.5.5 / Assets 2.0.4 / PHP 5.2.


texts:
I have a CSV that I'd like to import into EE. Looking at exp_channel_fields, I think I am able to connect them to the appropriate columns in exp_channel_data. Basically, it seems like the value in exp_channel_fields.field_id is used to make exp_channel_data.field_id_x (where x is the field_id value).

But there is also this field_ft_x column. What is that for?

Is doing an import as simple as just putting my data in the appropriate columns in exp_channel_data? Is there an easier way to do this?


texts:
I have banner ads stored in a channel and these are associated using a single entry Playa field with clients stored in another. I need to display random banners on a page but without ever showing more than one banner from each client.

Channel entries has no concept of 'Group By' so how am I best to go about doing this?

Update

In the end I wrote an extension to do this though the answer below would work equally well. You can download the 'Group By' extension here - https://github.com/ninefour/group_by.ext.ee_addon


texts: Is there a way in Exp:resso Store to allow certain customers to be marked tax-exempt and then omit tax based on their status? Ideally a customer would contact us with their tax-exempt number and we would mark them tax-exempt in their member account. Or a member could include their tax-exempt number in a custom field when registering? Once that is filled in for their account, though, how could I omit tax for their orders?


texts: Freeform Pro fields and MSM, fields not consistent across multi sites

texts:
FreeForm 4.2
EE 2.8.1
MSM

Today I needed to create the first form for one of the sites on our EE with Multi-site. So I began by creating fields. I went to create a First Name field, but FreeForm told me the field name already existed and I needed to select another name. Which was a surprise to me since this was the first field and form I was creating for this site. I checked the fields list and it clearly wasn't showing. So I checked the other site and confirmed the field name was being already used. So I had to switch my field naming conventions to help differentiate. And I created all the fields needed for the form. But I didn't use a different convention for the field label.

Then I began to create the form, setting the Form Type to Composer. In the list of fields, I now have two First Name fields. The list uses the field label, so now I can't tell them apart. I have to edit one to check the field name so I select the field for this site and not the other site.

I suggest that you either let FreeForm share the fields across the multiple sites or create a better separation between the sites. And I lean towards the latter. And by better separation I think I should be able to reuse the field labels, field names, form names and form labels etc without worrying about names on other sites.


texts:
I'm trying to set up a search form that searches several things:

name
date
location

The site in question is a funeral home, and we want to set up a search where people can search by the name of the deceased, the location of the funeral, or the date of death. The name and location search work great, but I get no results when I search by date.

I've set it up so that the date that gets sent to the Low Search module is formatted as YYYY-MM-DD, but that doesn't seem to matter.

Your talk about range would apply here, but I only want to search for a single date, not a range of dates. In any case, I did try range-from (as you see below) and a hidden input for range-to with the same value. That didn't work.

Previously, I didn't use a range at all, and Low Search would return every all results (over 8500 of them!).

My Code

{exp:low_search:form collection="obits|obits_archive" form_class="obit-search" query="" result_page="obit/results" secure="no"}

Name

    <input type="text" name="keywords" />

Date of Death

    <input type="text" name="range-from:ob_dod" id="date-pick" value="" /><input type="text" style="display:none" name="range-to:ob_dod" />

CCG Location

    <select name="child:ob_location[]">
      <option value="">All Locations</option>
      {exp:channel:entries channel="locations" dynamic="no" orderby="title" sort="asc"}
      <option value="{entry_id}">{title}</option>
      {/exp:channel:entries}
      </select>

<input type="submit" name="submit" value="Search" id="submit" class="button">

{/exp:low_search:form}

Other Info

You'll almost certainly want to know that the date is not using EE's date fieldtype, but, rather, Stephen Lewis's Dropdate. Dates are stored as a UNIX timestamp.


texts: Possible in Editor (DevDemon) to place image without p-tags around it?

texts:
I don't want the default p-tags added to my images when adding them in Editor.

The HTML should look like this:

    text

    text

etc.

If I add pictures now it adds paragraph-tags around the images automatically.

PS. I can save it the right way one time (in code-mode), but it changes back when I edit the post (even if I don't change anything).


texts: What does "Enable Strict URLs" really mean?

texts: What does "Enable Strict URLs" really mean and are there any security/other implications if I choose to not use strict URLs?


texts: This might sound like a novice question, but I am not finding any recent information on the internet in regard to this. Are there any browsers that don't work well with an expression engine CMS? Just wondering. Thanks


texts: Free Shipping with the Australia Post Shipping Extension

texts:
I'm using Expresso Store with the "Australia Post Shipping" extension.

Currently I'm attempting to order a single item with "Free Shipping" set, but it seems the Australia post extension is applying a shipping cost of $9.95 to the order.

I was wondering if the calculator ignores "Free shipping" items when calculating a shipping total, or if I'm doing something wrong?

If the extension ignores the "Free shipping" attribute, is it possible to check if the order consists of free shipping items, and render a different set of {shipping_options} in the checkout tag?


texts: Sort and Results on Custom Fields (not category)

texts: I'm trying to add a sort / results feature on 2 custom fields which would look similar to what I've started here using categories but using custom fields instead: http://192.241.255.103/ee272/jdb/joke_list. The channel is: "jokes" fields are called "joke_category" (dropdown list) and "rating" (checkbox). Without using a plugin do I have to write a mysql query? If so, would anyone mind giving me a head start here.


texts: Help with using the Search Module without a form

texts:
Is it possible in Expression Engine, using the latest version, to run a search query, without having to use a form? Meaning, I'd like to create an api endpoint like so:

http://localhost/v1/search/large+pants

So the view file would grab segment_3, and use that to search the various channels I have?

If that's not possible, then I ask, is it possible to do a post like how the regular search module works, but not require any of the extra params in the request, just send over the "keywords"?


texts: I have an old store EE 2.5.3, CT 2.2.9 - implementation from 2012. A week ago, I get this message overnight when returning from the payment gateway to the cartthrob store. [403] Forbidden /themes/third_party/cartthrob/lib/extload.php/przelewy24/success. Has anyone encountered this? Maybe the server settings have been changed? The extload.php file has 755 permissions. I would appreciate any help.


texts: Solspace Facebook Connect : Implementing syncing accounts for existing EE members

texts:
I am the implementing Facebook Connect module for an existing site that already has a considerable number of registered users. As it's my first time using the module I have a couple of questions on best approach.

What is the best way to have existing members sync their accounts? Do I simply use the Login button? Is this context sensitive and will know if the user has already synced accounts and so not launch the whole agree to the app part?
How can I check if a user has already synced their EE account with their FB account? I would like a method of prompting users that have not synced to do so but also not bother those that already have.
How do I let users un-sync their accounts? I've noticed that if I sync my own account the app replaces my email address with my FB address. If I un-sync will it add back my old email address?

Thanks for any help.


texts: Simple conditionals parse when they shouldn't

texts:
I have a page that's set up like this:

{if segment_2 == ""}
  // show categories
{/if}
{if segment_2 != ""}
  // show entries
{/if}

I'm using simple conditionals ( as opposed to if:else ) because I don't want
the contents of the second part to be parsed when they shouldn't.

But, when my segment_2 is empty, EE still goes inside that tag and parses everything, resulting in a slow page load.

There's nothing out of the ordinary inside that simple conditional ( EE tags, an embed and a little bit of php ( parsed on output ) )

But something forces EE to ignore the parsing error and parse everything inside the conditional. Question is: what ?

I know I could probably just use switchee and be done with it, but I shouldn't have to. I want to figure out what goes wrong.


texts: Unable to view uploaded images from IE11

texts: When uploading images to EE v2.7.2 from IE11 the images cannot be seen after uploading is completed. All other browsers seem to work properly.


texts:
How do I add a value to the {count} variable?

I'm trying to do this:

{exp:channel:entries channel='links' orderby='link_order' sort='asc' dynamic='no'  category='12'}

{/exp:channel:entries}

I want the HTML to come out like this:


texts: Emergency: Channel entries tags stopped working on a live site: Please Help!

texts:
I have just received a very unusual support request:

All of the content on a live website is no longer displayed on the front end of my clients site. All content is still accessible via control panel.

Basically every instance of Channel:entries isn't working, neither are any structure tags, low event tags, low search results tags- basically if it extends channel entries its stopped working.

I have setup a test template with the simplest of channel entries tags on there, but no matter which channel/entry I try to pull I keep getting the contents of my no_results conditional. As an a-side, Channel:categories tag works fine.
It seems to me that the entries method of the channel module has died somehow- the only changes that have happened on this site in weeks have been content based.

Has anyone experienced this issue before? or have any pointers on how to resolve this- I've been looking at this all morning and can't event find anyone reporting a similar issue in the past (which is very disconcerting)

Thanks in advance!

ISSUE RESOLVED:
It turns out that one of my clients employees had somehow applied a custom status to all entries, even those that existed in channels without the custom statuses applied.
So the pages, news, events channels etc all returned zero results as they didn't have the matching status!


texts: Assigning multiple authors to a channel entry

texts:
I need to add multiple authors on post, but I don't know how to do implement this. I'm a new to ExpressionEngine.

My articles have also a multiple bibliography, and I have the same problem, which is how in general to manage a master-detail relationships in ExpressionEngine.

With the new 2.6 relationship, is easy to display related category, but I cannot find a way to   insert them.


texts: I'm getting a server error on going to admin.php to do an install. The error details read '[the website] may be down for maintenance or configured incorrectly'. PHP is running OK. I've used the EE installation wizard to check the database settings. I've tried versions 2.10.2, 2.10.1, 2.9.2. Checked the ownership prefs, tried an installation without renaming the system folder. There is no htaccess file on the server. I've installed EE many times with the same host. I can't see what's going wrong.


texts: Trying to get Solspace Super Search results in an extension

texts:
I am building a notification system which should email a user whenever a new entry is added that matches their saved results. The way I plan to make this work is using a Postmaster Notification which will run on CRON job once a day.

I have already built the system that saves searches using Solspace's Super Search (which we are already using the on site anyway - works well).

My notification code gets all the saved searches, and then should run them and email out any new results. What's the best way to run a search? I just need back the entry_ids I think.

Here's what I have so far:

    // Get all the saved searches that are active.
    $searches = ee()->db->select('screen_name, email, search_name, query')
      ->from('super_search_history h')
      ->join('members m', 'h.member_id = m.member_id')
      ->where(array(
        'h.saved' => 'y'
      ))
      ->get();

    // For each search, unhash the query, and pass it to Super Search.
    if ($searches->num_rows() > 0)
    {
        foreach($searches->result_array() as $row)
        {
            $q = unserialize(base64_decode($row['query']));
            // Add information to the query that indicates the timeframe for the search - LATER

            // What are the entry IDs?
            require_once(PATH_THIRD.'super_search/mod.super_search.php');
            $search = Super_search::do_search($q);
        }
    }

I think the main issue is me not knowing the best way to call one module's function from within another. I get the error Call to a member function fetch_param() on a non-object in mod.super_search.php on line 644.

Do I need to create a version of the "do_search" function that doesn't use the TMPL class (since we're not calling this function from within a template).


texts: Why do I get Solspace Freeform error: the form has expired?

texts:
I am running EE 3.5.15 with Solspace Freeform 5.1.2. Any time I attempt to submit a form I get the following error:

  This form has expired. Please refresh and try again.

I have searched extensively for information on this and it always refers to:

<input type="hidden" name="csrf_token" value="602778b7a9b1649d742ca1080e8591c1091b97d5">

This is in place. Is there anything else that could be causing this? I have cleared the cache.


texts: How to link to next date (day/month) with date in url?

texts:
When displaying entries by date: /blog/2013/09/12 (day) or /blog/2013/09 (month),

How can i get the link to the next/previous day or month?
More important, when using the channel calendar tag, using the day-path variable in the calendar will show links for days that have entries. When visiting such a link (/blog/2013/09/12), how can i link on that page to the next date that does have entries ?


texts: Upload image and get "URL Only" in text field

texts:
In EE1 part of our workflow was to upload images and store just the path to them in the a text field.  Sometimes this images were uploaded in the control panel and sometimes when there were dozens of them they were uploaded via SFTP.

When we uploaded through the control panel we used the "URL Only" option.

EE2 introduced the File Field type which is a nice feature BUT they also took away the ability to get "URL Only" on upload.  /images/folder/imagename.png

In my limited use of EE 2.8.1 when you upload an image you can only get the whole image tag <img src="/images/folder/imagename.png"> AND you can only get the image to appear in a textarea not in a text field.

Am I overlooking something? Is there a way to recover the former functionality?


texts: How to get Calendar and Event data from Solspace Calendar?

texts:
I am trying to make a template that outputs JSON, listing all events within a date range. I want to be able to display my custom channel fields in the Event channel, as well as within the Calendar channel that the event is associated with.

I have tried so many things, and cannot seem to get this to work. Not sure if I just can't find the right syntax, or if it's not possible with the Calendar tags.

Which {exp:calendar:???} tag will allow me to display custom fields from both my event and calendar channels? Thanks!


texts: In content Name/ TItle Linking to entries?

texts:
Is it possible that in a text field to create a link to an entry ? ex :

The movie ,, X MAN ,, is about to reach its top...

Is it possible to have an easy way of adding the link to XMAN text ( a link to an entry from the same website ) ?

I mean, not to manually search and paste the link ...


texts: How to Send CartThrob Custom Data To Campaign Monitor At Checkout?

texts:
We currently can successful send the name and email fields to Campaign Monitor by this addon:

https://github.com/CartThrob/addon-mailing_list

By adding this field to our checkout form:

<input type="hidden" value="list id goes here" name="custom_data[campaign_monitor]">

Is there a way to send custom fields or an other fields to CM aswell?

IE. Fields like:

<select id="custom_data[order_gender]" name="custom_data[order_gender]">
  <option value="">please select</option>
  <option value="m">Male</option>
  <option value="f">Female</option>
</select>

OR

<input type="text" id="address" name="address" value="{address}" placeholder="Street Address" class="placeholder">

OR

<input type="text" id="custom_data[order_date_of_birth]" name="custom_data[order_date_of_birth]" value="{custom_data:order_date_of_birth}">


texts: Assets 2 MSM Cannot Upload or view images

texts:
I have a multisite installation of EE 2.5.5 and Assets 2.0.3.

The issue I am running into is that if I log into Site 1 at url.com/admin.php and navigate to the Assets module I can see all my Site 1 images. If I switch to Site 2 using the top right navigation none of the images for Site 2 load. I have verified all the config/file upload settings and everything is correct.

I also cannot index anything from within Site 2, only within Site 1.

I can log into Site 2 and site2url.com/admin.php and the images will show up.

This seems to defeate the MSM system a bit because our client has to log into both site admin sections in order to view files.

From my understanding this ins't correct and I should be able to see the files on both sites by logging into Site 1.

is this a bug or am I missing a config somewhere?

Thanks,

Kevin


texts: Playa Plug in - Slows down site to a crawl?

texts:
I have a site running playa module and it's painfully slow to run any queries.

Here is my tag code:

{exp:channel:entries channel="sous_sous_categorie" url_title="{segment_4}" dynamic="no"}

                    {if {exp:playa:total_parents}}
                        {if segment_2 != "nouveautes"}

{embed="kanuk/.get_sous-sous-cat-lang" url_title="{url_title}"}

                        {/if}
                            {exp:playa:parents channel="article" var_prefix="article"}

                                <?php $article_entry_id = "{article:entry_id}"; ?>

                                {article:categorie}
                                    {if "{segment_2}" == "{article:url_title}"}
                                            {embed="kanuk/.coat_render" last_entry_id="<?php echo $article_entry_id; ?>"}
                                    {/if}
                                {/article:categorie}
                            {/exp:playa:parents}

                            {if segment_2 != "nouveautes"}

                            {/if}
                    {/if}

                {/exp:channel:entries}

Which loads:

{exp:channel:entries channel="article" entry_id="{embed:last_entry_id}" dynamic="no"}
    {sous_categorie}
    {if "{url_title}" == "{segment_3}" || "{segment_3}" == ""}

        {embed="kanuk/.coat_render2" last_entry_id="{embed:last_entry_id}"}

    {/if}
    {/sous_categorie}
{/exp:channel:entries}

which loads:

{exp:channel:entries channel="article" entry_id="{embed:last_entry_id}" dynamic="no"}

                {categorie}
                    {if title == "Nouveautés"}

                    {/if}
                {/categorie}

                    {couleur_produit}

                    {/couleur_produit}

            {images_produit cover_only="yes"}{/images_produit}

{title}

                    {if "{language_code}" == "en"}
                        ${prix_regulier}
                    {if:elseif "{language_code}" == "fr"}
                        {prix_regulier} $
                    {/if}

        {/exp:channel:entries}

Could you offer any hints / best practices to speed up page load time?

I'm convinced nesting these queries 3 layer deep is not helping but I don't know of another way of achieving my goal !


texts: Hosting an external web app within EE pages

texts:
Not an EE developer, but trying to answer a question for a client.

They have a database (oracle) that they know they'll need to create a custom front end for, but they want it to somewhat integrate with their EE site. By integrate I just mean they'll create a page called "peoplesearch" and then on that page their custom PHP will execute within the template to connect to the database. I'd imagine that most of the app will change page content via ajax so that it at least won't need to worry much about multiple pages for the app, but it would also be nice if EE would allow for URL manipulation for deep linking into the app for a particular search etc.

ee_database <-> ee_page -> webapp <-> oracle_database

Is this possible? Does this question make sense?


texts: Need to calculate number of hours between two time select fields before form submission if possible

texts: I have a form for event registration under my site that contains two time select fields, an arrival time and departure time. What I want to do is to have the number of hours between these two times calculated and displayed in the 'Total Hours' field automatically before the form is submitted if possible. I'm thinking that I'll need a bit of jQuery to accomplish this or perhaps by using the entry_submission_start hook. Any tips or examples for accomplishing this would be greatly appreciated! Thanks


texts: Simple search form results template displays system message template

texts:
It seems I have a similar problem to the one described in this thread.

You enter a search query and get redirected to the correct URL but the page displays the system message template saying Your search did not return any results instead of redirecting to the no-results template.

Removing the exp:search:search_results tag causes the page to render correctly, but obviously without any search results in it. {exp:search:total_results}{total_results}{/exp:search:total_results} also shows up as 0.

So why doesn't EE redirect to the no-results template if there are no results? Although it doesn't seem to matter what I enter, I get the error message each time.

Template code

Form

{exp:search:simple_form
    channel="blog"
    no_result_page="{segment_1}/search/no-results"
    result_page="{segment_1}/search/results"
    search_in="everywhere"
    where="all"
}
<input type="text" name="keywords">
<input type="submit" value="Go">
{/exp:search:simple_form}

Results

There were {exp:search:total_results}{total_results}{/exp:search:total_results} results for a search for {exp:search:keywords}.

{exp:search:search_results}

        {title}

{/exp:search:search_results}


texts:
I am using Freeform Pro on a second site with Multiple Site Manager. As soon as I include the Freeform code:

    {exp:freeform:form
    form_name="careers"
    required="first_name|last_name|email|message"
    return="careers/thank-you"
    user_email_field="email"
}

                <input type="text" name="first_name" id="first_name" placeholder="{freeform:label:first_name} *" >

                <input type="text" name="last_name" id="last_name" placeholder="{freeform:label:last_name} *" >

                <input type="text" name="email" id="email" placeholder="{freeform:label:email} *" >

                <input type="text" name="phone" placeholder="{freeform:label:phone}" >

                <textarea name="message" placeholder="{freeform:label:message} *" ></textarea>

{freeform:label:upload_resume}

(Word, Pages or PDF formats Only)

{freeform:field:upload_resume show="2"}

{freeform:captcha}

<input type="text" name="captcha" placeholder="TYPE THE CHARACTERS ABOVE" ></input>

<input class="button1" type="reset" value="Clear" /><input class="button2" type="submit" value="Send" />

* Required Field

{/exp:freeform:form}

on a form template, the entire page displays completely blank. Any ideas?


texts:
I'm trying to use Switchee for this scenario:

{if variable_1}

    {if variable_2} some text {if:else} some other text {/if}

{if:else}
nothing to show!
{/if}

So, if i want to use Switchee i need to nest two plugins?

{exp:switchee variable="{variable_1}" parse="inward"}

    {case value="{variable_1}"}

        {exp:switchee2 variable="{variable_2}" parse="inward"}
            {case2 value="{variable_2}"}  some text {/case2}
            {case2 default="yes"} some other text {/case2}
        {/exp:switchee2}

    {/case}

    {case default="yes"}
     nothing to show
    {/case}

{/exp:switchee}

Help please! :)
thank you


texts: Change admin password programmatically using PHP or MySQL

texts:
As part of a build/deployment script I will need to programmatically set the site admin password.

I have read this question but the output from the accepted answer does not work. I see extra columnd salt and crypt_key. I'm guessing these are use in when generating the password.

Does anybody know the function used to generate password?

Thanks in advance


texts: Exp:resso store shipping plugin doesn't show up

texts:
I don't see the option to add the standard USPS, UPS and FedEx Shipping plugins when I add a new method.

The extension is enabled and the settings already in place. But {field:shipping_method} produces an empty drop-down on my checkout template


texts: Is there an EE3 custom field out there somewhere that allows selecting one or more categories, like this EE2 addon by Wes Baker: https://devot-ee.com/add-ons/wb-category-select


texts: Can't seem to pull a custom email variable from Cartthrob orders into the Postmaster. I can see postmaster is sending the message on authorisation but the variable is not showing the email address from the order field and shows the variable {order_custom_email}. What am I doing wrong? Can not I not use this custom variable in the order channel?


texts:
The published support docs for ExpressionEngine 2 mention purchasing and installing MSM.

Where do I even find these files?


texts: Best Practices for Large Number of Entries

texts:
I have a database of  30,000+ government agencies and want to create a Channel Entry for each. My initial thought would be to create a Channel Field for all the data, then use an import extension to populate the Channel Fields.

I've never had to deal with large numbers of Channel Entries so I wonder if this is a sound approach or may there be another way.
Regards


texts: How to make CartThrob PayPal Gateway redirect to German PayPal site?

texts:
We are using the Cartthrob_paypal_express.php Payment Gateway with CartThrob for over a year now and it is working great.

Just yesterday I noticed that users are being taken to the English version of PayPal when clicking "Purchase". In the top right there is a language dropdown select with English, French and Spanish I believe but not German.

Logging in an purchasing works nonetheless but I would like to have the users land on the German language version since we are a German shop.

I called PayPal today but all they could tell me was that it must have something to do with the payment gateway plugin. I skimmed through the php file but couldn't find anything really (not good with php).

In the CT prefs I also coudn't find anything. Also the API username and stuff doesn't give me a clue.

Thanks and Cheers!


texts: Have WYGWAM image insert be able to select from multiple directories

texts:
I am currently using WYGWAM 3.3.3 with EE 2.11.1.  I have WYGWAM using EE's file manager.  Currently with file manager there are 6 different folders they can upload images and pdf's to.  When they create an article (entry) and in the body content I have a WYGWAM field I want to give them the option to select an image from any of their 6 upload folders.  I know when I setup I can only select one and when you click browse folder it will bring up that folder.

This makes sense as if they upload a new file it knows where to put it but is there any way to allow them to look in the other folders for existing assets to insert?


texts: Validate a freeformpro with Parsley and define required fields

texts:
first post here.
For what I understand, I need to add 'data-parsley-validate' to the form tag and 'required' and some other options for the fields.

I have been using Composer but even if I can define the special parameters using template approach (where I manually code the fields) the  tag will require the Parsley parameter.

Is this something we can add to the FreeForm Pro form tag? Or what about adding parameters for the fields using the Composer option?

Thanks for your time


texts: Structure Navigation Showing Hidden Entries

texts:
I have what seems like a pretty straightforward Structure navigation menu, but for some reason, the entries that "Hide from Nav?" set to "Yes" are still displaying in the navigation.

The page is even labelled as "(hidden)" in the Structure interface, but still it shows up in the navigation.

Is there something wrong with my code?

{exp:structure_entries depth="2" current_class="active"}
    {if {count} ==1}
{/if}
    {if {depth} == 1}
        {!-- Top Level --}

            {title}
        {if {children_total} == 0}{!-- No Children - so close markup --}
{/if}
        {if:else}{!-- Children (not top level) --}
            {if {sibling_count} == 1}
                {!-- First child - so open markup --}

            {/if}

                            {title}
                            {close_markup}
                        {if {total_children} == 0 || {depth} == {restricted_depth}}
{/if}
                    {if {last_sibling} && {sibling_count} == {sibling_total}}

{/if}
        {/close_markup}{/if}
    {if {count}=={total_results}}
{/if}
{/exp:structure_entries}


texts: Freeform Notifications Word Wrap Problem

texts:
Is anyone aware of Freeform notifications being sent with 'word wrap' even though the selection is unselected in the settings?

I'm using the most up to date versions of both EE (2.10.1) and Freeform (4.2.2) and cant for the life of me work out how to turn this feature off.

All email notifications are coming through in a right mess. Have also turned the setting off in Admin>Email Configuration too but to no avail.

Any help would be much appreciated.


texts: Error Number: 1364 on insert to exp_member_data

texts:
I am working with an add-on that does an insert into a custom member data field and I am getting the following kind of error:

A Database Error Occurred
Error Number: 1364

Field 'm_field_id_2' doesn't have a default value

My EE install is currently at 2.5.2 and it was upgraded from EE 1.6.9. In checking the exp_member_data table in database I can see that none of the custom field columns are set up with default values or allowed to be set to NULL. This includes even custom fields I set up after upgrading.

My questions are:

Is it default behaviour for EE to create new exp_member_data columns to not allow NULL and to have no default set? Seems like it shouldn't be.
Did something happen to my exp_member_data table in my upgrade so it is not set up correctly for EE2?
Am I safe to simply set the columns in the exp_member_data table to allow NULLS and set the default value to NULL?


texts:
When I try and upload an images (any kind), I getting this PHP error:

Fatal error: Uncaught Error: Call to undefined function EllisLab\ExpressionEngine\Library\Mime\finfo_open() in /path_to_ee/backend/ee/EllisLab/ExpressionEngine/Library/Mime/MimeType.php:117 Stack trace: #0 /path_to_ee/backend/ee/legacy/libraries/Mime_type.php(106): EllisLab\ExpressionEngine\Library\Mime\MimeType->ofFile('/tmp/phpfeusnS') #1 /path_to_ee/backend/ee/legacy/libraries/Upload.php(172): Mime_type->ofFile('/tmp/phpfeusnS') #2 /path_to_ee/backend/ee/legacy/libraries/Filemanager.php(2042): EE_Upload->do_upload('file') #3 /path_to_ee/backend/ee/legacy/libraries/Filemanager.php(1083): Filemanager->_upload_file(Array, 'file') #4 /path_to_ee/backend/ee/EllisLab/ExpressionEngine/Controller/Files/Files.php(200): Filemanager->upload_file('1', 'file') #5 [internal function]: EllisLab\ExpressionEngine\Controller\Files\Files->upload('1') #6 /home/jakecovert/wo in /path_to_ee/backend/ee/EllisLab/ExpressionEngine/Library/Mime/MimeType.php on line 117

I'm running EE version 3.5.1.

My PHP version is 7.0.27.  Any thoughts on what I can check?

Really appreciate any thoughts.


texts: Create a list of entries where parents status is open

texts:
I have 2 channels, artists and artwork.

I want to display the artwork entries where their parent entry, in the artists channel, has the status set to 'open'.

I would like to show all the fields from the artwork entry.

As I can't search against the parent field status using the channel entries tag i presume I will have to use the query module, which I am happy to do.

What query would I use to show the entries?

Thanks


texts:
I cannot open any child page generated by EE in 2 of my 3 sites which use Multiple Site Manager. Only my 'home site,' which contains all the EE system files, can open child pages. I have them listed below for reference:

Site 1, can open child pages: http://beta.autouplinktech.com (home site)
Site 2, cannot open child pages: http://dev.autouplinkusa.com
Site 3, cannot open child pages: http://dev.customerlifecycle.com


texts: Native Calendar Tag: Disable next_path or previous_path if no entries?

texts: Anyone know how to "unlink" the {next_path} or {previous_path} for {exp:channel:calendar} if there aren't any entries for the next or previous month when building the mini-calendar?


texts: Importing Cartthrob Orders Data with DataGrab

texts:
I'm using Export It to export CartThrob orders channel data, and import in to another site using DataGrab.

When importing the orders channel with DataGrab one of Custom Fields is "Order Items" (which is a CartThrob Order Items field type). However, the corresponding custom fields options in the "Value" column are individually listed like this:

order_items/product_title - eg, Waiting Here For You
order_items/product_quantity - eg, 1
order_items/product_price - eg, 0.00
order_items/product_price_plus_tax - eg, 0
order_items/product_weight - eg, 0
order_items/product_shipping - eg, 0
order_items/product_no_tax - eg, 1
order_items/product_no_shipping - eg, 1
order_items/product_extra - eg,

I need to assign all these values to the single Order Items field.

Any ideas?


texts: Entries no longer have a "Status" option, and disappear when saved

texts:
I recently upgraded to Expression 2.7.1. I'm experiencing problems with publishing, or in this case, republishing entries. In the "Options" tab, the "Status" dropdown is now empty.

When I changed something in a particular entry, it loses it's "Open" status and becomes unpublished, and I'm unable to swtich it back to "Open."

My local test site doesn't have this issue, but my live production site does.

Any ideas or places I should look first?

Thanks,
Jason


texts:
I have two chunks of data in the same 'viewModel' template:

{!-- Getting data for kitchen list --}
{exp:stash:set_list
    name="kitchen_list"
    parse_tags="yes"
    save="yes"
    scope="site"
    refresh="1440"
    replace="no"
}
  {exp:channel:entries
    channel="kitchen_list"
    disable="member_data|pagination|categories"
  }
    {stash:title}{title}{/stash:title}
    {stash:url_title}{url_title}{/stash:url_title}
    {stash:url_title_path}{url_title_path='sky-island-natural-foods/whats-cooking'}{/stash:url_title_path}
    {stash:description_brief}{kitchen_description_brief}{/stash:description_brief}
    {stash:description_full}{kitchen_description_full}{/stash:description_full}
    {stash:photo_product}{kitchen_photo_product}{/stash:photo_product}
  {/exp:channel:entries}
{/exp:stash:set_list}

{!-- Getting data for kitchen list page --}
{exp:stash:set_list
    name="kitchen_page"
    parse_tags="yes"
    save="yes"
    scope="site"
    refresh="1440"
    replace="no"
}
  {exp:channel:entries
    channel="kitchen_page"
    disable="member_data|pagination|categories"
    limit="1"
  }
    {stash:title}{title}{/stash:title}
    {stash:sidebar_heading}{kitchen_page_sidebar_heading}{/stash:sidebar_heading}
    {stash:sidebar}{kitchen_page_sidebar}{/stash:sidebar}
  {/exp:channel:entries}
{/exp:stash:set_list}

It all works fine, but when I look at the stash table with Sequel Pro as I navigate the pages, it seems that the kitchen_list does not get rewritten to the database (I thought replace="no" took care of this) on each subsequent page visit, but kitchen_page does get rewritten every time I revisit a page which uses that data. So there are multiple row in the table for kitchen_page with identical data, just different IDs, but there is only one row for kitchen_list.

I expected that by caching the fragments of data and using replace="no", I would only see a single row in the stash table for that fragment, no matter how many times the stash list was called.

I can't tell if there is something off with my code, or just my assumptions/understanding of the caching. Thank you.


texts: Custom facebook button with Solspace Facebook Connect?

texts: I'm setting up Solspace Facebook Connect (fbc) for the first time and I would like to use my own custom buttons (anchor tag) instead of the ugly default button. Is this possible?


texts: Does anyone know of any poll or survey modules that work with EE3? The ones I've checked out say - on the companies' sites - that they currently work with EE2, and not yet EE3.


texts: Loading different entry revisions in ExpressionEngine 2 per environment

texts:
I'm developing a website using ExpressionEngine 2, which will sit on both a staging and production environment, both with their own database. We will be running a cron job to synchronise the databases and file structure on an daily basis.

The control panel will only be accessible on the staging environment. Here, 3 user groups can follow a workflow I have created using the status groups:

Step 1 - "Editor" edits the entry and changes the status to edited, submits.
Step 2 - "Approver" checks the content and changes the status to approved, submits.
Step 3 - "Publisher" changes the status to published, submits.

The staging environment will show any changes to content at step 1, meaning we can test the front-end of the site as required, when a change has been submitted. Whereas, the production environment is only displaying the changes if the status of all 3 steps have been competed (status=published). This is exactly how we need the environments to work.

The problem arises when we need to edit a page that has previously been published. If an editor is to edit an entry and the other two steps aren't completed in the window before the next synchronise, the content from the page will vanish on production (since status=edited).

We understand that a solution for this could potentially be found by using the 'Entry revisions' (http://ellislab.com/expressionengine/user-guide/cp/content/publish.html#revisions-tab). If we were able to grab the last published revision of an entry if status!=published, we could display this on the production environment until the page next reaches a published state.

Can anyone tell me if this is at all possible?

If not, can anyone suggest any other potential solutions?

Thank you, Chris


texts: Possible to use count conditional to change channel entry display?

texts:
Is it possible to use a count conditional (or equivalent conditional) to change the display of an entry tag depending on how many entries there are?

For example, I have a grid field which I am using for a simple image gallery. I would like to add a condition so that if there is only one entry the image will display as a hero banner, but if there is more than one entry it will change to a gallery.

I wasn't sure if the following (or similar) was possible:

{if count > 1}
   <!-- Gallery -->
{if:else}
   <!-- Hero Image -->
{/if}

Thanks for any help.


texts: Where can I change the wording of the Reset Password email FreeMember sends?

texts:
The question says it all. Here's the why:
When FreeMember sends a password reset email, the text is as follows:

[screen_name],
To reset your password, please go to the following page:
http://www.example.com/member/reset-password/[hash]
Then log in with your username: [username]
If you do not wish to reset your password, ignore this message. It will
expire in 24 hours.

The problem is that I'm using an email+pwd login method, not username+pwd, so I'd like to alter the email to say "email" instead of "username".
Another issue is the fact that the email shows the member's "username" instead of "email". In most cases members registered via FreeMember's system, so their email and username will be the same. However, for members created prior to implementing FreeMember, or members registered via other methods (EE backend, etc), their username is probably not the same as their email, making the Reset Password email's wording misleading.
Both issues can be fixed by changing the wording and tags of the FreeMember email, so... where can that be found?


texts: Email addresses display as [email protected] in entries

texts:
I am using EE v3.4.3.

In the 'options' tab of entries, the 'author' field displays the list of members. Until recently they showed correctly, but for some reason, they now display like:

[email protected]
[email protected]
[email protected]
[email protected]
...

Does anyone know why this is, and how to turn it off?


texts: Low Replace - Change Case & Remove Space

texts:
Is it possible to change the case AND change spaces to underscores using Low Variables?

Basically I was trying to use...

{exp:low_replace find='\s+|\w+' replace='_|\l+' regex='yes' multiple='yes'}Flavours yo{/exp:low_replace}

But I tihnk I may have got the RegEx completly wrong (Not my strong point!)

Because this just outputs

  L


texts: EE 2.8.x - "All data associated...will be permanently deleted!" when installing an addon

texts:
This is an odd one and I'm wondering if we can just confirm here that it is some weirdness created in EE 2.8.x.

I just had a NavEE user contact me that when INSTALLING the module, they are seeing the message, "All data associated with this fieldtype, including all associated channel data, will be permanently deleted!".

It seems to me that this message is here in error - but I wanted to confirm. I can replicate the issue when installing addons in EE 2.8.

MW


texts: New to Expression and have problems updating navagation bar

texts:
Site was out sourced and getting no response from developer.

I need to add a new link to one of the navigation bars.
There are 2 top navigation bars on my site.

Main home page code:

{html-open}
{html-head-open}
{exp:low_variables:single var="meta"}
{exp:low_variables:single var="favicon"}
{exp:low_variables:single var="css"}
{exp:low_variables:single var="js"}
{embed="partial/html-head-close" is_home="true"}
{exp:stash:get name="content"}
{exp:low_variables:single var="html-close"}

code from Secondary navbar

        {exp:structure:nav start_from="/" max_depth="1" css_class="list-inline list-unstyled" current_class="active" include="15|20|21"}

I tried to add a 6 (page I need) to the Include and no go.
If I remove the any of the include numbers and view rendered template they drop off and I can add them back, but new item won't work.
any pointers in the right direction would be great.

Thank you

John


texts:
Having some issues with paths on my build, i get a different output using {site_url} to {path='site_index'}, {site_url} outputs the correct value but {path='site_index'} outputs the correct value with lots of backslashes on the end, really can't work out why, any ideas as to why this would happen?

{site_url} - outputs http://www.domain.co.uk/

{path='site_index'} - outputs http://www.domain.co.uk//////////////////////

We're using the standard EE config.php and the correct URL is in general confiration. We're on v2.8.1 of EE and are using Structure, really can't think what else would be causing this?


texts:
I'm working with the basic file upload preferences from inside of the control panel. I'm uploading videos and audio files for a podcast. Some are larger HD files (1gb) some are small mp3s (15mb). The folder permissions are all set correctly. The paths are all set correctly. And the upload directories have been working using the synchronize button previously.

Ok, so I uploaded files via FTP to the correct folder.
I go into file upload preferences and click synchronize
I click submit and wait, and wait, and wait, and wait.
It says that it successfully completed processing 60 files in the folder.

It lies . . . some files are missing. They are there in FTP but not available to EE. I need help. If I purchased ChannelFiles would that solve my problem?


texts: Is there a way in Solspace Freeform 4 to have the admin notifications sent "from" or "reply-to" the value an email field? That way when the admin receives a notice that a form had been submitted with a question, they can simply hit reply? I have a number of clients that forget to copy/paste the email in the body of the notification.


texts: Import data into EE database in a module - matrix error

texts:
I am importing data from another site via a module i am building. The channel I am importing to has a matrix field.

I am doing this like so:

    ee()->load->library('api');
    ee()->api->instantiate('channel_entries');
    ee()->api->instantiate('channel_fields');

    $data = array(
        'title' => 'TEST'
    );
    ee()->api_channel_fields->setup_entry_settings($this->customer_channel_id, $data);
    $success = ee()->api_channel_entries->save_entry($data, $this->customer_channel_id);

    $entry_id = ee()->api_channel_entries->entry_id;

Problem i am having is this error:

A PHP Error was encountered
Severity: Warning
Message: Illegal string offset 'is_draft'
Filename: matrix/ft.matrix.php
Line Number: 2409

A PHP Error was encountered
Severity: Warning
Message: Illegal string offset 'is_draft'
Filename: matrix/ft.matrix.php
Line Number: 2461

Any ideas?


texts: Help embedding categories into Switchee value field

texts:
I’m trying to embed categories into a Switchee value field but can’t get it to work. Can you help?

To try to deal with the parsing order problem, I call the Switchee embed from my site/index template:

{embed="site/.cases" categories="{exp:channel:categories category_group="1" style="linear" backspace=“1”}{category_url_title}|{/exp:channel:categories}"}

And this is the site/.cases template:

{exp:switchee variable="{segment_1}" parse="inward"}

    {case value="{embed:categories}"}
        {embed="site/page" channel="page"}
    {/case}

    {case default="yes"}
        {embed="site/404"}
    {/case}

{/exp:switchee}

It fails.

I tried embedding via Low Variables and Template Morsels both directly and through a similar embed method as above and they failed, too.

I’m at my wits end! Any tips?


texts: Content field in new entries do not write to the database

texts: I have been experiencing an issue in our UAT environment in regards to new entries. When I publish a new entry, the entry id and the title get written to the database, but the text in the Wygwam field does not. I have to go back into the entry again and paste the content into the Wygwam field and then it will write to the database. Has anyone ever experienced this before? Does anyone have any idea what the culprit could be?


texts:
I've just been building a small commerce site using Store and Stripe.

It's all working pretty sweetly but I need to know if there's a way I can move the member to another group once their order has been placed successfully.

Is that possible?


texts:
I wish to change the styling of a list of Asset files.
See https://dl.dropbox.com/u/34921860/styling%20example.pdf

Since the elements are added using Javascript the html and css changes cannot easily be inspected using Firebug.

Wrapping the Asset-field in a div with id="nn", makes it possible target the inserted table with div#nn table and change the background to a dark colour. So far so good.

However, the list that appears when right-clicking on a row needs also to be restyled and div#id ul does not work. Any ideas?


texts:
I've tried several variations of the following trying to render events that are in category 21 for logged in user groups 1 and 6. However, they still render if you're logged out (guest id 3). Any thoughts?

    {if '{logged_in_group_id}' == '1' OR '{logged_in_group_id}' =='6'}
{exp:calendar:cal
date_range_start="today"
show_months="6"
pad_short_weeks="n"
category="20|21"
}

{if:else}
{exp:calendar:cal
date_range_start="today"
show_months="6"
pad_short_weeks="n"
category="not 21"
}

{/if}

{event_title}

            {event_summary}
       {categories}cat: {category_id}{/categories}
        {event_start_date format="%F %j, %Y"} {event_start_date format="%g:%i %A"} {if '{event_end_date format="%M %d, %Y %g:%i %A"}'} - {event_end_date format="%g:%i %A"}{/if}

    {if no_results}

No Results

    {/if}
{/exp:calendar:cal}


texts:
the goal:
-show the remainder of the current month's events always
-when end of month is near (after the 18th, for example), also show the upcoming month's events

this is what i have presently, which works:

{if {current_time format="%d"} > 18}
  {exp:calendar:cal calendar_id="5057" date_range_start="today" show_months="2" pad_short_weeks="n"}
{if:else}
  {exp:calendar:cal calendar_id="5057" date_range_start="today" show_months="1" pad_short_weeks="n"}
{/if}

however, it's not terribly efficient, when all i really want to do is toggle the show_months="1" to "2" -- and the template doesn't like that i have two opened {exp} and only one closed {/exp}

thought i could get away with:

show_months="{if {current_time format="%d"} > 18}2{if:else}1{/if}"

but that just fails silently. any tips?


texts: Redirects from Joomla to ExpressionEngine

texts:
I'm trying to create some 301 redirects from an old Joomla site to a new EE site. As you may know, Joomla URLs look something like this;

index.php?option=com_content&view=article&id=59&Itemid=125

This is obviously hitting EE's index.php. I have tried using Detour Pro but all that happens is when you hit the URL above, it just removes the index.php so i'm wondering if there is a way around this?

Thanks.


texts: Events Addon? Need something like Meetup.com

texts:
I need to sell "events" to registered members of my EE site. Requirements are as follows:

Admin shall be able to create an event. An event is defined as having a start date/time, maybe an end date/time, a venue for the event, and a description.
Admin shall be able to set "pricing rules" for the event, primarily based around member details. For example, it's $0 for women, $10 for men, etc.
Admin shall be able to set quotas for the the event, primarily based around member details. For example, allow 10 men and 10 women to register for the event. Or allow 20 members to register, regardless of gender. Etc.
Allow members to register for the event. If the event requires payment, then process the member's payment.

Is there a native EE addon for this? If not, is there some 3rd party addon I can look at?


texts:
Scoping out a project that is going to be for Training Courses. Each Course will have a range of Topics and each topic will have a sequence of content followed by a Quiz and finally a summary (including quiz results). A notional structure of the content might look like this.

Course

Topic

Content
Content
Content
Quiz

Topic

Content
Content
Content
Quiz

Topic

Content
Content
Content
Quiz

Summary

As the Topics need to be shared across courses, I'll be creating a Course entry that then uses a relationship field to specific the Topics within it. My problem at the moment is how I might create a set of pages within a Topic...it's almost like entries within an entry.

For the quiz component I'm either going to employ the 4-ee.com or eeXam addon, but still evaluating this as they have their own set of problems.

Has anyone any insight into how I might do the Topic pages? My initial thought was to use a Matrix field which each row being a page.


texts: Freeform {if form:has_errors} outside {exp:freeform:next}

texts:
Im using {exp:freeform_next:render form="my_form"} to display my form in collapse DIV. Form is only shown as user clicks on button.

How can i use {if form:has_errors}show{/if} or similar to show DIV as errors are found?


texts: USPS International Shipping not working all the sudden

texts:
We did a site a while back and they have been shipping products all over the country as well as internationally.

They were able to ship something as recently as last month and now they are unable to get international shipping rates. It is saying "No Shipping Options Available".

I am using Brilliant Retail 1.0.2.5 and EE v2.1.3.


texts:
I am having an issue with my provider/hoster and I am looking for some advise.

We send Freeform forms with SMTP with this config. Looks like many others do the same.

$config['mail_protocol']    = 'smtp';
 $config['smtp_server']      = 'tls://smtp.gmail.com:465';
 $config['smtp_username']    = 'mail@xxx.xx';
 $config['smtp_password']    = 'xxxxx';
 $config['email_newline']    = "\r\n";
 $config['email_crlf']       = "\n";

The sending goes on port 465 but Google recommends port 587. And port 587 is what our hoster wants us to send on. But EE can not.

Our hoster opened port 465 for us. When they do server updates the port gets closed again and we don't get any forms untill we realize and ask to get the port open again.

If we use port 587 we get this

Message: fsockopen(): SSL operation failed with code 1. OpenSSL
Error messages: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong
version number

This leads to the question: does EE  try to do someting like this

openssl s_client -tls -crlf -connect smtp.gmail.com:587

or

openssl s_client -ssl3 -crlf -connect smtp.gmail.com:587

instead of what our hoster finds to be the right way

openssl s_client -starttls smtp -crlf -connect smtp.gmail.com:587

He gave us this link for a reading
http://blog.mailgun.com/25-465-587-what-port-should-i-use/

I just do understand a little of these thing and wonder if my hoster is right in saying EE has to send SMTP mails different than it does at the moment?

Or is our hoster not flexible enough? I know people on hosters that have no issues sending over port 465 all the time.

I appreciate some feedback on this.


texts: Is ExpressionEngine compatible with MariaDB?

texts: I have about 50 sites ranging in versions from 2.5 up to 2.11 of ExpressionEngine.  All are running on MySQL 5.6.35 at the moment.  I am debating about upgrading out server to use MariaDB 10 but wanted to see if there are any known issues with older version of EE before I do so.


texts:
Is it possible to put a exp:channel entries tag loop into a wygwam field? Simply placing something, e.g.,

{embed="Common/sidebar_people" show_channel="48"}

... fails. The "Allow EE Code" plugin I thought was related but after installing it and looking through the php I'm unclear on its purpose.


texts: Upgrade to EE 2.8.1 with services_json error

texts:
I just upgraded a site from EE 2.5.5 to 2.8.1 and I get this error after I try to login:

  Unable to load the requested class: services_json

I have searched and found reference to Zoo Members and Field Editor, neither of which I have on this site.

I did some additional searching and found a file in Expressionengine/libraries/services_json.php in the 2.5.5 install files that I backed up. However, I can't find anything that would reference this file. If I add the file I can log in but I get a white screen, without the file I get the error message. Either way I am toast.

Insight are most welcome.

Thanks.


texts: Using MSM & solspace user - members with same email address needed

texts:
i currently have several MSM sites in our EE install, our member database is synched (one way to us) with a partner with many thousands of members, which get access to one of our MSM sites, and are assigned automatically a member group.

We now find ourselves with some of the members of our partner that want some of our other services, but there email address is already in our system - giving access to that member group, giving those individual members different groups are not an option. And ideally i done want to ask them to supply a different email address, for the second account.

As these particular members are created and approved in house, and not through registration. the best solution i can think of is to create a second account with a dummy email address, then modify the email address to their second account to their actual address, so it will now be in the database twice.

Is there potentially any issue with this?

If not is there anything we need to look out for?

Using EE v2.5.3

Thanks!


texts: How to update field-type table when a channel gets deleted?

texts:
I am trying to build a Expression engine field-type(add-on),where I will be storing the field-type data in a separate table(Ex:field_type_data).I am able to update the records of the table "field_type_data" whenever a entry or multiple entries gets deleted,through function delete($ids) in ft.fieldtypename.php which gets called whenever a entry is deleted and $ids is an array containing the ids of the entries that are deleted.

But I am not able to do the same when a channel itself is deleted by user.Because with the deletion of a channel all the entries related to that channel also gets deleted.

Can anyone help me please,how to and where I can know the list  of entries related to the channel when it gets deleted.

Thanks in advance


texts: Can i specify the site id to the path variable in a template?

texts: I.e., something like what embed does, <a href="{default_site:path='group/template'}">.


texts: Help with DevDemon Updater 3.3.0 giving PHP error with php 5.6

texts:
If I run DevDemon Updater 3.3.0 on EE 2.10.1 and set php version to 5.6 I get this block of errors.

If I uninstall DevDemon Updater 3.3.0, or if I set php back to 5.5 the errors go away.

Grateful for any advice on what to do about this.

A PHP Error was encountered

Severity: 8192

Message: Non-static method Updater_helper::arrayExtend() should not be called statically, assuming $this from incompatible context

Filename: updater/api.updater.php

Line Number: 109
A PHP Error was encountered

Severity: 8192

Message: Non-static method Updater_helper::getThirdPartyPath() should not be called statically, assuming $this from incompatible context

Filename: updater/api.updater.php

Line Number: 132
A PHP Error was encountered

Severity: 8192

Message: Non-static method Updater_helper::getThemePath() should not be called statically, assuming $this from incompatible context

Filename: updater/api.updater.php

Line Number: 133
A PHP Error was encountered

Severity: 8192

Message: Non-static method Updater_helper::getThirdPartyThemePath() should not be called statically, assuming $this from incompatible context

Filename: updater/api.updater.php

Line Number: 134
A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /var/sites/v/v8a.2gc.org/public_html/_sitemanager/codeigniter/system/core/Exceptions.php:170)

Filename: core/Common.php

Line Number: 475


texts: List of EE3 Add-ons, EE4-compatible out-of-the-box

texts:
Sometimes is not official, but there are some EE3 add-ons not yet reported as EE4 compatible, but they are !

Here a list of EE3 add-ons tested on a fresh EE4 install, that works like a charm:

CE Cache 2.0.2
CE Image 3.0.1
CE String
Backup Pro
Channel Polls 3.0.1


texts: How can I allow directory access to public

texts:
I have a website with expressionengine. website struture is

/system

-- Codeigniter

---- system

-- expressionengine

/test

I have a folder test, I would like to make it accessible to public. I am not getting anything from htaccess.

How can I done it?


texts: How to retrieve a value from a Store field within a Playa relationship with a Matrix Cell?

texts:
I can't quite get my head around this one but I'm using Expresso Store, Playa, and Matrix. The parent entry has a Matrix field with a Playa relationship field in one of the cells. This links to a product which is of the Store field type. I need to retrieve the price of that product in the other channel. How?

To clarify, I have a 'Lists' channel and a 'Gifts' channel. The Gifts channel stores the product info using the Store field. The Lists channel is the parent and makes the relationship. The product is related (by title of the product) in a Matrix field in the parent. I can extract the title of the product successfully like this:

{product_list} {!-- Matrix field of the parent --}
    {product}  {!-- Matrix cell of the above field --}
        {title} {!-- Title of the product successfully retrieved --}
    {/product}
{/product_list}

The above works. The following doesn't work but it's the kind of thing that I want to be able to do but don't know how with this level of nesting or retrieval:

{product_list} {!-- Matrix field of the parent --}
    {product}  {!-- Matrix cell of the above field --}
        {title} {!-- Title of the product successfully retrieved --}
        {product_info} {!-- Store field of the related product in Gifts channel --}
            {regular_price} {!-- Price field within the Store field --}
        {/product_info}
    {/product}
{/product_list}


texts: How to delete template variables, template partials, templates completely in EE5?

texts:
Templates, partials and template variables are automatically stored as files since EE4. But they are also stored in the database (in the tables exp_global_variables, exp_templates, exp_snippets - note that the table-names still refer to the old identifiers from EE2: Snippets, Global Variables).

If you delete e.g. the file of a template variable via ftp the variable will be recreated (using the the according entry in the DB). So the right way is to delete the template variable via the Control Panel -> Templates.

I had a serious issue with a template variable that recreated itself infinitely because its name was too long (reported here on Github). This variable still is shown in the CP, in the DB and as file. I don't dare to delete it via the the CP because I fear that the infinite loop will run again.

How can I delete this template variable completely, safe and forever? I am thinking the best way would be deleting first the according entry in the database and then deleting the file via ftp.

Thanks for any contribution!


texts:
I am using EE3 with Cartthrob and am trying to get the shipping to update via ajax.  Basically a new customer is checking out and when they are creating their account and they select their state the shipping charge should update based on the shipping table I have created.  I have the ajax setup on the page but the shipping charged are not being updated unless I manually reload the page.

How can I troubleshoot to see why ajax isn't working.

    {!-- ///////// SAMPLE TEMPLATE //////////////// --}
    {!-- CT ajax uses jQuery. Include your own or EE's included version --}
    link to --> jquery-1.12.0.min.js
    {!-- CT uses jQuery form for ajax form submissions --}
    link to --> jquery.form.js
    {!-- CT sample templates  form for ajax form submissions --}
    link to --> store/cart.js

jQuery(document).ready(function($){
    // this will set JSON as the return data type, and identify update_cart as a callback function
    var cart_form_options = {
        success: update_cart,  // post-submit callback
        dataType: 'json'
    };

// this is the callback script. whenever a form is updated, this script will be called
function update_cart(data, statusText, xhr, $form)  {
    // "data" is the returned data in json format
    // you can access each of these using data.item_name as shown in the example below
    if (data.success) {
        // update the XID hash in the form so we don't run afoul of EE's secure forms
        $("input[name=XID]").val(data.XID);
        // using the json data object's data to update various totals. in this case
        $('.cart_tax')          .html( data.cart_tax );
        $('.cart_total')        .html( data.cart_total );
        $('.cart_shipping')     .html( data.cart_shipping );
        $('.cart_subtotal')     .html( data.cart_subtotal );
        $('.cart_discount')     .html( data.cart_discount );
    }
    return true;
}

// if any input is changed, the form is sent via ajax. you probably wanna be more selective.
$("input[type=text], select").live('change', function(){
    // finding the form that contains this input
    var form = $(this).closest("form");
    // initialize the form
    $(form).ajaxForm(cart_form_options);
    // submit the form.
    $(form).submit();
});

});

when I do n inspect I am seeing this error:

Uncaught TypeError: $(...).live is not a function
    at HTMLDocument. (checkout:79)
    at i (jquery-1.12.0.min.js:2)
    at Object.fireWith [as resolveWith] (jquery-1.12.0.min.js:2)
    at Function.ready (jquery-1.12.0.min.js:2)
    at HTMLDocument.K (jquery-1.12.0.min.js:2)


texts: How to test P&T's field pack checkbox, unchecked

texts: I want to test for a single unchecked checkbox using P&T's field pack checkbox. Anyone know the syntax for this?


texts: Expresso Store: disable "add to cart" when variant is out of stock

texts:
I don't have the jQuery/Javascript knowledge to solve this one; it has something to do with events and the order in which the DOM gets manipulated.

Expresso Store provides dynamic classes to let you output stock level info for a product's variants dynamically (as the user selects different combinations using the modifier <select> menus). So if you have a hat product and it has modifiers called Size and Color, you can show the user that Large Red and Medium Green hats are out of stock, but there are 5 Medium Red hats available. That is, assuming you've set stock levels for every SKU, you can insert this into your template:

Stock Level for this variant:

Sorry, that variant is out of stock.

The contents of the span in the first paragraph will update dynamically with a number, and the second paragraph will only be shown if the stock level for the variant is 0. This works even on page load: that is, Store's javascript assesses the stock of the "default" variant and manipulates both paragraphs above appropriately.

Here's the thing: for out-of-stock variants, I'd like to not only insert the "out of stock" message but also disable the add-to-cart button, so users can't attempt to add them (which would confusingly take them to an empty cart page).

So it seems a shortcut would be to check the visibility of the "out of stock" message, then apply the disabled attribute to the add-to-cart button:

function check_stock() {
    if($('.store_product_out_of_stock').is(':visible')) {
        $('#add-to-bag').attr('disabled','disabled');
    }

    else {
        $('#add-to-bag').removeAttr('disabled');
    }
}

And I'd better run that both on page load and on modifier changes:

$(document).ready(function() {
     check_stock();

    $(".controls select").change(function() {
        check_stock();
    });
}); // end doc read

The problem is, this only works when the modifier <select> menus are changed; it doesn't work on page load.

Despite being inside $(document).ready(), my check_stock() sees the .store_product_out_of_stock element as visible even when Store's javascript is hiding it. Once the user starts changing modifier selects, everything works perfectly, but I really need it to work on page load.

So I then tried checking the numeric value of the variant's stock level:

function check_stock() {

    var variant_stock =  ($('.store_product_stock_level').text());

    if ( (variant_stock != '') && +variant_stock < 1 ) {
        $('#add-to-bag').attr('disabled','disabled');
    }
    else {
        $('#add-to-bag').removeAttr('disabled');
    }
    console.log("variant stock is " + variant_stock);
    console.log("numberized stock is " + (+variant_stock));
}

But this has the same problem: the console shows that, on page load, jQuery is only getting an empty string for variant_stock, even though right there on the page (and in the web inspector) I can see Store has correctly inserted the stock level.

Is there some way, on page load, to make my jQuery wait for Store's javascript to manipulate the DOM before swooping in and checking the stock situation?


texts: Unable to install, system folder path does not appear to be set correctly

texts:
I am experiencing some weird behaviour here. I am installing EE fresh from the zip, no changes, no bootstraps or anything like that. However, the system folder path message keeps showing up. It doesn't really matter what i enter as a var, allways getting the message.
I tried the var as it comes out of the box (./system), i tried a hard-coded server path (/home/pvfonds/public_html/dev/system), and everything else i could think of.


texts: Autoplay videos using Fancybox to open video served from Vimeo via Channel Videos

texts:
I am using Channel Videos from DevDemon to pop up videos in a Fancybox modal. The videos are hosted on Vimeo. Does anyone know how to make the videos autoplay?

I am looping through the relational entries like so:

    {exp:channel:entries
        disable="category_fields|member_data|pagination"
        category="1"
        channel="program_module"
        status="open"
        show_future_entries="no"
        show_expired="no"
    }
        {video_groups_to_include}
            {exp:channel_videos:videos
                status="open"
                entry_id="{video_groups_to_include:entry_id}"
            }

                            {video:title}
                            {video:description}

            {/exp:channel_videos:videos}
        {/video_groups_to_include}
    {/exp:channel:entries}

Then the video embed is done here:

{if logged_out}
    {redirect="{site_url}"}
{/if}
{if logged_in}
    {exp:channel_videos:videos
        status="open"
        video_id="{segment_2}"
        embed_width="630"
        embed_height="354"
    }
        {video:embed_code_hd}
    {/exp:channel_videos:videos}
{/if}

The js to kick off the modal is here:

jQuery(".fancybox-lesson").fancybox({
    'padding'       : 0,
    'autoScale'     : false,
    'transitionIn'  : 'none',
    'transitionOut' : 'none',
    'title'         : this.title,
    'width'         : 630,
    'height'        : 354,
    'href'          : this.href,
    'type'          : 'ajax'
});

I don't care at which stage I accomplish this as long as it occurs once the video is loaded.


texts:
I am using Stash static caching (and it is AWESOME). I'm using Stash 2.4.5, Mustash 1.0.9,  and EE 2.7.2.

On my Mustash 'Static cache rewrite rules' page, in the example .htaccess code, it has the following lines:

# Check if cached index.html exists
RewriteCond /path/to/my/static_cache/1/$2/index.html (.*\.(.*))$
RewriteCond %1 -f

# Rewrite to the cached page
RewriteRule ^(index.php/*)*(.*)(/*) http://www.domain.com/static_cache/1/$2/index.%2 [L]

If I use that entire .htaccess file as is, I get weird URLs as I navigate throughout my site. The first time I visit a page (no static cache file exists yet), the URL is fine (like http://www.domain.com/about)... but the next time I visit it, I get a weird URL, like http://www.domain.com/static_cache/1/about/index.html.

Another weird thing, when I visit the home page http://www.domain.com/, if it's been cached, the url is http://www.domain.com/static_cache/1//index.html. (notice the //).

.
.
.
HOWEVER, I found that if I remove the domain part from

RewriteRule ^(index.php/*)*(.*)(/*) http://www.domain.com/static_cache/1/$2/index.%2 [L]

to make it

RewriteRule ^(index.php/*)*(.*)(/*) /static_cache/1/$2/index.%2 [L]

then caching works and my URL's are fine...

Everything seems to be working (with the exception of the issue I noted in this question (Stash static caching not ignoring POSTs like I think it should).

But it does seem like it's indicative of some underlying issue in the way I've set things up. I assume things should work normally with the example .htaccess file provided from that Mustash page. Any ideas what I've done wrong?


texts:
I’ve got a filtered portfolio project where the user will be able to add images or videos which pop up (like an overlay) without directing to another page. The user can also opt to add text content which then designates that the entry SHOULD direct to another page. This is all based on a class (ajax-link, video-link, or image-link). I am trying to figure out how to configure the backend entry fields and the logic on the template that allows EE to know what class the user has selected.

Below is a sample of the three entry types coded out in HTML. I’ve highlighted the three content types. The image and video aren’t different, because they’re just direct URLs - but the issue I can’t seem to figure out is how to code the entry tag when the user wants to direct to another page.

The “ajax-link” class is the one that sends the user to a separate page.

Book Design

Graphic

Notepad Design

Design

Creative Cup

Graphic

I’m not sure how to set this up with conditionals or on the backend so that the site “knows” what to do based on what class the user has input.

Any help would be so greatly appreciated!!


texts:
I'm having an issue with a simple search returning no results for a channel. All the fields in the channel are plain text fields, and all are set to be searchable. All entries in the channel have a status of "open".

I can display the contents of this channel's entries just fine, but search is consistently sending me to the no results page. My search form code is:

{exp:search:simple_form form_id="peopleSearchForm" no_result_page="search/no-results" result_page="search/index" channel="employee_list" search_in="everywhere" status="open" where="all" show_expired="yes" show_future_entries="yes"}
<input type="text" name="keywords" id="keywords">
<input type="image" src="/images/interface/btn_search.png" name="people-submit" id="people-submit" alt="Search People">
 {/exp:search:simple_form}

Any suggestions greatly appreciated. I'm completely stumped.

(Site is using EE 2.8.1)


texts: Edit single posts in a channel via admin panel

texts:
Possible Duplicate:
  Limit Channel Entry to 1?

I have a site where one section of the site is a list of Useful links. Rather than have the client create a new channel post that will only include Website name & URL as the two channel fields, I set up a matrix that they can add to so, that they can move entries up or down.

I have explained to them the set up, that they must go in and edit this entry rather than add new channel entries for this, but just to be safe I want to lock this channel so they can't post new entries, just edit an existing. The member group preferences only allow edit & post, not edit only so just wondering has anyone done something similar.

Or should I just change my set up to channel entries for each useful link and create a low reorder set to move them round.


texts:
I've implemented the solspce-ratings plugin on a client website and have enabled the captcha, but am still getting spammed.
Any ideas on what else I can do to avoid getting spam ratings ?