texts: Sending email forms using Postmaster - missing some key info on parsing fields

texts:
I am trying to build a multi enquiry form i which the same message plus some custom data is sent to multiple email addresses.

The email addresses and custom data are retrieved from existing entries.

My strategy so far has been to create the form like so;
(the {exp:remember_me} tag simply provides a pipe delimited list of entry IDs - this bit works fine.

{exp:postmaster:email_form:open
      action="/favourites/enquiry"
   method="post"
   field="email"
   data_field="data"
  }

   {exp:channel:entries channel="properties" entry_id="{exp:remember_me:get}" parse="inward"}

    <input type="text" name="email[entry_id]" value="{email}" />
    <input type="test" name="data[entry_id][to_name]" value="{author}" />
    <input type="text" name="data[entry_id][property-ref]" value="{property-ref}" />
    <input type="text" name="data[entry_id][title]" value="{title}" />
   {/exp:channel:entries}

Name<input class="text" type="text" name="from_name" value="" id="name">

Telephone<input class="text" type="text" name="from_phone1" id="phone1">

Email*<input type="text" name="from_email" value="" id="email">

Date from<input class="datepicker" type="text" name="date_from" id="date_from"> Date to<input class="datepicker" type="text" name="date_to" id="date_to">

Number in your group<input type="text" name="number_in_group" id="number_in_group">

Message*<textarea name="message" id="message" value="" rows="12" cols="40"></textarea>

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

  {/exp:postmaster:email_form:open}

This certainly triggers an email for each entry but I can only get them to send if I hardcode a recipient email address into the hook set up and I need to use the email field from each entry.

In addition I am also unable to include any of the custom data or form data within the emails. As I understand the documentation I believe I simply need to do something like this;

Property enquiry from Big Holiday House

From	{from_name}

Email	{from_email}

Phone	{from_phone1}

Property Ref	{property_ref}

Property	{property_name}

No. in group	{number_in_group}

Date from	{date_from}

Date to	{date_to}

Message	{message}

However, none of the tags get parsed - I just get the tag names in the email received.

I'm clearly really doing something wrong here and not understanding some fundamental  aspect of using Postmaster.

How do I do it?


texts:
I have EE 2.7 running with MSM 2.16 and want to upgrade to EE 2.7.1 to fix some bugs

Outside of restoring the three files that come with MSM is there anything else that has to be done differently because of MSM?


texts:
I have a site that I'm working on for the Boy Scouts: LHCBSA.info, they have a current site: LHCBSA.org. We are ready (almost) to switch over to the new site (LHCBSA.org would then point to the host for LHCBSA.info). When we are ready to do this I will simply change the DNS recorded for LHCBSA.org (no problem there, just changing where the @ record points to). My question is this... what will I need (if anything) to change in EE to make sure that when someone is visiting our site they will always have a .org address (we are keeping the .info address, i just don't want any one to use it)? EE was setup using the .info address so I'm assuming that after i change over to the .org address there will be something i will need to change.

Thanks!


texts: Solspace Super Search - Relevance not working

texts:
Sorry - I can't figure out how to answer my own question, but this came down to me not using a Keyword Search. Relevance scoring only works on keyword searches.

EE 2.7.2
Super Search 2.1.3

Hi

We are trying to implement Relevance within our search results, but having no luck at all. We output {relevance_count} but it always returns 0. Eventually we also want to add relevance_proximity="yes" but we will come back to that.

Here is the code we are using and it still returns a {relevance_count} of 0 even when the title and/or tags is an exact match:

{exp:super_search:results
channel="photos"
relevance="title=5+tags=1"}

{title} - {relevance_count}

{tags}

{/exp:super_search:results}

Any help would be much appreciated.

Thanks, Jonathan


texts:
I get these errors when submitting a Solspace Freeform Next form. The submission is successful. Record is made, notifications are sent properly. Everything works otherwise.
EE 5.3.2 Freeform Next Light 1.8.3
L.
Notice

Trying to access array offset on value of type null

user/addons/freeform_next/vendor/egulias/email-validator/src/Egulias/EmailValidator/Parser/Parser.php, line 132

Severity: E_NOTICE
Warning

Cannot modify header information - headers already sent by (output started at ee/legacy/core/Exceptions.php:120)

ee/legacy/core/Input.php, line 238

Severity: E_WARNING
Warning

Cannot modify header information - headers already sent by (output started at ee/legacy/core/Exceptions.php:120)

user/addons/freeform_next/Utilities/Plugin.php, line 57

Severity: E_WARNING


texts:
I am using Channel Images v 7.0.0 with EE 4.2

The capability to add multiple images at once - that is intended for just one channel entry, correct?

For example, I have a page showing a company's Staff Members - the HTML mock-up is here.

I thought I could upload all the staff images at once into a designated file directory and then select the image assigned to each member/channel entry.

But that does not seem to be the case, am I right - ?


texts: How do I use a conditional to filter channel results?

texts:
I need to be able to display only a subset of channel entries based on membership expiration date.

I am looking to display only those entries where the Expiration Date is less than or equal to today.

Here is the code:

{exp:channel:entries channel="member_profiles" group_id="9|10|11|12|13|14|15"  orderby="business_expire_date" sort="asc"}
 {if {business_expire_date format="%U"} <= {current_time format="%U"} }

        {member_business}
        {full_name}
        {business_enroll_date format="%M %d, %Y"}
         {business_expire_date format="%M %d, %Y"}

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

When I load the page I get the following error:

  Parse error: syntax error, unexpected T_IS_SMALLER_OR_EQUAL in /home/...

How do I modify the {if} statement to correct that?

Thanks.


texts:
I am working on a plugin for EE3/4 which relies on a very specific html input naming structure.

A search form input may have a name attribute which looks like the following:

<input name="xy:State|City|Zip(contains)">

This causes the _clean_input_keys method in the EE_Input class to throw the 'Disallowed Key Characters' error which shows up in several posts on stack exchange.

The plugin that our company is building has a core library which is designed to work on any PHP based CMS. For example, my company has the same plugin in works for Craft CMS and it works just fine on that platform. This core library handles converting the above mentioned input naming schema into a query DSL for our service.

Do we have any options open to us concerning how to bypass the regex check the _clean_input_keys method performs? We would like to avoid changing our naming convention as it works very well in Craft CMS.

Thanks!


texts:
Looking at building a search form which sends an email alert to a members based on search terms eg: membership level/location/custom fields/tags/categories. In addition I need to send an additional email to other EE member's after 24 & 72 hours depending on level of membership and if they also match the search criteria.

I have looked at Postmaster & Super Search but not 100% sure if I will be able to do all of this. Is it possible just using Postmaster or should something custom be built here?


texts: CartThrob Discounts being applied incorrectly

texts:
I've set up a couple discounts based on quantity, for example:

Buy 2 CD's and get $4.98 off
Buy 3 CD's and get $14.97 off

Both of these are triggered by the "If order over" field. However, what seems to be happening is that all the discounts are being applied even if the order minimum is not met.

Meaning... if I have 2 CD's in the cart, BOTH discounts are being applied for a total of $19.97 off.

Anyone seen this? Is this a configuration error or a bug?


texts:
This script was working in Expression Engine V2 but isn't at version 5.
Can someone tell me how to get the thumnail URL of this rss feed?

Other info is already working..

{exp:rss_parser url="https://nieuws.optima.nl/rss" limit="1" refresh="720"}
{media:thumbnail@url} (<-- this is not working)
{/exp:rss_parser}


texts: How to wrap 3 channel entries with a specific div

texts:
I want to wrap a div class = row around every three channels entries. How can I do that?

{exp:channel:entries channel="boite_a_outils" disable="member_data|trackbacks|comments" dynamic="off" orderby="title" sort="asc" {triggers:entries}}
            {if no_results}
Aucun lien relié à cette catégorie.
  {/if}
            {if count == 1 OR count == 4}
{/if}

{title}

                Lien

            {if count == 3 OR count == 6}
{/if}
        {/exp:channel:entries}

This is what I have so far, but I don't want this option, I want it to be dynamic. Right now, as you can see in my code, I check count if it's equal to 1 or 4...how can I make this dynamic?

Thx!


texts: simple search not including some channels in results

texts:
For some reason news does not get included in the search results on this site, apparently it never did and people didn't notice until a year or so later.

This is the search code

{exp:search:simple_form
  channel="pages"
  result_page="Main/search_{embed:lang}"
  search_in="everywhere"
  channel="pages|jobs|slides|powerpoints|events_information|events|news_and_updates|awards|student_ambassadors"
  status="not closed"
  show_expired="yes"
  show_future_entries="yes"
  no_result_page="Main/search_no_results_{embed:lang}"}

    <input class="searchBox" type="text" name="keywords" id="keywords" value="" placeholder="Enter your keywords" size="18" maxlength="100" />
    <input class="searchLink" type="submit" value="search" class="submit" />

{/exp:search:simple_form}

Here is a screenshot of the channel names:
http://i.imgur.com/cnLHuXA.png

Any tips?  I've been tasked with some revisions on a EE based site.  This is the very last thing I need to fix from the very long list and its driving me bonkers, would appreciate any help! :D


texts:
I have tried http://cartthrob.com/docs/tutorials/authorize_later_with_vaults/index.html with stripe but I get the error The card object must have a value for 'number'. when trying to authoirize as the example, im assuming because the {exp:cartthrob:checkout_form} is still looking for the credit card information rather than just the token to authorise payment?

Any help on how I can fix this? I used Cartthrob and stripe becasue of this feature to charge later if product becomes available, but not working right now.


texts: Trouble with Conditional inside Matrix Field

texts:
I'm trying to setup a conditional to only show the Start Date when the Start Date and End Date match, but I can't get it to work in Matrix and I can't find a similar question anywhere.

Here's what I have so far. I'm using the Time Select fieldtype add-on.

{exp:channel:entries entry_id="8" dynamic="off"}
    {sessions}
        {if "{start_date format='%M %j'}" == "{end_date format='%M %j'}"}

{start_date format="%M %j"}

        {if:else}

{start_date format="%M %j"} - {end_date format="%M %j"}

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


texts:
On a site running EE 2.7.2 there is a problem with resetting passwords from the auto-generated reset link.

When a user clicks on Forgot your password? at the login screen and submits their email address, an email with the following link is generated:

  http://sitexyz.com/index.php?S=0&D=cp&C=login&M=reset_password&resetcode=KJ82wnTS

However, when you click on that link it takes you to the home page instead of the password reset page. Any clues why this is happening and what the solution is?


texts: Solspace Super Search only updates values on second page load

texts:
Not sure if its simply something I'm doing incorrectly, but following the documentation with the following form:

<form method="post" action="{path='events/search_results'}">
    {exp:super_search:search}
    <fieldset>

            <input class="datepicker" type="text" name="event_start_date-from" value="{super_search_event_start_date-from}" />

            <input class="datepicker" type="text" name="event_start_date-to" value="{super_search_event_start_date-to}" />

        <select class="fancyselect" name="category">
            <option value="">Category</option>
            {exp:channel:categories category_group="6" style="linear"}
                {exp:super_search:variables}
                    {if super_search_category == category_id}
                    <option value="{category_id}" selected="selected">{category_name}</option>
                    {if:else}
                    <option value="{category_id}">{category_name}</option>
                    {/if}
                {/exp:super_search:variables}
            {/exp:channel:categories}
        </select>

        <input type="submit" name="submit" class="button" value="Search" />
    </fieldset>
    {/exp:super_search:search}
</form>

The search mechanism works just fine, however on page load it doesn't update each fields' value to reflect what was search. Refreshing the page (or hitting search again) updates this. Not using Ajax or anything, and page reloads fine - the search results are updated properly.


texts:
I've been looking to see if it was possible to use ExpressionEngine with an Percona XtraDB cluster, I have yet to find a verdict, the closest thing was the post below but there does not seem to be consensus as to whether or not it worked. Does anyone have experience using EE with any galera based replication tools. Further Does anyone have experience setting up EE in a redundant DB environment? We are deploying on AWS and would like to have a copy of the database in each availability zone. Thank you!

ExpressionEngine with Percona Cluster?


texts: Exp-resso Store : Removing a Product/Item from Cart using products tag

texts:
I have a situation where I have a page of products and when you add a product to cart, it simply redirects you back to the page and using the {if qty_in_cart} conditional, we're telling the user that the item is in the cart.

However, the client has now asked if there's a way to toggle the item in the cart all on this page. So the user adds the product to the cart and then it will give them the option to 'remove from cart'.

Here's what I have at the moment:

{exp:store:product entry_id="{entry_id}" disable_javascript="yes"}
<input type="hidden" name="item_qty" value="1" />
{title}
{if qty_in_cart}
<button class="btn btn-danger btn-small" name="remove_items[{key}]" value="1">
 Remove from Cart
</button>
{if:else}
<button class="btn btn-primary btn-small">
 Add to Cart
</button>
{/if}
{/exp:store:product}

However, this is resulting in 'disallowed characters' error message when its posted.

Is there a way that I can remove a product using the product tag?


texts: Really need help - Trouble with EE3, Addons, and server settings - ERRORS

texts:
I really need to get some help on this as I have reached out to EL, The Outfit, DD, etc. All have been helpful and eager to assist, but we can't resolve the issue.

I have never run into issues like this with anything I have ever hosted on Siteground (who is where this client is), but I have never tried to install/run EE3 on any either.

I initially had issues with EE3 alone. One of the issues was a bug and is being resolved in the next release. The other was resolved by updating to 3.1.1. The second issue was with DevDemon's Updater add-on. This was an object reference error, also resolved by fresh install of EE 3.1.1.

I them purchased NavEE to use and upon install, was greeted with a page of errors, warnings, etc. I cannot reproduce the errors on my local dev setup running WAMP. Michael at The Outfit was helpful in checking into things on his end as well. While neither of us were able to reproduce it on our ends, we were able to reproduce it on the SG server. I even provided a zip file of the file system with a DB dump. When rebuilt, the error was not present on local machines.

I then opened up a support ticket with the hosting company. However, they only checked file permissions and made sure the files were present and that there were no PHP error logs. They don't know enough about what requirements, if any were causing the conflict and suggested I get with the CMS/Add-on company again. Once I find out, I will be able to tell them what they need to do.

This is beyond frustrating to say the least.  :(

The way to reproduce this issue, assuming you have NavEE, is to attempt to install it. You should be presented with a view file to enter your license. However, I am greeted with this:

Exception Caught
View file not found: mcp/license/index

/home/stkhomes/system/ee/EllisLab/ExpressionEngine/Service/View/View.php:343
Stack Trace: hide details

#0 ee/EllisLab/ExpressionEngine/Service/View/View.php(95): EllisLab\ExpressionEngine\Service\View\View->getPath()
#1 user/addons/navee/mcp.navee.php(36): EllisLab\ExpressionEngine\Service\View\View->render(Array)
#2 [internal function]: Navee_mcp->license()
#3 ee/EllisLab/ExpressionEngine/Controller/Addons/Addons.php(1607): call_user_func_array(Array, Array)
#4 ee/EllisLab/ExpressionEngine/Controller/Addons/Addons.php(883): EllisLab\ExpressionEngine\Controller\Addons\Addons->getModuleSettings('navee', 'license', Array)
#5 [internal function]: EllisLab\ExpressionEngine\Controller\Addons\Addons->settings('navee', 'license')
#6 ee/EllisLab/ExpressionEngine/Core/Core.php(191): call_user_func_array(Array, Array)
#7 ee/EllisLab/ExpressionEngine/Core/Core.php(94): EllisLab\ExpressionEngine\Core\Core->runController(Array)
#8 ee/EllisLab/ExpressionEngine/Boot/boot.php(138): EllisLab\ExpressionEngine\Core\Core->run(Object(EllisLab\ExpressionEngine\Core\Request))
#9 /home/stkhomes/public_html/admin.php(143): require_once('/home/stkhomes/...')
#9 /home/stkhomes/public_html/admin.php(143): require_once('/home/stkhomes/...')

The file IS in location and the properties are set properly as well. If there is anyone that can help with this, it would be greatly appreciated. I can provide whatever is needed in information in order to check server requirements, settings, etc.


texts: 2.6+ and add-on compatability -- do all add-ons need to be upgraded?

texts:
I skipped upgrading to 2.6 since I kept seeing comments about bugs, but now that 2.7 is on the way I need to get my add-ons sorted.

What I am wondering is if all add-ons need to be upgraded to work with 2.6 or only those using some specific functions?


texts: Force "free-shipping" inside a product tag.

texts:
Is there any way to add a template tag or hidden input and force free shipping for all the items that use a template?

The site I'm working on sells some physical products, but also has a "classes" section.

I'd like to simplify the class creation process for my clients. It would also help them avoid errors if they miss the checkbox.


texts:
Question, then background behind the question:
We use Low Variables.  When would the database overwrite our variable files on the server instead of the files overwriting what's in the database?

Background: Bitbucket had (is having) some issues.  To push our sites from dev to staging we have a script that dumps the database, commits and pushes to our dev branch, merges with our staging and then pushes our staging, then checks the dev branch back out so that we are always on dev, the database that was dumped is then imported into the staging database.

This typically works great, except what seems to have happened yesterday is that our script pushed our dev branch, however since was Bitbucket was having issues, it seems that when we checked the dev branch back out it checked out an old commit.  In hindsight there were a lot of things we could have done (gone through our local git -log, etc), however did I mention that this was a site for a local college and we were presenting it to the faculty 3 hours after this happen?

So it seems that when that happened, and we then ran the site, that ExpressionEngine took what was in the variable files and overwrote what was in our database.  This is typically what I would expect.  However after we pulled in all the files from the backup from the previous night (actual nightly file and database backups we run, not git), it seemed that the database was then overwriting our variables.  We knew that the files were good (again, in hind-sight I should have reverted the database as well), however when we looked at the variables in EE and then the actual files they were bad.  It was until I pulled the backup files into a non-EE folder, then manually copied the text from one into the files in the EE install that the files saved correctly and the proper variable files were in EE.

Also, it seems that only the variables were over written, not any templates.  I'm just trying to understand what could have happened and how / when the whole syncing process works.

thanks

In Hindsight:
- we should have done a full restore from the files/database backup to nip this in the butt
- we should have looked at our local git repository for the log and what was committed before instead of just relying on Bitbucket
- I've repeatedly stated that we shouldn't be making changes the day of presentations.  Once again I got vetoed.


texts: Manually arrange product placement in cartthrob

texts:
I am wondering if there is a way to make certain items appear first within a category, regardless of default item order?

I would like particular items, buried within several pages because item order defaults to alphabetical, to appear first.  Is this possible?


texts: Multiple required fields in Channel Form without setting required in CP

texts:
I need to set multiple fields as "required" in Channel Form/Zoo Visitor, but I can't find anything in the documentation that describes how to do this. I can't set the fields to be required in the CP because validation needs to happen at form level, not entry level.

None of the following works:

rules:field_1|field_2=“required"
rules:field_1=“required"|field_2=“required"
rules:field_1=“required" rules:field_2=“required"

Anyone got any ideas?


texts: What are options for a better built-in template editor?

texts:
I'm not too happy with EE's template editor. It would be nice to have the following:

Show line numbers (and column numbers maybe)
Tab support
Ability to increase the height of the editor

Are there any options for me?


texts: Using Stash to set and get a list of entry Solspace Tags

texts:
I'm trying to Stash the Solspace Tags for a Channel Entry as a list and then get them on the view template. However, the view template is not displaying any tags, even though there are some assigned.

This is how i'm setting the lists (notice the nested list for the Solspace Tags);

{exp:stash:set_list name="place-{segment_1}" parse_tags="yes" parse_depth="10" save="yes" scope="site"}
    {exp:channel:entries
        channel="places"
        status="open"
    }

        {stash:place_title}{title}{/stash:place_title}
        {stash:place_entry_id}{entry_id}{/stash:place_entry_id}

        {exp:tag:tags
            entry_id="{entry_id}"
            backspace="2"
            orderby="tag_name"
            sort="asc"
        }
            {exp:stash:set_list:nested context="{place_entry_id}" name="place-{segment_1}-tags" parse_tags="yes" save="yes" scope="site" refresh="60"}

                {stash:tag}{tag}{/stash:tag}

            {/exp:stash:set_list:nested}
        {/exp:tag:tags}

    {/exp:channel:entries}
{/exp:stash:set_list}

This is how i'm trying to get the Tags;

{exp:stash:get_list name="place-{segment_1}"}

    {place_title}

    {exp:stash:get_list:nested context="{place_entry_id}" name="place-{segment_1}-tags"}
        {tag}
    {/exp:stash:get_list:nested}

{/exp:stash:get_list}

I would be grateful for any assistance. :)


texts: Adding custom field type to Rating from Solspace

texts:
EE 2.9.2
Rating 3.3

I would like to add a custom field type, such as a Wygwam or RTE so that the comments field can have some formating controls. Just the basic ones, bold, italic etc.

Is it possible to add a custom field type to Rating?

Is it possible to add formatting controls to the textarea field?


texts: Module not showing in modules list for installing

texts:
Am trying to install Flag Master addon.

https://github.com/mithra62/flag-master

Did copy the extracted folder to third_party folder as per the install instructions.

However the module doesn't show up in the modules list for it to be installed.

Am using EE 2.10..1

Any pointers?

Thanks


texts: PHP errors in control panel; main site still working

texts:
NOTE: I am a non-technical person and know nothing about PHP. I can follow step-by-step instructions though.

I am running EE v2.5.5

I am getting PHP errors on my control panel which won't go away with a refresh. I have NOT changed any files, however I did open and peek around a few files through my FTP site two weeks ago to see if I could find the code for my tags.

Since then, these errors are constant.

It is NOT effecting my front end site (www.justfrances.com) but it IS effecting my ability to search for previous posts on the control panel to edit things. It's also slowed a lot of the control panel functions and has meant that I have to refresh after posting a new entry.

Any thoughts on WHY or on how to fix this?

I tried looking at other threads on this, but nothing seemed to work (or make sense) for me

Thank you,
Just Frances


texts: Is there a way to automatically populate Matrix rows with channel entries with a custom status?


texts: Geotagger 2.6 support (EE fieldtype error in developer log)

texts:
Found an error caused by Mighty Big Robot's Geotagger in the EE developer's log. It seems that this issue might have existed since 2.6.

Here's my error:

Deprecated function EE_Fieldtype() called in system/expressionengine/third_party/geotagger/ft.geotagger.php on line 47.
Deprecated since 2.6. Use EE_Fieldtype::__construct() instead.

Does anyone know anything about their update or if its easy to change the code to work to the 2.6 fieldtype?

Thanks!


texts:
An old website has recently been updated for a client of ours, from EE 2.4.0 to EE 2.10.1.

I've been having lots of trouble with CartThrob on the staging site. I'm wondering if the licence for the staging site is causing issues (as the current site is still live while we work on it), which is why it hangs when processing orders (time out).

We've tried almost everything we can think of and still to no avail.

Thanks,

Shaun.


texts: Is there a way to switch the parent page with one of the child pages? I would like to avoid creating a new page for each child page under the new parent page.


texts:
I now have my module working like I need it to and my single tag pair calls the correct function. But I'm wanting to create a tag pair that is common in most modules/plugins. Here is the function I am calling:

function get_photos()
{
    $albums = unserialize( $this->get_setting_value( 'facebook_albums' ) );
    $limit = intval( $this->EE->TMPL->fetch_param('limit') );

    if( is_null( $limit ) || empty( $limit )  )
    {
        $limit = 50;
    }

    $layout = '';
    $i = 0;
    foreach( $albums as $album )
    {
        $photo_data = $this->get_facebook_graph_data( $album, 'photos' );
        foreach( $photo_data->data as $photo ) {
            if( $i === $limit )
            {
                break;
            }
            else {
                $layout .= sprintf( '', $photo->images[5]->source, @$photo->name );
            }
            $i++;
        }
    }

    return $layout;
}

I would like my tag pair to look like this:

{exp:fbphotos:get_photos}

{/exp:fbphotos}

I'm not looking for someone to write all of the code, just a way to map the tags to values and create the loop. Thanks!


texts:
I wish to display images from channel entries and if they have been created/edited within the last 14 days I want to add another image on top.

What would be the logic for detecting whether the entry was new or not?


texts:
When User sends an invite it includes a Key.
     - Where is this key stored ?
     - Is there a way to generate a key without having a User be sent an invite ?
     - Is there a table which contains all the invites sent ?
     - Can the same key be shared with more than one User ?

Thanks!


texts: conditional statement with radio button value

texts:
I'm not sure if this is an EE bug or if I'm doing something wrong.  I'm looping through my "tournaments" channel entries and for each entry I'm looping through a "teams" channel that has a relationship to the tournaments channel.  Looping is fine with {parents}.

I'm trying to test a radio button field value and create a dropdown based off that.

I can spit out the value and it works fine and spits out the correct value if I just use {parents:team_confirmed:value}. However my {if} doesn't seem to work properly.

Here's my code in a nutshell:

{parents field="tournaments_attending"}

       other stuff

       <select name="confirmed">
           {if parents:team_confirmed:value == 1}
               <option value="Yes" selected>Yes</option>
               <option value="No">No</option>
           {if:else}
               <option value="No" selected>No</option>
               <option value="Yes">Yes</option>
           {/if}
       </select>

{/parents}


texts: Freeform module won't install - just shows blank screen/white page

texts:
This is the first time I have run into issues with installing Freeform. I am running Expression Engine 2.7.2, I have the latest free version of Freeform (4.1.3) and when I go to Add Ons > Modules > Freeform and hit install I arrive at Package Settings which tells me to install both the Accessory and the Module.

So far so good - then I hit Submit to install both the Accessory and the Module and... white page of death.

Any ideas?

Thanks.


texts: Display Currently Selected Category Inside Safecracker Form

texts:
How do I display the currently selected category for the channel entry inside a Safecracker form?

I tried:

{categories}
    {if checked}
       {category_name}
    {/if}
{/categories}

I also tried {if checked != ''}, and the same with {selected} instead of {checked}.

Any ideas?


texts: How to get Solspace Supersearch to find words within words?

texts:
I'm trying to use Solspace Supersearch to do a location lookup for franchisees. Each franchisee has an 'areas covered' field that lists a comprehensive list of the areas the cover (both towns and postcodes).

The trouble is that we are only listing the first 4 characters of postcodes (otheriwse we'd be listing millions) but want to display results even if someone searches for a full post code.

Example:
One entry has the postcode 'PE25' listed. If a user searches for 'PE25 123' then the entry is found, but if the user searches 'PE25123' then no entry is found.

{exp:super_search:results
    channel="technicians"
    where="any"
    inclusive_keywords="no"
}

What I'd like to happen is for supersearch to see that 'PE25123 contains 'PE25' and display the result. I've tried to play around with 'inclusive_keywords' and 'search_words_within_words' with no luck.

Any ideas would be massively appreciated as this one's got me stumpted!

Thanks in advance,

Tom


texts: exp_channel_data matrix field contains YTowOnt9

texts:
EE 2.6.1,
Matrix 2.5.10,
Structure 3.3.13,
Wygwam 3.2.2

Matrix field data outputs on the frontend, but matrix rows disappear when editing a specific entry.

The matrix data still appears on the front-end even after clearing all caches but when editing the entry it appears the Matrix rows and data are gone but it still exists in the exp_matrix_data table.

Found that our matrix field_id_x with the missing rows contained the value YTowOnt9 which base64 decodes to a:0:{}. Any ideas if an older version of Matrix once stored a serialized array? If we delete the string YTowOnt9 the matrix rows for that field reappear.

Each row there are a total of 7 columns. In each row there are 2 file upload fields, and 5 text fields.

When we save an entry now with Matrix 2.5.10 and the value YTowOnt9 exists in field_id_x, the matrix data is removed from the exp_matrix_data table. If the channel_data field_id_x column is blank or has a value of 1 that matrix data is retained.

Was wondering if anyone had any idea on where YTowOnt9 was coming from? A previous version of Matrix? Another add-on that is modifying the value of field_id data?


texts: Security of an Action URL called from AJAX

texts:
I have an action URL, index.php?ACT=23, that calls a function which inserts some info into the database.

This is being called from an AJAX function, so I can't control where it is called from.

My concern is that it would be easy to set up a script to call this URL repeatedly and thus insert loads of data and probably bring the site down.

Should I be concerned, what can I do to prevent this?


texts: Does anyone know how to create a staging for Expression Engine version 2?

texts: I am wondering where can I find some steps to create a staging for EE2 ?


texts: call template partial using a channel field?

texts:
I am not sure if what I am trying to do is possible. I am definitely not succeeding.

What I need is to have a channel field that calls a template partial, preferably a text field where I can type in the name of the partial or a drop down menu, where the partial name can be selected.

The plan being that if in the entry form, the partial_name field was channel_x_partial, the channel_x_partial content would appear when the page is viewed in the browser.

The code below has not worked.

{exp:channel:entries channel="channel_name" limit="1" dynamic="no" entry_id="{structure:page:entry_id}" disable="member_data|pagination"}
    {partial_name}
{/exp:channel:entries}

Am I way off base?  Would another type of embed work better?  The catch is I need this to be dynamic as different entries would call different partials.

Thank you in advance even if it is to let me know I am way way off base!

Peter T


texts: Looking for advice on “subscribing” to a user

texts: I'm building my very first EE website and I am looking for some advice regarding email notifications based on user activity. I would like members to be able to “subscribe” to or "follow" other members such that when a member posts an article or uploads a document, anyone subscribed to that user will get an email notification. It looks like Postmaster might be a step in the right direction? Are there any other suggestions on how to get me started? Thanks.


texts: EE5 : File upload field not displaying in entry

texts: any idea what's going wrong as the file upload field is not displaying ? CHMOD Permissions checked, PHP version 7.00 checked... But no problem to upload an image directly through File Manager


texts:
I noticed that EllisLab recently deprecated their Twitter-Timeline plugin due to Twitter's retirement of the API it uses:

https://github.com/EllisLab/Twitter-Timeline/

Has anyone been able to use any of the Twitter-related add-ons at Devot:ee to achieve the same effect? If anyone has any suggestions in this area (regarding embedding Twitter timelines in EE page templates), I would be glad to hear them. Similarly, any information about whether an updated version of the EllisLab original plugin is in the works would also be quite welcome.


texts: How do I check for a null or blank snippet?

texts:
I want to have some fallback text for when a snippet isn't available. I tried this:

{if '{snip-start-to-end-dates}' != ""}
  {snip-start-to-end-dates}
{if:else}
  Long-term Installation
{/if}

...but I get this error:

You have an invalid conditional in your template. Please review your conditionals for an unclosed string, invalid operators, a missing }, or a missing {/if}.

Parser State: Unexpected ‘}” == “{exhibition_e…’ (STRING); expected RD in Template “XXXXXX/exhibitions” on line 25.

I can't find anything in EE's documentation indicating a special way to check for snippets. Any ideas?


texts: How to correctly use {if allow_comments}?

texts:
I'm having trouble grasping the usefulness of {if allow_comments}. The comment:entries loop and comments form code are both supposed to be outside of channel:entries, but presumable {if allow_comments} only works inside channel:entries. So I find myself having to use the channel:entries tag repeatedly around the elements in order to use the conditional. So my code get's all ugly like this:

{exp:channel:entries channel="blog" disable="category_fields|member_data|pagination" dynamic="no" status="Open|Featured" url_title="{segment_3}" limit="1" require_entry="yes"}
{if allow_comments && comment_total > 0}

.

Comments

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

                    {exp:comment:entries channel="blog" url_title="{segment_3}" orderby="date" sort="asc"}

{name}

                        {comment}
                        {comment_date format="%F %d, %Y"}

                    {/exp:comment:entries}

            {exp:channel:entries channel="blog" disable="category_fields|member_data|pagination" dynamic="no" status="Open|Featured" url_title="{segment_3}" limit="1" require_entry="yes"}
                {if allow_comments && comment_total > 0}

                {/if}

                {if allow_comments}

.

Write a comment

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

                {exp:comment:form channel="blog" url_title="{segment_3}" preview="blog/comment" form_class="default" return="{homepage}blog/comment-thanks"}

Etc...

This looks rediculous and I'm sure using so many channel:entries tags is a performance hit, but how else do you effectively use the {if allow_comments} conditional?

Do people put their comment:entries and comments forms inside embed templates? Is that any better?


texts: MX Notify - Freemember - Custom Profile_data

texts:
I've got this bit of code where I'm trying to get member custom field information. when I use member_id="41" nothing is rendered. Anyone know why?

{exp:member:custom_profile_data member_id="41"}

{given_name} {family_name}
  {if company_name != ""}
{company_name}{/if}

{bbr-mls-common-location}

    {exp:channel:entries channel="event_locales" search:city_name="{locale_name}" limit="1"}

{venue_address}
{venue_website}

    {/exp:channel:entries}

{bbr-mls-common-session}

    {exp:channel:entries channel="locale_slots" entry_id="{locale_slot}" limit="1"}

      {if language_code == "en"}
        {start_date_time format="%F %j"}
      {if:else}
        {start_date_time format="%j"} au {end_date_time format="%j"}
        {if '{start_date_time format="%F"}' == "September"} septembre {/if}
        {if '{start_date_time format="%F"}' == "October"} octobre {/if}
        {if '{start_date_time format="%F"}' == "November"} novembre {/if}
        {if '{start_date_time format="%F"}' == "December"} decembre {/if}
      {/if}

      {start_date_time format="%g:%i%a"} - {end_date_time format="%g:%i%a"}

    {/exp:channel:entries}

{/exp:member:custom_profile_data}


texts: How to submit Expresso/DevDemon Store data via the Channel Entries API?

texts:
I've got a project where I need to automate the process of creating entries. I'm doing so using the ExpressionEngine Channel Entries API but as part of that I need to set a price for the entry in the Store field.

As it stands when a Store field is present in the channel I get PHP errors when submitting data, it seems that Store is being called somewhere along the line by the Channel Entries API and then doesn't have the data it's expecting so I get:

Invalid argument supplied for foreach()
Filename: Service/ProductsService.php
Line Number: 137

The code I'm using to inject new entries or update existing entries is as follows:

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

$channel_entry_data = array(
    'title' => (string)$data['metadata']->title,
    'status' => 'open',
    'field_id_188' => (string)$data['metadata']->description,
    'field_ft_188' => 'none',
    'field_id_206' => strtotime($data['metadata']->date),
    'field_ft_206' => 'none',
    'field_id_189' => (string)$data['metadata']->type,
    'field_ft_189' => 'none',
    'field_id_190' => (string)$data['metadata']->format[0],
    'field_ft_190' => 'none',
    'field_id_208' => (string)$data['metadata']->format[1],
    'field_ft_208' => 'none',
    'field_id_191' => (string)$data['metadata']->identifier[0], // required
    'field_ft_191' => 'none',
    'field_id_192' => (string)$data['metadata']->identifier[1], // required
    'field_ft_192' => 'none',
    'field_id_193' => (string)$data['metadata']->source,
    'field_ft_193' => 'none',
    'field_id_194' => (string)$data['metadata']->rights,
    'field_ft_194' => 'none',
    'field_id_209' => $store_product_data,
    'field_ft_209' => 'none'
);

ee()->api_channel_fields->setup_entry_settings($channel_id, $channel_entry_data, FALSE);

if (ee()->api_channel_entries->save_entry($channel_entry_data, $channel_id, $existing_entry_id, NULL)) {
    return TRUE;
} else {
    return FALSE;
}

store_product_data is an array as follows:

$store_product_data = array(
    'price'=>1,
    'length'=>NULL,
    'width'=>NULL,
    'height'=>NULL,
    'weight'=>NULL,
    'handling'=>NULL,
    'free_shipping'=>1,
    'stock'=>array(
        array(
            'id'=>NULL,
            'sku'=>NULL,
            'track_stock'=>NULL,
            'stock_level'=>NULL,
            'min_order_qty'=>NULL
            )
        )
    );

But this doesn't work, I get the PHP error for every entry I insert and a bunch of empty rows for each entry in the exp_store_products table, but none of the actual product data (price and free shipping toggle).

Any thoughts/suggestions greatly appreciated. I want to use the channel entries API if I can but maybe I just need to resort to a quick and dirty DB insert.


texts:
Is there a way to enable a wysiwyg editor for editing phrases in Publisher?

I am aware that you could actually add html tags into phrases. But it would be a great addition, if there was an add-on that actually could convert some phrase input fields into a simple wysiwyg editors.


texts: send email to different recipient based upon drop-down selection

texts: I have a select drop-down with different values in it on my contact form, and I want to direct the e-mail to a different person based upon the value selected in the drop down.  How could I accomplish this?


texts: Best workflow/approach for dev teams on localhost

texts:
I've been a freelancer working solely on my own with all my EE installs on localhost on my Mac. Soon it looks like I'll need to collaborate in my home office with another EE dev so am looking for suggestions as to the best workflow set-up.

Basically we'd both be working on the same EE dev site in the same office but on our individual laptops. What's the best approach to facilitate this?


texts: DevDemon 4.0.0 Tagger tags not saving when publishing

texts:
I upgraded from EE2 to EE3. I had Devdemon tagger add-on, so I also had to upgrade it to the newest version (4.0.0) in order to be compatible with EE3.

The problem is that whenever I add a tag to an entry (new or existing) it doesn't get saved. When I hit Publish it seems like it is there, but when I go back to the entry the added tag isn't there.  So in the front end there are no tags showing.

The entries added before I did the EE upgrade DO have their corresponding tags.


texts: Breaking my HTML into tiny pieces - template, snippets, or globals?

texts:
In order to maximize code reuse, I'm trying to break down the mark up for each of my form fields into individual "containers" (e.g. a template, snippet, global). The project I am working on is form-heavy where the same field is used multiple times in different pages. The fields are part of forms that insert and edit Channel data.

Where is the best place to store these pieces of HTML? I tried snippets and globals, but I think EE's parse order does not allow Channel data to be displayed in these containers. If I used templates, that's going to be a lot template calls.

I'm using Safecracker, but not sure if that matters here.

Suggestions?


texts: CI is not including its PHP files properly?

texts:
Has anyone see then before?

Warning: set_error_handler() expects the argument (_exception_handler) to be a valid callback in /home/nginx/domains/xxx.com/ee_core/codeigniter/system/core/CodeIgniter.php on line 63
Fatal error: Call to undefined function is_php() in /home/nginx/domains/xxx/ee_core/codeigniter/system/core/CodeIgniter.php on line 65

Since last night, all URLs on the site suddenly started returning that message. I can't access the CP, either. From looking at the code in CodeIgniter.php, it looks like the missing functions are all in Common.php, which is included at the top of the file. Any reason CI would be unable to run the included code? (Yes, I checked permissions already....)

Any help is greatly appreciated!


texts: Two search results tags with separate pagination on the same page

texts:
I have a search results page using Low Search that has two tabs on it for two different sets of search results. I think that the fact that this uses Low Search is mostly irrelevant for this question since I'd have this same issue if I was just using two channel entries tags on the page.

One tab is pulling in local results using geocoded distance parameters. The other tab is pulling in all results, ignoring the distance parameters.

This is working well, but the problem comes in when we have multiple pages. For example, sometimes there are multiple pages of results in the first tab and only one page of results in the first tab. So if the user goes to the second tab and clicks through to the 4th page, then clicks back to the first tab they see no results because it's using the P40 segment in the URL to look for the 4th page of results but not finding a 4th page for the results in that tab. Here's an example of the full search URL:

https://www.domain.org/search-results/P40?keywords=thiskeyword&distance:radius=100&location=Austin&distance:from=32.7766642|-96.79698789999998

Can anyone think of a workaround for this? I haven't been able to figure out a good solution to have pagination only apply to one specific results tag or channel entries tag on the page.


texts: Super Search Pagination deleting parts of URL

texts:
I am trying to pass an entry ID which is wrapped in the super search results tag into a channel loop, and using the channel loop pagination to brow through the pages.

{embed="{prv_template_group}/_shop-list"
    entry_id="{exp:super_search:results}{entry_id}|{/exp:super_search:results}"
    limit="{prv_limit}"
}

{paginate}

          {pagination_links}

{/paginate}

When I first submit the super search, it gives me the correct url:

.../index.php/shop/results/search&category=boy&&Footwear&&"Ickle+Shooz"/

But when I click any of the pagination links, it gives me this:

.../index.php/shop/results/search&category=boy&&Footwear&&

Another problem, it also does not seem to recognise + symbols:

.../index.php/shop/results/search&category=default+boy/

and when you click onto a pagination link:

.../index.php/shop/results/search&category=default%20boy/P9

Has anyone ever come across this problem before and know how to fix it?

Running short of ideas!!


texts:
I have a channel which is growing large through automatic daily imports.  Is there any way to automatically remove (prune) entries older than X days?  I've looked through the extension space without joy.  It would certainly be possible to do this directly in the db but there are quite a few tables to deal with (sorry, that sounds whiny, eh?).

Anyway, I'd be glad for any thoughts or pointers.  Thanks.


texts: Switching default database engine to InnoDB

texts:
We recently altered our EE tables to use InnoDB as the database engine instead of MyISAM.  All is good.  INNODB is also set as the default engine in MySQL's preferences.

I just noticed that when Expression Engine is creating new tables (such as when we just installed CE Image) they are still being created as MyISAM.

This appears to be set in the following CI file:

/system/codeigniter/system/database/drivers/mysql_forge.php where I find this:

/**
 * The default engine to use when creating new tables.
 */
const ENGINE_DEFAULT = 'MyISAM';

I'd prefer not to hack the codeigniter core files.  Is there a way I can override this value in EE's config file?

I am currently on 2.8.1 and getting ready to update to 2.10.1


texts: Optimising structure of exp_channel_data table

texts:
I have a site with around 800 columns on exp_channel_data table. I would like to know if I can go ahead and optimise the structure of this table by doing the following
1) changing field from text to a suitable smaller data type like varchar
2) alter indexes

If I go ahead and do these changes will expression engine override these changes next time I try to save to dB or save site settings or any such thing.


texts: With new Routing capabilities in EE 2.8 - Trying to figure out the best solution

texts:
I'll start with an example.

An image with an embedded watermark URL example.com/1203020202, in the lower right-hand corner in small text will serve as a redirect to the original URL. So when a user visits example.com/1203020202, they will be redirected to the original URL if it still exists i.e. example.com/something/this-is-the-image-page. This is so when images are sent via email or shared, found on google images, it serves as a URL shortener and 301 redirects the user to the original source.

EE 2.8 has the new template routing. I'm wondering if it would be better to write an module/extension hook that would do the routing before template parsing. I speculate that this will require more work, but not sure if it's worth it in the end. Does the entry exist, is the status open or closed? etc, etc.

Another option is to use the EE 2.8 routing with a template that would find the entry_id and perform the redirect if {segment:id} is found.

One thing that scares me about the EE2.8 routing is that seems limited by priority, and correct me if I'm wrong, there is no way to set priority with routing.
Edit, as of EE2.9 you can set template routing priorities

I'm thinking of speed overall, and if it can be done before the template parser begins, it's faster, less code, that would be cool.

Any ideas?


texts:
I am using a version of the Focus Labs Master Config setup and I am getting a database error when using the www. prefix in front of the URL. This is a problem that I haven't run into before. Anyone have any thoughts?

You can see the issue at http://denvillechamber.com. Obviously add the www prefix to recreate the error.


texts:
i'm using Solspace Calendar to show events around an area on dates the user selects. I have made the results page with a combination of Calendar + Stash and it is working really fine.

I get the results like
http://domain.com/index.php/results/Athens/2/2017/01/07/2017/02/28
where Athens is a custom text field for cities, 2 is category_id for activities (cinema, dance, etc) and the rest is start_date and end date that the user selects to check if there any events.

Now, the problem is that i need to make a form with 3 elements -a category dropdown menu, a city dropdown menu and a datepicker for daterange. All that is good and normal.

So i need to make the form to point to the specific above url, passing the 3 elements to the url segments. Actually what i want is to make the search form to create a link in the above form.

Is that possible? I tried some variations either with {exp:search:simple_form} or plain html form, nothing works.

Shall i make the submit button as a link? And how i will pass the values from the dropdown menus to this link?

Seems like a riddle to me.

Any idea will be welcome.

Thanks for your time


texts:
Because we're still on EE 2.7.3, I'm using 2.2.0 of EXP:Store, and I'm running into a problem with itemised taxes.

We have items at 2 tax rates, 6% and 21%, separated into categories (and as luck would have it, there's only 1 6% category while there are 15+ 21% cats).

When I need to itemise each item's tax in the checkout list:

<td>{item_tax} ({tax_percent}%)</td>

Seems simple, except that while the first tag renders the correct tax, the second doesn't give the correct rate. I'm clearly missing something...


texts: How do I use uploaded images from primary MSM site on other site?

texts:
I have a primary domain on a server then a secondary domain also on the same server. Using MSM, I setup the secondary site and things seem to be running smoothly except one thing.

The second site primarily mirrors the first site's content but with a different look/feel. I'm using channel entries from the primary site on the secondary site in some cases but have some issues with image assets.

I've found that in some cases I can use the site1.com's assets by just using the absolute url. But, if the image was uploaded within a field, there isn't the ability to just put "http://site1.com..." in front of the image.

Is there any sort of automatic way to have my image url's on site2.com point towards the folder on site1.com?

If it helps, I'm using Media Temple (gs) for hosting.


texts: When does EE apply a URL redirect to links?

texts:
I'm finding that some external links to external sites are being directed to an intermediate page ( http://www.example.com/?URL=http://www.link-destination.com ) with the "To proceed to the URL you have requested, click the link below:" line, followed by the destination URL as a link.

The links I am finding this with are being set inside a text_area field which is itself inside a Grid field. The text_area itself has formatting buttons shown (bold, italic and link only). The channel itself is set to 'Allow only safe HTML' and it has "Automatically turn URLs and email addresses into links?" set to 'No' (so links are explicitly made using the formatting button on the text_area field).

Other external links do not show this redirection behaviour, but they are created either using an Expresso field type or by simply being hardcoded into the template. Internal links of course use the {path=""} tag and so do not show this behaviour either.

I'm at a loss as to how to stop the text_area links from routing themselves through the intermediate page. It's not going to please the client if users have to click twice, once as normal then again on this transitional page.

What determines whether EE performs this redirection routine, and how can I prevent it (and have the external links go directly to their destination)?


texts: Forgot Password Email Notification not rendering {username}

texts:
I am using Profile:Edit to display the "Forgot Password"/Reset form. They work fine. I get the Notification email, but in the email I get this:

===========

Admin,

To reset your password, please go to the following page:

http://local.729beauty.com:8888/?ACT=78&resetcode=s4ss0gFz&return=profile%2Freset_password

Then log in with your username: {username}

If you do not wish to reset your password, ignore this message. It will
expire in 24 hours.

729 Beauty
http://local.729beauty.com:8888/

============

Notice that {username} does not get rendered.

I found this post: Does {name} always equal {username} in Forgotten Password template? which suggests that {name} and {username} are the same, but not so. In my case, {name} = Admin, and {username} = super_admin.

I am not sure if this is an issue with EE install or Profile:Edit. Thoughts?


texts: retrieve the value of a custom field depending on the value of a custom member field

texts:
I have a custom member field that can have a value of "1", "2" or "3"

In channel entries I need to output the value of one of three custom fields, depending the member field value.

ie : {field_{member_field}}

I've tried to put together a plugin but I'm a bit stuck in parsing order issues.

Any ideas ?


texts: Expresso Store v2: Cart ID the same as Transaction ID

texts:
How can I make the transactionID equal the orderID?

My client would like them to be the same to make it easier for them to match up.

For some reason on this latest install of Store v2.0.6 running on EE v2.7.2 the numbers are out of sinc by around 20.

The latest order came though as #62 but the transaction ID for it was #42.

Can anyone please point me in the right direction to make them the same from now on?

Thanks.


texts: Extracting category ID of an entry and then using it to display more entries

texts:
I'm wondering what the best way to do this may be. I probably haven't worded the question in the best way so I'll explain.

Basically, I have an entry on page which is assigned to a category. On the page I'd like to be able to display other entries assigned to the same category. Sort of a 'similar projects' concept. This needs to be done dynamically however.

My hunch is that I may need to use a query to first pull through the category id of the current entry being shown, then use that value in the category="" parameter.

Can anyone point me in the right direction with this

{exp:query sql="SELECT cat_id FROM exp_channel_data"}

{exp:channel:entries
 channel="projects"
 dynamic="off"
 category="{cat_id}"}

  {title}

{/exp:channel:entries}
{/exp:query}

Maybe something like this but I'm really unsure. Any help would be much appreciated


texts: Global variable as a module tag pair's parameter?

texts:
I'm trying to pass {ip_address} to a module, which isn't working:

{exp:rest url="http://domain.com/{ip_address}" verb="get" format="json"}

{/exp:rest}

The {ip_address} is getting interpreted as a string. How do I make this work?


texts: file modal, doesn't act on any search/filtering

texts:
IMPORTANT:  It turned out that this question couldn't really be answered based on the info I had provided, and it wasn't possible for me to provide enough info to make it answerable.  Tom provided the best steps for debugging this type of issue in a normal situation so I'm giving it to him, but in my case the issue being that some changes to core that are not released yet, were causing problems in the way that Secure form processing worked.  Turning of secure form processing until this issue is remedied was the solution that worked for me.

The Question:

I'm running the latest version of ExpressionEngine, and I'm a little stuck with a file field.  Oh why oh why did I enable that? The issue I'm having is with the file modal that pops up either on adding a file in a file field or the clicking the little image icon by other fields.  I can type whatever I want in the search field, or toggle the sorts, but the contents stay the same.  Likewise the pagination links don't work:

I know that there are a number of files in that folder with names that begin in 121130.  There seems to be no way to navigate around and find the file I want to add so I'm stuck.  I'd love any of three types of advice listed in order of usefulness:

How can I convert this file field back to a plain input field
without losing the path information: {filedir_11}filename ?
How can I debug this issue and figure out how to make it work?
How can I manually modify the contents of this file field entry, even directly in the database to get the file I want selected even if the file modal doesn't work?
Am I the only one having this issue?

update: I had already gone into the inspector and seen that requests were fired off to admin.php (renamed to mcp.php in my case), but I didn't exactly know what a proper query looked like.  Tom's Answer contained a helpful screenshot of what a request and response looks like.  I find that mine is making queries, but the request seems to maybe be getting redirected and losing the query in the process.  Here are some screenshots to illustrate:

Here you see that when I click into the search window it loads two images, then when I type a 1 it fires a request from jquery.js to mcp.php which then seems to get 302 redirected twice before getting a response useless to jquery:

Here is the response for that third request (the others resulted in a 302 so obviously returned nothing) As you can see it is returning html, not json.

So now the issue becomes figuring out where those redirects are coming from.  Do I need to look to Apache?  I'm not immediately seeing anything there that should be causing this, but it is possible I'm missing something.

Update 2: I thought I had this thing licked.  I went into my admin.php file and found where I had set a non https link to the control panel in the Multi-Site Manager settings.  I know I have a redirect set in apache to redirect all non ssl requests for the control panel through to ssl, so I thought that would get rid of at least one of those redirects… Result: no change.


texts: Nested conditional is not displaying content

texts:
I have a .sidebar template which is in a template shared by a few inner pages of the site. It pulls in the channel based on a preload tag on the page it is embedded in.

I have a conditional set to display certain content based on what page it's on, however no content is being displayed.

Here is the full sidebar code I have right now:

About

    {exp:channel:entries channel="{embed:chan}" limit="1" category="{embed:cat}"}
    {if sidebar_title != "" AND sidebar_description != ""}

{sidebar_title}

{sidebar_description}

    {/if}
    {embed="_includes/.sidebar-posts"}

        {if segment_1 == "blog"}

Follow me

{follow_me_blurb}

Facebook

Instagram

Twitter

Pinterest

        {/if}
        {if segment_1 != "blog"}
            {if bring_content != ""}

Bring

{bring_content}

            {/if}
            {if tip_content != ""}

Tips

{tip_content}

            {/if}
        {/if}

        Blog
        Shop &raquo;
        &laquo; Discover
        Follow

    {/exp:channel:entries}

On my main page, I embed the sidebar, and set preload at the top of my template:

{preload_replace:chan="inner_page_details"}
{preload_replace:cat="7"}

_edit: I discovered this issue happened because it wasn't reading the channel preload_replace included in the main templates. I had to hard-code the channel in, but am unable to discover a solution for the categories_


texts: Splitting search results into tabs with no results messages

texts:
We're building a search that has a tabbed results page, we have a tab for each channel, works great apart from when there's no results for a particular channel and we're struggling to find the correct way to hide the tab or display a no result message for each individual tab.

Here's the code we currently have:

Tab 1

Tab 2

 {exp:search:search_results switch="even|odd" limit="2000"}
      {if channel_short_name == "channel_name_1"}

             content here

       {/if}
 {/exp:search:search_results}

 {exp:search:search_results switch="even|odd" limit="2000"}
      {if channel_short_name == "channel_name_2"}

             content here

       {/if}
 {/exp:search:search_results}

We've tried the following:

no_results with no joy, because we're using an if channel_short_name it won't know if that specific channel has no results.

Using {count} but this again includes all search results, not channel specific ones so doesn't work.

Using a new {exp:search:search_results} tag for each tab, but seems you can't specify channel in the search tag so this doesn't work either.

Any ideas greatly appreciated!


texts:
I am trying to wrap a div () around my channel entries output every 3rd item. So

  entry1
  entry2
  entry3

  entry4
  entry5
  entry5


texts: Thumbnails missing and not automatically generating (like they did in EE1) when we updated to EE2

texts:
We had a client whose site auto-updated to EE2 which caused it to break. One problem we're having difficulty fixing is getting images to show. Issue is not at the template level. The problem is on an entry/post level. An example is the main image on the site and in order to make it show, we had to update the field holding the filename value.

Used to be multiple filenames stored together to keep different file sizes: 3REIDenverSkylineMasthead.jpg
3REIDenverSkylineMasthead_Thumb.jpg

Now to show masthead image we had to remove thumbnail image reference and update this field to: {filedir2}3REIDenverSkyline_Masthead.jpg

We’re not sure how this was done before but by uploading an image in EE1, a thumbnail was generated for it automatically in EE1.  Both images were displayed when looking at the entry/post in the UI. This doesn't seem to be the case in EE2 and even when we synched our upload destinations we continued to have the problem.

So our question is how can we get the images working in EE2 the way they were before on EE1. We don’t know how to get the filenames stored together to keep the different file sizes (main image, thumbnail etc.) like it was done before. We want to avoid trying to retrofit and make sure we’re making the images work the way they are designed to in EE2


texts:
I have two Super Search forms on a particular url: /tours on our site, the first one works fine as the result page redirects to

tours/results/search&_category=700

but the second one shows everything there is in that particular channel, and the query string is missing. The url for the second form resolves into

/tour_guides/results

Why is it that the second form only works when {segment_1} is the same as the channel being searched from? Doesn't Super Search allow you to have one channels search form in one location, and the results page sitting on another channel?


texts:
I have a custom field type that I've developed that I'm having a problem with.

If I do something like {field return="http://mysite.com/group/template/entry-url/thanks"} everything parses fine.

I'm using structure on the site too and if I use {field return="{structure:page:url}thanks"} that also works.

But if I try to use a global variable inside like {field return="{current_url}/thanks"}, the replace_tag() method does not get called and I get an output like {field return="http://mysite.com/group/template/entry-url/thanks"}

Even using an embed didn't work, the code below outputs the same as the example above

embed code

{embed="group/.field" entry_id="{entry_id}" return="{current_url}/thanks"}

In field.html

{exp:channel:entries
    disable="categories|pagination|member_data"
    entry_id="{embed:entry_id}"
}
    {field return="{embed:return}"}
{/exp:channel:entries}

I'm assuming this is some weird parse order issue, but I have no idea why it would happen. Is there a way to change when a field is parsed, or some other way to make this work?


texts: I'm getting a PHP error in the Member Profile section : Message: Undefined offset: 0 Filename: cp/myaccount.php

texts:
Message:
Undefined offset: 0
Filename: cp/myaccount.php
Line Number: 349

This is appearing at the top of the page when I go to edit a members profile via the Members tab. It's also preventing me from updating the content.

Any ideas anyone?


texts: Expresso Store - Customize the PDF Invoice

texts: I would like to add a header with the company information and logo to the top of the pdf invoice that gets generated. I would also like to eith add this as an attachment or link in the confirmation email that gets sent out after an order is complete.


texts: Using Exp:resso Store for workshop registrations

texts:
A client is looking for a lightweight e-commerce system to sell a couple digital products, as well as workshop registrations.

Exp:resso seems like a good fit, but I'm not sure how to capture each registrant's details. Would I use the 9 custom fields available to the checkout tag? Would I roll my own?

The flow essentially would be: select a workshop (product), select a quantify (number of registrants), enter their names and titles, checkout, send a receipt.

I'm aware of moreEvents but I'd like to keep this as simple and native to EE as possible.

Thanks!


texts: {exp:assets:folders} not working with parent_folder parameter set

texts:
EE version: 2.5.2
Assets version: 2.1.2

I'm using the {exp:assets:folders} tag with the parent_folder parameter set and it's not working when that parameter is set.

This is an MSM site and I'm working on the 2nd site. I can see everything just fine within the control panel.

I've setup a dedicated page to test this out so that there aren't conflicts with other add-ons.  Here's my code:

{exp:assets:folders parent_folder="{filedir_7}human-resources"}

        {folder_name}
        {if total_subfolders}

                {subfolders}

        {/if}

{/exp:assets:folders}

This code does work:

{exp:assets:folders}

        {folder_name}
        {if total_subfolders}

                {subfolders}

        {/if}

{/exp:assets:folders}

What's strange is that using the parent_folder parameter worked at one time. I've looked back at my check-ins and don't see anything that would conflict with the Assets code.

I tried some debugging by looking at the _get_folder_id_by_tagpath function in mod.assets.php. I noticed that $tagpath is passed in as http://intranet.compassoncology.com/uploads/human-resources instead of {filedir_7}human-resources. The code appears to be expecting the latter. Is there something that could have happened to cause {filedir_7} to be replaced?

Thanks for any help or direction!


texts:
Registration working but with this log in tag its not working , also checked browser network inputs both email and passwords are being passed

appreciate any help on this.

              {if logged_out}
                {exp:freemember:login return='shop/checkout'}

Returning Customer

I am a returning customer

                  E-Mail:

                  <input type="text" name="email" value="{email}" placeholder="User Email" maxlength="50" size="25">
                  {error:email}

                  Password:

                  <input class="password_input"  type="text" name="password" value="" placeholder="Your Password" maxlength="50" size="25">
                  {error:password}

<input id="" class="" type="submit" value="Log In">

                {/exp:freemember:login}
              {/if}


texts: Display cartthrob subtotal + tax + discount - shipping

texts:
On my shopping cart page I'd like to display the total (inc tax & discounts!) but not including shipping costs. I can't find a tag for this unless I'm missing something.

Any suggestions?


texts: 404 default template returning 503 header

texts:
I have to set strict urls to no, because I am using a dynamic segment_1 with category_urls.
So I have to use the default 404 error template. The 404 errors work but the pages return a 503 header and not a 404 header.

I tried inlcuding a custom 404.php instead of the

$this->log_item("404 Page Returned");
$this->EE->output->set_status_header(404);
echo '<title>404 Page Not Found</title>
Status: 404 Page Not Found
';

But it’s still a 503. Am I missing a setting? What can I do to make it actually 404?
I am on EE 2.5.5

Thanks
Philip


texts:
I'm trying to use Stash 2.1.0 on an ExpressionEngine 2.5.3 site but, strangely, I cannot get even the Simple Example found on Devot:ee to work, even on what is an otherwise blank template.

{exp:channel:entries channel="work" limit="1" dynamic="no" disable="member_data|pagination|categories"}
Expected: {title} /
{exp:stash:set name="title"}{title}{/exp:stash:set}
{/exp:channel:entries}

{!--Now you can access like this in an embedded template or later in the parse order of the same template:--}
Result: {exp:stash:get name="title"}

For troubleshooting purpose, in my {exp:channel:entries} pair I am displaying the title of that entry but the {exp:stash:set} is apparently not working.

I have confirmed the module is installed. The Github page doesn't list specific requirements but I would assume that if I can run EE 2.5.3, then whatever is on the server in terms of PHP or whatnot should support Stash as well.

Any thoughts on how to troubleshoot this? Or is there some incantation I need to utter before Stash will work?


texts: Show full shipping region name in email confirmation Expresso Store

texts: On the email confirmation in Expresso Store, can I have the full {shipping_region} name displayed rather than the three letter short code?


texts: Automatically search Amazon and create affiliate link based on entry title?

texts:
I know this is gonna sound crazy, but it is a client request.

They are wanting to know if there is an add-on available or that has been developed that will automatically search Amazon with whatever the entry title is; which is a specific product, and have it then create a specific affiliate like link within another custom field.

Client is not wanting to have to input any information themselves to search Amazon or produce this link but have EE and the Amazon API do it automatically.

Example of link is: http://www.amazon.com/dp/ASIN/?tag=YourAssociatesId

I know of this add-on: http://www.hopstudios.com/software/amazon_web_services_aws_products
But this requires the client to input info to search amazon, not do it automatically dependent of what they filled out for the entry title.

Has there been add-on developed for a specific site that possibly is available?

Thanks


texts:
I've looked at SEO Lite and NSM Better Meta.

These SEO addons come with 1 default fallback template. By "fallback" I am referring to fallback meta data that displays if there is no title, description, or keyword values saved to the entry.

I need to be able to have different fallback SEO meta on a per section basis if no SEO meta is entered for an entry. Any ideas?


texts: Search parameter to check if Assets field is (not) empty

texts:
Is it possible to check if an Assets field is empty, using the search:fieldname attribute? I cannot use the if-method within the loop, because I'm using pagination.

Thanks, in advance!
Diederik.


texts: How to multiple channel entries in single generated pdf

texts:
As per We know , shine pdf only one time parsing so that  we could not embed / stash  other channel data entries in single pdf generate.

it means , how can we generate multiple channel data without any relation between channel in single shine pdf generate?


texts: Auto populate a field? (In this case a Matrix cell)

texts:
Possible Duplicate:
  Pre-fill matrix field when creating new entry?

Is there a way to automatically populate a field with a fixed static value in the EE control panel publish page? Specifically in my case I'm looking to auto populate a cell within Matrix with a pre-determined fixed static value.

Natively or with the help of an addon.


texts: Git subtree with add-ons that have a themes folder

texts:
I've taken to installing add-ons that I have in development in separate repositories as submodules into each of my EE projects. This has worked fine for add-ons that do not have a themes folder, but I am now finally in the situation where I want to develop a module/extension that utilizes a themes folder.

I have come accross this other question for which answers suggest using symlinks to accomplish the goal. I find symlinks in git to be a scary proposition (they don't behave the same across platforms), and would prefer to have a way to do this that refers to the remote repo, not a local copy by a strict path.

Is there a way to use subtree merging to remap e.g.:

subproject/system/expressionengine/third_party/add-on-name to project/third_party/add-on-name (I use ee-master-config to remap third_party outside of the expressionengine directory, along with the templates directory)
subproject/themes/third_party/add-on-name to project/public_html/themes/third_party/add-on-name (I keep the system folder above web root)?

To clarify the setup, this is my current folder hierarchy for any given EE site:

/public_html
  /public_html/themes
  /public_html/system (contains only an index.php pointing to ../../system)
/system
/templates
/third_party

Web root is set to public_html so that executable server side code is never exposed to the wider world. In an add-on repository the folder structure is that of the default expressionengine setup, eg.:

/system
  /system/expressionengine/third_party
/themes

The trouble then is including the files from the add-on repository to different paths in an expressionengine site's hierarchy.


texts: How do I render a matrix field in search results?

texts:
When I do a simple search on my site, I am searching across three channels. One of them is an image gallery set up using Matrix. In the Matrix field for that channel there is a column called "img_caption", which is, obviously, a caption for the image.

In my search results, I try to trap which channel a search result row is coming from and display the appropriate field (as the "excerpt") using conditionals, like this:

 {if summary!=""}{exp:ce_str:ing remove_html truncate="150"}{summary}{/exp:ce_str:ing}{/if}
 {if rick_summary!=""}{exp:ce_str:ing remove_html truncate="150"}{rick_summary}{/exp:ce_str:ing}{/if}
 {if img_caption!=""}{exp:ce_str:ing remove_html truncate="150"}{img_caption}{/exp:ce_str:ing}{/if}

I do have "custom_field" set to "yes" in the search results tag:

 {exp:search:search_results switch="resultRowOne|resultRowTwo" custom_fields="yes"}

This is working for {summary} and {rick_summary} but not for {img_caption}.

I've edited a few entries in the gallery and resaved them, thinking that might be the issue. And, the img_caption column as well as the matrix field is set to be searchable.

Search is finding results from the gallery, at least based on the entry title, so I am getting results, just nothing I can use as an excerpt.

Any ideas for me?


texts:
I have this page for showing articles, and I want to have links below the article to paginate to the next and previous.

This is my code:

{exp:channel:entries channel="articles" dynamic="yes" url_title="{segment:article}" status="open|featured" paginate="bottom"}

    &lt;header class="panel__heading"&gt;

{title}

    &lt;/header&gt;

      {exp:ce_img:pair src="{article_featured_image}"}

      {/exp:ce_img:pair}

Written by {author}

<time>{entry_date format="%F %j%S %Y"}</time>

{categories}{category_name}, {/categories}

          {article_content}

   {paginate}
    {if previous_page}
     Previous Page &nbsp;
    {/if}
    {if next_page}
     Next Page
    {/if}
   {/paginate}

  {/exp:channel:entries}

For my Template Route for this template I have:

articles/{article:alpha_dash} and set Segments Required to Yes.

What am I doing wrong? No code is being displayed for the pagination.


texts: What determines an 'Abandoned cart' in CartThrob and PostMaster?

texts:
I'm using Postmaster to send notifications on a 'Cartthrob Abandonded Cart' however I have no idea how to trigger an abandoned cart to test it.

Does anyone know what steps are involved? Or what tables are checked etc?


texts: Can't output Channel Images data with Stash

texts:
I have the following template that sets values, including a set_list for a Channel Images field, but I can't get the Channel Images data to be displayed in the stash layout;

{stash:embed:layouts:page}

{exp:channel:entries
    channel="shop-pages"
    disable="{global:channel_disable_basic}"
    require_entry="yes"
}
    {exp:stash:set parse_tags="yes" parse_depth="3"}
        {stash:meta}{exp:nsm_better_meta:template entry_id="{entry_id}"}{/stash:meta}
        {stash:page_title}{title}{/stash:page_title}
        {stash:page_entry_id}{entry_id}{/stash:page_entry_id}
    {/exp:stash:set}

    {exp:stash:set_list name="images" parse_tags="yes" parse_depth="3"}
        {cf_page_heroes}
            {stash:page_hero_image}{image:url}{/stash:page_hero_image}
            {stash:page_hero_title}{image:title}{/stash:page_hero_title}
            {stash:page_hero_description}{image:description}{/stash:page_hero_description}
        {/cf_page_heroes}
    {/exp:stash:set_list}

{/exp:channel:entries}

However, I can't get the Channel Images data to be displayed in the stash layout with the following code (it simply outputs the expressionengine tags);

<h1>{exp:stash:page_title}</h1>

{exp:stash:get_list name="images"}
    {stash:page_hero_image}
    {stash:page_hero_title}
    {stash:page_hero_description}
{/exp:stash:get_list}

Can anyone advisse what might be wrong?

Thank you.


texts:
Hi guys I'm having trouble with a site I just took live. I had it running on MAMP without issues and now I'm getting errors regarding the headings_rte. This is the one that is most persistent:

Fatal error: include(): Cannot redeclare class headings_rte in /srv/www/domain.com/sys/expressionengine/modules/rte/models/rte_tool_model.php on line 155

I couldn't find anything via Google or in the EllisLab forums.


texts: hook_sessions_end causing major issues on EE 2.5.5 site

texts:
Please Please Help!

We have been running around in circles trying to resolve an issue with and old EE site, all of a sudden it just stopped working admin side, hitting memory limits (even at 1G) and hitting gateway issues.

We were on 2.5.3 and hoped the upgrade to 2.5.5 might help, we would love to get it upgraded to 2.8 + but it is just not an option due the the large amount of addons that we can't update because of all the issues!!

It's all points to Zoo Visitor, but the Zoo dev team have gone through everything and believe the issue lies within the EE core??

This old thread seems to be having the same issue:

http://ellislab.com/forums/viewthread/213888/#991232

Has anyone got any ideas thoughts on how this was fixed or could be fixed?

Has anyone experienced these issues or got ideas on how we might debug.

The issues are present on both local and live versions.

Any ideas would be greatly appreciated.

Sam


texts:
I am trying to navigate to my Field Types area in the admin and I get this error:

The website encountered an error while retrieving http://development.pixelsandcode.co.uk/pixels/index.php?S=16d12918ee792c9a1d8491483dea63565199f9fc&D=cp&C=addons_fieldtypes. It may be down for maintenance or configured incorrectly.

I've removed all the add-ons I added post installation, but I am still getting the same error.

I'm kind of new to EE, so any help would be great.


texts: Suggestion for fields to use for this type of content

texts:
I'm using EE 2.11.2, and am having trouble coming up with a good, user-friendly way to set up my fields to represent some dynamic content on a site I'm building. Can you offer a suggestion of a fieldtype to use, or some other scheme for making this content easily manageable?

So I have a channel called "Events", and two different events can have quite different 'Pricing' information. For example, here's an example of  complex pricing scheme for an event:

And here an example of a much simpler pricing scheme:

What native or Add-On fieldtype(s) could I use to make this easily manageable content for an admin?

I have considered using a Grid field, with a 'heading' column, a 'left value' column, 'right value' column, and an 'info' column, such that if the admin filled out the 'Heading' column only, a heading would display, and the template would ignore the other three columns. If they fill out left and right value, it will display the line with the dotted lines betwixt the values, and if they filled out the info field, it would output that italicized grey text and ignore the other columns... But this scheme requires the admin to learn too much to use...

Any better ideas? Is there a field or combination of fields that can accomplish this easily? Thanks!


texts: Exp:resso Store - Limit Stock not working in Store 2

texts:
My client needs to be able to manually set a product 'out of stock'. In store v1 they could do this simply by ticking the limit stock check box on the relevant product page (against the relevant product modifier). This doesn't seem to work in store 2.

We are controlling what is shown using the dynamic class options eg:

IN STOCKOUT OF STOCK

However no matter what we set in the admin, the product is being shown as 'in stock'.

Here is a grab of our admin:

Any advice much appreciated.


texts: How can I tell if a fieldtype is in use?

texts: I'm trying to clean up my EE install and there are a few third-party fieldtypes that I'm reasonably sure aren't in use. But I'd like to make sure before removing them. Is there any way to tell, other than a manual check of all fields (including all fields in grids)?


texts:
I'm working on a site that has an 'edition', like a newspaper. The URL structure looks like this:

website.dev/edition/2013-05-01

The date is the name and url title of the listing.

The edition channel links to all the content added to the website: articles, images, video, etc which all have their own listing channels. I'm using the structure module by the way.

If I view an article from an edition the url structure is like:

website.dev/article/the-name-of-the-article

If I make the other listing channels subpages of the editions, the url structure will look like this:

website.dev/edition/article/the-name-of-the-article

Basically I want it to look like this:

website.dev/edition/2013-05-01/article/the-name-of-the-article

Any advice on how to do this (Using the structure module).


texts: Need advice on setting up filter-able photo gallery

texts:
I would like to be able to setup a photo gallery on my site that can be filtered by category and subcategory.

I like the idea of using the Grid/Matrix fieldtype for each gallery so you can see all images in the gallery from the Control Panel at the same time. However, I don't see where to set a category/subcategory for every row in the Grid/Matrix field.

I thought about adding another column in the Grid/Matrix field where users could check off the appropriate categories and subcategories, but I feel like this could get really complicated/inefficient on the template side of things.

I was hoping to find a good tutorial on creating a filter-able photo gallery using ExpressionEngine but have not had any luck. I would greatly appreciate any advice on how to tackle this project!


texts: CartThrob and PayPal Website Payments Pro - Declined: Timeout processing request

texts:
I have an EE 2.7.3 site running CartThrob Pro 2.5. The site is running on a Nexcess server and we have SSL installed. We set up the gateway values for Paypal Website Payments Pro, and I have tested against the following:

sandbox with paypal sandbox testing credit card
live mode with actual paypal values and two different "real" credit cards

In all instances, we are getting the following error: "Declined: Timeout processing request"

I have verified that cURL is enabled. I also tested with the sample cart templates provided by CartThrob. We always get the same error.

Does anyone have advice on what to check or how to troubleshoot this one?

Thanks!
Tim


texts: Enforcing unique titles in a channel and streamlining relationships

texts:
I am considering migrating a nonprofit site to EE.  The existing site runs some news articles with an image and copyright attributions to the copyright holder.

I created a channel called "Copyright Holders" with no fields other than the title.
I created a channel called "News Articles" with a Channel Images field and added a Relationship field to the Copyright Holders channel.

The EE workflow for this seems really clunky.  The content creator would first have to review the list of all copyright holders to make sure the one they are adding is not on the list.  Then they would have to publish an entry in the Copyright Holders channel if there isn't already the right one.  Then, finally, they can publish their entry in "News articles".  At the end of it, if they mess up the first step we'll end up with duplicate entries in the dropdown.

If I were writing this as a PHP application it would be trivial to give the user an autocomplete field to enter the copyright holder.  After the submit, if they entered an existing (enforced-unique) field from the MySQL table then reference it; if not then create it and reference it.  This would be a simple and logical workflow for the content creator and would keep the data clean.

Is there some way to achieve the above in EE?

Or are my choices 1. live with the pain, or 2. write a custom CMS?


texts: output nested categories plus channel entries

texts:
I'm scratching my head to find the best way to output a nested category list that contains channel entries for child cats...something like this

h1 Parent Category Name

    h2 Child Category Name 1
        Channel Entry 1 in Child Category
        Channel Entry 2 in Child Category
        More Channel Entries in category....

    h2 Child Category Name 2
        More Channel Entries in Child Category.....

 h1 Parent Category Name
     .....

I'm thinking the only way to get the job done would be stash or php, but the solutions I've found so far don't do seem to handle this kind of nested category setup

any ideas?


texts: How to get results from a grid field in low search

texts:
I have the field for my grid marked as searchable and the interior fields marked searchable and added to a collection, but I can't get anything inside the grid to show up on a search... I've kept it super simple:

{exp:low_search:results
    query="{segment_3}"
    limit="10"
    paginate="bottom"
}

Both of my other collections return the right results...


texts:
I have a form that has a file field on it. I think I am missing something simple. The code for the form is as follows:

{exp:freeform:form form_name="product_support" required="customer_name|email" return="contact/thanks" notify_admin="yes" admin_notification_template="product_support" form:id="freeform" form:class="contact-form"}
<label for="support-logs">Upload error logs as a zip file</label>
<input type="file" id="support-logs" name="file1">
<button type="submit" class="submit bordered blue arrow">Submit</button>{/exp:freeform:form}

The form submits and all of the values are stored but for whatever reason the file that was specified does not get saved. I have verified that in FreeForm 4.0.10 the field exists, is assigned to the proper form and has file upload as it's type. I also verified that the location on the server exists and is set to 777.

There seemed to be more parameters with FreeForm 3.x so I was looking for those in the documents but did not see them. Perhaps I am missing things like file_upload/allowed_file_types and the like? Or maybe the CP settings have taken over this functionality.

Thoughts?

ANSWER:
Since StackExchange won't allow me to answer my question yet I'll edit here to give the answer.

Changed the input field for the file upload to a FreeForm field like so:

{freeform:field:file1 show="1"}

Works like a charm now.

Thanks!


texts: Need to upload an HTML file and display contents of DIV and nothing else

texts:
I have a case in which a client needs to be able to upload a JS and an HTML file to be displayed on a page via file upload fields.

The problem is that the HTML file that is delivered to the client is a full HTML file with headers, meta, styling.

I need to be able to have the client upload the full HTML file as they receive it, but pull out only the contents of a particular DIV to be displayed within the template/page.

<div class="CherryPickedHTMLWrapper">

How would I approach this scenario?


texts:
I'm using a Grid field (ee2.7) for a FAQ channel. The Grid has 2 column and both are Searchable.
How can I display in a Searchresult the row where the term is found. Right now it display the first row of mijn Grid field and not the one where the term is found.

Is it possible?

Francois


texts: Third segment / last_segment "success" not working?

texts:
I am attempting to display a message when the last segment equals "success"... I've done this many times before and for some reason I am having some trouble. I need an extra eye perhaps?

Below is my code. The url upon submission redirects and looks like this: http://site.dev/events/event_submission/success/

However, the third segment isn't being read by EE because {last_segment} equals "event_submission" and {segment_3} parses blank.

{exp:switchee variable="global:member_group" parse_tags="yes" parse="inward"}

    {case value="1"}
        {if last_segment == 'success'}
            Your event has been submitted. You will receive notification when your event has been approved or rejected. You can logout now or click here to create another event.
        {if:else}
        {exp:channel:form channel="events_submitted" id="publishForm" return="events/event_submission/success" json="yes" include_jquery="no"}
            "Just to test: {last_segment} {segment_3}"

Welcome back, {screen_name}!

I am sure I am just having a coding block but I cannot get it going... any tips?


texts: Start channel entries after a specified count

texts: I need to display entries starting after the third item (where the count is more than three). This must be easy to do, but I haven't found a parameter for this. I know about the {count} variable, but {if {count} > "3"}, {if count > "3"} or {if "{count}" > "3"} doesn't seem to be working.


texts: Aligning Products in Row using grid layout

texts:
Morning, fine folks! I am having a beast of time with a newly discovered issue in my layout. I've tried everything that I know to do, to no avail. I know the answer must be a simple one, but darned if I can figure it out.

I have a product page (using Exp:resso Store) that I'm attempting to update with a new design to match the rest of the website. I'm using THIS grid.css (that someone, either from here or the EE forums, povided me with), and while it works beautifully for my categories page (which has this brand new layout applied to it), it's not working for the product listings page:

.section {
    clear: both;
    padding: 0px;
    margin: 0px;
}

/*  GROUPING  ============================================================================= */

.group:before,
.group:after {
    content:"";
    display:table;
}
.group:after {
    clear:both;
}
.group {
    zoom:1; /* For IE 6/7 (trigger hasLayout) */
}

/*  GRID COLUMN SETUP   ==================================================================== */

.col2 {
    display: block;
    float:left;
    margin: 1% 0 1% 1.6%;
    text-align: center;
    background-color: #FFF;
    border-radius: .5em;
    height: 220px;
}

.col {
    display: block;
    float:left;
    margin: 1% 0 1% 1.6%;
    text-align: center;
}

.col:first-child { margin-left: 0; } /* all browsers except IE6 and lower */

/*  REMOVE MARGINS AS ALL GO FULL WIDTH AT 480 PIXELS */

@media only screen and (max-width: 480px) {
    .col {
        margin: 1% 0 1% 0%;
    }
}

/*  GRID OF FOUR   ============================================================================= */

.span_4_of_4 {
    width: 100%;
}

.span_3_of_4 {
    width: 74.6%;
}

.span_2_of_4 {
    width: 49.2%;
}

.span_1_of_4 {
    width: 23.8%;
}

/*  GO FULL WIDTH AT LESS THAN 480 PIXELS */

@media only screen and (max-width: 480px) {
    .span_4_of_4 {
        width: 100%;
    }
    .span_3_of_4 {
        width: 100%;
    }
    .span_2_of_4 {
        width: 100%;
    }
    .span_1_of_4 {
        width: 100%;
    }
}

And here is the code on the page for it:

{exp:store:search orderby="category" sort="asc"}
{exp:store:product entry_id="{entry_id}"}

{if count %  4 == 1}

{/if}

{title}

{if on_sale}
{regular_price}
{price}
Save {you_save} ({you_save_percent}%)
{if:else}
{price}
{/if}

Info/Purchase

{if count %  4 == 0 || count == total_results}

{/if}

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

I've tried adding a linear conditional, changing the image sizes, removing the RevealFX, re-arranging the code, etc. None of this changes the fact that the page (found HERE) is displaying them stacked down the page instead of in rows of 4 products per row, which is what I'm going for. As far as I can see, there's no conflicting CSS, as it would render on the category page I created, so I'm stumped for sure. Advice appreciated! :) Thanks folks!


texts: Change default_country with ajax as guest?

texts:
i want to find a solution to change the default_country of the store for guest members on the checkout page with ajax. I did an ajax submit to update the choosen country but in guest mode this happened only ones and i didn't know why. When i'm logged in as store member it work like it should.

Thanks

Peter


texts:
I'm using EE 2.4, I have a file upload field in a matrix, when I upload a file and save the entry, it works fine, but when I reopen the entry to add new files, all the previously upload files are gone.

They're still on the server, I can see them in file manager, but they're not not in the entry anymore?


texts: Multi-Site Manager / Matrix / Image not appearing

texts:
I'm assisting a colleague and for the life of me I can't understand what's happening.

SCENARIO

-Multi-site (full site and mobile version)
-Attempting to share "company information" social icons from the Full website to the Mobile site.
-Using Matrix 2.4.3 and EE 2.5.3

CODE

    {exp:channel:entries channel="company_info" limit="1" disable="categories|member_data|pagination" entry_id="2" site="default_site"}
{company_social_media}{image}{/company_social_media}
{/exp:channel:entries}

WHAT IS WORKING

We are getting the {ALT} and the {URL} but NOT the image. We were using "ed_img_sizer" and stripped that code out to just hold the {image} (as shown above) to no avail.

#

Does anyone know if this is a known bug or would a simple upgrade fix these issues? Doesn't make any sense why we would get the URL and ALT but not the IMAGE source.

Thanks for the help...


texts: 301 redirection works but status showing 302, how to fix this?

texts:
I have made redirection old url to new one using the redirection but status show the following

  302 Found

  Status:    302 Found
  Code:  302
  Date:  Thu, 27 Aug 2015 12:01:37 GMT
  Content-Type:  text/html
  Connection:    close
  Set-Cookie:    exp_tracker=a%3A1%3A%7Bi%3A0%3Bs%3A7%3A%22page404%22%3B%7D; path=/
  X-Powered-By:   PHP/5.5.9-1ubuntu4.11
  Location:  http://www.collegenews.com/
  Server:    cloudflare-nginx
  CF-RAY:    21c79f6fc727270e-FRA

How to make 302 into the 301.