texts:
I have a channel which searches by various custom fields and returns 4 results.

What I want to do is to order them by 1,2,3,4 etc and have a custom field to order them with to that effect. No problem there.

Where the question arises is if only 3 entries are returned - there have to be 4 as each entry equals a time: 1 - 10.00, 2 - 10.30, 3 - 11.00 and 4 - 11.30.

So we need to have a conditional to show one of these but can't actually test against one as it doesn't exist. Ie if no-one has submitted an entry for 10.00 I want it to show "AVAILABLE" or some such. Doesn't seem that easy to do....


texts: Nested categories without ul or other formatting

texts: We have a 3 level category structure set up for a site. I would like to output these categories as JSON, while keeping the structure intact. As far as I can see, EE's native categories only allow outputting category hierarchy as ul or ol. I also tried Child categories & GWcode categories plugins, but at maximum I was able to output the two top levels only. Anybody have any idea how to get this working?


texts: I am using Solspace Calendar. I would like to change the date format from Sunday, Monday to Sun, Mon  Can anyone help me with this?


texts:
I'm wondering what the EE design pattern, or best practice, is for cross-references.

I have a products channel that needs to be cross-referenced with a number of available colours, for instance.

Do I create an All Colours channel (contains all possible colours), and a Product Colours cross-reference channel, with relationships to the Products and All Colours channels? And let the user create the cross-reference by selecting the product and colour, then selecting the same product and another colour? Or is there a better way? (Please, please, tell me there's a better way.)

I'm open to writing add-ons. In fact, I'm researching that now. Not crazy about the hooks docs so far.

Thanks for your help.

Update: Thanks for the replies. You asked for more detail; so here it is.

Colours are just one of the cross-references I'm dealing with. The colours just have to point to a colour swatch (image) for display purposes. So a category could be used. Plus, with the category fieldtype add-on, we can make that category a required field.

But as I said, we have other cross-references to deal with. Each product is in a product type category (and yes, they're implemented as categories). Each product type has an image associated with it. So far, just like the colours. But then the user decided that some product types might have two images, and the user needed to select which one would be associated with each product.

This one is making my hair turn grey. If Playa is the answer here, I'm happy to get it. But what are these tags you speak of? I haven't heard of them before. When I did a search, I got Channel Entries Tag, which is just the template tag.

Thanks again.


texts: Google Maps for EE Different on Front End to Back End

texts:
Does anyone know if there has been changes to Google's Map API or some other things that would cause previously working Google Maps for EE plugin maps to being plotting/viewing correctly in the control panel (field type) but not on the front end.

No changes have been made to these installs since the beginning of the year.

EXAMPLE ONE
Maps now have multiple locations points (should only have one) and no longer centre
EE 2.5.3
GMforEE 3.1.0
http://bit.ly/13LJq9Z (click the 'view' icon to review details and map)

EXAMPLE TWO
Maps now have multiple locations points (should only have one)
EE 2.5.5
GMforEE 3.2.1
http://bit.ly/1d5ztHh

Any advice would be greatly appreciated


texts: CartThrob: Setting up different state/region options in checkout process

texts:
I've got a site running CartThrob v2.7. For the checkout process, I'm using {exp:cartthrob:state_select} and {exp:cartthrob:country_select} tags to help populate the checkout form's "State" and "Country" select menus. Since the site in question primarily deals with American customers, those menus default to U.S. options.

But is there an easy way to use those same tags to make the form work with non-U.S. options? Basically, I'd like the user to be able to select "Canada" from the "Country" menu, and have the "State" menu switch to displaying Canadian provinces.

I know CartThrob can handle different locales but the docs implied that that's primarily for initial config. I'm looking for something "on the fly." Right now, it looks like I'd have to manually build the "State" and "Country" menus instead of using those CartThrob tags, make sure they automatically select the appropriate options for any currently logged-in users, and then use JS to repopulate the "State" menu based on what's selected in the "Country" menu. Which is fine, but I was hoping for an easier solution.


texts:
These would be considered pre-sales questions:

Can I add products to my cart via ajax in CartThrob?
Can I add a custom field where I can store some JSON for each product in my cart?
If I add the custom field, is it accessible at all stages of checkout, from cart item to the Thank You page and Order Confirmation Email?
How customizable is the Discount engine? I need to have discounts by SKU.
Can we have one product and modify it's attributes, like price, SKU, etc before it is inserted into the cart and have it retain that info through out the process?


texts:
We are using LowNoSpam and it is working well. Very few spam comments get through. However the settings flagged them as spam and kept them closed. The person who was reviewing these didn't do that since November and since then spam bots have been having a blast. It now has 35,984 spam comments.

We have changed some settings (must be logged in to leave a comment) but we do want to purge the ~36,000 spam comments. There may be a few legit comments in there, but they are ok with just letting them get deleted.

My idea is to go into the database and delete all comments with a status of "c" in the table "exp_comments". I did this on my local db and it seems to work. However I've also tried some database shortcuts that didn't work out so well (creating custom member fields via the db) because there are links to this data elsewhere.

Is there anything else I need to do other than delete the "c" comments in exp_comments?


texts: How do I get the full uri of a selected entry from EE's Relationships field?

texts:
I'm trying to use EE's Relationships field to select a page and get the full URI of that page.

Basically I want to be able to allow the client to select an entry from several different channels, and link directly to that entry.  Maybe noteworthy - this site does not use structure or the pages module.

Here is the code I'm trying to use, where link_sbb is my Relationships field name:

{exp:channel:entries channel="sidebar_banner" limit="1" dynamic="off"}
   Learn More
{/exp:channel:entries}

I can get url_title to work but I don't want to use path="" as the path's can be different, they can select pages from different channels/sections of the site etc.  The permalink and page_url variables don't return a value either.

Is there an easy way to achieve this with EE's Relationships field?

EDIT:

Examples of possible URL's

/products/category
/products/category/subcategory
/products/category/{url_title}
/products/category/subcategory/{url_title}
/applications/category
/applications/category/{url_title}
/resources/category
/company/category
/news/category
/news/{url_title}
/single-page


texts:
We're having to use structure to do what would normally be pretty straight forward, now need to know if this scenario is even possible:

Main URL Structure:
discipline01 URL://discipline01
  --Child01  URL://discipline01/Child01
  --Child02  URL://discipline01/Child02
discipline02
  --Child03
discipline03
  --Child04

"discipline0X" are all top level "pages", "Child0X" are sub "pages".

I initially set this up as Pages with child pages (as per above) and it worked. Now word is we need to keep these "Child" items but have them exist in multiple "top level pages" like this:

discipline01 URL://discipline01
  --Child01  URL://discipline01/Child01
  --Child02  URL://discipline01/Child02
  --Child03  URL://discipline01/Child03
discipline02
  --Child01  URL://discipline02/Child01
  --Child03  URL://discipline02/Child03
… etc

No amount of faffing around yields the results I seek. The top level "pages" form the basis for the main navigation (just to compound things). Can't create template.groups as top level items may change.

Categories are the pseudo logical solution but Structure with Categories seems umm, inadequate ?

Ideally, Structure should manage all this content.

"Listings" are great except they only apply to one item.
"Assets" - dont fit

I'm about to punch something, please, any inisghts welcome!


texts:
I'm just learning EE and I have the following example url, http://mydomain.com/work/preview/clientname

where I want clientname to match a channel field I have setup ("client_name") and to pull in channel content only if it matches that channel field.

For example, http://mydomain.com/work/preview/google, would display channel content if the specified channel field "client_name" for a particular entry is "google".

I know how to use the following to pull in content from the channel "videos":

{exp:channel:entries channel="videos"}
    {title}
{/exp:channel:entries}

...but how do I accomplish this for different url segments?


texts:
I have a language file in my foo add-on

<?php

$lang = array(

/* ----------------------------------------
/*  Required for MODULES page
/* ----------------------------------------*/

'foo_name'=>
'Foo',

'foo_description'=>
'Adds Foo information data in the field',

//-----------------------------------------//

/* END */
''=>''
);
?>

I got this error

Parse error: syntax error, unexpected T_VARIABLE in /home/test/public_html/system/expressionengine/third_party/foo/language/english/foo_lang.php on line 1

Any idea why this is happening? I am probably missing something obvious.


texts: PHP Syntax Error from ExpressionEngine Template

texts:
Here's some code I'm using to generate Breadcrumbs on my site. Unfortunately the client has quite specific requirements in terms of URLs, so I've had to play around with Crumbly's tag a little using an If statement:

{if segment_1 == "search"}
    {exp:crumbly:breadcrumbs custom_url:pattern="template_group/template/ignore"}
{if:elseif segment_2 == "search"}
    {exp:crumbly:breadcrumbs}
{if:else}
    {exp:crumbly:breadcrumbs}
{/if}

    {if count > 1}
        {if 1 == 1}
            &raquo;

                    {breadcrumb_title}

        {/if}
    {/if}
{/exp:crumbly:breadcrumbs}

Unfortunately, EE's template, when saved, warns me this:

  {exp:crumbly … No closing tag found. Note: some tags do not require
  closing. Please consult the module's documentation if you experience
  problems.

However I hope you can see it should just be a warning, as the closing tag is present.

Here's the main problem. When I load the page, I get this:

Parse error: syntax error, unexpected T_ELSEIF in /nfs/c09/h02/mnt/135913/domains/mysite.com/html/system/expressionengine/libraries/Functions.php(683) : eval()'d code on line 75

Any ideas?


texts: Linking to an Anchor on another page - help

texts:
Im trying the link to an anchor on another page which is possible with html but when I try in EE it is not working as it adds the last segment of my current page, like so:

Im linking from this page:

http://www.mysite.com/contact

The link from this page is:

http://www.mysite.com/#bottom

but the link gives this result

http://www.mysite.com/contact#bottom

It is adding the last segment of the current page??


texts:
EE 2.5.5, Assets 2.1.3

I'm having an issue in the CP uploading images. My EE install uses the Focus Lab config system if that makes a difference.

When I try to do an upload via the Assets Module view (file manager) I get an error message:

Could not upload the file - server returned an unexpected response. Please check the server settings.

When looking at the request (?folder=2&ACT=39...) I get this error in the Chrome Inspector preview:
    A PHP Error was encountered

Severity: 4096

Message: Argument 1 passed to Assets_base_source::update_file_info() must be an instance of Assets_base_file, boolean given, called in /Volumes/Macintosh HD/Users/iso100/Sites/gde/third_party/assets/sources/base_source.php on line 642 and defined

Filename: sources/base_source.php

Line Number: 672

Fatal error: Call to a member function kind() on a non-object in /Volumes/Macintosh HD/Users/iso100/Sites/gde/third_party/assets/sources/base_source.php on line 681

Any ideas?


texts:
Is it possible to have more than one installation of CartThrob running on one site?

Reason - I need to have Quotes and Orders stored in different Channels.

Has anyone managed to achieve anything similar?


texts:
I've got a CSS module that I only want to display on the page if there are entries in the channel.

{exp:channel:entries channel="staff" dynamic="no" limit="6" orderby="random" {gv_param_disable_default}}

{!-- don't want this part to loop but should only display once if entries exist --}

Meet the staff

        {!-- this is the part we want to loop --}

                {exp:ce_img:single src="{cf_people_photo}" width="140" crop="yes" alt="{title}"}

{title}

{if count == total_results}

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

Am I missing something blatantly obvious in my conditional?


texts:
I have some php code that I have embedded. Which seems to work fine alone on the server however when embedded I get this error.

A PHP Error was encountered

Severity: 8192

Message: Function split() is deprecated

Filename: libraries/Functions.php(679) : eval()'d code

Line Number: 221

How do I go about correcting this error?


texts: 404 ErrorDocument returns home page incorrectly

texts:
We have created http://www.macobserver.com/tmo/404_not_found — That page works.

I then added

ErrorDocument 404 /tmo/404_not_found

to our apache config. Without that line in there Apache delivers its default 404, so I know that logic works. With that line in there, though, I get our home page, NOT the 404 template. It comes in with a 404 header properly, but it doesn't display the right template.

Any ideas why? I've been beating my head on this one before posting here (as we all do, I'm sure :)

(and yes, we renamed our index.php to tmo years ago with EE 1.x)


texts:
With multiple blog listing templates: index, category, tag, archive, search-results etc - the markup for those listings never really changes between templates.

However, if we need to add something to the li for example, we need to change each template. It would be much more efficient if that li was stored once and reusable throughout our blog templates.

Is that something Stash could do and more importantly would it work where we're using Low Search.


texts: Why does a multiselect fieldtype custom field result in a DB error

texts:
I have created a custom fieldtype that uses a multiselect box. However when I save the entry in the CMS, the following error occurs

A Database Error Occurred
Error Number: 1054

Unknown column 'Array' in 'field list'

UPDATE `exp_channel_data` SET `channel_id` = '27', `field_id_108` = Array, `field_id_109`...

Any suggestions? I have checked the Multiselect fieldtype within EE and my code looks OK (I think)


texts: How do you stop the "category path" being put in URL's generated by {path=}

texts:
ExpressionEngine 3.5.10.

I am outputting a specific list of categories (category_group="1") from a channel of training courses (channel="training"). Followed by the list of courses assigned to that category. I have then used the Grid type field to store some details of when particular courses run, their price, etc. For example:

{exp:channel:categories category_group="1" style="linear" channel="training" show_empty="no"}

    {exp:channel:entries category="{category_id}"}

        {training_booking_options}

            contact us
        {/training_booking_options}

    {/exp:channel:entries}

{/exp:channel:entries}

Wherever I use {path=""} it is outputting the category URL path in the URL. For example: contact us gives URL's such as:

http://dev.domain/contact-us/category/asia
http://dev.domain/contact-us/category/health-and-safety
http://dev.domain/contact-us/category/information-technology

I want the URL to be what I've put, i.e. http://dev.domain/contact-us regardless of the category it's within at the time the link is output.

Is this possible, or should I just abandon using path= and hardcode it like contact us?

I don't want to use any of the "category name in URL" features for this particular section of the website. But there are other sections where I do want to use it. So I don't want a solution which disables it for the entire site!


texts: Allow Guests to Upload to Directory? FreeForm PRO / EE2.6.1

texts:
This question was asked earlier and the suggestion was the devot-ee addon LogMeIn.

Can anyone clarify that this is the only option?


texts:
I upgraded an EE site to 2.6.1 yesterday and then Matrix from 2.0.8 to 2.5.5. However when
I went to Add-ons > Fieldtypes > Matrix, nothing happened. Isn't there supposed to be an upgrade script?

When I try to edit any entries, I get the following error:

A Database Error Occurred

Error Number: 1054

Unknown column 'is_draft' in 'where clause'

SELECT row_id, col_id_1, col_id_2, col_id_3 FROM exp_matrix_data WHERE field_id = 1 AND entry_id = 3 AND is_draft = 0 ORDER BY row_order ASC

Filename: third_party/matrix/ft.matrix.php

Line Number: 2912

I have tried uploading the Matrix files again and then to upgrade but still doesn't work.


texts:
I have a channel that includes a File field type. I have set two user groups to be able to upload all file types to that field. As a Super Admin I am able to upload there, but members of the other group cannot. I have set the upload directory permissions to 777 and I have confirmed that the group has permissions in EE to upload there - see attached. However, when logged in as a user of the other group, when I try to upload a PDF, I get an error that says:

  The file could not be written to disk.

The file size is far less than the max file site allowed.

Normally I would think this is a directory permissions error. Any help would be appreciated for sorting this out.


texts: Expresso-store - Comma in quantity field

texts:
It seems that if a user enters a comma in the quantity field (as in 2,000) the system ignores the figures after the comma and will add just the amount before the comma (ie '2').

Is there a way to prevent this happening?

(version 2.4.1)


texts: How to set EE to ignore a directory running a different application

texts:
I have another application running in a directory called "calculator" and I can't seem to get EE to ignore it.  When I point to the url /calculator I get a 404.

I have this in my htaccess file:

<IfModule mod_rewrite.c>
RewriteEngine On

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

I also tried changing these two lines:

RewriteCond %{REQUEST_URI} !calculator/
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]

To:

RewriteCond $1 !\.(gif|jpe?g|png|calculator)$ [NC]

Any ideas on what I'm missing here?

I double checked to make sure I don't have any url's "calculator" as well.

EDIT/Added:
- .htaccess in /calculator directory

Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on

# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# otherwise forward it to index.php
RewriteBase /
RewriteRule ^(.*)\?*$ index.php/$1 [L,QSA]

# Force the latest IE version, in various cases when it may fall back to IE7 mode
# github.com/rails/rails/commit/123eb25
# commitcomment-118920
# Use ChromeFrame if it's installed for a better experience for the poor IE folk
<IfModule mod_setenvif.c>
  <IfModule mod_headers.c>
     BrowserMatch MSIE ie
     Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie
  </IfModule>
</IfModule>


texts: Expresso Store - upload multiple discount codes to be used once

texts:
I want to generate a list of discount codes (any advice appreciated for doing this) which I can then use to offer free shipping across the site, valid up until a specific date.

What's the best way to go about creating these discounts? I'd prefer not to have to manually create hundreds of discounts all the same except for the discount code.


texts: Publish layout thumbnail file names changed after update

texts:
I recently updated a site from 2.1.x to v2.7.3

I've synced my file directories, images display on the front-end just fine. But I'm having issues with the thumbnails in publish layouts (they show in the file browser and file manager fine as well).

So for example, this is what I see in the admin:

The path to the missing image is /images/uploads/instruments/_thumbs/TEN_ANN_FA.png

On my server, the file is definitely there, but it has "thumb_" appended to it: /images/uploads/instruments/_thumbs/thumb_TEN_ANN_FA.png

This is the same case for ALL of the thumbnails in the publish layouts.

Any ideas why this has happened?  And is there somewhere in the config I can manipulate the thumbnail file names so that it finds them correctly?


texts: List entries which have no category assigned

texts:
Anyone know how to do this?

Obviously I can pass in a category ID into the channel loop to get entries within that specific category. But I'd like to get a list of all entries that don't currently have any categories assigned to them.

This purely requried as a reference, I've done a massive import and need to generate a working list so my editoiral guys can go in and categorise those entries which aren't assigned to anything.


texts: Can P&T Assets read/use image EXIF data?

texts:
Seems like a no-brainer feature to have, specifically regarding the date and location properties of images.

And yes, I know I can use VZ Exif, but for performance reasons, I'd prefer to have that metadata in Assets' DB instead of reading the data from the filesystem every time.


texts: Exp:resso Store Inline Error handling restore previous values

texts: Basically my problem is I wanted to retrieve the input values prior to submitting the cart so when an error is encountered, the values entered by the customer will still be in the form. Something like how the Codeigniter form validation library does. Is this possible?


texts: Enable "Login as Member" for Additional Member Groups

texts:
I'm trying to enable the "Login as Member" functionality for a non-Super Admin member group. Here's what I've done so far:

In /system/expressionengine/controllers/cp/members.php, line 534, I changed to:

if ($this->session->userdata('group_id') != 1 || $this->session->userdata('group_id') != 6)
        {
            show_error(lang('unauthorized_access'));
        }

In /system/expressionengine/controllers/cp/members.php, line 594, I changed to:

if ($this->session->userdata['group_id'] != 1 || $this->session->userdata['group_id'] != 6)
        {
            show_error(lang('unauthorized_access'));
        }

And in /system/expressionengine/controllers/cp/myaccount.php, line 167, I changed to:

if( ($this->session->userdata('group_id') == 1 || $this->session->userdata('group_id') == 6) && $this->id != $this->session->userdata('member_id') )
            {
                $vars['login_as_member'] = TRUE;
            } else {
                $vars['login_as_member'] = FALSE;
            }

However, after doing this, when I click the "Login as Member" link while logged in to either member group, I get this error:

  You are not authorized to access this page

Any suggestions on what else I can do to get this working?

EE 2.6.1

P.S. Yes, I'm documenting this! :)


texts: Multiple custom matrix field in channel form issue

texts:
Working with Channel form, I have encountered some problems when working with multiple Matrix fields in a single edit form.

[EE v2.7.3 and Matrix 2.5.10]

When I work with "native" channel form fields {field:field_name} everything works fine and I can edit all matrix fields and post data.
When I try to use the "custom code" below (example on MetaQ), only the last Matrix field is working. When viewing source, the problem seems to be that all matrix fields before the last one get the {row_id} and the number of rows of the last Matrix in the form (the one with the highest order value in the field group they both belong to).

The template :

<!DOCTYPE html >

    {exp:channel:form  channel="test" entry_id="34"}

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

    URL Title
    <input type="text" name="url_title" id="url_title" value="{url_title}" maxlength="75" size="50">

    {cf_couleur}

      <input type="hidden" name="cf_couleur[row_order][]" value="row_id_{row_id}" />
      <input type="text" id="cf_couleur" name="cf_couleur[row_id_{row_id}][col_id_26]" value="{couleur1}">

  {/cf_couleur}

   {cf_forme}

      <input type="hidden" name="cf_forme[row_order][]" value="row_id_{row_id}" />
      <input type="text" id="cf_forme" name="cf_forme[row_id_{row_id}][col_id_27]" value="{form1}">

  {/cf_forme}
    {/exp:channel:form}

The matrix generated in the browser :

  <input type="hidden" name="cf_couleur[row_order][]" value="row_id_184" />
  <input type="text" id="cf_couleur" name="cf_couleur[row_id_184][col_id_26]" value="{couleur1}">

  <input type="hidden" name="cf_couleur[row_order][]" value="row_id_185" />
  <input type="text" id="cf_couleur" name="cf_couleur[row_id_185][col_id_26]" value="{couleur1}">

  <input type="hidden" name="cf_forme[row_order][]" value="row_id_184" />
  <input type="text" id="cf_forme" name="cf_forme[row_id_184][col_id_27]" value="cube">

  <input type="hidden" name="cf_forme[row_order][]" value="row_id_185" />
  <input type="text" id="cf_forme" name="cf_forme[row_id_185][col_id_27]" value="carrer">

The code above is a very simple form that I have done to try to narrow down the problem. On channel ad two matrix fields with just 1 text field in each of them.

I have compared my custom code and the code generated by the native channel form field and cannot see any difference in the field names.

I have then simply put every matrix field in their own embeds, passing the ID of the entry I am editing to the {exp:channel:entries} loop around each of them. That works fine, even with my custom code.

I would very much like to understand what is happening here, as I would rather have everything in the form and not make use of embeds.


texts: where are Server path to site's templates saved

texts:
I am working locally and occasionally have to push my files up to staging server,

The problem is when I replace the database a variable  gets overwritten and breaks my layout.

Server path to site's templates (in Template ManagerGlobal > Template Preferences)

This is not in the config.php file but if I could set it there good, either that or exclude the table when I export the database.

Thanks


texts:
I have a site using 2.5.3 .  I've moved this site to a new server and when logged onto the control panel, I get the following error on the front page of the site:

A PHP Error was encountered

Severity: Warning

Message: Parameter 3 to Playa_ext::channel_entries_tagdata() expected to be a reference, value given

Filename: libraries/Extensions.php

Line Number: 241

I've updated Playa to version 4.5.2 , but the errors are still there.


texts:
I can't get a simple GWCode Categories tag to display anything.

{exp:gwcode_categories channel="general_areas"}
{cat_name}
{/exp:gwcode_categories}

But this displays the list just fine:

{exp:channel:categories
    channel="general_areas"
    style="nested"
}
{category_name}
{/exp:channel:categories}

I'm stumped.


texts: Assets used in WYGWAM fields don't update when file is moved

texts:
I'm using Assets 2.1.4, WYGWAM 2.7.1  and EE 2.5.5.  I have a WYGWAM field, and two assets directories, one local and one Amazon S3.

In the Assets interface, I can move a file from local to S3 just by dragging (awesome!) and any Assets field gets updated automatically, even if it's within Matrix.

However, any images used in the WYGWAM field, they don't get updated to point to the new location (although other questions here like this and this indicate that they should). In the WYGWAM field, the assets I add are appearing just as raw URLs, not as {assets} tags or anything like that. Sigh.

How can I move files within Assets, and have the WYGWAM fields still point to their proper location?

Thanks.


texts: Creating a Typekit search functionality with EE and Solspace Super Search

texts:
Typekit has a nice dynamic search feature on their site which i would like to try and include in a project i am working on, www.typekit.com/fonts.

I don't mean the search box with the auto suggest, i am referring to the sidebar on the right

I have used Super Search by Solspace before and thought it would be a suitable add-on to use.

I am going to have 2 groups that i need to search / filter by, these are 'Country' and 'Sector'
So it would be like Typekit have it, just with 2 filter sections

If anyone could shed any light on how this would work and/or how i may go about this, that would be great.

Thanks


texts: What do I lose access to by turning the Member Module off?

texts: My sites tend to only have need for a few site admins and one or two super admins to maintain content. If I turn off the Member Module what do I lose access to from a template tag standpoint? What limits for using conditional logic to see who's logged in will I have? Anything else I might or might not be able to do?


texts: Is it possible to disable XSS filtering on Cartthrob?

texts:
I'm looking for some hidden configuration settings that will allow me to disable XSS filtering when using Cartthrob. The global EE config item is ignored.

Is this possible?


texts: Multi Site, Multi admins, different contents, sharing content

texts:
I want to use ExpressionEngine to build a website for a church. The church has several campuses across the USA. The church has a site and the campuses have their own mini-sites too.

Basically the church has a type of admin (A) and the campuses have another type of admin (B). B type admins can only access their content (of the campuses they own) and A type admins can access all contents and administrate B type admins. Also, B type admins can ask for content of their campus site to be on the church side (so sharing some content across websites).

Do you know of a way to do this? A plugin or so ? I'm not really familiar with EE's multi-site module.


texts: File structure for a staging site is different from production

texts:
On my current project the production site has the following folder structure:

--system
--config
--public_html
  -assets
  -index.php
  -admin.php
  -etc.

But, the staging site I need to create is different:

--system
--config
--public_html
  |
  |staging_subdirectory
    -index.php
    -admin.php
    -etc.

Both sites will have the system folder above web root and use focuslab's config setup.

Git workflow is also involved, so my best guess is to create a "staging" branch with the specific folder structure and only push to staging from that branch.

I know I can use a subdomain, but who would I set the $system_path variable located in the index.php and admin.php?  Is staging overrides the way to go?

Any ideas?


texts: How to disable the control panel ouput/view in a module, output nothing

texts:
I have written a module for expression engine with an admin control panel. I would like to be able to output some content to the screen without showing the control panel output. So just a blank screen. The purpose is I am trying to use the buffer, ob_start() etc, to put put content live on the screen as its being processed.

But by default the EE CP is called, and its called AFTER my script is run, so I think this is preventing the buffer from working. All I see is the final output and not the output as its being processed. It waits for my script to finish and then shows the content in the control panel view.

Is there a way to disable using the control panel view at all, and just output a blank screen? For example:

function export()
{
    echo 'I only want to see this and not the EE control panel!';
    echo 'But I see the control panel view below my content';

}

I cannot use exit() because this too waits for the script to finish before outputting the final contents.
Thanks


texts: How to trigger P&T Assets to Update Indexes from a template

texts:
I have created a PDF generating tool that creates certificates for members, creates a sub-folder within a one of my file upload directories, then places the file into the new directory.
I am trying to figure out how I can run this script, then tell Assets to Update Indexes, via PHP probably, then the channel:form I have can see the new file/subfolder I have created.

In the Developer docs, there are hooks for assets_create_folder and assets_upload_file. These hooks look like they work in the opposite direction to what I want.

I want to tell Assets to index new folders and files that I have generated.

Is there any way to do this using PHP in a template without building an extension?

Thank you!


texts:
I'm just upgrading a site from EE1 to EE2 and this code is no longer working in EE2:

{exp:channel:entries}
    {matrix}
        {playa}
            {title}
            {matrix}
                {deep_value}
            {/matrix}
        {/playa}
    {/matrix}
{/exp:channel:entries}

{title} displays fine, but the {deep_value} does not. This used to work in EE1, does anyone know of a work around?


texts:
I need users to select certain locations from a (possibly) tree view UI. The tree view might contain something like a list of states, with each state with a list of counties, with each county with a list of ... and so on.

Later on, I need to be able to display Channel entries wherein certain items in the tree view were selected. For example, display all Channel entries where "City 1" or "City 18" were selected.

Is there a EE or addon FT solution for this?


texts: PHP doesn't work with Relationship field

texts:
I’m having trouble embedding PHP into a template and having anything on the page render, and I assume it’s because I’m working with a Relationship field.

Just as an example, this works:

{portfolio_projects}
<?php echo("Client A"); ?>
{/portfolio_projects}

and this works:

{portfolio_projects}
{portfolio_projects:client_name}
{/portfolio_projects}

but this does not (I just get a blank page with empty html and body tags):

{portfolio_projects}
<?php echo({portfolio_projects:client_name}); ?>
{/portfolio_projects}

So I reckon I’m doing something wrong. Help?! (BTW, I’ll be needing to use PHP on my template to do a regex/preg_replace on strings.)


texts: Workflow: A post in one channel automatically creates a post in another

texts:
I have a customer requirement where they're asking that EE automatically generate a blog post when a post in another channel is created (e.g., we post a product and there's a blog post about it).

Aside from doing it in some funky way where I combine the channel but separate out the posts via category, I can't think of a really streamlined way to do it.

I'm guessing it could be done using ACT or something, but I'm not sure the best way to approach this. Any tips to get me headed in the right direction would be helpful!


texts:
I have a page where i want to output some quotes from certain channel within an other entries tag.

It seems to work sofar but stash is outputting the same entry over again, i wanted to use get_list for the unique parameter.

Thanks for your time and effort

Here is my code:

     {exp:channel:entries channel="ffq" status="open"}
            {exp:stash:set_list name="quotes"}
            {stash:quote}{textarea}{/stash:quote}
            {/exp:stash:set_list}
        {/exp:channel:entries}

         {exp:channel:entries channel="story" orderby="random" category="4" status="open|featured"}
          {other ee stuff}

{if count % 2 == 0}
               {exp:stash:get_list name="quotes" unique="yes"}
                    {quote}
               {/exp:stash:get_list}
{/if}
     {/exp:channel:entries}


texts:
Wondering what solutions people might have for mapping urls in multilingual sites. Our structure is basically:

en/template/english_article

Where each channel has the custom fields for each language set in this way:

field1_en, field1_es, field1_de - field2_en, field2_es

All fine but the nav is primarily by a language drop down. So someone on the page: en/template/english_article would select, say, Spanish from the menu and be taken to the equivalent Spanish page in the ES template group: es/template/english_article

This would show the Spanish content fine but the 'english article' part of the url should map to a Spanish equivalent...but this seem not so easy to do with the structure of nav by drop down - basically because the url_title will always be the same.

Has anyone run into this issue? Any workarounds or plugins to resolve it? Cheers!


texts: CPU Usage Doubled Upgrading from 2.7.3 to 2.8.1

texts:
We recently upgraded from 2.7.3 to 2.8.1 and our Apache/PHP CPU usage has skyrocketed. MySQL usage has stayed about the same... no notable impact there, but we're definitely chewing more processing time with PHP.

We updated all of our add-ons, etc., separately so I think the only thing that changed in concert with the CPU load is the actual EE Core to 2.8.1.

Anything in there that would cause this? We use eAccelerator and that's still running and caching all the new scripts, but it sure seems like it's not running. That or, more likely, something else is just not jiving right.

Any thoughts?

Thank you!


texts: Google Indexed URL Containing S= and Random Characters

texts:
When logged into the Admin of Expression Engine, and then visiting the front of the site, sometimes the URL contains an S followed by lots of characters, like this:

www.mydomain.com/S=12a33f9e958c5a998383ba60cd1539210d1fb668/my-page

I recently found out Google has indexed a page on my site containing this URL and I wondered if anyone knows why, as this is obviously quite bad.

I noticed User Session Type was set to Session, so I changed that to Cookies, but I am just concerned about how Google indexed it with the session ID.


texts: Does a channel's "Generated title" take dynamic data?

texts:
From https://docs.expressionengine.com/latest/cp/channel/tab-settings.html#generated-title

  When a new entry is created or previewed, this value will be inserted
  by default in the Title field. This is helpful if you wish every entry
  in a channel to have the titles follow a certain format. The automatic
  URL Title creating javascript for the Publish page will ignore this
  text during processing.

Anyone know if this takes dynamic data? For instance, for a channel I have first and last name. I'd like the Title to be defined as this, plus a date, not requiring my user to enter these values twice. Would I be able to have title automatically generated, like {first_name} {last_name} {entry_date}?


texts: Field Pack Fields Not Parsing in Zoo Visitor Registration Form

texts:
After an ExpressionEngine 2.5.x to ExpressionEngine 2.8.1 upgrade, I'm running into an issue on a Zoo Visitor Registration form where Field Pack fields (previously the pre-ExpressionEngine 2.6 P&T Field Pack fields) are not rendering on the page, just the template tags themselves.

This is the template code for one field:

{error:member_child_relationship}
{options:member_child_relationship}
<fieldset>
  <input type="radio" id="child-relationship-{count}" name="member_child_relationship" value="{option_value}" {if option_value == 'Parent'}required{/if}>
  {option_value}
  {if option_value == "Other"}
     Write in your relationship
     <input type="text" id="child-relationship-writein" name="member_child_relationship_other" >
  {/if}
</fieldset>
{/options:member_child_relationship}

And this is what appears on the page with the sign up form:

{options:member_child_relationship}  {option_value}
{/options:member_child_relationship}

I have the latest versions of both add-ons installed: Zoo Visitor 1.3.31 and Field Pack 2.1.1. Other fields, text and text areas, are render as expected.

Any thoughts on why this might be happening? From looking at the EE 2.8.1 and the Field Pack documentation, the syntax is correct.

UPDATE (30 March 2014)

By moving to the stock versions of the checkbox and select fields, I was able to get things up and running again but still curious why the Field Pack equivalents  wouldn't parse...


texts: Limiting entry display after a conditional

texts:
I want to display 10 entries, only if they pass a conditional.
Right now the channel tag will count all entries first, so I end up with less than 10 entries displaying (as some of those 10 don't meet the 'if').

{exp:channel:entries channel="tours" limit="10" sort="asc" orderby="departure_date"}
    {if departure_date > current_time}
         [TEN THINGS HERE]
    {/if}
{/exp:channel:entries}

I can’t use {entry_date} as my ‘departure_date’ - it has to be a custom field.

I tried an embed - but that’s not working for me...


texts: Custom marker icons (by category) for Google Maps for EE

texts:
EE v2.5.5
Google Maps Addon v3.2.2

I'm currently building a site that shows companies on a map. A requirement is to display custom POI icons per each entry's category.

Since the exp:gmap:marker tag pair sets the POI icon via the "icon" parameter, I don't have any way to pass in the entry category data.

Is there a different or better way to render these POIs that gives me custom icon abilities?

I'm currently using exp:gmap:results because the results page is displayed as a response to an address/location search with search radius specified.


texts: "File Upload" box appearing at bottom of Publish Page

texts:
I'm having an issue where the "File Upload" is appearing at the bottom of the publish page. There is quite a few JS errors in the console, but I'm unsure what files are causing this.

I though this was the same issue as:

File manager modal appearing at the bottom of publish page

But they fixed it by upgrading Matrix... But I'm on the latest version! I'm running EE.29 and ALL the add-ons are up to date.

:(


texts: Classes on list items with GWCode Categories

texts:
I've just started using GWCode Categories for the first time, and have seen it oft-cited as a go-to solution here.

I need to rely on nested output for navigation, but I need classes on the <li> (similar to Structure's output). I see that there are variables to check for "has children" and I could compare cat_url_title to my segment vars to get the "here" status, but I don't see a way to get those onto the <li>.

Are those sorts of classes supported on the <li> and I'm missing something? Or is there a way to get nested output and write my own <li> tags?

Thanks!


texts:
I’m creating a custom ExpressionEngine extension and I need to add a checkbox. I’m struggling to find the options I need to use for the channel fields API.

Currently I have:

array(
    'field_name' => 'business_for_sale',
    'field_label' => 'Business For Sale?',
    'field_type' => 'checkboxes',
    'field_order' => 25,
    'field_instructions' => 'Is there a business for sale with the commerical property?',
    'field_required' => 'n',
    'field_search' => 'y',
    'field_is_hidden' => 'n',
    'field_list_items' => "Yes",
)

I just want either a single checkbox that will act as a boolean (checked is yes, un-checked is no). Alternatively, I would settle for two radios buttons—one representing Yes and one representing No that the administrator could choose.


texts: Embed the new twitter timeline - via the CP - error 500

texts:
In a template (any template, EE 2.6.1) I try to add the new twitter timeline code (https://dev.twitter.com/docs/embedded-timelines)  but end up with an 500 error.

This is de twitter code:

Tweets by @the-username

When submitting the code I get an internal server error.

I tested the code, made a plain html file, uploaded via ftp, everything works perfect.
I use the exact same code: copy-paste it in a template and get the internal server error.

What can I do to get this to work?


texts:
Looking for a way to increase the default thumbnail size of an image uploaded via the file uploader in the CMS e.g:

At this size, it's hard to tell what is in the image itself. Ideally, we should be able to control this thumbnail size and make it bigger so you can see the image clearly from within the entry editor.

Can't seem to find any plugins or information.

Would rather avoid having to hack the core.


texts:
I have created a low variable that uses wyvern for a section of the page, although i cannot get the wyvern content to display at all.

My code to call in the variable is :

{exp:low_variables:pair var="gv-online-training"}
    {gv-online-training}
{/exp:low_variables:pair}

What am i doing wrong anyone?


texts: Relatioship custom fields hide if no entries

texts:
I am building site with EE v2.6.1 and I have following snippet in one of my template

Features

            {features}

              {features:title}

              {features:description}

            {/features}

I want to hide the whole block if there is no entry in features relationship, is there any direct way or I need to use plugin?


texts: Exp:resso / FedEx: Shipping methods empty when order is over 4 items

texts:
I'm using the FedEx extension for shipping methods/rates. However, when the cart exceeds 4 items, the shipping method options are empty. There is no {error:shipping_method} displayed when this occurs. Are there limits on the number of items or weight that the FedEx extension will calculate? Or do these limitations possibly exist in the FedEx API?

In the FedEx Rate API docs there is an error described as "660: Weight exceeds limit allowed" which leads me to believe that this may be caused by limitations within the API itself.


texts: Control Panel Redirect Loop After 2.6.1 Update

texts:
I just updated from EE 2.5.1 to 2.6.1, and now I get a redirect loop error when I try to access the control panel via admin.php.

I cleared my cookies (and started testing in incognito mode to be safe), cleared my .htaccess file, and I added cookie variables to Master Config:

$env_config['cookie_domain'] = '';
$env_config['cookie_path'] = '';
$env_config['cookie_prefix'] = 'kg_' . ENV;

But that didn't fix the problem. What else should I try?


texts: How to create development website instance to preview changes made before going live?

texts: I'd like to know if there's any way I can set up a duplicate of the live website I have running on amazon web services so that I can preview changes I'd like to make without effective the live website. So far it doesn't seem like there are any options to preview changes on expressionengine


texts: Removing index.php with add-on domain - CP urls break

texts:
I have EE Core installed in a subdirectory of my site, but it is set up as an add-on domain.

I followed the official instructions to remove index.php and the urls work if I type them manually (without index.php), but all the links generated from the CP break:

View Site link displays like this:
http://domain.me/?URL=http://domain.me/

View Template displays:
http://domain.me/?URL=http://domain.me/services and doesn't rewrite.

However, if I type in domain.me/services, the rewrite works. I can see that it's stripping the "services" segment, but I don't know why.

This is the only thing in my .htaccess:

# Removes index.php from ExpressionEngine URLs

RewriteEngine On

RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

Any help would be greatly appreciated!


texts: Editors can't access the website when it's offline

texts:
I have a member group called "Editors" and I gave permission to the editors to be able to view the website when it's offline. They could access the control panel but they couldn't access the website unfortunately.

Sometimes I face the same problem as an Admin when I try to login to my account using windows computers. I tried to use different browsers but the problem would always occur.

Please help


texts: Assets - Channel Form - Renaming files upon upload throwing error

texts:
I am using an Assets field for a single file upload to Amazon S3 in a Channel Form, with the simple form input code:

<input type="file" name="comment_attachment">
<input type="hidden" name="comment_attachment_source" value="2">

(My field name is comment_attachment.)

This works perfectly for files whose filenames do not already exist in the destination folder. However, when I attempt to upload a file that shares the same name as an existing file, I get the following error:

  Fatal error: Call to a member function getName() on a non-object in /[...]/system/expressionengine/third_party/assets/sources/base_source.php on line 656

The desired functionality would be an automatic rename to add an integer to the filename to differentiate it from other files of the same name.

I've verified the same error is taking place on my development (MAMP) and production (Rackspace Cloud Sites) environments.

EE 2.9.2, Assets 2.5, PHP 5.5.1 (dev) and 5.3.2 (production).

Thanks for any help you can offer!


texts: Matrix in Template: how to get total rows?

texts:
I need to know outside of the Matrix tag pair the total rows that it has. To get total rows within the tag pair, this works for me:

{matrix_field_short_name}

{total_rows}

{/matrix_field_short_name}

Outside the tag pair, it seems like this should work: {matrix_field_short_name:total_rows} per http://pixelandtonic.com/matrix/docs/templates. However, instead of getting an integer, I'm getting the string http://domain.com/member_uploads/_s:total_rows/slide.jpg.

My Matrix field is names images and it contains the columns image (the file) and caption (a text field).

Any idea what might be going on?

EDIT 1: Code Snippet

{images:total_rows}

{images}

{caption}

{/images}


texts: Playa 4.4.3 no longer relating to other site

texts:
I upgraded to 4.4.3 from 4.3.3. EE 2.5.5

I have an MSM install where I am relating the content of 1 field on one site to the content of another field on another site.

4.3.3 works great. Upgrade to 4.4.3 and I get the error: "No entries exist for this related channel." on the custom field when trying to publish a new entry.

I rolled back to 4.3.3 and I can use Playa in this custom field again.

Ideas?


texts: Different options and pictures in Expresso Store

texts: I'm building a store with products that have multiple designs.  I'd like to have pictures for each design, and possibly be able to click on, or have a drop down menu that would change the picture when the design is chosen.  Is this possible?


texts:
EE: 2.7.1
Structure: 3.3.12

Here's what I'm doing when I get the error below:

Created a Template group listings and a template in that group called contacts.
Created a channel contacts with a few fields.
Went to Structure CP

Channel: Contacts
Type: Listing
Options: listings/contacts

Went to EE CP to create a new entry in the contacts channel.
Entered data into fields, then in the 'Structure' tab, I selected:

Structure Page URL: [autofilled from field entries]
Structure Template: listings/contacts
Listing Channel: [selected Contacts]

And we're getting this error:


texts: Adding category data to URLs in Low Search results

texts:
I would to add category in the Low Search Url result.

On my page result appears the Channel name and the entry name:

www.mysite/recipes/hamburger

But i would insert the categories:

www.mysite/recipes/meat/beef/hamburger

I'm using this:

{exp:low_search:results query="{segment_2}"}
      {title}
{/exp:low_search:results}

I tried but without success
Thanks,

Stéphane


texts:
Here is what I have as a working example of exp:low_search:filters tag on the result page and this works just fine. One can click on a category to show or hide entries for that particular category. Just wondering if the same can be done with collections? I mean can we show all the collections found in the query on the results page to filter results?

{exp:low_search:filters query="{segment_3}"}
  {exp:channel:categories channel="video" style="linear" category_group="11" parent_only="yes"}
   {if count ==  1}
{/if}

        {if category_id IN ({low_search_category})}
         {/if} {category_name}

    {if count == total_results}
{/if}
  {/exp:channel:categories}
{/exp:low_search:filters}

Any help would be appreciated.


texts:
I'm looking for an addon that will enable me to track data from custom fields and output graph or chart type reports. I found NSM Reports but I was wondering if anyone knew of any other possibilities.

thanks
jules


texts:
after a successfull EE3 update, I also updated editor to 4.0.3. I replaced whole editor directory in systen/addons and themes. update was performed and version now is 4.0.3

when clicking on settings for editor, or editing an existing fieldtype I get this error:

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'editor_m_Config_editor_configs.id' in 'field list':
SELECT editor_m_Config_editor_configs.id as editor_m_Config__id, editor_m_Config_editor_configs.site_id as editor_m_Config__site_id, editor_m_Config_editor_configs.label as editor_m_Config__label, editor_m_Config_editor_configs.type as editor_m_Config__type, editor_m_Config_editor_configs.settings as editor_m_Config__settings FROM (exp_editor_configs as editor_m_Config_editor_configs) LIMIT 18446744073709551615

/home/thomas.hartmann/htdocs/ee3/system/ee/legacy/database/drivers/mysqli/mysqli_connection.php:119

it searches for column "id", but in my table "exp_editor_configs" the column is called "config_id"


texts:
is there a maximum number of members for EE?
I'm debating using EE to create a membership website for a yearly program.  Each year 500 member accounts would be created.

Thanks

Peter T


texts: How to hide following part if age and cost not have any value?

texts:
i am using following code for display about section i want to hide above section from left navigation when age and cost does not have any value please guide me thank you

Filter By

Age

  {exp:channel:entries channel="science_projects" search:age="1-20|21-40|41-60|61-80|81-100" limit="3" dynamic="off" sort="desc"}
  {if age != "Select Age Range"}

{age}

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

Cost

  {exp:channel:entries channel="science_projects" search:cost="Low|Medium|High" limit="3" dynamic="off" sort="desc"}
  {if cost != "Select Cost Option"}

{cost}

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


texts:
EE 5.2.6

I've written an add-on that takes date parameters and gets an order report from an Amazon seller account using the Amazon MWS API. The result for this operation is a nice, big XML object.

What I would like to do with this object is save it as a .txt file, along with a few other fields, in a channel entry.

I already have the functionality to save the result as a channel entry using the ee model class. I tried saving the object as a string in a text field but there's just too much data to do this.

What I need to know is how to take the xml object and save it as a .txt file with the channel entry.

I've played around with this suggestion but honestly I'm confused by it and there's no documentation that I can find that relates to this specific question.

This is what I'm currently playing around with. ($title has a dynamically created value)

    $file = ee('Model')->make('File');
    $file->title = $title;
    $file->file_name = $title . '.txt';
    $file->upload_location_id = '2';
    $file->save();

It doesn't save anything and isn't throwing an error so I'm not sure what I need to change. This also does nothing with the actual xml data. I need to be able to take the XML object, put it into a .txt file, and save that file with a channel entry.

I'm relatively sure there is a way to do this using the ee model class. If I'm wrong, please point me in the right direction.


texts: Low Replace inside Low search only finds first occurrence of query

texts:
i have a multi-language site setup with low search. every language has it's own collection - this works quite nice. Now i might have been a bit too excited about template partials and let the client fill in a lot of content in which he can insert all sorts of images and other stuff by doing for example "{image_12}"... this tags are now in my search-excerpts as well and i want them gone.

i try to filter them out with low replace but it finds only the first occurrences of my query. my code looks something like this:

{exp:low_search:results query="{segment_3}" status="not closed" limit="10" disable="member_data"}

{bbr-mls:title}

            {exp:low_replace find="\{.*?\}" replace="" regex="yes"}{low_search_excerpt}{/exp:low_replace}

{/exp:low_search:results}

any help much appreciate (and sorry low for bugging you on twitter - you are right, this is the place to ask.)

cheers, moritz


texts: After upgrading to EE 2.9.0 my front-end login page no longer works

texts:
Everything else works. And I can login through the back end. But when I submit the login form I get a blank page and am not logged in.

I replaced my login page with the example code on the Expression Engine Member Management page  - http://www.ellislab.com/expressionengine/user-guide/add-ons/member/index.html#login-form-tag
but got the same result.

Does anyone have any ideas on what might be the cause, or how I can go about identifying it?

I tried uninstalling various member related addons such as User, Twomile Login Redirect and Authenticate, but that hasn't helped.


texts: Matrix Fields Causing Page to Load Very Slowly

texts:
I am running the latest version of Expression Engine (2.6.1) and Matrix (2.5.5).

I created a Matrix field for an Award Winners listing for our website, with 2 fields - the first being Field Pack - Dropdown (for award years) and second being plain text (winner's name). In my actual code, I am pulling out the award winners in a list by year like so:

    {if award_list!=""}

        {award_list sort="desc" limit="150"}

            {if award_year=="{prev_row}{award_year}{/prev_row}"}

            {if:elseif award_year=="{next_row}{award_year}{/next_row}"}

            {if row_index!="0"}
{/if}
{award_year}&nbsp;&nbsp;

            {if:else}

            {if row_index!="0"}
{/if}
{award_year}&nbsp;&nbsp;

            {/if}

            {if award_year!="{next_row}{award_year}{/next_row}"}{award_winner}{if:else}{award_winner}, {/if}

        {/award_list}

    {/if}

This does run successfully, but locks up when looking for the Matrix channel_entries_tagdata. This what the template debugging says:

(0.084529 / 5.51MB)       -> Class Called: Channel
(0.087144 / 5.65MB)       -> Method Called: entries
(0.139607 / 8.05MB)      Calling Extension Class/Method: Assets_ext/channel_entries_query_result
(0.177234 / 9.17MB)      Calling Extension Class/Method: Playa_ext/channel_entries_tagdata
(0.179309 / 9.20MB)      Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata
(4.989313 / 9.99MB)       -> Data Returned
(4.989540 / 9.98MB)       - End Tag Processing -
(4.989713 / 9.98MB)      Processing Advanced Conditionals
(5.837677 / 10.04MB)      Processing Sub Template: includes/footer

I wasn't sure if there was an issue with my if statement, or there is another issue going on with the fieldtype. Any help would be great.


texts: Mailchimp Subscribe with Profile:Edit / Cartthrob

texts:
I'm having problems getting Mailchimp Subscribe working when used in conjunction with Profile:Edit registrations or Cartthrob Checkout. Does anyone know if there are known conflicts with these Extensions/Modules.

Running EE v2.5.2
Cartthrob 2.2.2
Profile:Edit 1.0.7
Mailchimp Subscribe 2.1.0

The problem is that I've set a custom member field (member_subscribe). In mailchimp subscribe settings this is set as the trigger field and the trigger is 'Yes'. Once member has registered the trigger field is shown as Yes but when I login to Mailchimp there are no subscriptions registering under lists.


texts: How Do I get Multiple Pictures from Matrix for use in a JQuery LightBox?

texts:
I am tring to get Pixel and Tonic's Matrix plugin to deliver images to ColorBox / LightboxI have Matrix delivering single images to my JQuery LightBox ( ColorBox) but I can not get it to deliver multiple images so that I can run them as a slide show.. What am I doing wrong ? Here is the mark up I have so far. My images are all contained in multiple rows but a single column{cell_1}:

{exp:channel:entries channel="gallery"}
{gallery}
Gallery
{/gallery}
{/exp:channel:entries}

Many  Many Thanks !


texts: Strange issue causing JS errors in Structure in EE Control Panel

texts:
Very weird issue this - never seen it before. When I access Structure in the control panel I'm getting javascript errors because something is cutting off the end of the Structure js files that the CP is accessing via the following type of URLS:

/admin.php?S=0&D=cp&C=javascript&M=load&package=structure&file=structure-collapse

Basically the end of the JS file is being shown as:

})(jQuery

rather than:

})(jQuery);

which is what the actual file has. So it isn't an issue with the Structure files not having been uploaded properly.

I've even tried reinstalling on another server, but same issue. I've also upgraded EE to the latest 2.10.3 version and installed the most up to date Structure version (3.3.19). Same issue.

I'm running on Ubuntu 14.4 with Nginx and PHP-FPM.

Anybody any ideas?

Update:
I've been able to fix this... in the weirdest way. By adding a couple of line breaks at the end of the following Structure javascript files:

jquery.ui.nestedsortable.js
structure-collapse.js

That's it!


texts:
I would like the ability to set up individual pages for announcements. These pages would be read by employees only and they would have a specific url to to see these pages.   Example: "We are closed today due to weather"

Is there a plugin for this or do we need to build them under "Basic Templates?"

Thank you


texts: Is it possible to search Solspace Calendar dates with Supersearch

texts:
I'm using Solspace's Calendar module to assign multiple dates to entries and I need the option to search through these entries by date using the Solspace Supersearch module, i've not come accross any docs on this. If I look at the field in the exp_channel_data table its just assigning the id of the calendar being used.
Thanks!


texts:
Channel data may contain ‘smart’ quotes/apostrophes, sometimes encoded. Yet site users naturally search using 'dumb' quotes. Therefore, supersearch may not find entries which ‘match’ the query!

Can anything be done about this?


texts:
When I try and upload images to my EE site (either from my file manager or from a file field in the channel entry form on the CP), I get a "Error: File Not Found" message. The file gets uploaded to my server, but the database doesn't have an entry for the upload.

Any thoughts on what is going on and/or how to debug the issue?


texts: Devdemon forms return url without ugly gray EE "thanks" page first

texts:
I have this:

{exp:forms:form
            form_name="contact"
            return="kontakt/takk"
            attr:class="form default contact"}

            {forms:fields}
                {forms:field}
            {/forms:fields}

            {forms:form_errors} {/forms:form_errors}

Du hører fra oss innen 24 timer.
Takk for at du vurderer oss!

        {/exp:forms:form}

And while i am returned to "kontakt/takk", that only happens after forms redirects to EEs ugly gray "thank you box". Is there a way to bypass that?


texts:
I'm making a web store with Exp-resso Store and want to have a product category listing on the left side of the web page. The categories are nested four levels. I want the user to click a category to reveal the sub categories. Then the user has to click again to reveal the sub categories of the sub category. Is this even possible with EE?

As an alternate solution, I'm thinking using JS to do everything client side. The upside here is that it's much faster for the categories to reveal/load. (I want to have the first level listed on a separate menu on the top of the website. Is it possible to only list level 2|3|4?)

But if it is possible to do easily with EE I'd love to know it for later use.

EDIT: I've looked at this: http://420creative.com/blog/entry/showing-child-categories-based-on-hierarchy-in-expression-engine But this isn't easier than making everything work with JS...


texts: Run plugin without affecting loading time (external)

texts:
I have a plugin which doesn't actually integrate with the website. It's purpose is to grab a column of the channel entries table and manipulate it every 24 hours. The plugin will only run each time a cookie expires (24 hours).
Is there a way to have this plugin run without affecting the page load. Currently, by calling the plugin in the template, the page doesn't load until the plugin has completely run.

Am I right to think that I would really need to be write a external PHP script and use CRON to run this every 24 hours?

Or is there a way to do it within the EE environment. I was hoping to use the built in codeigniter library that's built into EE.

Thank you.


texts:
i am very interested in new 2.0 version and see as with 1.0 there is no option for Realex Payments (irish payments handler) support. i know this is a niche market but is the only thing stopping me using this ecommerce in our projects.

Is there any plans to expand the payment providers ?

http://www.realexpayments.com/developers


texts: Multi Add To Cart, or maybe I should try something else?

texts:
I need a way to handle customizing a variety pack of items.  Each item is already in the inventory, but I need to set it up to where you can pick up to 3 of the different items, but no more than 2 of one certain item.  This "variety pack" will have a set price, even though the other items have different prices.

What would be the best approach?  Is there a way to dynamically generate a bundle or package?

I've been looking at on the fly and setting the price, but someone could abuse that easily once they got to the cart.


texts: EE's Compatibility Wizard - what modules are in suggested & optional?

texts:
Trying to work out what server modules (*nix) I need the hosting admin to install to have green across the board.

Specifically we currently have No for the following:

CAPTCHAs feature and watermarking in Image Gallery
JPEG Image Resising User GD (or GD 2)

See result of running the wizard below.

Thanks
Brendan


texts: How to Display Channel Fields in a Table?

texts: Given a channel with unknown fields (including grids), is there a way to display all the channel's fields in a table? I need a tabular representation of the data I have so that I can sort, filter, etc.


texts: How to display current date in loop while inside {exp:calendar:cal} tag

texts:
I feel like this should be a very simple solution (and probably is!), but I have been looking around for a while and still have not found any resolution. Maybe someone here can help me out!

I am displaying events for the next 6 months for a night club and some days have more than one event. The end result should follow this format:

September 5, 2014
   8pm Event 1 Title, Price + Summary
   10pm Event 2 Title, Price + Summary
September 6, 2014
   8pm Event 1 Title, Price + Summary
September 7, 2014
   8pm Event 1 Title, Price + Summary
   10pm Event 2 Title, Price + Summary
(etc.)

My issue is that I can't seem to figure out a way to display the 'date' value that dynamically changes based on the current event in the loop. The only thing that I can think that would be accurate is the "event_dates_and_options" tag, but I can't figure out how to get any information out of that other than a single digit (presumably number of items in the array?).

My code is as follows:

            {exp:calendar:cal
                date_range_start="tomorrow"
                show_months="6"
                pad_short_weeks="n"
                }

{!-- THIS IS WHERE I WANT THE DATE TO DISPLAY --}

                        {event_image}

                        {/event_image}

                        {title}

                        {event_dates_and_options} •
                            {if price}${price}{if:else}Free{/if}

                        {event_summary}

                        SHARE ICONS

            {/exp:calendar:cal}

Thank you for taking a look!
Best,
Victor


texts: How do I set X-Frame-Options in config.php

texts:
I need to be able to display content from one EE site on another using an iFrame. By default X-Frame-Options for EE is set to "SAMEORIGIN". I know this is set in Core, so I don't want to do the override it there. I have tried doing the following in the config.php file:

$config['x_frame_options'] = 'ALLOW-FROM https://mysite.com/xyz'

If this is the correct way to do it, it is not working properly. Any insights?


texts:
I seem to be getting an error when putting relationships in EE version 2.7.1

Error is:

  Error Number: 1054

  Unknown column 'L0.grid_field_id' in 'field list'

The relationships looks like this:

{generic-call-to-action}
    {generic-call-to-action:cta-image}
    {generic-call-to-action:cta-main-content}
{/generic-call-to-action}

and is sitting in a channel entries tag for the generic channel which is where the generic-call-to-action channel field has been set up.

Is this a new bug in 2.7.1 as this has always worked in previous versions.

Thanks
Dave


texts: EE 2.5.5 Discussion Forum banner customization

texts:
I'd like to have the flag banner in our Expressionengine Discussion Forum appear only on the forum homepage.

I'm taking a college php class but we haven't gotten far enough for me to know how to write the code.  Any help is greatly appreciated.


texts:
When use MX Cloner (v 1.2.4) with EE 2.9.0 it output an error in editing page

You are not authorized to perform this action


texts: ProForm forms stopped submitting, no errors

texts:
I've already emailed the plugin dev about this, but I need to get this working again as soon as possible.

I have some forms created using ProForms that have been working fine. Today I noticed none of them are submitting. When the submit button is pressed it refreshes the page, the form fields are empty, and my "success" message doesn't display. The submission doesn't appear in the control panel like it should. I don't receive any errors. I haven't changed the templates at all. Yesterday I added some new fields to one of the forms, but had not tested it yet so I don't know if this did something.

I know I don't have too many details, but if someone is familiar with this plugin and might be able to take a look that would be great. We need to fix this urgently, so if you can help out we could throw some bucks your way. Thanks!


texts: Infinite scroll and pagination on ee?? Anyone has this working?

texts:
Good day all
I have had this issue for a while now and can't find really good updated techniques to create the infinite scroll and pagination function where clicking 'load more' loads entries beneath until there are no more entries. I need some simple code that would make this work, currently my code basically just gives me entries on a new page but i want it to load on the same page beneath each other. Has anyone succesfully achieved this hassle free?

Who ever has the correct answer I will tell the world of your tale and everyone else will call you king/queen of EE Pagi-Nation!
Here is my terrible coding below!

PS: I have tried justin long's method and it did not work for me, I mailed him too.

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

        {if no_results}

No Results

                    Check back soon for more blog posts.

        {/if}

                    {title}

               {blog_summary}

        {paginate}

            {if next_page}See More Posts{/if}

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


texts:
I used to be a EE user in the early 2000s. I left it after several upgrades. Also found it expensive for a private magazine that I ran.
Always loved using it for the precision control of all aspects of a site.
I just came by and was delighted to find it’s now free! Are there any annual recurring costs?
Thank you


texts: Would upgrading the CMS solve the issue of JavaScript bug that prevents editing text?

texts: I have an ExpressionEngine website that has a bug in a JavaScript file that prevents text from being updated.  The bug manifests as text quickly erasing before it can be edited.  I discovered that I can disable JavaScript in my browser for page edits.  However, you can't do this permanently, as the CMS relies on JavaScript to function.  Would upgrading the CMS solve the issue?


texts:
I have a strange problem for a new template. I'm trying to retrieve some data from database based on query params.

My query looks like:

{exp:low_search:results channel="channel_name" status="active" disable="categories|member_data|pagination|trackbacks" dynamic="no"
  {if '{get:trip_group}' != ''}
    child:trips_race_trip_group='{get:trip_group}'
  {if:elseif '{get:trip_type}' != ''}
    child:trips_trip_type='{get:trip_type}'
  {/if}
}

My problem is that every times the both conditions are added to query and I get an error result for each iteration result. For example if {get:trip_group} is empty

  child:trips_race_trip_group='' } child:trips_race_trip_group='' }
  child:trips_race_trip_group='' child:trips_trip_type='tbt-camps' }

But it works perfectly if I do it without if conditions, the results are correct; something like:

{exp:low_search:results channel="channel_name" status="active" disable="categories|member_data|pagination|trackbacks" dynamic="no"
  child:trips_race_trip_group='{get:trip_group}'
}

or

{exp:low_search:results channel="channel_name" status="active" disable="categories|member_data|pagination|trackbacks" dynamic="no"
  child:trips_trip_type='{get:trip_type}'
}

Do you have any ideas what is happening here ?


texts: Expresso Store - Show product price with TAX and Shipping costs

texts: I wonder if there is a way to do this without using any modules. I can't seem to figure this out. I just want the regular_price + tax + shipping.


texts: Caching Solutions For A Customized Ticket System

texts: I have created a ticket system in EE that is customized for reporting and alerts.  It's all front-end but I want to make sure that it's snappy.  Is there a good caching add-on you have used that is worth the money?


texts:
I am trying to control what is displayed in a table view based on a conditional.

Here is the code I am trying to use:

    Small
    1000x600
    $25

    Medium
    2000 x 1300
    $50

{if max_dimensions != '1536 x 2048' OR max_dimensions != '2048 x 1536' }

    Large
    3000 x 2003
    $75

{/if}

In this case if the max_dimensions of a photograph is not '1536 x 2048' or '2048 x 1536' I want the third row of data to be displayed.

I limited it to just one conditional as follows and it worked. However when I add the OR, it fails.

{if max_dimensions != '1536 x 2048' }

    Large
    3000 x 2003
    $75

{/if}

That basic objective is, if the picture is not big enough, I don't want the third row to be displayed. What is the correct way to word this?

Thanks.


texts: How can I use third party class in EE to render instagram images on templates?

texts:
I have been using an instagram class in projects for Laravel and other small php sites and it has seemed to work well. I include a require_once in my functions file. I then create a function that calls the instagram class and then in my template I call the function and it works.

This is the instagram class on github: https://github.com/cosenary/Instagram-PHP-API

Heres a simple example on a recent wp site I did:

The function

require_once('includes/instagram.class.php');

function get_instagram_image() {

    $instagram = new Instagram('253daacbd2b849dd9d1255ecf26088b7');
    $name = 'Ahastag';
    $result = $instagram->getTagMedia($name);

    foreach ($result->data as $media) {
            $content = "
";

            // output media
            if ($media->type === 'video') {
              // video
              $poster = $media->images->standard_resolution->url;
              $source = $media->videos->standard_resolution->url;
              $content .= "<video class=\"media video-js vjs-default-skin\" width=\"250\" height=\"250\" poster=\"{$poster}\"
                           data-setup='{\"controls\":true, \"preload\": \"auto\"}'>
                             <source src=\"{$source}\" type=\"video/mp4\" />
                           </video>";
            } else {
              // image
              $image = $media->images->standard_resolution->url;
              $content .= "";
            }

            // create meta section
            $avatar = $media->user->profile_picture;
            $username = $media->user->username;
            $comment = $media->caption->text;
            $content .= "

{$username}

{$comment}

";

            // output media
            echo $content . "
";
          }

}

What I used in the template

<?php get_instagram_image(); ?>

Now I am trying to do the same in Expression Engine. I am aware of libraries/addons etc but I am struggling to keep it as simple as I have done in WP above and I am sure it can be as its only a php script at the end of the day.

What I want to do is either create a plugin or new ee class that does exactly what I have done above but in my ee templates and frontend.

Can anyone point me in the right direction? I want to develop my own and not use one already out there because I want to keep as clean as possible and not overly bloated and complex.

Thanks


texts:
I have a channel, loan-officers. Each entry in this channel has a related_entry field for each loan officer to choose which branch they are associated with. (the related_entry field is called officer_branch, and is a Relationship fieldtype.) Each loan officer can be associated with only one branch. The loan-officer template displays the information from the loan-officer channel, a single entry at a time.

On each loan-officer template, I want to display a link to the loan officer's associated branch. The information about the individual branches displays through the template "branch/index". I want the link text to be the branch name, which is the {title} tag of the related entry. The URL should be the 'branch' template group, plus the {url_title} of the related entry.

I have no idea what code to use for this. We have EE 2.5.5 installed, and so the documentation I can find via Google...doesn't work for our installation. (Running EE 2.5.5 on AWS.)

(This is possibly fairly obvious, but I haven't worked with EE's native related_entries tag too much. I don't even know if this is related_entries, or reverse_related_entries. Sorry!!)


texts:
I'm using stash embed, everything inside the embed gets cached, is there any way for this not to happen?

It's a major pain when changing what's in the embed template and not seeing the change happen.

{!-- Main Template --}
{exp:stash:set name="_foobar_id" match="#^\S+#" default="{snippet}"}
    {snippet}
{/exp:stash:set}

{stash:embed name="_foobar"}

{!-- Inside the stash embed  --}
<div>
   {stash:_foobar_id}
</div>


texts: {filename} Variable Outputting Full Path

texts:
Assets 2.0.3; EE 2.5.5

My Assets field is inside a Matrix cell. The Matrix field is named index_slides, and the Assets cell is named full. I want to output just the filename of the file (myfile.jpg). Here's the code I'm using:

{index_slides}
    {full}

The name of this file is {filename}

    {/full}
{/index_slides}

Instead of outputting "myfile.jpg" as expected, it outputs the full file path ("http://mysite.com/my/upload/dir/myfile.jpg"), which should be what the {url} variable is for.


texts: Database error when upgrading to Assets 2.1.3

texts:
I've been trying to upgrade from Assets 1.2.1 to 2.1.3 but I get this error when I click "run module updates" as the docs explain to do. The error I receive is:

A Database Error Occurred
Error Number: 1054
Unknown column 'file_path' in 'exp_assets'
ALTER TABLE exp_assets MODIFY COLUMN file_path VARCHAR(255) NOT NULL
Filename: /path/to/html/third_party/assets/upd.assets.php
Line Number: 403

ExpressionEngine is version 2.5.3


texts: In EE 2.X what replaces the submit_new_entry_end hook?

texts: I'm working on converting an old 1.X extension over to EE 2.X, but my hook was 'submit_new_entry_end'. I can't seem to find a reference to what hook should replace it. My guess is 'entry_submission_absolute_end', but is that right?


texts: Update 1.6.9 to 2.5.2 Truncated content after commas/apostrophe

texts:
I'm in the middle of updating an EE 1.6.9 site to 2.5.2. Everything went smoothly up until I verified the content. For some reason any time there's a comma and/or an apostrophe the channel data and categories are all truncated from that point.

I've tried to research this as best I could but it's been tough to figure out. Has anyone else ran into this?


texts: We've uploaded a bunch of images into EE but when they're added into templated image sections, many of them are too high or too low. Is it possible to reposition these images in EE without having to fix them and then re-upload into EE?


texts:
EE 2.10.1
P&T Fieldpack 2.2

Is the P&T Checkboxes :total_selections Tag supposed to work with Channel Form?

It's not working for me at the moment. The tag is not parsed.

Here is the code currently in use. This is enclosed in a basic Channel Form tag pair.

{options:field_name_here}
<li>
<input type="checkbox" id="field_name_here" name="field_name_here[]" value="{option_value}"{checked}>
<label class="checkbox">
{option_value}
</label>
</li>
{/options:field_name_here}

The above works great. The following is just printed as is.

{field_name_here:total_selections}


texts: Form Plugin, Call to undefined method EE_Functions::form_declarations()

texts:
I am writing a form from within a plugin module using EEE 2.6.1

    class Meal_form {

    public function __construct()
    {
        $this->EE =& get_instance();
    }

    public function form()
    {

        $form_data = array(
            "id"    => $this->EE->TMPL->form_id,
            "class" => $this->EE->TMPL->form_class
        );

        $tagdata = $this->EE->TMPL->tagdata;

        $form = $this->EE->functions->form_declarations($form_data) . $tagdata . "</form>";

        return $form;
    }
}

I receive the following error on form_declarations();
Fatal error: Call to undefined method EE_Functions::form_declarations()

Any ideas on this?

Thanks


texts: search single channel, filter by categories, title and custom field

texts:
I want to search thru a channel's entries, they can filter by three different categories (that is fine in EE's advanced search form), as well as the entry title (another thing I can do with EE's advanced search form), but I also want to use one of the custom fields in that channel's field group to be filterable (which is not supported in EE's advanced search form.).

I noticed this add-on http://devot-ee.com/add-ons/search-fields that would allow me to filter by a custom field and entry title, but it looks like I'll have a problem filtering by multiple category groups.

To summarize, I need to search one channel, and search filters would be:

entry title
custom field (just one specific field)
category group (3 groups)

All filters (except the entry title field will be optional).

Before I go ahead and build a custom module to just search this specific channel (using those filters), I thought I'd see if anyone else dealt with this, thanks!


texts: Multiple Content-Elements with Assets-elements breaking on what seems to be a specific number of images

texts:
Background
So i keep getting an error when adding more images to the second Content-Elements field on one of my pages.

I have one for the maincontent and this one seems to work with an "infinite" amount of images.
The second one, who is also parsed last gives me this error:

  Error

  Unable to load the requested class: assets_lib

The first field currently has 3 Assets-elements with at total of 28 images.

When i try to add more than 4 images to the same kind of Element in the second field i get the error above?

I am not sure where to go next, is there a way to get more info out of EE's error manager.
A file and row # would be a nice start. :P

Is this a problem with Content-Elements or with Assets?

Is there anything i can add to help out?

Versions
- EE: 2.8.1
- Assets: 2.3.1
- Content-Elements: 1.6.9
- Stash: 2.5.1

Template code
I keep the Elements-part in a Stash embed, the part that handles assets is:

{assets}

  {files}

{switch="|||

"}

{/files}

{/assets}

the part of the page template that embeds them looks like this:

{exp:stash:content parse="inwards"}

{title}

    {page-content}
    {stash:embed:components:content_elements_parser process="start"}
    {/page-content}

    {page-content-2}
    {stash:embed:components:content_elements_parser process="start"}
    {/page-content-2}

    {page-modules-right}
    ...
    {/page-modules-right}

  {stash:embed:components:social_share}

{if page-modules-bottom}

    ...

  {/if}
  {/exp:stash:content}


texts: Low Variables causes php 7 warnings in ee 3.1

texts:
I get some errors when using Low Variables in EE 3.1 with php 7.

I don't have the issue when using php 5.6. So I'm using that. But it would be nice to use php 7.

Is there any road map for making Low Variables compatible with PHP 7?


texts: EE member management with multiple groups

texts:
What are the recommended modules for managing members in channel entries that can have different member groups and member fields?

Zoo Visitor seems to only have one group available - no use.
Freemember seems to hook into the built in member fields, I would
prefer to use channel entries.
User from Solspace seems to be my only
option?


texts: Content Elements and P&T Fieldpack List Problem

texts:
Trying to use the P&T List from the Fieldpack within Content Elements and the values do not seem to parse. Example code:

{exp:channel:entries channel="page" ...}

  {!-- Content Elements Field --}
  {cf_page_body}

    {textarea}

{value}

    {/textarea}

    {fieldpack_list}

        {values}

{item}

        {/values}

    {/fieldpack_list}

  {/cf_page_body}

{/exp:channel:entries}

The output does not seem to get parsed only for fieldpack's list element in CE, neither the "values" tag pair or the "item" var - i.e.; it's returned as:

{values}

{item}

{/values}

Any ideas? I've tried numerous variations on the fieldpack's list Content Elements tag syntax in case it is a documentation error, tried running the values through Stash as a stash list with parse depth set accordingly, setting parse="inward" on the EE channel tag, but to no avail.

Project Setup Info:

ExpressionEngine Ver. 2.7.3
Content Elements Ver. 1.6.10
P&T Fieldpack Ver. 2.1.1
Stash Ver. 2.5.3


texts: Parse Order: how to pass a value from PI as an embed variable?

texts:
I have a plugin that outputs a value, which I think I need to pass as an embed variable as I need to use that value as a parameter when calling the plugin again from within the embed. Here's the basic structure:

{exp:my_plugin)
     {embed="foo/bar" my_plugin_value="{some_value_from_my_plugin}"}
{/exp:my_plugin)

In the embedded template, {embed:my_plugin_value} is empty. I have double checked to make sure the value is indeed set before calling the embed. Am I running into parse issues? If so, how do I resolve this?


texts: Long open/save for entries with 10-column Matrix fields

texts:
I am moving over a thread started on P&T's Get Satisfaction.

I am getting a MySQL timeout saving an entry that had a 10-column Matrix field and some 70 rows. Raising the MySQL limits fixes the immediate problem (we can save), but seems to point at a bigger underlying issue -- entries take a surprisingly long time to save and open, while showing relatively normal benchmarks in EE's debugging panel.

To isolate the problem, I set up a separate, fresh EE install with Matrix as my only plugin. I then created a single channel field with a Matrix of 10 text-only columns.

In this environment, an entry with a single Matrix with 100 rows took 47 seconds to save. However, an entry with 8 Matrix of 13 rows each (104 total rows) took 7 seconds to save. More interesting, the benchmarks for Loading Time, Total Execution Time, and Controller Execution Time were all very reasonable (0.2 to 0.4 or so).

I would like to keep these entries in a single Matrix table, if possible. Is this just an effect of saving a table with this many cells (and a natural limit of EE, Matrix, or MySQL). Or is there's something else at play?

Any insights?


texts:
How can I delete old templates that no longer exist in my repo from EE cpanel?

I can see you can multi-select and sync, but is there a way of deleting them?


texts: ExpressionEngine Continuous Integration BDD

texts:
I am curious if anyone has setup BDD, ExpressionEngine and Continuous integration and could share their setup/approach? I have heard rumor of people using cucumber with EE but have not see any information about this in practice.

Thanks,
Cory


texts: Is it possible to add an image field into Freeform pro?

texts:
Is it possible to add an mage field into Freeform pro? Maybe a footer image field.

The reason for this is, that we are doing forms for business awards and need to have sponsors logo on all the pages.


texts: Expresso Store & Sagepage 3107 BillingsSurname Error

texts:
I am guessing this is similar to the question Expresso Store: SagePay Server rejecting missing BillingSurname
 in some ways, thou the solution on this entry does not apply anymore with Store 2.+

If I hard code in a billings_name hidden field into the details page before review then the system works else it get this error from SagePay. Currently I have a first/last name setup with the details and this is reflected with in the store fields settings.

Am i missing a configuration ?


texts:
This one has me baffled.

I'd like to show some content based on the Global variable IP Address. But none of these work:

{if {ip_address} != 127.0.0.2}SHOW THIS{/if}

OR

{if {ip_address} != '127.0.0.2'}SHOW THIS{/if}

OR

{if '{ip_address}' != '127.0.0.2'}SHOW THIS{/if}

I would expect at least the last conditional to work. Is this a parsing issue?


texts: How to capture a users email address before offering a download?

texts:
I'm building a site that is going to offer some free PDF downloads (reports, guides etc.) but the client would like to collect the users email in return for the download.

Any thoughts on the best way to do this using ExpressionEngine?

As always, all help will be appreciated.


texts: EE 6 Upgrade: System folder path not set correctly

texts:
I went through the upgrade from the latest previous version to EE6 using the automated button.
Everything came back green, except I'm now getting this error message:
Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php
My system folder is just "system" and both files appear to be set correctly.  The only thing I can think of is that I had a soft-link to "backend", and when I did the upgrade, I was at "https://www.website.com/backend".  I had never considered this an issue or possible item before.
(Renaming "system" to "backend" and updating the two php files does not resolve, unfortunately...)
Any help is greatly appreciated.  :-D


texts: getting a EE template to function as a php file

texts:
Is there a secret to getting a EE template to function as a PHP file?  I have a map that is loading the data from a php file.  I want to load the data from an EE template instead. I have set the template to allow PHP and have tried input and output but no matter what I try it will not work like I expect when I call it from a js script.

When I use a regular php file the map data loads fine.
But if I try to use a EE php template the data will not load

The php file and EE php file have the exact same data

Loading a standard php file works fine : loadData("/assets/external/data.php");
But when I take the exact same code and place it into a EE tempalte with php enabled it does nothing: loadData("http://www.domain.com/index.php/map-data");

my data.php file looks like this:

<?php

echo json_encode(
    $data = array(
        [
            'id' => 1,
            'latitude' => 44.5370218,
            'longitude' => -63.6546377,
            'featured' => 1,
            'title' => " Restaurant",
            'location' => "123 Birch Street",

... etc

but if I copy paste the contents of that php file into an EE template and update the source for loaddata to call it from the template it comes up with nothing to display on my map.

The map page (that shows the actual map with data) uses a javascript. In that js file it pulls the data from data.php

I want that js file to pull the data from a php enabled EE template instead.

Here is a snippet of my JS file:

  if( optimizedDatabaseLoading == 1 ){
            google.maps.event.addListener(map, 'idle', function(){
                if( searchClicked != 1 ){
                    var ajaxData = {
                        optimized_loading: 1,
                        north_east_lat: map.getBounds().getNorthEast().lat(),
                        north_east_lng: map.getBounds().getNorthEast().lng(),
                        south_west_lat: map.getBounds().getSouthWest().lat(),
                        south_west_lng: map.getBounds().getSouthWest().lng()
                    };
                    if( markerCluster != undefined ){
                        markerCluster.clearMarkers();
                    }
                    //loadData("/assets/external/data.php", ajaxData);
                    loadData("http://www.physiotherapyns.ca/index.php/2017-map/map-data/", ajaxData);

                }
            });
        }

to highlight the relevant parts in the js file:

//  THIS WORKS  //
loadData("/assets/external/data.php", ajaxData);

// this does not//
loadData("http://www.domain.com/index.php/2017-map/map-data/", ajaxData);

both the file and the template contain the exact same data.

Is there anything special about the formatting of an EE template to function as a regular php file?


texts: Assets not indexing under www but does without www

texts:
Assets isn't indexing and showing thumbnails or uploading if I'm logged in to CP with www…

I've read elsewhere that www.example.com and http://example.com are treated as separate domains but is there a simple solution? I have all paths in EE set without www. including the CP url and I'm not forcing either with .htaccess

I can remember to login without www. but cant expect my clients to remember.


texts: Disabling the session tracker for non HTML templates

texts:
I have a problem with DevDemon FreeMember where it relies on the native EE session tracker array (https://ellislab.com/expressionengine/user-guide/development/usage/session.html#tracker-array) to perform a "Return to Previous Page'. From mod.freemember.php:

protected function history($id)
{
    $tracker = ee()->session->tracker;

    if (isset($tracker[$id])) {
        if ($tracker[$id] === 'index') {
            return '/';
        }

        return $tracker[$id];
    }
}

If on the page prior to calling the FreeMember log-in form with the return parameter set to PREVIOUS_URL I have a template which references an ExpressionEngine CSS template then the 'Previous URL' is recorded in the session tracker as the CSS file and not the last 'page' viewed by the user.

Is there some way I can disable session tracking for a single particular front end template as to negate this issue?

Update

Solved. I had the EE template I was using for my dynamic CSS set as a standard template, not a CSS template. The template parser in EE actually prevents JS and CSS templates from being added to the tracker array. :)


texts:
I've managed to connect to the S3 bucket on my live server, but when pressing "Refresh" on my WAMP running on localhost that list doesn't populate / is blank.

There isn't an error message as far as I can tell. Is there a way that I can debug why this is happening?

Edit: to clarify, this is for Assets 2.

Cheers, Andrew


texts: Low Search starts_with Returns All Result

texts:
I've got an issue here where a low search via a select drop down is returning all results, and I am not sure why.

Here's the search form.

{exp:low_search:form result_page="{segment_1}/search" form_id="last_name_search" starts_with="search:Lastname"}
        <select name="search:Lastname" id="last_name">
            <option value="" selected>Initial Last Name</option>
            {exp:low_list:each items="A|Z" range="yes"}
                <option value="{val}">
                  {val}
                </option>
             {/exp:low_list:each}
        </select>
{/exp:low_search:form}

I need to search a members channel by querying against the first letter of their last name. To do this starts_with seemed to be the Field Search parameter that needed to be used. But, in the results tag, every member is being returned.

Here is the results tag.

{exp:low_search:results
        limit="20"
        paginate="bottom"
        query="{segment_3}"
        status="Members-id5|Staff-id7|Site_Admins-id6|Corporate-id8"}
    {!-- HTML stuffs --}
{/exp:low_search:results}

I checked {low_search_search:Lastname} and it does hold the correct lettered I want to query with, but it's not being applied to the results. What am I doing wrong here? Thanks for any help!


texts: Database error on creating new Low Search Collection

texts:
I have an instance of Low Search 4.4.3 running on an MSM enabled instance of EE 2.11.8.

It runs many Collections happily across 3 sites.

But with a new site recently added, when I go to Save any newly configured Collection, it returns a database error:

Error Number: 1048
Column 'modifier' cannot be null
INSERT INTO exp_low_search_collections (site_id, channel_id, collection_name, collection_label, language, modifier, excerpt, settings, edit_date) VALUES (10, '84', 'about', 'About', 'en', NULL, '523', '{\"0\":\"3\",\"523\":\"2\",\"524\":\"2\",\"536\":\"3\"}', 1503055683)
Filename: third_party/low_search/model.low_search.php
Line Number: 209

The relevant line in model.low_search.php is:

ee()->db->insert($this->_table, $data);

Any suggestions for fixing?