texts:
I am working on an Expressionengine site at the moment, the client would like the ability to choose if there's a custom phone number in the sidebar of the page and if non is entered it just shows the default GV phone number. I have added the channel fields to each page and written a conditional statement but can't get it to work. My statement looks like this;

  {if get_in_touch_jobs_phone}

{get_in_touch_jobs_phone}

  {if:elseif get_in_touch_media_phone}

{get_in_touch_media_phone}

  {if:elseif get_in_touch_pages_phone}

{get_in_touch_pages_phone}

  {if:elseif get_in_touch_staff_phone}

{get_in_touch_staff_phone}

  {if:elseif get_in_touch_volunteering_phone}

{get_in_touch_volunteering_phone}

  {if:else}

{gv-global-telephone}

  {/if}

I'm trying to make the statement go through each pages custom phone field and check if it is there, if not it should move to the next statement and check if anything's there until it reaches the 'catch-all' else of using the global phone number.

For some reason this code always outputs the global phone number even if the custom phone field has been filled out, so I presume my elseif's syntax is not quite right, could anybody give me some advice/pointers as what I can do to get this working?

EDIT: I have now got this code which is working much closer to what I am looking for.

Certain pages won't take the custom numbers entered and will just show the global number even if there is a custom number set on a page, here is the code at the moment;

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

      {if get_in_touch_jobs_phone}

{get_in_touch_jobs_phone}

      {if:elseif get_in_touch_media_phone}

{get_in_touch_media_phone}

      {if:elseif get_in_touch_pages_phone}

{get_in_touch_pages_phone}

      {if:elseif get_in_touch_staff_phone}

{get_in_touch_staff_phone}

      {if:elseif get_in_touch_volunteering_phone}

{get_in_touch_volunteering_phone}

      {if:else}

{gv-global-telephone}

      {/if}

  {/exp:channel:entries}


texts:
I've upgraded to EE 2.7.0 from 2.5.5. I've now noticed a change in how form submissions are handled. In the past I could make a channel entry and then go back with the back button and save that entry again for a new post. This was very useful when making a lot of similar entries. However, this no longer works. If I go back after submitting an entry and then try resaving it, I am redirected to the CP home page.

Is this an intended change and if so is there any way to get back the previous behaviour, via add-ons or settings?


texts: Can I reference a relationship to a relationship?

texts:
I have a channel, Events. Sometimes there's an event that's repeating, and I don't want my content authors to do that all over again. So I have another channel, Events Repeating, which has a Relationship field back to Events and a Date/Time field (Low Events), so it only takes defining those two fields (which event and when) to essentially duplicate an event.

So any time somebody looks at the Events calendar, they see both Events and Events Repeating entries. Works great.

There's just one field that I'm having trouble with: Contact, which is a Relationship field in Events to my Profiles channel. When referencing this from Events Repeating, that means a relationship to a relationship.

In Events Repeating, my Relationship field to Events is called "Event"; in Events, my Relationship field to Profiles is "Contact".

Thus, I tried: event:contact:first_name, to no avail. Is this supported? Or should I try something else?


texts: Front-end URL for Assets file download that is above root, should this work?

texts:
I have a file upload directory above root in a folder called "secure_files". I can successfully upload files to this directory from within my Assets field. The file upload directory is setup like below...

Server Path to Upload Directory: /Users/mlohrman/Sites/secure_files/

URL of Upload Directory: ../

here's my template code..."file_upload_matrix" is my matrix field. "files" is the column with the Assets field in it. This successfully displays the files on the front end.

    {file_upload_matrix}
    {filename}
    {files}
    {title}
    {/files}
    {/file_upload_matrix}

The URL on the front-end is "../file.pdf". So when I'm on this page "http://site.com/departments/marketing/files/" it's trying to find the file at "http://site.com/departments/file.pdf".

Now I've done something similar using DevDemon Channel Files and had the same file upload settings and that plugin has a built in obfuscated links feature. I'm not sure what's happening behind the scenes, but setting the file URL to obfuscated would allow a person on the front-end to download that file that was sitting in the folder above root. I know Assets doesn't have the obfuscated link feature, but I thought I could try Link Vault plugin to do that for me. But I'm not positive the URL is correct now to pass to Link Vault. Any thoughts?


texts: problem with publish_form_entry_data expressionengine hook

texts:
I'm trying to develop an expressionengine extension which uses "publish_form_entry_data" hook to change some default features such as customized datepicker , etc. problem is it works perfectly in the publish new entry form , but when I tried to edit my existing entries it redirect me to the publish new entry page , and won't get me to edit entry page with the entry values for editing!
is there any other hooks for this purpose? or should I pass some info for editing existing entries?

here is the code for activating the extension :

function activate_extension() {
    $hooks = array(
        'publish_form_entry_data'   =>  'main',
        'update_multi_entries_start' =>  'main',
        'entry_submission_start'    =>  'dataProcess'
    );
    foreach($hooks as $hook => $method){
        $data = array(
            'class'    => __CLASS__,
            'method'   => $method,
            'hook'     => $hook,
            'priority' => 10,
            'version'  => $this->version,
            'enabled'  => 'y'
        );
        $this->EE->db->insert('extensions', $data);
    }

}

and here is the method for the publish_form_entry_data hook :

function main(){
    $this->persianDatePicker();
}


texts:
I am using {exp:profile:edit} to edit users account details and I have added a Grid Field type to store custom data. In my scenario I do not display the data from the Grid fields in the edit form and every time I edit my details the data in the grid field is wiped.

Does anyone know if this is the correct behaviour for Profile:Edit? I know the updated Channel Forms tag states specifically "Edit existing entries, and only edit the fields you need. Fields not in your form will be left intact." but I can't find anything in the ProfileEdit docs about this.


texts: Passing in vars for use in conditionals in Low Variables

texts:
Is there a simple way to create a custom conditional a bit like this:

In the template:

{exp:low_variables:single var="footer" foo="bar"}

In the variable:

   {if foo == "bar"}
      Show something here
   {/if}

I've played around with preload_replace a bit but no joy so far


texts: Passing dynamic parameters to exp:channel:entries

texts:
I'm not sure why I can't get this to work.

I have a custom member field called local_tunnel. I can retrieve that value no problem with either Solspace User which I have installed or the native EE tags.

However if I try and pass in either of those as a parameter for channel entries tag I get no results, not even the no_results tag is evaluating. I've tried hard coding a value and that works.

                    {exp:user:stats}{member_tunnel}{/exp:user:stats}
                    {exp:member:custom_profile_data}{member_tunnel}{/exp:member:custom_profile_data}
                        {exp:stash:parse process="end"}
                        {exp:channel:entries
                                channel="tunnels"
                                entry_id="{exp:member:custom_profile_data}{member_tunnel}{/exp:member:custom_profile_data}"
                                limit="1"
                                disable="categories|category_fields|pagination"
                            }
                            {title}
                            {if no_results}

No Results

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


texts:
I've got quite a bizarre setup to get the most recent "Rated" entries (Via Solspace Rating Module) and output the related Product & Video to that entry (Which is handled via Playa)

{exp:rating:entries
    collection="Video Reviews"
    orderby="rating_date"
    sort="desc"
    limit="1"
    dynamic="no"
}

    {exp:channel:entries channel="entry_video" orderby="date" limit="1" dynamic="off" entry_id="{entry_id}"}

        {title}

        {cf_video_related_products limit="1"}
            {title}
        {/cf_video_related_products}

        {cf_video_related_video limit="1"}
            {title}
        {/cf_video_related_video}

    {/exp:channel:entries}

{/exp:rating:entries}

Now when I run this, it works... Except I get something like this:

  Rating Title
  Rating Title
  Rating Title

When really I want it to be:

  Rating Title
  Product Title
  Video Title

Now I know what's happening... There is multiple title tags and it's possibly pulling the {title} from the Rating module or the Channel Entries loop for every {title} var.

I thought of changing this, so i use the var_prefix parameter supplied by Playa, but this doesn't work:

{exp:rating:entries
    collection="Video Reviews"
    orderby="rating_date"
    sort="desc"
    limit="1"
    dynamic="no"
}

    {exp:channel:entries channel="entry_video" orderby="date" limit="1" dynamic="off" entry_id="{entry_id}"}

        {title}

        {cf_video_related_products limit="1"}
            {title}
        {/cf_video_related_products}

        {exp:playa:children field="cf_video_related_products" limit="1" var_prefix="product"}
            {product:title}
        {/exp:playa:children}

        {exp:playa:children field="cf_video_related_video" limit="1" var_prefix="video"}
            {video:title}
        {/exp:playa:children}

    {/exp:channel:entries}

{/exp:rating:entries}

But all this does is output:

  {product:title}
  {video:title}

Am I doing something wrong? I've tried parse="inward" but that doesn't help neither. Because I thought it might of been the parse order causing this.


texts: Attachment not sending with outgoing email when using System Utilities>Communicate

texts:
I am using EE 5.3.2 and have set up Mailgun SMTP in the settings. When I send an email through the Communicate utility, the email sends just fine, but if I try to add an attachment to the email, the attachment fails to send. I have tested using SMTP, sendmail, and PHP Mail in the Outgoing email settings, and in all cases, the email will send but the attachment does not get attached. I want to be able to send an email with attachment to email addresses or user groups, which the communicate page seems like it should work for, except the attachment issue. Has anyone run into this/solved it?

Thanks!


texts:
I am using new relic to watch my EE install and am seeing a ton of slowness around this call.

I am also using http://devot-ee.com/add-ons/custom-system-messages  - and am not sure if the issue is coming from that plugin or the EE system messages.

Has anyone seen this before?

System_messages_ext::extend_output_class


texts: Auto submitting Freeform form not working

texts:
As a replacement for MX Notify Control, which is not available for EE3, I thought I would try passing a Visitor registration form's data to a Freeform Pro form, so I could use Freeform's notifications to notify site admins of registrations.

I'm submitting the registration form to a template that has a Freeform form surrounded by channel entry tags, which fills the form data. It all works great if I manually submit the form, but I want this to be a hidden form that auto submits to the registration thank you page. I'm using the same auto submit code that I've used elsewhere, but it does not seem to work with Freeform.

I tried removing the surrounding channel entry tags, and made a standard Freeform form, but that didn't auto submit either. I've also tried moving the script to the bottom of the page.

I've tested other auto submit scripts as well, and can't get one to work here.

Could someone take a look at my code and see what the problem is? or what would be an alternative method that would work.

My full template code is:

<!doctype html>
<html lang="en">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
$(document).ready(function(){
     $("#admin_form").submit();
});
</script>
</head>
<body>
{exp:channel:entries
  channel="zoo_visitor"
  entry_id="{visitor_id}"
  status="not closed"
  }
    {exp:freeform:form form_name="new_admin" return="/admins/admin-pending"}
        <input type="hidden" name="first_name" value="{member_firstname} {member_lastname}"/>
        <input type="hidden" name="admin_district" value="{district:label}"/>
        <input type="hidden" name="school" value="{school}"/>
        <input type="hidden" name="admin_adult_type" value="{zv_adult_type}"/>
        <input type="hidden" name="email" value="{email}"/>
        <input type="hidden" name="phone" value="{phone_number}"/>
        <input type="hidden" name="review_bylaws" value="{review_bylaws}"/>

    {/exp:freeform:form}
{/exp:channel:entries}

</body>
</html>

Thank you.


texts: Search Entries for Keyword in Control Panel not working

texts:
Using version 2.7.3, when I try to use the Keywords field in the Edit/Search Entries box, I just get a spinning activity indicator, but never any search results.

I am able to use the drop down filters, such as Channel, Category, and Status.


texts:
Excuse my template tagging if is looks confusing. I am fairly new to ExpressionEngine and using categories is my latest adventure.

On this following page Click here under the "more sport" section of this page I want to display a max of 4 of the most recent post within it's category, I need to do the same for the other five category.

I have made attempts to this section but it seems to duplicate the same entry post 4 times rather than four different post within the category. This is also happening on my blog roll page Click here

Can someone guide me in the right direction?

   {exp:channel:entries dynamic="yes" sort="asc" status="open" limit="4"}

        {categories}

{exp:eehive_hacksaw chars="250" append="..."}{feature_copy}{/exp:eehive_hacksaw}

    {/categories}

    {/exp:channel:entries}

Code for blog roll

{exp:channel:entries channel="blog" disable="member_data|trackbacks" dynamic="yes"}
{exp:channel:categories channel="blog" style="linear" show_empty="no" }

{title}

{exp:eehive_hacksaw chars="150" append="..."}{feature_copy}{/exp:eehive_hacksaw}

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


texts:
In the control panel, is it possible to only show a field when editing a single particular entry using JS/jQuery?

It's a matrix field, in case this makes any difference.

Thanks


texts: Access Find & Replace Tool Without Template Warning

texts:
When saving a template with a syntax error, EE will issue a warning, with a link to a Find & Replace utility.

This utility is super handy, but only seems to be available when there is a problem (usually an open-ended tag pair). Is there any way to access this, normally?

I can't seem to find anything about it in the documentation.

Thanks!


texts: Upgrade EE2 to EE3 : Internal Server Error

texts:
I have an EE 2.11.9 with only CE Image, Freeform, Stash, Deeploy Helper als Add-Ons that I want to Upgrade to EE 3.5.17.

I went forth and back several times, I even moved the site to a developer server as a copy where the same happens:

The site itself runs, but after typing the login information for the CP I get a Internal server error 500 on this template: /cp/login/authenticate.

The hosting provider has no clue nor have I one. I have checked a dozen of times and have had an EE fellow controlling if I was doing something wrong.

Can someone guide me into a direction where I might find a solution to this? I have spent now almost 2 days with this trouble.

Thank you.

Edit:

After setting debug to 1 in admin.php I get this error messages:

Notice
Trying to get property of non-object

ee/legacy/libraries/Session.php, line 369 hide details

    Severity: E_NOTICE

Notice
Trying to get property of non-object

ee/legacy/libraries/Session.php, line 369 show details

    Severity: E_NOTICE

Notice
Trying to get property of non-object

ee/legacy/libraries/Session.php, line 378 show details

    Severity: E_NOTICE

Notice
Trying to get property of non-object

ee/legacy/libraries/Session.php, line 401 show details

    Severity: E_NOTICE

Fatal error: Call to a member function getId() on null in /home/octave2d/public_html/_wernergusset/expconsole/ee/legacy/libraries/Session.php on line 401

Does this lead to some insights?


texts:
I created a static page using just template files. For example, say I have the following:

/pages/faqs/

The page is accessible via http://www.domain.com/index.php/pages/faqs. What if I wanted the URL to be http://www.domain.com/index.php/foo/? Is there a way to set this?


texts: ExpressionEngine CustomCSS | Generating an empty style tag

texts:
Cutting right to the chase: I'm needing to enable Custom CSS on a particular entry.

Whenever I load the page and inspect in Dev Tools, The style tag that Expression Engine promises to "automatically generate" is completely empty.  It looks like this:

What do I need to do to get ExpressionEngine to push my class definitions into that darn style tag?


texts: Low Search - Is it possible to do a date range (or any range) search in Low Search where multiple ranges are passed?

texts:
<select multiple="multiple" name="range:birthday[]" id="birthday">
    <option value="<?php echo date('Y-m-d', strtotime('-20 years')).';'.date('Y-m-d', strtotime('-18 years')) ;?>">18-20</option>
    <option value="<?php echo date('Y-m-d', strtotime('-25 years')).';'.date('Y-m-d', strtotime('-21 years')) ;?>">21-25</option>
    <option value="<?php echo date('Y-m-d', strtotime('-30 years')).';'.date('Y-m-d', strtotime('-26 years')) ;?>">26-30</option>
    <option value="<?php echo date('Y-m-d', strtotime('-35 years')).';'.date('Y-m-d', strtotime('-31 years')) ;?>">31-35</option>
    <option value="<?php echo date('Y-m-d', strtotime('-40 years')).';'.date('Y-m-d', strtotime('-36 years')) ;?>">36-40</option>
    <option value="<?php echo date('Y-m-d', strtotime('-50 years')).';'.date('Y-m-d', strtotime('-41 years')) ;?>">41-50</option>
    <option value="<?php echo ';'.date('Y-m-d', strtotime('-50 years')) ;?>">50+</option>
</select>

If I choose only one item, it works. But if I choose more than one item, it returns empty result.

Is it possible to do a date range (or any range) search in Low Search where multiple ranges are passed?


texts: Restoring publish layouts after fixing the disappearing fields bug

texts: So I had a post here. I got the answer I needed and applied the fix, but I can't fix the existing fields from prior entries. Does anyone have a fix for this?


texts: "invalid_filename" error when trying to synchronise upload directories

texts:
I'm making some changes to an existing ExpressionEngine site which involve moving the system above the web root and using Focus Labs config set up.

Because of the new config set up I had to define the upload directories within my config file.

When I synched the directory within the EE control panel I got error stating

invalid_filename on file foo.jpg
invalid_filename on file bar.jpg
etc.


texts: Advance form - show a field from field group of the channel

texts:
I am new to ExpressionEngine and trying to create an advanced form.

I have displayed the channel and categories associated with it as below as checkboxes:

{exp:channel:categories channel="books"}
<label for="cat1">
  <input type="checkbox" id="cat1" name="category[]" value="{category_id}">{category_name}
</label>
{/exp:channel:categories}

I am now trying to create checkboxes that show a particular field from the channel field group that is associated with the channel, so it adds an extra filter on the search for the user to search.

Can this be achieved or is there a plugin to help with this detailed search criteria?


texts: EE3 DevDemon Channel Images fatal error when trying to render template

texts:
ExpressionEngine 3.1.2

Channel Images  6.0.1

The addon installed ok. I have tried uninstalling and re-installing and had no change. The field was created ok. The location check passed. However, when I try to view the template, I just get 2 warnings and a fatal error.

I understand that it says

  Even if all tests PASS, uploading can still fail due Apache/htaccess
  misconfiguration

but I don't see anything wrong with either.

I am able to create an entry and upload the photos. I can see the images on the server. When I try to render a template, I get the following warnings and then fatal error:

Warning 1:

  Warning

  require(/home/stkhomes/system/user/addons/channel_images/locations//.php):
  failed to open stream: No such file or directory

  user/addons/channel_images/models/channel_images_model.php, line 701
  hide details

  Severity: E_WARNING

Warning 2:

  Warning

  require(/home/stkhomes/system/user/addons/channel_images/locations//.php):
  failed to open stream: No such file or directory

  user/addons/channel_images/models/channel_images_model.php, line 701
  hide details

  Severity: E_WARNING

Fatal Error:

  Fatal error: require(): Failed opening required
  '/home/stkhomes/system/user/addons/channel_images/locations//.php'
  (include_path='.:/usr/local/php56/pear') in
  /home/stkhomes/system/user/addons/channel_images/models/channel_images_model.php
  on line 701

I stepped through things and it appeared that the cache was not being written and returned inside the CI model.php file.

Does anyone have any insight on this? I am on a deadline and this is a huge snag for me right now as I planned the site around this field.


texts:
Is it possible for visitors to subscribe to categories on the EE blog, so they receive email notifications whenever a new blog is posted?

Also, it is possible to "pin" a blog post at the top of either the blog homepage and/or the blog category homepage, so it always shows up at the top of the page?

Thank you!


texts:
It looks like the «xhtml»-field-formating in EE 2.5.5 has problems with figure and figcaption. If I write…

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

bla bla bla

Willhelm Tell

Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

… into a custom field with xhtml-field-formatting, the following will be rendered:

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

bla bla bla

Willhelm Tell

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

which obviously is everything else than «optimal» ;-)

How can I tell EE to ignore figcaption and figure in «xhtml»-field-formating?


texts: How to show current search when filtering using dynamic parameters

texts:
I'm looking to create a filtering system for entries. I need to be able to filter by multiple criteria.

I've started to use the dynamic parameters feature, using the 'search' parameter to filter using custom fields.

My question is this: How can I show what current search terms are being used? As the URL doesn't change it doesn't appear we can use that, but I need to be able to show what filters are currently being applied.

Any ideas on this will be gratefully received, or any alternative methods or add-ons that will make this kind of filtering of entries easy.

Thanks in advance,

Tom


texts: Losing Active Status of Category in Pagination

texts:
I'm using this code to display the active category as the title of the page before the channel entries are listed out, however, if you go to the next page using the pagination the category seems to lose it's active status and nothing is returned. Any suggestions?

Example:

1st page returns: Category > Active Category Name

2nd page returns: Category >

1st page URL: /sustainability/stories_and_video/category/pillars_passion_for_people

2nd page URL: /sustainability/stories_and_video/category/pillars_passion_for_people/P3

{exp:channel:entries channel="stories" disable="member_data" orderby="article_publish_date" sort="desc" limit="3" pagination="bottom"}
  {if count == 1}

           Category > {categories}{if active}{category_name}{/if}{/categories}

  {/if}

    {if story_image != ""}{/if}

{title}

    {story_blurb}
    Read more

{paginate}

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

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


texts: Custom column creation for template and plugin

texts:
I have a homepage template that I manually change and there are rows with 3 columns each. Each column is a topic with entries.

I wrote out some PHP to programmatically to create these rows and columns so that I could query the database and then create the columns much easier.

It basically takes the array of items, and breaks into smaller items.

The problem I'm having is converting it to work with EE and the template engine.

I started out by creating a plugin, and maybe this isn't the way to do it. I can get the topics and spit them out using the parse_variables function in the template engine. Getting them into their own arrays like I do in my test code below isn't hard, but I'm not certain how to get this working within the plugin and the EE template.

Then I just use:

{exp:topics_loop:all}
    {topics}
        {topic}
    {topics}
{/exp:topics_loop:all}

It spits out the topics, yay, but that's easy. Anyway, here's my rudimentary test code to get a better idea of what I'm trying to accomplish:

<?php

$array = array();

for( $i = 1; $i <= 13; $i++ ) {
    array_push($array, 'topic ' . $i);
}

$thisArray = array();
$numPerRow = 3;
$numElems = count($array);
$rowCount = 0;
$thisArray[] = array();
foreach( $array as $key => $value ) {

    if( count($thisArray[$rowCount]) == $numPerRow ) {
        if( ($numElems - $key) == 4) {
            $numPerRow = 2;
        }
        $rowCount++;
    }
    $thisArray[$rowCount][] = $value;
}

foreach($thisArray as $arrays) {

    echo 'start row
';
    $count = count($arrays);
    if( $count == 3) {
        foreach($arrays as $a) {
            echo 'span_4 - ' . $a . '
';
        }
    }
    if( $count == 2 ) {
        foreach($arrays as $a) {
            echo 'span_6 - ' . $a . '
';
        }
    }
    echo 'end row
';
}

I create a simple array of items just for testing out different combinations. It creates columns of 3, if it has 1 item in the last array, we split the last 2 into arrays of 2. I never want 1 item by itself essentially.

If you run this specific code, you'll see that it creates:

start row
 span_4 - topic 1
 span_4 - topic 2
 span_4 - topic 3
end row

start row
 span_4 - topic 4
 span_4 - topic 5
 span_4 - topic 6
end row

start row
 span_4 - topic 7
 span_4 - topic 8
 span_4 - topic 9
end row

start row
 span_6 - topic 10
 span_6 - topic 11
end row

start row
 span_6 - topic 12
 span_6 - topic 13
end row

Anyway, this is rudimentary, but if anyone has pointers on how to get this idea into EE, let me know.

Thanks.


texts: Expresso Store - Total sales in template

texts:
I am running a ticket sales setup with store for an online event and would like to display the total number of products sold via a template to feed a live display of total tickets sold, is there any way for me to display the total number of products sold?

Currently I could display ALL products sold and not just a set of products, but in the future dates spans as well as specific products would be nice to define.


texts:
I've been going off of the custom mini calendar found at the bottom of the page here: http://www.solspace.com/docs/calendar/mini/

What I'm trying to do is get a complete mini month to show but right now, with the code below, I'm only receiving the week in which 'today' resides (refer to this picture: http://i.imgur.com/CI93uia.png).

Here's the code that I'm using:

          {exp:calendar:cal}
            {!-- Custom mini calendar --}
            {display_each_month}

                  {!-- Display Month and Prev/Next month nav --}
                  {!-- TODO: segment properly to new cal pages --}

                        &lt;

                      {date format="%F %Y"}

                      &gt;

                  {!-- Display week day letter headding ( S M T W T F S ) --}

                    {display_each_day_of_week}

                        {day_of_week_one}

                    {/display_each_day_of_week}

                  {display_each_week}

                    {display_each_day}

                      {!-- as stated above, this is only showing the week for which the date today resides in --}
                      {day}

                    {/display_each_day}

                  {/display_each_week}

            {/display_each_month}
          {/exp:calendar:cal}


texts: Is there a way to see the EE upgrade history?

texts:
Normally I can put the pieces together by looking at upload dates, git history, and the $config['app_version'] within /system/expressionengine/config/config.php. More often than not I cannot tell what previous version it was upgraded from.

This has to be logged somewhere in EE right? With dates?


texts:
I am trying to find the most common way to add entries to the home page and then reorder them.

In the past I have set a custom status and used Low Reorder to sort the entries.

Are there other methods people prefer?

I have tested https://bitbucket.org/ajweaver/ajw_selecteditems/src but it hasn't been updated in a while and also throwing an error in EE 2.6 so i'm hesistant to use it.

Appreciate any thoughts.

N


texts: Logically I am trying to order entry output by day only using EE native date picker. I want the system to ignore year and month and order only by day. The logic would be order_by="{customfield format='%d'}". This is not possible using native EE tags. Any ideas on how to achieve this?


texts:
I've run out of ideas on how to fix this one. I moved a site to another server, and now the photos don't display. I've moved sites before without a problem. I did the following:

Confirmed the paths were correct.
Checked all folder (777) and file permissions (666).
Ran file synchronization.
Cleared all caches.
Optimized the database.
Re-saved some test photos.

New photos display correctly. When I use my browser to go to the exact path of an old photo, it won't display, even though the path and file permissions are correct.

Any suggestions?


texts: Get specific value without having to loop with db class

texts:
So I am trying to get a specific setting out of the database. And it seems that most of the CodeIgniter DB actions don't work in ExpressionEngine( http://ellislab.com/codeigniter/user-guide/database/results.html)

I am wanting to do something like this:

$facebook_id = $this->EE->db->some_db_function('table_name', array('column_name', 'value'));

And that would create a query like this:

Select column_name FROM table_name WHERE column_name=`value`;

Just in case there is any confusion, here is my actual code currently:

$query = $this->EE->db->get_where( 'fb_photo_settings', array('setting_name' => 'facebook_id') );

But that returns an object and I'm wanting to just run a query that returns just the value.

And it just returns the value in the field, not an object or an array just the value. Is there any way to do this. And if not - how can I use the result() type functions on the link above?

Thanks.


texts:
Good Morning.  We are using ExpressionsEngine 2.0 and a couple of days ago the landing page in /admin/index.php has been returning 500 internal server error.  I did not install of the CMS and I am very new to ExpressionEngine.  It was working about two week ago.   Here is the .htaccess file:

php_value memory_limit 128M
# Standard .htaccess file

# Secure .htaccess file
<Files .htaccess>
 order allow,deny
 deny from all
</Files>

# Don't show any directory without an index file
Options -Indexes

# Dont list files in index pages
IndexIgnore *

# EE 404 page for missing pages
# May differ depending on where your template is located.
ErrorDocument 404 /index.php?/core/404

# Enable Rewrite Engine
RewriteEngine On
RewriteBase /

Unfortunately I don't know if this is being used or if the index.php is what is used however I suspect it is the index.php.  this is the only setting I see changed in the index.php file:

/*
 * --------------------------------------------------------------------
 *  System Path
 * --------------------------------------------------------------------
 *
 * The following variable contains the server path to your
 * ExpressionEngine "system" folder.  By default the folder is named
 * "system" but it can be renamed or moved for increased security.
 * Indicate the new name and/or path here. The path can be relative
 * or it can be a full server path.
 *
 * http://expressionengine.com/user_guide/installation/best_practices.html
 *
 */
        $system_path = './admin';

Any help would be appreciated.
Thanks


texts: How do I set up Expression Engine in development environment without the license?

texts: I just purchased a license key but that is for the production environment. How do I install and setup Expression Engine in my development server?


texts: Comparing session variable against an input field

texts:
I was wondering if there is a way to set a session variable (using Session Variables Plugin) and then when a user completes an input field (promo code), the field compares the input against the session variable to either allow a user onto another page or to rejects them.

Thanks in advance.


texts: Stash List & Matrix Rows Returning Empty

texts:
Firstly let me say I'm probably making a really simple mistake, this is my first time using Stash so I'm trying to get my head around it. I've spent the last 45 minutes searching through Google and on here and can't find a solution.

The problem I'm having is I'm setting a stash_list which has Matrix tags inside of it, but when I'm using get_list I am getting the correct amount of rows returned, but they are empty.

Here is what my model view looks like:
    {!-- load stash view --}
    {stash:embed:layouts:standard}

{!-- create standard page model --}
{exp:channel:entries channel="standard_page" limit="1"}

    {!-- content (general) --}
    {exp:stash:set}
        {stash:title}{title}{/stash:title}
        {stash:introduction}{standard_introduction}{/stash:introduction}
        {stash:content}{standard_content}{/stash:content}

        {!-- helpers --}
        {stash:entry_id}{entry_id}{/stash:entry_id}
    {/exp:stash:set}

    {!-- content (lists) --}
    {exp:stash:set_list name="content_sections" parse_tags="yes"}
        {mx_standard_sections}
            {stash:section_title}{heading}{/stash:section_title}
            {stash:section_content}{content}{/stash:section_content}
        {/mx_standard_sections}
    {/exp:stash:set_list}

{/exp:channel:entries}

And here is what my view looks like:

{exp:stash:title}

{exp:stash:introduction}

    {exp:stash:content}

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

{exp:stash:section_title}

            {exp:stash:section_content}

    {/exp:stash:get_list}

My normal Stash fields work, however my get_list returns this:

So I'm not quite what's going on. Stash clearly knows there is two Matrix rows with data inside them, however it won't return the data at all. Thanks in advance for any help I get, and I apologise if it's a stupid mistake!

Thanks,
Ben


texts: DB error when creating file upload location after 272 update

texts:
We recently updated a 255 install to 272. Things are working fine except we got an error when we first tried to add a new File Upload location under File Upload Preferences. The error was:

A Database Error Occurred
Error Number: 1062

Duplicate entry '4-5' for key 'PRIMARY'

INSERT INTO exp_upload_no_access (upload_id, upload_loc, member_group) VALUES (4, 'cp', '5')

Filename: controllers/cp/content_files.php

Line Number: 2338

Since that time, we have not been able to replicate this and it seems adding, editing and deleting locations is working ok. Is this something worth worrying about?


texts: ExpressionEngine 2.4.0 and PHP 5.6 support

texts:
My service provider is planning on upgrading from PHP 5.4 to PHP 5.6.

I'm currently running EE 2.4.0.

First of all will it work and secondly can I expect and issues after the upgrade.


texts: CE Img template debugging doesnt display in depth info

texts:
Following the directions listed here:
http://www.causingeffect.com/software/expressionengine/ce-image/user-guide/troubleshooting

I set up a dummy template with a missing image, so I could see the debug information, but I never got the "*  CE Image debug:". Ive copied my debug text below:

https://gist.github.com/anonymous/cc2c9d014550f52d1e20

Currently CE Img isnt displaying any images at all, but until I see the debug message, I cant get much further!


texts: Get Filesize when using Matrix flle field

texts:
How do you get the filesize of the file when using Matrix?

{downloads}
  {download_name} {file_size} {size}
{/download}

returns

Download name {file_size} {size}

Thanks


texts: Low Search Form + CE Cache's Static Driver; What's Needed to Make it Work?

texts:
I'm using CE Cache's Static driver, which essentially uses EE to generate the first view of a page, and then saves the output to a text file, which is served on subsequent page views; pretty easy to setup, and, super fast.

We have a simple, keywords only, Low Search form in the header of every page on our site. It looks like it includes a couple of fields that might be unique to the user/session/cookie, XID, and, possibly, param?

When another user comes in and performs a search on a cached page, they're getting an error - "you are not authorized to perform this action."

Is there anything I can do to get the Low Search form working? Any potential "gotchas" to just building a form that will GET to generate the correct URL, e.g. example.com/search/?keywords=widget ?

Currently using EE 2.7.2, Low Search 3.0.3 (I just saw that that's out of date now), and CE Cache 1.10.1.


texts: Automatically assign parent category to sub-category entries?

texts:
I have a parent category called, 'Reviews', which has sub-categories, 'Albums', 'Tracks' and 'Gigs'.

The entries in the sub-categories had already been assigned those sub-categories before the parent category was created.

Is there any way I can automatically add the 'Reviews' (parent) category to all of its sub-category entries?


texts: Custom Member Variables in Admin Notification Email?

texts:
SCROLL FOR NEW EDIT

I understand that EE does not currently have functionality to show you anything beyond the basic member variables in the email notifications (such as username, etc).

I have many custom variables so that when a member registers, they have to enter specific data like contact information.

In order to facilitate the approval process, I NEED the notification email to display the information the user puts into those custom fields.

However, I have been unable to find any combination of plugins and templates that will allow this.

I am currently working with MX Notify and having trouble figuring out if it can actually do this.  Right now I can get it to display the username, screen name and email etc, but I cannot for the life of me get it to display anything else from the user.

I have tried several plugins with no luck.  ANY help is appreciated.

NEW EDIT - 6 JAN 2014

I tried the information from the link in the only answer here so far, and it made no difference.  I still cannot display custom data in an email notification about a member's custom fields.

Is there nobody out there who has successfully done this??


texts: Templates aren't working properly after update

texts:
I just updated this site for a client from ExpressionEngine 1.6.3 to 2.7.2 Now the blog works fine but the individual blog entries aren't displaying.

Any ideas on where I should start to troubleshoot this?

Edit:
Sorry, now I realize that the question was way too vague. The page listing the blog entries displays fine but when I visit an individual entry, the url is wrong.

Link to the site:
http://professor-murmann.info/

Pastie of the template code:
http://pastie.org/private/6x367wh2yilbulceotf5g


texts: "Undefined property: EE::$session" in ee.php after upgrade

texts:
After updating from v2.5.5 to v2.7.3, I get the following error:

A PHP Error was encountered

Severity: Notice

Message: Undefined property: EE::$session

Filename: controllers/ee.php

Line Number: 41

Fatal error: Call to a member function userdata() on a non-object in /......../admin/expressionengine/controllers/ee.php on line 41

I feel like I have done this upgrade loads of times and I cannot work out where I'm going wrong here. I have overwritten all files as usual. The CP works fine.

Any ideas?!

D


texts: Update from Assets 1.2.2 to 2.0, Files are not showing

texts:
I have updated Assets from version 1.2.2 to 2.0 following the steps on the P&T website.

After going to 'Add-Ons -> Modules', selecting 'Run Module Updates' and confirming 'Update' on the Assets warning page, I received various PHP errors (which I stupidly did not copy). I was able to re-load that page and view the updated UI for Assets.

I no longer see any of the files and images that were present in Assets 1.2.2 in the File Manager. Images on the front end are also now missing. Viewing the database, it looks like everything ing the exp_assets_files table is gone.

I have also run 'Updated Indexes' for both of my directories handled via Assets and cleared my browser cache.

I am attempting the update locally via a MAMP install running PHP 5.3.14 and do have a db backup.

Any ideas?


texts: Is there a built-in way to sanitize data with parse_variables?

texts:
I'm a developer on a huge site that does millions of dollars of transactions per day. Our client has recently engaged a White Hat scanning firm to scan the site, and we've been having some issues.

Per their request, we've sanitized all data that's being saved using the TRUE parameter on input->post. Apparently this scanning company doesn't consider it enough to prevent users from saving bad data; they also insist we sanitize all data before display.

Most of our functions rely on TMPL->parse_variables, so I'm wondering if there's an easy way to sanitize the data in the variable array as well. Or is the only way to call php's strip_tags on every variable before it goes into the array?


texts: Get Channel entries using custom filed type value

texts:
Is there a way to return channel entries based on a custom field type value? I have set up a custom field type and I want to be able to return channel entries that just a have a specific value for that field. Is that possible?

Oh, and just to make it more complicated I can't use the search:field_name= parameter because:

The custom fieldtype I need to search is a P&T Dropdown
I actually need to also return any results that match a specific author_id= value in the same channel entry results
I really need to query multiple custom fields across multiple channels

So what a I really need is a OR type query using a custom field as a parameter. I thought about creating a custom query or even making a quick plug-in, but the channel entries table along with trying to query custom field data is so convoluted. It's seriously a complete nightmare.

I'm open to any suggestions. Thanks.


texts: Specify a valid entry to edit - Safecracker Error

texts:
I've run into this before, however, for whatever reason I can't seem to resolve it this time. Whenever I submit my safecracker form below, I receive the following error:

The form you submitted contained the following errors
You must specify a valid entry to edit.

My hidden fields show the correct entry_id, etc. What am I doing wrong?

{if segment_4=="issue"}

{if segment_6 == "success"}

        <button type="button" class="close" data-dismiss="alert">×</button>
        Success Issue has been updated.

{/if}

{exp:safecracker
limit="1"
channel="issue"
return="/myfig/{segment_2}/edit/issue/ENTRY_ID/success"
datepicker="yes"
include_jquery="no"
entry_id="{segment_5}"
safecracker_head="no"
error_handling="inline"
use_live_url="no"
author_only="no"
}

    Title
    <input type="text" name="title" id="title" value="{title}" />

    Rate

        $
        <input type="text" name="rate" id="rate" value="{rate}" />

    Publish Date
    <input type="text" name="publish_date" id="publish_date" value="{exp:low_nice_date date='{publish_date}' format='%m/%d/%Y'}" />

    Date Signed
    <input type="text" name="date_signed" id="date_signed" value="{exp:low_nice_date date='{date_signed}' format='%m/%d/%Y'}">

    <input type="submit" class="btn btn-success" value="Update" />

{/exp:safecracker}


texts:
Is it possible to allow PHP in the Expresso Store email templates? I can't see settings to do so in the admin.

The reason I need to do so is as follows.

We are going to use the Status message field to pass a parcel tracking code to the email template so the customer can track their parcel. However, if the parcel is going to the USA then we need to allow 2 tracking codes (one for the UK, then the next for the US leg of the journey).

We were going to enter both codes in the message box separated by the | (pipe) symbol, but we obviously need some way to split that apart on the template.

If anyone can suggest a better way to add two tracking codes then I'd be glad to hear it!

Thanks in advance for your advice.

T


texts: Multiple channel entry tags on a single template - Have content not repeat itself

texts:
I'm fairly new to Expressionengine, as I have taken over a site which a developer helped me build. So I'm still learning all the different things about it. My problem is this - I have a template (homepage) where I have four seperate {exp:channel:entries} tags.

So this is getting the feature.

{exp:channel:entries channel="channel1|channel2|channel3" limit="1"}

This is getting the four entries after the feature.

{exp:channel:entries channel="channel1|channel2|channel3" limit="4" paginate="bottom" offset="1"}

This is the tricky bit. The next {exp:channel:entries} tag occasionally repeats entries above even though I've set an offset of ('5' - counting the feature and four entries after)

{exp:channel:entries channel="channel1" limit="2" orderby="random" sort="desc" dynamic=“no” offset="5"}

Lastly, I have one that looks based on the category.

{exp:channel:entries channel="channel1|channel2|channel3" limit="2" category="111" orderby="random" offset="5"}

My question for this section: is there a way to stop it from posting entries if it is already being spat out by the other {exp:channel:entries} tags.

Please help me as I am fairly new to this. Would love any feedback. Thank you so much.


texts: Some missing channel entries in relationship fieldtype

texts: I have added a multiple relationship field to a channel, however a few entries in the selected channels are not appearing in the relationship selection list, yet the entry is open and can be viewed in both the control panel and frontend. Any suggestions?


texts: Zenbu live look link and Publisher drafts

texts:
Zenbu offers the option to add a Live Look link to it's entries overview. But our client was complaining, this doesn't work for draft entries (using Publisher). Adding the {exp:publisher:toolbar} to the template is also not an option for them.

To be able to view the entry as draft, you need to add ?publisher_status=draft to the preview template url. But there's no way to do that


texts: Expresso Store: Destination based sales tax

texts:
My client lives in Washington State and they have destination-based sales tax, meaning anytime they ship something to a customer within the state, taxes must be calculated based on the customers address (not just zipcode - that would be too easy).  It's my understanding that roughly 20 states are now doing this with new ones adopting the process monthly.

This isn't something to snub our noses at -- it's the law in many of our states and our clients can get into serious trouble if they don't comply.  Disappointingly I've emailed Exp:resso about this issue three times now asking for help and even offering to pay them to develop this, but have received zero response.

Does anyone have a solution for this growing problem?


texts: CartThrob Not Saving Custom Member Data to Profile:Edit

texts:
When someone checkouts with CartThrob a new member is added to the member_profiles channel using Profile:Edit. However, not all the information is coming across to the member entry.

At checkout all the customer_info is there in the CT debugger (http://cl.ly/MG0q).

We use this on checkout.php:

{exp:cartthrob:checkout_form
create_user="yes"
group_id="5"
class="form"
error_handling="inline"
return="membership/order_info"}

But when the transaction finalises most of the customer_info resets to 0 except for the {phone} field. And that’s what ends up in the ‘Member Profile’ channel too. (http://cl.ly/MEed)

All the correct customer info from the join.php is in the ‘order’ channel but the member_profiles channel only has the email and phone fields. We have the member fields mapped correctly in CT and are telling it to use Profile:Edit.

Our full add to cart/save customer info form, join.php, is here http://pastebin.com/wJi4QeHM

Any ideas?

EE 2.5.3
CT 2.2.2
Profile:Edit 1.0.8


texts: author_only="yes" shows edit form, but wont allow save, error "safecracker_author_only"

texts:
I have a strange issue I can't find reference to anywhere on Google!

The following code allows me to display a Safecracker form to edit an entry. When I click save I get the error below.

{exp:safecracker
    channel="member_news"
    return="members/profile#tab3"
    author_only="yes"
    form_class="uniform"
    error_handling="inline"
    entry_id="{segment_4}"
}

        Title
        <input name="title" type="text" value="{title}">

        Summary
        {field:member_news_summary}

        Content
        {field:member_news_content}

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

{/exp:safecracker}

This is the error:

The form you submitted contained the following errors

safecracker_author_only

I find this strange because I am the author of the entry, it wont even show the edit form to other entries I am not the author of, so author_only="yes" seems to be working with that respect. But clicking save its as if it then thinks I am not the author.

Removing author_only="yes" will allow me to edit AND save, any form, which is obviously bad.

So I am not sure what the issue is. Using v 2.6.1


texts: display only if a matrix cell has a certain value

texts:
have this table that I want to display only if one parameter set in a matrix cell has a value of 1:

{exp:channel:entries channel="{canale_corrente}" limit="1" disable="member_data|pagination|categories"}
                                {formati_prodotti}
                                    {if enable_shop_lnk == "1"}

TITLE

SUBTITLE

                                                        Formato
                                                        Shop

                                                        {codice_formato} - {nome_formato}
                                                        BUY

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

CAPTION:

{formati_prodotti} is a matrix field

enable_shop_lnk is a child field inside {formati_prodotti} that can be 0 or 1

the problem is that I can't find a way to hide the entire table when there's no records with enable_shop_lnk == 0

Also because the enable_shop_link is inside a matrix field I can check it only by wrapping it with the matrix field {formati_prodotti} and if there's more than one entry meeting the criteria I get more than one table!

Any idea!


texts: Channel Entries - Advanced Entry Id Filters

texts:
When using the entry_id param in {exp:channel:entries}, is it possible to do some advanced conditions like

entry_id="(not 58) AND 99|100|101"

Basically, what I was looking for is if you can use AND, OR and NOT.


texts: Mulltisite Manager - How to find out which site users come from

texts:
I  am using multisite (MSM) and i want to show user listing for different site for admin. How can admin see the users list according to site.

For eg: -

I am having 5 sites (named as Site-A, Site-B, Site-C, site-D and Site-E)
and  i have created new member group for each site from admin CMS (Members->Member Groups->Create a Member Group) as below:

Member Group Name for Site-A is user-A and

Member Group Name for Site-B is user-B and

Member Group Name for Site-C is user-C and

Member Group Name for Site-D is user-D and

Member Group Name for Site-E is user-E.

i have implemented login/registration functionality for each site.

Now Users can register  from the above sites.

But in admin CMS, It is showing all users for all site on a page (Members->View Members).

Here how can i know the user comes from which site ?

Please give me a solution.


texts:
I have Assets hooked up to S3, and have over 35,000 images indexed. When loading the Assets module file manager, the browser clocks and cannot render the file list. Same thing when selecting a file from the Assets field.

Inspecting the Assets source code, Assets_lib::get_folder_tree() is being called, creating one huge array of all folders/files.

Is there any way to lazy load files into the browser? Is there a setting in Assets to do this? Or how do others handle a large quantity of files? Is there a different module that will give me the S3 hookup and still handle a large quality (I am willing to sacrifice UI/design if I can find a solution to this issue).

Any direction would be appreciated, I am planning on using over 200,000 images in the future.

EE 2.5.5
Assets 2.1

UPDATE: I have over 6,500 folders within my S3 bucket. Although the files are being lazy loaded as noted in the comments, the folders are not - this is where I believe the issue to be.


texts: Using FreeForm 4.0.12 with Low NoSpam 2.2.3 / Akismet EE 2.6

texts:
I have installed FreeForm and Low NoSpam, built new Free Forms, signed up for Akismet, got the API key installed it, configured the settings for the products.  Yet, nothing is being blocked.  I can submit dozens of messages without any checking.  Put in crappy information.  Everything that spam catching should get.   Yet, every entry just nicely goes through to my Freeforms submissions.   It just appears to bypass everything.   I use a separate machine to test from, so I am not logged in.  It seems like Akismet is not in the loop.

Akismet seems odd to me.   My former Akismet account gave me a control panel.  The new Akismet just gives me the API key.


texts:
I'm using the Pages module. In one entry, I created a Pages URI just to test something. Now I want to remove the URI for that entry, but I can't. It seems to be forcing me to populate the Pages URI field, but I want it blank, like it was when I initially created the entry.

Any ideas?


texts:
I am working on a website in ExpressionEngine2 and need to save the user's credit card information in the database as I also need to display this in a dropdownlist in the front end (whichever credit cards are linked to the user)

Which is the best encryption method I can use to store the credit card details? I need to use the number again for processing payment. I suppose some kind of 2-way encryption?


texts:
What is the procedure for downloading and installing the alternative themes for ExpressioneEngine's Control Panel?

I've read in one of the books available on the topic that there are three additional Control Panel themes available: "Corporate", "Fruit" and "Mobile", but I can't find them.

Would be grateful for some help!


texts:
Running EE 3.5.16

With the following code for the contact form on a website I am not receiving the email. I have confirmed by direct email that the recipient add

{exp:email:contact_form
        user_recipients="no"
        recipients="name@mydomain.com"
        replyto="yes"
        return="/"
        charset="utf-8"}

Your Email:
        <input {if logged_in}type="hidden" value="{member_email}"{/if} {if logged_out} type="text" value=""{/if} id="from" name="from"  />

Subject:
        <input type="text" id="subject" name="subject" size="40" value="" />

Comments:
        <textarea id="message" name="message" rows="18" cols="40"></textarea>

        {exp:honee class="beez"}
        <input class="submit" name="submit" type='submit' value='Submit' />

{/exp:email:contact_form}


texts: Order discount not calculating on first submit

texts:
I have a process in my checkout whereby orders with a value over £750 get 5% discount applied. To do this I have a hidden promo_code field which has a value of 'bulkorder' if {order_subtotal_val} is > £750. This works fine until the customer amends the quantity in the cart to bring the subtotal below £750.

I have some script on the submit action (update cart totals) of the form to remove the promo_code, which works fine -  however on refresh the form has a blank promo_code but the {order_discount} applies the removed promo code anyway. If I click the submit again the order_discount refreshes to 0 as expected.

A similar thing happens if I the increase the total above £750 - submitting the form adds the promo_code to the field but until I submit a 2nd time, the {order_discount} remains at 0.

Any ideas?


texts: PHP Error in PT Field Pack - Pill: "Array to string conversion Filename: fieldpack/ft.fieldpack_pill.php"

texts:
I'm not sure if I'm only just noticing this error, or if it just came up from some reason...

EE v2.7.2
PT Field Pack v2.1.1

The Error:

  A PHP Error was encountered Severity: Notice Message: Array to
  string conversion Filename: fieldpack/ft.fieldpack_pill.php
  Line Number: 132

If I comment out line 132 in fieldpack/ft.fieldpack_pill.php the error goes away, and the fieldtype seems to work just fine:

Any ideas what could be causing this? Is commenting the line out going to cause other problems?


texts: How do i export/import MX Google Map entries

texts: I need to transfer aprox 700 MX googlemap entries from old db to new. I have tried ajw-export/Datagrab but it does not transfer the geodata.


texts: Control panel (CP) top right link not redirecting

texts:
After upgrading to 2.5.5, the top right link that links & redirects to the client site is not working.

The link is there, and generates the correct URL, but redirect never happens and we're stuck with the blank page:

http://www.clientsite.com/?URL=http://www.clientsite.com/

What could be causing this issue?

Thanks everyone!

P.S. Unfortunately none of the solutions at the related Control Panel (CP) Link Button is not working issue worked.


texts:
Expresso Store add quantity to product modifiers

I have a product with 2 modifiers.  ie: an event with adult and child prices.

I need to create a product so you can add to the cart and say I want # of adults and # of children click add to cart.

I do not want to have 2 separate products for children and adults.  Is this possible to add a qty to each modifier?


texts: Solspace importer still updtates data with do nothing selected

texts:
EDIT

Nicolas from Solspace's Support came back to me with an answer :

  I could reproduce the issue and reported this as a bug to our developers.

Still, a patch would be welcome.

We're using Solspace Importer 2.2.5 with ExpressionEngine 2.10

Importer is used to cron import members data from a csv.
Everything is running smoothly, except one thing :

Importer is updating existing member accounts while the drop down list in the import settings is set to do nothing.

We're filtering members upon username, we use a unique customer key number ( string like 12AB34 ) as username.

I opened a support ticked at solspace but got no answer till then.
Any advice would help, the site is e-commerce, and we're live.


texts: Break a single entry into an arbitrary number of pages?

texts: The documentation describes using separate fields to create pages for an entry. But how can I create pages arbitrarily? There are multiple reasons I don't want to create a separate field for each page. The Simple Pagination plugin looks like what I want, but it isn't available anymore.


texts: Change price with modifier, instead of + add to price

texts: I have a gift card that I'm including in my store, and I would like to have the total price change with a modifier, instead of adding a dollar amount to a base price. Is this possible?


texts: After ee update custom links doesn't work anymore

texts:
the title described it.
After the ee update i wasn't able to click on my custom links in the ee main bar anymore.
It throw me always out of my login session.
I had to re-add each of my custom links to get it working.

UPDATE: I updated from 4.3.3 to 4.4.5. The behaviour was the same in an older update i did before. I added the links always via your +Add button and after an update, these links always fail.
I think it's because a session or id is saved also inside the links. For example here is one of my old ones...

http://url.de/backend/index.php?S=56ddd7c4744a94b131bcd8f0bdb6f61965476ed5&D=cp&C=addons_modules&M=show_module_cp&module=zenbu

I always login via /system/ or in this example via /backend/ instead of admin.php, because there were always some issues in the past, but i can't remember by now.

Is there any other solution for this?

Thanks

Peter


texts: Solspace Calendar: Showing future events - date_range_start parameter not working

texts:
I want to show future events based on today.

I currently have 3 dummy events in my system, 1 past, 1 today, 1 future. When I run the code below no events show up:

{exp:calendar:events event_limit="3" status="open" date_range_start="today" orderby="event_start_date" sort="asc"}

If I take out the parameter:

date_range_start="today"

Then all appear.

I'm running the same query for past events using:

date_range_end="yesterday"

This is working fine.


texts: This page isn't working File Submit Form

texts:
I am using FreeForm 4.1.3 and ExpressionEngine 2.7.3.  I have a form that was working for a while and I think I am running into an issue now.  I did have to recently go into EE settings and update my file upload location of my host.  I updated the Server Path to Upload Directory under CP Home -> File Manager -> File Upload Preferences -> Edit File Upload Preferences.  I guess the host of my client updated their hosting somewhere along the lines and now when I try to upload certain documents it knocks out my site....
In chrome I get...

This page isn’t working

www.xxxxxxxxx.com didn’t send any data.
ERR_EMPTY_RESPONSE

I am not sure what is going on.... I can back my page up and submit again with a txt file and it submits....just not a docx....I have file uploads set to all file types.


texts: how to redirect from website.com/index to website.com

texts:
For example, visitor types www.website.com/index. I want to remove index and show this url www.website.com

In .htaccess wrote

RedirectMatch 301 /index https://www.website.com

As result instead of https://www.website.com get https:///www.website.com/?index with 404 error.

Please advice what is the correct way to redirect.

Some solution.

Did it not in .htaccess, but in php file.

This works

if( trim($_SERVER['REQUEST_URI']) == '/index' ){
header('Location: https://www.domain.com', true, 301 );
exit();
}

but may be some better solution?


texts: $this->db->last_query() not picking up the right query

texts:
I've got a Active Record query which i need to grab the sql from, so i'm doing the query and then i'm doing for example

$query = $this->EE->db->select('foo')->get('bar');
$bob = $this->EE->db->last_query();

Now, on my local machine it picks it up fine. But, on the live site it's picking up a query of the exp_sites table and basically just returns the contents of the exp_sites table for this site (it's not msm so there is only one row). That's not the query i want, so how is it getting picked up there?!?!

Anyone know why this might be? Caching? A full moon?


texts: Restricting search or search results to the logged in member's id

texts:
I have a restricted site, where users have to login to see any content. The content they are shown is restricted by their member id.

To do this, each entry is assigned to a specific member. I'm using 'VMG Chosen Member' to make this easier in the CP.

Showing the relevant entries is working fine and I'm using the following:

{exp:channel:entries channel="fsr" disable="categories|trackbacks" dynamic="off" orderby="fsr-datefield" sort="desc"}
{if logged_in_member_id == fsr-customer}

    {title}
    {fsr-datefield format="%Y-%m-%d"}
    {fsr-system-name}
    {fsr-call-type}
    Download PDF

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

I want to apply the same limitations to search/results but when I do, it returns the correct results but if there are no results for that member but there are for other members then I get blank content and cannot redirect to the 'no results' template.

Here's my search results code:

{exp:search:search_results}
{if logged_in_member_id == fsr-customer}

    {title}
    {fsr-datefield format="%Y-%m-%d"}
    {fsr-system-name}
    {fsr-call-type}
    Download PDF

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

I'd ideally just restrict the search or search results by member id, but that does't appear to be possible?

Does this even make any sense?!

Any other ideas? I'm really rusty with EE btw, so please be gentle :)


texts: Simple Commerce tag in Standard Channel entries tag?

texts:
I am looking to use simple commerce price variable inside a standard channel entries tag.  Using the following code, it is not parsing the {item_regular_price} and simply displaying the tag.

{exp:channel:entries channel="membership_packages" dynamic="no"}

{title} - {item_regular_price}

{/exp:channel:entries}

Any ideas on how I can get the information from  the simple commerce item to display in channel entries?


texts: How do I install a custom javascript on all pages before the  tag?

texts:
I'm very new to ExpressionEngine and I couldn't find a similar question already posed. I have some javascript that I need to add to every single page. What's the best way to accomplish this?

OR

Is there instructions somewhere on how to install Google Tag Manager?

Thanks!


texts: EE automatically rewrites URL when trailing slash is missing

texts:
I noticed that EE rewrites a URL like

http://www.example.com/parent/child

(no trailing slash) to

http://www.example.com/parent/child/?/parent/child

If I append a trailing slash there is no rewriting.

Initially I assumed it was because for one parent there was a folder of the same name. Then I noticed EE does this for all children (segment_2) if the trailing slash is missing.

How can I prevent this?

I am using EE 2.6.1 with index.php suppressed using the include method, and static Stash cache (https://github.com/croxton/Stash/wiki/Static-cache-setup)

Thank you.

Edit 1: @Robson: Good thought. I totally emptied the template used for www.example.com/parent, and it still happens. The same effect: If I have a trailing slash after "parent" all is ok, if I omit it I get a redirection to www.example.com/parent/?/parent.

Edit 2: After some more investigation I found that the issue is related to my host. It forces query strings, hence I have a "?" after "index.php" in my htaccess file. When I remove the question mark the issue goes away, but now all pages just display "No input file specified". Hmmm...


texts:
What is the difference between a global variable, a snippet and an embedded template?

When and where should I be using each of them?


texts: Tax handling on Cart Throb price modifiers

texts:
I was wondering whether anyone could shed some light on how Cart Throb handles taxes on price modifiers? Are they tax inclusive or exclusive? We're about to launch and just spotted an anomaly in how taxes are handled.

We're charging a global tax rate (UK VAT @ 20%) on all products, and entering product prices ex VAT. Trying to set up a product with 3 options however suggests that taxes are either being ignored or incorrectly calculated. It could also be a combination of incorrect tags on my part :-)

The scenario is this:

Base price: entered as £8 ex VAT
Modifiers: entered as £0/£2/£7 - again, ex VAT.

I can use this code

{exp:cartthrob:item_options entry_id="{entry_id}"}

  Options:

      {select id="packsize"}
      <option {selected} value="{option_value}" data-price="{price:plus_tax}">{option_name}</option>
      {/select}

{/exp:cartthrob:item_options}

and the data-price attribute shows the price uplift with tax included. This suggests the modified prices should be entered ex. VAT. When I add to the basket though, VAT is added to the base price only and not the uplift.

So a price with £8 base + £7 modifier only has tax on the £8 giving a total of £16.60 instead of £18. My cart field is using {item_price:plus_tax}.

Has anyone had experience with this?


texts: One category randomly outputting all articles

texts:
I'm currently developing a site and have run into a little bug, all but one category are working fine, the one that isn't working outputs all product entries from the whole site, any ideas why this would happen? My code is as follows:

{if segment_2 == "category"}

  {embed="site/_header" page_name="product_list"}

  {exp:channel:category_heading channel="products"}

{category_name}

  {/exp:channel:category_heading}

    {exp:channel:categories show_empty="no" {if segment_1 == "cave"}category_group="3"{/if}{if segment_1 == "climb"}category_group="4"{/if}{if segment_1 == "camp"}category_group="5"{/if}{if segment_1 == "walk"}category_group="6"{/if}{if segment_1 == "clothing"}category_group="7"{/if}{if segment_1 == "accessories"}category_group="8"{/if}{if segment_1 == "brands"}category_group="2"{/if}}
        {category_name}
    {/exp:channel:categories}

    {exp:channel:category_heading channel="products"}
        {if category_description}

{category_description}

        {/if}
    {/exp:channel:category_heading}

    {exp:channel:entries channel="products" limit="50" paginate="bottom"}

      {exp:store:product entry_id="{entry_id}"}

{title}

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

      {/exp:store:product}

      {paginate}
        {pagination_links}

            {first_page}

First Page

            {/first_page}

            {previous_page}

Previous Page

            {/previous_page}

            {page}

{pagination_page_number}

            {/page}

            {next_page}

Next Page

            {/next_page}

            {last_page}

Last Page

            {/last_page}

        {/pagination_links}
      {/paginate}

    {/exp:channel:entries}

{/if}

You can view the problematic page here, it doesn't output the category title or anything, suggesting it can't find the category, but the category is being output from both the main navigational dropdowns and the secondary navigation on the left, there are 5 products assigned to this category too:

http://inglesport.rmdyapps.co.uk/cave/category/static-ropes

here's how a similar page looks:

http://inglesport.rmdyapps.co.uk/cave/category/rope-descenders


texts: White screen after log in to Control Panel, after upgrade from v2.9.2 to 2.10.2

texts:
After an upgrade from 2.9.2 to 2.10.2 the site was working normally in the browser, and the system login page accepted credentials.  After that was a white screen.
Turning on error logging in admin.php produced the following error:

A Database Error Occurred
Error Number: 1054
Unknown column 'login_state' in 'field list'
SELECT member_id, admin_sess, last_activity, fingerprint, sess_start, login_state FROM (exp_sessions) WHERE session_id = 'b0e0c13fd814f8ce72c88a242ac269705f9c5df5'
Filename: libraries/Session.php
Line Number: 731

The database table exp_update_log indicates successful update to v2.10.2


texts: Upload File in module from a location not an upload form

texts:
I am writing a plugin that will take files that have already been uploaded via ftp to the server and I want to move them with the file upload class so they get added to the database and put into the correct directory which is not where they are originally uploaded via ftp.  Currently this is a manual process and I am trying to automate it as it happens a couple of times a week.

I see main ways of potentially doing this.

Using the file upload class.  My issue here is I want to pass in the current location of the file to ee()->upload->do_upload() but it looks like I can only pass the field name as if the file is coming as a post request.  The only work around there I see is to take the file and do a curl post request where I do the upload.  Hoping not to have to go that route as it seems more like a hack.
I could manually move the files which is easy enough but I need to do a folder upload folder sync which is something I see you can do from the admin gui but I have not see a way to do it from within a plugin.  I am guessing once again I could do a curl request to run that process but I am guessing the user has to be authenticated and I want this to run as a cron so their will not be a user logged in when it runs.

Questions I have.

I am looking if anyone knows how I can send the file location and not field name if possible for do_upload().
Is there a way to trigger folder sync from add on for user not authenticated.
Any other ideas on best practice for this.

Thanks

Running EE 3.5.6


texts:
I'm a little confused at how to use the dynamic recipients parameter for Freeform next.

I've provided the emails using dynamic_notification_recipients="email_1|email_2" and specified dynamic_notification_template="standard" but there doesn't seem to be anymore documentation about how it's chosen. What do I have to name the field? What value do I have to provide, the email address or something else? Or do I need to use this in combination with the recipients field in composer?


texts: How to provide a Renew option for DevDemon Subscriptions?

texts:
I cannot find how to offer a Renew process. There is no documentation about a {exp:subs:renew} or similar tag. The tag exists as I can see it in the subs file system, and blank output occurs to the screen (as opposed to an error about not being able to process the tag).

Does anyone know how to offer a renewal process?

I would expect the renewal process to allow an active subscriber (with auto renew on or off), or a cancelled subscriber (that still have the plan left) to be able to make a payment which extends their subscription for the specified period of time.

At the moment a user can re-subscribe, but that just adds the same plan they are on with expiry set from the time they subscribe again, and it does not add the duration onto their already existing plan.

Thanks!


texts: Simple search error when no results found

texts:
I'm using simple search with EE 5.2.1. Searches work fine when there is a matching result, but I get the following error when no results are found:

Warning
array_unique() expects parameter 1 to be array, null given
ee/EllisLab/Addons/search/mod.search.php, line 1147

Severity: E_WARNING
Warning
count(): Parameter must be an array or an object that implements Countable
ee/EllisLab/Addons/search/mod.search.php, line 1147

Severity: E_WARNING
Warning
Cannot modify header information - headers already sent by (output started at ee/legacy/core/Exceptions.php:120)
ee/legacy/libraries/Functions.php, line 393

Severity: E_WARNING


texts:
I have a site we are setting up on EE 2.72, and without realizing there was a known issue it i started using the Field Editor add-on to add fields.  It was throwing some errors here and there but seemed to save things ok.

The issue I'm having is that now I'm getting some fields that just won't show on the publish page layout.  I the edit layout sidebar they show as empty squares.  When you click on the squares it switches to the eyeball but doesn't actually show in the layout.

I tried removing the field and adding it without field editor, removing field editor, and even going into the database exp_layout_publish table and removing the field layout json completely but no luck?

Any ideas?


texts: Posting to a page containing custom module from external site gives '403 Forbidden'

texts:
I have a template containing a tag from a custom module that processes POST'd data from an external site, but when the page is called it responds with a 403 error (so the logs from the external site tell me anyway).

If I remove the tag, the page will display, but with the tag in it I get an empty page.

Changing the request to a GET is not an option.

EE : v2.5.2


texts:
I recently installed the Forum module, but now I discover (shortly before launch!) that the ‘permissions’ function does not work.
I have 2 membergroups A and B, and two Forums F1 and F2.
Group A must see and post in forum F1 and F2 Group B can only see and post in F2.
This does not work.
Obviously the normal if and ifelse conditionals and logged_in_member_group do not work in the Forum module.
How can I find a solution? Is there a fix possible? Can I hack the Forum Code and hard code these groups? It is really urgent.
Thanks a lot!
I attach a screenshot, I presumed this would work, it is really a bummer.


texts: Get categories that contain entries that are in the current category

texts:
How can I get a list of categories that share entries with the currently selected category.

Huh? Let me explain

I have a channel called Portfolio
Portfolio channel has two category groups (client and role)
I have a page listing all clients (categories)
I would like to list all clients who I have made a website (for example) for


texts: How can I add WYSIWYG/HTML content to Poll options?

texts:
I'm looking into DevDemon's Channel Polls and EE Harbor's Polls module... What my client really wants is the option to have WYSIWYG HTML content for each poll OPTION (i.e. not just the poll question).

I can get close by creating a Matrix/Wygwam field to list the content for each option, and then put the voting/selection form after that. But, what my client really wants is for the voting controls to be in-line with the HTML content for each option.

So, my questions are:

Is there a clever way to get the voting controls inline with content defined in another custom field?
Or, if not, do these polls modules allow for HTML content to be entered in the plain-text options fields?


texts:
I am getting the following errors when opening an entry with an MX Google Map field type. Map is not loading in control panel. Any suggestions on how to fix this?

ReferenceError: Can't find variable: google

 mapTypeId: google.maps.MapTypeId.ROADMAP,

TypeError: undefined is not an object (evaluating '$.mxgoogleMaps.defaults')

var opts = $.extend({}, $.mxgoogleMaps.defaults, options);


texts: Edit .htaccess File Within ExpressionEngine

texts: I have a client that wants to edit their .htaccess file within ExpressionEngine's CP as opposed to editing the file locally and FTP'ing it back to the server. Is it possible to customize EE to allow for such, that is, read in the contents of the .htaccess file and once updates are made, write the contents back to the file and save on the server's hard disk? I searched Devot:ee and didn't see any add-ons or plugins to do so. Thanks in advance...


texts: Installation’s version (3.3.1) is not consistent with the reported version (3.3.3)

texts:
A couple of weeks ago I updated ExpressionEngine from 3.3.1 to 3.3.3. I followed the update guide https://docs.expressionengine.com/latest/installation/update.html exactly when doing this.

The upgrade went fine and in the footer of the Admin panel it is showing the version as 3.3.3.

Today I logged in and at the top of the Admin panel it has a warning message which says:
"Your ExpressionEngine installation’s version (3.3.1) is not consistent with the reported version (3.3.3). Please update your installation of ExpressionEngine again."

The footer is still showing that version 3.3.3 is installed.

Does anyone know why this would suddenly start appearing and what to check to see the actual version installed? As far as we're aware no rollbacks or files in system/* have been modified other than template files and some CSS used by the frontend of the site.


texts: Making a select-type custom profile field actually *required*

texts:
I am running a pair of sites using MSM and although I have a separate registration form for each site (i.e. different template, different URL), there is no way of actually linking a newly registered user to the site they registered for - as all new users end up in the same "Pending" list, regardless of which form they filled in.

This is one of the strange features of MSM, where some membership features are site-specific and others are not.

So, I want to create a required custom profile field that will force users to specify which of the two sites they want to join.

The simplest way to do this, it seemed to me, without forcing the user to write out the site name by hand, is to have a drop-down select menu:

Label: Which site?
placeholder: [select a site]
option1: site1
option2: site2

Unfortunately there seems to be no way to make select-type profile fields "required" as the system never perceives them as empty - even if I leave the placeholder position empty.

Can anyone suggest a way around this problem?

Or suggest an alternative way of linking new registrations to the site they have registered for?

(I know that I could have them placed automatically into a site-specific member group, but then you lose the ability to activate multiple users while sending an activation email - which you get when using the "Pending" list; something my client wants to keep).

Many thanks

Chris


texts:
I have transfered a site to a new server and at the same time incorporated Focus Labs Master Config approach.

Now, since the site is running on the new server the CP loads really slow sometimes. It feels kinda like the URL is not being resolved correctly: link is being clicked, loading starts, it hangs, then new page "pops" up and loads normally. I hope you get the idea.

Until today I couldn't really find a pattern to this behaviour. Most of the time it works as expected but then once again I get this lag.

Also I am not saying that it must have anything to do with the new server or the Master Config. Those are just the two biggest changes I made.

However, I activated the EE Debug Toolbar 2 days ago and just got one of those lags after clicking on Template Manager. That's what it looks like:

After clicking on the 5th tab (with the 11.0590s) this is what's in there:

When I go back to Home and click Template Manager again I get a load time of 0.1978s.

I don't really know how to interpret the above values from the Debug Toolbar. Does somebody know or see what causes these lags?

Thanks and Cheers,

Marc


texts: Easy way to check if a category's selected within Channel Form?

texts:
In my situation a person will be editing their record within Channel Form. They have a photo field, but I only want to display it if the person is NOT in a particular category. The categories list has about 50 categories, so if possible, it'd be great to do something like:

{exp:channel:form...}

if category != "bad category"
show field:photo

{/exp:channel:form}

Any ideas on the easiest way to accomplish this? Thanks a million for any tips.


texts: Photo Frame add-on -- customize alt attribute?

texts:
I just installed the Photo Frame EE add-on and I'm really impressed with the image editing functionality. I'm unsure, however, as to whether it's possible to include a variable in the image alt attribute? Before installing Photoframe, my EE template markup was as follows for the image field in question:

After integrating Photo Frame as the field type for {item_photo}, I changed the EE markup as follows:

    {item_photo}

Photo Frame generates the full  markup, and creates an alt attribute from the name of the published channel entry. I'm wondering how I might customize the value of this attribute, as I've done with my original EE template markup.

Thanks for any assistance here from those who may be using the Photo Frame add-on; and please let me know if my question is unclear in any way.


texts: Channel Entry Model Not Saving Custom Fields

texts:
EE 5.2.4

I am using the ee model class to save channel entries via AJAX.

Everything is working well except for custom fields, which don't save.

Here is the code:

      $entry = ee('Model')->make('ChannelEntry');
      $entry->title = $title;
      $entry->url_title = $url_title;
      $entry->site_id =  ee()->config->item('site_id');
      $entry->author_id = ee()->session->userdata('member_id');
      $entry->ip_address = ee()->session->userdata['ip_address'];
      $entry->entry_date = ee()->localize->now;
      $entry->edit_date = ee()->localize->now;
      $entry->custom_field = $custom_field_value;
      $entry->channel_id = $channel_id;
      $entry->save();

Everything works except for the custom_field part. It will create the new entry and save all of the correct data, but just not that.

Is there a step I'm missing?


texts:
I’m kind of lost on what’s going on here. We are trying to install EE and are getting the error “Unable to connect to your database using the configuration settings you submitted”. I’ve installed many instances of EE and never had an issue with this, but never on IIS. So my first guess is that IIS is the culprit in some way. Side note, I had to install PHP and MySQL Server myself, both of which I’ve never had to do before, so there could be something there as well.

In an attempt to remove variables from the equation, I wrote a quick php script to connect to the database with the credentials I supplied the EE Wizard and was able to successfully connect and write to the database.

I’m not sure what this tells me though, other than it has something to do with how EE is attempting to connect to the database.

I’m not expecting a definitive answer here, just a direction. Any help, guidance or hell even suggestions are greatly appreciated.

ENVIRONMENT:
- IIS - Windows Server 2016 Data Center
- PHP 7.3.5
- MySQL 8.0.16 - MySQL Community Server
- EE 5.2


texts: Exp-resso store: coupon code including VAT

texts:
I just found out that the value of my coupon is without tax.
Just like all the products in the store.

However, i've sold the coupon code including tax, so there's something not quite right.

How can I let customers redeem a coupon code after taxes have been calculated?


texts:
I know I have come across this before but the solution is escaping me. I have a template and a channel lets call it widgets. If I go to the URL /widgets/ I want it to show all the entries of channel="widget" no problem. Now if i have a url of widgets/a-black-widget then I want to show just the specific info for just a-black-widget. Again no problem. The issue happens when I want to redirect someone who enters a url of /widgets/nonesensevalue meaning an entry that doesnt exist. HEre is my code.

{if segment_2==""}
  {exp:channel:entries channel="{segment_1}" limit="8"}
    <!--Code showing article list-->
  {/exp:channel:entries}
{/if}
{if segment_2!=""}
  {exp:channel:entries channel="{segment_1}" limit="1" require_entry="yes"}
    {if no_results}{redirect="404"}{/if}
    <!--Code that shows individual article-->
  {/exp:channel:entries}
{/if}

The problem is even when you go to /widgets the redirect fires. If I recall correctly this is because even though the conditional if segment 2 is not empty is untrue the parser still goes the channel entries tag anyway and as soon as it hits the redirect it fire.

So the question is how would you implement a 404 for this example.


texts: What is parse order and how does it affect how my template is coded/rendered?

texts:
What exactly is parse order and how does it impact my template code and whether I should use embedded templates, global variables, snippets, low variables, stash or any other method that I may not have heard of yet.

Specifically when would I want to use early parsing vs late parsing with Low Variables. Why not just have everything early parsed?


texts: How to output Transcribe language in Search Results?

texts:
I need to filter search results on my expressionengine website, I currently have the transcribe plugin and am trying to get it to work with the ee default search tool so that the results are only in the current language chosen.

In the results page though i can't seem to output the language the entry is in.
I guess I need to modify the core of search module, but simply don't have time.

Is there a simpler way of doing this?


texts: Displaying categories in multiple columns

texts:
I'm using a safecracker form to edit a channel entry. I needed checkboxes to display which categories were assigned to the entry. I've achieved this using the code below

    {exp:safecracker channel="projects"  entry_id="{segment_3}"   return="/projects/detail/{segment_3}"}
                       {categories group_id="4"}

 {category_name}
  <input type="checkbox" name="category[]" id="{category_name}" value="{category_id}"{checked}>

       {/categories}
{/exp:safecracker}

Here comes my problem. I need them to display in multiple columns, not just one long list - originally I was using exp:channel tags with show="" to display some of the categories and then repeating it in another div with the rest of the categories.

{exp:channel:categories channel="projects" category_group="4" show="14|15|16|17|18"}

{exp:channel:categories channel="projects" category_group="4" show="19|20|21|22|23|24"}

However the page only remembers the checked categories if I use {categories} instead of {exp:categories}. The documentation says I can still use {categories show="14|15|etc"} but it doesn't work.

Anybody have any ideas of what I'm doing wrong? Thanks!


texts: Is there any way to convert a Matrix field to a Grid field for existing entries without losing any data?


texts:
So if you may or may not know, Google rolled out Amp'd pages and displaying these websites that are 'Amp ready' higher on the search results. Without getting into the details of Amp, we need to change a few html tags (thanks Google).

The problem we're facing right now is changing <img src=""> tags to <amp-img src="">. We're using WYGWAM and CE-Image and allowing authors to upload images to the main content area. On the template side of things, we're wrapping the main content with ce_img:bulk to resize all images.

Is there a way to change the img tag with amp-img tag?

{exp:ce_img:bulk max_width="780" bucket="site" hide_relative_path="yes" attributes="itemprop='image'"}
   {content}
{/exp:ce_img:bulk}

Amp documentation: https://ampbyexample.com/components/amp-img/

Any help would be great!


texts: Matrix half of the total rows, output code at N row_count

texts:
I have a matrix field where the client can add as many rows as they like.

The rows get output to a 2 column layout:

Matrix row 1

Matrix row 2

Matrix row 3

Matrix row 4

So the template code would be:

{matrix_field}

{matrix_data}

{if row_count == (total_rows / 2)}

{/if}

{/matrix_field}

Of course {if row_count == (total_rows / 2)} doesn't exist. How can this be achieved?


texts: Return only entries which have the same custom field as the current displayed entry?

texts:
I'm trying to display a list of links dynamically based on the current entry that is being displayed. with code along the lines of this:

{exp:channel:entries channel='tour' disable="category_fields|member_data|pagination" dynamic="no" show_expired="no"}
    {if tour_name=="tour_name"}

{tour_date_start format="%j %F"} &ndash; {tour_date_end format="%j %F %Y"}

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

I know that the code above won't work, but thought it illustrated what I was trying to achieve. Basically I have a series of tours and some of them have the same name. I want to display links to these ones with the same name, when viewing one of those tours. I know this would be best to use either categories or a playa field, but aren't able to go this route because some of the data is pulled in from an external database. I tried to use stash to set the current tour_name and then get it within the if conditional, but this wouldn't work either.

I wonder if it would be possible using the query module? Or another plugin? Maybe it's not possible at all?

If anyone can offer any help, I'd appreciate it. Thanks.


texts: Why are PHP and Stash variables not set as expected within EE conditionals?

texts:
I boiled my problem down to this template code on a template with "Allow PHP" set to "YES" and "PHP Parsing Stage" set to "Output":

{if 1 == 1}
  First block
  <?php echo '1 == 1 is true'; ?>
  <?php $test = 'hello'; ?>
{if:else}
  Second block
  <?php echo '1 == 1 is false'; ?>
  <?php $test = 'goodbye'; ?>
{/if}
<?php echo $test; ?>

The output is:

  First block
  1 == 1 is true
  goodbye

But I would expect the output to be:

  First block
  1 == 1 is true
  hello

I don't understand how the 1 == 1 is true line could get echoed while the variable $test gets set to "goodbye". It seems like my PHP variable assignments statements all get executed whether or not the conditional block they are in should get executed or not.

Update

This is apparently still a problem even when I eliminate the PHP from the template:

{if 1 == 1}
  1 == 1 is true
  {exp:stash:set name="test"}hello{/exp:stash:set}
{if:else}
  1 == 1 is false
  {exp:stash:set name="test"}goodbye{/exp:stash:set}
{/if}
{exp:stash:test}

The output is:

  1 == 1 is true
  goodbye


texts: html structure conditional on matrix row counts

texts:
I am using zurb foundation and a pixelandtonic matrix field.
I want to do a new html row for every 3 matrix rows i.e

  {!-- something needs to wrap round this to say for every 3 rows do a new one of these

            {cf_about_us_biographies}

{cf_about_us_bio_name}
{cf_about_us_bio_title}

                            {cf_about_us_bio_biog}

            {/cf_about_us_biographies}

My brain is fried, i want someone to help me as what i have been doing is stupid!


texts: {exp:stash:get_list} sorting by a numeric column

texts:
Having tested {exp:stash:get_list}, I found out that any numeric column used as a reference for sorting is evaluated as a string, not as a number.

So I get something like this in order,

1
10
11
12
...
2
20
21
22
...
3

How do I make it so that it evaluates that column as a number?

Example Code

{exp:stash:set_list name="message_list_items" parse_tags="yes"}
    {exp:example:message
        conversation_id="{segment_2}"
        limit="{limit}"
        paginate="bottom"
        sort="desc"
    }
        {if '{count}' == 1}
            {stash:opening_tag}
            {!- Some Stuff here --}

            {/stash:opening_tag}
        {/if}
        {stash:message_order}{count}{/stash:message_order}
        {stash:message}

                    {!- Some Stuff here --}

        {/stash:message}
    {/exp:example:message}
{/exp:stash:set_list}

{exp:stash:get_list
    name="message_list_items"
    {if '{embed:arbitrary_condition}' != 'y'}
        orderby="message_order"
        sort="asc"
    {/if}
}
    {if '{count}' == 1}
        {opening_tag}
    {/if}
    {message_order}
    {message}
{/exp:stash:get_list}
{/ol}


texts: Allow certain members to view certain products in Cartthrob

texts:
I'm looking to give members the ability to buy photography specific to them.

I was wondering if there is a way in Cartthrob for me to display certain products to certain members via playa field containing a member? OR (this might be even better) drop files in a P&T Assets directory and assign that directory to a specific Member? The photos (product) will always be the same price across the board.

I guess I'm kind of looking to do both (for 2 different projects) - One with the ability for specific members to buy specific photos and another where specific members can see specific products only.

Any thoughts?

Thanks!

Best,

Jon


texts:
I wonder if anyone can point me in the right direction or even tell if there is something than can do the following.

Basically i want a postcode lookup that will return an entry based on territories/location so for example:

I type my postcode in "LL28 4AU"
Returns an entry that relates to that postcode
if the postcode is not covered return a message saying sorry your area is not covered.

I dont want it to work from radius though because if there is an entry that is technically closer to the postcode but isnt actually covered by that entry and is actually covered one slightly further i would have a problem.

I need it to relate to terriroties / postcodes covered.

Sorry for badly worded question i cant find an easy way to say what i need.

Thankyou to anyone that can help.


texts:
THE SHORT: I am looking for the sql query I need to run in order to change the status of an entry. Any help would be appreciated.

THE LONG: I have two sperate channels and they are NOT linked via a relationship field, however if the status of an entry in Channel A is closed and a field in Channel A matches a field in Channel B I need to update the status of the entry in Channel B.  I plan on running this via a cron to automatically update these entries and I dont want to require my users manually change the entries.

Thanks.