texts:
I have this tag:

{exp:channel:categories show="2" style="linear" channel="foto" show_empty="no"}
     {category_name}
{/exp:channel:categories}

This results in the url: domain.com/fotografie/studio/C2
I don't want C2 to show up in the url how do I prevent this?


texts:
I'm thinking of using Exp:resso Store for my client's site, and I'm thinking of using PayPal Express Checkout as the payment gateway. Can anyone please shed some light on how these two work together?

Where do I enter my API Signature so Store can connect to PayPal?

What details do I have to send to PayPal?

Do users have to log in to a PayPal account before they can confirm their purchase?

Thanks in advance, sorry for being clueless!


texts:
On my product page I want to have a single button that combines 'add to cart' and 'checkout'. I'm finding the documentation a bit hard to follow. Currently my button looks like this and just adds the item to the cart:

<input type="submit" name="submit" value="Add To Cart" class="btn btn-primary" />


texts: Conditionals inside Channel Entries tag to determine whether a second tag is required

texts:
Current Setup

I have 5 entries in the "internal_ads" channel that rotate on the
homepage.
I have set up a category of "urgent" that has 1 entry in it.
I'm using stash to set a list of adverts, then running through the list in my template to get them to rotate.

What I want to happen

When an entry is added to the urgent category, I want that entry to be the only ad to display.

What I've tried

I currently have the following in my initial template that sets the stash list and works correctly for getting the 5 ads.

{stash:embed:layouts:homepage}

{!-- Set data for Internal Adverts --}
     {exp:stash:set_list name="internal_ads" parse_tags="yes" parse_depth="2"}
          {exp:channel:entries channel="internal_adverts" dynamic="no" orderby="random" limit="1"}
                    {stash:url_title}{url_title}{/stash:url_title}
                    {stash:advert_title}{title}{/stash:advert_title}
                    {stash:short_description}{short_description}{/stash:short_description}
                    {stash:homepage_image}{homepage_image}{/stash:homepage_image}
         {/exp:channel:entries}
     {/exp:stash:set_list}

I have tried the following using conditionals to try checking if there's an entry in the urgent category and if there isn't then set the list as before. If there is, then only use that entry. It doesn't want to work and I can't really see why.

{stash:embed:layouts:homepage}

{!-- Set data for Internal Adverts --}
    {exp:stash:set_list name="internal_ads" parse_tags="yes" parse_depth="2"}
        {exp:channel:entries channel="internal_adverts" dynamic="no" orderby="random" limit="1" category="36"}
            {if no_results}
                {/exp:channel:entries}
                {exp:channel:entries channel="internal_adverts" dynamic="no" orderby="random" limit="1"}
                    {stash:url_title}{url_title}{/stash:url_title}
                    {stash:advert_title}{title}{/stash:advert_title}
                    {stash:short_description}{short_description}{/stash:short_description}
                    {stash:homepage_image}{homepage_image}{/stash:homepage_image}
                {/exp:channel:entries}
            {if:else}
                {stash:url_title}{url_title}{/stash:url_title}
                {stash:advert_title}{title}{/stash:advert_title}
                {stash:short_description}{short_description}{/stash:short_description}
                {stash:homepage_image}{homepage_image}{/stash:homepage_image}
            {/if}
        {/exp:channel:entries}
    {/exp:stash:set_list}

Any help is greatly appreciated.


texts: How do I import images to a File Field using DataGrab?

texts:
I am importing data using DataGrab and need to be able to link image files correctly in the File field.

I tried using this for the path to the image file:

  {filedir_1}myimage.jpg

However, it doesn't work. What is the correct way to do this?

Here are the values I am uploading:

Thanks!


texts: FreeForm 4.1.3 is not showing any field types and I'm unable to create any fields or forms

texts:
I'm using the free version of FreeForm 4.1.3 and Exp Eng v2.7.3 - Build Date: 20131210. I found a similar question here on StackExchange...
Solspace Freeform Pro no field types available

I'm unable to create any fields and the default ones aren't there. I'm also unable to create any forms. When I do a submit for creating a new form I'm just sent back to the control panel home page. The page for creating new fields shows the following php warnings...

Normally I never see any problems with FreeForm. The only thing different here that I can think of is that the Exp Eng system directory is above the web root in my configuration.

A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: libraries/Freeform_fields.php
Line Number: 249

A PHP Error was encountered
Severity: Warning
Message: ksort() expects parameter 1 to be array, boolean given
Filename: libraries/Freeform_fields.php
Line Number: 254

A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: freeform/mcp.freeform.php
Line Number: 3128


texts: Google Maps for ExpressionEngine returning no results for zipcodes that exist

texts:
We are using the add-on on a German site using the following code to fetch results within 50km of the town/city or postcode searched;

{exp:gmap:search
    cache_post="false"
    channel="salons_de"
    latitude_field="cf_salons_de_latitude"
    longitude_field="cf_salons_de_longitude"
    distance_field="distance_max"
    metric="kilometers"
}
    <div class="txt"  style="float:left; margin-right:30px;">
        <input type="text" name="location" value="{if post:location}{post:location}{/if}" placeholder="Stadt oder Postleitzahl eingeben" />
        <input type="hidden" name="status" value="open" />
        <input type="hidden" name="distance_max" value="50" />
    </div>

    <input class="viewbtn3" style="float:left;" value="Suchen" type="submit">
{/exp:gmap:search}

However, it’s not returning results for 'some' zipcodes, even though I’m searching for the exact zipcode entered for an entry.

Wondered if anyone else has had experience with this? :)

Thanks.


texts: Passing on a 1% credit card fee using Expresso Store

texts:
We have a client who needs to add a 1% surcharge to online credit card orders only.

We've been fudging it via tax but that is only temporary as it won't allow us to control whether it is applied or not.

I have a feeling that we might need to manage it via Hooks but that is new territory for me. If any one has solved this problem or has some advice as to where to start I'd be grateful.

Cheers,
Sean


texts: How to setup php pointing out from webroot?

texts:
I have this line in one file that tries to locate the EE system folder. It works just fine if the folder is inside webroot. But in my case, my folder is out from webroot and I'm totally helpless what changes I need to add to this, so it can locate the folder. Help would be nice, thanks.

include_once(dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR.'mySYSTEMfolder'.DIRECTORY_SEPARATOR.'expressionengine'.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'database.php');


texts: Channel Entries pulled through to a site footer

texts:
The footer of my site needs to pull through the 6 most recent Case Studies. Here is the code, embedded in a template file for the footer of the site:

Case Studies

{exp:channel:entries channel="case_studies" limit="6"}

{title}

{/exp:channel:entries}

Nice and simple, right?

This works perfectly on my homepage and under some URLs, but not all of them. For example, when I visit http://example.com/about/latest_news it will appear, as will http://example.com/press_articles/ - but http://example.com/services doesn't.

Is there anything obvious setting or reason for this?

Thanks!


texts: Member groups different for subscriptions?

texts:
I'm migrating away from CartThrob/Subscriptions because it is essentially defunct (they terminated their Subscriptions product).

We've purchased DevDemon Subscriptions, and I'm starting to implement it.  I have a client's website that has a subscription service that offers access to various RSS feeds based on their subscription level.

I like the way the Actions are set up, but there doesn't appear to be a way to change what is done depending on the subscription?  For instance, if people subscribe to XXXX, we want to change their member group to one that allows access to a particular RSS feed page.

If they have a subscription to YYYY, we want to change their member group to a DIFFERENT group, which has access to different RSS feeds.

It unfortunately has to be done this way because third party products like iTunes can use the simple http auth to access RSS feeds, and we can set up group-based permissions for them in EE, but they can't load web pages to parse EE tags, etc.

From what I can see in Subscriptions, there's no way for us to do this, correct?  All I'd want is the ability to specify a different set of triggers for each subscription.


texts: When a Wygwam field gets loaded, the first thing you type is within <p> tags. Is it possible to make the default tag <p class="something">?


texts: What are recommended methods/tools for cloning Control Panel layouts?

texts:
I've got an MSM installation where I need to clone Control Panel 'Publish' layouts for site A to site B, for channels and corresponding field groups that have already been duplicated from site A to site B.

I've looked in to cloning the layouts directly in exp_layout_publish but, with about 100 fields in the main field group used, the minified JSON way that layouts are defined is kind of daunting.

It makes me wonder if it wouldn't be more robust just to recreate the layouts manually.

Unless, that is, anyone can suggest something better.

Does anyone have experience and advice they can offer with the following in EE 2.6.x (ideally with an MSM setup):

MX Toolbox (free): but has 2.6.x issues
Clone Layout Module (free): Kind of recommends using MX Toolbox
Blueprints ($45)

Any insights would be most welcome.


texts: Bizarre upgrade from 2.5.3 - 2.5.5 issue

texts:
I just updated EE from 2.5.3 to 2.5.5 and it shows the message below:

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

I re updated and it shows it again... and again... I checked the config file and it shows 253. I guess this is the issue? I changed it to 255 and the message went away, but I presume the upgrade was completed? The version everywhere else shows 2.5.5.


texts:
I'm using expreso store 1.6.4 , I'm setting up some promo codes and just wanted to clear something up.  I understand that if I set the Per User Limit, they must be logged in to use the code.  As this site does not use memberships, I've left that blank so logged out users can use it.

Am I correct in thinking then, that there is no use limit on the codes if the person is logged out?  That they can use the code as often as they'd like and there is no way to prevent this?

Thanks,


texts: How to encode emails contained within channel entries automatically?

texts:
I'm working on a site that will have various email addresses entered within paragraphs of text in channel entries by the client.

These email address are automatically turned into links by EE which is great, but I'm struggling to find a way to protect these email addresses from spammers.

I've heard that EE can do this but have struggled to find any information about how to set EE to do this automatically without using the 'encode' tag (which is going to be too complex for the client).

Does anyone know how to set EE to protect or encrypt email addresses contained within channel entries automatically? Or alternatively, does anyone know of any plugins that might help?

As always, any thoughts or ideas are appreciated.

Thanks in advance,

Tom


texts:
I am trying to upload MP3 files for a site running EE 4.3.8. When I upload via FTP and sync it in file manager I get the following error:

  The file type you are attempting to upload is not allowed.

Would appreciate some help on this.


texts:
So basically we need to check the pattern of a segment and if it doesn't match our patterns we go on to start our entries loop with a category (via seg2cat).

if {segment_2} is a date, it's either formatted YYYY-MM or YYYY-MM-DD, otherwise it's a string.

<?php

    $this->EE =& get_instance();
    $seg2 = $this->EE->uri->segment(2);

    $date_pattern_half = '/^[0-9]{4}-(0[1-9]|1[0-2])$/';
    $date_pattern_full = '/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/';

    if( preg_match($date_pattern_full, $seg2) || preg_match($date_pattern_half, $seg2) ) {
?>
        {exp:low_events:entries channel="calendar" date="{segment_2}"}
<?php } else { ?>
        {exp:low_events:entries channel="calendar" category="{segment_2_category_id}"}
<?php } ?>

... do stuff with entries here ...

{/exp:low_events:entries}

The error we're getting back is:

Parse error: syntax error, unexpected '}' in /server/domain/system/expressionengine/libraries/Functions.php(679) : eval()'d code on line 68

for reference, the above function in Functions.php is:

/**
 * eval()
 *
 * Evaluates a string as PHP
 *
 * @access  public
 * @param   string
 * @return  mixed
 */
function evaluate($str)
{
    return eval('?'.'>'.$str.'<?php ');
}

As for the 'line 68' val it's just a closing </ul> tag.

I should also note that when we remove the opening loops ({exp:low_events:entries}) we don't get this error.

We've tried the alternative syntax <?php else: ?> etc but we get an unexpected T_ELSE instead of the one above.


texts: Is there a way to sort Low Search results? Say I wanted to sort by {title} in ascending order. Or sort by and {age} field in descending order. Etc.


texts: How to get the Channel Form » Grid » Relations options?

texts:
I'm doing a customized Channel Form but I'm having trouble getting the options in the relations within my grid...

MENU (title)
» DISH (text on grid)
» » INGREDIENT (relationships on grid)

But in my Channel Form I have tried to load ingredients with exp:channel:entries - but it only gets the entry_id / title from the entry being updated in the form.

I can't figure out how the tag is build...

ex.:
    < select multiple name="field_id_12[rows][new_row_0][col_id_4][data][]">
        {dishes}
             {ingredients:entry_id} +
        {/dishes}
    < /select>

Anyone who has the knowledge? :-)

THX


texts: If statement parentheses not working correctly

texts:
I've got a weird issue with parentheses in an if statement. If I have the if statement on it's own then no content is shown. If, however, I place two if statements in front of it then everything works fine. See examples below:

Works

{if downloads:total_rows >= '1'}{/if}
{if section_1:total_rows == '1'}{/if}
{if (downloads:total_rows >= '1' || section_2:total_rows == '1') && section_1:total_rows == '1'}
    Content ...
{/if}

Does not work

{if (downloads:total_rows >= '1' || section_2:total_rows == '1') && section_1:total_rows == '1'}
    Content ...
{/if}

Does anyone know why this strange behaviour is occurring?

Thank you.


texts: How can I quickly create files for all of my templates?

texts: I'm working on a site with hundreds of templates that were all saved in the database. If I run a query to change "save_template_file" to "y" and then run synchronize, will that work? Any horror stories around doing this?


texts: Help repairing ObjectiveHTML Entries addon

texts:
Trying to use ObjectiveHTML's public beta addon, Entries.

The thing is that I really need this addon to work, and the developer is not answering as this is a beta version. I looked at the code and this is the problematic area:

public function assigned_to_member()
{
    $channel = $this->param('from_channel', FALSE, FALSE);
    $entries = $this->EE->entries_model->get_assigned_entries($this->param('from_field', FALSE, FALSE, TRUE), $channel, $this->param('from_author_id', $this->EE->session->userdata('member_id'), FALSE));

    if($entries->num_rows() == 0)
    {
        return $this->EE->TMPL->no_results();
    }

    $entry_ids = array();

    foreach($entries->result() as $entry)
    {
        $entry_ids[] = $entry->entry_id;
    }

    return $this->lib->entries(array(
        'channel'  => $this->param('channel', ''),
        'entry_id' => implode($entry_ids, '|'),
        'dynamic'  => 'no',
        'disable'  => 'disable="member_data|categories|category_fields|pagination"'
    ));
}

It gives me a mysql error like this:

Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND exp_channel_data.site_id = 1 AND author_id = 160' at line 4
SELECT `exp_channel_data`.`entry_id`, `author_id` FROM (`exp_channel_data`) JOIN `exp_channel_titles` ON `exp_channel_data`.`entry_id` = `exp_channel_titles`.`entry_id` WHERE exp_channel_data.channel_id = AND exp_channel_data.site_id = 1 AND author_id = 160
Filename: third_party/entries/models/entries_model.php
Line Number: 49

Here's the code referred to in that error (line 49 marked at bottom):

class Entries_model extends CI_Model {

public function __construct()
{
    parent::__construct();
}

public function get_assigned_entries($field_name = FALSE, $channel, $member_id = FALSE)
{
    if(!preg_match('/^\d*$/', $channel))
    {
        $channel = $this->channel_data->get_channel_by_name($channel)->row('channel_id');
    }

    if(!$member_id)
    {
        $member_id = $this->session->userdata('member_id');
    }

    $sql = array();

    $sql[] = 'exp_channel_data.channel_id = '.$channel;
    $sql[] = 'AND exp_channel_data.site_id = '.config_item('site_id');

    if($field_name)
    {
        $field = $this->channel_data->get_field_by_name($field_name)->row();

        if(isset($field->field_id))
        {
            $sql[] = ' AND (field_id_'.$field->field_id.' LIKE \'%'.$member_id.'|%\' OR';
            $sql[] = ' field_id_'.$field->field_id.' LIKE \'%|'.$member_id.'\' OR';
            $sql[] = ' field_id_'.$field->field_id.' LIKE \''.$member_id.'\')';
            $sql[] = ' OR exp_channel_data.channel_id = '.$channel;
            $sql[] = ' AND exp_channel_data.site_id = '.config_item('site_id');
        }
    }

    $sql[] = 'AND author_id = '.$member_id;

    $sql   = rtrim(ltrim(implode(' ', $sql), 'OR'), 'AND');

    $this->db->select('channel_data.entry_id, author_id');
    $this->db->where($sql, NULL, FALSE);
    $this->db->join('channel_titles', 'channel_data.entry_id = channel_titles.entry_id');

( HERE IS THE LINE 49 --->) return $this->db->get('channel_data');
}

I am literally down. Any idea for a solution of this thing :( ?


texts:
I'm running Freeform 4.1.3 on an EE 2.5.5 site. It is an MSM site.

I've been encountering the same issue mentioned here: Freeform only sends notifications with default template

I tried upgrading to the latest (4.1.5) and I encounter the following errors:

A PHP Error was encountered
Severity: Notice
Message: Undefined index: fingerprint
Filename: addon_builder/addon_builder.php
Line Number: 4259

http://d.pr/i/inTS

In doing some debugging this appears to be related to some

I don't have a copy of 4.1.4 to test with to see if the same issue is happening with 4.1.4. Thanks for taking a look.


texts: Detect user is coming from which country?

texts:
There are some channels in my table that will give different data which will vary with different countries.
I want to detect it at the very begining.I did see some free pulgins but are very complicated to use.

I dont want to store users ip.Just want to detect their country?

Can anybody help ?


texts:
I have a separate navigation that I want displayed on all pages that are not the home page.

I thought something link this would work but not quite:

{if segment_1}
{if:else}

Home
Allergies
About
Services
Locations
Contact

{/if}

Any help appreciated.

N


texts:
I need to display a matrix of schedule, which has the fields: day, start_time, end_time. The day field is P&T Dropdown with the following values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.

Since I cannot control what order the user enters rows in the matrix, I'd like to display the schedule in "proper" order, starting with Sunday and ending with Saturday. How do I order the matrix rows by day? If I do something like: orderby="day" sort="asc", it'll sort alphabetically.


texts: Ouput modifier tags (price) as radio buttons

texts:
I'm having a hard time understanding the documentation and outputting price modifiers as radio buttons.

Im trying to build a make shift gift card thing since store doesn't support that yet.

I want radio buttons for the fixed amounts, and then a custom text field for any custom amount. I need it to be output as radio buttons and a text field. As long as it affects the price in the cart, the rest will be fine.

Been trying with the examples fmor the docs, but even the select list is giving me trouble.

Any help is much appreciated, thanks!


texts:
I need to order blog posts by year and month so the output would be someting like...

June 2013
Blog Title 1
Blog Title 2

May 2013
Blog Title 3
Blog Title 4

December 2012
Blog Title 5

How can I achieve this. Any help most appreciated. Thanks


texts:
Is it possible to use a stash variable as a parameter further down the template.

{exp:stash:set name="logged_in_user"}{screen_name}{/exp:stash:set}

{exp:freeform:entries form_id="0" site_id="0" search:foo="{exp:stash:get name='logged_in_user'}"}

    {freeform:field:branch} <br/>{screen_name}

{/exp:freeform:entries}


texts:
We have an MSM site with five websites and CE image working correctly on all of them. We just added a new one on a subdomain, but images do not appear on the site and are not saved to the "made" directory.

Here's what we get when debugging:

CE Image debug: Base path: '/chroot/home/mydir/mysite.co.uk/html/'
CE Image debug: Source image: 'http://mysubdomain.mysite.co.uk/assets/uploads/myimagename.JPG', Fallback image: ''
CE Image debug: Regexed source: '/home/mydir/mysite.co.uk/html/teachers/assets/uploads/myimagename.JPG'
CE Image debug: The image '/chroot/home/mydir/mysite.co.uk/html/images/made/1eba60a09cddb1ec/myimagename_40_40_c1.JPG' is cached.

Base path is not correct. We've made the changes for MSM configuration on our config.php file just like we did on all previous websites but doesn't seem to be working.
However, source image url and regexed source path are correct.
But our "made" folder is empty and its path is wrong. Folder permissions seem to be correct and have been triple-checked.

We discard a template problem because we're using the same code across all the websites on the msm setup.

We're hosted at Nexcess, using EE 2.9.2 and CE Image 2.4.5.
We need to fix this to go live, so any help is most appreciated! Thanks in advance!


texts:
I am an expressionengine novice, so apologies if my question reflects that. I'm looking for a way to display images in a specified order (i.e. not by date, size, etc.), such as by ID. I've searched high and low but can't find this functionality. Is it possible??

UPDATE: user "Cheyney" helped to tease out my actual question, which was not specifying order of images within an entry (which can be done with the Move icon in the Actions column, as Cheyney describes), but rather specifying order of entries to display images on the homepage. The solution was to order the entries using "orderby" within the Channel Entries tag, as opposed to ordering images within the Channel Images tag. Thanks to Cheyney for "sorting" this out for me!


texts: Expresso Store - fixed discount if total order > x kg

texts:
Is it possible to discount a fixed amount based on the weight of the total ordered items?

I have a store which sells fruits.
Let's suppose fruit is available in different modifier_options

Oranges --product
1 kg basket --modifier (2$ per kg.)
2 kg bag --modifier (1.90$ per kg.)
4 kg barrell --modifier (1.50$ per kg.)

Eg:
The customer orders 1 basket and 2 bags, for a total of 5kg. (no discount)
The customer orders 2 baskets and 2 bags, for a total of 6kg. (1$ discount)
Same applies if:
The customer orders 1 barrell and 2 bags, for a total of 6kg. (1$ discount)

Thank you.


texts: Invalid URI being generated by transcribe

texts:
We have a static page created in which we have a bunch of links. The editor is appending the site uri automatically so it generates the wrong link.

For example: We type

...

then save it. It changes it to

...

The above of course generates the wrong url:

http://www.xyz.com/http://www.xyz.com/pt-br/

I am almost certain that it is a config issue but I have no idea what it is. I have searched and have found nothing.

Any insight would be greatly appreciated.


texts: How can i test in code if current page is the homepage

texts:
Is there a code condition that I can call to detect if the user is currently on my sites homepage.

In Wordpress (and I'm sure I will get panned for making this comparison) there is an 'is_homepage' conditional that returns true when the homepage is being viewed.

Any tips much appreciated.


texts: Set default values for radio, checkboxes, selects, etc

texts: When creating a Channel field, such as a radio field type, is there a way to specify that a certain option should be selected by default? Same question for checkboxes, select dropdowns, etc.


texts: Playa Children Entries not Displaying When Parent has Same Title as Another Entry

texts:
I have a sidebar on my website that is displaying entries using Playa, the client can create new entries for the sidebar, choose what sidebar entries they want to appear and order them however they like. This works but on pages/entries that have the same title the sidebar entries do not appear. Any ideas why?

Thanks.

Sidebar Code:

{exp:channel:entries channel="page" url_title="{embed:parent}"}
        {sidebar var_prefix="side" transcribe="disable"}

            {side:if channel_short_name == "sidebar_image_component"}

{side:image_component_header_icon_code}{side:title}

{side:image_component_text}

                    {side:image_component_link_text}

            {/side:if}

            {side:if channel_short_name == "sidebar_text_component"}

{side:text_component_header_icon_code}{side:title}

{side:text_component_text}

                    {side:text_component_link_text}

            {/side:if}

            {side:if channel_short_name == "mind_map"}

{side:title}

                    More Info

            {/side:if}

        {/sidebar}
    {/exp:channel:entries}


texts:
I have an EE2 site with a front end user login for front end 'admin' users and I need to add 2fa to this, there are no plugins available that offer this functionality, they only either; deal with the CP login, or are for a different version of EE.

What would be the best way to do this?


texts: exp:channel:form break the page if we want to show a filename

texts:
exp:channel:form problem after upgrade from EE 2.11.9 to EE 5.4: The form on EE 2 works perfect. In EE 5.4 this code part in the form for the file upload (with Assets) results in a brocken page that shows completely in white.
Image (JPG/PNG)

   <input type="file" name="cf_workshop_image" id="cf_workshop_image" value="" data-directory="4" data-show-preview="false" data-show-upload="false"/>
   <input type="hidden" name="cf_workshop_image_filedir" value="4">
   <input type="hidden" name="cf_workshop_image_hidden_file" value="{cf_workshop_image}{file_name}{/cf_workshop_image}">

It is this part for the value= that breaks the page:
{cf_workshop_image}{file_name}{/cf_workshop_image}

Do I remove it from the template the page and the form show correctly.
If I put the code to show the filename at the beginning of the form and outside of an input it does also give a white page. That means, it is not Assets that is the problem. Whitin a channel:entrie tag the filename display without a problem.
This look s like a bug. Or should I do somethingh diffent within a channel form that in EE 2?


texts: Update field content with extension when saving or editing an entry

texts:
I have created an extension which uses the entry_submission_ready hook.
It is doing some calculations which I want to add to a field in the entry.

How can I add the output of the calculations to the field when saving an entry?


texts: I need to be able to generate private links for entries that aren't visible on the front-end of the website. I guess I could just setup an alternative template that isn't linked within the website structure. The links don't need to be very secure but this still feels a bit half-baked. Has anyone setup something like this before?


texts: custom field not blank conditional issue

texts:
I've created the following conditional which is displaying 0 content:

{exp:channel:entries channel="patterns" orderby="title" status="pending|camera-ready|closed|open"}
{if oldnotes != "" }

{title}

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

I know there are a couple hundred entries with this field so I'm wondering what is wrong. It is just a text area field.


texts: Expresso Store - UPS and FedEx shipping methods and free shipping after X amount

texts:
I have found that topic Expresso Store - Add free shipping when an order's subtotal is over an certain amount? but it looks like is not relevant to current Expresso Store and UPS or FedEx shipping method add-ons.

Is there any way to deactivate or force to do not count shipping on both methods?

Thanks


texts:
Running ExpressionEngine 2.6.1 and Matrix 2.5.5

If I import/update multiple entries at once using the channel entries API, all the matrix rows inside exp_matrix_data have the same entry_id applied as the first entry that was inserted/updated.

After digging through, it's stemming from the _save method inside ft.matrix.php, the conditional in line 2376

if (empty($this->entry_id))
{
    $this->entry_id = $this->settings['entry_id'];
}

On subsequent requests, $this->entry_id is not empty, so $this->entry_id contains the previous entry_id.

I've resolved for now by updating the above code to:

if (!empty($this->settings['entry_id']))
{
    $this->entry_id = $this->settings['entry_id'];
}

That seems to have fixed the issue.


texts: CSRF Conflict Creating Form and Logout Errors

texts:
The contact form on a site I am currently developing was displaying an error when trying to submit and says the form has expired.

Based on feedback I found in various forums, the workaround I have found was to turn off CSRF protection through the config file using this code:

$config['disable_csrf_protection'] = 'y';

This fixes the form, but creates another bug that prevents users from being able to log out, causing this error: You are not authorized to perform this action.

Does anyone have a solution that will fix both problems?


texts:
My Complete website can be seen here.

I'm trying to make a playlist that plays videos. The video and thumbnail information all fill out correctly and after adding two entries all looks fine. However, I can no longer click on the appropriate thumbnail and select the video I want. The latest entry (e.g. Part 2) shows as the selected and I cannot select Part 1. Is something wrong with my tagging? The specific part I'm talking about below is the section tagged data-thumb="{sermon_thumbnail}".

Here is my code:

{exp:channel:entries channel="sermon_details" status="open" dynamic="no"}

        <div class="tp-caption   tp-resizeme fullscreenvideo tp-videolayer"
            id="slide-105-layer-3"
            data-x="0"
            data-y="0"
            data-width="['auto']"
            data-height="['auto']"
            data-transform_idle="o:1;"

            data-transform_in="s:1000;e:Power1.easeInOut;"
            data-transform_out="s:1000;s:1000;"
            data-start="1150"
            data-responsive_offset="on"

            data-vimeoid="{vimeo_id}"
            data-videoattributes="title=0&byline=0&portrait=0&api=1"
            data-videowidth="100%"
            data-videoheight="100%"
            data-videoloop="none"
            data-forceCover="1"
            data-aspectratio="16:9"
            data-autoplay="off"
            data-nextslideatend="true"
            data-volume="100"
            data-forcerewind="on"
            style="z-index: 5;"
        >

{/exp:channel:entries}


texts:
So, this seems really weird. For some reason, images are not displaying for logged in users (exception are Superusers). The website is 3 years old and I know images were showing regardless of whether a visitor was logged in or not so, this seems to be a recent issue although I don't know when this started.

After trying to disable all 3rd-party plugins and building a test template with no javascript or CSS rules, the issue still exists.

After more experimentation, I can now display images to logged in users IF I allow a member group permission to upload images in the Control Panel. None of our members groups have Control Panel access nor should they so this is not a good, permanent solution.

Any thoughts on what I should check here to fix this issue?

Thanks in advance!


texts:
I'm stuck on something that will probably be very easy to resolve but I just don't see it anymore.

I'm using low variable to create the content of a carousel slider. For each slider the information is added in a matrix row. At the end of each row I created a playa field which fetches data from two channels to retrieve their title.

The carousel works very well and the different row's are added to the carousel and I can also retrieve the title from the playa field.

Now the issue I have is that per matrix row iteration playa loops through the total row's which results in that I get all the titles on every slide of the carousel.
I would like to only get the title of the playa field defined in the matrix row of my current iteration.

It's probably a scripting error or I'm not using the tags how they should be used, so if somebody could have a peak that would be great.

Here below you'll find some screenshots.

thx,
Claudio

    {exp:low_variables:pair var="lv_hp_car"}

                {exp:ce_img:single src="{hp_car_item_img}" width="781" height="443" alt="{hp_car_item_title}" crop="yes"}

            {if hp_car_item_title != ""}

                {exp:playa:children var="playa_test" var_prefix="hpcar" }
{hpcar:title}
{/exp:playa:children}
                {if hp_car_item_type == "Exhibition"}
{hp_car_item_start_date}  -  {hp_car_item_end_date}
{/if}

{hp_car_item_intro}

{hp_car_item_credits}

            {/if}

    {/exp:low_variables:pair}


texts: Free Form issue with this form has expired

texts: I hope Free form gets this fixed quick. My issue is that the forms did work then they just stopped. We did no upgrades to any of the modules or applications. Running Freeform 4.2 and EE 2.9. All the forms are not working now. Any help would be ideal!


texts: URL title prefix - use slashes in prefix?

texts:
EE3, Channel Settings.
It allows you to specify a URL prefix, i.e. to help the user fill in this field. Nice, i can start every URL with /book/ or /album/... Good for organisation and SEO love.

However, prefixes including slashes are seen as spaces, and spaces are not allowed. Error message: This field cannot contain spaces

Am i being a dummy, is there a good reason for this, or?


texts: Coupon Code throws error when submitting

texts:
I am using Cartthrob 2.5 and EE 2.8.1 and when I use the coupon form from the docs:

{exp:cartthrob:add_coupon_form return="cart/view_cart"}
<input type="text" name="coupon_code" />
<input type="submit" name="Add Coupon" />
{/exp:cartthrob:add_coupon_form}

EE throws an error:

  The discount code you entered is not valid for any of the items in your cart.

The fields are properly mapped in the CT CP and the coupon entry is set to open without expiration date.

Any setting in CT I might have missed?

Cheers


texts: Is it necessary to hide the system folder from search robots?

texts:
Does this make any sense in a robots.txt?

User-Agent: *
Disallow: /your_system_folder

I'm guessing since the robots.txt file can be read it makes it even more dangerous to expose the system folder's name... but, is that folder hidden from bot's eyes'?


texts: One of the things we are excited about with expression engine is that watermarking images when uploading is so easy for admins. Unfortunately we have also discovered that files can only be uploaded one at a time. I know that there are plugins that can manage batch uploading but does anyone know if any of them also offer a watermarking feature as well?


texts: Channel Form javascript error when using Bootstrap

texts:
I'm using Channel Form (Safecracker) on a site which is using Bootstrap.

I'm getting this error:

  Uncaught TypeError: Cannot read property 'msie' of undefined

in this script: ACT=10&ui=core,widget,mouse,position,draggable,resizable,button,dialog,datepicker&plugin=markitup,toolbox.expose,overlay,tmpl&file=underscore,cp/date&v=1412459416&use_live_url=y

It happens even if I create form for channel that does not have any fields at all (did that for testing)

Have anyone else experienced similar issue and have a solution for it?


texts: Is there a simple up-to date Structure tutorial?

texts:
I've been trying to get my head around Structure (3.3.8) for EE2 for almost 6 hours and I keep on going around in circles. I must have missed a basic concept.

I've read the documentation, read the Structure support site and it either refers me back to documentation that is not particularly clear, or to a tutorial / guide for a much older version of Structure.

I am trying to achieve in the Structure CP list something that resembles the following :

Company Information -
             --- About
             --- Legal
             --- etc ...

Product Group A -
             Product 1
             Product 2
             Product 3 etc

Product Group B -
             Product 4
             Product 5
             Product 6 etc

I have set up a channel for 'Company Information' which comprises of entries for 'about', 'legal' etc,
I have also set up channels for Product Group A and Product Group B which have their own specific product entries.

Something is obviously not connecting in my mind as to how Structure is supposed to work.

Can anyone shed some light on this without referring back to the official Structure documentation.


texts: Freeform - getting multiple submissions per user

texts: I'm getting 2-3 submissions from the same user when they submit.. all with the same information. I can't figure out if a refresh of the page or something is doing this? Any ideas how i can stop this? i was going to use prevent duplicates on the email address, but won't this block that same user from submitting a form in the future?


texts:
I have a monthly event. I want to say "The date/time of the next event is [time]".
Lets say, the 5th of every month, from 5pm-6pm.

If it's currently January 4th, it'll say the next date is January 5th.
If it's currently January 6th, it'll say the next date is February 5th.

Additionally, I'll need to account for the day itself.

If it's currently January 5th: from 5pm to 6pm I want it to say the event is on now.
If it's currently January 5th, from 6pm onwards I want it to say the next date is February 5th.

I just don't know how to even begin using dates in conditionals, etc.
Any help would be appreciated. Thanks!

Edit:
These events aren't channel entries, they are just a known monthly date and I needed to check whether the current time is before, after or during the event.
This has been solved.


texts:
We're getting the following error:
"You are not authorized to perform this action - Reason: Secure Forms Timeout"

Every time we submit step 1 of a multi-page form. It was working fine yesterday.
We get the same error if we try to go back from step 2 to step 1, for example.

I'm attaching the form template in an html file.

Can you please help? The form is published and it should be heavily used on a trade show during this weekend! Thanks in advance!


texts: Would there be any easy way (or any issues) with allowing a customer to enter a coupon code before putting any items in his cart?


texts: Solspace Supersearch Breaking with Dash in Title

texts: When using Solspace SuperSearch I've noticed that the search will stop searching at a dash (-) in the title or any other field. For example, if I was searching for "Bar" the entry "Foo Bar" would be returned, but "Foo - Bar" would not. Is there a way to fix this without having to rewrite all the titles?


texts: How do I add an XID hash to an old addon?

texts:
I'm using an older EE2 addon that doesn't appear to have support for secure forms. Does anyone know how to add the hidden XID hash field to the form via the addon code?

I guess I'm really looking to see if there's a code snippet that would just create the hash itself that I can add within the addon file.

UPDATE: After looking more closely at the addon code, it's using the form helper so what I need is something like:

form_hidden('XID', 'xid outputted value')

which would generate the following:

<input type="hidden" name="XID" value="the xid hash">

Cheers

Jim


texts: How do you link to entries from multiple categories using the Relationship field?

texts:
The title may be misleading if not confusing, so a little explanation is in order.

I have a basic article channel that feeds content to 38 different pages on a site based on the selected categories. I include summary information for selected articles on the home page of the site using the Relationship field and include a Read More link.

The challenge I am facing is how to link that home page summary to the correct page based on the entry category.

Any guidance on this will be greatly appreciated.

Thanks.


texts: Freeform not sending with DXF / DWG but does with other extensions

texts:
The idea is that visitors can upload a DWG or DXF file using freeform. So we can make a calculation for them. But issue is, that Freeform is sending and saving the submissions while uploading PDF / DOC / JPG etc. etc. But when sending DWG / DXF it won't save and won't e-mail. It's just refreshing to it's own page.

Contacted Solspace about it, but they said i'm doing something wrong. All extensions are allowed and also uploading DWG / DXF in filemanager / assets is working fine. So it must be a issue in freeform?!

Thanks in advance!

W.

                    {exp:freeform_next:form form_id="2" return="/contact/bedankt"}

                        Naam

                        <input type="text" class="form-control" name="naam" placeholder="Uw naam"/>

                        Bedrijfsnaam

                        <input type="text" class="form-control" name="bedrijfsnaam" placeholder="Uw bedrijfsnaam"/>

                        Telefoon

                        <input type="text" class="form-control" name="telefoon" placeholder="Uw telefoonnummer"/>

                        E-mail

                        <input type="text" class="form-control" name="email" placeholder="Uw naam"/>

                        Bestand

                        {field:bestand:render_input}

                        Bericht

                        <textarea class="form-control" name="bericht" placeholder="Uw bericht" rows="6"></textarea>

                        <input type="submit" class="btn btn-danger" value="Versturen">

                {/exp:freeform_next:form}


texts:
Basically i want to know if its possible for expression engines if tag to check if a wygwam field contains images.

I know its possible to pull through just images like so:

    {my_wygwam_field images_only="yes"}
      (code for images)
    {/wygwam_field}

but what if i want to check whether that tag returns any results. I tried

{if my_wygwam_field images_only="yes"}
    {my_wygwam_field images_only="yes"}
       (image code)
    {/wygwam_field}
{/if}

but it didn't seem to work. Any suggestions


texts:
I want to restrict channel entries based on a pre_load variable, so I am doing this:

{preload_replace:entry_id_list="{exp:myplugin:get_entries}"}

{exp:channel:entries channel="mychannel" entry_id="{entry_id_list}" limit="10"}

But this doesn't display any entries..however, the variable {entry_id_list} does have a value (1|2) that matches he entry id.

Now, if I modify the line:

{preload_replace:entry_id_list="1|2"}

it starts displaying those entries. So, is there a format difference in what the plugin function returns back to the template where function is called?


texts:
I'm using Stash 2.3.6 beta. Can somebody explain why this works:

{exp:stash:set name="var1"}no{/exp:stash:set}
{exp:stash:set name="var1"}yes{/exp:stash:set}
{exp:stash:get name="var1"}

Where I get "yes" as output.

But this does not:

{exp:stash:set name="var1"}no{/exp:stash:set}
{exp:channel:entries channel="promos" limit="1"}
    {exp:stash:set name="var1" replace="yes"}yes{/exp:stash:set}
{/exp:channel:entries}
{exp:stash:get name="var1"}

Where I get "no" as output, but expect "yes".

I'm guessing it has to do with the parse order, and that channel:entries happens after everything outside of it is parsed. I looked at the parse order docs (The Template Engine), and it looks like channel:entries are processed on step 15, module and plugin tags. Not sure where Stash gets processed.

But, speaking of which, I did try adding process="end" to the get. That got me a funky looking output:  {357b280a38bad6479603b312799efcb0422985159}

Any help appreciated.


texts: Is it possible to notify the user when their status has changed on a Freeform entry?

texts:
Is there any way to send a notification to the user once the form entry status has changed? Ideally I need around 3-4 different status'.

It would need to work so that if a status is changed to More info a specified notification is sent out to the user, then the same for approved, denied etc.

Is this something that can be done with FreeForm Pro?


texts: MX Title Control - Not working with EE 2.8.0?

texts:
I've just set up a new testing environment and a brand new copy if EE 2.8 for testing new Add-Ons. After installing the latest MX Title Control (2.8.4) i can't seem to get it to work.

I've never had any problems with MX Title Control with older versions of EE.

Anyone experiencing the same problem?


texts:
I developed an extension for EE2 much earlier for parsing template to send the content to an email address. Now I am porting it for EE3 and facing problem that instead of returning parsed template content, its being outputted to browser. Here is the code:

private function _get_template($temp_id, $tdata)
{
    foreach($tdata as $key => $val){
        if(is_array($val)) unset($tdata[$key]);
    }

    $q = ee()->db->select('template_data')
                    ->from('templates')
                    ->where('template_id', $temp_id)
                    ->where('site_id', $this->site_id)
                    ->get();

    $temp = $q->row('template_data');

    if ( !class_exists('EE_Template') )
    {
        require_once APPPATH . 'libraries/Template' . EXT;
    }

    //ee()->TMPL = new EE_Template();

    $s = ee()->TMPL->parse_variables_row($temp, $tdata);

    ee()->TMPL->parse($s, FALSE, $this->site_id);

    $final_template = ee()->TMPL->final_template;

    $temp_content = ee()->TMPL->parse_globals($final_template);

    return $temp_content;
}

Could anyone please help what I am doing wrong.


texts: Should error notifications work in Forum module in EE 1.6.9?

texts:
We have a legacy site running EE 1.6.9, and the Forum module 2.1.0.  (Upgrading is not an option due to changes needed in dozens of templates.)

We have just noticed that when running the forum through EE templates, we are no longer getting the Post Submission validation error messages.  We do get them when running just through the forum templates.

We've also tried changing the theme from our custom one, to all of the other default themes, and see the same issue.

Does anyone else remember having this issue, or know of a fix?   I can't even seem to find the EE 1.x bug tracker any longer.


texts:
I've been using Structure to build EE sites for a long time, but on my biggest site I've run into a recurring Structure bug that they can't seem to reproduce or fix and it looks like I'll have no choice but to redevelop parts of the site using an alternative add-on that's more stable for me needs.

For those interested, here's the catastrophic bug I've been encountering: https://structure.tenderapp.com/discussions/problems/7616-all-entries-in-structure-managed-channel-suddenly-closed-and-all-structure-data-lost/page/1

So, is there a good alternative to Structure that would allow me to easily view managed pages in a nice Structure like page tree, and something that also provides per-page template selection and templategroup/template URL independence?


texts: Prev / Next entry with category param not working

texts:
I have used this a million times before, but for some reason I am unable to get the next and prev entry tags to work with the category param.

Here is the code I am using:

{exp:channel:next_entry channel="gallery" category="84"}
    Prev
{/exp:channel:next_entry}

{exp:channel:prev_entry channel="gallery" category="84"}
    Next
{/exp:channel:prev_entry}

As you can see, even if I hard code the category ID it still doesnt work (I normally use it with a segment).

If I remove the 'category' param it works fine.

Any ideas? Bug? I am running EE 2.7.3


texts: Display channel entry by date and limit to upcoming only

texts:
Unsure how to get this... I need to display from a gigantic list of events, sorted by start-date but only displaying 1 event that is set to happen the soonest but not already ended.

{if entry_date >= current_time}
    {title}
{/if}

The above shouldn't work because the limit applies before the loop. Any thoughts?


texts: Allowing non-Super Admin users to reset a user's password in the CP without knowing the old one

texts:
In EE2, you have to be a Super Admin to change a user's password without knowing their old password in the CP. This is very annoying when you setup up 'Client Admin' member groups as they expect to be able to do such a task for unlocked member groups.

In EE1, there was an add-on called NSM Member Password Security that allowed you to specify member groups that could reset the password without knowing the old one (something that should be part of the standard member permissions in EE, IMO).

But I can't see any such add-ons for EE2. Does anyone have a workaround for this (without giving them Super Admin access)? Or how do you deal with 'Client Admin' member groups that have permission to add/delete member accounts, but can't reset someone's password for them without knowing the old one? Use the forgot password form instead?


texts: Find channel entries with a field value greater or less than

texts:
I figured there'd be an easy way to pull entry values via a field. I'm building a site that has a basic search for a price (for property) and was hoping to do something like:

{exp:channel:entries channel="property" search="price < 200000"}
  <blah />
{exp:channel:entries}

However it seems I can only search for a value equal or not equal to a field value. Is that right or am I being particularly thick this weekend? I'm relatively new to EE, so apologies if it's a stupid question ...

Assuming I'm not being thick, are there any plug ins that would do that?

(Originally asked on StackOverflow; was suggested I asked here).


texts:
I have a ajax template and would like to query the channel to select certain entries for a drop down select. How should I modify the code below to get all the results needed.

Trying to modify the JSON feed for the following:
$productSelect = new SelectBox('What would you like to purchase?','Choose a product category');
$productSelect->addItem('Phones','phoneSelect')
              ->addItem('Notebooks','notebookSelect')
              ->addItem('Tablets','tabletSelect');

Each addItem needs to be a channel entry. Right now the EE template is not accepting the channel entry call using the modified script below...

$productSelect = new SelectBox('3. Select a Product','---');
{exp:channel:entries channel="product" category="2" dynamic="off" disable="member_data|pagination"}
$productSelect->addItem('{title}');
{/exp:channel:entries}


texts:
I am attempting to use the infinite scroll scripts located here:

http://iamjustinlong.com/blog/single/implementing_infinite_scroll_in_your_expressionengine_site/

I have followed this pretty much word for word, but it is not working and I am running out of time to get it to work.  Below is my code:

SNIPPET:

        {exp:channel:entries
            channel="blog"
            dynamic="no"
            orderby="date"
            limit="2"
            status="open|tall|regular"
            paginate_base="_embed/ajax_scroll"
        }

        {if no_results}

No Results

                    Check back soon for more blog posts.

        {/if}

                        {categories}{category_name}{/categories} / {entry_date format="%F %d, %Y"}

{title}

                {blog_excerpt}&nbsp; &nbsp; &nbsp; read more

        {paginate}

            {if next_page}See More Posts{/if}

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

BASE CODE:

{snip_ajax_scroll}

I have used console.log at different parts of the js to see if the scripts are firing and I get a message for all the blocks above except for the click function on a#next.  This seems to die.

Let me know if there are any other code items you need and thanks in advance for any help!


texts: Sidebar widget selector in pages channel using structure

texts:
The site I'm currently building has a dynamic sidebar. I want the user to make a decision about  what gets displayed in the sidebar in the channel content.

I am currently using structure, so I have a channel called pages. Under that I wish to have a tabs which allows the user to select different widget options and order them.

I also need the ability to add my own custom widgets.

I have tried the add on widgets but this seems to only allows me to set up different widget categories and i dont feel doing one for each page would make editing of the page clear to the end user.

Any thoughts on add ons or if the widgets addon can be added to the channel field options.


texts: Profile:Edit Registration returning error 'Decryption of form settings failed.'

texts:
When attempting to Register on a site, the user is getting the following error on submission of the Registration form:

The form you submitted contained the following errors:
Decryption of form settings failed.

This error occurs on a Production server after a recent move and was working on a previous server. It IS working on a local dev instance, just not on production. Running EE 2.5.5, MSM 2.1.5, Profile:Edit 1.1.1 which has all the patches mentioned in the MBR forums (https://mightybigrobot.com/forums/viewthread/9721/). Would appreciate any assistance as you can image it's a royal pain in the butt.

Thanks
Brendan


texts:
I'm using GwCategories to get all subcategories from a certain parent category (in this case, main_cat_id). Within this list, I'm adding a nested list, training_list_{cat_id}.

In my template, I can see the categories listed, but the nested list shows nothing. Now, I know that one of the subcategories has the ID 60. I replace {cat_id} in the example below by a hard-coded 60, the list does show. So I'm having a bit of a parsing issue here, I guess.

This is my (somewhat stripped) code:

{exp:stash:set_list name="categories_list" parse_tags="yes"}
    {exp:gwcode_categories custom_fields="yes" channel="channel" cat_id="{main_cat_id}" depth="2"}
        {stash:category_name}{cat_name}{/stash:category_name}
        {stash:category_id}{cat_id}{/stash:category_id}

        {exp:stash:set_list:nested name="training_list_{cat_id}" parse_tags="yes"}
            {exp:channel:entries channel="channel" dynamic="no" category="{cat_id}"}
                {stash:entry_id}{entry_id}{/stash:entry_id}
                {stash:title}{title} - {cat_id}{/stash:title}
            {/exp:channel:entries}
        {/exp:stash:set_list:nested}
    {/exp:gwcode_categories}
{/exp:stash:set_list}

Thanks!


texts: Changing base url of Freeform paginate links

texts:
Is it possible to change the base url on Freeform paginate links as it is with channel entries?

https://ellislab.com/expressionengine/user-guide/templates/pagination.html#paginate-base

I have a page that loads some Freeform entries via ajax and I need the links to point to the main page rather than the ajax one.

I can't seem to see it mentioned in the Freeform docs. At the moment I'm using jQuery to dynamically change the links, but it'd be nice to be able to specify it in the tag variables instead.


texts: Decreasing page load time with Solspace Freeform

texts:
I wanted to see if anyone had any suggestions on how to optimize the speed of Solspace Freeform.

We've noticed the template caching doesn't help as it generates random numbers in hidden tags combined with the usage of captcha there seems to be few fays to decrease page load times.

Would using CE Cache improve the performance?


texts: Selling Products world wide from Australia + Accepting Multiple Currency

texts:
I have used Expresso Store for all my carts to date, and have no experience in any other EE cart solutions, nor have I done a multi currency site before.

I can see in Expresso's documentation that they potentially have Multiple Currency in development.

My question is:

Has anyone out there delivered a shopping cart using Expression Engine which handled Multiple Currencies well along with shipping options/calculator for Australia?


texts: I just updated to Wygwams latest version and I don't see the "text align" option anymore. How do I restore it?


texts: Implement custom content on channel entries like Wordpress Shortcodes

texts:
We would like to add blocks of HTML that we have styled in channels. Similar to the functionality of a Wordpress shortcode. So if we need for example a stylized quote that has predefined html and styles, we could insert that anywhere into our channel entry.

In Wordpress if you do [my_shortcode], it can potentially spit out

hello

Or a more robust example

[quote variable="test" img="something.jpg"]

which could spit out

test

So we need to be able to have a number of different types of these and use them in any order on channel entries

Also I'm talking about the editor screen on admin when making entries for stuff like blog. So i need to input this php code or html on the rich text editor or somewhere on the editor screen.


texts: Staging & Production server settings - how to manage?

texts:
I'm currently working in a development server and have certain conditions in my templates that rely on, say, entry_id. When I migrate the site to a production server, that entry_id is bound to change.

What's an effective approach to handling these environmental variables?


texts: How to inject inline HTML tags into the "Title" field

texts:
I'm in need of a solution to have this output:

My Title &reg;

And in my template I have this:

{title}

I was thinking that I could search for all &regs; within an h1 then wrap it with the &reg; with the  tag using jQuery.

Maybe i'm looking for something to not strip HTML from the title tag? Does anyone have any other solutions?


texts: Unable to force user to input password after editing profile (Solspace User)

texts:
I am using Solspace User.

Unable to force user to input current password after modifying their profile.

Using this parameter password_required="y" or password_required="yes" takes no effect. It is not redirecting me to error page or prompting any error message

I am not logged in as Super Admin

{exp:user:edit
    group_id="5|6"
    member_id="{segment_3}"
    password_required="yes"
    required="formal_title|first_name|last_name"
    return="teachers/edit_profile/{segment_3}/success"
            error_page="teachers/error"
}

    <input type="text" name="username" value="{username}" placeholder="Email address"/>

    <select name="formal_title">
        {select_formal_title}
            <option value="{value}" {selected}>{value}</option>
        {/select_formal_title}
    </select>

    <input type="text" name="first_name" value="{first_name}" placeholder="First name"/>

    <input type="text" name="last_name" value="{last_name}" placeholder="Last name"/>

    <input type="password" name="current_password" placeholder="Current Password" />

    <input type="submit" value="Submit" />

{/exp:user:edit}

Any ideas? Appreciate for help

Thanks


texts:
Channel form css overrides my css. Ruining the consistent layout across the site.

Is it supposed to be like that? How can I have my style on the submit button for example?

Thanks,
L.


texts: How can I convert special chars into html entities

texts:
One of my matrix cells for the caption/description is set to NONE formatting. Sometimes, editors will put in quote marks which confuses my html code. How do I convert any special chars like the qoute mark to html entities? A bit like PHP's htmlspecialchars or htmlentities.

Thanks


texts: Safecracker Matrix only publishing one row, even if more are added

texts:
I am trying to use Matrix within a Safecracker field. I am able to submit entries successfully. However I can only submit one row to the custom matrix field. Even if I have added more than one row in my form and return a successful submission.

Here is the HTML, JS and appended HTML code in question.
Help is extremely appreciated. I'm under a serious time crunch and it's the last thing on my list.

HTML Code:

Add attendees

<input type="hidden" data-field="ug_reg_attendees" name="ug_reg_attendees[row_order][]" value="row_new_0">

      <input type="text" name="ug_reg_attendees[row_new_0][col_id_52]" placeholder="First Name" />

      <input type="text" name="ug_reg_attendees[row_new_0][col_id_53]" placeholder="Last Name" />

      <input type="email" name="ug_reg_attendees[row_new_0][col_id_54]" placeholder="Email Address" />

Add Attendee +

JS:

$("#add_attendee").live("click", function(e) {
   e.preventDefault();
   var $row = $(".attendee_group:eq(0)").last();
   var size = $(".attendee_group").length;
   var $clone = $row.clone().html().replace(/row_new_0/g, "row_new_"+size);
   $(".attendee_group:last").after("
"+$clone+"
");
});

Outputted code: (when at least 1 row is added)

   <input type="text" name="ug_reg_attendees[row_new_1][col_id_53]" placeholder="Last Name">

   <input type="email" name="ug_reg_attendees[row_new_1][col_id_54]" placeholder="Email Address">


texts: Solspace super search times out on specific keywords

texts:
I have a somewhat puzzling situation where Solspace Supersearch (v.2.2.3, EE v2.10.1) times out on very specific search terms. I have tried running the SQL queries corresponding to the same search terms directly from mysql command line and these return pretty quickly (and the number of results is ~30, so this shouldn't be an I/O issue). I've also tried clearing the search log, but that didn't seem to help. I did notice that CPU usage goes through the roof for these searches, mainly for httpd but also for mysql. There doesn't seem to be anything unusual about the search terms that cause the timeouts, e.g. "chili festival" (but NOT "chili peppers").

Any pointers on how I can start debugging this?

Misha


texts: How can I sort entries by ascending integers?

texts:
I am trying to use a custom field sort_order to order entries by setting the Field Content type of a Text Input to Integer.

I'm using EE2.

Expected behavior:

Entry 1 with a sort_order of 10
Entry 2 with a sort_order of 20
Entry 3 with a sort_order of 110

Actual behavior:

Entry 1 with a sort_order of 10
Entry 3 with a sort_order of 110
Entry 2 with a sort_order of 20

Channel Field:

Field Type: Text Input
Field Label: Sort Order
Short Name: sort_order
Field Options > Field Content: Integer

Template:

{exp:channel:entries channel="work" orderby="sort_order" sort="asc"}

Update

I tried creating a plugin and setting orderby like this: orderby="{exp:parse_int data={sort_order}}". Won't entry parameters always be converted to strings since they are wrapped in "?

Update

Decided to just ensure that my number strings are two digits long so they are in the correct alphabetical order e.g. 01 02 03... 99.


texts:
I would like to know about the usage of {embed:entry_id}.

It is used in case an entry_id is inside an embedded template?

There are other usages?


texts:
My markup:

I want to show the section box only if date condition matches to todays date and then further loop the li tags.If it does not then I completely want to ingore the entire box.

This is what I am doing:

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

{/exp:channel:entries}

How do I put a conditional check right above the section.In php it would have been quite easy,but in expression engine how can I do it?


texts: overrides in config.php site_url and templatefiles

texts:
I have two questions for you:

changing the settings for the site_url with
$config['site_url'] = "http://domain/"; in config.php works as expected in some places. But the paths in the channel preferences are still not affected by this override.
Shouldn they be?
How do I, in the config.php, define the the path to directory where the the templatefiles are stored?

/yours truly


texts: Not Sending notify_user email. Templates made and parameters already added?

texts:
I have a simple working contact form that emails a specific person in a company possible customer information. However, the client also wants a confirmation sent to the potential customer when the customer submits the form containing a link and some other general info so that then can return to the "thank you" url, which has some helpful information.

How do you send two different emails at the same time to two a regular email address but also the email inputed in a form?

I doesn't seem you can use {email} to email the person who submitted the form.

I know now from research that you need three items filled out to email the user that submitted the form,

user_notification_template="Employee-Relocation-Form-Thank-You-Confirmation-Email"
notify_user="yes"
user_email_field="email"

I also know that the templates need to be made. They are both made (the first one works) but I still after fiddling with this extension for hours get it to email the submitter/possible future customer. Can some find anything wrong with my form?

{exp:freeform:form
        form:id="employee-relocation-form"
        collection="Employee Relocation Form"

    user_notification_template="employee-relocation-form-thank-you-confirmation-email"
    notify_user="yes"
        user_email_field="email"

        return="www.mycompany.com/thankyou"
        admin_notify="employee@mycompany.com"
        admin_notification_template="employee-relocation-form"
    notify_admin="yes"
        }

* Indicates required field

        Name *

        <input type="text" id="name" name="name" value=""  class="validate[required] text-input">

        Email *

        <input type="email" id="email" name="email" value=""  class="validate[required,custom[email]]">

        Phone Number

        <input type="text" id="phone" name="phone" value="">

    <input id="submit" type="submit" value="Submit" >

{/exp:freeform:form}


texts: Console Error with Assets when Attempting to Index Amazon S3 folder

texts:
When I attempt to Index an Amazon S3 folder, I was getting no response. I get the bar, but no progress.

Everything works fine when I'm indexing a local folder.

So I tried doing it with the Console on while in Firefox and got the following error:

SyntaxError: missing ) in parenthetical @
{my site name}/themes/third_party/assets/scripts/assets.min.js?2.0.5:11

Safari gives a similar error:

SyntaxError: Expected token ')'

I'm using Assets 2.0.5 on EE 2.5.5

If you need other details to diagnose, let me know...

Edited to add:

Ran it in the Firebug console - Syntax Error appears to be related to a memory problem:

Fatal error: Allowed memory size of 67108864 bytes exhausted (trie

assets.js?2.0.5 (line 5618, col 6)


texts:
@bjornbjorn
Got Simple Registration and trying to use it for a front end member registration form, but getting the following error when trying to register via the form:

The form you submitted contained the following errors
group_id: You must select a valid group.

I'm using EE 3.5.10 - the member settings should allow member registrations, and it's set to require admin moderation:

The "pending" group does exist.

Please help!


texts:
I am getting the following Database error, which prevents me from even accessing the low variables module screen...

Low Variables - 2.5.0
Matrix - 2.6

  A Database Error Occurred Error Number: 1054

  Unknown column 'var_id' in 'where clause'

  SELECT row_id, col_id_74, col_id_75 FROM exp_matrix_data WHERE var_id
  = 1 ORDER BY row_order ASC

  Filename:
  /path/to/sitedomain.com/_third_party/matrix/ft.matrix.php

  Line Number: 3041

I have searched all the posts on it and nothing has yet solved my problem. Any help is very much appreciated!


texts: Zoo Visitor Update Hangs Browser But Submits Content

texts:
I have a Zoo Visitor form that populates a channel entry. All is well in that it actually submits the content. However, the strange thing is I would have no way of knowing that until I check ExpressionEngine's control panel and seeing that the edits have been made -- because the browser hangs the moment I press submit. It looks like it's perpetually loading. Then trying to go anywhere else on the site makes it super super slow.

When I close the browser and visit the form again, everything loads fast on the site. But when I make a change in the form and press enter, again, browser hangs forever even though it looks like it submitted in EE. It never goes to the /success/ page.

Help?


texts: Prev/next entry linking when using Transcribe

texts:
I'm using Transcribe and Structure to build multi-lingual sites.

I have come across an issue using the Prev and Next entry tags. I want users to be able to go to the next/prev blog posts.

If I include the standard EE tags (below) it includes all entries, from both language sites. I need to just display the entries from the Transcribe language site you are on.

{exp:channel:next_entry channel="blog" transcribe="disable"}
    Next entry: {title}
{/exp:channel:next_entry}

{exp:channel:prev_entry channel="blog" transcribe="disable"}
    Previous entry: {title}
{/exp:channel:prev_entry}

Also clicking on a prev/next link that is to a post from another language just gives me an empty screen, which you would expect as the content is specific to the other language site.

Anyone any ideas on how I can work around this issue?

Cheers
Darren


texts: What's the best way to bulk add or import categories?

texts: I'd like to import a long list of categories into ExpressionEngine and create new categories. Is there an easy way to do this, either via add-on, or some handy PHP code?


texts: CartThrob: Modify Credit Cards Listed in Gateways Field

texts:
Is it possible to modify the credit cards listed in the {gateway_fields}. Or do you have to go through and do a full custom {exp:cartthrob:checkout_form} setup?

Thanks.


texts: How can I show the error message for the _confirm field in freeform when matching_fields does not validate?

texts:
I'm trying to display an inline validation error when these two fields do not match:

 {freeform:field:email}
 {freeform:field:email_confirm}

Which outputs the following html:

 <input type="text" name="email" value="" id="freeform_email">
 <input type="text" name="email_confirm" value="" id="freeform_email_confirm">

And I have the matching_fields="email" parameter set in the freeform tag.

And I have this configured for the error messages:

 {if freeform:error:email}Please fill in your email
{/if}
 {if freeform:error:email_confirm}Confirm email does not match
{/if}

The issue is that if the fields do not match, it displays the message from the email field rather than the email_confirm field.

So if the error is because the confirm email doesn't match or isn't populated, the "Please fill in your email" message obviously doesn't make sense.

Is it possible to display the email_confirm error in this case?


texts: Playa Reverse Relationship - not working

texts:
I've looked at this question which confirms that as far as I can tell that I am doing things correctly.

I have two channels: Divisions and Zoo Visitor (members). In the zoo visitor channel I have a field "division" where the member selects the division or divisions that they belong to. Then in the divisions template I want to list the members in that division. The code I am using is below.

  {exp:channel:entries channel="divisions" limit="1" disable="categories|pagination"}

{title}

    {divisions-content}

    {exp:playa:parents channel="zoo_visitor"}
    playa field
      {title}
    {/exp:playa:parents}

  {/exp:channel:entries}

However this code is not outputting anything, not even playa field inside the playa tag pair. I've also tried adding this parameter to the playa field pair: disable="categories|category_fields|pagination" but nothing changes. I've triple checked that I'm on a page where the reverse relationship should be working.

Please advise.


texts: Building an add-on that accepts data from a custom front-end URL

texts:
My goal is to have a REST endpoint that I can push AJAX requests to, have those requests be parsed, potentially push some data into the DB via a channel, and then return a JSON status message. I don't want to have to put PHP into a template to accomplish this, and am happy to write an add-on of some sort.

Please don't suggest add-ons. I want to know how I would go about writing my own add-on to accomplish this.

My question:

From a high level, how would I start writing this add-on? Specifically, how would I route a custom URL to my add-on code? What type of add-on should I be building for this (i.e. Module, Extension, something else)?

This is something I've done a number of times with other web frameworks (including CodeIgniter), but for some reason I'm finding it very difficult to get information on how this would be done in EE.

EDIT: I've tried to make this question more clear. I'm specifically looking for advice about add-on creation. Based on my re-reading of all the EllisLab add-on docs and a lot of time searching the web, I'm starting to feel like this isn't something EE can do without an incredible amount of hacking. I'm really hoping that's not the case.


texts: EE3 Is there any simple way to implement infinite loop scrolling

texts:
Tried this tutorial not working http://iamjustinlong.com/blog/single/implementing_infinite_scroll_in_your_expressionengine_site/ when I click to next it goes to url instead of appending entries, no error on console.log.

Wondering if any one had luck on infinite loop entries lately. I have simple news channel:

  {exp:channel:entries channel="news" dynamic="no" show_future_entries="yes"}

{title}

  {/exp:channel:entries}


texts: ZooVisitor Registration issue (password confirmation)

texts:
I'm having issues with the password confirmation in Zoo Visitor Registration.
If I enter two separate passwords for the password and password_confirm fields then the user is still registered.

Any thoughts why this might be happening or how to fix?

Code sample at https://gist.github.com/cole007/5d68d989545cb5cfc45a

Cheers,

Cole


texts: Front-end filtering of entries combining multiple selections

texts:
I'm wondering how best to handle providing the user the ability to filter channel entries via the front end with the selection of multiple criteria simultaneously - kind of like some real estate sites do, only in my case, I'm looking to filter entries each of which is a cosmetic surgical case (which is mostly photo content, but there is a little bit of text associated with each as well).  The user needs the ability to filter according to procedure, male/female, weeks post-op, and possibly other filters that get added down the line.

I had been planning to have procedures as entries and cases as entries, then using Playa relationships to tie them together, but the fact that i need to be abel to offer multiple filter criteria at once (limit view to facelifts, male, 6 weeks post-op, for example) makes that a daunting task from my perspective.

Should I be looking at categories instead (I'm not a fan of categories normally)? Or should I be using a search add-on like Low search.  Very interested to hear from the EE community on what would give me the most flexible solution (not to mention which would be manageable to implement).


texts:
Updating EE 2.9.2 with A COMPLETELY NEW "template". What are some best practices for implementing a completely new design (graphical site overhaul) without taking down current site or losing current entries?

IE.. Current Sections include
Home / About / Embeds / etc...
Plus my snippets and Global Variables

Should I leave the current sections and just add ...
Home16 / About16 / Embeds16 / etc...

Or is there a better way to make the graphical overhaul. Ill be adding new channels and fields for new content as well.

Thanks.


texts:
I'm displaying a list of Packages and within those Packages are Products. The Packages channel entry has a Playa field populated by Product channel entries. So to display them I have something like this:

{packages} {!-- Playa field --}

{exp:playa:children field="packages_products"} {!-- Playa entries --}
{product 1}
{product 2}
{/exp:playa:children}

{/packages)

I have detailed descriptions for the Products that are hidden until clicked on and they expand, using Bootstrap's Collapse plugin. And the issue I'm running into is that I need each Product to have some sort of unique identifier because each Package can have one or more of the same Products.

So looking at the example below you can see that Product 2 is in both Packages. Using Bootstrap's Collapse if you click on Product 2 in Package 1 the details will expand, BUT clicking on Product 2 in Package 2 only expands Product 2 in Package 1. Essentially I need to add some sort of unique identifier to every Product that's repeated across Packages in order for Collapse to work correctly.

{packages} {!-- Package 1 --}
{exp:playa:children field="packages_products"} {!-- Playa entries for Package 1 --}
{product 1}
{product 2}
{/exp:playa:children}
{/packages)

{packages} {!-- Package 2 --}
{exp:playa:children field="packages_products"} {!-- Playa entries for Package 2 --}
{product 5}
{product 2}
{/exp:playa:children}
{/package)

Theoretically I'd be able to grab the entry_id of the Package channel entry that the Product Playa entry is in, so something like this:

{packages} {!-- Package 1 --}
{exp:playa:children field="packages_products"} {!-- Playa entries for Package 1 --}
{product 1}
{product 2-1}
{/exp:playa:children}
{/packages)

{packages} {!-- Package 2 --}
{exp:playa:children field="packages_products"} {!-- Playa entries for Package 2 --}
{product 5}
{product 2-2}
{/exp:playa:children}
{/package)

But I've tried for the last few hours and haven't figured it out. Any thoughts?

UPDATED More specific code from my template:

{films_packages_products}
{exp:playa:children field="packages_products"}

{packages_name}

{products_summary}
{!-- need a unique id for the Collapse js to target next line --}
More Info
{!-- need a unique id for the Collapse js to target next line that matches the above --}

{products_features}

{feature_bullet}

{/products_features}

{/exp:playa:children}
{/films_packages_products}


texts: Assets not uploading files or building indexes.

texts:
I am working on a site that had assets installed and working.  Then one of the other developers installed freeform and added .htaccess rules that removed the index.php and forced us to add www to the url.

I checked the upload directories in Content > File Upload Preferences and tried to run the index updates and refresh.

I get no loading bar, no spinning button, no thumbnails and the upload file button is inactive.  I checked the upload directory directory permissions and those are correct. I also tested hiding each line and then each group of lines from the .htaccess file to see if that would effect it.  No luck.

I am using EE 2.6.1 and Assets 2.1.3.  Any help would be greatly appreciated.

I am using


texts: Possible to upload to S3 when using Assets field in channel form as file input?

texts:
Within a channel form, I'm using an Assets field that points to an S3 external source. I'm using the <input type="file" name="assets_field_name"> method (from http://docs.pixelandtonic.com/assets/templating/channel_form.html). When I submit the form, the entry is created, but the image is not uploaded. If I use the {field:assets_field_name} method, the image is uploaded, however I need to maintain my form's visual style, so I can't use this method.

The S3 credentials are valid, and I'm able to upload and manage photos from the backend.

Using the <input type="file" name="assets_field_name"> method, is it possible to upload directly to S3 from a channel form?


texts:
Recently upgrade a site to 2.9.2 and Freeform 4.2.1 PHP 5.3.28 and all is going well until we spotted this oddity.

The Notifications templates setup for the customer and admin emails use this:

{attachments} {filename} {/attachments}

This used to link back to the file but now for some reason it's encoding the URL

*CURRENT*
http%3A%2F%2Fwww.example.com.au%2Fmedia%2Fpublic_submissions%2FCIM%2Fmyfilename.jpg

*OLD*
http://www.example.com.au/media/public_submissions/CIM/myfilename.jpg

I've no idea what could be causing this, I tried a simple {exp:freeform:entries} tag and it did spit out the filename but no full URL so I cant even test where the fault is.

Seriously, I'm looking for a needle in a haystack here any help greatly appreciated.


texts: Conditional based on the age of an entry

texts:
I want to embed a template if the entry_date of an entry is less than a certain age, and display something else otherwise.  Is there a good way to do this natively?  With addons?  I tried the timespan plugin, but the documentation seems to halfway be for a previous version of the app that was named differently, and none of it seems to actually work.

In my specific case I want to embed the template if the entry is less than 3 years old, but otherwise display a message that we don't provide this information for old entries.

I think the most common useful case for this is a contact form (or comment field though there are addons for expiring comments) for each entry in a channel and you start to get hammered with spam on old entries.


texts:
I have this code:

  {categories}{category_name}, {/categories}

Outputting in a Entries Tag Pair.

I would like to remove the comma from the last outputted category only. I am thinking an IF statement but am not really sure what would be appropriate for this.

Any help would be much appreciated.


texts: Limiting Playa results in loop for use in slider

texts:
I want to output my Playa relationship entries into a slideshow. The relationships are linked to a channel field that has one image per listing. The tricky thing is that I want to output 5 images per row for use in the slideshow. Any advice on how I could do this? I've posted my code below, in which all the entries are returned (All images are being spit out in one slide).

 div"
        >
        {exp:channel:entries channel="home" dynamic="off" disable="categories|category_fields|member_data|pagination"}

                    {exp:playa:children}

                    {/exp:playa:children}

        {/exp:channel:entries}


texts: How can I capture site wide poll data to use later on

texts:
I have a client who wants what they call a 'Business Needs Survey Form' implemented into the site. The form will ask a series of around 30 business questions and once completed it will send off an email to sales team, and the user themself.

A subset of those 30 questions (Simple Needs Questions form (I did not come up with that name)) will be assigned to different areas of the site in order to entice the user to go and fill out the full Business Needs Survey.

The simple needs questions will have a simple yes or no answer option, which when chosen will reveal an answer that links off to one or more of the clients products or the full survey. Those answers need to be progressively captured as the user flows through the site.
With me so far? Cool. Here comes the question.

How is the best way to attack this?

My initial thinking was to:

Set up a channel to hold the questions and 2 different answers (one for yes one for no)
Use playa to allocate the questions to the different pages throughout the site
and possibly—this is where I'm stuck—capture the responses using safecracker to another channel which can then be pulled out when the user is ready.

NOTE: The user of the site will not be logged in, or have membership of any sorts.

Is this a good idea?
Has anybody done anything like this before, or are there any addons out there that service this type of requirement?

I'm really unsure on how to capture and store that data site wide.

Any help would be appreciated.
Cheers
Dan


texts: search:form require_all parameter is not returning the results as expected

texts:
According to Low Search's documentation on inclusive values:
I should be able to have the AND operator enabled when searching fields.
So I'm trying to filter my choices from a grid field column:
atttributen:waarde
This grid can have many rows and with low_search I want to be able to search for entries which have all the values which I have selected in my low_search:form
In my low_search form I've added this input:
<input type="hidden" name="require_all" value="search:attributen:waarde">

And have several inputs like this:
< input
    class="form-check-input filter"
    name='search:attributen:waarde[]'
    type="checkbox"
    value='xxxx_val_1'>
<input
    class="form-check-input filter"
    name='search:attributen:waarde[]'
    type="checkbox"
    value='xxxx_val_2'>

But strangely enough I'm experiencing different kind of behaviour when getting the results.
The below query string is being created automatically from the form submit, which I've managed to create with an ajax call:
ajax-results?search:attributen:waarde=xxxx_val_1|xxxx_val_2&require_all=search:attributen:waarde

but the above gives an empty result, whereas when I manually change the query to
ajax-results?search:attributen:waarde=xxxx_val_1&&xxxx_val_2 then the resultspage DOES give me results.
According to the documentation, the first query should return the same results as the second query.
When I don't use the require_all parameter, then I get results of entries with the OR (|) operator, but I'm actually trying to achieve to get entries which have specifically BOTH of the values inside the grid column.
Does anybody have an idea what I'm missing here?
Thanks in advance!
Using EE 5.3.2, LowSearch 6.2.1


texts: Display results in Low Search which have value in custom_field_1 OR custom_field_2

texts:
I have a Low Search results page where I want to filter the results based on the presence of a value in one or more custom fields. In this case I am searching across two collections and I want to filter the results to only include entries where custom_field_1 OR custom_field_2 have a positive integer value.

{exp:low_search:results search:custom_field_1=">0" search:custom_field_2=">0" query="{segment_3}"}

However of course the tag above will only return entries where both fields are a positive integer, not one or the other.

The reason for doing this? I've populated an integer field in each of the channels I'm using with Expresso Store with a 1 or 0 using a custom extension that checks if a price is set. I thought this might be a neat way to be able to leverage Low Search with Store entries but alas, because I have multiple store channels I'm stumped at the last hurdle! Any ideas?


texts: Channel form does not set Structure URL title

texts:
When I submit an entry through my Channel Form, the regular old URL Title is being populated correctly, but there is no entry for Structure URL Title. Aren't these two things supposed to synchronize automatically when a new entry is created? How do I fix it?

Everything works fine when I add an entry from the control panel. The problem occurs when the Channel Form is used.

I'm using:

EE 2.9.2
Structure v3.3.18

Update to add channel form code:

{layout="layouts/.my-layout" title="" section="{segment_1}"}

{!-- Insert form here --}
{exp:channel:form
channel="mychannel"
return="/{freebie_1}/{freebie_2}/{freebie_3}/{freebie_4}/thank-you"
logged_out_member_id="2"
error_validation="inline"
secure_action="yes"
}

First Name
    <input type="text" name="post_first_name" id="post_first_name" required />

{if error:post_first_name}{error:post_first_name}{/if}

Last Name
    <input type="text" name="post_last_name" id="post_last_name" required />

{if error:post_last_name}{error:post_last_name}{/if}

Email Address
    <input type="email" name="post_email" id="post_email" required />

{if error:post_email}{error:post_email}{/if}

Post Title
    <input type="text" name="title" id="title" value="{title}" size="50" maxlength="100" onkeyup="liveUrlTitle();" required />

{if error:title}{error:title}{/if}

Category
<select name="category[]" id="categories">
  <option value="">**Select**</option>
  {categories}
    <option value="{category_id}"{selected}>{category_name}</option>
  {/categories}
</select>

{label:post_body}
    {field:post_body}

{if error:post_body}{error:post_body}{/if}

<input type="submit" value="Submit" class="button small radius" />

{/exp:channel:form}


texts: pagination gets This webpage is not available

texts:
I am totally lost.

So pagination is something i have used many times except this time it gives an "This webpage is not available" ?

i stripped down everything to the minimum and this is the code

EDIT
    {exp:channel:entries channel="blog" limit="1" }
        {title}

    {paginate}

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

  {/paginate}

 {/exp:channel:entries}

If i remove {pagination} it works perfect, the moment i add pagination it's all gone!

What is it that i'm doing wrong?

Extra module that i have added lately is the publisher , but i'm not sure that is even related.


texts: Control Panel : Hide/show channel fields in channel with custom JS

texts:
Is it possible to control if fields could be shown or hidden in the control panel channel publish/edit form depending on whether an options was selected or a value inputted?

For example if I had an input for 'first name' and a user types in that input the 'last name' input would show.

I am thinking this would be be controlled by some JS I have been able to add somewhere. Each channel would have its own JS script.

My thinking behind this is so user don't complete fields they don't need to and then it requires less conditionals in the templates.


texts: Dynamically switch between includes - how?

texts:
I have two includes - one which essentially displays a tab with a date, and another which has two tabs with two dates. Basically: Includes/include_one & Includes/include_two.

All working fine but these are needed to be dynamic and choosable from the CP by the user who is not able to edit the templates to change this.

How would you go about this?


texts: Managing multiple columns in the Grid field

texts: I need to set up a Grid field with several columns – perhaps 5 or more. When this field is presented in the Publishing page the columns get very narrow unless the user has a very wide browser window (which of course cannot be assumed). Does anybody know of an add-on or some other way to alleviate this issue – perhaps something that lets columns be sized in pixels rather than percentages and allows the Grid field scroll sideways on the publishing page, the same way it does when it is being defined?


texts: Duplicate screen names with Profile:Edit

texts: During registration the {exp:profile:register} tag checks for duplicate screen names, however when editing an existing profile with the {exp:profile:edit} tag it does not appear to check for duplicates therefore letting me create duplicate screen names. Does anyone know if this is a bug or working as expected. I have tested this with the default Profile:Edit templates.


texts:
How can you control the pagination URL and change this:

http://example.com/blog/P#

to this:

http://example.com/blog/page-#

? Any help appreciated.


texts: Expresso Store Free Shipping showing $0.00 in paypal

texts:
If a product has FREE SHIPPING checked WHY does paypal show a line item for shipping UPS $0.00

I even tried hiding the shipping in the checkout but something is still being set to paypal..

{if shipping_method && order_shipping_val != 0}


texts: How to make home page redirect to 404 error page when query string is added to URL

texts:
A client has put their website through some QA testing, and one of the items of feedback is that the home page of the site doesn't generate a 404 error when a query string is added to the home page URL, e.g. http://mywebsite.com/?dfdfdfd=dfdfdfd&dfdfdfd This only seems to affect the home page.

Is it possible to make a URL like this go to a 404 page, instead of loading the home page? If so, how?

I hoped to use the redirect tag and to redirect the home page to a 404 page if segment_1 wasn't blank, but that doesn't work as EE doesn't seem to see the query string with segment conditionals (as expected).

I'm using strict URLs and have my 404 page setup correctly. Going to http://mywebsite.com/anythingsdfdd generates a 404 as expected. So it's just the query string URLs  on the home page that I'm having issues with. Thanks in advance for any help.


texts:
I am trying to load entries based on a date range that is selected by the user. On the front end of the site I have two input fields, the start day and end day of the date range. In the control panel, I have a custom date field (shipping_date), which is the field that will be compared to the inputted range.

What I would like is to pass those two dates inputted by the user into the channel entries tag in order to limit the entries to only ones where the shipping_date field is between the inputted date range. There are hundreds (if not thousands) of entries so I do not want to load all of them and then do the sorting on the front end.

So I guess my question is two fold:

Can ExpressionEngine out of the box limit entries by a date range based on a custom date field? So far my research says this is not possible without an add-on  (Low Search seems to be able to handle custom field date ranges)
How do I pass inputted data from the user into either the channel entries tag or a plugin's tag?

Thank you in advance for any help!


texts:
I have three templates, and three routes in my template group as follows:

courses
-- index (landing page)
-- filtered (filtered listing)
-- details (course details)

And I want to have the following relevant url structure:

/courses/

/courses/type/undergraduate/

/courses/type/undergraduate/course_name/

And I have set the following routes:

template group/template == route

courses/index == nothing in here

courses/filtered == /courses/{filter:alpha_dash}/{filter2:alpha_dash}

courses/details == /courses/{filter:alpha_dash}/{filter2:alpha_dash}/art/

both 'filtered' and 'details' have segments required.

so.....

/courses

gives me courses landing page no probs, I would expect that, reading from the index template as default behaviour.

/courses/type/undergraduate

gives me back the filtered course type filtered to 'type', 'undergraduate' which is read from the filtered template.

/courses/type/undergraduate/art

gives me back course details for art, reading from the details template, as I expect.

But the problem comes when I put this into my route, adding the course name as the trigger to dynamically shift the the details template as I would expect (as opposed to the hard-coded value 'art'):

/courses/{filter:alpha_dash}/{filter2:alpha_dash}/{coursename:alpha_dash}

When I refresh this: /courses/type/undergraduate/art

I get the following error, plus my template reverts back the initial landing template of the index in the group.

A PHP Error was encountered

Severity: Warning
Message: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 166
Filename: libraries/Template_router.php
Line Number: 56

So am I missing the point of routes, or is there some bug in the machine here?

EE version 2.9.0 is the flavour I am playing with.


texts: Does Cartthrob Gift Certificates exist anymore?

texts: Does this plugin exist? If not, does anyone know of any alternatives besides coding our own?


texts: Cart throb only allow one item on checkout

texts: In Cartthrob I would like to only allow the user to purchase one product on checkout. If a new product is added to the cart it replaces the one already in the cart. Any suggestions?


texts:
Based on the documentation, here is the signature for the method that inserts a new entry or update an existing one.

ee()->api_channel_entries->save_entry($data, $channel_id, $entry_id, $autosave);

My question is that, what should be the contents for $data?

Say for example I have Channel A which has only one custom field, "foo"

Do I do this?

$data = array (
    'title' => 'bar',
    'url_title' => 'bar'
    'foo' => 'bar'
);

or this?

$data = array (
    'title' => 'bar',
    'url_title' => 'bar'
    'field_id_<field id of foo>' => 'bar'
);

Or is the contents of $data should be something else entirely? Do I need to input required field?


texts:
In channel entries tag I have something like this

{if category =="39|50|51"}
   do this
{if:else}
   do that
{/if}

if statement is not working. I do not get it why. there are no variables for channel entries so I presume that is part of the problem. But how to do it then? How to check if entry has category to display one message, if it has another display something else

Edit with full tag:

{exp:channel:entries channel="katalog" limit="12" dynamic="yes" status="open" show_future_entries="no" orderby="date" sort="desc" disable="member_data" pagination="bottom"}

{if category =="39|50|51"}

{exp:channel_images:images entry_id="{entry_id}" channel="katalog" limit="1" cover_only="yes"}
show image

{if image:no_images}
show alternative image that says NO IMAGE found
{/if}
{/exp:channel_images:images}

{if:else}
show something completely else for entries that are not in category 39, 50 or 51
{/if}

{/exp:channel:entries}