texts: Using Channel Form to edit enry, getting "The date you submitted is not valid."

texts:
I am using Channel Form to edit an existing entry. I am wrapping the channel form inside a Channel Entries block so I can have more than one entry on a page (not using a segment variable to indicate the entry_id). Here is the code I am trying to get to work:

{exp:channel:entries channel="image_bank" limit="1" disable="trackbacks|member_data|categories" rdf="off"}

{exp:channel:form channel="image_bank" entry_id="{entry_id}" include_jquery="no"  include_assets="no" return="{site_url}/manage/index/" datepicker="no"}

Description: {field:image_description}

Keywords: {field:image_keywords}

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

{/exp:channel:form}

{/exp:channel:entries}

It actually does work in that it updates the entry. But it gives an error of “The date you submitted is not valid.” But it still updated the entry.

I have tried including hidden fields for the entry date and edit date but this did not help.  I have tried datepicker="no" and “yes”.

This seems like a basic function so I must be missing something basic. I am using ee 2.8.1.


texts: Using the class="store_product_price" with sale items?

texts:
Is it possible to still show that an item is on sale while using the dynamic product variable for store_product_price?

Here is what I am trying to do:

{if on_sale}{regular_price}{sale_price}{if:else}{price}{/if}

When I use the above code, it ONLY shows the sale price, but I'd still like it to show the regular price crossed out.

Am I missing something?


texts: Free Shipping Products Apply to Order Shipping

texts:
When you have a product that is marked as free shipping and a product that has paid for shipping in the same basket, I would imagine that you would still pay for shipping.

A particular client of mine wants it so that if you add any product with free shipping you get free shipping for your entire order.

Is this possible?


texts: Conditional subnav display with Taxonomy

texts:
I have a tree like this:

About Us
 - Alpha
 - Beta
 - Delta
  * Three Sub 1
  * Three Sub 2
Careers
  - Full time

When the current page is 'Beta', since 'Beta' does not have any child entries and is at the second level of navigation, I want to hide my navigation breadcrumbs.

I have the breadcrumbs displaying fine, but how would I use a condition to check that a node is both at a certain level, and also has no children?


texts: Low Search - Cannot add collection from channels from category group

texts:
I'm working on an older site that was setup using Low Search. There are two main categories, and I need to add the blog into a collection, so that I can set the overall site search to pull entries from the blog. However, when I go to low search and attempt to set up a collection from the "blog" channel, that channel, and any other within its "blog" category are not available to create a collection.

I've been searching for a while, and can't seem to find the answer to this specific question, however I also don't have much experience with this particular plugin, so I apologize if I'm overlooking something simple.

Can I only create collections from channels within one category group?

This site is running an older version of Low Search, v1.1.0.


texts: Why can I not import a list of emails into a mailing list? SOLVED

texts:
I am trying to batch import a list of emails and I get the error:
The following emails could not be imported:
then a long list of all my emails.

What stops EE from importing these emails?  They all appear to be correct.

Strange thing is emails can be batch entered individually but not as a batch.

Emails that failed to import in a batch can be imported individually

I think there were some hidden tabs or something. Finally got it to work


texts: Any way to get Wyvern or Wygwam to set a tag PLUS its required attributes?

texts:
I know how to set up custom styles in Wyvern and Wygwam so that my client can apply, say, a <dfn> tag or <abbr> tag to some text. And I can set attributes within that tag. But the values of the attributes (in this case, lang and title attributes) are hard-coded via the custom style configuration.

Is there any way, using either Wygwam or Wyvern, to let the client specify the content of those attributes without them having to click the Source button and wallow around, shrieking, in the raw horror of HTML?


texts: How can I check if an event is currently happening with Solspace Calendar?

texts:
I am putting together a site full of events. Some events are recurring (monthly, daily, yearly), others are one-time events that can be one hour to sometimes three days long. I would like to call out that they are currently happening, have happened or will be happening. What is the best method to do so?

Looking for the functionality as such:

{exp:calendar:cal event_id="{entry_id}"}
    {if event_is_over}This Event is over{/if}
    {if event_is_happening_now}This Event is Currently Happening{/if}
    {if event_will_happen}This Event Will Happen{/if}
{/exp:calendar:cal}

As an aside, the "event will happen" has a javascript countdown timer. Not critical to the answer, but putting it out there.


texts: EE 2.7.1 Publish Layout fields disappearing

texts:
So I upgraded to EE 2.7.1 and I am having issues with my publish layouts. If I leave things well alone, all seems good in the world. However, if I go in and edit the layout to rearrange fields in a more friendly manner, they disappear when I go in to publish a new entry or edit an existing entry.

Very basic... If I split the difference between title and url_title, save the layout, exit the  entry, go back into the entry or create a new entry, the url_title is gone and a blank box is sitting on the "eyeball" icon in the toolbar.

Has anyone else run into this? How the heck do you fix this?


texts:
It seems is no longer available for download?
Since I have EE 2.7 installed I'm limited to using the FILE fieldtype, which doesn't seem to work when I try to upload a file logged in as a member of the "Guest" Membergroup. Anybody with similar experience?


texts: Allow multiple (assigned) members / authors to edit an entry

texts:
Currently i use safecracker in combination with author_only="yes" to allow members to publish and edit their own news and edit their info page.

What would be a method / procedure or what would you suggest to allow
multiple members to edit one specific entry (e.g. the info page)?

I can't just only remove the author_only parameter and allow all members to edit all info pages. Only assigned members should be able to edit an entry.
Is a relationship/playa field on the info-page a possible route? How would you check for access-privileges?

Edit: one approach is with categories but this gives more broad access to editors.
Limit Safecracker access to specific entries, using member groups and categories

Edit2:
Possible solution, using a modified version of chosen_member addon
(e.g. added a method to check if logged in user is selected)

{exp:channel entries url_title="segment_3" }
  {if chosen_member_field:is_chosen=="yes"}
    {embed="group/safecracker" entry_id="{entry_id}"}
  {/if}
{/exp:channel:entries}


texts: Safecracker Membership: how to get the entry id of a member?

texts:
I'm using Safecracker Registration so I can leverage Channels for my member data. When the member is logged in (in my own UI, not EE's CP), is there a way for me to get the entry id in the Channel that's associated with the member?

My idea is to do a search like:

{exp:channel:entries channel="profiles" author_id="CURRENT_USER"}
   {entry_id}
{/exp:channel:entries}

Presumably, there will only be one entry_id. And although this may work, I'm reluctant to use this approach because I'll need to loop through this exact same channel several times on that page (e.g. in the header, in the footer, etc.) as my templates are broken up into parts for reusability.

I'm hoping for a non-Stash solution at this point. Suggestions?


texts:
I'm attempting to insert an Assets field, Grid data along with some other text input fields into a Info Box in a Store Locator page. My code is as follows:

{exp:gmap:results order_by="distance" sort="asc" parse="inward" cache_post="false"}
{if has_searched}
    {results}
        {exp:gmap:marker
            id="map1"
            title="{title}"
            address="{locations_address1} {locations_city}, {locations_state} {locations_zip}"
            extend_bounds="false"
            open_windows="false"
            show_one_window="true"
            clustering="true"
            duplicate_markers="false"
        }

                    {if locations_image}{locations_image}{/locations_image}{/if}

{title}

{locations_address1},{if locations_address2}
{locations_address2}{/if}
{locations_city}, {locations_state} {locations_zip}

Phone: {locations_phone}

Store Hours:

                        {locations_hours backspace="6"}{locations_hours:day} {locations_hours:time}

                        {/locations_hours}

        {/exp:gmap:marker}
    {/results}
{if:else}

    {exp:channel:entries channel="{embed:channel}" status="not closed" sort="desc" orderby="date" disable="category_fields|member_data|pagination|trackbacks" dynamic="no"}

        {if locations_image}{locations_image}{/locations_image}{/if}

{count}. {title}

            {categories}{if category_url_title == 'john-atencio-store'}
{category_name}
{/if}{/categories}

{locations_address1},{if locations_address2}
{locations_address2}{/if}
{locations_city}, {locations_state} {locations_zip}

Phone: {locations_phone}

Store Hours:

            {locations_hours backspace="6"}{locations_hours:day} {locations_hours:time}

            {/locations_hours}

    {switch='|

'}
    {/exp:channel:entries}

{/if}

{if no_results}

No locations found, try another search.

{/if}
{/exp:gmap:results}

What's strange is that my index page works fine with the Assets and Grid. It's just the items in the {if has_searched}{results}...{/results}{if:else} items aren't parsing. The standard fields are working but anything that needs a tag pair to render doesn't.

I'm sure I'm missing something basic or it could be a bug too! :) Isn't everything a bug if you can't figure something out :)?

Thanks for the help on this one!


texts:
I have an issue displaying my related content to an entry.

To serve some context, I have a Channel called Projects, and I also have a Channel called Services.  In Projects I have a Relationship field called 'project_services' that pulls in content from the Services Channel.

Below is a gist of my code.

https://gist.github.com/NickToye/6045642

Where am I going wrong?


texts: As admin, I assigned a Member entry to myself, but after completing that action I was unable to re-assign that entry back to the member. In fact the member's screenname doesn't even show up in the list of Authors anymore. How do I give that entry back to the member?


texts: Renaming system directory if directory is outside root?

texts: What's the general consensus regarding the renaming of the system directory if it resides above root? I was recently updating my default EE install to initially start with the directory above root and thought that it was overkill. It seems to me that if someone discovers the system directory when it's above root you have much bigger problems to worry about. Is renaming the system directory overkill or should I rename both the admin.php file AND the system directory?


texts: Entry Category within channel:entries within options: loop within channel:form

texts:
I'm trying to display the channel entry category with {categories}{category_name}{/categories} but nothing shows up. I'm assuming that the channel:form somehow interferes with the channel:entries loop.

{exp:channel:form channel="message_on_hold" secure_return="yes" return="order/moh-checkout/ENTRY_ID" member_data="yes" error_handling="inline" secure_action="yes" entry_id="{segment_3}"}
  {options:moh_music}
    {if option_value != ''}

      <input type="radio" name="moh_music[data][]" value="{option_value}"{checked}>

      {exp:channel:entries entry_id="{option_value}" dynamic="no" limit="1"}
         {categories}{category_name}{/categories} ### Doesn't work, shows nothing
      {/exp:channel:entries}

    {/if}
  {/options:moh_music}
{/exp:channel:form}


texts:
I'll try to explain it. Here we go.

Searched all over the web but got nothing.

I've got a setup where no category is used in the URL. Navigation is build with stucture. I've got a channel with entries which do have a category.

When I create a entry with structue I assign a category as well.
You'll get something like this in stucture:

Locations
- Location A (has template X and category Y)
- Location B (has template X and category Z)

Now the url looks something like this:
www.website.com/locations/location-a/
www.website.com/locations/location-b/

I don't know the category. But I do want to display the entries which belong to the Location with category Y or Z.

The solutions I've tried all need the cat name or id in the URL

It could be that I'm looking at it the wrong way.  Hope someone can help me or point me in the right direction.

Cheers,
Martijn


texts:
I’m having an issue where I'm using Assets (EEharbor) inside a EE Grid, inside an EE Fluid field. I think I have the tags correctly set up, it’s outputting the correct number of results (files) from the assets field, but all the rendered tags have the same content.

Has anyone encountered this before? This is my mark up.

{cf_fluid}
    {cf_fluid:cf_fluid_downloads}
         {content}
            {content:download_title}

            {content:file_downloads}
                {content:file_downloads:filename}
                {content:file_downloads:title}

            {/content:file_downloads}
        {/content}
   {/cf_fluid:cf_fluid_downloads}
{/cf_fluid}

Thanks


texts: How to quickly grab an entry's category (and child categories)

texts:
EE experts --

I must be missing something. It seems that the only way to grab the categories for an entry is via a sub-query, using GWcode, for instance. Categories are not readily available like they would be for custom fields or {title}.

This is a big pain for a few reasons. Take a site, like the site I am developing for a client -- a craigslist spin-off. Every entry has a category (Events, Free, etc). Each entry also has a Location category. Seattle (child), Washington (parent category).

Now, whenever I list entries from search results, etc, I have to use a pliugin (EE's favorite answer) to list the category and location of the entry.

This completely destroys performance. So I talk to EE support, they say my code looks good, try caching. Fine. Caching is a reasonable answer. It works well enough for this, but not always. Anytime, anywhere I need to list entries in a custom query (for the current_user, for example) I get slammed by this bottleneck.

Maybe my question is about caching? Can anyone here speak to the larger issue? This is likely my last project in EE because of this issue. Is a design flaw in my structure? Surely I'm not alone on this?


texts: Templates in default group not displaying unless group name is in the URL

texts:
I have a set of templates in my default template group called "home".
These templates are "about", "contact-us", "membership" and of course "index".

Only the "index" template will display without the name of the group in the url.
PASS: example.com/
PASS: example.com/home/about
FAIL: (404) example.com/about
PASS: example.com/membership
FAIL: (404) example.com/home/membership

I have tested this with and without an "index.php" .htaccess re-write. No luck.

(Details: Brand new EE 2.6.1 install on stable cPanel server.)

I've never seen this happen before.
Thanks.


texts: Is there any way - in Expression Engine - that there is a global variable or even a constant to reference the domain of the current site you are working on instead of hard coding the domain name in your links?


texts: Using Stash within Stash to pass an entry_id for Safecracker

texts:
I'm using Stash in a few ways.  First, as a layout template (.layout-account.html). Second, to get variables for testing.  But I'm struggling with the final part.

I have two channels - Users (via Zoo Visitor) and Firms.  I want the user to be able to edit their own firm via a safecracker form.  There exists a Playa field within the Zoo Visitor channel called "Firm".  It let's my client choose the correct firm that the user belongs to from the Firms channel.

I have a Low Variable called {lv_stash_get_firm_id}.  This calls a {channel:entries} to get the value of the Playa field for their firm.

{exp:channel:entries channel="zoo_visitor" limit="1" author_id="{logged_in_member_id}" status="HCAA_Members-id5|Open" parse="inward"}
    {exp:stash:set name="firm_url"}
        {embed="includes/.get_firm" entry_ids="{member_firm_name:child_ids}"}
    {/exp:stash:set}
{/exp:channel:entries}

The template .get_firm looks like this:

{exp:channel:entries channel="firms" fixed_order="{embed:entry_ids}" fixed_order="0|{embed:entry_ids}" dynamic="no" disable="member_data|pagination|categories" status="not closed" parse="inward"}
{entry_id}
{/exp:channel:entries}

My template for manage-firm-info looks like this:

{embed="layouts/.layout-account" site_top="public_top" security="yes"}
{lv_stash_get_firm_url}
{exp:stash:main_content}
            {if last_segment == "success"}

Your information has been updated.

            {/if}

            {exp:safecracker channel="firms" entry_id="42" return="/profile/{segment_2}/{segment_3}/success" parse="inward"}
                ... Stuff ...
            {/exp:safecracker}
{/exp:stash:main_content}

The .layout-account controls all of the header and footer stuff, etc., and also calls {exp:stash:main_content}

Everything works fine if I use:

{exp:safecracker channel="firms" entry_id="42" return="/profile/{segment_2}/{segment_3}/success"}

or (assuming the entry_id is in the URL)

{exp:safecracker channel="firms" entry_id="{segment_3}" return="/profile/{segment_2}/{segment_3}/success"}

But obviously that won't work as the entry_id won't be the same for each user.  Also, I'd rather not show the entry_id in the URL as someone could then modify it and change someone else's firm.

So I thought I would try to use Stash to set the firm_id and them pass it into the Safecracker form like this:
    {exp:safecracker channel="firms" entry_id="{stash:firm_url}" return="/profile/{segment_2}/{segment_3}/success"}

However, that doesn't work.

If I add {exp:stash:firm_url} prior to the Safecracker form, it spits out the correct entry_id.  So it's getting that far.  But it's not getting to the Safecracker form as it gives me an error that I need a valid entry to edit.

I'm guessing this is a parsing or syntax issue but I just can't quite get there.

Any help or suggestions are greatly appreciated!!


texts: How to share an entry to show up only to some users

texts:
Hei everyone,
I am trying to build a small system for an architectural bureaux like this :
The main architect posts a House Project (  # an entry ).

he invites 1 or more people to join the "project"

When they log in into their account, they will see only the entry "asigned" to them
Questions:
How can the architect invite people into "his project" ?
How can that people, once they log in, to see only the posts assigned to them ?
I thougght using  SOLSPACE USER module and let the architect select from his list the authors ( people ) so they can see the post they are assigned to, but it doesen't seem to work as I encounter the problem : there are more than 2 architects and they each have different people to assign to different projects, so the list of authors to select from will be the same for both of them and they well see each other's people...
Any solution for this ?
Thank you !


texts:
I Have a freemember form. I originally had a comments text area coded manually:

<textarea name="register_comments"></textarea>

But this meant that the field emptied if you submitted the form with a required field empty. To get round this I'm trying to generate the field using a field tag:

{field:register_comments}

But this outputs a text input rather than a text area. I've made sure that the field is set to 'Text Area' in the EE admin.

Is there any way round this?

Thanks


texts: Structure-like behavior from Channels/Relationships (EE 2.6.1)

texts:
Some of my clients need to add what I would call "ad-hoc" pages to their sites. As many have pointed out, this is (a) somewhat contrary to the spirit/concept of EE channels and (b) when necessary, arguably best handled by the Structure module.

On a new project I'm considering skipping Structure and incorporating two channels: one called Pages and another called Sub-Pages. Both channels would have generic {main_content} and {sidebar_content} fields, but Sub Pages would have a {page_assignment} relationship field to subordinate the page to an existing Page.

How would you output a dynamic navigation of titles/links with unordered lists, adding active classes as appropriate? To save space, Sub Pages belonging to a Page should only be listed when that Page or sibling Sub Pages are active. In other words, you have to "click into" a Page to see its Sub Pages.

So if I'm on the Products landing page or the Products 1 sub page, the nav should look like:

Products
    Product 1
    Product 2
    Product 3

About the Company

Services

But if I'm on the About the Company landing page or the Our History sub page, it should look like:

Products

About the Company
    About Our Team
    Our History

Services


texts: If using Expresso Store, is it possible to feature products in non-store pages? Is there a way to feature "related products"?

texts:
Maybe a dumb question, but I have zero experience with Expresso Store. Since products are channel entries, is it possible to 1) feature products in non-store pages (say the homepage) and 2) use categories or relationships in order to show products related to the product the user is viewing?

Bonus question: Are the expensive SSL certificates with the green URL background worth the $$? How low can I go with SSL costs and still be secure?

Thanks!


texts: Getting random, unformatted page on Template/Channel Entry Edit

texts:
Quick run down of the site:

EE 2.6.1
Media Temple Grid Service

Since we moved the site to their production server, we've noticed that we will randomly receive a page that is missing any formatting and has only bracketed information. For example, when we update a template we will sometimes get this whether or not we use "Update" or "Update and Finished":

{"message_success":"Template Has Been Updated"}

If we update a channel entry and use "Update and Finished" the system will return a bracketed list of entries within the channel but no admin. The only way to get around the issue I have found is to strip everything after the ?S= key so I can use the admin. If I don't, when I try to log in or go to the admin login page I just get this returned on the page with nothing else:

C=login

It is important to note that the only EE developer that we had was let go and I have little-to-no experience managing an EE site beyond basic templating and the like so any help would be appreciated.


texts:
Just wondering if anyone knows of a discount plugin for CartThrob where you can place a free product in the cart if someone buys another product?

I'd like to set in the admin a discount so that if a person buys product X then product Y will automatically get added to the cart for free.

Thanks


texts: Show small icon in Assets if image is being used in system or not?

texts:
Looking for a way to show, with a little icon or other indicator, if a file in the Assets module is used in the system or not, as this would be a great help to editors.

This would help while cleaning up large image collections, removing old files after a redesign, finding out which one of the duplicate images with similar names that is being used, and so on.

We have build this functionality into the front end version of a simpler media bank already, but the client would love the same functionality in the Assets module in the Control Panel as well. Interested in if somebody done something similar and/or can recommend a way of extending Assets this way (since we can't find any hooks for displaying files) before we jump in?


texts:
I have a custom field for some body text, but the content for one particular entry is so long that it gets chopped off, presumably because of the MySQL limit for columns of type TEXT.

I absolutely loathe pagination so that's not an option.

Would it be safe to simply switch the column's type to something like MEDIUMTEXT? It's a large site with thousands of entries so a bit nervous of messing around in the database.

Any other options?

James


texts: We're using EE 2.9 and Expresso Store 2.3.1.  Automatic emails sent when an order is placed work fine with PHP Mail and Sendmail, but wont send over SMTP. The client wants to switch to SMTP, we've added the username, password etc.. to EEs email settings, is there anything else we ned to change?


texts: Control Panel (CP) Link Button is not working

texts:
There's a button in the top right corner of every EE install that links to the front-end of the site. On one of my installs it's returning:

http:///

instead of the site's address.

Where can I change the setting for this button?

If you look at the html it's the anchor inside the "msm_sites" list item.


texts: Member Group Tabs - Admins being logged out Tab URL

texts:
I'm having issues with the Member Group Tabs.  My admins are being logged out when they click on menu items.

I think the issue is on the url tab.  I've tried a variety of urls but nothing works.  Not even the example url :

/admin.php?&D=cp&C=design&M=manager


texts: If logged in statement failing - template not parsing properly

texts:
I have an Expresso:Store site and I am using the following conditionals in the header:

{exp:store:cart}
{if no_items}
    Your bag is empty

            {if logged_in}

My Orders

            {if:else}

Login
            {/if}

    {/if}

My Shopping Bag ({order_qty})

         {order_subtotal}Checkout
     {if logged_in}

My Orders
     {if:else}

Login
     {/if}

{/exp:store:cart}

When I am logged in, the template parses fine and everything works.

If I am NOT logged in, the template parses up to the commented line  and the header template fails to output anything after that line, breaking the remaining page layout.

It's as if it just stops after that line, but I can't work out what I have done wrong, there are no template errors I can see in the EE template editor.


texts: Bootstrap navigation mark-up using NavEE

texts:
My site is built on Bootstrap 3 framework and I am using NavEE as the navigation plugin. One thing I cannot figure out is how to implement the conditionals required to build out the navigation structure eg. if there are children nav items then display modified mark-up as required in Bootstrap.

Below is the Bootstrap structure I need to create using NavEE:

Home

    Options

Option 1

Option 2

Contact Us

I can easily create the top-level navigation using the basic NavEE syntax:

{exp:navee:nav nav_title="main" class="nav navbar-nav" selected_class="active"}

I have tried using the custom NavEE syntax but have found the documentation limited so have not been able to work out the correct conditionals:

{exp:navee:custom nav_title="main" class="nav navbar-nav" selected_class="active"}

{text}{kids}

{/exp:navee:custom}

I want to be able to say something like this:

{exp:navee:custom nav_title="main" class="nav navbar-nav" selected_class="active"}

{text}{if kids} {/if}{kids}

{/exp:navee:custom}

Even if I could get that to work I still need to target the nested UL.

I have used Taxonomy in the past and have been able to create the required Bootstrap 2 navigation structure:

{exp:taxonomy:nav
tree_id="1"
display_root="no"
ul_css_class="nav"
ul_css_class:level_2="dropdown-menu"
entry_id="{entry_id}"
}

    {if node_has_children} {/if}{node_title}

{children}

{/exp:taxonomy:nav}

Any assistance in allowing me to control NavEE in the same way I have been able to with Taxonomy would be greatly appreciated.

Thanks,
Dan


texts: url_title Does Not Return Results in {exp:playa:parents} Tag

texts:
I'm trying to filter a list of products based off of a Playa field. The URL for the template is like this: http://www.mysite.com/products/seller/joes-jetpacks

joes-jetpacks is the URL Title of the entry the product is related to. So to display all products that are sold by Joe's Jetpacks, I'm using this tag:

{exp:playa:parents
    channel='products'
    url_title='{segment_3}'
    limit='7'
    disable='member_data|category_fields'
    orderby='title'
    sort='asc'
    paginate='both'
    status='open|Featured'
}
    {!-- channel listing content --}
{/exp:playa:parents}

But that returns no results. Alternately, if I replace the url_title parameter with entry_id, and use the url http://www.mysite.com/products/seller/1234 instead, I get the correct results.

EE 2.5.2
Playa 4.4.3


texts: Solspace Super Search search_in not searching secondary fields

texts:
The search_in variable doesn't seem to be searching both fields in this select statement. So only results from the primary location are being returned I believed. I checked the entries and they do use the secondary field. The second field is a relationship, is that the issue? Thanks in advance.

<select name="work_office[]"  name="search_in" value="work_office|work_office_2" class="Textbox4">
    <option value="">&nbsp;</option>
                {exp:channel:entries channel="offices" orderby="title" sort="asc" dynamic="no" category="1" }

                    <option value="{title}&&"" >{title}</option>
                {/exp:channel:entries}
                </select>


texts: Redirect from Member/Register is not working

texts:
In order to prevent unwanted member registration I have set up a redirect from the member/register page using the following code in the .htaccess file:

Redirect 301 /member/register http://sitexyz.com/

This should be working but it is not and returns the following url and still displays the registration page.

http://sitexyz.com/?/member/register

Am I missing something in the redirect?


texts: I asked this question some time back and it worked, however I don't see the backspace parameter listed in the docs now, nor do I see in the change log that it was removed. I tried it anyway and it doesn't work. Is there another way to remove the last comma from a list of tags? Thanks


texts: Emails not sending - where are email configuration details saved?

texts:
Emails are not getting sent from my EE site. It doesn't work for password reset, order confirmations from Expr-esso store, or when I use Communicate.

I have enabled email debugging and set protocol to Mail, then tried to send an email via Communicate. I didn't see any debugging info.

I am trying to use Mandril and have set protocol to SMTP and set server/port/username/password. Emails still not sent -- and I don't see any evidence of an attempt in Mandrill API logs.

Oddly - I can't seem to change the SMTP username and password under email configuration. When I edit those two fields along with other fields, everything else gets saved properly except username & password. They retain the original values. The password is not correct and needs to be fixed.

Where are the details for email configuration saved? I have been looking in the database and files, but not really finding anything.

Also, any suggestions on how to troubleshoot this problem?


texts: Error saving entry with Matrix - Undefined index: field_id

texts:
After upgrading from Matrix 2.5 to 2.5.4 (and then to 2.5.5 today), I am now getting errors when I save entries with Matrix fields. The error reads:

A PHP Error was encountered
Severity: Notice
Message: Undefined index: field_id
Filename: matrix/ft.matrix.php
Line Number: 2644

The site also runs Solspace Super Search 2.0.7.

ExpressionEngine version is 2.5.0

Anyone running into this issue?


texts:
I have built a custom gateway for sage pay form.

The plugin gathers all the data from Store and then posts it off to sagepay in an encrypted string.

User than completes payment on the the sagepay website before being posted back to a specified success URL with an encrypted string attatched. When the string is decoded you can view the order status.

How do i notify cart that the order has been paid for and to log it as complete?


texts:
Where can I see the website processing time, serverside?
I mean how much time it took to compile the site for delivery.

I installed the ee debug toolbar. But which of this data is it?

The reason I ask is because I wonder if its worth to cache the relatively small site or if the server processing time is neglectable.

Thank you


texts:
Is there any way to pass additional info with Expresso Store order? I would like to have a check box during the checkout process which will indicate to make that order as a gift (requires special wrapping), something similar to accept_terms tag.

Thanks


texts: Some of my templates outputs JSON string, which was designed to be consumed by the frontend's JS. However, I also have the need to consume this JSON within my templates. Is there an add-on that I can use that takes a JSON string and converts it to loopable EE data? If not, how can I approach this problem?


texts: using Stash to replace Matrix image slugs

texts:
Like most people, I was using NSM Transplant in tandem with Matrix to have {image_1} etc within a WYSIWYG field like so http://vimeo.com/18661374

I've managed to achieve the same thing using a template partials approach, however, I'm working on a site just now that's been an upgrade from EE1 (which used LG Replace) and I have no desire to refactor the templates to template partials.

Is there a way I could achieve the same thing in the Vimeo video using Stash?


texts: Forgot password/other member functions busted

texts:
I've taken over a site that has a lot of customization.

URLs like: /member/forgot_password yield a blank page. If I visit them when logged in as a superadmin, I get this debugging info:

(0.000004 / 11.29MB) - Begin Template Processing -
(0.000398 / 11.36MB) URI: member/forgot_password
(0.000408 / 11.36MB) Path.php Template: /
(0.000415 / 11.36MB) Retrieving Template
(0.000420 / 11.36MB) Parsing Template URI
(0.002118 / 11.68MB) Template group and template not found, showing 404 page
(0.002130 / 11.68MB) Retrieving Template from Database: /
(0.003083 / 11.69MB) Template Not Found
(0.003096 / 11.69MB) Template Type: 404

Detective work to figure out just what would hide this basic member function. Member login does work, sort of.


texts:
Running EE: 2.7.2 and CT: 2.4

I have a packages channel in my CT configuration for product bundles. It's using the packages field. I'm trying to figure out why it makes the page run really slow in the backend when trying to add a new entry to that channel. This is also causing problems on our productions site: 508 Resource Limit Has Reached

Debugging

After some debugging I've found that when I load the publish page first time around the PHP is processing for 40 seconds after the page has loaded.

It runs this query twice:

SELECT cd.*, ct.*, c.* FROM exp_channel_titles ct JOIN exp_channel_data cd ON cd.entry_id = ct.entry_id JOIN exp_channels c ON c.channel_id = ct.channel_id

If you know your SQL you can tell this isn't exactly efficient.

Then runs through a foreach and nested foreach about 2000 times. While it's doing all this I can't submit the form until it's finished. This is all before I've even searched for anything.

When I do finally search ('tray' in this example) for something it takes ~25-30 seconds to get results. It runs the query mentioned above 6 times and runs foreach around 1800 times. The length of the search term is relative to processing time.

Is this a problem that anyone else has experienced?

Is it something that I'm doing wrong?

Or is it just bad code by the CT team?


texts: EE3 Transcribe url not updating after language switch

texts:
After language switch from news entry, url goes from localhost/news/reach-and-read to localhost/es/news/alcance-y-lea

I was expecting change to localhost/es/noticias/alcance-y-lea

But if I change from news page localhost/news/ it changes to localhost/es/noticias/ works fine any ideas whats wrong with the entry url update?


texts:
I'm having two separate no_results problems with Stash.

First, if I visit a page that doesn't have a corresponding last segment using the code below, the page displays stuff like {2e1acf078c376a119e542c46883a119f33292409} and nothing else:

{stash:embed name="layouts:global"}

{exp:channel:entries
    channel="site"
    url_title="{last_segment}"
    disable="categories|member_data|pagination|trackbacks"
    require_entry="yes"
}
    {if no_results}{redirect="404"}{/if}

    {exp:stash:set name="st_content" type="snippet"}
        {body}
    {/exp:stash:set}

{/exp:channel:entries}

Then in another template, the switchee_no_results doesn't redirect to the 404 template, it just displays a page with a blank content area. I've also tried just plain no_results and also settings a prefix parameter on the get_list tag.

{stash:embed name="layouts:global"}

{exp:stash:set_list
    name="project_list"
    parse_tags="yes"
}

    {exp:channel:entries
        channel="projects"
        disable="member_data|pagination|trackbacks"
        {if segment_2=="detail"}url_title="{last_segment}"{/if}
    }

        {stash:project_url_title}
            {url_title}
        {/stash:project_url_title}

        {stash:project_detail}
            <h2>{title}</h2>
            {project_text}
        {/stash:project_detail}

    {/exp:channel:entries}

{/exp:stash:set_list}

{exp:stash:set name="st_content" type="snippet"}

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

        {!-- Landing page --}
        {case value=""} … {/case}

        {!-- Detail page --}
        {case value="detail"}

        {exp:stash:get_list
            name="project_list"
            match="#{segment_3}#"
            against="project_url_title"
            parse_conditionals="yes"
            parse_tags="yes"
            process="end"
        }

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

        {project_detail}

        {/exp:stash:get_list}

        {/case}

    {/exp:switchee}

{/exp:stash:set}

Anyone know why that might be?


texts:
I'm getting some issues with some EE php errors, i believe its related to the EE Zoo Triggers Add On, but im finding it really tricky to debug and get the feeling I may be searching in the wrong place.

A PHP Error was encountered
Severity: Notice
Message: Undefined index: timestamp
Filename: libraries/Logger.php
Line Number: 121

A PHP Error was encountered
Severity: Notice
Message: Undefined index: log_id
Filename: libraries/Logger.php
Line Number: 127

Error Number: 1054
Unknown column 'year' in 'field list'
UPDATE `exp_developer_log` SET `year` = NULL, `month` = NULL, `count` = '0', `viewed` = 'n', `timestamp` = 1354016532 WHERE `log_id` IS NULL
Filename: libraries/Logger.php
Line Number: 128

There is a little more info, error lines etc on a ticket in the devotee forums but i wanted to put it out to the EE community, see if any of you guys have come across similar errors and might be able to help resolve

Here is a little more info on what we have investigated so far:

  Im running EE 2.5.3 & PHP 5.2.17. Its triggered when I add the achieve
  or categories list tags:

{exp:zoo_triggers:categories
    channel="tours"
    path="{structure:page:uri}/region"
    show_counter="yes"
    style="list"
}

  OR

{exp:zoo_triggers:archive
    channel="blog"
    path="/blog/archive"
    type="monthly"
    style="list"
 }

  I use stash so these calls i from
  within Stash set / append tags etc. Only other strange issue is that
  it some cases (when logged in) it loads in the first instance and then
  breaks on refresh or when clicking through to an archive link for
  example, then the error persists. Clearing the ee cache or removing /
  reassigning the structure listing resolves for that first visit again.

  ...

  It’s somewhat strange because the function where the errors occur must
  be directly called, and that isn’t so in Zoo Triggers nor in the
  version of Stash that I’m currently testing. Can you do a project
  search on: ->developer( So we can have a better look what add-ons are
  calling the function directly.

  ...

  Its odd, only references i can find are from the ee core:
  system/expressionengine/core/EE_loader.php - line 136
  system/expressionengine/libraries/EE_Form_validation.php - line 438
  system/expressionengine/libraries/Logger.php - line 186
  system/expressionengine/modules/search/mod.search.php - line 186

  ...

  Source  http://devot-ee.com/add-ons/support/zoo-triggers/viewthread/7935

Many thanks,

Sam


texts: How to setup Virtual Gifting between members with Store

texts:
Here's what I would like to do, I would like my site members to be able to send virtual gifts to each other, the problem is how to associate that member A sent a gift to member B? And also how to retrieve a list of all the gifts that a certain member has received/gifted?

I'm already using Exp:resso Store on the site and also Zoo Visitor.

Even though Credits apparently doesn't work with Store, ideally these purchases would be made with credits, so that the members could use the credits they received by participating on the site to send free gifts, for example.

Any thoughts?

Also has anyone ever worked with a payment system like Boku?

ETA: I think I've figured out how to decode the stored modifiers for purchased items, so part of my problem is solved, I can write a plugin to retrieve the data. Nevertheless if you have any input related to the implementation of such system, please let me know.

Thanks!


texts:
I have a batch import I used about a year ago that I was revisiting for some new posts. After making the necessary modifications (different channel but identical fields, different source but similar data) I get an error. It's an alert box with the following "There was error during the processing: Internal Server Error".

After trying multiple modification and even creating a new batch from scratch I can't seem to get a different outcome. Any help would be great.

EE 2.7.3
Importer 2.2.3


texts:
I try to import a ee db into my local environement and I get this Error:

  SQL-Befehl:

  -- --------------------------------------------------------

  -- Tabellenstruktur für Tabelle exp_accessories
  -- CREATE TABLE  exp_accessories (

  accessory_id INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT ,  class
  VARCHAR( 75 ) NOT NULL DEFAULT  '',  member_groups VARCHAR( 50 ) NOT
  NULL DEFAULT  'all',  controllers TEXT,  accessory_version
  VARCHAR( 12 ) NOT NULL , PRIMARY KEY (  accessory_id ) ) ENGINE =
  MYISAM DEFAULT CHARSET = utf8 AUTO_INCREMENT =8;

  MySQL meldet:

  1050 - Table 'exp_accessories' already exists

I have absolutely no clue about db files what do I have to do?


texts:
Does anyone know how to update jQuery and jQuery UI that comes with EE 2.10.1? This question was asked once before but no answers (link)...

After doing some digging I found the assets at:
/themes/javascript/compressed/jquery
/themes/javascript/compressed/jquery/ui

The problem started with some javascript errors concerning zoo_visitor and photo frame. The only way to use these plugins now is to use jQuery 1.7.1 but that conflicts with Bootstrap 3. After setting include_assets="no" I tried to mimic the includes and that was the point the trouble started...

Actually I think that the developers of EE should find a fix for this. For a 299 dollar CMS this is one major fail.


texts: expresso-store : add item to order backend doesn't decrease stock

texts:
Hi I'm just wondering if this is a bug or not. When you add an item with inventory to an order in the admin panel, the stock does not reduce, which I believe it should. We have to go back into the product and manually reduce the stock qty.

Let me know


texts: Specifically the Templates directory and Add-ons. How do I do it? Doesn't seem to be working in the config file like in Version 2. Cheers!


texts: Expresso Store Fatal Error: Uncaught exception 'BadMethodCallException'

texts:
EE 2.9.0, store 2.5.0 - and anytime store code appears on a page this error occurs, exception of the cart, so it looks like it is tied to the products. Take the store product code out and it renders fine. Any other page with standard EE code and it renders fine. Anyone have any ideas?

  Fatal error: Uncaught exception 'BadMethodCallException' with message 'Call to undefined method Illuminate\Database\Query\Builder::getEager()' in /home/d562657/public_html/admin/expressionengine/third_party/store/vendor/illuminate/database/Illuminate/Database/Query/Builder.php:1993 Stack trace: #0 [internal function]: Illuminate\Database\Query\Builder->__call('getEager', Array) #1 [internal function]: Illuminate\Database\Query\Builder->getEager() #2 /home/d562657/public_html/admin/expressionengine/third_party/store/vendor/illuminate/database/Illuminate/Database/Eloquent/Builder.php(919): call_user_func_array(Array, Array) #3 [internal function]: Illuminate\Database\Eloquent\Builder->__call('getEager', Array) #4 [internal function]: Illuminate\Database\Eloquent\Builder->getEager() #5 /home/d562657/public_html/admin/expressionengine/third_party/_store/vendor/illuminate/database/Illuminate/Database/Eloquent/Relations/Relation.php(281): call_user_func_array(Array, Array) #6 /home/d562657/public_html/admin/expressionengine/thi in /home/d562657/public_html/admin/expressionengine/third_party/store/vendor/illuminate/database/Illuminate/Database/Query/Builder.php on line 1993


texts: How to keep Screen Name in sync with Profile channel fields using Profile:Edit

texts:
I'm using Profile:Edit 1.0.9 with EE 2.5.5, and finding that the Screen Name is sometimes coming out of sync with the First Name and Last Name custom fields in the profile entry (when a user edits their profile).

Is there a way to keep the Screen Name in sync should the first and last name be amended? Thanks.


texts:
I created a little accessory to insert a row anywhere in a Grid field.  This works great with the exception of when the grid has a File field.  When I create the row the Add File link does not get handled.  I managed to dig through the compressed EE JavaScript code and was able to figure out manually process the Add File link with this.

$.ee_filebrowser.add_trigger

Using this I was able to populate the file image thumbnail and name to match what EE does.  Although this seems to work it seems like a really bad idea for future compatibility with EE. The other issue I am having is handling the Remove File link.

So I have a couple of questions:

1) How can I use/call the existing EE JavaScript code to handle the Add File functionality?

2) How can I use/call the existing EE JavaScript code to handle the Remove File functionality?


texts: Textarea Turning Iframe Tags into Special Characters

texts:
I am having an issue adding an iframe tag to a textarea field. The field is configured to accept XHTML. Any ideas on what could be causing the issue?

e.g.

&lt;iframe id="xtranormal_So, have you heard about Montana Conservation Corps?" name="xtranormal_So, have you heard about Montana Conservation Corps?"  src="http://www.xtranormal.com/xtraplayr/13045605/so-have-you-heard-about-montana-conservation-corps" marginwidth="0" marginheight="0" border="0" frameborder="0" scrolling="auto"&lt;/iframe>

I am running EE v2.5.0


texts: Missing channel_id in Inventory Edit Entry URL breaks Structure

texts:
We have encountered issues when running Exp-resso 2.5.1 in tandem with Structure 3.3.17 when accessing the Control Panel Inventory page.

The $product->channel_id that is requested on line 94 of InventoryController.php does not exist, and therefore when the link to edit an Inventory item is clicked, the channel_id is omitted.

Typically this does not cause problems, however when using Structure and editing a channel entry directly from the Inventory page, the lack of a channel_id in the URL string seems to break something with Structure. This can typically be fixed by editing the channel entry in Structure and saving it without making changes, but our clients are often unable to recall these simple steps.

Can I request that the following edit be made to the official build. On line 43 of the file:

system/expressionengine/third_party/store/src/Cp/InventoryController.php

REPLACE

->select(array('store_products.*', 'channel_titles.title', $this->ee->store->db->raw('SUM(`stock_level`) AS `total_stock`')))

WITH

->select(array('store_products.*', 'channel_titles.title', 'channel_titles.channel_id', $this->ee->store->db->raw('SUM(`stock_level`) AS `total_stock`')))

Adding the channel_titles.channel_id column to the query should resolve this issue in the future.

Thanks for your time and effort put into this addon,

Phil Dowson


texts: Why can't I get the total row count for my grid field?

texts:
I have a Grid field (called 'beneficiaries') that I'm using to hold a list of first names and last names of beneficiaries, but I'm struggling to get a template to output the total number of rows my Grid field's currently holding. I'm able to output the entire field with the currently submitted data, using:

{exp:channel:form channel="beneficiary" return="/next_page" entry_id="8"}
    {beneficiaries}
{/exp:channel:form}

And that works great.

Now I just want to print to the screen the total number of rows, much like:

{exp:channel:form channel="beneficiary" return="/next_page" entry_id="8"}
    Total: {beneficiaries:total_rows}

    Total: {beneficiaries:field_total_rows}

    Total: {field:beneficiaries:total_rows}

    Total: {field:beneficiaries:field_total_rows}

{/exp:channel:form}

Which only returns the following:

Total: {beneficiaries:total_rows}
Total: {beneficiaries:field_total_rows}
Total:
Total:

Am I doing something painfully obviously wrong? I've read and re-read the documentation to no avail, and I have no idea what I could be doing wrong. Any help as to why I can't seem to display the row count would be greatly appreciated.


texts:
Fatal error: Call to undefined method ChannelImagesUpdate_50400::update() in /var/www/vhosts/site/sysdata/user/addons/channel_images/upd.channel_images.php on line 215

I recently upgraded a site that was previously running EE 2.11 with the following add-ons: Structure 3.3.14.5, Channel Images 5.2.2 and Expresso 3.3.2. The upgrade went well and the site is now on EE 3.5.2, Structure 4.0.3, and Expresso 4.2.3. I cannot update the Channel Images add-on through the Add-on Manager. It gives the above failure every time I try to run the update. New files have been downloaded from DevDemon and re-uploaded to the correct locations with the same results each time.

A support email to DevDemon has gone unanswered for over a week. Help!


texts:
I need to implement the following search on my ee site

I have a matrix field with the following columns

start date
end date

For example, I have an entry with 2 rows in my matrix column where the values listed are dates that are not available

Entry Title: Entry 1
Matrix values
Start Date   -  End Date
01/01/2014 - 15/01/2014
01/02/2014 - 20/02/2014

On my search form I have a search form with start date and end date

The user searches with the the following details
Start Date   -  End Date
02/01/2014 - 10/01/2014
When the users searches no results are displayed as the dates the user selected are in the matrix field as not available

The user searches with the the following details
Start Date   -  End Date
16/01/2014 - 20/01/2014
Entry 1 is returned as the dates selected are not in the unavailable list for that entry

Is this possible with low search and is there an example?
Thanks


texts: Are coupon codes in CartThrob additive or last one in gets used?

texts: Our store is running coupon promotion where the coupon is good until the end of the year. Let’s say the code is ENDOFYEAR (-25%). We’re also running a one day promo next week Monday with code SUPERMONDAY (-40%). What will happen if a user submits both codes? We want to ensure that only the code with the greatest discount is applied and that codes are not added together resulting in a 65% discount.


texts: Finding evidence of spam emails in database table exp_email_tracker

texts:
I started getting some spam messages that appear to be sent by my install of Expression Engine.

The only evidence I am seeing is some database entries in the table
exp_email_tracker

There are not spam user accounts.

I'm confused about both how this could happen and where to start to fix it. Has anyone run into a similar issue?

Currently running EE 2.9.0. With the Snaptcha add on


texts: Hide menu item if no results for a certain channel

texts:
I'd like to hide a menu item called 'Events and Activties', if there are no entries in that particular channel. I've tried to do this using this code but it's not working:

Home

People in {lv_siteSector}

Careers in {lv_siteSector}

Ask an expert

Jobs &amp; opportunities

                    {exp:channel:entries channel="choices_events" site="default_site" show_future_entries="yes" show_expired="no" status="open"}
                        {if count == 1}

Events &amp; activities

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

Any help would be very much appreciated.

Thanks,

Julie


texts: Ajax is loading entire page instead of pertinent data

texts:
I am using ExpressionEngine (2.4) with the Solspace Calendar add-on. I have been following the tutorials here for reference:

Part 1: http://themetaq.com/mobile/articles/ajax-ee-sort-and-order-data-with-expressionengine-and-ajax-part-one
Part 2: http://themetaq.com/articles/ajax-ee-sort-and-order-data-with-expressionengine-and-ajax-part-two

I am using a template with a regular 'index' page (where the JS and HTML is) and an 'ajaxlist' template in the same group that contains the solspace:cal stuff.

JS:

$(document).ready( function() {
  var sortTable = $('#sort-table tbody'),
      trigger   = $('.trigger');
  trigger.click( function() {
    var ajaxTarget  = '<template name>/ajaxlist/' + $(this).attr('data-orderby') + '/';
    sortTable.load(ajaxTarget);
    return false;
  });
});

index:

<a href="{path='<template name>/ajaxlist/test'}" class="trigger" data-orderby="test">Test

  {embed="<template name>/ajaxlist"}

ajaxlist

{if segment_3 == 'test'}
{exp:calendar:cal first_day_of_week="{current_time format="%w"}" date_range_start="today"}
    {display_each_day}
        {events}
            {event_title}
        {/events}
    {/display_each_day}
{/exp:calendar:cal}
{/if}

please note that the ajaxlist code (without the js to load via ajax) redirects to the url appropriately and loads the data just fine.

PROBLEM

When we add the JS it runs but instead of returning the stuff inside 'ajaxlist' it returns the entire web page again inside the
! (Nesting the page within itself :p). I really don't know why and would like some help one what steps to take to remedy this to use in conjunction with ajax or with EE.

A coworker of mine suggested that the 'test' variable isn't working because we don't have (and rightly shouldn't have) anything named 'test'. I'm really confused at this point.

Thanks

EDIT 1:

I should note that even when removing the 'test' element from all of the code and just used <template name>/ajaxlist it still returns the entire page.


texts: Use Expresso tags to show stock sold on front end

texts:
A specific user group on my website has the ability to create products on my website. This is all done using Channel Form tags. Unregistered guests may purchase these products.

For the user group that creates these products, I need to create a widget that shows how many of their created products have been sold so far. But I am not sure what template tags would best suit my purposes.

EDIT

So after looking around the database, I found there are 3 tables necessary to create the query I want

FIND THE INTERSECTION OF THESE TWO TABLES

exp_channel_data - to filter the entries to the specific product channel (i.e. channel_id = 15).
exp_channel_titles - to further filter the product channel entries by author ID (i.e. author_id = CURRENT_USER)

THEN FIND THE SUM OF THE ITEM TOTALS OF THE SUBSEQUENT RESULTS

exp_store_order_items - this is where I'd presumably use a SQL statement not very dissimilar from the one Justin Long provided me:

{if logged_in_member_group == 1}
    {exp:query sql='SELECT SUM(item_qty) as totalSales FROM exp_store_order_items WHERE entry_id = {entry_id}'}
        {totalSales}
    {/exp:query}
{/if}


texts: increase upload_max_filesize with php.ini

texts:
I'm trying to increase the upload file size for my EE installation to 120MB.  I have verified that I can modify these settings with my hosting service by adding a php.ini file to my webspace and placing the following code in it:

upload_max_filesize=120M

I have done this, and when I go to utilities and view the setting for that parameter, it shows that its been changed to 120M, but I am not able to upload a file that is 14.7MB.  I get an error in EE stating that the file size has exceeded the limits in my php configuration.  Any ideas?


texts: Date set in an entry is outputting 4 hours behind the date set

texts:
One of the expressionengine sites I run is having a strange but that I suspect is something to with the recent server move we just did.

In an entry the user can set a start/finish time of an event and this will then display on the site for people to see, the code I'm using to display the date is this;

                    <?php
                    //date format
                      $start_date       =   '{start_date}';
                      $end_date     =   '{end_date}';
                        $strtD  = date('D j', $start_date);
                        $strtM  = date('M', $start_date);
                        $endD   = date('D j', $end_date);
                        $endM   = date('M', $end_date);

                        if ($strtD == $endD && $strtM == $endM) {
                            echo $strtD .' '. $strtM;
                        } else if ($strtM == $endM) {
                            echo $strtD .' - '. $endD .' '.$endM;
                        } else {
                            echo $strtD .' '. $strtM .' - '. $endD .' '.$endM ;
                        }

                    ?>

The issue thats happening is when the start and finish date is set, for example to 11/04/2015 00:00 on the output of the post it display the 10th of april instead of the 11th. I tried upping the time to 01:00 and still no luck and i tried 02:00 and 03:00 which didn't work either but when i did 04:00 it then put the outputted date to 11th April.

This makes me think it's some issue with timezone settings, which I have checked as deep as I can think of, I have set the server time to GMT and specified this in the EE setting, I'm at a bit of a lost end now as I have tried everything I can think of, does anyone have any suggestions with what the issue could be/how it can be fixed?

Thanks in advance, Harry.


texts: Passing variables to MX Notify via Safecracker

texts:
I have a safecracker form for visitors to submit events. I'm trying to capture their email address to use with MX notify ({author_email}) . Is this even possible?

   {exp:safecracker
   channel="calendar_events"
   return="/events/add-event/success"
   logged_out_member_id="2"
   error_handling="inline"
   status="Pending"
   }

     {if error}

{error}

        {/if}

Your Full Name:

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

Your Email Address:

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

Business/Organization Name:

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

Event Title:

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

   {exp:calendar:date_widget event_id="{segment_5}"}

Hint: If an event is multiple days, change the "repeat" drop-down menu to "Select Dates". Then, click each day that the event is happening. Don't create an event for every single day.

      Event Photo:
      {field:event_photo}

Event Summary:

  {field:event_summary}

Event Location:

   <input type="text" name="event_location" value="{event_location}" />

   <input type="hidden" id="status" name="status" value="Pending">
    <input type="hidden" id="mbr_email" name="mbr_email" value="{event_email_address}">
    <input type="hidden" id="author_email" name="author_email" value="{event_email_address}">

<input type="submit" name="submit" value="Submit Event" class="btn btn-success" />

   {/exp:safecracker}


texts: Matrix File Upload not displaying contents of directory, upload silently fails

texts:
EE v2.5.5 - Build Date: 20121220
Assets 2.0.5
Matrix 2.5.3
Safecracker 2.1 (not sure if relevant)

I am using (but was not the original developer for) a multisite EE installation. In each installation I have the same channel, field group (Matrix) and identically named image upload path. However, on one of the sites I cannot get images to actually upload to the image upload directory or appear in the file upload dialog, pictured below.


texts: Expresso Store.. Checkout submit fails, no error codes from payment processors

texts: Everything is working, quite nicely, except for the actual payment submission / conversion to an order.  Payment methods are enabled but {field:payment_method} returns nothing. {payment_method_options} returns the payment method options.  Not checking the 'Accept terms and conditions returns an error but nothing else will cause an error, simply a failure and return to the final checkout page.


texts: How to search fields in two related channels, but only show results from one?

texts:
I have two channels: blog and recipes. Blog posts are about recipes, so one of the fields in the blog channel is a relationship field connected to the recipes channel. Each blog entry has a related recipe entry.

I want to let visitors search for terms in the body field of the blog channel as well as in the ingredients field of the recipes channel, but only show the related entry (the recipe) in the search results.

So let's say there's a blog post about pizza, connected to a related recipe for pizza. Within the body field of the blog entry, the author has typed "my kids love this." Within the ingredients field of the recipe entry, the author has typed  "mozzarella".

I want the pizza recipe entry to show in the results if the user searches for "mozzarella" and also if the user searches for "my kids love this".

Is this possible?

[EDIT]

It seems like the logic I need is something like, "if a result is found in the Recipes channel, then display that entry. If the result is found in the Blog channel, then display that entry's related Recipes channel entry."


texts: How can I show rating:entries that contain both ratings AND reviews?

texts:
I'm using the Solspace Rating module and I'd like to be able to display rating:entries that contain a review.

It seems like I can exclude unrated or show only unrated, but how can I filter to show only rating:entries with both a numeric rating AND a review?


texts: Show a combined Solspace User and native Member entry count?

texts:
I have an existing DB with entries that have been assigned to authors via the native Members module as well as Solspace's User module.

Unfortunately, the User module doesn't take into account entries that have been assigned to a member via the native module when using the exp:user:entries loop — and the opposite is true as well, of course. This means that, on a user profile page, there's no way to get a list of entries using both assignments.

How can I get a list of results that includes both assignments?

Updated to say: the issue is entries with multiple authors. Some entries have User data (entries with multiple authors) and some don't. I may end up manually having to enter User data for all entries, but there are a few hundred.

(I'm guessing we might have to head into Query territory, which is just beyond my capabilities at the moment.)


texts: Moving users from drupal DB to EE Database

texts: I am in need of moving some content from Drupal site to EE site. Problem is that this content includes User accounts and passwords. Is there any way of swapping the hashing functions in EE for the one that drupal is using? So I dont need to manipulate the hashes alone nor ask all users to reset passwords?


texts: Freeform Next Fieldtype - If form selected

texts:
I have a Freeform Next fieldtype so that the client can choose from one of the forms that have been built to include in any of the pages. In my template, I need to be able to check if they selected a form or not to display something along with the form, however, using an if statement (see below) isn't working and is still outputting the rest of the HTML in the condition even when no form is selected.

{if page_form}

                    {page_form}

{/if}

I still end up getting everything inside that conditional minus the form. If a form exists, it does display correctly. I've also tried:

{if page_form != ""}

But no luck.

Thanks!


texts: Can I have a user emailed when Status is changed?

texts: In Channel Preferences, there's a field "Enable recipient list below for channel entry notification?" But AFAIK that's for when a new entry is published. How about for when an existing entry's Status is changed?


texts:
we are using expression engine and recently found that after creating a user that we can no longer log into the admin, when logging in we get the following: An error was encountered, unable to load the requested class: services_json. EE version 292, using Zoo Flexible Admin.

Any suggestions?


texts: Is it possible for an admin alert when stock is low

texts:
I want to enable an alert to notify me when stock falls below a certain number. Is this possible in any way?

Thanks


texts: How to add a custom on/off setting for client

texts:
My client has requested the ability to turn a specific, site-wide feature on and off from the site-wide header. It’s a link to a specific page that they would like to “turn on” months after the launch. Removing the link makes leaves a bit of a gaping hole, so I’ve created a special class to be applied to the header element to make some other content take up that space.

I can switch this class on and off by using a snippet or global variable, but I would like to allow my client to change this setting at will without granting them access to design preferences and templates. Is there a cost-effective add-on that would allow me to provide this one on/off switch that my templates can then test for?

I’ve seen Panel and it looks great, but I’d be paying $35 for a whole lot of functionality I won’t be using.


texts:
I'm using Assets in a MSM setup. But it seems that it broke the category image functionality. Is there a work-around or a fix for that?

Thanks,
Diederik.


texts: A Template that uses multiple channels with different field groups

texts:
I'm currently working on a template that uses multiple channels (ie. channel="channel1|channel2" to show content. Each channel has a different field group–so I'm conditionally nesting each groups fields within if statements:

{exp:channel:entries
   channel="channel1|channel2"
   disable="category_fields|member_data|pagination|trackbacks"
   dynamic="no"
   limit="1"
   require_entry="yes"
   url_title="{last_segment}"
}
{if channel_id == 1}
   ...
{/if}

{if channel_id == 2}
   ...
{/if}
{/exp:channel:entries}

I was wondering if there are any drawbacks to this?


texts: Reformat external Date-Format to unix-timestamp / ee-compatible format

texts:
I have a date-field where I get some raw data from another system (I have no control over the export of the other system) … the date is published in the following format:

2010-10-26T07:11:18Z

Is there a way to easily convert this format into a unix-timestamp/ee-compatible format?

I've tried {exp:query sql="SELECT UNIX_TIMESTAMP('col_id_22') AS unixtime FROM exp_matrix_data WHERE entry_id = {entry_id}"}{unixtime}{/exp:query} but this does not work (I guess because of the T and Z in the raw data?


texts: How to pass php variable from one EE template to another

texts:
I am using a Freeform Pro form where the user can edit a numeric field (number of of places booked for an event). When they click on submit, they are sent to a processing template to do the calculation in order to update the remaining number.

In the processing template that's doing the calculation, I can always access the new number set by the user in the freeform form ({freeform:field:numberofplaces}).

What I need is the number of places booked before the edit. I am trying to save it in a php variable like this on the edit freeform edit page:

<?php
 $numPlacesBeforeEdit = {freeform:field:numberofstudents};
  ?>

But how can I pass this variable from the edit page to the processing template (the freeform edit page "return" is set to go to the processing template).

Thanks


texts: How do I add a new action in update method of my .upd module file?

texts:
I can't find any resources explaining how to use the update() method of a .upd file in module development. All the tutorials gloss over it saying things like;

  "we don't need this right now, so we just return TRUE"

I do need it - I'd like to add another action into the database without having to reinstall my module, can anybody point me in the right direction please?


texts: How to make singular instance of text editable in a template

texts:
Is there a good workflow for making a singular instance of text, like an intro paragraph, editable within a template?

I find this comes up a lot and the channel entry workflow is really built around multiples.


texts:
I am kind of new to loadbalancing. I've been tasked up with figuring out how to load balance our servers that run ExpressionEngine. We are using two plugins, Assets and CE_Image. I've been reading up online that it's not possible to have multiple servers running expressionengine. Firstly, is there a work-around on being able to have multiple expressionengine instances running on different servers? Secondly does anyone have experience with issues regarding to extensions while having multiple expressionengine systems running?

Our server is running on AWS and using nginx web server.

Any help would be much appreciated!


texts: Where Can I Adjust CSS for this Menu Option?

texts:
I'm using Expresso by Put Your Lights On. The issue we are having is demonstrated in the image below. When a pop-up window is generated to add links, images, etc. The entered text is partially cut off, because either the field box is too small or the text is too big.

I'm more than willing to edit this myself, but I can't seem to find where and what is controlling the input field size. I'm using:

ExpressionEngine 2.5.3
Espresso v2.3 by Put Your Lights On
Responsive CP by Put Your Lights On
Nerdery Control Panel Theme

I'm just not certain which item, would control the input field size for this. Is it the basic EE CSS, Espresso, Responsive CP or somewhere else. The expresso.css file does not seem to contain the info, I need to modify.


texts: Video Training Site built with Expression Engine

texts:
I'm looking to build a billing video training site with Expression Engine so I'm wondering if anyone in this community has built one and what add-ons you recommend.

Thank you!


texts: WYGWAM error "The file browser is disabled for security reasons..."

texts:
When trying to browse files to upload an image I am getting the error:

The file browser is disabled for security reasons. Please contact your system administrator and check the CKFinder configuration file.

I am running old versions, but hope there is a quick solution before having to update this old site.
Running:

EE v2.2.1

WYGWAM 2.3.2


texts:
I switched my local install over to php 7 and when I tried to navigate to my ee install it threw a mysqli_connection.php error, that said this:

SQLSTATE[HY000] [2002] No such file or directory

It seems MAMP doesn't create the correct file for php 7 to work correctly.


texts: Twitter-style Tagging with Hashtags ? Devs? Anyone?

texts:
First, HUGE props to the people who've worked so hard to create this forum.  EE desperately needs (and deserves) a community like this.

Wondering if any of you have experience with Twitter-style hashtagging in EE?  I found an old 1.x extension called Twagger that does it. But it has not been ported to EE 2.

I really want to streamline the tagging process in SafeCracker.

If I can't find a 2.x extension that will do this, I'd be interested in contracting someone to do it for me.


texts:
sorry again for my bad english...

i'd like to create a A-Z list for my entries (recipes) and show them if i click on the related letter.
This code below showing entries by first letter and it's ok but how can i show also empty letters as well?

<?php $temp = ''; ?>
    {exp:channel:entries channel="recipes" orderby="title" sort="asc"}
    <?php
    $letter = strtoupper(substr('{title}', 0, 1));
    if ($temp != $letter) {
        echo "<button data-role='letter-loader' class='button-big button-overlay'>" . $letter . "</button>";
        $temp = $letter;
    }
    ?>
    {/exp:channel:entries}

i need something like this, where inactive letters are showing as well:

Thank you all


texts: Is it possible to be able to delete a member without deleting his/her comments for posterity purposes such as retaining it for forums and the like?


texts: Freeform Pro Composer - adding Google conversion code to submit

texts:
Good afternoon,

I was wondering whether anyone might know how to change the submit input button code using the Composer Template?

Basically I have been asked to change this code

input type="submit" name="submit" value="Submit"

With the following:

input type="submit" name="submit" value="Submit" onClick=”ga(‘send’, ‘event’, ‘Contact Form’, ‘Form Submit’);"

to allow my client to track the Submit button through Google Analytics.

I presume it's something that needs adding in the code below?

Many thanks in advance for shedding any light on this issue!

{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}


texts:
I am trying to get a multi-channel RSS feed working. The feed seems to populate correctly if I use: <link>{title_permalink="site/index"}</link>, but as you can guess then each article just takes the subscriber to the index of the site.

I tried <link>{title_permalink="{page_url}"}</link>, but that broke the feed completely and it wouldn't populate.

How do I get it so that each entry in the feed links directly to the specific content item, regardless of channel?

My full XML code is here:

{preload_replace:master_channel_name="articles|blogs|news|reports"}
{preload_replace:master_channel_status="OPEN"}
{preload_replace:master_rss_uri="https://ntecheresearch.com/rss/content"}

{exp:rss:feed channel="{master_channel_name}" status="{master_channel_status}"}
<?xml version="1.0" encoding="{encoding}"?>
<rss version="2.0"
    xmlns:dc="https://purl.org/dc/elements/1.1/"
    xmlns:atom="https://www.w3.org/2005/Atom">
    <channel>
    <title>{exp:xml_encode}n-tech Rearch RSS Feed{/exp:xml_encode}</title>
    <link>{channel_url}</link>
    <description></description>
    <dc:language>{channel_language}</dc:language>
    <dc:creator>{email}</dc:creator>
    <dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
    <pubDate>{gmt_date format="%D, %d %M %Y %H:%i:%s %T"}</pubDate>
    <atom:link href="{master_rss_uri}" rel="self" type="application/rss+xml" />
{exp:channel:entries channel="{master_channel_name}" limit="30" rdf="off" dynamic_start="on" disable="member_data|trackbacks" status="{master_channel_status}"}
    <item>
      <title>{exp:xml_encode protect_entities="yes"}{title}{/exp:xml_encode}</title>
      <link>{title_permalink="{page_url}"}</link>
      <guid isPermaLink="false">{title_permalink="site/index"}#id:{entry_id}#date:{gmt_entry_date format="%H:%i"}</guid>
      <description><![CDATA[{summary}]]></description>
      {categories}<category>{exp:xml_encode protect_entities="yes"}{category_name}{/exp:xml_encode}</category>
      {/categories}
      <pubDate>{gmt_entry_date format="%D, %d %M %Y %H:%i %T"}</pubDate>
    </item>
{/exp:channel:entries}
    </channel>
</rss>
{/exp:rss:feed}


texts:
Has anyone successfully wrote any scripts for ajax commenting in expression engine? I can't find any documentation that supports it for this style of commenting. Ellis Lab seem to have documentation for AJAX editing comments. Below you can see my basic tags. Any Ideas guys?

{exp:comment:form channel="thischannel" entry_id="{entry_id}" dynamic="no" }
                                                                        <form id="review_submit">

                                                                            Name
                                                                            <input type="text" name="myname" id="myname" placeholder="myname"/>

                                                                    Review
                                                                    <textarea id="mycomment" name="comment" cols="70" rows="2"></textarea>
                                                                    <input type="submit" value="Submit Review" class="back_button" id="tryme">

                                                            </form>
                                                            {/exp:comment:form}


texts: exp_flash cookie being set for each channel entry


texts:
Same Issue as Master config – blank screen

I've also been having the exact same issues. I'm trying to run the files in a folder such as webaddress.com/staging/site_name. I add this address to the environment config file, but I can't get anything other than a white screen on both the homepage and the CP login page.
I have tested running the files at site root (public_html) and this works perfectly. I assume the white screens have something to do with running the site within folders (ie. path problem in the env file).
I have tested this on 2 different servers with the same results. Is there any reason why I wouldn't be able to use the following path for the staging environment...

case 'webaddress.com/staging/site_name' :
    define('ENV', 'stage');
    define('ENV_FULL', 'Staging');
    define('ENV_DEBUG', FALSE);
break;

I'm completely baffled and have tried everything. Any thoughts?


texts: Upgrading to Assets 2 broke images and file uploads

texts:
Problem
After upgrading from Assets 1.0.something to 2.0.3, thumbnails stopped showing up and uploading broke. After doing some digging, I found some PHP errors hidden in the request log:

Excerpt:

A PHP Error was encountered

Severity: Warning

Message:  fopen(/system/expressionengine/cache/assets/tmp_storage/assets_tmp_510bba325d6994.05248213): failed to open stream: No such file or directory

Filename: assets/helper.php

Line Number: 448

Assets is using the cache folder in the CP folder ref. line 573-577:

$cache_path = self::_get_EE()->config->item('cache_path');
if (empty($cache_path))
{
    $cache_path = APPPATH.'cache/';
}

The webserver doesn't have write permission there. I've tried overriding the cache_path of EE, but it doesn't seem to fix it.

Could anyone shed some lights on how to override the cache path for Assets? Do anyone know if there is a list of Assets config overrides somewhere?

Details
ExpressionEngine v. 2.0.5
Assets 2.0.4


texts:
I am trying to remove index.php from my URLs on my local WAMP server using the supported .htaccess code:

<IfModule mod_rewrite.c>
    RewriteEngine On

    # Removes index.php from ExpressionEngine URLs
    RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>

I went into General Configuration and removed "index.php" from "Name of your site's index page" and saved. I am running EE on a subdirectory (http://localhost:8080/mysite/), so I removed the "/" before "index.php" in the last line:

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

It works for the home page, but for the rest pages when I click the links (which now have the index.php removed), I get this error:

  Not Found

  The requested URL /mysite/about-us was not found on this server.

I am still able to access the about-us page at /mysite/index.php/about-us.

Can someone please help me?


texts: Slow loading, multiple conditionals from multiple channels + sorting solution?

texts:
so i have a page that is slow to load.
I have tried various alterations to this code but nothing has seemed to work for me. I read that 'Switchee' may be a solution, but i am not so sure.

So I have six 'product' channels, and within each there is one field that asks 'is this a new product?' It is a dropdown field, with 'NO' being the default. If a new entry in any channel is created, and the user selects 'YES' for this field, the product will appear on the 'What's New' page.

{exp:channel:entries channel="fprod" disable="category_fields|member_data|pagination|trackbacks" dynamic="no"}
        {if f_wn == "YES"}
            Product title, thumbnail, category (brand), etc.
        {/if}
{/exp:channel:entries}

{exp:channel:entries channel="bprod" disable="category_fields|member_data|pagination|trackbacks"}
        {if b_wn == "YES"}
            Product title, thumbnail, category (brand), etc.
        {/if}
{/exp:channel:entries}

{exp:channel:entries channel="nprod" disable="category_fields|member_data|pagination|trackbacks"}
        {if n_wn == "YES"}
            Product title, thumbnail, category (brand), etc.
        {/if}
{/exp:channel:entries}

{exp:channel:entries channel="hprod" disable="category_fields|member_data|pagination|trackbacks"}
        {if h_wn == "YES"}
            Product title, thumbnail, category (brand), etc.
        {/if}
{/exp:channel:entries}

{exp:channel:entries channel="eprod" disable="category_fields|member_data|pagination|trackbacks"}
        {if e_wn == "YES"}
            Product title, thumbnail, category (brand), etc.
        {/if}
{/exp:channel:entries}

{exp:channel:entries channel="aprod" disable="category_fields|member_data|pagination|trackbacks"}
        {if a_wn == "YES"}
            Product title, thumbnail, category (brand), etc.
        {/if}
{/exp:channel:entries}

This works fine but apart from the slow load time, the client wants the most recently added 'new' product to appear at the top of the page (not just at the top of its related channel results.

Could someone please help in improving this, if possible? Would be much appreciated!


texts: Expresso store - using two stripe payment gateways

texts:
We're setting up a store for a charity that accepts donations and also sells items, they have two bank accounts one for donations and one for the shop so we've setup two stripe accounts to process these separately.

We've setup the templates and everything works great, but we can't work out how to add a second stripe API key in the backend, is this possible and if so how should we go about it?

Thanks!


texts: Password Protect Development Environment Only?

texts:
I'm developing a site with Git and Master Config, and up until yesterday I was forcing users to log-in to view the site on the development server with this code in my document head template:

{if logged_out}
    {redirect='tmp/login'}
{/if}

But now the site has been launched to production, I have to remove that code and template group. But since everything is synced up using Git, the development environment won't be password protected either.

I'd prefer to use EE's built-in login system over say a .htpasswd file if possible. I figure I can .gitignore the tmp template group so it only exists on development. Is there a Master Config variable I can use to only parse the logged_out conditional in the development environment? Like:

{if ENV == 'dev'}
    {if logged_out}
       {redirect='tmp/login'}
    {/if}
{/if}


texts: PHP Error "Undefined Index" After Successful Charge Transaction

texts:
Ran into PHP errors when running a test transaction using Charge on my local setup. Everything worked fine, technically speaking: the test transaction went through on Stripe; the member was moved to the right member group (i.e., the correct Charge action was taken); etc.

However, instead of being directed to the success page, the page gets stuck on the ACT URL and shows the PHP errors shown in this screenshot: http://cl.ly/image/1T333W0D2d21

Any ideas? Need this working pretty quickly here (of course). We're using EE 2.8.1 & Charge 1.8.6.


texts: Low Variables "Grid" Search Parameter... why am I failing?

texts:
I have a Low Variables Grid setup and I'm trying to just return the rows that match a value in a column, if it exists.

In the Low Variable setup, I have the column checked to be "Grid Column Searchable". And the grid column is a plain text field.

Is there any reason why my setup is returning all the rows, instead of just the one with "wa"?

{!-- Low Variables "Grid" Field. --}
{exp:low_variables:pair var="lv_states" search:gd_state="wa"}
  {lv_states:gd_state}
{/exp:low_variables:pair}

Alternatively, I tried to see if the low variables "Table" fieldtype or P&T Field Pack "List" would cover it but that isn't giving a result either.

Is searching those two field types possible?

{!-- Low Variables "List" Field. --}
{exp:low_variables:pair var="lv_states" search:item="wa"}
{item}
{/exp:low_variables:pair}

Thank you for any assistance,


texts:
Just installed CT 2.6 onto a EE 2.9/0 site to quickly check out the Price Modifiers Configurator FieldType and ran into some trouble. In CartThrob' section of the CP, I cannot access the Products and Reports tabs in a normal way.

Products tab

The Products tab does not display properly. Looks like the style sheet is gone and many of EE's CP controls are gone. And the page display several PHP Warnings.

First one

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /chroot/home/brighto1/brightorangethread.com/html/ZZiPQdPOmvcCaY/expressionengine/third_party/cartthrob/views/settings_form.php:80)

Filename: core/Common.php

Line Number: 446

Second one

Severity: Warning

Message: Invalid argument supplied for foreach()

Filename: helpers/form_helper.php

Line Number: 324

Report tab

Nothing displays. I just get

Error Number: 1054

Unknown column 'status' in 'where clause'

SELECT `template_id`, `template_name`, `group_name` FROM (`exp_templates`) JOIN `exp_template_groups` ON `exp_templates`.`group_id` = `exp_template_groups`.`group_id` WHERE `status` NOT IN ('closed', 'closed', 'closed', 'closed', 'closed', 'closed', 'closed', 'closed', 'closed', 'closed') AND `status` NOT IN ('closed', 'closed', 'closed', 'closed', 'closed', 'closed', 'closed', 'closed', 'closed', 'closed') AND `status` NOT IN ('closed', 'closed', 'closed', 'closed', 'closed', 'closed', 'closed', 'closed', 'closed', 'closed') AND `exp_templates`.`site_id` = '1' ORDER BY `group_name`, `template_name`

Filename: models/template_model.php

Line Number: 818

Checking the tables exp_templates and exp_template_groups and there is not a column in either table. Which seems similar to this issue.


texts: EE still thinks I am logged in after logging out

texts:
I have page where the content depends on whether you are logged in or not. This is the tag that I used to check

{if logged_out}
   ...
{if:else}
  ...
{/if}

However, even if I am logged out, I always get to the second part which is meant for logged in users.

I have cleared the cache from EE and the cookies from my browser. But it did not help.

Which parts of EE should I be looking for to solve this problem?

Some more information

I am using the url below to log out

{redirect="?ACT=16&amp;return=/sign-out/"}
I am using Safecracker Registration. All the kinks with upgrading to 2.7.1 have been worked out.

UPDATE:

I outputted some variables and I got this

logged_in_member_id: 1
logged_in_group_id: 1
logged_in_group_description:
logged_in_username:
logged_in_screen_name:
logged_in_email:

Another UPDATE:

I have Template A and Template B.

Template A embeds Template B.

I added code to show logged_in status in both Templates

<div>
    {if logged_in}
        LOGGED IN
    {/if}

    {if logged_out}
        LOGGED OUT
    {/if}
</div>

The problem is that in Template A, logged_in is FALSE

but in Template B, logged_in is TRUE

This is weird. So {logged_in} can be changed?


texts: Admin Javascript not loading certain scripts

texts:
It appears that something has changed in the last two weeks that is not allowing the admin javascript to load when updating or creating entries of specific channels because of the field types contained. This is on EE 3.5.17, and no updates done after February. Last operation was 17 May when it was known to work.

The offending cp javascript:
/admin.php?S==cp&C=javascript&M=combo_load&plugin=ee_table_reorder&file=cp/global_end,cp/files/picker,cp/grid,fields/file/cp,fields/relationship/cp,cp/date_picker&v=version_number

What I have found is that if I paste in the javascript as-is, it presents the 404, but if I remove the fields/relationship/cp, the cp/grid, and the cp/date_picker, it will load. Adding any of the above theme js back in gives it a 404, even though the files are confirmed in the themes' js/compressed folder. This stops features like grid file upload, etc from working on entry creation / edit pages in the CP.

It was known and confirmed working 2 weeks ago... Any thoughts on why CP javascript behaviour would change in this way?


texts:
I have Postmaster installed, and parcels set up to handle email notifications of channel entries/status changes etc. This uses Mandrill and works fine.

I would like to utilise Mandrill for the sending of system emails, (new member notification/activation etc) and know that this is possible with Postmaster, but I'm not quite sure how to set it up.

Has anyone else done this, or maybe have a screen shot on how to set it up on the Postmaster CP?

Thanks!


texts: Channel Entries API and entry to a Category

texts: Is it possible to add entries into categories when creating them with the Channel Entries API cant see anything in the documentation.


texts: EE google maps not displaying on contact page

texts:
we have taken over an EE page from another guy
www.fitnesscoach.lu
in the "contact-area" the google maps is not showing anymore
any indication where i can find it in the backend and how to fix
tks


texts:
Deprecated function EE_Fieldtype() called in system/expressionengine/third_party/nsm_tiny_mce/ft.nsm_tiny_mce.php on line 61.

When I try to create a new channel field I get this:
Fatal error: Call to undefined method EE_Fieldtype::EE_Fieldtype() in /home3/bartelsf/public_html/system/expressionengine/third_party/nsm_tiny_mce/ft.nsm_tiny_mce.php on line 61

I am using Tinymce 1.1.1 and updated to the most recent EE 2.8.1

Any thoughts would be very helpful!


texts: How to refresh a "news" embed based on filter button clicked

texts:
I've got a "news" embed I'm calling from my homepage.  Inside that news listing template it lists 7 articles based on the dates, which could be a mix of 4 different categories.  I'm not using EE categories, it's just a radio button field that is compared to set the styling.  If I need to switch to EE categories I can.

What's the best way to refresh that whole "news" embed section when they click one of the filter buttons?  I need to refresh so it now shows 7 articles with the field type "news_category" equal to say "announcements".

Should I just link to same page but set a segment and pull content based off that segment (/news/announcements), or can I reload this with AJAX or jQuery somehow?


texts: Show a list of subcategories for current category

texts:
I'm trying to develop a simple product catalog using categories; I use Transcribe plugin, also.

I've got main categories CAT1 (id4), CAT2 (id5), CAT3 (id6), CAT4 (id7) and subcategories of CAT1: SUBCAT1, SUBCAT2, SUBCAT3. Every main category have its own template page, for example when the user select CAT1 go to page:
http://develop/products/group/C4/
On that page I need to show a list of CAT1 subcategories: SUBCAT1, SUBCAT2 and SUBCAT3. I wanna do it dynamically.
Now, I can show my subcategories list right set parent_id manually...

{exp:channel:categories channel="products" style="linear"}
    {if parent_id=="4"}
        {exp:transcribe:replace name="category_{category_url_title}"}<br />
    {/if}
{/exp:channel:categories}

I'm able to get the current main category ID...

{exp:channel:entries channel="products" limit="1"}
    {categories}
        {category_id}
    {/categories}
{/exp:channel:entries}

I wonder if there's a way to combine these informations and, simply, get "SUBCAT1, SUBCAT2, SUBCAT3" as output without use any plugins, when I'm on the CAT1 page.


texts:
Just wondering if it's possible to change what fields appear on the multi edit screen. Currently the editable fields in multi edit are, Title, Url title, Status, Entry date, Make entry sticky, & Allow comment.

My end goal is to allow fields from the Store module in the multi edit screen.

Thanks in advance!


texts: Deleting a site and all content associated with it

texts:
I'm currently running EE version 2.9.0 in a multiple sites installation. I was wondering what is the best way to delete a site and all the content associated with it.

If I click in one of the sites on the top right corner I can see the option to "edit sites" and from there I can see the option to delete, but my question is:

Will this also delete all channels, entries and channel fields associated with this site from the DB?

After that would be safe to delete all uploaded files on my server?

What I'm trying to achieve here is to make sure that when I delete the site I won't have a lot of "garbage" left on my DB.

Thanks!


texts: Limit displayed image(s) from one entry/category

texts:
I have a 'projects' channel, that contains a 'Channel Images' field.
An entry can belong to one of four categories.

On my home page, all I want to display is two of the images from the most recently added project. When you click on either small image it directs to the page of that entry.

I cannot work out how to display the two images from just the one category. My code below displays one image from one entry belonging to each category. How do i limit it to only display the image (2) from the latest entry (whatever category it belongs to)?

{exp:channel:categories channel="project" style="linear"}
{exp:channel:entries channel="project" category="{category_id}"  disable="pagination|member_data" limit="1"}

{proj_img}{/proj_img}

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

Any help is very appreciated.

Update:
Kerry's answer below is close to correct, i had to make a slight alteration.

{exp:channel:entries channel="project" disable="pagination|member_data" limit="1" parse="inward"}
{exp:channel_images:images entry_id="{entry_id}" field="proj_img" limit="2" sort="asc"}

{/exp:channel_images:images}
{/exp:channel:entries}


texts: Nerdery CP Theme - Grid UI Issue with Reordering Rows?

texts:
This is a minor issue and there are surely more important questions to be answered.

But I am using the Nerdery CP theme and noticed an issue with the UI of the Grid fieldtype.

When I try to reorder Grid rows (in EE 2.7.3 and 2.8.1), I cannot drag rows between other rows, they just jump to the bottom or top of the set. I made a quick video to demonstrate: http://youtu.be/p8-5OjqnDd0)

If I turn off the Nerdery CP theme, then the reordering seems to work fine (but that's a drag -- so to speak -- because Nerdery looks so much cleaner and less pink).

Alas, the Nerdery devot-ee forum is archived only, so I was wondering if anyone has noticed this issue and possibly resolved it in the override CSS?


texts: How to update record using angular post?

texts:
I am trying to update record by angular post, below is code:

 $.post(url, data, function (result) {
                var error = false;
                if (result.success == 1 && (result.entry_id) != false) {
                    //alert('Saved Successfully!!')
                } else {
                    error = true;
                }
                $scope.$apply(function () {
                    $scope.loading = false;
                    if (error) {
                        $scope.error = true;
                        $scope.ErrorMessage = 'Internal server error occured.';
                    } else {
                        $scope.success = true;
                        window.location.href = "#/trVenueDetail/" + result.entry_id
                    }
                });

            });

But it's always made the new entry. Page URL is some thing like below:

http://example.com/new#/trAddVenue/47452

47452 is entry_id, I have tried to set it in hidden field:

The entry_id hidden field is automatically created by form tag.

  {exp:channel:form channel="venues" include_jquery="no" json="yes"
id="addVenu" name="addVenu" }

     -- Controls Html Is Here---

  {/exp:channel:form}

The Same code is working in case of add new record, but how to update existing.

And yes I am able to populate the value.