texts:
Is there a conditional for {exp:low_events:calendar} for passed days, so for example if the day is in the past add a class?

{if passed}class="passed"{/if}


texts:
I have a safecracker form that uses a number of third-party fieldtypes. The fieldtypes all require their own external javascript and css files. On what looks like a simple form the combined fields use approximately 30 asset files that add up to around 900 kb which isn't ideal.

Is there a good way to optimise this? My current thinking is to use the include_jquery="no" and safecracker_head="no" parameters and manually include the asset files and combine and minify using Minimee. However this isn't ideal as I'll need to reexamine all the assets files whenever an add-on is updated.


texts: How is a postmaster Cart Throb on authorize hook mail formed?

texts:
I have this as a template and I am wondering is this the way you build these? The documentation is not quite clear on how the variables are meant to be formed for an html email.

 Order:{hook:transaction_id}

Thank you for your purchase.

     {hook:items}

     {hook:item:quantity} x
     {hook:item:title}{hook:item:product_notes}
       {hook:item:price}

     {/hook:items}

  Total: {order_total}

    Email: {hook:order_customer_email}


texts: Does the REElocate plugin bij exp:resso actually moves my ExpressiongEngine website or does it copy it?  I have an ExpressionEngine website and I'd like to copy this to another domain (thus server), for an development/experiment environment. So whenever I use the REElocate plugin, I hope it doesn't actually move my whole website. :P  Thanks!


texts: date_range_start="today" shows events from yesterday

texts:
Is there something wrong with this cal tag, or is it Calendar's fault? It insists on showing events from yesterday!

{exp:calendar:cal date_range_start="today" show_months="12" calendar_name="events"  dynamic="on" category="{segment_4}"}
{event_start_date format="%l  %j %F, %Y"}: {event_title}
{/exp:calendar:cal}


texts:
I am new to the stash plugin so i am probably doing something wrong.

At the top of a layout template, i have a channel entry loop that sets a stash variable like so:

    {exp:stash:set
    save="yes"
    scope="user"
    parse_tags="yes"
    replace="yes"
    refresh="60"
    output="no"
}
    {exp:channel:entries
        channel="subscribers"
        disable="categories|category_fields|member_data|pagination|trackbacks"
        dynamic="off"
        limit="1"
        author_id="CURRENT_USER"
    }
        {subscriber_children search:child_active="=YES" limit="1"}
            {stash:child_name}{child_name}{/stash:child_name}
            {stash:year_group}{year_group}{/stash:year_group}
        {/subscriber_children}
    {/exp:channel:entries}
{/exp:stash:set}

In the page, there is a dropdown that allows the user to change the active_child, so on /page1 the user can select child2 to set to active, this jumps to /switch-child/entry_id where it sets the child to active, then redirects back to /page1. What i am seeing is that i have to manually refresh /page1 again to update the stash variable (child_name)

{exp:stash:get name="child_name"}

How do i get it to update when /page1 loads?


texts: EE 2.8.1 Search. The action you have requested is invalid

texts:
I'm trying to get a simple search form to work. But I get an error: The action you have requested is invalid.

I have no idea what I'm missing here.

Stash partial with search form:

            {exp:search:simple_form channel="blog" search_in="everywhere" result_page="blog/search"}

Search

                <input type="text" name="keywords" id="search" value="" size="18" maxlength="100">
                <button type="submit">Go!</button>

            {/exp:search:simple_form}

Stash viewmodel for search results:

{stash:embed:layouts:blog}

{exp:stash:set name="body_class"}blog{/exp:stash:set}

{exp:stash:set_list name="detail_data" parse_tags="yes" parse_depth="2"}

    {exp:search:search_results}

        {stash:entry_id}{entry_id}{/stash:entry_id}
        {stash:title}{title}{/stash:title}
        {stash:excerpt}{excerpt}{/stash:excerpt}
        {stash:author}{author}{/stash:author}
        {stash:post_date}{entry_date format='%M %d, %Y'}{/stash:post_date}

    {/exp:search:search_results}

{/exp:stash:set_list}

This makes no difference.
    /TEMP/
    $config['secure_forms'] = "n";

I hope someone can help me out! Thanks!


texts: Freeform v3 file upload fails to send file to server

texts:
Freeform properly displays a form containing text fields, hidden fields and a "file1" file type field and using enctype="multipart/form-data". However, when the form submits, it only sends the other form fields using application/x-www-form-urlencoded.

I suspect there is some sort of javascript involved. How do I get Freeform to process the file upload portion of the form?

        {exp:freeform:form
            required="name|phone|email|message"
            collection="Job Applications"
            form:class="form-style"
            file_upload="Documents"
            allowed_file_types="doc|docx|pdf"
            notify="{careers_email}"
            form:enctype="multipart/form-data"
            return="notifications/application-confirmation"}

<snip />
                    <li>
                        <label for="input_file1">Upload Resume (pdf or MS Word .doc(x) format)</label>
                        <input type="file" name="file1" id="input_file1" />
                    </li>
<snip />

        {/exp:freeform:form}

version: Freeform v3.1.0


texts: What's the best way for displaying a three-level category tree?

texts:
What I'm trying to achieve is the following:
A three-level 'category' tree, with at the end channel_entries.
So users can browse between categories & access the entries related to that category.

Category A

Category A.1

Entries

Category A.2

Entries

Category B

Category B.1

Category B.1.1

Entries

Category B.1.2

Entries

Category C

I'm already using the Child Categories-plugin,
but it seems like you can't access categories in such 'depth':

  Hi,
  This add-on supports only 2 levels of categories, i.e. you can display parents and children,
  but not grandchildren.

I also tried a combination between the native category tag & child categories,
but no success so far...

Or am I better off by writing a custom query?

What's the best way to approach this?


texts:
I'm using EE 2.6.0, has anyone run into an issue where they get the following error when trying to upload a image: Thumbnail could not be created for the image. Please make sure the thumbnail directory is writable.

I've checked the usual suspects, the path is correct, permissions on the folders are ok.  I've tried changing the image library from GD2 to imagemagik.  I can upload other file types to the folder (pdfs etc..) just not images.

Strange thing is, it was working ok, the client left the site for a few months, I've just returned to it to finish it off.  I was able to upload ok 6 months ok, nothing's changed in the meantime.

Thanks,


texts: How to detect an AJAX request in a EE4 template?

texts:
What's the best practive to detect an AJAX request in EE4 without activating PHP in the template?

With the previous version of EE, I used the Ajax Detect Conditional ({if ajax}, {if not_ajax}) from Mo'Variables, but the add-on is not EE4 compatible.

Thank you


texts: Low Search ignore field when distance:radius is present

texts:
I have a form where a user can select a city from a dropdown list. I've set this up as a custom field filter. When a city is selected there is some JavaScript populating a hidden distance:from field behind the scenes. At the foot of the form is a distance:radius field.

Is there a way to ignore the city field if distance:radius exists? The idea being that the user wants to see the results within the radius, regardless of whether the result is in the city. If no radius is selected the results should be based on the city field.

// Search form
{exp:low_search:form query='{segment_3}'}

    <select name="search:city">
        <option value=""{if low_search_search:city == ''} disabled selected{/if}>
            Select a city
        </option>
        <option value="City 1"{if low_search_search:city == 'City 1'} selected{/if}>
            City 1
        </option>
        <option value="City 2"{if low_search_search:city == 'City 2'} selected{/if}>
            City 2
        </option>
        <option value="City 3"{if low_search_search:city == 'City 3'} selected{/if}>
            City 3
        </option>
    </select>

    <select name="distance:radius">
        <option value=""{if low_search_distance:radius == ''} disabled selected{/if}>Select distance</option>

        {exp:low_list:each items="5|10|20|30|50" as="distance"}
        <option value="{distance}"{if distance == low_search_distance:radius} selected{/if}>
            {distance} miles
        </option>
        {/exp:low_list:each}

    </select>

    <input type="hidden" name="distance:from" {if low_search_distance:from}value="{low_search_distance:from}"{/if} id="coord-field">

{/exp:low_search}

// Results
{exp:low_search:results query='{segment_3}' limit='12' distance:to='cf_lat|cf_lng' distance:unit='mi'}

    ... Results

{/exp:low_search:results}

Is this at all possible? Thanks in advance.


texts: ExpressionEngine 3 module: create custom member field programmatically

texts:
I'm creating a custom member field programmatically. This works fine, except that I want the database column to be dynamic based on what's already in the database.

In my code below, the uniqueFieldId variable could be 2, or 5, or even 999. This should be based on the columns that are already in the database. When m_field_id_2 and m_field_id_3 exist in the database, uniqueFieldId should be 4 so that the function below adds the column m_field_id_4 to the database.

How can I do this?

private function create_custom_member_field()
{
    //ToDo: Find a way to calculate the columns, not the rows.
    $uniqueFieldId = ...;

    // Add new columns in the member_data table
    ee()->dbforge->add_column('member_data', array('m_field_id_' . $uniqueFieldId => array('type' => 'text')));
    ee()->dbforge->add_column('member_data', array('m_field_ft_' . $uniqueFieldId => array('type' => 'tinytext')));

    // Add the actual credits field
    ee()->db->insert('member_fields', array('m_field_id'    => $uniqueFieldId,
                                            'm_field_name'  => 'credits',
                                            'm_field_label' => 'Credits',
                                            'm_field_type'  => 'text'
                                            ));
}


texts: Channel Ratings "Unable to receive your comment at this time." Error

texts:
I'm getting this very unhelpful message when I try to submit a review form:

  The form you submitted contained the following errors

  Unable to receive your comment at this time.

This error doesn't give me much to go on, so I don't know where to start debugging it. Here's my template code:

{exp:comment:form
  channel='products'
  entry_id='{structure:page:entry_id}'
  parse='inward'
  form_class='member-review'
  rating:enabled='yes'
  rating:required='yes'
  rating:collection='member_reviews'
  rating:min_value='1'
  rating:max_value='5'
  rating:return='notifications/submission-success/product-review'
}
  {if rating:not_rated}

&times;

  {/if}

    {if rating:already_rated}

You have already rated this product.

    {/if}

    {if rating:not_rated}

            Directions:

            <input type="radio" name="rating[directions]" value="1" checked="checked" class="star required">
            <input type="radio" name="rating[directions]" value="2" class="star">
            <input type="radio" name="rating[directions]" value="3" class="star">
            <input type="radio" name="rating[directions]" value="4" class="star">
            <input type="radio" name="rating[directions]" value="5" class="star">

            Packaging:

            <input type="radio" name="rating[packaging]" value="1" checked="checked" class="star required">
            <input type="radio" name="rating[packaging]" value="2" class="star">
            <input type="radio" name="rating[packaging]" value="3" class="star">
            <input type="radio" name="rating[packaging]" value="4" class="star">
            <input type="radio" name="rating[packaging]" value="5" class="star">

            Overall Satisfaction:

            <input type="radio" name="rating[overall]" value="1" checked="checked" class="star required">
            <input type="radio" name="rating[overall]" value="2" class="star">
            <input type="radio" name="rating[overall]" value="3" class="star">
            <input type="radio" name="rating[overall]" value="4" class="star">
            <input type="radio" name="rating[overall]" value="5" class="star">

        Share your review with others
        <textarea name="comment" id="comment" rows="8" class="required"></textarea>

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

    {/if}

{/exp:comment:form}


texts: Adding Pagination causes 500 Server Error

texts:
I am running EE 5.3.2.
Using the following code I am have issues with page loads that end in 500 Server Error
{exp:channel:entries channel="blog" category="184" limit="21" paginate="bottom" }

{title}

{brief_summary}

            View details &raquo;

    {paginate}

Page {current_page} of {total_pages} pages {pagination_links}

    {/paginate}
{/exp:channel:entries}

If I remove the pagination code everything works fine. Any clues what may be causing this and how to resolve it?


texts:
I've purchased Solspace's Super Search but can't seem to get the range working correctly. I've followed the docs and it seems to be set-up correctly but isn't correctly returning the ranges.

I'm using a simple GET filter form for a size range. The sizes are inputted into EE and are being collated correctly in the form but the results aren't working.

This is my form:

<form action="{path='letting/search'}" id="letting_form" method="GET">
        Search by size:
        <select class="small" style="margin-right:6px;" name="unitsize-from">
            <option value="0">From</option>
            <option value="0">0</option>
            <option value="50">50</option>
            <option value="100">100</option>
            <option value="150">150</option>
            <option value="250">250</option>
            <option value="350">350</option>
            <option value="500">500</option>
        </select>

        <select class="small" name="unitsize-to">
            <option value="9999">To</option>
            <option value="50">50</option>
            <option value="100">100</option>
            <option value="150">150</option>
            <option value="250">250</option>
            <option value="350">350</option>
            <option value="500">500</option>
            <option value="750">750</option>
            <option value="1000">1000</option>
        </select>

        <select name="unit_type">
            <option value="">Select Retail or Office Availability</option>
            <option value="retail_space">Retail Space</option>
            <option value="office_space">Office Space</option>
        </select>

        <button type="submit">Search</button>

It outputs:

/search?unitsize-from=250&unitsize-to=750&unit_type=retail_space

This is my output:

{exp:super_search:results channel="unit_space"}
    {if unit_availability == "Available"}

        {unit_type}
        {categories}{category_name}{/categories}
        {title}
        {unitsize}
        Download
        View

    {if:else}

There are no units available at this time.

    {/if}
{/exp:super_search:results}


texts: The VZ Buyers plug in does not work for Store 2.0 and above and I was wondering if anyone had tinkered with it to get it to work?  Please let me know!


texts: Error after EE2.9 update. Conditional fix required

texts:
The below code no longer works with EE2.9 Have tried determining how to change it but cannot work it out. I just need to specify that if ANY of the fields exist, display the content (div/header/row/info).

Any help is appreciated!

{if jumper_colour|sash_colour|tie_colour|saddle_colour|rally_colour}

CLUB COLOURS

  {if jumper_colour}

Jumper:

{jumper_colour}

{/if}
  {if sash_colour}

Sash:

{sash_colour}

{/if}
  {if tie_colour}

Tie:

{tie_colour}

{/if}
  {if saddle_colour}

Saddle Cloth:

{saddle_colour}

{/if}
  {if rally_colour}

Rally Uniform:

{rally_colour}

{/if}

{/if}


texts:
Here's my code:

{exp:channel:entries entry_id="{embed:id}"}
    {exp:tagger:tags entry_id="{entry_id}" backspace="2"}{tagger:tag_name}, {/exp:tagger:tags}
{/exp:channel:entries}

It spits out entry_id just fine. Is there a way to delay Tagger? Seems like it's not getting the entry_id passed. If I hard code an id in, I get the resutling tags, but this approach yields nothing. Thanks!

I also tried running this with just {embed:id} in the place of {entry_id} with the same results.

The whole embed:

{embed:title}

{exp:tagger:tags entry_id="{embed:id}" backspace="2"}{tagger:tag_name}, {/exp:tagger:tags}

{embed:teaser}

            {if embed:type == 'article'}
                READ MORE
            {/if}

            {if embed:type == 'blog-post' OR embed:type == 'exec'}
                Read More
            {/if}

It's pulling in the data from here:

{exp:channel:entries channel="post" orderby="random" limit="1020" paginate="bottom"}
    {exp:switchee variable = "{the_post_type}" parse="inward"}
        {case value="article"}

            {embed="tile/index"
                icon="fa-newspaper-o"
                title="{title}"
                teaser="{post_teaser}"
                link="{post_source}"
                type="{the_post_type}"
                id="{entry_id}"
                posttype="{post_type}"
            }

        {/case}
    {/exp:switchee}
{/exp:channel:entries}


texts: Why are some image paths wrong after migration to Nexcess?

texts:
I recently migrated our sites over to Nexcess EE hosting. After that I notice that some images  are not showing up. Some images in certain directories work as expected, while others in the very same directory do not. Upon further investigation in the source the image paths read the following:

//chrootimages/uploads/image.png

We are expecting to see:

http://example.com/images/uploads/image.png

Has anyone seen this? What is a possible remedy?


texts: Assets refresh button spinning, not showing file locations

texts:
I've just whipped up a new EE v2.5.5 site with a copy of Assets 2.0.2. I've added in a file upload location, and when I go to Assets I see a spinning refresh button with no locations showing below.

I noticed that if I click 'Update indexes', the location I added in shows up there OK.

Any ideas what might be behind this?


texts: My cart is empty if I logged out from control pannel

texts:
I am using ExpressionEngine 2.6.1
and     Store 1.6.4

But I am unable to add the "Items" to the cart, when I logged out from Control Pannel(it is showing that "Your cart is  Empty").
But If I logged into the Control Pannel then it is working.

Please help us.

Thanks in advance.


texts: Stash construct works in EE2 but fails in EE3... why? how to fix?

texts:
I have this code fragment that works in a template when running EE2, but fails when the same template is run under EE3.  I can't work out why. Would value any guidance anyone can give about how to fix. The fragment is:

{exp:stash:category_image parse="yes" trim="yes" output="yes"}
    {exp:category_construct:categories entry_id="{what_we_do_item_selector:image_button_switcher:entry_id}"}
        {if construct:level_count == "1"}
            {exp:channel:categories show="{construct:cat_id}" style="linear"}
                {category_image}
            {/exp:channel:categories}
        {/if}
    {/exp:category_construct:categories}
{/exp:stash:category_image}

which sets a value that is retrieved later within the same template using

{exp:stash:get name="category_image"}

It is a bit messy because category:construct cannot limit its output to a single entry using a tag parameter, and it is difficult to retrieve the category_image for a channel entry.

I am aware that the stash tag uses the 'short form' tag - but weirdly if I replace this with the long form tag, the tag fails in both EE2 and EE3.

This suggests I'm doing something that is probably illegitimate, but I cannot see what it is.

Anyhow - if anyone has any ideas about how I can capture the category_image URL more efficiently I'd be pleased to hear.

Thanks in advance for whatever help you can provide.

For clarity, I'm using EE2.11.3 / EE3.4.6 and Stash 3.0.4


texts: CE Image with Low Variables and Lazy Load: What im doing worng?

texts:
what im doing wrong? Im trying load a image via Assets, in a Low Variable field.

Nothing is rendered, but Low Variables field is with "early parsing" enabled. The Lazy Load JQuery plugin is active.

{exp:low_variables:pair var="myassetsimage"}
    {exp:ce_img:pair src="{myassetsimage}" width="640" height="400" class="img-polaroid" alt=""}
          <img data-original="{made_url}" src="{site_url}layout/img/pic-blank-1.gif">
    {/exp:ce_img:pair}
{/exp:low_variables:pair}


texts: How to send email report of total channel entries in Expression egnine on daily basis

texts:
hi I am new to Expression engine I am getting total channel entries using EE Tag :-

{exp:stats channel="products" site="default_site"}{total_entries}{/exp:stats}

Now I want a email report that gives me total no of channel entries on daily basis I can use cron job but i want to know how to do this procedure.


texts: Expression engine 3 -get the url of a channel entry

texts:
How do I get the url path for a particular channel entry?

{exp:channel:entries channel="work" limit="1" dynamic="no"}
    <h2>{title}</h2>
    <!-- link to url here -->
{/exp:channel:entries}


texts: Revision limit not enforced: How do I selectively remove entry revisions?

texts:
I have just been clicking around my four year old EE instance (which got recently upgraded from version 2 to 3), and found something quite odd:

Several channel entries are having many more revisions than the limit is supposed to cap at '10' (my current settings). In one case it's more than a hundred revisions stored and I am not sure how this came about. Perhaps I've had this set to a higher number in the past, but I'm wondering why it's not limiting it to the number of revisions like it's supposed to.

I'm also using the Structure add-on and have checked if there are any settings that could possibly override the CP settings. Seems to be unrelated to Structure.

I know that I can delete all revisions associated to a whole channel, but I'd rather not do that.

My questions related to this:

How can I make it behave like it's supposed to? i.e. Limit to 10 revisions.

How can I keep the latest 10 revision entries but discard the older ones?

I can live with this, but it seems non-standard behaviour and eventually could lead to concerns about performance. And also it's quite strange to have to scroll down all the way just to find the more recent revisions I would like to see. (The fixed sorting lists older ones first).

edit: I have just updated to 3.5.3. And changed the limit to 11, submitted and cleared caches. If I can't get it fixed in the next two weeks i'll probably just remove all revisions and then start anew. Still, help with this would be appreciated. I've also posted it to the official forums, as it's likely a bug.


texts:
I have content in a Wygwam field. When I toggle to Source mode, I see numerous &rsquo;, &rdquo;, etc encoded characters. This is as desired.

When that content is output in my templates, using the Wygwam tag, and I view source in my browser, I see the rendered characters -- ’ and ” -- not the encoded equivalents that were in the Source view in the Wygwam field.

I have verified that the entities and entities_processNumerical settings are both set to Yes in the editor configuration.

I discovered this while working on a plugin. The same conversion is happening via the $this->EE->TMPL->tagdata value. I'm loading this string into a DOMDocument to do some processing on it, and the rendered characters are breaking.

What should the output data look like?

EE: v2.5.5 - Build Date: 20121220

Wygwam: 2.6.3


texts: How can I provide a custom order shipping value?

texts:
I'm trying to create a plugin to allow shipping cost based on ranges of post codes. The post codes are hard-coded into the plugin. Due to my lack of experience developing for ExpressionEngine I'm unable to get the plugin to do anything.

Note that the cart only has one shipping option; the user shouldn't need to or be able to select a shipping option; this should be applied automatically based on their shipping post code.

Plugin: https://gist.github.com/anonymous/86838c02028faabfb404


texts: Super Search: is it possible to search category1&&category2 from two seperate form fields?

texts:
I'm planning on having two category groups assigned to each one of my entries, with one or more categories selected from each group, for each entry.

One category group would be "type" and the other "location".

Using Super Search, would it be possible to build the search form so that each of these category groups had their own select box, and then when the form is submitted, the selected categories from each groups box would be combined into the search string like:

category=category1&&category2

Essentially what I'm saying is:or can you use a category array search with data from that array coming from multiple inputs?


texts: Allow user via SafeCracker to choose a member with that member then assigned editorial rights to the entry

texts:
I'm trying to build a permissions / approval based app using EE.

Effectively user's are assigned trainers. Once the user has passed a skill they login and via SafeCracker would request to be approved for that skill. The request process would also include the name of the trainer.

In the CP I would then like the trainer to be assigned access privileges to the entry so that they could approve or disapprove it.

Anyone have any ideas on how I can achieve this? I do have Solspace User which seems to have  multi author functionality.

Thanks.


texts: Is there a way to include jQuery after a Channel Form?

texts:
I'm currently creating a Channel Form that has a file field. Because of this, ExpressionEngine wants to include their Javascript and their version of jQuery (version 1.7.2).

In my wrapper template, I already include jQuery right before the close of the body tag (as per best practices at the time of writing). However, including jQuery creates collision errors and the file field has errors (won't allow me to delete files that are already uploaded and doesn't display the upload button.

I can add the parameter of include_jquery="no" to the Channel Form, which stops ExpressionEngine from loading their version, but the file field still doesn't work at this point.

If I move the inclusion of jQuery in my wrapper template to before the Channel Form (I put it in the head tag), it works correctly, which is what EllisLabs suggests doing. The problem is that I would prefer to leave jQuery at the bottom of the page, so that it doesn't block loading anything else.

Is there any way to keep jQuery at the bottom of the wrapper template, while also being able to use File Fields in Channel Forms?

As a minor note: the file field will also only work if you're using a slightly older version of jQuery (< 1.9), as it currently calls the .browser property, deprecated in 1.9


texts: When adding link "using structure page link type" via backend (wygwam) all links include index.php automatically, is this a bug?


texts: Playa - use a child category to filter the channel entries of the parent?

texts:
We are still having some trouble with this. We need to display the daily deals for today from businesses that match the current category. I thought I would take one last shot at seeing if you can help.  I have also broken down our objective in case I said something that confused things.

Channel:      Daily Deal

Field: (Playa)  Deal-Owner  [Applebees on Charles]
(selected from the list of entries in the “business-listing” channel)
Field:      Title       [Applebees Deal]
Field:      Monday-deal [example:  15% Off Senior Meals]
Field:      Tuesday-deal    [example:  10% Off Junior Meals]
Field:      Tuesday-deal    [example:  10% Off Junior Meals]

Channel:  Business-Listing

Title   [Applebees on Charles]
City    [Denver]
State   [CO]
Status (options: Super Enhanced, Enhanced, Basic)   [Enhanced]
Categories:  Zone  [Central]

The daily deal channel has a 1 to 1 playa relationship field which connects the deal to the business. The business listing has all the relevant data about the business (address, etc)  The Business is classified to a “Zone” (one of 5 locations) that is used in the URL {segment_1}.

We are attempting to view a Zone home page (segment_1 is populated with the zone name that matches the business category name).

Phonebook.com/central

On the page, only 6 daily deals are listed.  The daily deals are comprised of the deal information (corresponds with the day of the week), the business name, the business city and business state.

Example: (assuming you are viewing the page on Monday)

15% Off Senior Meals
Applebees on Charles -  Denver, CO

Our thinking (as shown in the code below) is:  Select the daily deals that have a “Monday” deal.  Of those, find the associated businesses and filter to identify only those that coincide with the zone we are viewing.  Of the filtered deals/businesses, show the information about the business and the deal information – and show 6 entries on the page.

The code below is what we believe should work (assuming some of it is located in embed files, but have put it all together in hopes that it will make sense).

{exp:channel:entries channel="daily-deals" orderby="random" search:monday-deal="not IS_EMPTY" limit="6"}
{if monday-deal}
{exp:playa:children field="deal-owner" category="{segment_1_category_id}" status="Super Enhanced|Enhanced|Basic"}
{exp:playa:parent channel="daily-deals"}{friday-deal}{/exp:playa:parent}
{title} - {city},{state}
{/exp:playa:children}
{/if}
{/exp:channel:entries}

Unfortunately, something is not working.  We have tried many variations, but something seems out of line.  Either we cannot get the code to limit to 6 entries, or it returns only 3 entries (because the code picks up all deals and limits to 6, but of the 6, it includes those with no deal on Monday (or from different zones).

_________UPDATE_________

Ok - we have made some progress on this question and are using the code below.

Basically we need to filter the PARENT by the CHILD category (which in our case we would like to pull from segment_1 using LowSeg2 addon) Is there a way to filter the parent exp:channel:entries by a child category? {segment_1_category_id}

 {exp:channel:entries channel="daily-deals" orderby="random" search:monday-deal="not IS_EMPTY" limit="6"}

{monday-deal}

{deal-owner status="Super Enhanced|Enhanced|Basic" disable="members" category="{segment_1_category_id}"}
    {if no_children} no kids {/if}
    {categories show_group="1"}category_name: {category_name}
{/categories}
    deal_owner: {title}
{/deal-owner}
{/exp:channel:entries}


texts: Wygwam Images Alternative Text mandatory field

texts:
Has anyone found a way of making the alternative text field in the Wygwam images dialogue box mandatory.I have a large number of users and its something they always forget to do when adding images.
Thanks


texts: Why can't I change permissions on config.php or database.php?

texts:
I am in the process of completing an upgrade to EE 2.6.1 and I am unable to change the file permissions on config.php, database.php or cache.

I make the changes and it just bounces back. The Owner and Group appear to be okay in the file info. Any clues why this may be happening?

Thanks.


texts: Benefit of Saving Templates as Files in Expression engine

texts:
Aside from being able to edit files without the Template Manager – is there any advantage to saving templates as files in ExpressionEngine?

Is that increase or decrease website speed?
Does it improve performance, security, etc.?

Frm where website takes that page template file or database?


texts: Solspace Freeform 500 Internal Sever Error when Composer Template used

texts:
Well, I'm getting 500 Internal Server Error when Composer Template used.

Composer Template looks like:

{exp:freeform:composer
form_name="contact-us"
composer_template_name="contact"
return="contact_us/thank_you"
}

{composer:page}
{composer:rows}

{composer:columns}

{if composer:field_total == 0}

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

{composer:field_label}

{/if}
{if:else}

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

{/if}
{/if}
{if composer:field_output}
{if composer:field_type == 'nonfield_title'}

{composer:field_output}

{if:elseif composer:field_type == 'nonfield_captcha'}
{if freeform:captcha}
{freeform:captcha}

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

{composer:field_output}

{/if}
{/if}
{/composer:fields}

{/composer:columns}

{/composer:rows}
{/composer:page}

Code above is similar to code from documentation example.

Any clue what is going on?

Thanks


texts:
I have EE 2.7.2 and Store 2.0.4, wondering if anyone else have encountered this issue. I can't delete from cart items with a minimum qty set. However I can delete any other items without a min qty as I mentioned here Delete from Store Cart

My template looks like:

{exp:store:checkout
    form_class="form-horizontal"
    next="shop/customer-details"}

    {items}

            {price}

                <input name="items[{key}][item_qty]" value="{item_qty}" class="input-mini item_qty" />
                Remove

    {/items}

{/exp:store:checkout}

And the script:

$('.remove-product').click(function(){
        // click handler
        if (confirm("Are you sure?")) {
            $(this).parents('td').find('.item_qty').val('0');
            $(this).parents('tr').animate({ "opacity": "hide" }, "slow");
            $('#update_cart').click();

            return false;
        }
});

Any help?


texts:
I'm running into what looks like an incompatibility for NSM htaccess generator with ee2.8.1

Trying to save entries will result in the following error:

*Fatal error: Call to undefined function do_hash() in /home/dev/system/expressionengine/third_party/nsm_htaccess_generator/ext.nsm_htaccess_generator.php on line 224*

While trying to go into the settings returns the following error:

*Fatal error: Call to undefined method EE_Javascript::generate_json() in /home/dev/system/expressionengine/third_party/nsm_htaccess_generator/ext.nsm_htaccess_generator.php on line 421*

Does anyone know  of a fix?


texts:
Is automatic indexing possible?

I want to be able to ftp files up and not have to worry about going into control panel and indexing to get them to pull through on the frontend.

This wouldnt be a problem if it was just me. BUT other people will be uploading to the directory and "they dont want to be going into the control panel and indexing everytime"...

Thanks for any help.


texts: Converting channel images to vanilla file field type

texts:
I am trying to convert the channel images module into a plain old vanilla file field type. Specifically for the reason that the folder structure channell images imposes (entry id for each folder, images tucked in) and the multiple relationships in the database make for problems when I am trying to call this from specifically Open API.

So to that end, has anyone done a conversion like this? Am I right in assuming that I will have to do a ton of scripting to make this happen? The process I was going to follow was as:

Copy/Move all images to the main uploads folder as defined in my upload prefs
Look up all the channel images in my DB by a big nasty dirty sql query, take the file name and copy this (again via a big dirty update query) and copy {filedir_4}/filename.jpg into the new vanilla file field
Change all my templates to remove the channel images tags for my image call

Just wondering if someone has done this and should I watch out for anything in particular.


texts: 404 redirect not working, sending to another segment

texts:
I'm having problems with a template sending a missing page to another segment rather than the 404 page. For example, The URL below would give us our Disney Ship.

WEBSITE/cruises/disney/ships/disneyship/

What happens if someone types this?

WEBSITE/cruises/disney/ships/disneyshipTHISSHOULDNOTBEHERE/

It should 404 correct? Instead, it keeps the URL above in the browser but displays the contents of segment 2.

I've been testing all over the place and slimmed down the code for testing to just this:

{exp:channel:entries channel="at_cruise_ships" require_entry="yes"}
    {if no_results}
        {redirect="404"}
    {/if}
  <h2>{title}</h2>
    {body}
{/exp:channel:entries}

NOTES:

this works great if i do the same scenario in segment 2. For example, http://www.example.com/cruises/disneyTEST/ will redirect to the 404 page as expected
the disney ship exists in the cruise_ships channel
strict URLs is enabled in preferences
my 404 template is assigned in preferences
I am using Structure, but not directly related to this page

Please let me know if you have any suggestions on this as i'm at a loss. Thanks!


texts: EE 2.7.0: Saving a new channel entry brings error "undefined index"

texts:
Whenever I save new entry I get the following error message.
But the entry is saved. I can open the entry and etdit it. When I save the edited version no error occurs.
What does this error message mean and what can I do to fix it? I started with uninstalling the checkbox fieldtype, since I don´t need it, but this didn´t help.
This error is not channel or custom fieldgroup specific. It comes up for all 3 channels that I have.

A PHP Error was encountered

Severity: Notice

Message: Undefined index: field_id_sitemap__ping_sitemap

Filename: checkboxes/ft.checkboxes.php

Line Number: 80
A PHP Error was encountered

Severity: Warning

Message: Invalid argument supplied for foreach()

Filename: checkboxes/ft.checkboxes.php

Line Number: 80
A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/www/deleted_my_path-here/codeigniter/system/core/Exceptions.php:170)

Filename: libraries/Functions.php

Line Number: 809


texts: Email notification not styling output from multi checkbox

texts:
I have the fields in my notification template working as intended.
I'm attempting to style the output from a multi-check box or multi-select box within my nested list

ul
  li
    ul
      li --> Can not get freeform to apply styling to change output from having a , between values to becoming a list.


texts:
So I'm running into a issue and I'm completely stuck. I'm trying to use Php in the playa tags to get my associations. But, no matter what I do, I always get a mysql error, as if the php variable isn't set yet. In my template, I even created a plugin, to set that variable to the entry_id that I need to associate on.

Here's some sample code:

This is my plugin, I can echo out $categoryEntryId and the value is correct:

$categoryEntryId = '{exp:getcategoryentryid category="{segment_3}" parse="inward"}';

Below is some sample code where the mysql error is happening.

{exp:playa:parents entry_id="<?php echo $categoryEntryId;?>" backspace="10"}

This will result in the following error:

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 '' at line 2

SELECT DISTINCT(rel.parent_entry_id) AS entry_id FROM exp_playa_relationships rel WHERE rel.child_entry_id =
Filename: third_party/playa/mod.playa.php

Line Number: 701

Now, if I change it to the following, it works fine.

{exp:playa:parents entry_id="328" backspace="10"}

Anyone have any ideas on how I can resolve this issue? I started down the path on using the plugin, because earlier today, I was doing a query within the template, but had an issue with a naming conflict on the {title} tag for the result I just searched on, and the content within the {exp:playa} which also had to use the {title} tags.


texts: Has anyone successfully integrated a calendar into Cartthrob? A client wants to be able to let their users select weeks in advance when a delivery can be made. Any advice?


texts:
Is it possible to use the model service to create a new entry?

I have been using the model service recently to update and delete channel entries, but can't figure out how to create.

$update_query = ee('Model')->get('ChannelEntry', $id_to_update)
                           ->first();

$update_query->set(array(
    'field_id_x' => 'Content',
    'field_id_x' => 'Content'
));
$update_query->save();


texts:
One of my pages in a website is a simple form to redeem a coupon (update the status of the coupon in the database). My update function exists in my own custom extension and I have added the id, class and function to the exp_actions table in the database.

I know I have to use $action_id = ee()->functions->fetch_action_id('Lb_cart_ext', 'redeem_coupon'); to retrieve the action id from the database and {AID:Lb_cart_ext:redeem_coupon} in the front end to use the action id in a link.

Where do I use/call the $action_id = ee()->functions->fetch_action_id('Lb_cart_ext', 'redeem_coupon'); line?


texts: I have a network of 3 sites that have the exact same channels and design - just different entries. Is there a way to use the same theme for all three sites rather than having to duplicate the theme and maintain 3 different sets of files?


texts: Code-driven way to enable PHP parsing on a template

texts: Still a bit new with EE2, but I'm looking to be able to construct a way we can push changes up in environments, without having to sync up database-level stuff.  Right now I have several templates that are being changed to include PHP in them.  Part of what I want to get right is making sure PHP is enabled in our production environment when we go to push.  Is there a way in code to set this flag on a given template?  Or is the only solution in the database?


texts: Run Module Update error when updating Freeform (free) from 3.1.2 to 4.2.2

texts:
I'm trying to update Freeform (free version) from 3.1.2 to 4.2.2

NOTE: I recently updated EE from v2.5.3 to v2.9.3

After I upload the new folders to the system and themes directories, and go to:

Admin > Modules > Run Module Updates

I get the following error:

  A Database Error Occurred
  Error Number: 1054

  Unknown column 'settings' in 'field list'

  UPDATE exp_freeform_fieldtypes SET settings = '[]'

  Filename: third_party/freeform/models/freeform_model.php

  Line Number: 471

I've tried to revert back, by replacing the folders in system and themes with the old version and, then I get this error in:

Admin > Modules > Freeform:

  A PHP Error was encountered

  Severity: Warning

  Message: Creating default object from empty value

  Filename: addon_builder/addon_builder.php

  Line Number: 1333

  Fatal error: Call to undefined method Cp::set_variable() in
  /admin/expressionengine/third_party/freeform/addon_builder/addon_builder.php
  on line 1389

And now I'm stuck...


texts: How to add bcc on the email notification on forgot password

texts:
I would like to send bcc email to myself when user forgot password (reset password). I have solspace user add-on module. I only see 1 email address could put in. http://www.solspace.com/docs/user/forgot_password/#email

Does anyone know how to send notification to multiple email address (i.e. cc or bcc) when user forgot password. Thanks


texts: Is there a way to group Channel fields when displaying it in the Content section in EE's CP? A way to visually group related fields might be a usability improvement when there are a lot of Channel fields. Possible in EE?


texts:
I looked at EE's Addons and the closest thing I can think off is to use Modules. However, the templates that I have in mind are using EE tags.

I looked at EE's pre-installed modules and they seem to use pure PHP in their view so I am not sure if that will work since I need EE tags.

Is there a way to bundle a plugin and templates together so that I can easily transfer it to another EE installation?


texts: Looking for Feedback on Cartthrob & Using Cartthrob Subscriptions with Realex Payments

texts:
Setting out on a new EE / E Commerce project. One requirement is to take registration payments, and we would like to be able to manage these as subscriptions. I see that Cartthrob now provide a subscriptions add on which appears to do everything necessary.

I havent used CT for a few years. The support was great but there were a lot of kinks in the system and it was difficult for a 'less technical' user to troubleshoot, while Brilliant Retail, though limited, was quick and relatively easy to get up and running.

Im looking for people's feedback on the current state of things with CT - has the reporting improved, can you get a general store set up quickly (as with Brilliant Retail)? Its expensive to get the whole suite (Cartthrob & Subscriptions) and Ive seen some reports of slow support.

Any feedback would be greatly appreciated.

K


texts: Can't get total results for relationship field

texts:
I am trying to use count and total_results to detect the last item but total_results is not working in a relationship field. I can get the count and verify there are multiple entries but not the total.

{exp:channel:entries url_title="the-title"}

{project_images}

    {!-- working --}
    {project_images:count}

    {!-- not working --}
    {project_images:total_results}

{/project_images}

{/exp:channel:entries}

produces:

1   2   3   4   5   6   7


texts: Is there a way to pass a category id from one entries loop to another?

texts:
I am building a site for a school. The school has classes and the school has events. Some of the events are school-wide and some are specific to a certain class. On a class detail page (domain.com/classes/class-name) I want to make a list of upcoming events that comingles events that are specific to that class as well as school-wide events.

The natural thought was to use relationships to do this. However, I am using icons to represent which class an event is related to and I want to have one icon for school-wide events (rather than showing 10 different icons for every related class).

So instead I am using categories. I have made a category for each class and am sharing the category group across both the event and class channels. I would love to be able to create a variable in the class channel loop and pass it to the parameters in the events loop. It would look something like this:

{exp:channel:entries channel="classes" limit="1"}
  {cat_var="{category_id}"}
{/exp:channel:entries}

{exp:low_events:entries channel="events" category="{cat_var}"}
  <li>{title}</li>
{/exp:low_events:entries}

I feel like there used to be a way to do this in EE 1.x. Doesn't seem to be there any more though. I also realize that this may be a totally dumb way to try to solve this problem, but it is the best I can come up with right now.

Anyone have any tips I how I might make this happen, or suggestions on another way to thing about it?

As always, any help is appreciated.

Thanks!


texts:
It's been a solid year since my last ee project. The things you forget over time :)

At the top of my template I show the latest featured entry (limit="1" search:featured="yes").
Later in my template I'm showing all entries but need to add an additional class to the above featured entry.

By enabling php on the template I can save the entry_id in a variable and then check it in the lower exp:channel:entries.

Are there any issues with enabling php for something minor like this - performance, security? Is there a better way to hold this value?

Thanks!
Amanda


texts: Solspace Tag and moving tags from one group to another

texts:
Is it possible to move some tags from one tag group to another or I need to add them manually and then delete if from exiting group?

Thanks


texts:
Just wondering if anyone has figured the best way to use AngularJS vars within an EE form (Solspace Favorites in this case) as the entry id does not exist when the form tag get's processed in the server.

Example: {exp:favorites:info entry_id="{{ article.entry_id }}"} wouldn't work as the entry_id gets parsed in the browser.

Thanks,
Alberto


texts:
What format is the database stored?
Can the database be accessed from a website on another server?

Thanks for your help


texts:
ExpressionEngine 2.7.3

I have installed the moblog add-on and it is working fine except when I try and implement user authorization it refuses to work.

If I make authentication required then the entry is not imported at all and if I set it to delete un-authorized emails it just deletes the email.

If I do not set authorization as required then the import completes but the authorization line is added to the top of the moblog field in the new entry.

This is what my emails contain:

  AUTH:username:user_password

  moblog field content here

Any ideas would be much appreciated.  Am I missing a vital setting or permission option somewhere?


texts: Playa upgrade from 3.0.9 to 4.4.3 missing relationship data

texts:
I just upgraded EE from 2.1 to 2.6.1, then upgraded Playa from 3.0.9 to 4.4.3.

I realized I had to rewrite the syntax in the templates. That wasn't fun. But the real issue I am having is the missing data.

Or I assume the data is there in the old location (exp_realtionships or exp_channel_data perhaps) just the new Playa is looking for it elsewhere (exp_playa_relationships ??).

Playa seems to be working I added new relationships and they showd up both in the CMS and on the site.

Can anyone give me a clue on how I can restore the Playa relationships with this new setup?

Reentering the data manually would take a a few days for 2 or 3 people!

Thanks,
Luke


texts: When I use CE Image inside Gwcode categories, it's not parsed

texts:
When I use Ce Image inside the Gwcode categories tags, it's not parsed.

{exp:gwcode_categories group_id="5" cat_id="{segment_3_category_id}" depth="1|2|3" custom_fields="yes" style="linear" orderby="cat_name" }

    {exp:ce_img:pair src="{cat_image}" width="300"}<img src="{made}"/>{/exp:ce_img:pair}

{/exp:gwcode_categories}

It is a parser order priority problem??


texts: Solspace User: Registration- force Username to be concatenation of 2 custom member fields

texts: Upon registration using Solspace User, I would like to force the submitted username to be equal to first_name|last_name, similar to how the Screen Name is created. Is this possible?


texts: Suggested method to watermark images on a case-by-case basis? (Matrix+CE Image or Channel Image)

texts:
I want to add watermarks to some images that I upload to an EE site.

I create images/illustrations and want to watermark those. It's helpful when the images come up in Google Image Search, both for branding, to make copying more difficult, and to come up with a good branding strategy for Pinterest usage of images.

However, I also use images for which watermarking is not suitable (CC attribution images, images from other sites that I use with permission).

Right now I use the Matrix file upload and do resizing using CE image and  the image slug replacement method. I've theorized that I could add a switch in the Matrix field to watermark or not, and put CE image to work if the switch says yes.

However, I'm also thinking about re-architecting images using Channel Images instead. (call me crazy!)

For those of you who've worked with images using both CE Image and
Channel Images, how would you conditionally apply watermarks using
Channel Images?
Do you think I should stick to my current Matrix Image Replacement
technique, or (once it's re-architected) would using Channel Images
be easier to do in the long run?
Finally, is there some other method to accomplish watermarking on a
case-by-case basis that I haven't mentioned here?


texts: Getting list of Zoo Visitor entries with No Playa Parents and Solspace Super Search Result

texts:
I'm trying to get a Super Search results loop that only displays entries with No Parents...

I'm currently pulling out all the results and just showing a label for the entries that don't have a Playa parent:

{exp:super_search:results channel="zoo_visitor" status="Members-id5|Members_Verified_-id6|Members_Pro-id7|open" orderby="date" sort="desc" limit="50" paginate="bottom" }

{if channel_name == 'zoo_visitor'}

    {exp:zoo_visitor:details}

      {mbr_formal_title} {member_firstname} {member_lastname} ({entry_id})

      {exp:zoo_visitor:details}
      {exp:playa:parents channel="parents"}

        {if total_results > 0}
            {title}
        {/if}

        {if no_parents}
            No Parent
        {/if}

      {/exp:playa:parents}
      {/exp:zoo_visitor:details}

    {/exp:zoo_visitor:details}

{/if}

{_pagination}

{/exp:super_search:results}

Also happy to use default EE entries tag if it's easier / Super Search is causing the problem. Guessing it shouldn't make a difference though?

Edit (Response to question):

I tried this but it seems to spit out blank entries with parents...

{exp:super_search:results channel="zoo_visitor" status="open" orderby="date" sort="desc" limit="50" paginate="bottom" }

  {exp:zoo_visitor:details}
  {exp:playa:parents channel="parents"}
     {if no_parents}

 {mbr_formal_title} {member_firstname} {member_lastname ({entry_id})

    {/if}
  {/exp:playa:parents}
  {/exp:zoo_visitor:details}

{_pagination}

{/exp:super_search:results}


texts: Get back to correct page with a back link when using pagination

texts:
First of all, excuse my poor english... i hope you will get it :)

I have a page that contains a list of entries titles. There a lot of entries so i use pagination to display them.

When you click on an entry, it goes to a page dedicated to the entry and there is some js that may add hashtags to the url. On that page i also have a back link that is supposed to bring you back to the precedent page.

How can i send the user back to the correct paginated page ?

i can't use history.back() because of the hashtags. so i would like to retrieve the "index" of the entry to calculate the correct pagination page... is that possible ? how ?


texts: in form preventing layout based on {switch} tag working

texts:
I am trying to implement a store using the bootstrap grid.   I want products to sit in blocks of 3 in a grid.

{exp:channel:entries channel="english_ciders" orderby="date" sort="desc" dynamic="no"}
    {exp:store:product entry_id="{entry_id}" return="{segment_1}/{segment_2}/{segment_3}"}

            {title}

        {switch='|

'}

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

This works fine without the store tag. When I add the {exp:store:product} tag to the layout the form produced has its own
 and this messes up the layout.  I am sure I am approching this wrong.  Any suggestions?  Thanks.


texts: DB Error with Solspace Friends on new Install of EE 2.5.5. Solutions?

texts:
I'm testing the code pack from Solspace for the Friends module. This is on a brand new clean install of EE 2.5.5

The error occurs when trying to add a comment. Full error code below

Having done a search it seems that it's an issue on the EE side rather than because of a specific add-on.

Does anybody have a solution that does not involve core hacking?

Thanks.

ERROR

A Database Error Occurred
Error Number: 1054

Unknown column 'ip_address' in 'where clause'

SELECT COUNT(*) AS count FROM exp_security_hashes WHERE hash = '9633427c80112996dc4a9da76c64abca2a2482fc' AND ip_address = 'XXX.XXX.XX.XXX' AND date > UNIX_TIMESTAMP()-7200

Filename: third_party/friends/mod.friends.php

Line Number: 8383


texts: How do I set a conditional on Paginated pages?

texts:
I am trying to set a conditional on a navigation element using segmentation, and this works fine except when I hit the pagination stuff.

The pagination is in increments of 50 so I tried the following but it only works if the page is P50.

="P50"}class="active"{/if} href="{site_url}news/">Clean Energy News

News Releases

Multimedia

News Archive

Is there a conditional I can put on segment_2 that will work? Note that I have other nav elements that I don't want it to interfere with. Thanks!


texts: Postmaster doesn't email on bulk status change

texts:
I have several status change parcels that work great both from Safecracker forms as well as single edits on the cp, however if I bulk edit the entries to change multiple entries status' the status changes parcel are not triggered.

Any ideas?

-Mike


texts: How can I solve this error with transcribe?

texts:
I have been trying to implement a calendar by using the calendar module by solspace, but I keep getting this error that says:

"The query you submitted is not valid.
Filename: third_party/transcribe/ext.transcribe.php"

I'm not sure whether the problem is caused by transcribe or the calendar module.

Here is my tag code below:

  {exp:calendar:cal
      {if segment_3 == "by_calendar"}
         {if segment_5 == ''}calendar_name="{segment_4}" date_range_start="year-month-01" date_range_end="year-month-last"{/if}
         {if segment_5 != ''}calendar_name="{segment_4}" date_range_start="{segment_5}-{segment_6}-01" date_range_end="{segment_5}-{segment_6}-last"{/if}
      {/if}
      {if segment_3 != "by_calendar"}
         {if segment_3 == ''}date_range_start="year-month-01" date_range_end="year-month-last"{/if}
         {if segment_3 != ""}date_range_start="{segment_3}-{segment_4}-01" date_range_end="{segment_3}-{segment_4}-last"{/if}
      {/if}
   }


texts: Krea Content Elements Field and EE 2.6.1 Relationships Field - how to use parts of an article in the related articles section of a Single Entry Page

texts:
On our web-site each article (Single Entry Page) is accompanied by 4 related articles. Those 4 are chosen by the editors. I set up a native EE 2.6.1 Relationships Field for them.
For the article itself I set up a Content Elements Field.
In the related articles are below the main article I´d like to show

the title of the related articles
the articles first image (called intro_image)
I also need the url_title_path, to make title + image clickable.

I have no problems with title + url, but can´t get the CE tag to work.

This is my code

    {exp:channel:entries channel="article" status="open|featured"}
       {related_article status="not closed"}
          {artikel}
            {gallery}
              {if element_name=="intro_image"}
                 {images}
                    {related_article:image} <= doesn´t work!
                 {images}
              {/if}
            {/gallery}
          {/artikel}

{related_article:title}

      {/related_article}
    {/exp:channel:entries}

This code is working fine for the title and the URL, but not for the image. I tried to prefix {artikel}, {gallery}, {image} in various combination with {related_article:}. But this is not working. When I leave out the related_article in frot of each of the three tags, I get the intro image from the main article. So I need an identifier, that points to the child entry.


texts: How to use the same template section for content from different channels at different times?

texts:
I am new to EE and trying to figure out how to use it for our CMS needs.
We have the following 2 channels, names self-explanatory:
1. News Articles
2. Press Releases
These will have their own pages where all channel entries of each type are listed.

But also:
On the homepage we display a "top story" which is always either a selected news article OR press release.

How do I give content managers the ability to tell EE what to display as top story on a given day, by selecting either a specific news article, or a specific press release?


texts:
EE 2.9 - this is an issue with Channel Form: we have a large form to submit (50 fields or so) and it takes people quite a while to fill in the fields as some need a bit of thought.

The problem is that while this is happening and they are effectively idle, the form is timing out and when the user returns to it all the fields are blank which is a source of annoyance for them.

Is there any way of extending this period before the 'idle' timeout kicks in?


texts: CartThrob Permissions FieldType added to product channel now I get error:

texts:
After I add the CartThrob Permissions field to my product channel, I am no longer able to edit my channel.  If I select channel > edit and then click a product I desire to edit, I get the following:

An Error Was Encountered
Unable to locate the model you have specified: cartthrob_field_model

Expression Engine version 2.7.3

CartThrob version 2.4

What can I do, or what additional information would be helpful to debug this?
Thanks in advanced.


texts:
I'm trying to pass some information from one page to the next, in a hidden field. And I need to be able to tweak it with jQuery; so I can't just use a pure Stash solution. But for some reason the value of my hidden field is converted from my simple flags (product or blog) to a long string of alphanumerics.

Here's the full template:

{exp:stash:get name="search_type" output="yes" dynamic="yes"}

{if '{exp:stash:search_type}' != 'product' && '{exp:stash:search_type}' != 'blog'}
{exp:stash:set_value name="search_type" value="product" replace="yes"}
{/if}
{!-- exp:stash:set_value name="search_type" value="product" replace="yes" --}
-{exp:stash:search_type}-

search

 product |
 blog

-{exp:stash:search_type}-

{exp:search:simple_form channel="products" form_class="form-wrapper cf"
result_page="ourtoys/search_results" no_result_page="ourtoys/no_search_results" where="any"}
{exp:stash:search_type}

<input type="hidden" name="search_type" id="search_type" value="{exp:stash:search_type}" />
<input type="text" name="keywords" class="keywords" placeholder="Search here..." required value="{exp:search:keywords}">
<button type="submit" id="search_button">go</button>
{/exp:search:simple_form}

Interestingly, when I display the Stashed var inside the (search) form it's converted. But when I display it outside, it's the straight goods.

So my questions are:

why is this being converted?
how do I "read" or unconvert it?
is there some way to prevent them from being converted in the first place?
is there a mechanism for accessing stashed variables from JavaScript?
is there some other way to get JS-modified data from one page to the next?

I seriously doubt there'd be a JS access to Stash vars. But thought I'd ask just the same.

Thanks for your help.


texts: Is it possible to use ExpressionEngine with an Oracle database?

texts: I don't want to be forced to use Drupal. I would appreciate it if someone could shed some light.


texts: After removing index.php from URLs, 404s on every template except homepage

texts:
UPDATE

When first posting this, I didn't understand the problem. When I removed the index.php from the urls with a .htaccess file (http://ellislab.com/expressionengine/user-guide/urls/remove_index.php.html), all the templates other than the homepage all gave 404s.

ORIGINAL POST

I've create a list of the channel entries, but when you click on a link it sends you to the url example.com/title-permalink= and throws up a 404.

I've tried to visit the single entry pages by manually putting in the url but it doesn't work either.

Here's the simple code on the index page.

   {exp:channel:entries channel="essays"}

{title}

   {/exp:channel:entries}

And the single entry page.

{exp:channel:entries channel="essays"}

{title}

   {body}
{/exp:channel:entries}

I haven't had this problem before. It seems like it must be really simple. What am I missing? Something in the settings?


texts:
I have the plugin working fine and pulling in {description} however I'd like to be able to shorten the length of that text. I've tried the following addons:

Character Limit, Word Limit, and TruncHtml

I also tried to set this up using Magpie RSS Parser, and none of these worked with that either.  Is this just not possible?

Thanks

Edited to add: Also tried Hacksaw

Edited to add code:

{exp:magpie url="{embed:feed}" limit="3" refresh="720"}
    {items}
        {title}
        {exp:eehive_hacksaw char="100"}
            {description}
        {/exp:eehive_hacksaw}
    {/items}
{/exp:magpie}

I have a feeling this is a parsing issue.


texts: Occurrences display in Solspace Calendar

texts:
I'm using the calendar:cal tag to display a list of upcoming events.

I'm having an issue where the first occurrence date displays as the next event date, rather than the next occurrence.

How can I code it so the event date is the next occurrence rather than the first event date?

{exp:calendar:cal date_range_start="today @ midnight" show_years="1" pad_short_weeks="n" event_limit="10" status="Open|Featured"}

    {if no_results}

There are no upcoming Events.

    {/if}

            {event_first_date format="%j"}
            {event_first_date format="%M"}

{title}

{/exp:calendar:cal}


texts: Adding Google Analytics tracking code to website footer

texts: Everytime I add the tacking code to the source code on the websiet, EE strip it out. Is there anyway to get it to stay without using a plugin?


texts: Config.php file permission changed to 666 but installation won't run

texts:
I set permissions via SFTP to 666 on config.php and database.php but am getting this in the installation wizard:

Your config.php file does not appear to have the proper file permissions. Please set the file permissions to 666 (or the equivalent write permissions for your server) on the following file: expressionengine/config/config.php

Running ls -l on the command line I can see the permissions are assigned to me as a user. Could the problem be that the permissions need to be set in a different way for the server to access the files? Or something else?


texts: How can I compare the categories assigned to 2 different entries?

texts:
I'm trying to compare two entries from two different channels and see if they share a common category. Each entry can be assigned to a number of categories. Both channels use the same category group.

I want to display some information if the same category is assigned to both entries. That's the easy bit :)

How would I do this? I'll admit my brain's a bit fried this afternoon so I may well be missing the obvious solution.


texts: Quick and safe way to delete all entries with a given status?

texts:
Due to a data grab import that went a bit awry I find myself with approx 10000 entries that I don't want! They've all got a specific status.

I'm currently deleting them in batches but the most I can do is 200 at a time and it's getting a bit boring.

Is there a quick and safe way to delete them all - perhaps using SQL (but which leaves things clean and tidy)?

Let's see if I can get an answer before I've finished manual deletion. :)


texts: Using Reports module, need first row of CSV to be custom

texts:
I am using Nathan Pitman's Reports module to allow our client to export some custom information. I wrote up the SQL query and it works great. The only issue I have is that the first row (the header row) uses numbers for the column names, like shown here: http://cl.ly/image/3U2O451s1F3y I'd like to make those show as proper headers that make sense to the client. (For example: Member Group, Email, First Name, Company, etc.)

The Reports module does allow for post-processing but that is where I'm lost. I have no idea how to properly write the PHP to change the header row to what I need the column titles to be. I'd really appreciate some help here.

Query:

SELECT
      exp_member_groups.group_title as 'Member Group',
      exp_members.email as 'Email', exp_members.username as 'Username', exp_members.screen_name as 'Screen Name',
      exp_channel_data.field_id_13 as 'First Name', exp_channel_data.field_id_14 as 'Last Name',
      exp_channel_data.field_id_68 as 'OCB Member ID', exp_channel_data.field_id_59 as 'Company'
    FROM exp_channel_data
    JOIN exp_channel_titles ON exp_channel_data.entry_id = exp_channel_titles.entry_id
    JOIN exp_members ON exp_channel_titles.author_id = exp_members.member_id
    JOIN exp_member_groups ON exp_members.group_id = exp_member_groups.group_id
    WHERE exp_channel_data.channel_id = '6'
    AND exp_members.group_id = '11'
    OR exp_members.group_id = '10'
    OR exp_members.group_id = '9'
    OR exp_members.group_id = '8';

Thanks!


texts: How best for user to upload, access and insert own images only in Channel Form?

texts:
I have a Channel Form for users to submit content. They need to be able to upload images, and then in a RTE editor (e.g. Description field) be able to click the Insert Image button but only see the images they have uploaded. They cant be able to see other peoples images of course.

Initially we tried Dev Demon's Channel Images. This would actually suit our needs, but it has unresolved rendering issues that means its not working right in Channel Form (have reported to the developer).

The RTE Image button I read does not work on the front end only in the CP for some reason, so thats not working.

I cant find any information on a Pixel & Tonic Assets button for the RTE, I dont think there is one.

So aside from the above, how would one offer members the ability to upload their own images to the site and insert them into a field in Channel Form, but only seeing their own images?

Thanks


texts: Error message when upgrading from 2.4.0 to 2.7.2

texts:
I am about to update a site online and I wanted to make sure that everything when smoothly. So, I downloaded the site and tried to update the site locally. I followed all the steps on the docs for upgrading expressionengine 2. But, after the installer runs and I delete my installer folder and try to login I get this error message:

Has anyone ran into this? Also, what do I need to do to get this working locally? I know what to look for when I make this update to the live site.


texts: Weird pagination issue with test domain appearing in links!

texts:
I've just updated EE from 2.5.3 to 2.7.3 and gone from a local testing environment (using Focus Lab Master Config) to a remote server. All works great apart from in my search results (using Low Search). If I click past the second pagination link, the link starts with my local test domain!!! WTF?!

I've done a DB dump and tried to grep to find any instances of this local address and the only thing I see is in the developer logs.

Has anyone ever come across anything like this?

I've cleared the contents of my ee cache directory as well. No joy.


texts: Am I able to store my own module settings in an EE table?

texts:
I am writing a new module for ExpressionEngine and have a couple of settings that I want to store from the Facebook API. For example, if I wanted to store the Facebook ID and Albums they want to pull photos from do I need to store them in a custom DB table or is there a quick way to store settings, much like wp_options in WordPress?

Also, I am new to writing modules and have found a couple tutorials but most are either, short and don't have an mcp - or they stop half-way through.

Thanks for the help.


texts: How to get entry's categories, of a specific Category Group

texts:
I've followed How to Display an Entry's Category? to show the categories assigned to a particular channel entry.

Is there a way to specify a certain Category Group?

For example, my code looks like this:

{exp:channel:entries channel="training"}

    {categories}
        {category_name}<br>
    {/categories}

    {title}

{/exp:channel:entries}

So I have a channel called training. This contains a list of training courses, each of which is a channel entry. The above template lists the courses.

I then have two separate Category Groups assigned to my training channel. These are called Training course category  (ID == 1) and Course type  (ID == 2).

All I want to do in my {categories} {/categories} loop is work out whether the entry belongs to a specific Course type.

However, because each course has been assigned multiple categories (ID 1 and ID 2 Category Groups) it just outputs a list of any category that's been assigned. I understand this is expected behaviour. How can I alter the code so that it only looks for categories in Category Group 2?

ExpressionEngine version is 3.5.10


texts:
I've just been contacted by a client who is finding that images are missing from a file field when an already published entry is reopened. Does anyone have an idea why this could be happening?

Edit: The file field is within Matrix 2.2.4, EE is v2.4. Original installation was around two years ago.


texts: How to translate a string in custom form

texts:
I am very new to Expression Engine. I have a template file and added a new text filed in it. Now I want to translate the string into multiple languages.

Where I need to include my translated string.

Please do help me.

Thanks.


texts: Tricky Channel Entries Loop with Category Conditionals

texts:
I'd like to return entries from a specific channel, but what i'd like to do is ONLY show entries from a child category first, but if there are none, then show entries from the child's parent category.

Is this possible?


texts: Show sold products report status only for paid orders in Expresso Store?

texts:
i wanted to know how it is possible to filter the products sold report, because we have some orders which are paid directly and some which can be paid manual and sometimes they never get paid. So our order list is filled also with some shop reminder statuses and i don't want to have that products inside the products sold report.

Is there an option that only the products get counted where the paid status is true?

Any ideas?

Best Peter


texts:
I'm getting the following parse error when I click to view the SEO Lite settings in the control panel:

Parse error: syntax error, unexpected '[' in /nfs/c11/h01/mnt/196778/domains/hallettperrin.thedesigncore.com/html/engine/user/addons/seo_lite/views/index.php on line 19

EE v3.4.2
Seo Lite v1.5.3

Thanks for any help.


texts:
A client has just emailed and none of the playa fields are working on the front end templates. No changes have been made to the EE or plugin setup to cause the issue. The site has been up and running for 12 months.

EE is 2.5.5
Playa 4.3.3

For example

 {exp:playa:children field="page_quicklinks" limit="7"}

{title}

 {/exp:playa:children}

Outputs

Express Orthodontics

Express Orthodontics

Express Orthodontics

Express Orthodontics

Express Orthodontics

Express Orthodontics

Express Orthodontics

"Express Orthodontics" is the current page title not the playa item title

Any advice would be greatly appreciated.


texts: Safecracker entry form, specifying categories across multiple pages

texts:
I have a multiple page Safecracker form, as there are a number of large category groups that need to be chosen from.
On Page 2, I have a content type select.
On Page 3, I have a topic select.
And, on Page 4, I have a number of selects to reference syllabus documents.

The select fields look like this, that is the categories shown are being filtered by group_id:

<select name="category[]" id="select_syll-ac" multiple="multiple" class="multiselect">
          {categories group_id="17"}
                  <option value="{category_id}"{selected}>{category_name}</option>
          {/categories}
</select>

Currently, only the options selected on Page 4 are making it to the final entry.
I thought that previously the options selected on page 2 were also being retained.

preserve_checkboxes=“yes” does not fix the behaviour.

Given Pages 2, 3 and 4 are all dealing with categories, do I have to add a hidden select of the category groups on Page 2 and 3 to Page 4?


texts:
So I just migrated from my dev server to the production server and I can see the site and CP login page fine. However, trying to login I get:

An Error Was Encountered
This form has expired. Please refresh and try again.

I've Google'd around a bit but can't figure this one out yet. DB, server and browser cache all clear. Anyone had this before?


texts: Using Pages/Better Pages and can't access template/URL without index after template

texts:
I am using Pages module and the Better Pages plugin on a site. When I navigate to the 'about' page, http:www/mydomain.com/about does not work and http://www.mydomain.com/about/index does.

Am I missing something in regards to how this is set up? Why do I have to include the template name with the template group? I didn't think the template name was required.

* EDIT *
Using:
EE 2.8.1
Better Pages 1.1.8

* EDIT *

My Pages URI is: /about

The following is my index template in the about template group.

{About/Index} Template Code

{!-- STASH SITE SETTINGS --}
    {stash:embed:partials:site_variables process="start" replace="yes" parse="yes"}
{!-- /STASH SITE SETTINGS --}

    {snippet--doctype-html-head}
    {snippet--core-head}

    <link rel="stylesheet" href="{site_url}css/skins/{exp:stash:get name='color'}.css">
    <body class="{exp:stash:get name='style'}">
        <div class="body">

        {!-- Header Router --}
            {exp:channel:entries
                channel="header"
                limit="1"
                disable='categories|member_data|pagination'
            }
                {!-- FIND THE TEMPLATE CHOSEN --}
                {exp:query
                    sql="SELECT template_name FROM exp_templates WHERE template_id = '{header_layout}' "
                }
                    {embed="Header/{template_name}"
                        rail_message="{rail_message}"
                        navigation_type="{navigation}{navigation:navigation_type}{/navigation}"
                        navee="{navigation}{navigation:navee}{/navigation}"
                        manual="{navigation}{navigation:manual}{/navigation}"
                        {if top_links:total_rows > 0}
                            top_links="TRUE"
                        {/if}
                    }
                {/exp:query}
            {/exp:channel:entries}
        {!-- /Header Router --}

        {!-- Page Router --}
            {exp:channel:entries
                channel="about"
                limit="1"
                disable='categories|member_data|pagination'
            }
                {!-- MUST HAVE ENTRY --}
                {if no_results}
                    {redirect="404"}
                {/if}

                {!-- FIND THE TEMPLATE CHOSEN --}
                {exp:query
                    sql="SELECT template_name FROM exp_templates WHERE template_id = '{page_layout}' "
                }
                    {embed="About/{template_name}"}
                {/exp:query}

            {/exp:channel:entries}
        {!-- /Page Router --}

        {!-- Footer Router --}
            {exp:channel:entries
                channel="footer"
                limit="1"
                disable='categories|member_data|pagination'
            }

                {!-- FIND THE TEMPLATE CHOSEN --}
                {exp:query
                    sql="SELECT template_name FROM exp_templates WHERE template_id = '{footer_layout}' "
                }
                    {embed="Footer/{template_name}"
                        banner="{banner_text}"
                        news_head="{newsletter_subscription_header}"
                        news_intro="{newsletter_lead_in_copy}"
                        twitter_head="{twitter_feed_header}"
                        contact_head="{contact_header}"
                        posts_head="{recent_posts_header}"
                        work_head="{recent_work_header}"
                    }
                {/exp:query}

            {/exp:channel:entries}
        {!-- /Footer Router --}

{!-- REQUIRED FOR PREVIEW --}
    {snippet--foot-constants}
{!-- /REQUIRED FOR PREVIEW --}


texts: Getting fatal error in Freeform CP when trying to view form submissions

texts:
I have a very large form with many fields that has a little over 900 submissions. The form is manually built in a template that does not use Composer. I removed some fields from the form template, and updated the notification template acccordingly. Form submission and notifications work ok, but when I try and view the submissions in the Freeform CP I get an error...

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4128 bytes) in /public_html/system/expressionengine/third_party/freeform/libraries/Freeform_fields.php on line 117

I don't think this error is really due to lack of memory becasue of the size of the form, I think there's some other issue that is causing a "leak" or causing something to loop incorrectly. If it really was a memory issue, it wouldn't have popped up after making templates smaller. I removed the most recent test submissions from the DB, but that did nothing. Any idea why this is happening? Is there anything else I can check? Thanks!


texts: Low search: sorting not working with distance filter

texts:
I have some entries to filter with geo location in stores channel. I want to filter all the stores near my zip code between some miles. I implemented it with geo coder and distance filter of low search and it working fine too except the sort order.

All the entries are displaying in random order of distance. for an example:

Shop 1 : 7 ml away
Shop 2 : 20 ml away
Shop 3 : 5 ml away

I want to list the entries in asc order of distance so the output sholud be:

Shop 3 : 5 ml away
Shop 1 : 7 ml away
Shop 2 : 20 ml away

Let me know if I do something wrong.

My Form page query is:

{exp:low_search:form query="{segment_3}" result_page="/stores/search-results/" form_id="search_stores" collections="stores"}
    <input type="hidden" id="location" name="distance:from" value="">
    <input type="hidden" name="distance:radius" value="200">
    <input type="hidden" name="distance:unit" value="mi">
    <input type="text" name="search:store_country" value=""> {!--Country field of channel entry--}
    <input type="text" type="keywords" name="keywords" value="{low_search_keywords}">

    <input type="submit" name="submit" value="Search">
{/exp:low_search:form}

My query string get from form is /?distance:from={my_lat}|{my_long}&distance:unit=mi&keywords={keywords}&distance:radius=200&search:store_country={country}

My result query is:

{exp:low_search:results query="{segment_3}" distance:to="store_latitude|store_longitude" channel="stores" collections="stores" require_all="category" limit="6" paginate="bottom"}
    <p>{title}: {low_search_distance} ml away</p>
{/exp:low_search:results}

(Asc order of low search geo location is working if I dont use KEYWORDS and use any other variable)


texts: Googlemaps InfoBox target close button with jQuery

texts:
I've got a google maps for EE map with multiple pins working. I've also set it to add a class to a div further down the page when clicking a pin.

However what I need is to remove that class when closing the infobox. Unfortunately I am unable to figure out how to target the close button as the inspector doesn't appear to work over the map. I've tried toggleClass but that only works when you click the pin again, not close the infobox.

My current working code is here, the jquery is at the bottom in the exp:gmap:event tag pair - I've added a second event tag pair targetting the closeclick event, but it's not working.

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

           {!--{branch_location id="map"}--}

           {exp:gmap:marker
            id="map"
            latitude="{branch_latitude}"
            longitude="{branch_longitude}"
            icon="/images/map-pin.png"
            offsetY="-40"
            offsetX="0"
            geocode="false"
            infobox="true"
            clustering="true"
            class="ui-infobox-dark"
            closeBoxMargin="5px"
          }

{title}

                {branch_address}

                {branch_city} {branch_province}

                {branch_postcode}

                Work Phone: {branch_phone}

                Toll Free: {branch_toll_free}

                Fax Number: {branch_fax}

            {/exp:gmap:marker}

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

{exp:gmap:event id="map" event="closeclick"}
    $('.block article.entry{entry_id}').removeClass('active');
{/exp:gmap:event}

          {/exp:channel:entries}


texts: SafeCracker validate if custom field is not a duplicate

texts:
I have a safeCracker form that takes in users e-mail address. I would like to validate that a user that has already registered is not registering for a second time.

Anyway to accomplish this?


texts: Reading from multiple channels by category ID in ExpressionEngine

texts:
Question is related to using ExpressionEngine version 2.10.1

I'm trying to build a page which lists PDF catalogues belonging to a particular brand. Brands are unique, but each brand may have 1 or more catalogues.

Set up in EE is as follows:

Each brand name has been entered under Channel Administration > Categories.
There are channels called 'Brand' and 'Catalogue'.
When a channel entry is made under 'Brand' it is assigned to the appropriate brand category - using the Categories tab when making the channel entry. The same applies when making channel entries under 'Catalogue', i.e. they are also assigned to the appropriate brand category.

Template starts like this:

{exp:channel:entries channel="brands"}
...
{/exp:channel:entries}

Where I've put [...] I want to retrieve anything in the 'Catalogue' channel which has been assigned to the appropriate brand category ID. I can read the brand category ID like this but not sure what to do next:

{categories}{category_id} {/categories}

After this I'm stuck because I can't use another {exp:channel:entries} tag inside an existing one, unless I'm wrong?

Any help appreciated. I had a look at solutions which use custom queries, e.g. by using {exp:query sql=" but that doesn't seem right?

To clarify why I am starting by looping through the "brands" channel: the markup for the page requires a lot of other information about the brand to be output by the template.


texts: How to show one entry from multiple categories?

texts:
I have a masonry style setup for a portfolio page and would like to allow the client to chose multiple categories per portfolio entry. The issue I'm having is each entry is displaying multiple times in the 'Show All' section when more than one category is being selected.

Here is the basic markup I have for the portfolio section—

{exp:channel:entries channel="projects"}
{categories}

{/categories}
{/exp:channel:entries}

Here's an image of what's showing on the 'Show All' section. The two items at the bottom are in more than one category, but I'd only like one to show.—

Thanks in advance.


texts: How to display sub categories using the query module

texts:
I'm using the query module to display a category, but how to use query to display the child categories??

It is possible??

Thanks,

Stéphane


texts:
I am using malsups form.js to run a login script combined with the zoo visitor add-on. When the login form has been successful the user is successfully logged in with out any need of a page refresh, although when I want to display the username the page needs to be refreshed for those details to appear on screen. Below is my code, any suggestions ?

--

Welcome

                                    {exp:zoo_visitor:details}
                                            {visitor:member_firstname}
                                    {/exp:zoo_visitor:details}

$("#userLoginForm").ajaxForm({

dataType: "json",
                success: function (event) {

                if (event.success) {
                    member_favourites = "5";
                    //do something
                }
            }
        })


texts:
I would like to add channel field checkbox called featured and filter out the entries if it is checked.

Can this be done using the channel entries tag?


texts: DB error when a new user registers after server migration

texts:
Just moved the site from a lamp to IIS. We are using Solspace's User module for registration but we are getting the following DB

A Database Error Occurred
Error Number: 1366

Incorrect integer value: '' for column 'last_activity' at row 1

INSERT INTO `exp_members` (
`group_id`,
`username`,
`password`,
`salt`,
`ip_address`,
`unique_id`,
`join_date`,
`email`,
`screen_name`,
`time_format`,
`url`,
`location`,
`occupation`,
`interests`,
`language`,
`last_activity`,
`bday_d`,
`bday_m`,
`bday_y`,
`aol_im`,
`yahoo_im`,
`msn_im`,
`icq`,
`bio`,
`profile_views`,
`timezone`,
`signature`

)VALUES (

'6',
'ashby', '63fd27cab8beb2c3fbf8aca6d49f71a333ab71c3a741d8fd3bd6627698696b1fa4dc63ece5143a06a8701081f0a64b3fea9da59a181b770c5876a4454e9610cb', 'CzO6TFy\'#l=<`G@BSjl?AEa*W[Y0N3bcr4).O:;@j^:+Bds&4wM:)*\\w,m!ziRC~sp\".o-m1.qZTR?TeK,JhmCut;j',
'190.140.68.177',
'a6444108bf453435e0b71f60ea11e4b640403178',
1425070565,
'email@gmail.com',
'ashby',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'')

Filename: C:\inetpub\wwwroot\system\codeigniter\system\database\DB_driver.php

Line Number: 330


texts: How to create a multi-page rental order/catalog form with email notifications & session?

texts:
I need to create a form that allows customers to select various rental items from a large list of products.

Users will be able to select the quantity of each item they require and then hit submit. Upon submitting the form no special inventory or e-commerce functionality needs to take place. An email simply needs to be sent to an admin with the requested items. They'll then contact the customer directly.

Here is an exact example of what we're trying to replicate: http://www.quixote.com/get_a_quote#.URIvJE_bpAN

I immediately thought of Freeform. But there are still a few issues there will be a large number of products that will probably need to be paginated. We'd need to be able to retain the user's selections across pages?

We also need to be able to import the product info weekly via .csv file upload. For this I was planning on using DataGrab.

I'm trying to figure out the best way to achieve this. Any suggestions would be appreciated.


texts: Low Search - have channel as search criteria

texts:
I've been wrestling with this for too long and it's doing my head in now!

I am using the low search plugin for expressionengine and want to search:
a) by keyword (which is working fine)
b) by channel - selected by dropdown (which I can't get to work)

So the results would show channel entries with the relevant keywords ONLY in the selected channel.

Currently I have:

{exp:low_search:form
        form_class="header-search"
        form_id="search-keywords"
        required="keywords"
        result_page="search/results"
}
            <select name="searchChannel">
                <option value="channel1|channel2">All</option>
                <option value="channel1">Channel1</option>
                <option value="channel2">Channel2</option>
            </select>
            <input type="text" name="keywords"id="keywords">
            <input type="submit">
{/exp:low_search:form}

results page:

{exp:low_search:results
   disable="{gv:disable_default}"
   limit="18"
   orderby_sort="title|asc"
   query="{segment_3}"
}

I can pass through the searchChannel field through to the results page by adding:

{low_search_searchChannel}

to the results page; and of course I can set the channel filter in the results page by hard coding it:

channel="channel1"

but if I try:

channel="{low_search_searchChannel}"

I get nothing. There's probably a better way anyway to pass it straight in via the form tag, but have tried everything I can think of!

Thanks in advance


texts: If url_title doesn't exist, display random entry

texts:
Edited to be more specific in regards to my other modules/plugins:

I have a site that is basically set up like a printed calendar with an image on top and the content for the month below. The image and content come from two separate channels.
The main page content is dynamic based on the url, and is working fine. I'm having trouble getting the image channel to display the way I want it to.

My url structure looks like this: events/calendar/date

I'm using Structure, Low Events to display the main page content, and Freebie to tell EE to ignore the date segment of the url, so that Low Events plays nice with Structure.

My Images channel is set up so that the url_title of my image entries is the same as the date segment of my page url for the month when i want the image to display. For example, my December 2012 calendar page url is events/calendar/2012-12 and my December image's url title is 2012-12. With this setup, i can use url_title="{freebie_3}" on my entries tag to display the proper image each month. This also works fine:

{exp:channel:entries channel="calendar_images" limit="1" url_title="{freebie_3}" dynamic="no"}

My problem is that there may be months when I don't have an entry in the images channel, but I still want to display a random image, rather than just leaving it blank.

As it is currently set up, if my freebie_3 segment doesn't match an existing url_title in my images channel, I get no result. Is there some way that I can get EE to display a random entry instead?


texts: White screen of death when accessing Accessories in CP

texts:
I have been having this issue with multiple EE installs since about 2.5.5.

Everytime I try to go to Accessories in the CP, I get a white screen with no errors. I tried turning debugging on in my index.php but get no errors output. Any ideas?

I have nothing except safecracker on my site right now, I uninstalled and deleted everything else that wasn't default (add-ons/extensions/etc) to see if that would help also. My cache folder & contents are set to 777 permissions, my accessories folder is 755 (haven't changed that). I have no idea why I can't access the page.


texts:
So I have an include template named '.head' in which I am calling my CSS like so:

<link rel="stylesheet" type="text/css" media="all" href="{stylesheet=assets/styles-css}" />

I was referencing the rest of the styles via imports at the top of that file like this:

@import url(//full-path-to-the-next-stylesheet-0.css);
@import url(//full-path-to-the-next-stylesheet-1.css);
@import url(//full-path-to-the-next-stylesheet-2.css);
@import url(//full-path-to-the-next-stylesheet-3.css);
@import url(//full-path-to-the-next-stylesheet-4.css);
@import url(//full-path-to-the-next-stylesheet-5.css);
@import url(//full-path-to-the-next-stylesheet-6.css);

This was fine when this was a static site. However, in EE I was getting mixed results by it 'sometimes' loading the styles and other times not. (Mostly not)

I thought maybe it would be better to just bring them all into EE and let it manage all stylesheets. Now I have this:

/*---------------------------------
IMPORTS
-----------------------------------*/
@import url("{stylesheet='assets/css-0'}");
@import url("{stylesheet='assets/css-1'}");
@import url("{stylesheet='assets/css-2'}");
@import url("{stylesheet='assets/css-3'}");
@import url("{stylesheet='assets/css-4'}");
@import url("{stylesheet='assets/css-5'}");
@import url("{stylesheet='assets/css-6'}");

The problem with that is that I end up having to change the first to {path} rather than {stylesheet} to use the {stylesheet} tag for the @imports.

This also takes FOREVER to load.

Long question now shortened...

What is the best way of handling this? I would like to use the native stylesheet tag for caching reasons.

Thanks in advance.

EE v2.5.5 - Build Date: 20121220


texts: Low Search + SafeCracker Registration: How To Sort By Distance?

texts:
We are building a membership site that uses SafeCracker Registration so that Member data can leverage Channels. In the Member associated Channel, it has a latitude and longitude field that's always populated with the Member's geocoded location.

In Low Search, is there a way to apply the Haversine formula to compute the distance between the lat/lng of the logged in member (guests will not have lat/lng) and the lat/lng of the other members and sort by that? Perhaps something like passing a callback function to compute distance to the orderby parameter???


texts: EE1 Site Not Parsing Custom Fields Locally

texts:
I've just finished the local setup of a site running EE 1.7.1.

I have one issue... custom fields inside the exp:weblog:entries tag are not parsing at all. The title does show correctly.

I've check all paths and they are correct. I've disabled extensions, still no parsing. I stripped my template to the bare minimum and still no parsing.

QUESTION: Does anyone know why the entries tag isn't parsing custom fields on this local install?

Debugging output:
http://pastie.org/private/5qrbdhd95hn28sf3zfg

My test template:

{exp:weblog:entries weblog="static" limit="1" url_title="{segment_2}" dynamic="off" disable="category_fields|categories|member_data|pagination|trackbacks"}

Title: {title}

Copy: {s-copy}

{/exp:weblog:entries}

The template output: