texts:
is there a way to force or overwrite the price of an item?

I tried this: <input type="hidden" name="items[playa{count}][price]" value="0" />

Thanks


texts: exp_stash rows aren't being expired / deleted

texts:
I'm using stash fairly heavily in an addon and creating user scoped stash variables. All worked great but I'm finding that my exp_stash db table is growing and growing without any rows ever expiring.

Is there a setting I'm missing somewhere or is buying Mustash the only way to prune the exp_stash table (other than writing an addon myself and triggering it with cron).

Cheers

Jim


texts:
I wish to add a form to my website that will allow customers to add testimonials to the ‘testimonial’ channel as pending status. I have created the channel and custom fields i need and a new status pending. I used mijingo-expressionengine2-episode7 to guide me but since i am using EEv2.5.2 i think exp:channel:entry_form is no longer of use, so I am using exp:safecracker. Eitherway nothing happens when i submit. Filling in entry_id=”{segment_2}” throughs error - ‘You must specify a valid entry to edit.’ but in the EE documentation is says i can leave blank for data entry and this does nothing.

{exp:safecracker form_class="saef-form" channel="testimonial" status="pending" return="contact/thankyou/en/"  entry_id="" use_live_url="no" url_title="" }

HTML Output hidden fields

<form id="publishForm" class="saef-form" method="post" action="http://mysite.com/site/add-testimonial"  enctype="multipart/form-data" >

<input type="hidden" name="ACT" value="56" />
<input type="hidden" name="RET" value="http://mysite.com/site/add-testimonial" />
<input type="hidden" name="URI" value="site/add-testimonial" />
<input type="hidden" name="XID" value="d4fdd1ccc89be4d869e62c56a38f37ff277b7f6f" />
<input type="hidden" name="return_url" value="contact/thankyou/en/" />
<input type="hidden" name="author_id" value="6" />
<input type="hidden" name="channel_id" value="12" />
<input type="hidden" name="entry_id" value="0" />
<input type="hidden" name="status" value="pending" />
<input type="hidden" name="site_id" value="1" />
<input type="hidden" name="return" value="contact/thankyou/en/" />
<input type="hidden" name="allow_comments" value="n" />

<fieldset class="contactDetails">

Title
<input id="title" name="title" type="text" size="35" value="" placeholder="Title"/>

Role
Role of the person who gave quote, eg: General Manager
<input id="role" name="role" type="text" size="35" value="" placeholder="Role"/>

Hotel name
 Affiliation / hotel name
<input id="affiliation" name="affiliation" type="text" size="35" value="" placeholder="Hotel name"/>

Your Thoughts
Instructions:  The main testimony goes here.
<textarea id="testimony" name="testimony" cols="40" rows="4"></textarea>

<input id="saef-submit" class="ba-button" type="submit" value="Submit" />
</fieldset>
</form>

i have removed all other scripts from the page. What am I missing?


texts: search through category names using search function?

texts:
Is it possible to parse through and display category names using the search function? So, beyond simple channel entries I mean.

If so (or if this requires some kind of add on) could you provide me with details?

I have it doing what I want for a client, but they may want to be able to look through the categories as well. The reason for this, is that they're selling certain brands and they'd like for potential customers to not only look through the product name ('Apple Green') but also the brand ('Bendel').


texts: How to make sitemap template accessible from root?

texts: I have created a template that outputs my XML Sitemap dynamically (via Channel entry loop). Currently, it's in commmon/sitemap.xml. How do I tell EE that whenever http://somedomain.com/sitemap.xml is accessed, it should output commmon/sitemap.xml?


texts: Any way to denote (in back-end) channel entries that have been selected in a Matrix?

texts:
As an example, say I have an Authors channel, and I have an Authors List channel. The Authors channel contains a lot of biographical info on my writers; the Authors List channel lets me create a listing of writers like maybe "Fall 2013 Best-Selling Authors." The Authors List channel is primarily populated by use of its Matrix field, which is where you're picking the authors to list.

What would be really nice is if there is some way when looking at any author in the Authors channel's back end to tell if that Author is currently included in a Matrix field in that Authors List channel. So that I can bring up Donna Tartt and see that she was listed in my Authors List entries of "Fall 2013 Best-Selling Authors," "Fall 2002 Best-Selling Authors," "Winter 1993 Best-Selling Authors," and "Fall 1992 Best-Selling Authors."

This would save a ton of time and be much less error-prone vs our Plan B, which is having to create a big text field in the Authors channel and go in and manually note by hand each time we include an author in an Authors List.

Thanks!

(oh, forgot, while I'm asking for the moon: what would be REALLY awesome is if this automagically generated listing of Authors List entries could include both its entry and its date. rough dates are sort of inherent in my example Authors List entry titles above, but not in my actual data. thanks!)


texts: Add-ons are linking incorrectly in control panel

texts:
I've taken over a site created in EE and transferred it to my host. Since doing so, the addon tabs are linking incorrectly. What I mean is that on click it sends the admin to:

index.php?S=b84310dd48d074edf67c8d6c44848df407c64147&D=cp&C=addons_modules&M=show_module_cp&module=structure

Rather than sending the admin to

admin.php?S=b84310dd48d074edf67c8d6c44848df407c64147&D=cp&C=addons_modules&M=show_module_cp&module=structure

All default admin area links work fine, it is just Structure and rEEservation that have this problem.

How can I insure they link to the correct url?


texts:
I have an issue with the Mollie payment method.
I keep getting this error "The Issuer field is required."

Any ideas why?


texts:
Recently I have noticed a question mark symbol in my sites slugs.

http://www.url.co.uk/?/contact/

Does any one no what this means and why it has suddenly appeared?


texts:
I am experiencing recurring issues related to Mod_Security with EE on my current host, HostGator. I have seen HostGator suggested as a good host for EE projects in several articles and my work already has a production server there so that's what I've been using, however a little while back I experienced an issue with JS libraries not loading in the admin control panel which turned out to be a Mod_Security issue, and HostGator does not have any Mod_Security settings in their Cpanel, so I had to have a back and forth with their support team which took several days to resolve.

I am now getting another Mod_Security message when I try to use the EE Chanel Form tags.

To test the feature I made this simple form:

{exp:channel:form channel="order_reports"}
    <input type="text" name="title">
    <input type="submit" value="Submit">
{/exp:channel:form}

And when I submit I get this:

  Not Acceptable!
  An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.

I do not want to have to contact support for my host every time I need to run a form post action, or anything else for that matter.

Since HostGator no longer seems viable due to their lack of Mod_Security controls, I would like to know from some people here who have experience with the more complex features of EE what hosts they use or would suggest. I will need to switch from HostGator and I am not in a position to troubleshoot a bunch of different hosts until I find one that doesn't have a problem with EE.

Thank you!


texts: Including php code in Postmaster message

texts:
Has anyone experience in using php code in postmaster messages?

I am developing a weekly email using parcels and have tried to include code as simple as echoes and prints but there has been no output. Is there a preference somewhere that I can update?


texts: simple search results not including body content

texts:
I am using the simple search by Expression Engine and the searches are fine, but they are just returning title results and not searching the body content. I have the excerpt search in the channel properties set to the right channel field in the channel preferences, but I am not sure if there is anything else I need to do.  Below is my search code and my search results code.

SEARCH CODE

{exp:search:simple_form channel="blog|documents|static|overview|company|products|media|services|support|solutions" result_page="search/results"}

          <input type="text" name="keywords" id="keywords" placeholder="Search Site">
        {/exp:search:simple_form}

SEARCH RESULTS CODE

{exp:search:search_results switch="resultRowOne|resultRowTwo"}
            {if count == 1}
{/if}

                {title}

{auto_path}

            {if count > 0 && count == total_results}
{/if}

        {/exp:search:search_results}

Thanks!


texts: Using Low Variables and Grid to return a count

texts:
I'm building a slideshow using Grid and Low Variables. I have a checkbox to publish or hide the slide. What I can't figure out is how to get a count on the amount of items that are checked.

Using this:

{exp:low_variables:parse var="lv_homeslider" sort="random"}
    {lv_homeslider:checked}
{/exp:low_variables:parse}

total_rows returns 5, but I only have 2 checked. Any ideas how to get the number for rows where checked=true?


texts: Retrieving a Store Field from Inside a Relationship Field

texts:
Using EE 2.10.1 and Store v2.4.0
I need to get the value of a Store field out from a related entry.
My code is currently this (abbreviated to make it easier to read):

{exp:channel:entries channel="products" limit="1"}   <!-- main product tag -->
  {exp:store:product_form}                           <!-- starts the form allowing multi add to cart submit -->
    {related_item}                                   <!-- opens tag pair for relationship field and loops related items -->
      {exp:store:product entry_id="{related_item:entry_id}" disable_form="yes"} <!-- output individual related item-->
        <p>{related_item:title} - {price}</p>        <!-- Really really want Store field access here! -->
      {exp:store:product}
    {/related_item}
  {/exp:store:product_form}
{/exp:channel:entries}

However I've tried any number of ways to get the price (or any other Store value) to show without any luck e.g.

{price}
{related_item:price}
{related_item:regular_price}
{related_item:store_field_name:price}

but so far no joy with anything.
Is this even possible?!


texts: Freemember Update Profile forms not working

texts:
Another day, another question!

I've started using Freemember (really like the inline validation).

So i have an update password form.

{exp:freemember:update_profile return="members/account/{member_id}/password/success" require="current_password" error_handling="inline" form_class="update-account"}

In order to change your password you must first enter your current password.

        Current password

            <input type="password" name="current_password" value="{current_password}" class="span11" />
            {error:current_password}

You can now choose a new password. For security, we recommend a minimum of 6 characters.

        New password

            <input type="password" name="password" value="{password}" class="span11" />
            {error:password}

        Confirm new password

            <input type="password" name="password_confirm" value="{password_confirm}" class="span11" />
            {error:password_confirm}

    <input type="hidden" name="username" value="{username}" />

    <button type="submit" class="btn btn-green" name="submit" value="Update Profile">Update My Profile</button>

{/exp:freemember:update_profile}

it validates inline perfectly, however it does not actually change anything.  i.e, if I put in the right "current" password, and change the password, it refreshes, but it does not redirect and no setting are changed.

Any ideas?


texts: Freemember - logout doesn't keep https protocol

texts:
I have a https section of my site I am using with Freemember.  But when I logout it takes me to the http version.  How can I make it logout but stay https?

Logout


texts: How can I keep track of sales count with Store, Matrix, & Playa?

texts:
The Scenario

I'm using Store, Matrix, and Playa addons for an ecommerce site. I now need to add a Gift List section to the site. This is not the typical scenario as an admin user will create the list in the control panel (CP)—no front-end sign-up and users can't add products themselves.

Constraints

I'm already using Store on other ecommerce parts of the site as a regular shop setup so I need all orders to still feed into the Store Orders section and the Store template variables available on the front-end as currently.

All SKU's must match a printed catalogue and they must all be unique within the system.

The Problem

Each gift needs a Quantity Requested and Quantity Received value associated to it. At first thought you think you can use the Limit Stock option in the Store Product Details field but this would tie those values to each and every gift meaning that if it was requested at a later date by someone else with different quantities then it wouldn't be possible to enter it as the SKU would be a duplicate. The SKUs have to match those of a printed catalogue and in the system obviously they have to be unique.

So I need to disassociate Quantity Requested and Quantity Received from the product itself. If I were to create these as separate columns in a Matrix field I need a way to keep a running counter of products purchased, match them to the list, and increment the Quantity Received column in the Matrix field. The checkout is running on Store so I have to use Store's template variables and hooks to retrieve the details upon order completion and then somehow post them back to update the Quantity Received field in the EE CP.

The Setup (not in full or including non-important fields for brevity):

Channel: Gifts

Fields: Store Product Details

Channel: Gift Lists

Fields: Matrix

Within a matrix row I have a column for Gift (Playa field) to pull in a requested gift. Then a column for Quantity Requested and another for Quantity Received. Both of these fields are Number fields containing a simple integer. Looking like this.

The Questions

Is that setup the best way to handle things? If so, what is the best way to grab the values from a completed order run through Store and then update the appropriate entry in the Gift Lists channel? Would I be able to use Safecracker to post back and update values? Or is there a better way to do it in PHP? Recommendations?


texts:
Can anyone help me with URL rewriting using Solspace SuperSearch as our SEO guys have suggested that these could be improved:

We have 5 dropdowns for make, model, fuel type, min price and max price. The form uses POST. Examples of the search results generated pages are:

Blank Form
http://www.motors.coop/search/results/search&cf_make=&cf_fuel=&cf_price-from=0&cf_price-to=50001/

Make Only
http://www.motors.coop/search/results/search&cf_make=Audi&cf_model=&cf_fuel=&cf_price-from=0&cf_price-to=50001/

Diesel Only
http://www.motors.coop/search/results/search&cf_make=&cf_fuel=Diesel&cf_price-from=0&cf_price-to=50001/

Standard stuff, you'll agree. What our SEO company has suggested that these be re-written to something like this:

http://www.motors.coop/search/bmw/diesel/5001/18000

I agree that these are cleaner - is there a regex someone can suggest that can achieve this? The big issue is a user may not necessarily choose anything from any of the dropdowns. In this case, can the URL be something like:

http://www.motors.coop/search/all/all/all/1/100000

Hope someone can help. Thanks in advance.


texts: Low Search with more than one form in a single template?

texts:
I'm sure what I'm trying to do is possible but frustratingly I just can't get it to work. I have a form setup and working fine which uses category checkboxes and everything works well on the results page. However I have tried adding a similar form which searches different categories originally expecting it to work with the same results page but it doesn't output anything. I have tried giving it a different results page and again nothing is output between the low search results tag. I tried differentiating the searches by giving them different collections but this didn't work either..

Is it possible to have more than one low search form per page in this way?

Here is the form code, with the bottom one working perfectly...

    {exp:low_search:form collection="barristers" search_mode="all" result_page="search-barrister-practice-areas/{segment_2}" query="{segment_3}"}

                    {exp:channel:categories channel="barristers" style="linear" category_group="1" show="1|2|3"}
                        <input type="checkbox" name="category[]" id="{if category_id == "1"}commercial{/if}{if category_id == "2"}eu{/if}{if category_id == "3"}publiclaw{/if}" value="{category_id}"{if category_id IN ({low_search_category})} checked="checked"{/if} /> {category_name}

                    {/exp:channel:categories}

                <input type="submit" value="SUBMIT" class="button" />

{/exp:low_search:form}

Seniority

                    <input type="checkbox" name="all" value="All" id="seniorityall" /> All

{exp:low_search:form collection="barristers" search_mode="all" result_page="search-barristers/{segment_2}" query="{segment_3}"}

                    {exp:channel:categories channel="barristers" style="linear" category_group="2" show="7|8|9"}
                        <input type="checkbox" name="category[]" id="{if category_id == "7"}qc{/if}{if category_id == "8"}junior{/if}{if category_id == "9"}doortenant{/if}" value="{category_id}"{if category_id IN ({low_search_category})} checked="checked"{/if} /> {category_name}

                    {/exp:channel:categories}

                <input type="submit" value="SUBMIT" class="button" />

{/exp:low_search:form}

I have this test code in the results page for the form which is not outputting anything:

        {exp:low_search:results query="{segment_3}" collection="barristers" orderby="date" sort="desc" status="not closed" disable="member_data"}

 {low_search_category}

            {title}

        {/exp:low_search:results}

I'd be so grateful if someone could help with this...

Thanks,

Alex


texts: Get old fieldtype data to prepend with new?

texts:
I am trying to create a fieldtype that requires comparison to it's previous data. Any idea how to get this data in the save() function? I tried using $this->field_data but that just returns the "new" data submitted to the form.

To provide a tangible example, what I am trying to do is take the prior data and store it with the new data as an array so my save() function looks like this (if $this->field_data worked this should have):

function save($data)
{
    if (!empty($this->field_data)) $data = json_decode($this->field_data, TRUE);
    $data[] = $data;

    return json_encode($data);
}


texts: Cartthrob adding package items while quantity is set to zero

texts:
I'm trying to only allow items to be added to Cartthrob's cart based on a selection made. However, before I can do that, I need to solve why the cart is updating with items even though their amount is set to zero.

How can I tell cartthrob to either/or give me a non-selected option, or to ignore adding an item whose quantity is 0, or both?

My code is as follows:

{exp:channel:entries channel="store_packages"}
    <select name="packages" id="packages-select" class='width-70 margin-bottom'>
        <option value="">Please Select</option>
        {packages_packages}
            <option value="{sub:row_id}">
                {sub:title}
            </option>
        {/packages_packages}
    </select>

I'm hoping to use the above to be able to hide/show package options based on this selection.

{exp:cartthrob:add_to_cart_form class='forms' entry_id="{entry_id}" no_tax="{no_tax}" no_shipping = "{no_shipping}" return="/store/view_cart"}

    {packages_packages}
        {exp:cartthrob:item_options row_id="{sub:row_id}" entry_id="{entry_id}"}
            {if dynamic}
                {option_label}
                {input}
            {if:else}
                {if options_exist}
                    {select class='width-70 margin-bottom'}
                        <option {selected} value="{option_value}">{option_name} {if option_price_numeric != 0} +{option_price}{/if}</option>
                    {/select}

                        <input type="text" id="product_quantity" name="quantity" value="0">

                {/if}
            {/if}
        {/exp:cartthrob:item_options}
    {/packages_packages}

Here I'm showing all options in their own select lists and setting the initial quantity to 0.

        <button type="submit" class="btn btn-green">Add to Cart</button>
        Checkout
        View Cart

{/exp:cartthrob:add_to_cart_form}

{/exp:channel:entries}

Yet, when I hit "Add to cart" it adds the first option of each select list with a quantity of one.


texts: Next/Previous Entry Linking works on some entries but not others

texts:
I setup the next/previous entry linking code in an embed because it is positioned within a channel entries tag in the template. Same template, some entries display the links fine, and others don't. Can't figure out why it works for some and not others.

Template debugging says: Channel Next/Prev Entry tag error: Could not resolve single entry page id. But i don't know why.

{exp:channel:entries channel="artists" disable="categories|member_data|category_fields|pagination" dynamic="yes"}
    {embed="artists/.next_prev"}
{/exp:channel:entries}

.next_prev embed:

        {exp:channel:next_entry}

Next: {title}

        {/exp:channel:next_entry}
        {exp:channel:prev_entry}

Previous: {title}

        {/exp:channel:prev_entry}


texts: WYSIWYG-editor removes template partials/template variables

texts:
I am using Wygwam as WYSIWYG-editor. Now when I add a template variable or template partial inside an html-tag in a field which uses Wygwam it will be removed when switching from source to visual.
That means I enter e.g. in the source-code something like
test1

test{variable2}

and after switching to Wysiwyg-layout the code changes to
test1

test{variable2}

Note that the variable outside the tag still is there (variable2), but the one inside the a-link is gone (variable1).
The "restrict allowed HTML"-setting is off, see image:

Possibly the CKEditor-setting "extraAllowedContent" could help me, but I am not sure and do not understand how I could change this setting.

Thanks for any help with this!


texts: EE2 White screen on front end and not on admin after letsencrypt install attempt

texts: I have a git repo with an expressionengine 2 site we are trying to test on newer versions of php so as to upgrade it. My colleague tried to set up letsencrypt on it last night and made some change to apache, and probably not to any code: I came in after him and restored from git so all the files are as before, but the apache config has changed, and possibly other things relating to ssl. Can anyone explain how I can step through the code to see where the error is happening, or if it's something else? I managed to step through until I got to codeigniter/core/CodeIgniter but from there I am not sure what is happening.. If you know what files are run in succession each time EE 2 loads, it'd save me a lot of time debugging and I'd be really grateful!


texts: Notice on admin after upgrading from 2.9.0 to 2.10.2

texts:
I upgraded the expression engine from version from 2.9.0 to 2.10.2.It started showing the notice in the admin:

  Your ExpressionEngine installation’s version (2.9.2) is not consistent
  with the reported version (2.10.1). Please update your installation of
  ExpressionEngine again.

What does this mean? Need help.
PS: I am new to ee


texts: Cartthrob: how would I order products by popularity?

texts:
I need to set up a filter that will allow products to be ordered by:

Title
Price
Popularity

The first two seem simple enough but I'm not sure what the most efficient way of ordering by popularity might be?


texts:
I have filled in my checkout with the following details, note I have left Shipping Address 2 blank:

Billing
First Name: “Billing Name 1“
Last Name: “Billing Name 2“
Address 1: “Billing Address 1“
Address 2: “Billing Address 2“
City: “Billing City“
Post Code: “Billing Post Code“

Shipping
First Name: “Shipping Name 1”
Last Name: “Shipping Name 2”
Address 1: “Shipping Address 1”
City: “Shipping City”
Post Code: “Shipping Post Code”

I then submitted this to Paypal Express and choose to pay via CC within PayPal. The fields are populated thus:

Billing Information
First Name: Shipping
Last Name: 2
Address Line 1: Shipping Address 1
Address Line 2: Billing Address 2
Town: Shipping City
Postcode: Shipping Postcode

Postal Address
Same as billing address: checked

I understood that my billing details should have been used..

I read in the gateway instructions ”PayPal only displays shipping addresses on their payment capture page. If a shipping address is captured on your site, it will be sent to PayPal. If a shipping address is not captured on your site, the billing address will be assumed to be the shipping address and will be sent to PayPal instead.”

So I have submitted the billing info but it is still taking the shipping info.. except for the Shipping Address 2 field which I left blank. Also the first and last name are being cut down.

Is this working as it is meant to do or am I missing something?


texts: CE Image tags in stash:set stop parsing when I add a stash:get

texts:
I had the following code which worked:

{exp:stash:get_list name="project:{segment_3}" scope="site"}

{exp:stash:set name="main_content"}

    {exp:stash:get_list:nested name="project:{segment_3}:slider" scope="site"}
      {if project_slide_type == "Image"}

      {if:else}

      {/if}
    {/exp:stash:get_list:nested}

{/exp:stash:set}

{/exp:stash:get_list}

But then I wanted to use a different stash list for logged in users. I couldn't apply parse_conditionals="yes" to the stash:set tag as there were other conditionals in there I don't won't parsed early. So I tried this:

{exp:stash:set name="logged_in" parse_conditionals="yes"}
      {if logged_out}
        {exp:stash:get_list:nested name="project:{segment_3}:slider" scope="site"}
      {/if}
      {if logged_in}
        {exp:stash:get_list:nested name="project:{segment_3}:slider:private" scope="site"}
      {/if}
    {/exp:stash:set}

    {exp:stash:get_list name="project:{segment_3}" scope="site"}

      {exp:stash:set name="main_content"}

            {exp:stash:get name="logged_in"}
              {if project_slide_type == "Image"}

              {if:else}

              {/if}
            {/exp:stash:get_list:nested}

      {/exp:stash:set}

    {/exp:stash:get_list}

But now, although the logged in / logged out functionality works, the CE Image tags don't parse. Looking at the template debugger output, it seems that the {project_slide_image} tags never parse. The only difference is the stash:get tag. I tried adding parse_tags="yes" on the stash:set tag as well as increasing the parse_depth, but nothing seems to make the tags parse.

Any help would be greatly appreciated! (Using EE 2.7.2, PHP 5.5.3 and Stash 2.5.3)


texts: Children of Parent to Parent Relationship

texts:
I have what I thought was an obvious task, but I must be doing something incorrect or have encountered a bug.

I have a Parent relationship to another Parent. The parents are teams, and sometimes teams partner, so through the relationship of parent to parent, when looking at one team, I can show the applicable partner team(s)

In my template, I am outputting the first parent (team)/children (members) without issue.

But when I try to output the children of the relationship team, it works, but only shows one entry no matter what parameters I play with. It’s not looping through showing them all.

I've tried siblings, but then I get the results from any relation, not the direct one I am wanting. This simple enough, yet not working.

{rel_partner_teams}
  <div class="member_img">
    {rel_partner_teams:rel_team_members:file_member_photo}
  </div>
{/rel_partner_teams}


texts: Problem deleting videos using 'Channel Videos' Plug in

texts:
I'm using 'Channel Videos' plug in which works fine to display videos on my sites page. But when I try and delete a video from the entry, it appears to be removed looking at the control panel, I click submit and the video comes back again and still displays on the control panel and on the site. I'm using Channel Videos 3.1.0 and EE 2.5.5

Any help would be appreciated thanks.


texts:
I've a client who has written an article with footnotes.

Those footnotes are notated by them adding [i] [ii] and so on.

For some reason though, WYGWAM seems to take that as a cue to open italics.

Won't be surprised to find this is one of CKEditor's advanced config settings but not sure what should be changed.

Has anyone experienced similar?


texts: CE Img breaking pages in Grid/Matrix when size parameters specified

texts:
I've tried setting up an image gallery using CE Img and the new Grid fieldtype but it's giving white screens.
The code looks like:

{image_gallery}

        {exp:ce_img:pair src="{image_gallery:image_file}" width="300"}

        {/exp:ce_img:pair}

{/image_gallery}

I've found that the same code works fine in the standard content entries, but not in the blog channel.

I've tried stripping out all the other template code apart from the above code inside a minimal channel entries tag pair, but it still gives white pages with no HTML in it.
I've tried on local and development servers.
I've tested the CE Img is working on other images and it is fine.
I've tried switching to Matrix instead of Grid, but still breaks (altho also breaks in content channel too now)
I've also tried the {exp:ce_img:single} tag and it still breaks.

What does work:
I've tried the Grid code with  and it's fine.
I've tried the Grid code, with the exp:ce_img:single tag but without specifying the width or height and it does work. As soon as I specify a width/height in the ce_img tag it breaks.

The above code snippet, without the width="300" works fine.

So what could be causing the page to break, simply by specifying the width or height of the image?

(Running EE 2.7.2 build 20131008  and CE Img 2.4.4)


texts: FreeMember register/create account return 403 error

texts:
When submitting the freemember register and login pages I am getting 403 errors returned. This isn’t happening on any other form/page on the site and the unsubmitted pages themselves load fine. Its just when I submit the form that the 403 is thrown back.

Could it be related to SSL?


texts: I'm customizing a HTML template, any suggestions on plugins for good page load time?


texts:
Is there an equivalent of a Change Log addon to track members actions in the CP for EE?

I'm haven't seen anything like that unless I'm missing some native functionality.


texts: {order_id} in CartThrob not using correct ID

texts:
I have the radio button for "Create sequential order/invoice numbers" and it is adding the proper order id to the entry title, but I'd like {order_id} to return that as well.

order_id column in exp_cartthrob_order_items has a completely different number.

For instance:

"Last Order Number" field shows the next ID should be 548. In the DB the last order_id was 3487. As I said, the 548 is showing up as the entry title, just not saving as the order id. Any thoughts?

R


texts:
Is there a way of exporting all products and data to a CSV file from carthrob expression engine v2.8.1?

Kind regards,

Dan


texts: Capturing post processed template into PHP variable

texts:
Is there a way to capture in PHP a post processed version of an embed?

I have a footer embed template.  There are 2 rendered states for the footer, user logged in and not.  What I would like to do is cache the rendered version of the footer so that it does not need to be reprocessed on every page.  The only time that EE processing needs to be done to rerender the template is when the user changes their login state.

I cannot create 2 footers and then do template caching them through EE because the footer contains information unique to each user so the caching needs to be done on per session basis and controlled through PHP.

So what I would like to do is capture the rendered state of the footer into a PHP variable and then store it into memcache.  Is this possible?


texts:
I'm trying to port a table to a channel. Can anyone tell me the basics of what's involved? So far what I think is:

1) Insert record into exp_channel_titles
2) Get entry_id that was just generated for 1)
3) Insert record into exp_channel_data with entry_id from 2)

Is that it? I'm not sure if any more relationships exist. Thanks for your time.


texts: Expression Engine Search Issue: Incorrect Key file for table

texts:
The search query below is failing and results in a "Incorrect Key file for table '/tmp/....'; try to repair it" SQL error.

SELECT DISTINCT(t.entry_id), t.entry_id, t.channel_id, t.forum_topic_id, t.author_id, t.ip_address, t.title, t.url_title,
t.status, t.view_count_one, t.view_count_two, t.view_count_three, t.view_count_four, t.allow_comments, t.comment_expiration_date,
t.sticky, t.entry_date, t.year, t.month, t.day, t.entry_date, t.edit_date, t.expiration_date, t.recent_comment_date, t.comment_total,
t.site_id as entry_site_id, w.channel_title, w.channel_name, w.search_results_url, w.search_excerpt, w.channel_url, w.comment_url,
w.comment_moderate, w.channel_html_formatting, w.channel_allow_img_urls, w.channel_auto_link_urls, w.comment_system_enabled, m.username,
m.email, m.url, m.screen_name, m.location, m.occupation, m.interests, m.aol_im, m.yahoo_im, m.msn_im, m.icq, m.signature, m.sig_img_filename,
m.sig_img_width, m.sig_img_height, m.avatar_filename, m.avatar_width, m.avatar_height, m.photo_filename, m.photo_width, m.photo_height,
m.group_id, m.member_id, m.bday_d, m.bday_m, m.bday_y, m.bio, md., wd. FROM exp_channel_titles AS t LEFT JOIN exp_channels AS w ON t.channel_id = w.channel_id
LEFT JOIN exp_channel_data AS wd ON t.entry_id = wd.entry_id LEFT JOIN exp_members AS m ON m.member_id = t.author_id
LEFT JOIN exp_member_data AS md ON md.member_id = m.member_id WHERE t.entry_id IN (4,20,38,42,94,104,106,118,134) ORDER BY entry_date desc LIMIT 0, 8

We believe that the exp_channel_data table and its 1371 columns is at the source of the issue . When we remove it from the query (by removing wd.* before the FROM) everything works as expected. We've read multiple stackoverflow posts dealing with "Incorrect Key File" issues in SQL and have noted that the most common response was to check that /tmp wasn't running out of space, but our /tmp directory has 15GB free. We've come across a forum post on your website that may relate to what we are experiencing; https://ellislab.com/forums/viewthread/61159/#301157.


texts:
I am trying to use EE templates the same way I use CI controllers. Normally, when I need an "API" wherein my JS can call a URL (maybe with some POST variables) and get a JSON (or JSONP) response back, I'll just put these API methods in a CI controller and make sure I set the content type before returning a response.

There doesn't seem to be a JSON template type. So, I've installed this http://devot-ee.com/add-ons/http-header and set the content type using the add on.

Is there a native way to do this in EE? Or was I right to use the add on?


texts:
I'm having an issue with a site where some members are experiencing sideways photos uploading via a Safecracker form.

I've looked into it, and found a solution (using Channel Images to upload, crop and rotate), but the client is reluctant to make the changes required. It seems EXIF data is at fault, i.e. not being stored correctly. But I'm not 100%.

Has anyone else experienced a similar issue? And was there a solution?


texts: Can templates be filtered for text content?

texts:
One of our templates requires the word 'update' in the text copy, but whenever we edit it to add the word, on save we get "Error. The page you requested was not found."

The same error happens when the word is joined to another, for instance 'updatefor'.

We have tested and get the same error regardless of whether the word is added as text copy or even a class name.

The same error is not found when we edit page or channel content with the same word.

Any ideas?


texts: Category Related Categories (Category Siblings)

texts:
I have a channel where I'm filtering entries by category and then 'stacking' categories to produce an ever decreasing list of results, i.e. showing all entries with category A and B etc.

In the right hand column I display a list of all categories which the user uses to filter the results, however as I start to stack categories (show all entries with category A and B) the category list on the right starts to more often than not return 'no results' (as expected).

What I would like to achieve is a list of categories on the right which displays only categories which are siblings of those already selected. This is much better for usability because it will guide the user to the categories with results for the stack they are creating.

EDIT:

I guess essentially it's two queries to return a list of 'related' category IDs:

SELECT * FROM exp_category_posts WHERE cat_id IN ({current_category_ids}) GROUP BY entry_id

to get the {entry_ids} related to the current categories ({current_category_ids}) and then:

SELECT cat_id FROM exp_category_posts WHERE entry_id IN ({entry_ids}) GROUP BY cat_id

To get the categories associated with those entries, the question is of course... how does that perform with 1,000's of entries and categories!

Any thoughts? Or am I barking up a very tall tree?


texts:
Using Channel Images to upload images. They are uploaded at full size and no resizing is set. When I save the image off the browser and open it Photoshop, they are back to original sharpness. Also, I have an image zoom installed and when you hover the image in the magnified area is sharp. Is this EE or a browser issue? It seems like it IS being resized somewhere along the way...

After / Before


texts: Creating a custom type in content element add-on a possibility or not?

texts:
I want to know if its possible to create a custom type in content element fieldtype addon.Presently it contains a list of types like Code,Gallery,Heading etc and I want to add another type like "freeform pro" which should give an option to select all the free forms available and user can select one.
  And in the template it should load the respective form,may I know if thats a possible thing to start working on it,if so can anyone please help me out with how should I approach this development.

Cheers
Nisar


texts: Why am I getting 4 results in reverse_related_entries?

texts:
EE 2.5.5. I've got a {exp:channel:entries} on products channel. Inside I have a {reverse_related_entries id="reviews"}. I'm getting 4 reviews, when there are only 2. The first 2 are blank. I have 2 products entries, but only displaying 1 product based on URL.

When I go to the other product, I still get 4 reviews, but they're all blank.

Thanks for your help.

Update: Here's the full code for the product page:

{embed='includes/header'}

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

{embed='includes/topnav'}
{if no_results}

Unknown product.

{/if}

{title}

{product_description}

        {reverse_related_entries }

        {/reverse_related_entries}

    {if product_features > ''}

Features

    {product_features}

    {/if}

    {if vehicle_callouts > ''}

    {/if}

    {reverse_related_entries id="product_reviews" }
    {if no_reverse_related_entries}
    {if:else}
    {if count == 1}

Reviews

    {/if}

        {review_synopsis}

{review_author}

{review_publication}

    {if count == total_results}

    {/if}
    {/if}
    {/reverse_related_entries}

{/exp:channel:entries}

{embed='includes/footer'}


texts: In what table in EE1 are banned user IPs stored?

texts: I have a client, using EE1.6.8, that acquired a list of spammer IPs and added the list to Admin > Members > Banned Members.  I don't know what IPs were in that list, but whatever the case, the front end of the site is now blank and neither of us is able to log in as super admins to undo the change. So I'm looking to go into the database itself, find the offending IP list and remove it.  But I haven't managed to figure out in which table this list of banned members would be stored.  Can someone point me in the right direction so I can help my client restore his site?


texts: ExpressionEngine 2.7.3 How do I directly execute a query against the database?

texts:
I navigate to
Tools | Data | SQL Manager

Select "Database Query Form"

select table_name from information_schema.columns where column_name = 'flippityfloop'

I select "Enable MySQL Error Output" and hit [Submit]
The response contains the text "The query you submitted did not produce any results."

I go back to the "Database Query Form" and execute the same query with a valid column_name and I get no response. I get redirected to a root admin page with no route parameter in the QueryString.

Before I start inspecting Http Headers, can someone explain to me why this is happening? How do you get the following query to execute against the underlying database and display the results to the screen?

select table_name from information_schema.columns where column_name = 'title'


texts: Expression Engine Channel relationship field not showing

texts:
I have a channel "Page".

In the page channel, I have following fields where {assign_parent_page} is a relationship field http://puu.sh/81UAe.png that I have made so as I can assign the channel entry as sub entry for another channel entry. I.e In the PAGE channel, if i have suppose 10 enteries, I want that entry 2 to be a sub entry for entry 1. So, in to obtain this, I made a relationship field ("For eg: sub page in WORDPRESS")
http://puu.sh/81Ul5.png

{title}
{page_body}
{page_title_image}
{page_sidebar_check}
{assign_parent_page}

In my template, I am using this code as

{exp:channel:entries channel="page"}
   {assign_parent_page}
      {assign_parent_page:title}
   {/assign_parent_page}
   {title}
   {page_body}
{/exp:channel:entries}

But the output , I am getting is http://puu.sh/81UqV.jpg {assign_parent_page} {assign_parent_page:title} {/assign_parent_page}

Can anyone please help me how to display a relationship field.

Any help is really appreciated.


texts: Rabo Omnikassa support for exp:resso store

texts:
I bought a license of Exp:resso Store, with the idea that it supports Rabo OmniKassa payment gateway, as mentioned by Exp:resso itself in there release notes.

Now I want to setup the payment gateway information and notice that it is not available in store 2.x.

So I contacted Exp:resso about this and they said that the payment gateway was dropped as of version 2.x. But they also told me that will look at it at try to re-implement it.

That's what they said 6 weeks ago. But radio silence since that last e-mail.

I e-mailed them a couple of times, but only receiving a default answer but no real answer. In my opinion, the support is very bad voor Exp:resso store.

Hopefully, they well fix my issue. But until then, maybe I have to fix it myself. But how will I be able to do so, of does anyone already have done this? Implementing support for Rabo OmniKassa.


texts: Search dynamic content in Expression Engine

texts: I am displaying JSON data dynamically on template and I would like search that dynamic content using search option. Any solution in Expression Engine???


texts:
Looking to clean up an EE-installation used for playing etc for some years now, and move relevant content (channels) into a complete new installation.
Any thoughts on tools or methods for doing this?

The only "specials" used are Channel Images and Tagger from DevDemon.
Both old and new sites will be MSM, but only main site to be exported.

Preferred workflow:
Set up new EE-installation
Install relevant plugins etc
Create relavant channels etc
--Import data from old site
Change DNS to new site

Channels, Configs, Variables, Templates etc I'll do manually but it would be nice to be able to transfer content.

/patrick


texts: Group entries by custom field from a relationship field

texts:
I've got the following code inside a channel entry tag. It works fine, but i just want to group it by {which-day} and then orderby another custom field.

{parents field="lessons"}

        {parents:title}
        {parents:day"}

{/parents}

Is it possible to do this natively?


texts:
My client just received an email from PayPal regarding SHA-256 as follows:

"At PayPal, security and safety are our top priorities and, as a result, we’re implementing a series of security upgrades throughout 2016 and 2017. To comply with industry standards, we need to move our endpoints to stronger encryption known as SHA-256 by 30 September 2016.

In preparation for our transition to SHA-256, we'll be undertaking critical testing between 17 June and 29 September 2016. During this period, if your systems aren’t SHA-256 compatible, your business’ ability to accept payments with PayPal may be temporarily impacted. We strongly recommend that your systems are compatible with SHA-256 by 17 June to ensure that your business isn’t interrupted. If your systems aren’t SHA-256 compatible by the full cutover on 30 September, your business will be unable to accept payments with PayPal until changes are made. For more details about our transition to SHA-256, please go to 2016-2017 Merchant Security Roadmap Microsite."

The site is running EE v2.7.3 and Store v2.2.0 using PayPal Express as the gateway.

Is there anything that needs to be done to make the site SHA-256 compatible?


texts: Server Side Includes with EE? is it possible?

texts:
I've been trying to get SSI to work with EE, I can see the SSI code in the source but from some reason in EE it's not parsed, can anyone help with this issue?

I don't want to enable php on the page or use php includes.

I'm using SSI to include css and js assets. SSI are much faster then php include or EE templates.


texts: Creating a 404 page for ExpressionEngine

texts: How do you create a 404 page for Expression Engine? Does anyone have any tips or links to documentation or articles that cover this subject? Any help will be appreciated.


texts:
What i try to achive is to have the following user structure:

Member Group 1: Group Admin, User 1, User 2,...
Member Group 2: Group Admin, User 1, User 2,...
Member Group 3 ...
...

I want the group admin to be able to add/remove/edit members only within his group.

I know this will not be possible with bare EE install, but I hope that with some ad-ons and a bit of tinkering will be doable. I've looked on the devot:ee website, but most of the plugins are quite cryptic in description and I would love someone would point me in the right direction.

So given the problem above, how would you approach the solution. Which plugins to use? Is it even possible without writing custom extension?


texts:
I have many pages that use this tag but on one of them I am getting a white screen/server error. This page happens to be one that has the most entries that use the snippet. When I remove the snippet the page loads as expected.

My server has 700M of memory allocated.

    {categories}
        {exp:switchee variable = "{category_id}" parse="inward"}
            {case value="2"}

            {/case}
            {case value="38"}

            {/case}
            {case value="4"}

            {/case}
            {case value="36"}

            {/case}
            {case value="1"}

            {/case}
            {case value="7"}

            {/case}
            {case value="3"}

            {/case}

            {case value="11"}

            {/case}
        {/exp:switchee}
{/categories}

Any ideas? Is the code just THAT inefficient?


texts:
When trying to publish to a channel with the the Low Freeform fields I’m getting the following error. ( example: http://gotolow.com/addons/low-freeform-field/docs#example )

  A Database Error Occurred Error Number: 1054

  Unknown column 'name' in 'field list'

  SELECT name, label FROM exp_freeform_fields ORDER BY field_order ASC

  Filename: third_party/low_freeform_field/ft.low_freeform_field.php

  Line Number: 66

On the solspace support forum I found this:
http://www.solspace.com/forums/viewthread/13184/#54340

But I'm looking for a quick fix, instead of having to create all my forms from scratch.


texts: Channel Forms: Members can't edit entries authored by others

texts:
I have a channel form that allows members of a certain member group (Authors) to create one entry and to edit it. Then, members of a different member group (Coordinators) should be able to edit those entries, using a similar Channel Form in a separate template.

For some reason, members of Coordinators can't edit entries by Authors' members via Channel Forms. Viewing the template's source, nothing that is inside the {exp:channel:form} tag is rendered. They can edit those entries using the CP, though.

I've double checked Coordinator's permissions. They have access to the channel. I enabled "Include Members in PUBLISH page multi-author list?" for both groups, and all the channel entries privileges (can view/edit entries authored by others, etc) for Coordinators.

This is the form:

{exp:channel:form
     class="entry"
     channel="requirements"
     datepicker="no"
     entry_id="{segment_3}"
     return="requirements/teams"}

Team: {title}

        <input type="hidden" name="title" value="{title}">
        {!-- other fields here --}
        Comments or specific requests:
                <textarea cols="50" rows="4" id="comments" name="comments">{comments}</textarea>

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

{/exp:channel:form}

Super Admin can edit those entries, that's why I suspect is a member privilege error.

What am I missing? Thank you!


texts: Unable to load ext.rte.php after updating from V2 to V6

texts:
After updating from version 2 to version 6, I get the following error when I want to edit an entry. Can anyone help me out?
Notice
Undefined index: extension

ee/legacy/libraries/Extensions.php, line 145

    Severity: E_NOTICE

Error
Unable to load the following extension file:
ext.rte.php


texts: Prevent content editors from adding "$" to field

texts:
I'm using CarthThrob and a modify by quantity price field (CartThrob Price - Quantity). What it does:

1-3 = $5

3-9999 = $4

It lets you set a lower price as you buy more. Nice feature, but the people entering the data are adding a $ before the prices. You need to enter just the digits: 5 not $5. If the $ is added it breaks the order total calculations. All kinds of weird stuff happens, mainly the effected products are free.

How can I prevent users from entering the $ value? The setting on the field don't let me choose numeric and the CT docs don't mention this little (Big) problem.


texts: Preserving Pixel & Tonic Fieldtype Settings After Migrating to EE2

texts:
I'm in the process of migrating a site from EE1 to EE2. I successfully upgraded to EE2, but all the P&T addons (Matrix, Wygwam, Playa & Field Pack) seemed to default to either text, select, ftype_id_X, or wysiwyg under the field_type column.

How can I successfully update and preserve the fieldtype settings? I didn't see any docs specific to migration with these addons.

I noticed a ff_settings column in the exp_channel_fields table, but NULL value in the field_settings column?

When I go to edit a field group, I get theses errors (see attached). They Wygwam fields are blank in the type column?

Thanks for the help.

Wygwam Update

Wygwam fields were easy to update, I just ran a query in the DB:

UPDATE exp_channel_fields SET field_type = 'wygwam' WHERE field_type = 'wysiwyg'

Playa Update

All playa fields are text inputs right now that, which have data stored like:

[101] Title 1[102] Title 2

If I update the field settings to Playa with the correct filters, no entries are selected in the right pane of the multi-select.


texts: Auto Update Fails with error Not enough disk space available

texts:
EE v5.2.2 -> v5.2.3
PHP 7.3

Not enough disk space available to complete the update ( free bytes reported). Please free up some space and try the upgrade again.

I've triple checked permissions, and everything looks OK.

I suspect that the testing function is not returning anything.
There is plenty of space available.
I've just tested with a basic php script, disk_free_space('/') returns 8736477184 while disk_free_space('.') returns nothing.

Any ideas ?


texts: How can I find out which add-on is sending a message to the developer log?

texts:
I'm working on a site that has a lot of add-ons, some probably redundant now. It is a very long term development project.

Since a recent EE update one of these add-ons is sending an error message to the developer log.

A third-party add-on is calling $this->load->library('security'), which is deprecated as the CI_Security class has been moved to Core, so it is always loaded.

This is great, but which add-on is it? How can I find out and is there a way to get the log to show slightly more useful information?


texts:
First I am not a programmer so much may go over my head that you say.

I have been working on trying to come up with a solution to this...

Have an external site's form(Site B) post to my site(Site A) to a specific Channel.

I want to use an API of some sort that can post via REST/Javascript or CURL and do a postback if the insert was successful.  Does anyone know of an add-on that can do all this?  I know this exists in Wordpress but I am trying my best to hold onto EE, this is for a personal site of mine.  Really could use someones help, please and I will return the favor.


texts: Assets and Rackspace White screen on save

texts:
I am trying to add rackspace cloud files to assets, but when saving I get white screen. Any ideas why?

EE 2.5.5
Assets 2.1.3

I have tried with amazon s3 , and private and public repos on both to test.


texts: Issue with ExpressionEngine caching file permissions

texts:
I am trying to allow caching for my site using expressionengine 2.0. In my config.php file, I have set the following two parameters:

$config['cache_driver'] = 'file';
$config['cache_path'] = '';

Initially there was no cache directory, so I created a cache directory with 755 permissions. However, on expressengine's admin page, when I try to set caching to File, it keeps on saying in a writing next to it in red:

Note that my cache directory doesn't have anything in it. Its at the correct path

www/mysite/system/expressionengine/cache

Any help would be much appreciated


texts:
Noob question, but trying to get all channels to show single entry by latest date on the homepage of the site. User guide says leave blank and will default to all, but no luck. I have 71 channels and doing all of them would be a real bear.

thanks in advance.


texts: Solspace User + Focuslab config member password reset link returns 404

texts:
EE 2.9.2
Solspace User 3.5.1

I've got a front-end member "forgot password" form on a site that uses Solspace User and Focuslab config and I'm removing index.php with .htaccess.

My profile_trigger config value is hardcoded in the Focuslab config to an obscure string:

$env_config['profile_trigger'] = '1ue985h60r92ynd9475ht9v7'; //rand(0,time());

This usually this works like a champ, but the password reset link in the email is going to EE's 404 page.

https://domain.com/1ue985h60r92ynd9475ht9v7/reset_password?&id=qU4lQ64d

I've tried inserting index.php into the URL string to no avail:

https://domain.com/index.php/1ue985h60r92ynd9475ht9v7/reset_password?&id=qU4lQ64d

.htaccess looks like this

RewriteEngine On
Options +FollowSymlinks

#
# REMOVE WWW
#
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ https://aoma.edu/$1 [R=301,L]

#
# FORCE HTTPS
#
RewriteCond %{HTTPS} off
RewriteRule ^(.*)% https://%{SERVER_NAME}%{REQUEST_URI}

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

I can't find anything wrong with this setup but EE keeps showing 404 on the reset_password link.

Any suggestions?


texts: When I am logged in to expression engine, load times are much slower

texts:
I have a scrolling ajax section on the home page that takes ~40 msec to load when I am not logged in, and 110-130msec when I am logged in.
I have disabled all user tracking, and played with cookies vs sessions for authentication with no success.

Why is this? It is not what I would expect and I was wondering if there was anything else I could easily tweak?  I am doing performance optimizations currently, and this is just a variable that keep annoying me.  I understand for the most part that this has no effect for the typical users experience, it is just irksome to me as I am digging into which templates and configuration settings give me performance increases. (APC + CE_Cache have been by far the biggest btw)
Disabling user tracking removed multiple db writes per page load, as did template hit tracking.  Writes to the DB for every page view across multiple web servers was another bug speed increase.

My gut is telling me that user tracking being disabled is still doing the same amount of work, but is 100% correlation between being logged in on another browser tab or not.


texts: Changes /edits not reflected on live site but can publish new or delete

texts:
I have a site I moved from one server to another and everything looks good but when I try and edit an entry the changes are accepted and saved, but when I view the front/public page the changes/edits are not being shown.

If I go back and look at the entry, the changes are still saved, just not on the front end.

This is an EE 1.7.3 site

I checked my config file and the database settings are correct.  How could the changes be saved on the back end but not the front end?

Strangely I can add a new entry or delete an entry, just not make an edit


texts:
Is there a way to maintain logged-in status across sub-domains? I've tried adding a cookie prefix in config.php to no avail... not sure what else to try.

James


texts:
Hmm, taking my first steps with categories and not having much joy.

I've got {meta-title} and {meta-description} category fields set up for each category. Having trouble pulling back the correct data for the category, just pulls back the first categories custom category fields.

{exp:channel:entries channel="{product_channel}" category_group="1"}
    {categories}
        <title>{meta-title}</title>
        <meta name="description" content="{meta-description}" />
    {/categories}
{/exp:channel:entries}


texts: Using a Segment Variable to display all products with the same title in a Playa field

texts:
I've created a segment variable for brands that shows in the URL. I want to write an {if} statement that looks at the URL segment for brand and then brings back the products that match the playa field for brand. (ie. If the URL segment says BEAM I want to show all BEAM products that have been selected from the Playa filed). How do I go about doing this? Any suggestions?

Here's a very basic example. This doesn't include the code to only show products with the same name as {segment_6}. Any suggestions? I hope this helps.

<!--I only want to show the code below if segment_6 has something-->
{if segment_6 != ""}
    {exp:store:search channel="products"}
        {exp:store:product entry_id="{entry_id}"}

                <!--I want all of this code to display the products that match segment_6 with the Playa field brand selected in an entry-->
                {exp:playa:children field="brand"}
                    <h1>{title}</h1>
                {/exp:playa:children}

                <!--this should also display based on the brand in the playa field above-->
                {product_description}
            {product_image}

        {/exp:store:product}
    {/exp:store:search}
{/if}


texts: Is the "Profile:Edit" module still available?

texts:
This module is exactly what I need. But it's not possible to download/buy it from the devot-ee (https://devot-ee.com/add-ons/profileedit) website.

Does anybody know if it is still available?


texts:
I have come across this issue and I cannot figure out what I am doing wrong.

I have this code in an include file:

          <hgroup>
          {exp:channel:entries channel="site_image" limit="1"}

            {/exp:channel:entries}
            {if segment_1 == ""}{site_intro}{/if}
          </hgroup>

This all seems fine and works on all the pages of the site it is embedded into, except static pages created with the 'Pages Module'. On those pages I get this output from the browser:

          <hgroup>

          </hgroup>

Nothing at all appears between the  tag pair. Any help would be greatly appreciated.


texts:
I use redirect template variable to redirect user conditionally:

{if logged_in AND (segment_3 ~ "/[^\d+]/" OR segment_3 == "")}
    {!-- Redirect to own profile if logged in--}
    {redirect="account/profile/{member_id}"}
{/if}

But instead of redirect to it's profile, I got url like:
http://domain.com/account/profile/%7Bmember_id%7D

{member_id} prints correctly in template fine, but not in {redirect}. Also i tried use other variables in redirect, like {site_name}, etc., result the same they doesn't works too...

Have any ideas?


texts: Using the world "From" in long text fields causes data to not save

texts:
This issue has been happening for quite some time on one of our projects. I haven't been able to find a clear reason for it. We have never been able to replicate it on a different server, so we know it certainly has, in part, to do with the server, but even other installs of different CMSs (like Wordpress) on the same server do not trigger this issue.

The install is a little outdated (EE2.5.5), but I'm not sure I can convince our client to spend the time upgrading the EE install, especially if I can't say with certainty that it'd solve the issue.

This happens on Front-End channel forms as well as Admin Panel channel entries.

What happens is this: If the post is very large (500 words or more) and at some point the word "from" is used in a textarea (wygwam OR standard EE textareas), the post will say that it has "saved" but in fact, the content does not get saved, and the old content persists. It appears to be a XSS prevention (server being concerned about sql injections), but as I mentioned, it only happens for EE data, and not other CMSs.

A friend of mine mentioned that it could be the Apache mod_security, and I forwarded that to the Client's hosting provider, and they said that plugin isn't on the server.

Modules/Extensions involved in this EE install:

Calendar
Forms
Low Search
Low Seg2Cat
Low Variables
Matrix
Membrr
Mo'Variables
NavEE
P&T Field Pack
Profile:Edit
SafeCracker
SEO Lite
Stash
Wygwam
Zoo Flexible Admin

Any ideas? Any more information needed to help? I'm more than willing to provide information to help solve this once and for all.


texts: Filtering channel entries by more than one options

texts:
I need to find some solution to implement the filter for channel entries.I have a mock-up like you can see at screenshot.

User can select more than one options.

I tried to use Low Search plugin, and my first idea was to form url according to selected options. But I don't understand how can I do this. Especially as I know url must be encoded.

May be anyone can give me some idea about solution for my task?


texts:
I feel like there's an obvious answer to this, but is it possible to have one channel entries tag with multiple channels and group the output by channel? For example:

{exp:channel:entries
    channel="blog|news|press_releases"
    dynamic="no"
    limit="50"
    orderby="channel"
}
    {!-- All Blog Entries First --}

    {!-- All News Entries Second --}

    {!-- All Press Releases Entries Third --}
{/exp:channel:entries}


texts:
I'm new to Stash and I'm trying to get the data from a Matrix field. The field has two columns, image and video, and there can be more than one matrix row.

I've used the example from the Stash documentation but it's still not working for me. I am getting the non-matrix data fine but not the Matrix items. Can anyone spot what I'm missing?

Thanks.

{if segment_2_category_id}
            {exp:stash:set_list name="news_list" parse_tags="yes" parse_depth="2"}
                {exp:channel:entries channel="news" status="open|featured" orderby="date" sort="desc" limit="10" category="{segment_2_category_id}"}
                    {stash:item_title}{title}{/stash:item_title}
                    {stash:item_url}{url_title}{/stash:item_url}
                    {stash:item_date}{entry_date format="%F %d, %Y "}{/stash:item_date}
                    {stash:item_copy}{news_content}{/stash:item_copy}

                    {exp:stash:set_list:nested name="item_media" context="{entry_id}" parse_tags="yes"}
                        {news_videos_images}
                            {stash:item_image}{image}{/stash:item_image}
                            {stash:item_video}{video}{/stash:item_video}
                        {/news_videos_images}
                    {/exp:stash:set_list:nested}

                {/exp:channel:entries}
            {/exp:stash:set_list}
        {if:else}
        {exp:channel:entries channel="news" status="open|featured" orderby="date" sort="desc" limit="10"}
            {title}
        {/exp:channel:entries}
        {/if}

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

        {exp:stash:get_list:nested name="item_media" context="{item_entry_id}" prefix="nested"}

{item_video}

{item_image}

        {/exp:stash:get_list:nested}

                        {item_date}
                        {item_title}

                    {item_copy}
                    Read more

    {/exp:stash:get_list}


texts:
I hear rumors that this is possible.

I want to set up a photo gallery that only shows 10 of 100+ photos. User click paginated links to see more photos.

Anybody ever have to set this up? I hear a rumor it requires Simple Math?

If you have a solution, share it!


texts: How can I require two different sets of categories?

texts:
I have Multi site manager running a few sites, and I use categories to set which site to show each entry on as well as topics.

ie categories: site (1), site (2), all (3), games (4), movies (5)

On the site templates, I use

To call all games for site 1 I use
category="1&4"

all games for site 2 I use
category="2&4"

But how can I show "all games in category site 1 OR category all"

this doesn't work, but makes the point:

{exp:channel:entries category="1&4 OR 3&4"}

Any ideas?

Thx!


texts:
I am using the User module, and when logged in as a member, I am unable to see the user's profile while using the edit profile form. (Front-end)

The form does load, however the information contained on the form is all information from the Super Admin, not the signed in user.

I have tried the parameter username="logged_in_user" and that does not work.

Any assistance would be appreciated.

Edit:
dynamic="no" still does not work, even with username="{username}" or username="{logged_in_username}"; Also, this was tried on an incognito browser, so even if I was logged in, it shouldn't have the option to pull the super admin account info.

EDIT2:

Actually found the solution: Turns out this form cannot be used in a partial, which was the problem.


texts:
Have simple use of stash in a template.  Worked fine in EE2, but with EE3 after upgrade stash is scrambling the content.

Here is an example of the kind of issue.  Example short-hand stash-set / stash-get syntax (but using long hand doesn't fix)

Value stored via this type of tag:

{exp:stash:value parse="yes"}test{/exp:stash:value}

And retrieved via this kind of tag:

{exp:stash:value process="end"}

In EE2 the second tag faithfully provides the required value (i.e. 'test').  In EE3 (for the test string 'test') I'm seeing this:

{cf517f46e6ed2e6b3d3f7e67d457f36f1602617362}

Any ideas how I can fix this?


texts:
Getting the following error after moving site to local server. Same db and site files. DB settings configured. Any idea what the issue is?

  Exception Caught

  SQLSTATE[42S02]: Base table or view not found: 1146 Table
  'agramarketingee.exp_plugins' doesn't exist: SELECT plugin_package
  FROM (exp_plugins) WHERE plugin_package = 'markdown'

  mysqli_connection.php:117


texts: Condition to display content if an entry has a relationship with another defined entry

texts:
I want to set a condition in a channel:entries loop whereby a chunk of content is displayed if the entry has a particular relationship with another particular entry. In other words, I want to say: "IF this entry has a relationship with entry 1, show X. IF this entry has a relationship with entry 2, show Y"...

How would I achieve that?


texts:
I get the following error when accessing most pages on my site. Sometimes some of the pages load, sometimes not.

Disallowed Key Characters

www.claireyaffa.com


texts:
If I need to add two store tags together to make up a sum, how would I go about this? This is what I want to achieve:

{order_discount} + {order_you_save} = R total savings

Is this possible? I still obviously need the total savings to reflect on the total amount of the order.


texts: Best way to print orders within EE Store?

texts:
Have a couple of stores using Expresso Store; just built a new one and the client asked how they should print the order details out. I think the other two stores just copy and paste the order details but their sites are a few years old, and I think expectations have changed since then.

In Shopify, for example, earlier this year we setup the Order Printer plugin for a client and created a really nice template they could print out, cut off one bit to go on the parcel, and the other to go inside the parcel.

How does everyone else do this in Store? I'm specifically talking about within the control panel.


texts: Running ExpressionEngine on Apache behind nginx?

texts:
I have a Debian 6 32-bit Linode where I’m trying to run EE2.5.5 in Apache2 on port 8080 behind nginx0.7.  The idea is to serve PHP code from Apache, and everything else from nginx.  (Based on http://hybridlogic.co.uk/2011/07/setting-up-nginx-in-front-of-apache2-on-ubuntu-server/)

The outputs below (sitename replaced by “website”) show more or less what has been configured.  So far image uploading and editing works with the settings:

Server Path to Upload Directory: /srv/www/website/static_content/
URL of Upload Directory: http://www.website/

Any feedback on the security, viability and any hidden gotchas with this setup?  I disabled the built-in Rich Text Editor because it tried to directly open static files that I had moved out of the PHP tree.

Thanks!

root@phoenix:/var/www/website# ls
logs php_content static_content
root@phoenix:/var/www/website# ls static_content/
images themes system
root@phoenix:/var/www/website# ls php_content/
admin.php index.php setperm.sh system themes
root@phoenix:/var/www/website# cat /etc/nginx/sites-available/website
server {
      listen 80;
      access_log /srv/www/website/logs/nginx.access.log;
      error_log /srv/www/website/logs/nginx.error.log;
      root /srv/www/website/static_content;
      index index.php index.html;
      server_name website;
      rewrite ^/$ http://www.website/index.php;
      location \ {
          try_files $uri $uri/ index.php/$uri;
      }
      location ~* ^.*\.php\b {
          proxy_set_header X-Real-IP $remote_addr;
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_set_header Host $host;
          proxy_pass http://127.0.0.1:8080;
      }
      location ~ /\.(ht|git) {
          deny all;
      }
}
root@phoenix:/var/www/website# cat /etc/apache2/sites-available/website
<VirtualHost *:8080>
    ServerAdmin webmaster@website
    ServerName website
    ServerAlias http://www.website
    DocumentRoot /srv/www/website/php_content/
    ErrorLog /srv/www/website/logs/error.log
    CustomLog /srv/www/website/logs/access.log combined
</VirtualHost>
root@phoenix:/var/www/website#


texts:
We're trying to debug a site with multiple routing problems. We obviously need the debug profile to see what templates are being parsed and when. However, the results are not being shown on the front end.

We're of course logged in as superadmins.
We tried the debug toolbar too, but nothing shows up.

Any ideas?

Thanks in advance.

Santiago


texts:
May be a stupid question, but I just can't seem to find any documentation on it.

How do I set up a hook in cartthrob? I need to do some special calculations on the tax.

I tried

ee()->cartthrob->core->hooks->set_hook("cart_tax_end");
public function cart_tax_end($tax) {
    return 200;
}

But that didn't seem to do anything...


texts:
Is there a way, WITHOUT PHP, to test if a segment begins with a value?
We send emails with shortened URLs and want to be able to parse the segments accordingly.

i.e.

http://www.oursite.com/20140709XXXYY

would need to redirect to

http://www.oursite.com/event/20140709XXXYY

Or, is there a way to do this in .htaccess?

Yes, they will always be the similar to the one above, plus, we may also have some like this:

http://www.oursite.com/agenda/20140709XXXYY

which would need to redirect to

http://www.oursite.com/Chuy/DownloadFile2.aspx?File=Q:\\AGENDAS\\20140709XXXYY.pdf


texts:
After upgrading to EE 4 & PHP 7, when uploading a new image to the server in an entry, the upload fails and I get the following PHP error:

Fatal error: Uncaught Error: Call to undefined function EllisLab\ExpressionEngine\Library\Mime\finfo_open() in /home/ihist/public_html/sketch/ee/EllisLab/ExpressionEngine/Library/Mime/MimeType.php:104 Stack trace:
#0 /home/ihist/public_html/sketch/ee/legacy/libraries/Mime_type.php(93): EllisLab\ExpressionEngine\Library\Mime\MimeType->ofFile('/tmp/phpsJV2ii')
#1 /home/ihist/public_html/sketch/ee/legacy/libraries/Upload.php(167): Mime_type->ofFile('/tmp/phpsJV2ii')
#2 /home/ihist/public_html/sketch/ee/legacy/libraries/Filemanager.php(1889): EE_Upload->do_upload('file')
#3 /home/ihist/public_html/sketch/ee/legacy/libraries/Filemanager.php(1023): Filemanager->_upload_file(Array, 'file')
#4 /home/ihist/public_html/sketch/ee/EllisLab/ExpressionEngine/Service/File/Upload.php(298): Filemanager->upload_file('1', 'file')
#5 /home/ihist/public_html/sketch/ee/EllisLab/ExpressionEngine/Controller/Files/Files.php(137): EllisLab\ExpressionEngine\Service\File\Upload->uploadTo('1')
#6 [internal function]: EllisLab\ExpressionEngine\Control in /home/ihist/public_html/sketch/ee/EllisLab/ExpressionEngine/Library/Mime/MimeType.php on line 104

The last line leads me to believe it's an issue with the PHP fileinfo module, which I have enabled in my php.ini file with the following line:

extension = fileinfo.so

After that, I restarted Apache, but still no dice. This is eerily similar to this post but I haven't had any luck. It's also pretty similar to this post but I can confirm GD is enabled!

It looks like file info is also installed by default with the following line:

'--enable-fileinfo=shared'

Some more details about my environment:

EE 4.3.6
PHP 7.0.33
Apache 2.4.38 running linux

Notes:

This error also occurs when syncing the file directory
This error also occurs when uploading other file types besides .jpg,
like .png


texts:
I have this code

        {label:birthdate}

            {if logged_out}
                <input class="span2" data-title="Help" data-placement="right" data-trigger="focus" data-content="{instructions:birthdate}" required type="date" name="birthdate" value="{if '{exp:parameters:post name="birthdate"}'}{exp:parameters:post name="birthdate"}{/if}" id="birthdate">
            {if:else}
                {birthdate}
                <input class="span2" data-title="Help" data-placement="right" data-trigger="focus" data-content="{instructions:birthdate}" disabled type="date" value="{birthdate format="%Y-%m-%d"}" id="birthdate">
            {/if}
            {if error:birthdate}
                {error:birthdate}
            {/if}

The problem is that while {birthdate} is outputting properly, {birthdate format="%Y-%m-%d"} is always outputting 1970-01-01.

Any idea why this is the case? I am using EE 2.5.5

UPDATE:

The actual value stored in the exp_channel_data is 503150405. Converting this timestamp using this site yielded

GMT: Wed, 11 Dec 1985 12:00:05 GMT

The output using {birthdate} yields

1985-12-12 12:00 AM

So I think the data is not the problem.


texts: Is it possible to upload images to subfolders? Client wants to organize each entries images. Any help would be appreciated!


texts:
I was able to successfully show a custom field in the Playa list by adding this snippet to the views/entry.php:

<?=$this->db->select('field_id_XX')->where('entry_id', $entry->entry_id)->get('channel_data')->row('field_id_XX')?>

All works well to show and list the custom field, but the filter breaks? Anyone know where I can update the filter to show the correct items when filtering?

UPDATE:

Did a little bit of digging after Alex mentioned the droppanes.js and filter_entries() method and it seems the filtering is done with AJAX as it queries the DB with the playa helper class: system/expressionengine/third_party/playa/helper.php.


texts: Local site breaks with production database

texts:
I've been using the Focus Labs bootstrap with great success for my last few projects. However just now I ran into a snag. I exported my production database, imported it locally, and now the site does not work and I get these errors:

A PHP Error was encountered
Severity: Notice
Message: Undefined property: EE::$session
Filename: libraries/Functions.php
Line Number: 377

A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: libraries/Functions.php
Line Number: 377

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

If I turn off extensions in my config file things do work, sans extensions.

I did another export/import of the database to be sure, compared all my add on versions (all are the same), went back to my old local database (that works), and sync'd all my templates to the new production database. None of these fixed the issue.

Turning off all extensions via the database (Sequel Pro) allowed me to isolate it to Force SSL and specifically the on_page_load method.

At least now I can work locally, but would like to get things running smoothly again. I've posted in the Devot-ee forums and will link back to here.


texts: Using Postmaster to Auto Send total amount sold of an item

texts:
So we're looking to use Postmaster to auto send emails to specified emails of the amount of an item total sold.  Does anyone have any idea what code we should use for this?  I've tried a few different things and haven't been able to figure it out.

I have the channel set to the correct channel that stores our products.  What would be the code to show the total sold for the selected Parse Entry?


texts: Members upload photos into their own subdirectory?

texts:
We are working on a site with 350 or so businesses. They are able to upload 5 photos and a logo to their front-end profile. It would be nice (for organization-sake) if they could upload images into their own subdirectory. "/images/members/{member_name}/image.jpg"

Is there any way to achieve this? less manually creating 350 upload directories...

Currently using P&T Assets.


texts: Is the "Free Order" discount working for anyone else in CartThrob 2.6 and EE 2.8.1? It seems to be completely broken - the cart still uses the undiscounted amount as the total. It looks like CT recalculates the total from scratch if it sees that the total is <= $0 in the total() function in cartthrob/core/Cartthrob_cart.php, but I can't figure out how to make it stop without breaking calculations for normal (non-discounted) orders.


texts: Assets 2.2.2 / 2.3.2 chequerboard / empty thumbnails

texts:
I have the chequerboard / empty thumbnails showing up in Assets, for all images. Everything is working fine on the live site. So far I've tried:

Checking / applying 777 to all images and the cache/assets directories
Emptying the cache/assets/thumbs directory and clearing the
browser cache
Updating any old dev server paths I could find in the db to the new
path
Updating from Assets 2.2.2 to the latest, 2.3.2, clicked 'update modules' and cleared cache
Checking the network tool for the thumbs, I get 200 OK but 'Failed
to load the given URL' under Firebug. This is most likely because the files aren't there, I know because I have uploaded a thumb from the dev site cache and that worked.
Don't think it's .htaccess, have not changed that recently, but it
is set to remove index.php but not www. The index.php?ACT query seems to be working fine as the thumbnail test above shows.
Checked User session is set to cookies only
Cleared EE data caches

The images were uploaded via Assets at dev, http://prometheus.glue.co.nz (ignore it, it's broken now), then went live at http://www.prometheus.co.nz two months ago. Guess the problem started then and went unnoticed. Same host so server paths not all that different. Oh, running PHP 5.3.10 and EE 2.7.2.

Please help? Hoping P&T crew would like to log in.


texts: Expresso Store Stripe integration - Passing shipping details to Stripe null

texts:
Using Expresso Store and Stripe, I'm getting a conflict with either the naming convention of Expresso Store and stripe.js stripeResponseHandler, or my jQuery

Passing "user" details is null upon submit to Stripe.

My Expresso Store post details via firebug:

XID 7db7d1ad91f9fa13deeb13de67c784226ed345e7
billing_address 1   243 Blank Rd
billing_address2
billing_address3     Blastoff
billing_country us
billing_name    Denny Test
billing_phone   330-000-0000
billing_postcode     44231
billing_region  OH
form_name
next    Confirm Order
next_url    store/confirm-stripe
order_email somth@gmail.com
return_url  store/details
secure_return   1
shipping_address1
shipping_address2
shipping_address3
shipping_country    us
shipping_name
shipping_phone
shipping_postcode   44281
shipping_region OH
shipping_same_as_billing    0
shipping_same_as_billing    1
site_id 1

My Response handler:

  function stripeResponseHandler(status, response) {
    $("#checkout_submit").attr('disabled', false);
    if (response.error) {
      alert(response.error.message);
    } else {
     var token = response['id'];
     var form$ = $("#payment_token");
      $(form$).val(token);
     form$.append("<input type='hidden' name='stripeToken' value='" + token + "'/>");
      $("#checkout_submit").unbind("click").click();

    }
  }

And the response in Stripe:

object: "card"
last4: "4444"
type: "MasterCard"
exp_month: 1
exp_year: 2014
fingerprint: "3HSdYop7eOmsdo3a"
country: "US"
name: "Denny Test"
address_line1: "undefined"
address_line2: "undefined"
address_city: null
address_state: null
address_zip: "undefined"
address_country: null
cvc_check: "pass"
address_line1_check: "pass"
address_zip_check: "pass"


texts: Has color button gone on the latest Wygwam 3.0.2?

texts:
I upgraded the Wygwam to the latest version on the latest EE installation and I seem to have lost the option to preset the the colour button. Seems to be a lot less options on this version. Is that correct or is it just hidden?

Cheers


texts: How to search Channel entries using POST/GET?

texts:
When I check the checkbox for "Is field searchable?", what exactly does that offer me? I assume that means I can use that field in the Channel entries tag pair, such as:

search:body="pickles"

Is this correct?

What if I provided my users with a search form (with a number of fields)? How can take those form entries and pass it on to the Channel entry tag pair in order to do the search?

Just a sidenote: My preference for search is for the URL to update in the address box, but not to load the page, and the page gets update via Ajax. However, that URL can be used to directly access the search results still.


texts: How populate meta data with current entry's data

texts:
I would like to populate my meta tags, specifically Facebook Open Graph meta with the current entry's data. Most of it straight forward but am struggling with grabbing the image url.

The image field is a Simple S3 Uploader field

<head>
{exp:channel:entries dynamic="no" disable="categories|category_fields|member_data|pagination"}
<meta property="og:title" content="{title}">
<meta property="og:description" content="{intro}">
<meta property="og:type" content="article")
<meta property="og:url" content="{site_url}{if segment_1 != ''}/{segment_1}{/if}{if segment_2 != ''}/{segment_2}{/if}{if segment_3 != ''}/{segment_3}{/if}{if segment_4 != ''}/{segment_4}{/if}">
<meta property="og:image" content="**http://www.your-site.com/image.jpg"**>
<meta property="og:site_name" content="{site_name}">
<meta property="fb:admins" content="your-Facebook-page-user-ID">
{/exp:channel:entries}
</head>


texts: Are prices for EE 1.x to EE 2.x upgrade & CartThrob upgrade still $49.95 & $149?

texts:
I'm helping a client quote an EE 1.x to 2.x upgrade and having trouble getting upgrading pricing from EE 1.x to 2.x. Before the site was changed my notes had the upgrade price as $49.95, is this still true?

Secondly, is the upgrade price for CartThrob for EE 1.x to 2.x still $149?

Nada on both sites, hope someone in here is in the know :)


texts: {exp:assets:files} limit parameter not limiting the returned files

texts:
I'm trying to randomise a background image from one of my Assets folders but the limit parameter doesn't seem to be working correctly on the {exp:assets:files} tag.

Code:

{exp:assets:files folder_id="16" limit="1" sort="random"}{url}{/exp:assets:files}

The above code gets the correct folder but all 3 images are begin output instead of just one. The docs suggest that you can add the limit parameter to this tag and further searching on the get satisfaction showed that the sort="random" parameter was also supported.

I have tried the same code but changing the limit to something higher than 1 and still no success. Also tried the tag pair with out the sort="random" parameter.

I'm using Assets 2.0.1 and EECMS 2.5.3

What can I do to get these randomised?

Thanks Dan.


texts:
I have an ExpressionEngine application that displays some financial information, and the client is requesting that the user is logged out upon closing a tab/window.

Is that possible?

I currently have the security settings set to both Session and Cookies.

Thanks for the help.


texts: custom class example to get nested category in expression engine

texts:
how to get expression engine categories with different tag like child category and parent category using custom class in php.
like

{parent category} - should show all parent.
{child category} - should show all child for any depth weather the parent are not passed from parameter.


texts: In EE Store, how to disable the add-to-cart button after a single stock item has been added to the cart

texts:
Assume my store sells unique items, like antiques. By definition, stock for each article is only one item. When a buyer adds such an item to their cart, store prevents them from adding more than one item to the cart, but does not reduce the stock (not until the item is sold) and does not prevent the add-to-cart button from being pushed again.

I would like to have a way to hide the button for this user while the item is in their cart, AND give some indication that a single item cannot be added more than once, even though the item is still in stock until it is sold. This is only needed in relation to the local terminal holding the item in the cart.

Is there a way to do this, natively or by whatever means?


texts:
Forms: 3.5.3

ExpressionEngine: 2.11.1

(This started as a question, but I figured out a solution - and since it doesn't seem to be documented, I decided to post anyway as a suggestion for inclusion in the documentation and/or for anyone else in the same boat_

I'm using the Forms addon for a basic post-order customization setup, and I've used a bit of a kludge to dynamically pass an order ID number to a hidden field (basically just hardcoded the HTML for the field after the {forms:fields} & filled in its value with the {entry_id} tag). Not terribly elegant, but it works.

The problem was that I unable to find a way to limit/filter by order (when displaying submissions using the {exp:forms:entries}), to display only the customization data for the current order - if any.

Turns out that the the {exp:forms:entries} tag apparently supports the same search:field_name parameter as the {exp:channel:entries} tag:

https://docs.expressionengine.com/latest/channel/channel_entries.html#search-field-name

So it worked when added search:order_id="{segment_4}" to the forms:entries tag:

{exp:forms:entries entry_id="XX" member_id="{author_id}" search:order_id="{segment_4}"}

The order ID is in the 4th URL segment, could have also used entry_id instead since that code is inside a channel:entries loop.


texts:
Exp:resso Store: How can I communicate to a list of all members who have purchased a particular product?

If, for example, a product (in our case, a class course) is cancelled or the time changes.


texts: Codeigniter style validation callback function not working

texts:
I've created an EE custom addon that processes a simple enquiry form. All works well but I'm trying to add a callback function to my validation rules and it appears to be completely ignored.

Here's my call to the validation rule:

ee()->form_validation->set_rules('url', 'URL', 'callback_honeypot'); // Honeypot field

and my callback function (which is in the same file) is:

public function honeypot($input)
{
    if (!empty($input))
    {
        ee()->form_validation->set_message('honeypot', '
Not all is as it should be...
');
        return FALSE;
    } else {
        return TRUE;
    }
}

Will the standard CI form validation callback method not work with EE?

Update / workaround:

Although I haven't got the callback method to work, a simple workaround for (in my case) a honeypot field is to hide the field on the frontend form and use something like this:

ee()->form_validation->set_rules('nickname', 'Nickname', 'max_length[1]');

So if the 'nickname' field has more than one character entered into it, the validation fails.

Alternatively, you could do this:

$honeypot_field = ee()->input->post('nickname', TRUE);

and only process the form if the following conditions are met:

if (ee()->form_validation->run() == TRUE && (empty($honeypot_field)))

But it doesn't answer the question of why the proper CI callback functionality doesn't work in EE.


texts: how can I redirect a homepage depending on the browser language settings

texts:
I would like to know what's the best method to redirect a site depending on the browsers language settings.

I want to redirect the following browser locales to /es:

es-ar, es-co, es-cu, es-do, es-gt, es-ht, es-mx, es-ni, es-pe, es-pr, es-sv and of course es and es-es

i know it could be done via .htaccess but the following did not work at all:

 RewriteCond %{HTTP:Accept-Language} (es|es-ec|es-mx|es-co) [NC]
 RewriteRule .* http://www.%{HTTP_HOST}/es/ [R,L]

but I think the best would be to do this in the index.php template:

in the /index.php I would need some sort of redirection upon language detection but my php skills are very limited, so maybe someone can show me the right path:

something like:

if ($_SERVER['HTTP_ACCEPT_LANGUAGE'] = "es|es-es|...")
{
    // header( 'Location: http://${_SERVER['HTTP_HOST']}/es/');
    //please help!
};

any help appreciated!

cheers
stefan


texts:
I am using Field Pack 2.1.1 with EE 2.9.0.

All field types are working except the List field type.  Are these compatible? Is there an alternative field type I could substitute with ease?

I have maybe 200 entires using this field type with 5-10 list items each so I am assume it would be painful to migrate away.  Any help would be appreciated, Thanks!


texts: Multi page form with required fields on both pages bombs

texts:
Composing multi page form using Freeform Pro Composer where values are required on 2 different pages. Both pages are in same form with pagebreak creating two separate pages. Values are required on both the first and second page of the form. When using straight required="name|last_name|id_number" (some of those fields span onto page two of the form) the user can not submit the form without getting error messages about fields being required that are on page 2 of the form which they have not seen yet. Any thoughts?

I don't want to create two separate forms because I want all of the data to dump into the same database entry.


texts: Does anyone have any experience updating EE with this big of a jump between versions?  I need to update a huge website to 2.7.2 so that I can upgrade to PHP 5.3 on the hosting server.  Being that it's such a big site and I don't really have any EE experience, I'm a bit gun shy.  I've read and re-read the instructions for making a version update, and they do seem pretty straightforward.  There aren't any add-ons that I need to worry about at least.  Would trying this out on a local server first be an unnecessary hassle?  Should I just make all my back ups and go for it?


texts:
Is anyone aware of a way (add-on or other) of temporaily suspending a member group from publishing content?

For example when perfoming dev tasks my process is normally somethig like this (simlified for brevity):

Sync live database to local working copy (via SQL dump)
Perform dev tasks
Push workgin copy code to live server
SQL dump of wokring copy database to live server

Oviously, any changes to the DB on the live server during this period would be overridden.

I know I can disable CMS access to a certain member group for a period of time, but this shows a rather bland Forbidden message - which can be quite shokcing to client. It would be nicer to let them login to the control panel and show them a friendly "content freeze" message or similar.

Any thoughts? How do you manage this situation when dealing with a site where the client has publising privilages?


texts: P&T Assets: any way of importing images?

texts:
I was kinda hoping the new version of Solspace's importer module would make it possible to import images into Assets fields but alas.

I'm currently working on a site with a large (+-4000) product catalogue, each product is an EE entry with 1 image (product shot) in an Assets field + a list of product specifications. (The spec data has already been successfully imported from a csv file using Solspace's importer).

Is there any way to, once the images have been uploaded to the default folder, import the filepath into the entry's Assets field?
(EE 2.5.5 - Assets 2.0.5)


texts: Why is my module not showing in the add-ons list?

texts:
I am building a simple little module, based on this tutorial;

http://ee-recipes.com/articles/details/our-first-module-part-2-setting-up-the-file-structure

I have called my module 'DownloadLogs'
I have created the upd.downloadlogs.php, mcp.downloadlogs.php and mod.downloadlogs.php files, and also a lang.downloadlogs.php file.

I have put them all in /system/expressionengine/third_party/downloadlogs and uploaded to my server. But I can't see them in the list of installable add-ons. I have also cleared all of the caches and logged out and in again as superadmin.

Have I missed anything? What does EE require to pick up my code as an available module?


texts:
ExpressionEngine 2.8.1
Solspace SuperSearch 2.1.4

We're currently experiencing an error that does not occur each time a form is submitted with the following error being displayed:

  Error Number: 1064

  You have an error in your SQL syntax; check the manual that
  corresponds to your MySQL server version for the right syntax to use
  near ') AND c.channel_id != '' AND cf.field_name != 'keywords'' at
  line 4

  /* Super Search get fields */ SELECT
  cf.field_id,cf.field_name,cf.field_search,cf.field_type,cf.field_text_direction,c.channel_id,c.channel_name
  FROM exp_channel_fields cf LEFT JOIN exp_channels c ON c.field_group =
  cf.group_id WHERE cf.site_id IN () AND c.channel_id != '' AND
  cf.field_name != 'keywords'

  Filename: third_party/super_search/mod.super_search.php

  Line Number: 2190

A separate error occurs every once in awhile in Chrome when submitting to the same form:

Fatal error: Call to a member function num_rows() on a non-object in /home1/clientaccount/public_html/system/expressionengine/third_party/super_search/mod.super_search.php on line 2192

PHP Error Log:

[21-May-2014 09:51:56] PHP Fatal error:  Call to a member function num_rows() on a non-object in /home1/clientaccount/public_html/system/expressionengine/third_party/super_search/mod.super_search.php on line 2192

The odd items is that the error is coming from SuperSearch, but the only instance of the search is in the header + footer and not related to the form generated by Forms by DevDemon.

Form Code:

        {exp:channel:entries channel="staff_only" limit="1" dynamic="yes"}
        {standard_form}
        {/exp:channel:entries}

Header SuperSearch:

<form class="non-mobile" action="{path=search/index}" method="post">
      {exp:super_search:search}
        <input type="hidden" name="XID" value="{XID_HASH}" />
        <input type="text" list="suggestions" autocomplete="off" name="keywords" placeholder="Search" value="">
        <button type="submit" name="Submit"></button>

          <datalist id="suggestions">
          {exp:channel:entries channel="not home" limit="100" dynamic="no"}
              <option value="{title}">
          {/exp:channel:entries}
          </datalist>
      {/exp:super_search:search}
    </form>

Footer SuperSearch:

<form class="non-mobile" action="{path=search/index}" method="post">
      {exp:super_search:search}
        <input type="hidden" name="XID" value="{XID_HASH}" />
        <input type="text" list="suggestions" autocomplete="off" name="keywords" placeholder="Search" value="">
        <button type="submit" name="Submit"></button>

          <datalist id="suggestions">
          {exp:channel:entries channel="not home" limit="100" dynamic="no"}
              <option value="{title}">
          {/exp:channel:entries}
          </datalist>
      {/exp:super_search:search}
    </form>

Any assistance would be greatly appreciated.