texts: date_footer using display="weekly" doesn't display correctly for entries on Sunday

texts:
I'm currently attempting to display a list of all entries, split into the weeks that they were published in and formatted in a table. The variable tag pair date_heading and date_footer appear to be perfect for the job and my template code is as follows:

{exp:channel:entries
    channel="order"
    limit="99999"
    status="Complete"
    dynamic="no"
}

    {date_heading display="weekly"}

Week starting {week_date format="%j/%n/%Y"}

                Transaction ID
                Transaction Date

    {/date_heading}

                {order_transaction_id}
                {entry_date format="%d/%m/%Y"}

    {date_footer display="weekly"}

    {/date_footer}

{/exp:channel:entries}

What I'm finding is that when an entry posted on a Sunday is output, it doesn't correctly output the date_footer. Rather, it appears after the week's footer and before the next week's heading. For example:

Week starting 30/6/2014

        Transaction ID
        Transaction Date

            1111
            30/06/2014

    2222
    30/06/2014

I dug into the ExpressionEngine code that drive this and found the two following snippets in /system/expressionengine/libraries/channel_entries_parser/components/Header_and_footer.php for the date_heading and the date_footer respectively:

...
elseif ($display == 'weekly')
{
    $temp_date = $data['entry_date'];

    // date()'s week variable 'W' starts weeks on Monday per ISO-8601.
    // By default we start weeks on Sunday, so we need to do a little dance for
    // entries made on Sundays to make sure they get placed in the right week heading
    if (strtolower(ee()->TMPL->fetch_param('start_day')) != 'monday' && ee()->localize->format_date('%w', $data['entry_date']) == 0)
    {
        // add 7 days to toss us into the next ISO-8601 week
        $temp_date = strtotime('+1 week', $temp_date);
    }

    $flag_obj->heading_date_weekly = ee()->localize->format_date('%Y%W', $temp_date);

    if ($flag_obj->heading_date_weekly == $flag_obj->heading_flag_weekly)
    {
        $tagdata = ee()->TMPL->delete_var_pairs($tag, 'date_heading', $tagdata);
    }
    else
    {
        $tagdata = ee()->TMPL->swap_var_pairs($tag, 'date_heading', $tagdata);

        $flag_obj->heading_flag_weekly = $flag_obj->heading_date_weekly;
    }
}
...

...
elseif ($display == 'weekly')
{
    if ( ! isset($query_result[$data['count']]) OR
        ee()->localize->format_date('%Y%W', $data['entry_date']) != ee()->localize->format_date('%Y%W', $query_result[$data['count']]['entry_date']))
    {
        $tagdata = ee()->TMPL->swap_var_pairs($tag, 'date_footer', $tagdata);
    }
    else
    {
        $tagdata = ee()->TMPL->delete_var_pairs($tag, 'date_footer', $tagdata);
    }
}
...

As you can see, it appears they've applied some sort of workaround in the heading for when we set the week to start on Sunday, but not in the footer. I changed the start_week parameter to Monday, which solved the problem, however the client would like the week to start on Sunday. While I know basic PHP, this kind of stuff is still a bit away from me.

Has anyone else ever encountered this? And, if you have, have you found a workaround?


texts:
What would cause a comment to NOT show on the front end when I can see it in the EE control panel?

No errors at all.
Guest can post entries, snaptcha is installed and email isnt required.

site is running on EE 2.5.5, MSM 2.1.3 and using Threaded Comments 2.4.7 (http://dvt.ee/adfZh09)

Have experienced this issue before switching to Threaded Comments with just the native EE comment form and after the switch.

Also experiencing the same comment repeated 2 or 3 times in CP but only one showing on the front end.


texts: How to conditionally enclose a list of reviews with `reverse_related_entries`?

texts:
If there are review entries related to the current entry then I would like to display it as follows:

Reviews

{reverse_related_entries channel="review"}

{title}

        {review_body}

{/reverse_related_entries}

If there are no reviews then I do not want to display anything.

I could just add a JavaScript which removes the empty "Reviews" section, but I would rather it wasn't outputted if possible.


texts:
I have a simple unordered list nav, it displays an active list item depending on segment_1.
Within that unordered list I have another unordered list with a class of 'sub'.
For some reason, all list items display as active too in IE7, but not active class is within that list item.

I know its not fully an EE question, but has anyone ever seen this?
Code is below:

Program Overview

Take a Tour

    {exp:channel:entries channel="tour" limit="10" disable="categories|custom_fields|member_data|pagination" entry_id="not 41" dynamic="off"}

{title}

    {/exp:channel:entries}


texts:
I am trying to update EE v2.4 to v2.10.1 and got a database error.

Error Number: 1060

Duplicate column name 'can_search'

ALTER TABLE exp_member_groups ADD COLUMN can_search char(1) NOT NULL default 'n'

Filename: updates/ud_0_00_09.php

Line Number: 112

Not sure what to do. Any help is appreciated.


texts: PHP errors relating to matrix on channel form submission

texts:
EE 2.9.0
Matrix 2.6

I have a template with a channel form in it, nothing else (I've stripped it down for testing).

{exp:channel:form
    channel="test_channel_form"
    return="test-return"
    }
    <input type="text" name="title" id="title" value="{title}" onkeyup="liveUrlTitle();">
    <input type="submit" value="Submit">
{/exp:channel:form}

This is using a test channel field group with no custom fields.
It returns to the correct page on submission and an entry is created.

Changing the channel to use another field group I run into problems.
The field group has 5 fields, 2 textarea fields and 3 Matrix fields. I only need the text area fields in this channel form.

My template code is

{exp:channel:form
    channel="test_channel_form"
    return="test-return"
    }
    <input type="text" name="title" id="title" value="{title}" onkeyup="liveUrlTitle();">
    {field:news_summary}
    {field:news_body}
    <input type="submit" value="Submit">
{/exp:channel:form}

An entry is created OK but it doesn't return to the specified page on submission it just stays on the same page and I get the following errors.

A PHP Error was encountered
Severity: Warning
Message: array_keys() expects parameter 1 to be array, null given
Filename: matrix/ft.matrix.php
Line Number: 2259

A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: matrix/ft.matrix.php
Line Number: 2259

A PHP Error was encountered
Severity: Warning
Message: array_keys() expects parameter 1 to be array, null given
Filename: matrix/ft.matrix.php
Line Number: 2259

A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: matrix/ft.matrix.php
Line Number: 2259

A PHP Error was encountered
Severity: Warning
Message: array_keys() expects parameter 1 to be array, null given
Filename: matrix/ft.matrix.php
Line Number: 2259

A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: matrix/ft.matrix.php
Line Number: 2259

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /Users/timprint/Dropbox/Sites/imagineering/imageesys47836/codeigniter/system/core/Exceptions.php:170)
Filename: libraries/Functions.php
Line Number: 446


texts: Pulling in Matrix cells in Records tag pair using Link Vault

texts:
I need a little help on a project that's using the addon Link Vault from Masuga Design (http://masugadesign.com/software/link-vault/) in conjunction with Matrix.

The site has a channel called ‘Topics’, each topic has an entry that has a Matrix field with the columns ‘Link’ and ‘File’. The topic pages are setup so they list all the files per topic entry from the Matrix field.

The field is a Matrix field called 'download' and has the cells 'File Name' and 'File'.

We're using this code so far:

{exp:link_vault:records limit="5"}Download{/exp:link_vault:records}

I can get the file to link up and work, but not pass the 'File Name' field from a row to the template. The download count also needs to be unique to each Matrix row, too (not covering all files from the single entry.)


texts:
is it possible for a customer to cancel an order in cartthrob? E.g. he buys a ticket but recognizes that he does not have time to go to the event. So he wants to cancel his order.

Does anybody has an idea to solve this problem?


texts:
Is there any opportunity with Importer to remove records that didn't get updated in the last X time frame?

I understand the scope of the product is to just pump in records, but I'm having a real issue where my imported records have a "shelf life" and if I could simply tell it to remove any records from the channel that hasn't been updated in X time frame, it would make my life a lot easier (read: get the client off my back :P ).


texts:
Is there a way to share upload locations between MSM sites, or to sync the dirs for both sites?

If not, is there another module that can do this?


texts: Assets 2.0.5 problem when transferring database

texts:
I am trying to install a local copy of my database on Mamp. But I am getting the following error in the exp_assets_folders table:

#1062 - Duplicate entry 'ee-0-' for key 'unq_source_type__source_id__full_path'

I saw another post with a similar problem but the answer says this was sorted in version 2.0.2.
I am using Assets version 2.0.5. I am not using master config.

Thanks


texts:
What I (or or customer) want to do is as follows:

An existing external API has regularly updated documents for different products
The existing product channel in EE will hold an ID that is recognised by the API and will return (amongst other things) the external path to the document
The existing product channel also has an asset field (pixel & tonic) that is able to store the file locally
Now I want to update that file regularly (eg every 24h) by downloading it and storing it in the asset field.

Any ideas how it can programmatically insert or update files in a chosen Pixel & Tonic Asset field?

rg,
Tim


texts:
As deploy helper is currently not supported on the latest version of expression engine can anyone recommend a decent alternative.

I came across this one, but it hasn't been updated in 6 months so I'm a little unsure if it's supported.
http://devot-ee.com/add-ons/reelocate

Can I just do a find and replace in my mysql file? In a code editor? with an owl!

Cheers
Dave


texts: Related calendar custom fields from an event

texts:
Is is possible to get custom field data of a calendar from a related event? Basically I want to be able to assign colors to calendars as a custom field, and then within the {events} variable pair set the background color of an event based on which calendar it belongs to. So something like:

{exp:calendar:cal date_range_start="year-month-01" ... }

  {display_each_day}

    {date format="%J"}

    {events}

{event_title}

    {/events}

  {/display_each_day}

{/exp:calendar:cal}

The above code will only output a blank string for the {calendar_color} custom field (I assume this is because the {exp:calendar:cal} tag by default will output multiple calendars).

So basically I'm just looking for a way to create a reverse relationship from the event to the calendar based on the relationship that is already setup between calendars and events with Solspace Calendar.


texts: Installing EE when existing cms site exists

texts:
Never been in this situation before so just wanted to make sure i do it correctly.

I am developing a new website (with EE), and currently a site/cms (non-EE) already exists on the server. What is the best way to set this up - meaning upload location/development site - so i can work on it without affecting the current site? Do I just create a folder in the root (named eg, new-site) and upload all EE files there, then go through the usual installation? Do i just change the two system_path references to .new-site/system/ or is none of that necessary?

When i am working out pages/segments how would this work without causing any issues/ having to make coding changes after the site is live? (ie, example.com/new-site/template_folder.... )

Is it better to create a subdomain and base url's on that (ie newsite.example.com) rather than just a 'folder'?

After everything is complete, do i just delete/remove the existing site form the root, then move all new site files out of the new-site folder?

Responses are appreciated.


texts: Using CartThrob Subscriptions with Stripe checkout - Content Restrictions

texts:
Will I be able to use CartThrob Subscriptions with Stripe checkout in Europe?

And in general:

Do CT-subscriptions have a method of preventing access to content created by members, whose subscription expires? More specifically, I need to hide member profiles (zoo_visitor entries) once their plan is no longer paid for.

Thank you!

PS: I have already purchased Membrr and - while the addon is okay - their support is actually non-existant, so please don't suggest this! :)


texts:
Using assets in a Matrix field, and would like to display 'no results' if a file has not been uploaded for that particular field.  Like so...

{exp:channel:entries....etc}
{matrix_field}
    {field_1}
    {field_2}

{if asset_field}
    {asset_field}
        {url}
    {/asset_field}
{if:else}
    No Files
{/if}

{/matrix_field}

I've tried various combinations of using total_results and changing where the conditional is, complex/simple.  Can't seem to find the right combination that works with both cases.  Is there a no_results tag?  What's the proper way to do this?


texts: Merge multiple relationship fields into a single multi-relationship field

texts:
Has anyone looked into merging several pre-2.6 relationship fields into a 2.6+ multiple relationship field? For example, if I have a book store where each book can have multiple authors and currently have book_author, book_author2, and book_author3. This is clearly ugly and horrible, so I would like to just have book_authors, which would contain the related authors from any of the original three fields that was set.

I'm sure it could be done with enough SQL magicry, but I'm hoping someone has already figured out a good system for it.


texts: ACT urls have lots of backslashes - "The URI you submitted has disallowed characters."

texts:
My logout and other ACT urls all seem to have a lot of backslashes in the URL

I'm using the module shortlist and when clicking add it takes you to:

http://eogee.rmdyapps.co.uk/////////?ACT=39&p=YToyOntzOjg6ImVudHJ5X2lkIjtzOjM6IjgzNiI7czoxMToiY2xvbmVkX2Zyb20iO2I6MDt9&ret=http%3A%2F%2Feogee.rmdyapps.co.uk%2Fwhat-we-do%2Fsustainability%2Fsigns-tool%2Fafirm-apparel-and-footwear-international-rsl-management

This then shows the error "The URI you submitted has disallowed characters."

My logout URL is also showing as:

http://eogee.rmdyapps.co.uk/////////?ACT=16&csrf_token=e836df2db8ce7415437de6a9ddb938e613d12aa8

Any idea as to why it's adding in these additional backslashes? seems to be causing all sorts of issues.

Thanks!


texts:
how can I list/find all content marked as sticky in the CP. Is there a hack to show stickies like status (open/closed) in the CP.
I, dont,t like to buy Zenbu for that small hack!

Thanks
Ulrich


texts: if 2 channels on one page ie: if channel == "channel1"

texts:
I am trying to display one entry (most recent) on my home page from 2 different channels.  So ChannelA and ChannelB.

{exp:weblog:entries weblog="weblogA|weblogB" limit="1" sort="asc" show_future_entries="yes"}
{if weblog == "weblogA"} display A {/if}
{if weblog == "weblogB"} display B {/if}
{/exp:weblog:entries}

The above worked on an EE1 site but but now on an EE2 site and channel does not work the same.

{exp:channel:entries channel="channelA|channelB" limit="1" sort="asc" show_future_entries="yes"}
{if channel == "channelA"} display A {/if}
{if channel == "channelB"} display B {/if}
{/exp:channel:entries}

Any advice?


texts: Expresso Store Get a Quote instead of payment

texts:
I'm using Expresso Store v2 for a rental service.
Is it possible when a client makes an order he gets a quote? I thought this was a feature but I can't find it.

Or is it possible to put an order on Pending by default? So stock levels will stay the same. I could hide the payment part for the client and it would function as a quote request.

Asking this, it comes to mind that there aren't any options for orders like refund, cancelled etc... I can create an Order state and name it Refund but this doesn't restore the stock levels, total sales etc. I could be wrong and missed something.

Tnx

[edit]
I solved it (sort of). Still would be nice as a feature.
I disabled track_stock but left the stock numbers intact. So now stock numbers al always maximum. Payment part is hidden and now clients can request a Quote.


texts: Safecracker return param with created entry id

texts:
I have a safecracker form where I need the user to create a new entry. When the form is submitted I want the return address to include the newly created entry id, but I can't figure out how via the documentation.

I have tried:

{exp:safecracker channel="submissions" return="submission-complete/ENTRY_ID" include_jquery="no" safecracker_head="no"}

And:

{exp:safecracker channel="submissions" return="submission-complete/{entry_id}" include_jquery="no" safecracker_head="no"}

Anyone know how to do this?

    $('form#publishForm').ajaxForm({
        dataType: 'json',
        beforeSend: function() {
            status.empty();
            var percentVal = '0%';
            bar.width(percentVal)
            percent.html(percentVal);
        },
        uploadProgress: function(event, position, total, percentComplete) {
            var percentVal = percentComplete + '%';
            bar.width(percentVal)
            percent.html(percentVal);
        },
        success: function(data) {
            var percentVal = '100%';
            bar.width(percentVal)
            percent.html(percentVal);
window.location.href = "/submission-complete/"+data.entry_id;
        }
    });


texts: How do I limit the number of displayed list items? I tried {list_name limit='2'} which didn't work. Also is there anyway to select which list items to be displayed?


texts: Safecracker Image field returns image source as http not https

texts:
I've got a template view served via https with a Safecracker form that contains a Safecracker File field ({field:saef_image}) where the image source is returned as http:// instead of https://. The Safecracker delete image (write_mode_close.png) is also served unsecure. Since the assets aren't being served secure I'm getting the warning via the SSL status, which I want to fix. I'm using secure_action="yes" and secure_return="yes". Any ideas on what's going on here or if there is a modification of the core that anyone knows of?

Thanks for any help in advance!

EE v2.6.1, Safecracker v2.1


texts: Freeform, Structure, Transcribe and Freebie - how to return to correct language on contact form

texts:
I have an English site that uses Structure and Transcribe. The 2 language translations, French and German, are about to go live except for one little issue. On one page I have a contact form using Freeform Pro that also contains the 'Thank you' text that is shown once the form has been submitted, using a Freebie tag. It has been working fine for the English (default) version of the site. The form goes from www.mysite.com/contact-us to www.mysite.com/contact-us/thanks once the form is submitted.

The code I've used. is below:

                {if freebie_last == "thanks"}
                    <p>{contact_thanks}</p>
                {if:else}
                    {contact_info}

                    {exp:freeform:form
                        form_id="1"
                        required="name|email|country|area_of_interest|user_enquiry"
                        return="{segment_1}/thanks"
                        inline_errors="yes"
                        form:class="well"
                    }

Unfortunately I can't work out how to get the translations to show the correct 'Thank you' page. When I'm on www.mysite.com/de/kontakt and hit Submit I am taken to the 404 page because it's trying to direct to www.mysite.com/kontakt/thanks. It should be www.mysite.com/de/kontakt/thanks - it's not including the 'de' segment of the url.

I've tried several variations of the return path but none seem to direct me to www.mysite.com/de/kontakt/thanks. The language segment is always being removed, but I need to keep the return="{segment_1}/thanks for the English version of the site to work. I was thinking an {if} statement would be needed but nothing seems to be working.

I've tried:

                        {if '{transcribe:language_abbreviation}' == 'de'}
                        return="{freebie_1}/{freebie_2}/thanks"
                        {if:else}
                        return="{segment_1}/thanks"
                        {/if}

or:

                        {if '{transcribe:language_abbreviation}' == 'de'}
                        return="{segment_1}/{segment_2}/thanks"
                        {if:else}
                        return="{segment_1}/thanks"
                        {/if}

Does {if:else} not work here? If not, what does? Or am I going about this in totally the wrong way by using Freebie (I'm a bit unsure how it works). I've tried adding fr|de to the breaking segments to no avail.

Any help would be appreciated. Thanks


texts:
I want to change the subject line so that instead of reading "Someone has filled out form: Form Name" I can use a shorter value like "Form Name." Where can I do this in Freeform?

I didn't know about the notifications template tab. It lets you specify a subject. Problem solved.

Godaddy requires short subject lines.


texts: Conditional. Prioritize one field over another if both exist

texts:
Cannot seem to work this out!

I have two fields, one is an image {e_image} and the other is plain text {e_map}.
Both of these display a div in the exact same spot.

What I want, is if an image is uploaded to the {e_image} field, AND text is added to the {e_map} field, then ONLY the image will appear (it is prioritised over the map {e_map) field). Both cannot appear on the page.

So something like below:

{if e_image}

{e_image}

{if:elseif e_map}

{e_map}

{/if}

And obviously if both fields are left empty, nothing appears.

Any help is much appreciated.


texts: Is there a limit to the number of channel entries that ExpressionEngine can handle?

texts:
We currently run a site that has over 120,000 channel entries across our main EE install + MSM sites. As we continue to grow and add more channels and entries, I'm wondering if there's a limit to the number of entries EE can store.

I'm interested to hear about overall limits (perhaps imposed by the database) along with any channel specific limits, if they exist.


texts: Store email template variables not working

texts:
I'm using Expresso Store 1.6.5. and I'm having trouble with the order email templates that get sent out to buyers.

I would like to include variables like {you_save},{you_save_percent},{sale_price},{promo_code_value},{promo_code_type} and a few others. Ideally I would also include product photos as well as a link to the products themselves but it's not a huge deal...but for some reason those variables aren't appearing. They are wrapped inside an {items} tag but I still can't get them to show up. I've checked the documentation and it says they should be available. I've also tried wrapping the items tag around an exp:channels tag and still nothing.

Does anyone have a more complex e-mail template with this kind of information? Am I missing something obvious


texts:
I have installed and managed to get the favorites module to work on a project I'm developing.

I can save and remove favorites.

I was doing this in Chrome and successfully viewed my favorites assigned to my user.

However just checked in other browsers and my favorites simply don't show up.

Has anyone come across this problem before ?

Please help.


texts: Freeform File Uploads with Multi-site Manager

texts:
I'm running EE 5.3.2 with Freeform Lite 1.8.3. I have the multi-site manager setup with 2 sites, we'll call them Site A & Site B.
Site B has a form that allows for a file upload. When a file is uploaded through the form, the file does get uploaded and the form seems to work correctly but I'm unable to show file information for the upload in the Freeform notifications.
I verified that the files are being uploaded to the correct directory in Site B's file structure and the files show up in the file manager in the correct directory. But when I try to edit the file or download it in the file manager, EE gives me the following error: Error: No file selected.
If I switch over to Site A and go to the file manager, the uploaded file shows up there are well for some reason and I am able to edit and download it there. But the file does not appear in any directory in the file manager and it does not exist on the server in Site A's file structure.
Somewhere the lines are getting crossed and I can't figure out where.
Any help is appreciated.


texts: What version of Expression Engine is required for the Discussion Forum module?

texts: Can you please tell me if the Discussion Forum Module will run on Expression Engine version 2.3.0?


texts:
Currently working on a site that will be making audio files available to their membership.  My Resource channel has a Channel Files field ("Audio") to upload such files.  Originally I was going to upload these files to a folder above root for additional security.  When that didn't work, I changed it to a regular folder within the site.  That still doesn't work.

When I try to upload a large MP3 file (~ 20-25MB), it goes all the way through the process, then I get an error that says

Upload request failed, no HTTP 200 Return Code! OPEN ERROR

When I open the error, I simply get a message that says

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

I tried skipping Channel Files and tried to upload the same file through File Manager, and also got the "Internal Server Error" message.

This is on a dedicated server, so I have full access to everything.  My php.ini settings show

asp_tags = Off
include_path = ".:"
ignore_repeated_source = Off
variables_order = "GPCS"
track_errors = Off
output_buffering = 4096
auto_globals_jit = On
doc_root =
log_errors = On
safe_mode_allowed_env_vars = PHP_
safe_mode_protected_env_vars = LD_LIBRARY_PATH
auto_append_file =
disable_classes =
display_startup_errors = Off
user_dir =
enable_dl = Off
register_argc_argv = Off
display_errors = Off
open_basedir = none
allow_call_time_pass_reference = Off
safe_mode_exec_dir =
default_socket_timeout = 60
html_errors = Off
register_globals = Off
unserialize_callback_func =
y2k_compliance = On
magic_quotes_runtime = Off
expose_php = Off
log_errors_max_len = 1024
post_max_size = 150M
report_memleaks = On
engine = On
memory_limit = 128M
short_open_tag = On
max_execution_time = 800
safe_mode_include_dir =
serialize_precision = 100
precision = 14
upload_max_filesize = 150M
register_long_arrays = Off
safe_mode = off
zlib.output_compression = Off
ignore_repeated_errors = Off
request_order = "GP"
default_mimetype = "text/html"
allow_url_include = Off
disable_functions =
file_uploads = On
magic_quotes_sybase = Off
max_input_time = 800
magic_quotes_gpc = Off
error_reporting = E_ALL & ~E_DEPRECATED
safe_mode_gid = Off
auto_prepend_file =
implicit_flush = Off
allow_url_fopen = On

I tested it with uploading a 5MB MP3 file and some smaller .txt and .wav files.

Anything obvious that I'm missing or could try?

Thanks!


texts:
I have a primary exp:low_search:results loop which the user can filter using low search form. The form updates the URL using normal query strings. So /index?foo=bar displays matches where field foo is equal to bar.

Simultaneously, I have a Count in the header which tallies all matches from that same channel with a certain special criteria:

{exp:low_search:results channel="my_channel" status="special_status"}{if count == 1}{total_results}{/if}{/exp:low_search:results}

My issue is that when we pass "?foo=bar" in the URL, there is no way to avoid having it affect the count query as well. So the count is incorrect on results pages for this channel.

We also have a global search page using a "keywords=foo" query parameter, and it affects the count query too. Is there a way we can tell the count query to ignore parameters in the URL, or must we re-write the count query?

Thanks!


texts:
I want to allow the user to create a layout when they publish a new item. They should be able to choose one or more of a set list of templates, each containing a text area and then one or more images (something like this).

Is there an add-on out there that could do this kind of thing? I've seen Content Elements but it doesn't (as far as I can see) allow custom sections to be created. I'm thinking the best way to go might be Matrix, but am open to other suggestions!

Thanks!

Darren


texts:
I am having so much trouble wrapping my head around Stash and the parse order. I'm trying to clean up my code and work with the DRY principle.

I have my layout and view working and pulling in my main content.

I'm stuck on the nested entries aspect of Stash and was hoping that someone would be able to help me out or point me in the right direction.

I know Stash doesn't not allow embeds but I don't know how to work within the system to accomplish what I did previously with only embeds.

Necessarily there will be more than one blog entry and almost always more than one related author id.

My view:

{embed="_layouts/_index"}

{exp:stash:set name="content"}
{exp:channel:entries channel="blog" limit="5" disable="categories|category_fields|member_data|pagination|trackbacks"}

{title}

{blog_entries_body}

            {embed="_widgets/_related_author" entry_ids="{blog_entries_author:child_ids}"}

{blog_entries_publish_date format="%F %j, %Y"}

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

My Embed:

{exp:channel:entries channel="contributors" fixed_order="0|{embed:entry_ids}" disable="categories|category_fields|member_data|pagination|trackbacks"}

{title}

{/exp:channel:entries}

Any help would be greatly appreciated.


texts:
I'm running into an issue where Assets doesn't upload a file over ~10MB. I've used EE's file manager and that could upload two different files, one ~18MB and one ~23MB.

I have this in .htaccess (which is what was needed to get EE's file manager to upload the larger files):

php_value upload_max_filesize 32M
php_value post_max_size 32M

When trying to use Assets' File Manager, the progress bar loads up, then fades away, but the file never shows up anywhere. There is no error given, not even in the console.

I'm running EE 2.5.5 and Assets 2.0.5.

Edit: I have also changed php.ini on the server to match the above PHP values in .htaccess just in case. Still no go.

Any ideas?


texts: "You are not authorized to perform this action" Error with Channel Favorites

texts:
I've got a site I made for one of my hobbies and to play around with new EE tricks (and just so I can have a site that is mine to do with as I please!). Note, there are still some links and features (search) that don't do anything, one step at a time.

However recently the Channel Favorites "like" function stopped working. I get the generic "You are not authorized to perform this action" message from the EE system. I have looked at my Blacklist, nothing there. I tried it logged in as guest, a member, and super admin...nothing. I even turned off the security feature that prevents duplicate data.

It works on my local and development versions just fine. If I export my production database to development it still works. You can see the development and production versions here:

http://dev.rcdevotee.com

http://www.rcdevotee.com

I've checked system file/folder permissions, CP paths, and everything else I can think of. What else am I missing?

Code is here (same code on dev and www, but only works on dev):

{exp:channel:entries channel="models" dynamic="yes" track_views="one" require_entry="yes" disable="pagination|member_data" cache="no" refresh="1440"}
....

{exp:channel_ratings:likes entry_id="{entry_id}"}
{if rating:not_voted}
{exp:channel_ratings:new_like entry_id="{entry_id}" allow_guests="yes"}

I like this

{/exp:channel_ratings:new_like}
{/if}
{if rating:voted}

You liked this

{/if}

{rating:liked} likes

{view_count_one} views

{/exp:channel_ratings:likes}

...
{/exp:channel:entries}


texts:
Does anybody know if there is a way / script that will allow for example my gallery pages to display in a lazy load (continuous scroll) style?

Thanks in advance


texts: Can you write a conditional which tests against image dimensions in Assets?

texts: Using Assets, can I write a conditional which tests against the dimensions of an image? So as an example if an image height is >= 200px add this class, < 200px add that class.


texts:
I have a strange issue. EE 2.6.1.

I can upload and view PDF files. However the file names in the Manager are not links to the files themselves. The manager works fine with images JPG, PNG but doesn't with PDF.

All insights are appriciated!


texts: split dynamic number of entries dynamically between 2 columns

texts: I have a list of dynamic entries I want to split evenly between two columns. Is there a way to do this?


texts: How best to get a new EE install (including channels/fields) up and running quickly?

texts:
I don't use GIT or anything (yet) but am trying to speed up the time it takes to set up a new EE site.  I'm finding that I'm setting up a lot of the same channels, custom fields, low variable, etc.  So I'm wondering, is it / should it be possible to set up a new site the way I want, export out those tables, then import them to sites afterwards as a jump start?

I tried this, and it worked - sort of.  I tried to export out my tables for Low variable groups and low variables.  Both imported fine.  However, while the groups showed up in the CP, the variables didn't (even though they were in the database).

Anyway, thanks for any thoughts you have about this, or tips/links on accomplishing something similar!

Todd


texts: Foreign Character showing Question Mark Diamonds

texts:
I have a problem, I have romainian character into the titles, but this code :

{exp:channel:entries channel="filme" orderby="title" sort="asc" dynamic="off" limit="1000"}
<?php
$letter = strtoupper(mb_substr('{title}', 0, 1));
if ($temp != $letter) {
    echo "".$letter."";
    $temp = $letter;
}
?>

{/exp:channel:entries}

Shows me on ș ț ă î something like these :�
What should I do that the output of php to come well and make my sorting method work ?
I want to build an Alphabet ..


texts:
I've got a navigation structure where I'm using the Title as the main navigation menu item and then using grid for any submenu items.  So what I basically want to do is something like this:

{if "{submenu:field_total_rows}" == "0"}{if:else}Show the submenu{/if}

I've tried multiple variations on the above row - but both empty and non-empty submenus are behaving the same way. I'm sure its just a syntax issue but I can't find what is is.


texts:
I'm running Store 2.0.2 on ExpressionEngine 2.7.1 and am using Paypal Express as my gateway. Orders aren't going through and I can't figure out why. Hoping someone can help.

User is taken over to Paypal with the correct total and can put in all their credit card info and it seems to go through. It sends them back to the site and I see it flash index.php?ACT=28&H=..... And then it redirects to the site's homepage. It should take them to the order confirmation page but doesn't.

Store sends an Order Confirmation email to the user (and admins). But the order stays Incomplete and card is never charged.

In the order detail under transactions is says the status is redirected. I don't know what that means (if anything?).

Here's my checkout tag:

{exp:store:checkout
    form_class="form-horizontal"
    payment_method="paypal_express"
    return="shop/order/ORDER_HASH"
    error_handling="inline"
    error_delimiters='|'}

Am I missing something?

Thanks for any help.


texts: How can i display single image on front-end by using matrix module?

texts:
I want to display single image on front-end by using matrix module. when I am uploading 2 image in slider I can see both image in slider but if i upload single image i can not see image at front-end.It display nothing.So Can you please help me to resolve this issue.

{exp:channel:entries channel="page" dynamic="yes"}
    {middle_slider}

            {if hide_one_page_middle_slider_quot == "No"}

            {/if}
            {slide_content}
            {author}

    {/middle_slider}
{/exp:channel:entries}


texts: Is it possible to change a Content Element Name when using Content Elements? I can only see how to delete and re-add the Content Element from scratch, but you then lose all your data. I'm using Content Elements 1.6.10 and EE 2.8.1, and thanks in advance for any help.


texts: Define Database Error (Upgrading 2.10.1 to 3)

texts:
I apologize for a question that I know has been asked and answered. However, I don't have enough reputation to reply to the answer, just to provide another "answer", which I don't have. Instead I have a complication.
I've grabbed my v3 files from this post, which I began following last year when I upgraded from 1 to 2. I've procrastinated upgrading to 5, but would like to do so within the next day or two if possible. The error I'm running into can be found in this post, which is where the problem arises: that's not what my config file looks like.
$config['app_version'] = '2.10.1';
$config['license_contact'] = "";
$config['license_number'] = '';
$config['debug'] = '1';
$config['cp_url'] = '';
$config['doc_url'] = 'http://ellislab.com/expressionengine/user-guide/';
$config['is_system_on'] = 'y';
$config['allow_extensions'] = 'y';
$config['cache_driver'] = "";
$config['install_lock'] = '1';
$config['db_hostname'] = '';
$config['db_username'] = '';
$config['db_password'] = '';
$config['db_name'] = '';
$config['db_type'] = 'mysql';
$config['db_prefix'] = 'exp';
$config['db_conntype'] = '0';
$config['system_folder'] = 'system';
$config['cookie_prefix'] = '';
$config['multiple_sites_enabled'] = 'n';

That's a blank example of what my config.php file in the user folder looks like. I followed the official instructions and yet hit this error. Is this an outdated config file? Could my database.php file also be outdated? Is there an empty config file I can use that's more up-to-date and in line with the answer from the other post?
I'm sorry to create a new question for something that's been answered, but that answer only provided more questions and StackExchange won't let me address that person's reply directly. Any assistance on this matter is appreciated.
Oh, and for what it's worth, I'm not using any 3rd party add-ons, so my step-by-step upgrade shouldn't be that much of a hassle. Shouldn't be. Sadly, it seems to be.
Thank you for any assistance.


texts: Keep getting a "Fatal error" when trying to upload an image

texts:
When I go to upload a new image from my computer I get the following error message:

Fatal error: Call to undefined function EllisLab\ExpressionEngine\Library\Mime\finfo_open() in /home/cre8sub/public_html/westleigh/system/EllisLab/ExpressionEngine/Library/Mime/MimeType.php on line 117

Is there something I need to change in the MimeType.php file? or is there another problem? or is it because I am on the free version?

Thank you


texts: Edits needed to allow mixed-case url titles?

texts:
I know hacking the EE source is discouraged, but since there is no option for preserving title case in urls (that is, not reverting everything to lower case), it is something I've been stuck doing for years. I had some initial help figuring out where I needed to make changes, but that was on EE 1.x and I am a bit concerned that I am actually editing more than I need to edit now that I am on 2.x.

What I do is the following:

In system/expressionengine/modules/channel/libaries/channel_form/Channel_form_lib.php

I comment out NewText = NewText.toLowerCase();

I also add “A-Z” to NewText = NewText.replace(/[^a-z0-9-_]/g,'');

In system/expressionengine/helpers/EE_url_helper.php

I remove strtolower() from this section

        if ($lowercase === TRUE)
        {
            $str = strtolower($str);
        }

I also add "A-Z" to [^a-z0-9\-\._]

In themes/javascript/compressed/jquery/plugins/ee_url_title.js

I remove .toLowerCase() and I add A-Z to [^a-zA-Z0-9\-\._]

Am I in fact editing some sections that don't need to be edited in order to preserve url titles with the same case as titles? Less editing for each update would of course be welcome.


texts: Expresso store refresh on product removal

texts:
I'm using Expresso Store as a webshop. In this webshop I'm able to remove an item from my cart. This is my remove button:

<input type="submit" name="remove_items[{key}]" class="remove" value="&#xf00d;" />

The problem is that I'm using ExpressionEngines Freebie for the URL. Because of this, when I click the remove button, the page refreshes to the URL that doesn't contain the Freebie segments. A small example:

When I am on this page:
http://colourindisplay.portalserver.nl/nl/webshop/category/ral-boeken/checkout
and remove an item on this page, it'll refresh to this page: http://colourindisplay.portalserver.nl/nl/webshop

I'm trying to find a way to avoid the refreshing or at least refresh it to the right URL (http://colourindisplay.portalserver.nl/nl/webshop/category/ral-boeken/checkout).

Does anybody have an idea on how to do this?


texts: How to add a different style to the first 2 entries in a channel call

texts:
I want to add a different class and fields to the 1st and 2nd entries produced from the channel entries call.

I then want the rest of the entries on the page to be the same style, that style should then continue in the pagination, the 1st and 2nd entries should not be styled differently on the pagination pages.

I have tried using {if count == '1'} and {if count == '2'}, and {if absolute_count == '1'} and {if absolute_count == '2'}, but the pagination also styled the first and second entry.

My scenario is the first entry will be large than the rest and contain different information, so different fields need to be outputted with this. Also the second entry will be slightly different too.

Any help on how i could get this working would be great.


texts: Solspace Importer - Get generated password

texts:
So I have imported a couple hundred users into my site, and in the importer settings it is set to "Automatically Create" for passwords. How do I get those passwords for those new members so I can give it to them? Or explain exactly what this does.

Thanks!


texts:
If I have a channel with the custom field "Age" (numeric type) how can I filter the channel so that only entries with "Age" >= 24 are shown?

Likewise what would be the way to define and filter a custom field using a date?

Would this require custom SQL statements or could this be achieved using the exp:channel:entries tag?


texts: Safecracker: Use a select dropdown to enter a text field?

texts:
An easy one here, I think!

I have a channel field that is a text field. This field holds a numerical value, (between 1-12)

I am creating a safecracker form to add entires from the front end. Can I use a select drop down with the values 1-12 to complete this text field or does the actual channel field need to be a dropdown type?


texts: Entries from wrong channel in results page

texts:
I've got an issue where results from the wrong channel are showing up on the results page.

Some background on the site:

Channels

pages_nl
pages_fr
pages_en
vehicle_nl
vehicle_fr
vehicle_en

The search results tag looks like this:

{exp:low_search:results
  collection="vehicles_{segment_1}|pages_{segment_1}"
    status="not closed"
    limit="10"
    disable="member_data"
 }

The results look like this:

entry from vehicle_nl, entry_id is 1401
entry from page_fr, entry_id is 1390
entry from page_nl, entry_id is 1338
entry from page_en, entry_id is 1364

So if I'm reading it correctly, entries 1390 and 1364 should not be in this list.
I've rebuilt all indexes, no joy.

The problem isn't specific to these entries, other queries that have a match in the 3 languages show up as well.

We use the same template/low_search:results tag for the results pages in the other languages and those are fine.

Any suggestions on how to debug this?


texts: Change the expressionengine publish entry datepicker

texts:
As a programming project I have a task to change expressionengine default datepicker for inserting date in publish or edit entry form with a custom one! I know where the default datepicker file is located , but I'm not allowed in any case to replace or change this file , but I need to attach my own jquery datepicker using some extension hook to the expressionengine publish entry date field , but I really don't know how to define my datepicker in expressionengine , and I only need it in the control panel / publish entry / date area! not as a channel field.

PS : the reason to change the current EE datepicker is because we have a very different format for showing date (different year , month etc.) like how chinese date format is different with US!


texts: sidebar ajax calendar - only loads one month and fails

texts:
I've got a calendar on the sidebar of every page and am attempting to load it with ajax and have partially succeeded.

Currently I can load either the next or the previous month once and only once and then it loads a new page with just the calendar visible. Trying to go back with the calendar loads nothing but on second click returns to the original page. Am stuck and have no idea how to fix this. Used this gist as a starter (everything else I tried didn't work).

Added a screencast where you can see it load correctly the first time but not the second https://www.screenr.com/SqON

My template code looks like this.

Sidebar Template

        {embed="embeds/full_calendar"}

Embedded Template

{exp:channel:calendar channel="events" dynamic="yes" show_future_entries="yes" switch="calendarToday|calendarCell" year="" month=""}

              &lt;&lt;

            {date format="%F %Y"}

                &gt;&gt;

    {calendar_rows}
        {row_start}
{/row_start}

        {if entries}

        {!--
        // need to use embed in order to get this to work
        // with structure and page_url variable
        --}
                {embed="embeds/_calendar_entry"
                    day="{day_number}"
                    entry_id="{entries}{entry_id}{/entries}"
                    }

        {/if}

        {if not_entries}
            {day_number}
        {/if}
        {if blank}
            {day_number}
        {/if}
        {row_end}
{/row_end}
    {/calendar_rows}

{/exp:channel:calendar}

And javascript inside scripts.js

$(function(){

  $('#prev, #next').on('click', function(e){ // catch the click, and bind that click-event to the variable "e"
    e.preventDefault(); // stop the event from firing (so user doesn't get forwarded to the actual link)

    var elem = $(this),
      link = elem.attr('href'),
      target = elem.attr('rel');

    $.get(link, function(data){ // do a GET-request
      $('#cal_container').html(data); // put the results in the target-element
    });

  });

});

Changed the javascript to the following (shorter) and it works exactly the same as the first including not going more than one month

$(document).ready(function() {
  $('#prev, #next').on('click', function(e){ // catch the click, and bind that click-event to the variable "e"
    e.preventDefault(); // stop the event from firing (so user doesn't get forwarded to the actual link)

    $('#cal_container').load($(this).attr('href') + ' #calendar');
  });
});


texts: Building slider with Low Variables, Matrix and playa

texts:
I am not figuring this one out. It's my first time trying to combine Low Variables, Matrix, and playa.

I have a slider on the homepage that is populated with Low Variables. Within LV I used Matrix to create the individual slides.

Within Matrix you can choose a project with playa which pulls in the background image (channel images), the title, and location with a link to the project.

There is another field in Matrix to give a general title to the slide. Below is my code, any help would be great!

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

{hero-tagline}

{exp:playa:children var="featured_project" limit="1"}

{title}

{project-location}

View Details

{exp:channel_images:images entry_id="{entry_id}" field="masthead_image" limit="1"}

{/exp:channel_images:images}
{/exp:playa:children}

{/lv_home_slider}
{/exp:low_variables:pair}


texts: ExpressionEngine add-on question regarding email and social media notification

texts:
I have seen functionality on a Wordpress site that allowed visitors to sign up for notification whenever new content is added to the site. The subscription allowed the user to receive notification of all new additions or to limit notifications to specific categories.

The user could also select how they want to be notified (by email, Facebook, twitter, other social media, etc.).

Does anyone know of an existing EE add-on that can replicate this functionality?

Thanks for your help,

Darin Parker


texts: Control Panel base url not updating... how to fix?

texts:
We recently changed the URL for an EE site currently in development.  We changed the URL entries on the General Configuration page.

We found that we could not change these entries on the General Configuration page, but could do so via the Edit Config page.

These changes are now being reflected in the General Configuration page, but the Control Panel is still trying to open pages on the old URL.  This is OK after a fashion (the old URL is aliased to the new one), but is causing EE to throw CORS errors for some plug-ins (in particular Assets).

Anyone know how I can coerce EE into recognising the new URL to the Control Panel index page?

We're using a simple installation of EE 2.9.2 (not MSM).

Thanks in advance for whatever help you can provide.


texts:
I'm trying to set up a template that will group related entries by category, and display the category name and description for the first entry of each category set.

For example, this page will display an entry for a restaurant menu. The title and description for the menu are part of a single channel entry, followed by the items on the menu, which are all related entries from a products channel:

  Menu Title Menu Description Appetizers
  Item 1 Item 2 Item 3 Salads
  Item 1 Item 2 Item 3

  etc.

So my template code is like this:

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

{menu_title}

     {menu_description}
     {menu_items}
          Here's where I get stuck.
     {/menu_items}
{/exp:channel:entries}

I can readily display the category info with the categories tag pair:

{menu_items:categories}
     {category_name}
{/menu_items:categories}

What I can't seem to do is group them together, identify the first item etc.:

{menu_items:categories}
     {if count == 1}
{category_name}
{/if}

{menu_items:product_name}

{/menu_items:categories}

I've tried several variations of the category_archive tag, as well as the Category Sorted Entries plugin, but to no avail.

I've also tried to back into it, by starting with the categories first, but it all get very convoluted, very quickly.

I feel like there has to be a more direct approach to sorting related records. Am I wrong?

Thanks,

ty


texts: Playa's {myfield:total_children} and conditionals (checking for "no results")?

texts:
We are using EE 2.5.5 and Playa 4.4.2.

We are setting the "status" field dynamically on our site.  We need to be able to use Playa like so:

{if {myfield:total_children status="{embed:status}"}}{/if}

This currently renders as an "invalid conditional" in EE.  If we remove the brackets, it seems to work:

{if myfield:total_children}{/if}

However there is no way to pass the "status" parameter in this way.  So we tried using Switchee:

{exp:switchee
    parse="inward"
    variable="{myfield:total_children parse='inward' status='{embed:status}"}

    {case value="''"}
        AAA
    {/case}

    {case default="Yes"}
        BBB
    {/case}

{/exp:switchee}

This will output "AAA" every time, no matter what.  I'm running out of options.  Does anyone know how this functionality can be achieved?  We need to detect if there are ANY children that match the "status" criteria.  If not, then we need to show an alternate message.


texts:
I can't figure out where expression engine is changing my title to html entities.

This is specifically for the required title field

Text like: "Test á Character" is being stored as "Test &#225; Character" in the database.

The collation on the column is utf8_general_ci
The collation on the table is utf8_general_ci
The default_character_set_name for the db is latin1

I have a custom extension that's hooked into "entry_submission_end" and it stores all the request vars in a temporary table.

If I submit an entry with text "Test á Character", in my extension, the text is being inserted correctly into my temporary table as "Test á Character" but incorrectly by expressionengine into the main channel table as "Test &#225; Character" in the title field.

I'm fairly experienced with diving into the EE code to modify things but I've been unable to locate the source of this issue. I can directly update the db via SQL myself and the characters are inserted properly as well.

This happens both with custom forms and the default expression engine entry editing form.


texts:
I can't seem to get the behaviour I want out of a search result using Solspace Supersearch.

Here's the scenario:

I want a keyword search on some specific fields and on category names. I have 2 channel fields (in the same channel, all set to searchable) that look like this:

street_name (example: "Boylston")
map_address (example: "100 Boylston Street, Boston, MA")

and category names that look like this:

"Downtown" ... "Jamaica Plains" ... "West End" etc...

my Solspace result tag and URL look like this:

url: search&keywords=West+End

{exp:super_search:results
        paginate="bottom"
        limit="10"
        inclusive_keywords="no"
        keyword_search_category_name="yes"
        search_in="map_address|street_name"
        relevance="street_name=5"
        }
Output results here...
{/exp:super_search:results}

Now searching for street names/addresses seems to work fine. And searching for categories actually works fine too, unless the category name is in two segments. For example, when searching for "West End", I get no results, but if I search for "West", I'll get some mixed results but they will include entries (there are only two in my channel) with the category "West End" (both of which do not have the term "West" or "End" in any of their fields, so the category_name search must have worked). Same result when searching for "End", mixed results but those two do show up.

I have the same issue with all of my two segment category names, ex: "Jamaica Plains" gets no results, but "Jamaica" or "Plains" does.

I tried using a combination of the category-like and keywords search, but category-like is too fuzzy ("North End" results are very mixed with "South End", "West End", "South Boston", etc...). It almost works if I force category-like and keywords to search the same terms, but then they only include results that have A) The first word of the search term is found in the category name B) any part of the search term is found street_name or map_address.

When turning on debug, any time I use this parameter in my result tag

keyword_search_category_name="yes"

and my keyword search is more than one segment ("Jamaica+Plains") I get this PHP error:

A PHP Error was encountered
Severity: Notice

Message: Array to string conversion

Filename: super_search/mod.super_search.php

Line Number: 8408

We're using EE 2.9.0 and Supersearch 2.2.1. I've poured through the docs trying to find a way to search for colloquial location names as categories ("North End",etc) and addresses as just text fields. It might be a bug, but I'd take any suggestions on how to make this work.


texts: Low Search 6.1.0 Throws "No such method getAllCustomFields" Error

texts:
I've recently installed Low Search 6.1.0 on an EE 3.5.16 install and when I try to create a collection, I get the following error:

Exception Caught
No such method getAllCustomFields.
ee/EllisLab/ExpressionEngine/Library/Mixin/Manager.php:143

Anyone else encounter this?


texts: Channel Form: Why is Wygwam/CKFinder disabling the file browser for security reasons?

texts:
EE 2.9.2 - WYGWAM 3.3.3

In a Channel Form, I am getting the error...

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

...when trying to link to or upload a file.

In the Control Panel, Wygwam is working fine and the above scenario plays out as expected (works)

Yes, the Wygwam configuration setting is pointing to a proper directory.
Yes, we've added an XID hash to the form.

What else should I be looking for?


texts:
I want to set up a conditional that when correctly running will post a 'widget' on the sidebar based on the entry. I have eight events (concerts) and three venues. On the individual detail page, I want the correct venue to show up, which is the 'widget.'

I have tried several ways, and I am getting nowhere. I am lost.

{if segment_3 == "opening_night_concert1" XOR "the_greats" XOR    "a_woodwind_affair"}

{exp:channel:categories style="linear" channel="sidebar_widgets" show="6" }

{category_name}

{/exp:channel:categories}

{exp:channel:entries channel="sidebar_widgets"  dynamic="no" category="6"}

{widget_copy}

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


texts:
I am new to Expression Engine, I am looking for a plugin or extension that will allow me to authenticate admin users against Active directory. Can someone point me in the right direction?

Thanks


texts: Choosing the right subscription membership add-on

texts:
I'm updating a very old EE1.7 site for a local charity and their current site runs membership subscriptions through AMember. It's worked pretty well but it's not an ee module and the integration is pretty clunky (at least it is with this EE1.7 site). I've been looking at the current options and as far as I can see it comes down to three candidates - Charge, Cartthrob Subscriptions and DevDemon's subscriptions.

Because they're a charity that deal with all sorts of organisations they still need to be able to handle offline payments for subscriptions (cheques) and be able to generate invoices for them. But it would still be nice to handle all of the other automated functionality (expiry notices, renewal notification emails etc) from EE. Also because memberships are open to individuals, students and organisations there needs to be multiple levels of membership.

Cartthrob's solution is out because the client budget can't stretch to it. DevDemon can't do this out of the box and I'm fairly certain that charge can't do it either (they haven't come back to me, but I think their product is for a strictly 'modern' customer base).

So my questions are - is there anything out there that can do this (an addon, or a way of thinking!), and has anyone used AMember in the last few years? Is the integration any better than it was for EE1? Because I'm pretty sure that product can handle the offline / online payments issue, but it's my least favourite way forward because all administration seems to be separate from the EE control panel.


texts: Low Search: pipe character in distance:from parameter translates to %257C in GET query string

texts:
I'm attempting to submit lat|long coordinates from a Low Search form. I've got Low Search configured to use GET variables instead of encoding the query. When I submit the search form the pipe character that delimits my lat|long values is getting converted to "%257C" in the query string.

My Low Search form:

{exp:low_search:form
    query="{segment_3}"
    form_id="home_search"
}
<input type="hidden" id="distance_from" name="distance:from" value="" />
<input type="search" name="search:organization_name" placeholder="organization name" />
<input type="search" name="keywords" placeholder="keyword" />
<input type="search" id="zipcode" name="zip" placeholder="zipcode" />
<button type="submit">GO</button>
{/exp:low_search:form}

The distance:from field is being populated by AJAX geocoding response, but the same thing happens when I hardcode a string into the distance:from field like this:

<input type="hidden" id="distance_from" name="distance:from" value="30.2966026|-97.9701846" />

The resulting URL looks like:

/search/results/?distance:from=30.2966026%257C-97.9701846&keywords=foo

...and the search results page shows a PHP error:

A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 1
Filename: distance/lsf.distance.php
Line Number: 70

If I manually change "%257C" to "|" in the URL the search results page works properly.

Any suggestions? I've tried adding the pipe character to $config['permitted_uri_chars'] but that has no effect on this issue.


texts: Should you upgrade ExpressionEngine or Multiple Site Manager (MSM) first?

texts:
I am upgrading MSM and ExpressionEngine.

Which upgrade do I need to complete first?


texts: Trying to move a matrix field to another channel

texts:
We are using expressionengine as a cms. I'm trying to split a big channel into separate channels. At the moment we have several events with an agenda (which is a matrix field). Now I'm trying to "migrate" or "move" the complete matrix field into an own channel called "agenda" and replace it with an playa field in the original "events" channel.

Does anybody has a suggestion to do this?


texts: Add custom field output to Structure row

texts:
Using Structure to manage a bunch of content and I'd love to show the value of a single custom field to the right of the title. It is just a number field to identify a piece of artwork. I imagine there may be a hook or something to grab onto within Structure and grab the value, but I was wondering if anyone had done this before and had any advice to offer?

I do know that I could go the route of Zenbu to show more customized information in a standard channel entries display, but I'd prefer to keep my client in the Structure world if possible.

Thanks!


texts: Is Low Search able to search on a Playa field inside a Matrix field?

texts:
Is there a way to search a Playa field inside a Matrix field?

If not, are there any other alternatives(like using a hook) or is it really not possible?


texts: Copying billing address to shipping address with cart.js

texts: I am using the default cart.js file in my checkout which is included with CT2.5 This provides a copy billing info to shipping function which always seemed to work well, but since upgrading to CT2.5 no longer copies the billing country to shipping country, all other fields copy fine.


texts:
I have the following code:

{exp:channel:entries uri_page="{last_segment}"}

    {exp:stash:set name="content"}

              Related Articles

              {related_articles}

{related_articles:title}

                    {related_articles:excerpt}
                    Continue reading

              {/related_articles}

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

Yet the relationship tags aren’t parsed at all. The output is:

      Related Articles

      {related_articles}

{related_articles:title}

            {related_articles:excerpt}
            Continue reading

      {/related_articles}

I’ve made sure that the relationship field is named correctly ({related_articles}) and that the related articles are saved to the entry. All the other fields in the entry are parsed correctly in my template; only the relationships don’t get parsed.

I tried adding channel="channel_name" to the exp:channel:entries tag, thinking maybe EE needs to have a specific channel set in order for Relationships to work, but to no avail. I’ve also confirmed that the Relationships field type is installed (which is confirmed by the fact that I was able to create the field in the first place, but I’m grasping at straws here).

I’ve searched far and wide, and have been unable to find a solution to this, nor anybody reporting the same issue. Any help will be greatly appreciated!


texts: add/publish new field data for existing channel entries

texts:
I have and existing channel with existing entries. I added a new custom field, a radio button group, with options YES/NO, with the default option being YES.

The field is now available in the edit entry form but it has no value set until I click an option (YES) and then save the form.

Is there a way to set/publish the default value for all existing entries?


texts: Assets / S3 and Cloudfront Invalidation Issue

texts:
Recently moved the site to a new server with php7 and configured AWS for assets. When I upload images, I get an error in the console as follows:

A PHP Error was encountered

Severity: Notice

Message:  Array to string conversion

Filename: lib/Assets_S3.php

Line Number: 1569

A PHP Error was encountered

Severity: User Warning

Message:  S3::invalidate('XXXXX',Array): [InvalidArgument] Your request contains one or more invalid invalidation paths.

Filename: lib/Assets_S3.php

Line Number: 1570

[{"success":true,"file_id":"22457"}]

I'm not sure if the problem is php7, whether it's a configuration issue or whether it's an issue at AWS/Cloudfront.


texts: 404 error when trying to list category entries

texts:
I've been trying for days to figure this thing out. I'm building a News section in the site, and under news are 3 categories: Updates, Events, Archive. When you click on one of the categories, i want it to list all the entries where it is under that category, but no matter what I try I just get a 404 error.

Here are my settings:
Channel short name: news
Group Assignments > Category group: News
Category Group Name: News
News Categories: updates, events, archive

And here is my current code (though I've tried many many different options and version:

<!DOCTYPE html>

      <meta charset="UTF-8">
      {embed="Pages/styles"}
      {embed="Pages/scripts"}
      {exp:channel:entries channel="news" dynamic="no" limit="1"}
      <title>{site_name} - {structure:page:title}</title>
      <meta name='keywords' content='{news-keywords}' />
      <meta name='description' content='{news-description}' />
      {/exp:channel:entries}

      {embed="Pages/header"}

          {exp:structure:breadcrumb inc_home="no" here_as_title="yes" separator=":"}{/exp:structure:breadcrumb}
          {exp:channel:entries channel="news" category="{segment_2_category_id}" dynamic="no"}

{title}

Author: {author} Posted: {entry_date format="%M %j, %Y"} at {entry_date format='%h:%i %A'}

{news-content}

          {/exp:channel:entries}

Categories

                  {exp:channel:categories channel="news" style="linear"}

{category_name}

                  {/exp:channel:categories}

      {embed="Pages/footer}


texts: Unable to create Template group within template manager

texts:
I'm currently in the midst of developing a new EE site and it has been going relatively well. Up until now when I've run into a peculiar problem which I have never encountered previously. (at least 6 other sites running EE currently)

The problem arises whenever I come to create a new template group within the template manager as the title says. I hit the create group button enter the details and hit save. It redirects back to the template manager as is normal only the new template group does not show up in the template manger list to the side ultimately preventing me creating templates for that group.

Having checked the database table for template groups the group itself has been created as a new row in the database:

I have tried deleting this row and recreating it within the template manager again however I still get the same issue. My next port of call was to check the template base path and this is correct. I am currently developing in two environments both local and a dev server so my next attempt was to try it on the dev server as I thought it may have been an issue with my local version. Again it just would not create correctly.

My final attempt to remedy this issue was to compare previous installs of expression engine all of which still work fine and will create template groups when I add new ones. No difference and again I could see no problem with my settings from site to site.

All versions of expression engine are 2.9.2.

If anyone could shed any light on how this could be happening and how I can remedy this issue I would be most appreciative as it has put my dev on hold as I need that new template group to continue.

Thanks.


texts:
I have inherited a newly designed web site that was built with EE and we recently migrated to a Dedicated Virtual Server and upon moving the site, all of the pages are accessible and log in to EE appears to be fine.

However, any attempt to get to to the home page comes up with a blank page that has a message on line 3 that says 'is a guest'.  There is no splash page or message that I can find in the code at all that would cause this message and apparently some type of a redirect...or at least not allowing view of the main page.

As if the EE is expecting someone to sign in...but I can get to the admin page fine.

Anyone have any clue why I am seeing this and what I can do to fix it?

Thanks for any assistance.


texts: Solspace Calendar - Grid Field & Channel Images + Conditionals

texts:
I'm displaying a list of events and details on a page. Replacing the current channel:entries tag pair with the Solspace Calendar:Events tag.

I cannot work out how I am meant to display the current code (below) using the Calendar tags.

e_image is a channel_images field.
Adding {calendar:e_image} doesn't work.

    {if e_image}{e_image}

        ENLARGE IMAGE

{/e_image}
    {if:elseif e_map && ! e_image}

VIEW
MAP

{/if}

I have tried embedding it as a template using {exp:channel:entries channel="event" entry_id="?" dynamic="no"} but not sure if i am missing something or it's just not possible?

I also have the same issue with details in a Grid field - also tried embedding as a template (as noted in the docs) but cannot understand what I'm doing wrong.
Below is part of my original channel:entries code, with some added calendar:events tags.
How would I go about embedding this?

e_contact is the actual grid field, with ename, ephone, etc the individual grid columns.

        {e_contact}
        {if e_contact:count == "1"}{e_contact:ephone} {e_contact:ename}{/if}
        {if e_contact:count == "2" AND "{e_contact:ephone}" != ""} &nbsp;or &nbsp; {e_contact:ephone} {e_contact:ename}{/if}
        {if e_contact:count == "3" AND "{e_contact:ephone}" != ""} &nbsp;or &nbsp; {e_contact:ephone} {e_contact:ename}{/if}
        {if e_contact:count == "4" AND "{e_contact:ephone}" != ""} &nbsp;or &nbsp; {e_contact:ephone} {e_contact:ename}{/if}
        {/e_contact}
        {e_contact limit="1"}{if e_contact:ephone}{/if}{/e_contact}
        {e_contact}
        {if e_contact:count =="1" AND "{e_contact:eemail}" != ""}{e_contact:eemail}{/if}
        {if e_contact:count =="2" AND "{e_contact:eemail}" != ""} or &nbsp; {e_contact:eemail}{/if}
        {if e_contact:count =="3" AND "{e_contact:eemail}" != ""} or &nbsp; {e_contact:eemail}{/if}
        {if e_contact:count =="4" AND "{e_contact:eemail}" != ""} or &nbsp; {e_contact:eemail}{/if}
        {/e_contact}
        {e_contact limit="1"}{if e_contact:eemail}{/if}{/e_contact}

ANY HELP is appreciated!


texts:
EE 2.4
Assets 1.1.5

Following a server upgrade from PHP 5.2 to PHP 5.4 all files in the Assets addon have gone from a clients installation. All the images in the channel entries have also vanished. Could you please tell me if a an upgrade to the latest version of Assets will solve this?


texts: Database Error When Adding/Editing Pages With Structure

texts:
Whenever I attempt to add or edit a page in Structure, I get the following error:

A Database Error Occurred
Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' listing_cid = 0, hidden = '' WHERE entry_id = 456' at line 1
UPDATE exp_structure SET parent_id = , listing_cid = 0, hidden = '' WHERE entry_id = 456
Filename: third_party/structure/mod.structure.php
Line Number: 2993

It doesn't seem to matter what's on the page, how complicated it is, or how old it is.
The site's running on EE v2.11.7 and Structure v3.3.19. Attempting to use Structure's "Debug" mode did nothing.
Any ideas as to what could be causing this? The only recent major change to the site was upgrading to a newer version of PHP. Hopefully that's not the culprit, because that was required to fix some compatibility issues with a different add-on.


texts: How do I upload a file from my template to my Channel Files field?

texts:
Apologies if this has already been asked and answered, but I couldn't find any tangible example on how to actually do this.

All I'm trying to do is create a template in ExpressionEngine, and upload a small JPG file to a channel field that's set to a Channel Files field type.

As this post suggests, it should work the same as uploading to a regular File field type using the Channel Form tag, but it doesn't seem to be uploading the file. The code below works perfectly for the normal File field type for adding new entries:

{exp:channel:form channel='other_details'}

    <input type='hidden' name='title' value='Some new title here.' />

    <input type="hidden" name="custom_upload_hidden_file" value="">
    <input type="hidden" name="custom_upload_hidden_dir" value="2">
    <input type="hidden" name="custom_upload_directory" value="2">
    <input type="file" name="custom_upload">

    <input type='submit' value='Upload' />

{/exp:channel:form}

The file upload location is a location with ID 2, which is perfect, but I need to upload the file to a Channel Files field type, not a normal File field type. How do you achieve this?

Thank you in advance for any assistance!


texts:
I can't log out of my site's front end.  When I try to do so, I get the following message:

The following errors were encountered

   • You are not authorized to perform this action

If I delete my cookies, then I will be logged out.

I've tried all three setting settings for Website Session Type in the Admin section of the Control Panel, clearing the cookies between tests, but I get the same error when I try to log out.


texts:
I read the EE Template Routes documentation, no have concrete tutorials and examples. It's hard to understand how to use it.

Does someone have a simple and concrete example ??

thanks


texts:
Is there a standard way to do 404 pages with structure? Many thanks!

Ben


texts: What's the best way to do organise music album products in CartThrob? Each album would be available to buy as a CD and/or download. And then each track from the album would be available to buy individually. So I was thinking that each item (CD and downloads) would need to be separate products. I could then group them on an album page by treating the album as a department with a separate channel and pulling all the product items onto the album page using a related field in the channel.


texts: How to manually create EE 3 member accounts

texts:
I have a situation where I may have to pull from another sites member list (not EE)and bring those over to my EE site for use.  It may be an excel sheet they provide or something else I recommend.

Can someone help explain what would need to be done to manually create member accounts with EE 3.5 so I can let them log on with creds they used from other site.  I'm assuming I'd have to know what tables it inserts to during registration and create entries in the database for all the related fields provided.


texts:
Using Active Record in an EE2 project, is there a specific function that retrieves the next available entry id of a record I am going to insert?

At the moment I have this code to generate the next id before I insert a record into the database:

$this->EE->db->select_max('entry_id');
$this->EE->db->from('exp_channel_titles');
$entry_result = $this->EE->db->get()->result_array();
$entry_id = intval($entry_result[0]['entry_id'] + 1);


texts:
I have found a couple of loop plugins but I cant quite figure out how to get what I'm looking for.

I would like to have a select dropdown in my template that looks like this:

October   2014
November  2014
December  2014
January   2015
February  2015

How would I accomplish this?


texts: Is this a hosting/database issue not an EE issue?

texts:
I just want to confirm that the interminttant issues on this site not rendering (blank page) and this error are related to web hosting and not EE/Low Variables 2.3.4:

Error Number: 1

Can't create/write to file '/tmp/#sql_a34_0.MYI' (Errcode: 28)

SELECT `ee`.`variable_name`, `ee`.`variable_data` FROM (`exp_global_variables` AS ee) JOIN `exp_low_variables` AS low ON `ee`.`variable_id` = `low`.`variable_id` WHERE `ee`.`site_id` = '1' AND `low`.`early_parsing` = 'y' ORDER BY `low`.`group_id`, `low`.`variable_order`

Filename: third_party/low_variables/ext.low_variables.php

Line Number: 323

Thanks


texts: Displaying Zoo Visitor Results with Super Search

texts:
I am currently trying to impliment a search of my Zoo Visiter entries; my channel is called Associate. As my title for this support request would suggest, I have Super Search installed on my site as my search engine of choice. I have tried multiple configurations using Super Search with no luck. Is it possible for me to display these member entries as search results? Am I doing this incorrectly, or is this just not possible?

My results code is below for reference:

{exp:super_search:results channel="associate" limit="10" group="Associate" keyword_search_author_name="yes" author_indicator="screen_name" partial_author="yes" paginate="bottom"}
  {if super_search_no_results}

No Results Found

     There were no results found for your search.

  {/if}

     {title}

Insights / {categories show_group="1" backspace="2"}{category_name}, {/categories}

  {snp_pagination}
 {/exp:super_search:results}


texts:
Using the native Comments Module, I have a comments form and entries on a page with a single blog entry.

I am attempting to add an edit button to allow users to edit their comments on the front-end.

The edit link works fine for a Super Admin. According to the EE documentation, I should be able to edit as a regular member as long as that member is logged in, the author of the comment, and the editing time limit must not have expired.

I have all 3 of those conditions met, yet nothing within the {if editable} renders.

any insight would be appreciated.

update:
My setup

{!-- jQuery is included in  --}
{exp:comment:edit_comment_script}

    {exp:comment:entries sort="asc" limit="20"}

            {comment}
            {if editable}
                Edit

                    <textarea cols="70" rows="8">{comment_stripped}</textarea>

                    <input type="submit" name="cancel" value="Cancel" class="cancel_edit">
                    <input type="submit" name="save" value="Save" class="submit_edit">

            {/if}

                By {name}
                on {comment_date format="%m/%d/%Y"}

    {/exp:comment:entries}


texts: Bypass "Invalid activation request" if member group has been assigned by other means

texts:
I have a registration process which is split into a number of steps, at step 1 the user creates a free account (which requires activation by email to be moved from pending to the relevant group_id), at step 2 the user can choose to become a paid member, the module I'm using then moves the member to the relevant paid member group upon completion of payment. This all works just fine and is quite a normal process to follow (I think, Github uses a similar mechanism).

The problem I have is that I want to validate email addresses for free accounts but if a user continues and becomes a paid member 'before' they have activated their account and then attempts to activate it subsequently, they currently get the "Invalid activation request" error because they are no longer a pending member.

To me it seems the simplest solution to this problem would be to allow member activation to fail silently or somehow hijack that process and bypass the error for members that are no longer pending.

I've searched far and wide for an existing add on that does this with no luck and it seems that the 'member_register_validate_members' hook (http://ellislab.com/expressionengine/user-guide/development/extension_hooks/module/member_register/index.html#member_register_validate_members) fires 'after' validation and not before so I can't see that it will help me.

Any bright ideas?


texts:
My login suddenly stopped working, despite me using the same credentials and not having changed them. So, I have tried to reset my password by going thru the "forgotten password" process. I get this from EE:

  If this email address is associated with an account, instructions for
  resetting your password have just been emailed to you.

I receive no emails. I tried password resetting another account; also no emails. Checked spam, too.

The site was recently copied over from one hosting to another. Is there anything in the EE database that stores hosting specific mail configuration when initially installed? Perhaps that might be causing the problem?


texts: Unable to search for YouTube videos in DevDemon's Channel Videos

texts:
I have installed the latest version of Channel Videos 3.2.0A. When I am in the channel entry and try to search for a YouTube video, or manually enter the YouTube URL, I just get a spinning circle. It never completes the search. Vimeo works fine. I don't know if this is related to the latest api changes with YouTube. Are we supposed to be entering an api key? I didn't see anything about it in the documentation.

Thanks

**Additional information: This is an MSM install, and Channel Videos is searching YouTube properly on the other 2 MSM sites. The only thing I can think of that is different about this site is that there is an SSL certificate  of the site where I'm having the issue.


texts: Specify PDF filename using Shine PDF plugin

texts:
I'm using Shine PDFto convert an EE template to pdf, and I need to figure out how to specify the file name when the pdf is downloaded (it defaults to mpdf.pdf). The docs seem to imply that the  tag is used, but that doesn't seem to be the case.

I've tried contacting Shine about it via email and twitter and gotten no response.
Has anyone who has used Shine PDF successfully specified the document title? Or is anyone familiar enough with the mpdf library to suggest how it can be done?


texts: Running EE across two servers - how to setup?

texts: I am shifting to a two-server setup for running my site. This would mean one server handles MySQL and one handles web stuff. My understanding is all I need to do to make this function with EE (version 2.x) is to edit the database.php config file for EE on the server that handles the php to point to the IP of the MySQL server, but is there anything else I should do?


texts:
I'm attempting to retrieve a cookie in index.php to record the value in a global_variable. I'd like to do it this way to avoid including PHP/plugin code on every template. Currently I have;

$assign_to_config['global_vars']['user_location'] = $this->EE->input->cookie('user_location');

However this throws the error;

  Fatal error: Using $this when not in object context in
  /xx/xxx/xxx/index.php on line 28

Am I allowed to do this sort of thing?


texts: I am developing a directory and have created a channel that holds information such as name and logo etc for a business. In this channel I have used channel forms, although I have no idea how to actually integrate it into my html. Below I have shown some screen shots that show my code and the results im getting. Please help


texts: Username field validation on registration form

texts:
I have absolutely zero experience with Expression Engine but I've been given a task to fix a validation on a registration form. There's a username field that is supposed to validate as email address only but right now it accepts any string. I have no idea if that registration is a plugin or built in. I found it's template in /themes/forum_themes/site/forum_member

I suspect I need to find a model for the registration db table now and change the validation type from string to email? Or something like that? I have basically no idea where to start without getting to know EE from scratch.

Any help apprieciated. Thanks


texts: Low Variables Error : "Field 'edit_date' doesn't have a default value"

texts:
I've had this happen on a couple of different projects today. Weird coincidence? Something I'm doing?

The error shows up upon trying to save a new variable. The variable does actually get created, but only the Variable Name is saved.

Anyone seen this error before?


texts: Need help finding a way to set up a booking system for expressionengine

texts:
I'm looking for a good solution for setting up a reservation/booking system as part of an ExpressionEngine website I am estimating for a client. I am ideally looking for something that will integrate with Cartthrob for payment for reservations. If anyone has a suggestion I would greatly appreciate it.

Thanks,

Brian Rivet
brian@odysseydesignstudio.com


texts: Shipping cost based on membership (Expresso Store)?

texts:
We are wanting to determine shipping cost threshold based on membership. We have consumer products with orders over $15 free, and we also have trade products for members, and wish to extend the threshold to orders over $100 free shipping.

I have created two shipping methods (using default with rules), and was hoping it'd be as simple as the following on the cart page.

{if member_group == "6"}
    <input type="hidden" name="shipping_method" value="5">
{if:else}
    <input type="hidden" name="shipping_method" value="3">
{/if}

It almost works, but as we wish to show shipping cost on the main cart page, the above conditional hasn't been processed as the conditional is on the cart page.

Is there another way, or do we simply remove shipping cost from the cart page and only show it on final payment page (not ideal)?

Regards,

Christiaan


texts: List all channel entries in a Single Template menu?

texts:
I have a channel called stories and a menu.html that includes the stories by looping through all the entries and adding all those that have a "yes" add to menu.

It works on the main index.html template list for the channel (via embed). However in single.html (the displays only one entry) the embedded menu.html only displays the menu link associated with the entry shown - it needs to show all the stories. How do I do this?

Code for menu.html

          {exp:channel:entries
            channel='stories'
            orderby='stories_item_date'
            sort="desc" }

              <?php
                  $list_menu = 'Yes';
                  if ($list_menu == '{testimony_menu}') {

                    $current_page = '{testimony_no}';
                    $menuID = '{testimony_menu_id}';
                    if ($current_page == $menuID)
                    {
                      echo "
";
                    }
                    else {
                      echo "
";
                    }
              ?>

{testimony_chapter_title}

            <?php } ?>

          {/exp:channel:entries}


texts: Simple question... Can you display the latest revision author?

texts:
I need to track revisions for some docs and I am displaying the original creation author and date via:

Created: {entry_date format="%m/%d/%Y"}

Author: {author}

I need to display the latest edit date and author too. I am pretty certain this would be something like:

Last Edit: {edit_date format="%m/%d/%Y"}

Author: {author}

I just don't know of a last editing/revision author tag.

Is that available?


texts: Are there any custom field types, besides Matrix, that allow you to create an updatable, non-finite list of things?

texts:
One of my main use cases for Matrix is when I need to manage a non-finite list of things related to an entry (e.g. translation links for articles may trickle in over time, and there's no pre-defined list of sources of them).

Sometimes Matrix feels like overkill, so I'm wondering what other folks use for this purpose.

Edited:

Someone mentioned Pixel & Tonic's List, which is a good one for my translation links use case; it's available in their Dive Bar: http://pixelandtonic.com/divebar

Another common use case is images: how do you allow users to add a non-finite set of images to an entry?


texts:
The exp:calendar:cal tag appears to completely ignore both category parameters:

{exp:calendar:cal category_url_title="{segment_4}" date_range_start="year-month-01" date_range_end="year-month-last"}

If we also set the calendar_id, then we get zero results, and we know the content is there and assigned to categories.

We really want to use categories to sort events so a single event could be assigned to multiple categories.

Anyone know the secret to making the secret to getting this tag to sort results by category?

Thanks.


texts: "Add More" feature with Freeform Pro add-on in ExpressionEngine?

texts:
I want to have a form with a feature where user's can add multiple email addresses with a "Add More" button.

But I am not able to find any such facility in Freeform Pro?

Please advise how we can implement such functionality with Freeform Pro add-on in ExpressionEngine?


texts: Can we count an if result and change the resulting text?

texts:
I'd like to be able to use an if statement to determine what to show based on the amount of results from the if statement in a reverse related entry.

For example:

If an actor has two stage names, list the two stage names using the EE loop. But if the stage name fields in the entries match the actors name , show the 'No other stage names' text and not list the actors name again as I'm using it elsewhere on the page.
I am trying the code below, but not working...

    {reverse_related_entries channel="play"}
                            {if stage_name != actor_name OR if stage_name !="" }
                            {stage_name}
                            {if count <1}
                            No other stage names
                            {/if}
                            {/if}
                        {/reverse_related_entries}

Any ideas??

Thx!


texts: CartThrob - Getting started with inventory

texts:
I'm setting up a shop with CartThrob, with one product with multiple options. This is set up using Price modifiers. But now the customer has requested inventory to be updated through the shop. I've looked around, and tried to see how it's done, but to no luck.

I've tried setting up a text field called inventory, and set the Product Inventory Field Name to this field, but it won't change. I also tried to do it with a Matrix, but that didn't work either.

I have the "Update Product Inventory When Editing Order" set to Yes as well.

I've tried installing the "CartThrob Price Modifiers Configurator", but there is no column for inventory here.

Is there any Getting started guides for inventory in CartThrob? Because the docs are getting me nowhere.

Edit: I've even tried adding {inventory:reduce entry_id="6" quantity="4"} pointing to the product id, but still nothing.

Edit2: Okay, so setting the Price Modifiers Configurator field to the inventory-field gave me the inventory column, as I wanted, but it's still not updating the field after purchase.


texts: Error Number: 1064, ExpressionEngine 1.7.3 Chrome Bug

texts:
I am getting the following error in Chrome for my site:

MySQL ERROR:

Error Number: 1064

Description: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'd code on line 341'' at line 1

Query: SELECT cat_name FROM exp_categories WHERE cat_id ='Notice: Undefined variable: catID in /www/eh17535/public_html/cp/core/core.functions.php(672) : eval()'d code on line 341'

I am only getting this in Chrome, IE and firefox work fine.

Can anyone help me?

Thanks,
Allison


texts: PHP error on template export, after upgrading to 2.6

texts:
Getting the following when I try to export any template group...

A PHP Error was encountered

Severity: Notice

Message: Undefined property: Design::$api

Filename: cp/design.php

Line Number: 3516

Fatal error: Call to a member function instantiate() on a non-object in (mypath)/system/expressionengine/controllers/cp/design.php on line 3516

I have disabled all third-party add-ons, as well as tried a clean install followed by a database import, and the problem persists. Any thoughts?


texts: Getting the field ids of fields with certain field types

texts:
Assume that we have module A which has it's own field type.

We add field(s) in Channel X that is has the field type of module A.

Is there a way inside a module method to know the field id of the field(s) that has those field type?

UPDATE:

Here are the assumptions that I have inside the module method

The module method already knows the channel name
The module method does not know the field_name nor the field_id
The module method knows the fieldtype name


texts: In ExpressionEngine 2.8+ with Primary Category 2.3 I am unable to see the Green Plus signs or do anything to add the Primary Category. I attempted with a clean install of EE in a testing environment and was unable to see them there as well. Am I missing a step or is this a bug?


texts: Expresso Store - Order Status Change on DB level (via Datagrabber) send out email notification to customer

texts:
Working on a project where there is a need to be able to take data provided in the form of an xml file, from an AS400 mainframe, which updates information relating to certain orders placed in Expresso.

Notably, a status change from 'approved' to 'shipping'. Naturally, when this occurs the customer should be notified via email along with a provided shipping number.

The issue at hand is how to trigger an email within Expresso when a simple database change on a field is made. If one goes through the application itself, via the GUI, and changes a status then an email is sent. However, the staff want no part in manually changing order statuses on the EE end of things. They'd rather only have to focus on the AS400.

So there has to be logic in place to accomplish this.

The Expresso team was helpful and pointed me in the right direction, however I was hoping for some additional clarity from you guys and perhaps recommendations or code examples.

  Anything that triggers our updateStatus method in Order.php will
  trigger any emails and actions associated with the change of order
  status. So if you have emails setup to be sent for each status then
  these will be triggered.

  If you're changing the status outside of the Store application however
  and not going through our updateStatus method then you'll need to
  latch on to our Order Status hooks
  (https://exp-resso.com/docs/extension_hooks.html#order_status_hooks).
  You can use the store_order_update_status_end to fire off an email
  or anything else you need to perform once the status has been changed.

This is my first time diving this deep into EE or Expresso. I've done some exciting things so far in this project, but this one has been the most indepth thus far.


texts: How to count number of times a channel entry was viewed in frontend?

texts: Say I have a Channel calls "Products" that contain individual product information. Is there a way to set up EE so it can keep count of the number of times the product was viewed in the front end?


texts: index.php removal in .htaccess doesn't work when on https

texts:
I have the following htaccess setup:

<IfModule mod_rewrite.c>
        RewriteEngine On

        # force https for all URLs in /admin.php
        RewriteCond %{HTTPS} =off
        RewriteRule ^admin.php https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

        # Redirect index.php Requests
        # ------------------------------
        RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
        RewriteCond %{THE_REQUEST} !/system/.*
        RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,L]

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

This all works great, when a user goes to /admin.php they are forced to use https and when everywhere else they just use http. However if you navigate to a front end page using the https protocol you'll get a 404 error.

Seems to be because the index.php removal technique isn't working for https, for example:

https://domain.com/page - doesn't work
https://domain.com/index.php/page - does work

http://domain.com/page - does work
http://domain.com/index.php/page - does work

I can't work out what I need to change to make it work when in https as, as far as I can tell there isn't https/http specified in my htaccess for the index.php removal? Any ideas would be most appreciated!