texts:
I am using EE's contact form {exp:email:contact_form} for user submitted queries on my site and would like to know if its possible to customize the layout of the email it sends?

Currently I have several fields that need to be sent (first name, last name, mobile, email & message) and I have added them to the message content by naming all the inputs with the

name="message[]"

attribute which adds each field on its own line. Am I able to add in for e.g a header piece of copy ("The following is a query from your website") or labels for the fields ("Firstname: {first_name_input}" ?


texts:
I am having an issue with the cartthrob_on_authorize developer hook. I use the hook to carry out some additional processing to the customer order. One such process is to set an order status based on what was ordered. In order to do this, I use the following code:

ee()->order_model->update_order($order_id, $new_status);

Where $new_status = array('status => "Processing");

This is where it gets a little bit confusing. We use Sagepay Server as our offsite payment processor. The code above works perfectly if the customer successfully checks out first time. However, if their first attempt fails (ie they cancel the initial transaction or enter the wrong card details) and then successfully complete the transaction shortly afterwards, the order status defaults to Complete

Has anybody experienced this issue before?


texts: Showing Expired Entries in Channel Entries Edit List

texts:
So our client is constantly adding entries that have expiration dates, but in the Edit page for Channel Entries, you can't filter the list to show all expired entries for example.

Problem is that the client then has no idea which entries have expired and which haven't.

Any ideas on how to approach this?
Thanks!


texts: CartThrob checkout_form outputting wrong return value

texts:
This is my template code:

{exp:cartthrob:checkout_form
    error_handling="inline"
    required="card_type|credit_card_number|CVV2|expiration_month|expiration_year";
    return="store/thank-you"
    authorized_redirect="cart/authorized"
    failed_redirect="cart/failed"
    declined_redirect="cart/declined"
}

Testing form return

{/exp:cartthrob:checkout_form}

This is the HTML output:

<form action="http://local.729beauty.com:8888/store/payment" method="post" id="checkout_form">

<input type="hidden" value="35" name="ACT">
<input type="hidden" value="http://local.729beauty.com:8888/store/payment" name="RET">
<input type="hidden" value="store/payment" name="URI">
<input type="hidden" value="25a5d098274dc3160f8523810faa9984" name="FRM">
<input type="hidden" value="inline" name="error_handling">
<input type="hidden" value="store/thank-you" name="return">
<input type="hidden" value="cart/authorized" name="authorized_redirect">
<input type="hidden" value="cart/failed" name="failed_redirect">
<input type="hidden" value="cart/declined" name="declined_redirect">
<input type="hidden" value="fhXgN84OH//7He+A4cXWnIz6lkOXlLpUertRTQuYJk9YoLaeB8gd0mFhm3KQ4xVV8iyq/WazuYN1+AO0KgMgjw==" name="AUP">
<input type="hidden" value="aMvc2dbOlMHq47x3DAetF0q8+dJgiJnc5jrQsbCok5bZFvQeDw+8fvt+f+D6okrn3XV1W13pKBGUfzk6HBx4pg==" name="AUS">
<input type="hidden" value="hm4P2Y45BfyKYFIfMctshTwj3XIK/YZTY+1SFIraj7MRXv+1mV0Cn2fXmE94ucJVlhjB342tbHStUdElrI0ofg==" name="OTF">
<input type="hidden" value="clUmg1Fh9OCt57mfBxpB2HZHhIFYx9+a55KP9LyESvVqX8kImrEyzIvRjSBsgqaMkjANz/W0LSJIH9Jzc+T9qQ==" name="LIC">
<input type="hidden" value="fpbNvFH23jf9kBAB/2uKUN0ZrABtC+gr56EyWPf90sn+zQ+WfswMD/pX+4YhRKZNNvf1SWHGRpf24C5Kj4Cl2Q==" name="VLT">
<input type="hidden" value="0fLMF9faQwPbNeSll2SEquZQ4cGiRFFERDmWW5b8TsARIEpqD/hGOPGu+6WrvhpJPGB6/7rqXqPZaw3tkHMmjA==" name="FPR">
<input type="hidden" value="8mwr+A6qu1YL2KqV+eLw+il5yAOJVnw/0/P7ydcc5AGuvAMmN0HIpAaIkDrzkiAum1FARjINlwQEBu9hdMUp2w==" name="SM">
<input type="hidden" value="+t4T56oqmiDwn1o8KwocJ5Jx9AP4aWvWR9oJII4gGBldRTK/oagDRV275nxNZN6bZvd2Y13qSYhTbVnkQjEz3g==" name="SUB">
<input type="hidden" value="19LPDjYtW4qwaVHxrR3JpFHD6WWVqtOgPKSXnpBQyM8UtCej6XppTjxBBX3w0/4gzJQGXXZaCBEi+zuolcwkEw==" name="ERR">
<input type="hidden" value="kHX0W/xf6ylW9S8tejEOu+P0VXsIwvOxt4NAT3ov7DzOXGlyqkrLUO7hrZZ95W8uH3JTEm9guHBVRf1uSsbUJtK0+7p3puGrSGMpyfkiNejqDO6GgN9bUe/4FipX6grvKwsaSrnBgg64Bqhmclyc2Bgm48fKTrlqbNcRtdsg6re8hSHGYRVhPNr1dm+VLGhzNqy797q6K8Yv1emgJl8F8Qke8j4KQEUuAOGRWrPYbiIsC/n+7uOczQ7bjRRTmoPqSqvfo7Hlsvc8DGI5iUbDgFG7YvvnM2fg9njk6d+e5gU=" name="RLS">
<input type="hidden" value="1" name="site_id">
<input type="hidden" value="91ac855ea139e6cf936f80345b0c88bbd8c2fe4e" name="csrf_token">

The form's action is set to something different than my return value. Any thoughts on why?


texts: Can I add custom product modifiers that are different for each instance of the product in the cart?

texts:
I'm building a course booking system.  Users will be able to book one or more 'places' on a course.  When they make their booking, they need to provide their details (name, address, age, etc).

Say a user is booking 5 places on a given course.  They need to be able to provide different details for each of those places.

It's similar to what you might have seen when booking plane tickets.  You specify how many people are flying, then you get a form with a set of fields for each passenger where you enter their name, passport number, etc.

I thought I might be able to use the product form tag and add custom modifiers, but it doesn't seem to be possible to add different modifiers for each 'instance' of the product.

Has anyone done something similar?  Am I barking up the wrong tree with modifiers?  Is there a better solution?

Thanks for your help
Pete


texts: View file cannot be found when creating new class

texts:
Edit

I have two separate add-ons in play here with EE 3.5.3

addons/project/ext.project.php
addons/project_mailer/mod.project_mailer.php
addons/project_mailer/views/mail_template.php

I've got an extension set up that includes a module file, so that I can call a function from it later on (see below).

<?php
/**
 * File: ext.project.php
 **/

if ( ! class_exists( 'Project_mailer' ) )
{
    require_once( PATH_THIRD . 'project_mailer/mod.project_mailer.php' );
}

// Code and stuff

$mailer = new Project_mailer();
$mailer->send_mail_update( $entry_id, $channel_id );
?>

This is all working fine and the function is called however when I try to load a view from it I'm getting an error: Unable to load the requested file: mail_template.php

My assumption is that because I'm creating a new instance of the class it's looking for the view file relative to my extension rather than the module? (Correct me if I'm wrong on that though)

I've attached a copy of the code within the send_mail_update function below. I tried to use the commented out line instead however the same error appears but with the full path included.

<?php
/**
 * File: mod.project_mailer.php
 **/

public function send_mail_update( $entry_id, $channel_id )
{
    // Code and stuff

    return ee()->load->view( 'mail_template', $data, TRUE );
    //ee()->load->view( PATH_THIRD . 'project_mailer/views/mail_template', $data, TRUE );

}

Is there any way to get the view to show correctly in my current set up?

Thank you.


texts: Nested List Data not shown on first page load

texts:
I've got a nested set_list that adds "tags" (which are really just relationships) to a list that the frontend then loops through.

It's set like this

{!-- SO: Grab relevant tags --}
{exp:stash:set_list:nested
  name="tags"
  context="{segment_3}"
  parse_tags="yes"
  save="yes"
  scope="site"
  refresh="120"
}
  {stash:tag}Blog{/stash:tag}
  {stash:url}/blog/{/stash:url}

  {exp:playa:children field="blog_contributor"}
    {stash:tag}{title}{/stash:tag}
    {stash:url}/contributor/{url_title}{/stash:url}
  {/exp:playa:children}

{/exp:stash:set_list:nested}
{!-- EO: Grab relevant tags --}

This works well, but only on the 2nd page refresh and after. The first time that you load the page the items set by the non-nested lists are fine but these bits are empty.

Looking at Mustash after first load it renders this:-

tag|=|Blog|&|url|=|/blog/|+|tag|=|Al Overdrive|&|url|=|/contributor/al-overdrive

But this isn't rendering on the front-end. The front-end code is

{exp:stash:get_list:nested name="tags" context="{segment_3}" scope="site"}

{tag}

{/exp:stash:get_list:nested}

I'm pretty sure I'm missing something obvious here, but any help is appreciated.


texts:
In shipping methods, is it possible to setup zones? For example rather that setting up a separate method for ever country in Europe, can I create a single shipping method for Europe and add in the European countries?

Thanks as always!


texts: solspace super search 'super_search_keywords' and 'csrf_token' tags not parsed

texts:
EE 2.7.2
MSM

I've just installed SOlspace Super Search and added the simple form example from teh docs but neither the {super_search_keywords} or {csrf_token} tags are getting parsed, both are rendered literally.

        <form method="post" action="{path='search/results'}" role="form">
            <input type="hidden" name="csrf_token" value="{csrf_token}" />
        <input type="text" name="keywords" id="keywords" value="{super_search_keywords}" placeholder="Find a resource" />
        <button type="submit" name="commit" value="draft"></button>

    </form>

I can't see any config that I've missed, is there something else that needs to be included on the form page?


texts: DevDemon Credits v2.5.3a includes a deprecated method decode_date which was removed in #eecms v1.9.2.


texts:
I've done something a little silly, I've been trying to put cookie consent module into a site. Somehow I've activated it, but I have no way to accept cookies and I cannot now log into the admin area of the site.

Is it possible to disable/uninstall plugins via Mysql database or some other way?


texts: How to update a plugiun using info in Developer's Log?

texts:
I am getting several messages in my Developer's Log similar to this. It wants me to update a plugin.

Deprecated function set_variable() called in system/expressionengine
/third_party/title_master/mcp.title_master.php on line 138.
Deprecated since 2.6. Use view-><var> = <value>; instead.

Below is what the above is referring to, but I am not sure what to change it to.

public function settings()
{
    $this->EE->cp->set_variable('cp_page_title',
                            lang('channel_settings_page'));

Can someone tell me exactly what it should be? Would help me a lot and I thank you in advance. :)


texts:
I have a matrix field called {gallery} it has a column with 2 checkboxes - public and private

I would like to show only the items marked private but would also like an optional message if there are no private items. This code does not work:

{gallery} {if publicprivate =="private"} {if no_results}
       No rows available
   {/if}

 {/if}
{/gallery}


texts: Uncaught Error: Class 'PDO' not found when I upgrade to PHP 7.2

texts:
I am running EE 5.3.0, hosted on Media Temple. I have been trying to upgrade to PHP 7.2 but when I do I get the white screen of death with the following error message in ee_wizard:

  Fatal error: Uncaught Error: Class 'PDO' not found in
  /home/mydomain/public_html/ee_wizard/index.php:243 Stack trace: #0
  /home/mydomain/public_html/ee_wizard/index.php(131): check_db(Array)
  1 {main} thrown in /home/mydomain/public_html/ee_wizard/index.php on line 243

I also get similar Fatal error messages when I attempt to run the site after enabling PHP 7.2.

I could really use some guidance on a way to fix this problem.

Here is what my php.ini file looks like relative to PDO:

[Pdo]
; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off"
; http://php.net/pdo-odbc.connection-pooling
;pdo_odbc.connection_pooling=strict

;pdo_odbc.db2_instance_name

[Pdo_mysql]
; If mysqlnd is used: Number of cache slots for the internal result set cache
; http://php.net/pdo_mysql.cache_size
pdo_mysql.cache_size = 2000

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
; http://php.net/pdo_mysql.default-socket
pdo_mysql.default_socket=


texts:
Have

events channel
have 10 entries (the channel can have varying range of entries for example it has 10)
have a date field called event_start_date
ex. current date is 2016-05-30

Desire
 - dynamically display last 6 entries in this sorted list
 - this list can have

List

2016-02-08
2016-03-01
2016-03-29
2016-05-02
2016-05-15
2016-05-30
2016-09-12
2016-10-24
2016-11-01
2016-12-06

Desired Results:

2016-05-15
2016-05-30
2016-09-12
2016-10-24
2016-11-01
2016-12-06

Unsure how to grab the last 6 entries always in a channel.  Any help would be greatly appreciated.


texts: returning settings of channel Field using channel_api

texts:
I'm trying to pull up the 'settings' from some fieldtypes, particularly the safecracker_file or the file fieldtype.

I've instantiated the API and I'm calling :

$this->EE->api_channel_fields->setup_handler('safecracker_file');
$fieldsettings = $this->EE->api_channel_fields->get_settings(11);

where 11 is the reference of the Field ID. however, I'm constantly getting an empty array returned which would indicate that the field doesn’t exist.

I'm following the docs from here http://ellislab.com/expressionengine/user-guide/development/api/api_channel_fields.html#id10


texts: Channel Entries - Skip a particular channel entry

texts:
Okay, I've got a page with a url that has the channel entry title in the URL. At the beginning of the page, I show the single article for that entry, but then underneath the article, I need to show all the other articles. So I can do this by setting dynamic="no" which reverts it to a normal channel:entries loop, but I would like this loop to skip and ignore the entry that is showing ta the top of the page.

I do not know how other to do this, but I put a if statement in my channel entries loop, but the problem is, I'm using switch to setup div's for a new row every third entry and the if statement messes with that.

I need the channel entries to ignore a particular entry, or I need a way to do a "continue" for the loop without messing with the switch count.

Here's my current code:

{if last_segment}
    {exp:channel:entries channel="event" orderby="date" sort="desc" status="open" category="10" dynamic="no" limit="7"}
        {if url_title != last_segment}
{switch="
||"}

{title}

{excerpt}

                {copybox1}

            View >>

{switch="||
"}
        {/if}
    {/exp:channel:entries}
{if:else}
    {exp:channel:entries channel="event" orderby="date" sort="desc" status="open" category="10" offset="1" dynamic="no" limit="6"}
{switch="
||"}

{title}

{excerpt}

                {copybox1}

            View >>

{switch="||
"}
    {/exp:channel:entries}
{/if}

Any help appreciated :)


texts: Expression Engine, get full URL to entry

texts:
I am trying to list upcoming events in Expression Engine. I have the following code:

{exp:calendar:events sort="asc" dynamic="no" status="current" event_limit="2"}

{title}

{/exp:calendar:events}

I am unable to retrieve the full path (www.domain.con/etc/etc). I have tried url_title in the href but it is just the name of the entry.

These entries belong to a channel called Calendar: Events if that matters.

What is the tag to get the full path to an Entry?


texts:
I am using DevDemon Updater for the first time, so bear with me if I am being dense.

I updated the site from v2.3 to v2.5.3 last night along with Matrix and Wygwam.
But for some reason, I noticed one of my templates is just white now.

I am looking the template over to see if dynamic="no" is getting me or what not, but it was working before the update, so I wanted to see if this has been experienced before.

Thanks.


texts: How do you get the parsed html of a page on the back end? (Within an Extension Using PHP)

texts: How do you get the parsed HTML of a page on the back end? (Within an Extension Using PHP) EE5


texts: 500 Server error in BrilliantRetail when adding/editing products

texts:
I have a new install of BrilliantRetail 1.8.0 on EE 2.10.1

When I try to add a new product, or edit any of the default products, I get a 500 server error.  I don't see anything relating to this in my server error log... (hosted on Nexcess)

I'm not having any issues anywhere else.  I have essentially the same configuration, version, addons etc on another site with zero issues.

What could possibly be causing this?

UPDATE:

EE error with debug on:

  A Database Error Occurred
  Error Number: 1146

  Table 'bedellgu_weber_dev.exp_rte_toolsets' doesn't exist

  SELECT exp_members.rte_toolset_id FROM (exp_members) JOIN > exp_rte_toolsets ON exp_members.rte_toolset_id = > exp_rte_toolsets.toolset_id WHERE exp_members.member_id = 1

  Filename: modules/rte/models/rte_toolset_model.php

  Line Number: 101


texts: .htaccess RewriteRule not working as desired

texts:
1st off I know about the redirect add-ons, but I need to do this in my .htaccess and not load any more on EE.

Before I found EE and started making EE sites. I used a free gallery program to create my gallery for my web site. Now I'm moving over the images to my EE built gallery.

Many thousands of images, no problem just htaccess it. For the most part old folders went to new posts. A few old galleries needed each picture sent to it's correct post entry.

After creating and testing all looked great, had to do a little more that I would have thought. Then I removed the old files and directories for the RewriteRule's I created.

Now I get my EE 404 and lost page notices.

Then if I recreated the directories, those would work. Then recreated empty html docs named the same as the previous html doc, and then those RewriteRule's worked.

I think if EE sees link to an actual folder it leaves it alone, but if no template for folder exists it serves 404.

(I have switchee checking segments and EE no post settings to verify all pages of my EE site)

But why is EE still serving something thats in the .htaccess

Could add some more to my 404 segment check. Rather not.

Or continue to create empty directories and empty same named html files for a fix, but why?

Before deleting the old files this is what I had to do to get all files and sub directories to redirect to new post entry.

RewriteRule gallery/Trees/(.+)?/?$ http://mydomain.com/entry/trees_and_plants [L,R=301]

But as of this moment I have to recreate every doc as an empty file named the same.
But could there be a way to have EE ignore certain directories?

Thanks
Mike

More info,

Basically after my rewrites, pages from my old gallery will be redirected to my new gallery. But as soon as I removed the old galleries files and directories my EE pick up on the bad pages and serves up my 404. right now having problems with gallery/Trees dir and pages.

Here is a shorten version of my htacces

RewriteEngine On

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

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ /index.php?/$1 [L]

RewriteBase /

RewriteCond %{HTTP_HOST} ^www.mydomain.com [NC]

RewriteRule ^(.*)$ http://mydomain.com/$1 [L,R=301]

RedirectMatch 301 /forums/(.*) http://mydomain.com/NEW_forums/$1

RewriteCond %{QUERY_STRING} /forums/

RewriteRule (.*) http://mydomain.com/NEW_forums/? [R=301,L]

RewriteRule ^gallery/Trees/ http://mydomain.com/entry/lego_trees_and_plants [L,R=301]

deny from somedomain.com

RewriteCond %{HTTP_REFERER} !^$

RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?otherdomain.com [NC]

RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?otherdomain2.com [NC]

RewriteRule \.(jpg|jpeg|png|js|css|ldr|zip|lxf)$ http://mydomain.com/ask4_hotlink_mydomain_com.gif [NC,R,L]

##EE Spam Block

blah, blah, blah

##End EE Spam Block


texts: Channel Entries API incredibly slow performance

texts:
I am developing on a high performance MediaTemple DV at the moment. The RAM on the server is 16GB and while pages load relatively quickly, it appears that any scripts I write which use the Channel Entries API, or in fact any channel entries loops that I include, whether they be directly embedded in the template, or called via ajax, tend to max out the CPU. For example, calling a couple of hundred channel entries, with each entry consisting of less than 40 fairly standard fields (with the exception of a small few specific items), set the CPU on the server to be over 100%. Has anyone else experienced a similar issue with channels, entries, the API itself, etc? Our system relies very heavily on calling and filtering channel entries so the current performance is definitely unacceptable.

Any input would be greatly appreciated.


texts: Populating tag parameter with date via math

texts:
I am having an issue getting a dynamic field to populate a parameter inside a tag. From what I have read it is because of parsing order.

Specifically I am try to force a subscription via DevDemon Subscriptions plugin to start the bill cycle on a specific day of the next month. There is a parameter called "next_billing_date" which will force this, but since it is a parameter, I would have to change this manually every month, I cant seem to use javascript or php or other methods to calculate this date.

things I have tried:

embedded templates and javascript using moment.js or php like datediff to calculate the difference and output a new date, which works to get the date, but when embedded it only spits out the code and doesnt parse the script/php and fails.
{next_date format="%Y-%m-01"} -This actually works but will only work on the 1st day of the month (i.e. if someone subscribed on 2016-04-12 it will put out 2016-05-01, great, but if I wanted to renew on the 15th of the month using {next_date format="%Y-%m-15"} and someone subscribed on 2016-04-12 it would output 2016-05-15, meaning they would miss the next billing period.

Any ideas?


texts:
A client asked for some assistance in connecting up some Snippet Sync files and after uploading the files and Submitting the settings I get the following error when I try to load the home page:

  Parse error: syntax error, unexpected '}' in expressionengine/libraries/Functions.php(683) : eval()'d code on line 712

The site is running EE 2.5.5 and I can access the control panel without difficulty.

I would appreciate any assistance available on this.

Thanks.


texts: Does anyone know if it is possible to use Low Search to search within one page, rather than pulling all information from a channel. I'm developing a take away directory and users need to be able to search for menu items on each individual businesses page rather than through an entire channel.


texts:
I've built a system for Schools which has a teacher/student hierarchy based on a custom field, I want a teacher to be able to login and view which of their students has registered with the system.

It basically needs to check the current logged in users custom member field "School code" and output any people from member group 5 that match the same "School code".

I'd like to know if this is possible with
{exp:member:custom_profile_data}

I only seem to be able to output the current users information, is it possible to output all user's information or do I need to use something like Zoo Visitor?

Thanks!


texts:
I run a website (walkiees.co.uk) that lists dog walks. The site runs by users adding dog walks to the site via a safecracker form.

I have a MX Google Maps field, which the user uses in the safecracker form to mark where a walk is.

This works OK, but I am getting a bit stuck when using the maps data on the site.

After the recent release, I am starting to look at Objective HTMLs Google Maps add-on, as it is certainly feature rich.

What I want to know is:

Can I export the data (long/lat) from the MX google maps field, to another add-on (Objective HTMLs).
How can I display all entries on a single map, with links through to the single entry.

Thanks


texts: Cartthrob create_user 'your not authorised to perform this action' upon login

texts:
After using the create_user tag during my cartthrob checkout process, a user is created.

Now when logging into the site, the message your not authorised to perform this action shows and I cannot login as the created user.

I can be sure that the user is created with the correct password using cartthrob debugging output and also by trying to login with an incorrect password I get rejected with the incorrect password message.

The only way Im able to get the account to sign in is by using the super-admin members panel and changing the password...

Is it possible that when cartthrob is inserting the user, that something isn't going in correctly?

Any ideas?


texts:
Just had a client enter a large amount of content (400+ articles) onto our development built by accident, trying to work out a cunning way of merging the live database with the development database without losing any information. Is there any easy ways to do this?

A different editor has also been adding content into the live site so i'm guessing it could get pretty complicated?


texts: Checking for custom field with conditional inside of an embed template

texts:
I've decided to just test an idea for custom meta tags on every page without using Low Variable and try a native approach. The idea is to use an embed template with embed variables to check if a custom field is entered and if not use the global site meta description.

The embed template is:

{exp:channel:entries channel="{embed:channel_name}" dynamic="yes" disable="members|categories|pagination"}
    {if embed:meta_tag}
         {{embed:meta_tag}}
            {if no_results}
            blah
            {/if}

    {if:else}
          Nothing entered
    {/if}
    {if embed:meta_tag != ""}
         {{embed:meta_tag}}
            {if no_results}
            blah
            {/if}
    {/if}
    {if embed:meta_tag == ""}
          {gv_meta_desc}
    {/if}
 {/exp:channel:entries}

I then pass the embed template into my templates as

 {embed="embeds/template_file" channel_name="channel_name" meta_tag="meta_description"}

If the meta_description is entered, content will show. If not nothing will show. I cannot see an error or anything that would cause this to occur.


texts:
I'm in need of a way of searching by a relationship. Its not possible out of the box according to the docs, but is there a workaround?

{exp:channel:entries
channel="products"
{if get:service}search:product_service_name:url_title="{get:service}"{/if}
}

Product Service Name being the relationship.

Any help is appreciated.

Thank you


texts: How can I use P&T switch in channel entry tag so only entries with the Yes option are returned

texts:
I am wondering why this code isn't working as I expect it:

{exp:channel:entries search:feature_on_homepage="y" search:images="not IS_EMPTY"  disable="categories|member_data"}

I am expecting that only entries with Yes option selected and have images to be returned.

Thanks


texts: Is it Possible to Host Forum Avatars and Uploads on S3

texts:
Does anybody know of a method to override/alter EE's native avatar uploading functionality (without hacking core) to upload to S3?

I've got a client site running on AWS' Elastic Beanstalk service, utilizing RDS for the DB storage, S3 and Cloudfront for all of the site's image content.

The client is wanting to launch forums as a new feature on the site, and while our existing infrastructure is well-suited for this, my main concern is user-uploaded images, like avatars or even custom image uploads.

Ideally I'd like to find some way to store these within an S3 bucket, since our EC2 instances only contain the site code, and anything uploaded to one server in the cluster won't be visible to the others, and will disappear when that instance gets terminated in the future for whatever reason.

Side note: I've heard it suggested that I instead create an independent EBS volume, and update my default AMI to mount that volume at startup so that all my instances will have access to the file store. I'd prefer to go the S3 route instead for performance reasons.


texts: Formatting custom date fields within channel entries row hook

texts:
In Shortlist the {exp:shortlist:view} tag extends the channel->entries() method for it's parsing needs. This works and allows for full custom tag parsing without much extra effort, but runs into issues when formatting extra date variables.

In the view loop we provide an extra variable {entry_real_date} which is the actual date for the entry (vs. the date it was added to a list). The parser never see's our custom variable as a date variable, so ignores any format param.

ie :

{entry_real_date format="%n %Y"}

is never parsed.

In a normal situation where we're applying our own tag parsing, we'd be able do something like :

$tagdata = ee()->TMPL->parse_date_variables($tagdata, $dates);

but with in the channel->entries() usage we can't get access to the raw parsing to do this. The parser does look for custom date variables, but only within the context of custom fields, so our dynamically attached variable is never handled.

From digging I can find no way to mark our custom variable as a date variable to enable that format parsing.

Has anyone run into this and handled it?

This is on EE2.8+


texts: Alternating background colors with exp:calendar:day tag?

texts:
We have a day view (schedule) and wanted to tint the background of every-other event in the schedule. The switch variable doesn't seem to work, and there's no count variable we could discover... how would you go about this?

We're inside of the {calendar:events} loop at this point. Are we missing something?

Thanks.


texts: Does the Solspace Importer support the new EE Grid field? I didn't see it mentioned anywhere in the documentation, only the Matrix field. If yes - any documentation available?


texts: Create list of authors, but no repetion (LOW search)

texts:
We have build a site where members publish images in entrees which are tagged ( one or more tags). By using Profile:edit there also exists a channel with  Member_data like name and adress. The author_id of entries in Images is therefore the same as one entry in Member_data.

My client wants to be able to search for tags, see in the result a collection of images and (in a sidebar) a list of all the authors as links to their own Profile Template.

My problem is that the authorlist show authors more than once ( if more than one image-entry of that author has been found).

I must therefore create, per search result, a dynamic index of authors, and I do not know how.

Is there someone that has done this before? Is this someting for the query module, or is there an addon?

Thanks for pointing me in the right direction.


texts: How to find if an entry has parents (Playa) in a particular channel?

texts:
Within my channel entries loop, I'm trying to determine if an entry has FAqs; which in this situation are the parent as you choose an entry in the FAQ.

This is what I have:
{if '{exp:playa:total_parents channel="faqs" entry_id="{entry_id}"}' > 0}

Which works-ish. It returns true for entries with no parent FAQs too. What am I doing wrong?

edit:

Parse order is set to input due to having some necessary PHP.

{exp:channel:entries channel="products" entry_id="<?php echo $entry_id; ?>" limit="1" dynamic="no" disable="categories|member_data|pagination"}
    {if {exp:playa:total_parents channel="faqs"} > 0}
        blah blah
    {/if}
{/exp:channel:entries}

Blah blah in this particular case returns whether or not there actually are FAQs.


texts: P&T Switch appearing 4 times in SafeCracker form

texts: I have a rather bizarre issue in my SafeCracker form: each P&T Switch field appears 4 times. They move independently. In the cpanel they appear fine. Any ideas?


texts: {comment_total} Counts Remain After Deleting Comments

texts:
I just updated a site from EE1 to EE2 that had pretty much nothing but spam comments. I deleted all the comments with a query:

DELETE FROM exp_comments WHERE status = 'o';

But on the blog listing page, the {comment_total} tag is still showing that comments exist. For example:

{comment_total} Comment(s) &raquo;

Returns

  4 Comments »

Even though there are no comments in the database for that entry.

I also went into the exp_channels table and set the total_comments column to 0 for the blog channel.

When I upgraded from EE1 to 2, I opted to convert trackbacks to comments, could that be what's causing the phantom comments? There's no exp_trackbacks table anymore, so I'm not sure where they might be hiding.

I guess ultimately what I need to know is where does EE get its comment_total count from?


texts: How can I troubleshoot this EE3 > EE5 upgrade error?

texts:
I've been struggling with this for a week or two and I'm completely stuck. I've also posted the question here without success: https://expressionengine.com/forums/topic/252326/error-when-finally-updating-to-5.2.2-from-3.x
Here's my error after what appeared to be a successful EE3 > EE5 upgrade. It seems to only happen on my Home/index page, but all other pages work perfectly fine. Does anyone recognize this error?

Exception Caught
SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘m.url’ in ‘field list’: SELECT t.entry_id, t.channel_id, t.forum_topic_id, t.author_id, t.ip_address, t.title, t.url_title, t.status, t.view_count_one, t.view_count_two, t.view_count_three, t.view_count_four, t.allow_comments, t.comment_expiration_date, t.sticky, t.entry_date, t.year, t.month, t.day, t.edit_date, t.expiration_date, t.recent_comment_date, t.comment_total, t.site_id as entry_site_id, w.channel_title, w.channel_name, w.channel_url, w.comment_url, w.comment_moderate, w.channel_html_formatting, w.channel_allow_img_urls, w.channel_auto_link_urls, w.comment_system_enabled, m.username, m.email, m.url, m.screen_name, m.location, m.occupation, m.interests, m.aol_im, m.yahoo_im, m.msn_im, m.icq, m.signature, m.sig_img_filename, m.sig_img_width, m.sig_img_height, m.avatar_filename, m.avatar_width, m.avatar_height, m.photo_filename, m.photo_width, m.photo_height, m.group_id, m.member_id, m.bday_d, m.bday_m, m.bday_y, m.bio, md., wd. FROM exp_channel_titles AS t LEFT JOIN exp_channels AS w ON t.channel_id = w.channel_id LEFT JOIN exp_channel_data AS wd ON t.entry_id = wd.entry_id LEFT JOIN exp_members AS m ON m.member_id = t.author_id LEFT JOIN exp_member_data AS md ON md.member_id = m.member_id WHERE t.entry_id IN (3737) ORDER BY t.sticky desc, t.entry_date desc, t.entry_id desc
ee/legacy/database/drivers/mysqli/mysqli_connection.php:117
Blockquote
Stack Trace: Please include when reporting this error

0 ee/legacy/database/drivers/mysqli/mysqli_driver.php(112): CI_DB_mysqli_connection->query(‘SELECT t.entry…’)
1 ee/legacy/database/DB_driver.php(270): CI_DB_mysqli_driver->_execute(‘SELECT t.entry…’)
2 ee/legacy/database/DB_driver.php(180): CI_DB_driver->simple_query(‘SELECT t.entry…’)
3 ee/EllisLab/Addons/channel/mod.channel.php(248): CI_DB_driver->query(‘SELECT t.entry…’)
4 ee/legacy/libraries/Template.php(1847): Channel->entries()
5 ee/legacy/libraries/Template.php(1482): EE_Template->process_tags()
6 ee/legacy/libraries/Template.php(578): EE_Template->tags()
7 ee/legacy/libraries/Template.php(234): EE_Template->parse(‘{!– ra:0000000…’, false, 1, false)
8 ee/legacy/libraries/Template.php(165): EE_Template->fetch_and_parse(”, ”, false)
9 ee/legacy/libraries/Core.php(661): EE_Template->run_template_engine(”, ”)
10 ee/legacy/controllers/ee.php(63): EE_Core->generate_page()
11 [internal function]: EE->index()
12 ee/EllisLab/ExpressionEngine/Core/Core.php(241): call_user_func_array(Array, Array)
13 ee/EllisLab/ExpressionEngine/Core/Core.php(110): EllisLab\ExpressionEngine\Core\Core->runController(Array)
14 ee/EllisLab/ExpressionEngine/Boot/boot.php(151): EllisLab\ExpressionEngine\Core\Core->run(Object(EllisLab\ExpressionEngine\Core\Request))
15 public_html/index.php(173): require_once(‘…’)
15 public_html/index.php(173): require_once(‘…’)


texts: Creating an Entry-Specific Comments RSS Feed

texts:
My client wants an RSS feed link near her comments form so users can subscribe to comments, which would update whenever someone posts a new comment. It's been quite a while since I've done something like this, so I'm kind of drawing a blank here.

I thought initially I could simply pull in the entry_id into the channel entries, but then I realized that I'm not using the channel entry_id in the URL (using title path), so where does it pull the entry info from to know for which post the comments should be displayed?

Is this just a case of using dynamic="on" (or "yes" or whatever we're calling it these days)?

Thoughts? Help? Pointing and laughing? :) I appreciate any insight here. Thanks!

Sorry for all my fumbling in here, I've not posted much here before. :)


texts: Image uploads, but the modal doesn't update

texts:
Using EE 2.8.1 with the default file field.

When uploading an image the modal changes to just have the blank modal with spinner screen (attached). It does actually upload though - but the user has to refresh the entry page to see it.

There are no image transformations on this upload directory, although there was previously and this happens on all directories.

Also, as the screenshot demonstrates no JS errors are occurring within Chrome's Web Inspector.

However Firefox's debug does show this message upon pressing "Upload File"

  The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it.

Does anybody know of a fix for this?


texts: Solspace Facebook Connect: Pop-up window disappears without letting user confirm settings

texts:
Maybe I have this wrong but I thought that if a user is logging in using FBC then the popup window gives them the option of previewing and agreeing to the FB APP requirements. When I click on the login link it's just redirecting to my specified return URL and the connection is made.

Is this an error or am I missing a configuration setting.

Here's my code:

{exp:fbc:login
                permissions="email|publish_stream|read_stream"
                return_when_logged_in="account/profile"
                return_when_logged_out="home/index"
                return_to_register="account/register"
                return_on_failure="account/profile/fail"
            }
                {if fbc_logged_out == "y"}
                    {fbc_login_button}
                {/if}
            {/exp:fbc:login}


texts: New comment email notification and ‘insert_comment_insert_array’ hook

texts:
I hame some input fields on my comment form, that I show for non-registered members. They are: ‘name’, ‘email’ and ‘comment text’.

And my task was to add string “Guest” to text user typed in the field ‘name’. So I created extension where I use ‘insert_comment_insert_array’ hook:

public function concat_username($data)
{
    if($data['author_id'] != 0)
        return $data;

    $data['name'] = "Guest ".$data['name'];

    return $data;
}

And it works. But new comment email notifications that I receive after new comment was posted contain user name without my string “Guest”.

May be anyone knows what’s wrong?


texts: How do you conditionally embed a template based on template name?

texts:
I have created a .header template that goes in all of the content templates on a site. However, there are only two templates that require additional jQuery code inside the .header template. I don't want to include the secondary code in all template. I have reviewed the documentation here and know that it is possible to conditionally embed the extra code. I just can't find where that information is.

Here is the normal embed code for including the .header template:

{embed="inc/.header"}

Here is what I am trying to accomplish in English:

  embed .header template, if the template is page_visit embed .map_code
  in .header template.

My attempt - which doesn't work:

{embed="inc/.header" {if template="page_visit"} embed="inc/.map-code"{/if}}

What is the correct way to do this?


texts: Profile:edit - exp:profile:reset_password - form redirects to index.php

texts:
When using the latest release of Profile:edit (Mighty Big Robot module) I get redirected to
the homepage when any template contains the reset pass form:

{exp:profile:reset_password return="profile/reset_confirmed"}
        <fieldset>
            New Password
            <input type="password" name="password" value="">
            New Password Confirm
            <input type="password" name="password_confirm" value="">
            <input type="submit" value="Submit">
        </fieldset>
    {/exp:profile:reset_password}

I've tested as member/admin and under clean cache/cookie situation but I can't get the loop to complete - always redirects (the URLs are definitely correct).

Anyone there from Mighty Big Robot to help? Or another developer who's seen similar?

EE v2.7.3

Ta.


texts: Switchable display order for playa field items

texts:
I'm trying to arrange it so that the output order of a Playa field can be controlled by a global variable or radio button channel field (to make it able to be toggled from the listed order to random) but having no success.

When I try using a global variable (carousel-order) with the value set to "random" like this:

{exp:playa:children field="home_carousel" orderby="{carousel-order}"}

It doesn't seem to recognize the global variable. I've also tried using radio buttons to make the switch, like so:

{if carousel_order && carousel_order == "Random"}
    {exp:playa:children field="home_carousel" orderby="random"}
{if:else}
    {exp:playa:children field="home_carousel"}
{/if}

Which actually gives me a parse/syntax error:
Parse error: syntax error, unexpected T_ENDIF in /data/home/rsitka/projects/rsdevwww/system/expressionengine/libraries/Functions.php(679) : eval()'d code on line 241

I've read things like there may be an issue with the order things are parsed but surely someone has needed to do this at some point and run into this issue? Anyone found any workarounds or maybe I'm just missing something obvious?

Thanks!


texts: Why is the OR not working in a conditional statement?

texts:
Running EE 3.5.15

I am trying to show content based on URL segment and the following is not working correctly:

 {if "{segment_2}" != "portfolio" || "{segment_2}" != "photos"}

Conditional content.

 {/if}

If I use one of the conditionals by itself it works correctly, but when I introduce the OR into it, it fails.

I have tried the following:

{if "{segment_2}" != "portfolio" OR "{segment_2}" != "photos"}

and

{if segment_2 != "portfolio" || segment_2 != "photos"}

I have also tried it with single quotes.

Any suggestions on this elementary issue will be appreciated.


texts: Expresso Store: payment gateway settings in filesystem

texts:
Is it possible to store payment gateway settings in the file system, eg config.php?

For example, I might want to have different settings for different environments, eg test gateway API for staging server/site and live gateway API for production server/site

Thoughts appreciated


texts:
We're seeing a bit of strange behavior - perhaps our eyes are missing the obvious thing?

This block of code works correctly when used in a template in the main or default site in a MSM configuration.  It also partially works on templates in the added-on site (which happens to be a mobile version of the site: m.domain.com).  Our problem is that the deepest loop using the playa field menu-section-items is not displaying any of the children.

For clarity:

menu-sections = Matrix Field
menu-section-title = Matrix Cell/Column type text
menu-section-items = Matrix Cell/Column type Playa

We have attempted this with real values substituted for the segment variables to no avail. Either method works when used in templates in the default site.

CODE:

  {exp:channel:entries site="default_site" channel="menu" url_title="{segment_3}"}

     {menu-sections row_id="{segment_4}"}

        {menu-section-title}

        {menu-section-items} {if no_children} -flag- {/if}

                {menu-item-title}
                {menu-item-description}

        {/menu-section-items}

     {/menu-sections}

   {/exp:channel:entries}

One strange bit of info we uncovered while testing is that the conditional check for children above immediately after the opening menu-section-items tag renders the -flag- contents ONLY when there ARE actual relationships. If relationships are simply blank this -flag- text will not render.  Very odd...

In troubleshooting this problem we have updated our Expression Engine to version 2.7.2 - Build Date: 20131008.  (Current)
Matrix 2.5.8 (Current)
Playa 4.4.5 (Current)

I hope someone can point us in another direction or highlight an error above?

Thanks!

David


texts: Messaging Addon: You are not authorized to perform this action

texts:
I am trying to send a private message using http://www.intoeetive.com/docs/messaging.html:

{exp:messaging:pm_compose
    class="form-horizontal"
    return="SAME_PAGE"
    save_sent="yes"
    skip_success_message="yes"
}
    <fieldset>
        <input type="hidden" name="recipients" value='{exp:channel:entries channel="profiles" entry_id="{segment_2}"}{screen_name}{/exp:channel:entries}'/>
        <input type="hidden" name="subject" value=""/>
        <textarea class="span12" rows="5" name="message" id="message"></textarea>
        <button type="submit" class="btn">Send Message</button>
    </fieldset>
{/exp:messaging:pm_compose}

When I go to the page that contains the above code, I get the following error:

You are not authorized to perform this action

I'm using Safecracker Registration -- and that's why I have to get the {screen_name} that way (it gets it correctly). Any idea what's going on?


texts:
How do I fix this problem?
I've search online and renamed the entry_type_lang to lang.entry_type.php on my cpanel directory
but still I get this error
Unable to load the requested language file: language/english/entry_type_lang.php
Anybody can help me out?

i'm using EE2 9.2


texts:
I'm running a query on a playa field and the output is grouping a few values together. I just want to be able to access the second and third parts but am a little confused how to do it.

Code:

{exp:query sql="SELECT DISTINCT field_id_200 AS brand FROM exp_channel_data WHERE channel_id=23"}
  {brand}
{/exp:query}

Output:

[125] [nike] Nike

Any ideas for how I can just access "nike" and "Nike"?

Thanks


texts:
I have a site with a large megamenu which is made up of the following types of code:

Setting category lists

{exp:stash:set_list
    name="product_categories"
    parse_tags="yes"
    save="yes"
    scope="site"
    refresh="1440"
    replace="no"
}
    {exp:gwcode_categories
        group_id="1|3|4|5|6"
        excl_cat_id="35|36|51|56|60|23|27|46|47|63|40|42|44|45|53|59|62|66|69"
        depth="1|2"
        parse="inward"
        style="linear"
    }
        {stash:cat_id}{cat_id}{/stash:cat_id}
        {stash:cat_depth}{depth}{/stash:cat_depth}
        {stash:parent_id}{parent_id}{/stash:parent_id}
        {stash:group_id}{cat_group_id}{/stash:group_id}
        {stash:cat_name}{cat_name}{/stash:cat_name}
        {stash:cat_url_title}{cat_url_title}{/stash:cat_url_title}
        {stash:complete_path}{complete_path}{/stash:complete_path}
        {stash:cat_image}{cat_image}{/stash:cat_image}
    {/exp:gwcode_categories}
{/exp:stash:set_list}

Getting the lists

{exp:query sql="SELECT COUNT(entry_id) num_cat_entries
    FROM
    (
            SELECT  entry_id
            FROM    exp_category_posts
            WHERE   cat_id IN (31, 73)
            GROUP   BY entry_id
            HAVING  COUNT(DISTINCT cat_id ) = 2
    ) s"
}

{stash:_cat_hd}

    {if '{stash:_group_id}'!=''}
        {exp:stash:get_list
            name="product_categories"
            match="#^{stash:_group_id}#"
            against="group_id"
        }
        {if '{stash:_group_id}'!='5' OR ('{stash:_group_id}'=='5' AND num_cat_entries > 0)}

            {cat_name}

        {/if}
        {/exp:stash:get_list}
    {/if}
    {if '{stash:_parent_id}'!=''}
        {exp:stash:get_list
            name="product_categories"
            match="#^{stash:_parent_id}#"
            against="parent_id"
        }

            {cat_name}

        {/exp:stash:get_list}
    {/if}

{/exp:query}

Then embedded them in the main globally embedded template

{stash:embed
    name="partials:nav_cat_get_list"
    stash:_group_id="4"
    stash:_parent_id=""
    stash:_parent_url="enclosures"
    stash:_cat_hd="Materials"
}

The menu also includes some Structure nav tags:

{exp:structure:nav
    include_ul="no"
    start_from="/markets/energy-resources"
    max_depth="1"
}

and a Super Search form:

    <form action="/results/" method="post">
    {exp:super_search:search}
    Search
    <input type="search" id="keywords" name="keywords">
    <button type="submit">Go</button>
    {/exp:super_search:search}
</form>

Initially the processing of the nav was causing long delays for page loading so I wrapped the whole thing in:

{exp:stash:cache
  bundle="global"
  refresh="1440"
  replace="no"
}

with {stash:nocache} around the search form. That sorted out the page loading times but also killed off the form and replaced it with a string that started off with [_Stash_1_

I tried moving the form outside the stash:cache tag but then ended up with pages showing both the form and the odd [_Stash_1_ string.

So where am I going wrong, what do I need to do to cache the menu properly while also keeping the search form working?


texts:
I am in need of a voting solution for one of my clients that will give members UP TO four votes, and no more. I have looked over the usual polling modules on devot:ee and all of them either allow for single votes or multiple votes, but not up to a specified number of votes.

So that I can use one of these polling add-ons, I will limit voting to a single vote per member, but I will then need the ability to allow users to register an additional three members, and NO MORE.

How can I allow a member to register a limited number of other members?


texts: Custom Datepicker (Datedropper.js) with Channel Form Grid & Date Fields

texts:
I have run into an issue I cannot figure out.

The situation is I have a Channel Form that has a bunch of Grid field types on with a date field. The issue is I would like to use this (datedropper) JS datepicker for each date field inside the grid. I am able to get it to fire if the page loads with an existing row but if I click to add a row the date dropdown will not fire.

I have tried every variation of include_assets/include_jquery/datepicker in the parameters.

Here is the sample code:

<link href="{path='css/_ee_channel_form_css'}" type="text/css" rel="stylesheet" media="screen">

<script
  src="https://code.jquery.com/jquery-1.12.4.min.js"
  integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ="
  crossorigin="anonymous"></script>

{exp:channel:form channel="members" author_id="CURRENT_USER" limit="1" return="profile/{segment_2}" url_title="id{snp_member_username}"}

{field:standard_grid_field_with_date_inside}

{/exp:channel:form}

<script src="assets/script/datedropper.pro.min.js"></script>
<script>
  $(document).ready(function(){
    $( "input[rel='date-picker']" ).addClass("datedropper");
    $( "input[rel='date-picker']" ).addClass("datedropper-init");
    $( "input[rel='date-picker']" ).attr("data-dd-theme", "tallypop-datedropper");
    $( "input[rel='date-picker']" ).attr("data-dd-event-selector", "click");
  });
</script>
<script>
$(document).ready(function(){
  $('.datedropper').dateDropper({
    eventSelector:'click',
    large: true
  });
});
</script>

Any direction would be huge!

EDIT:
I should've given my EE build. Here it is: 5.2.2


texts:
I'd like to recreate an "e-greeting card" functionality using EE, and I'm wondering if this could be done with the core functionality of EE, or if it would require custom programming.

The functionality is as follows.

User clicks on an image they like for the "front" of their e-card, and is then presented with a form with 5 fields: "From" name, "From" email, "To" name, "To" email, and "message"
After filling form and clicking "send", system generates the following:

A URL where this card now lives. The URL allows you to see the card's "front" and "back". The front is an image that the user selected. The back displays info the user entered--email, message, etc
An email to the recipient with another URL link where the receiver can see it
If the receiver clicks on the link, the sender also gets an email confirming the card was read

Any thoughts? Thanks!


texts: Does EE3 support preload-replace with conditionals in grid fields?

texts:
I keep running into issues using preload-replace with conditionals that are in a grid field.
I have the preload:
{preload_replace:staticchannelslug="gp"}
And am trying to use it like so:
        {page_header_{staticchannelslug}}

{if page_header_{staticchannelslug}:alt_title}...{if:else}...{/if}

        {/page_header_{staticchannelslug}}

This throws the error:

Something has gone wrong and this URL cannot be processed at this time.

EDIT:
Error with debug on:

You have an invalid conditional in your template. Please review your conditionals for an unclosed string, invalid operators, a missing }, or a missing {/if}.
Parser State: Unexpected ‘alt_title’ (VARIABLE); expected RD in Template “pages/general-page” on line 9.

//end edit
If I don't use the preload and change it to this, I get no errors:
        {page_header_gp}

{if page_header_gp:alt_title}...{if:else}...{/if}

        {/page_header_gp}

I've used this same kind of method for years in EE2, but just running into issues with it in EE3 :/
This doesn't work either, same error message:
        {if '{page_header_{staticchannelslug}'}

            {page_header_{staticchannelslug}}
                            ...
            {/page_header_{staticchannelslug}}

        {/if}

Any ideas on what the issue is here or what I may be missing?
Thanks.


texts: I'd like to add $4.00 to each order as handling, or just an adder to the shipping charge. And, actually, we have some free local delivery products so it really needs to be added to the shipping charge when there is one. Any way to do this?


texts: Stop Solspace freeform injecting a validation script

texts:
I'd like to use Bootstrap validation with my Solspace Freeform, but I can't figure how to stop Freeform from adding it's default validation script to the page.

I've tried using a custom form template but it still injects the script, I don't want javascript injected into the middle of a page, and it conflicts with the Bootstrap script that is used throughout the site.

Is this possible?


texts: Cannot update Entries. Getting blank, unspecific error

texts:
I logged into a client EE site today to update some Entries, all of which are part of a custom channel Locations. I edited the info of one, saved it, and I got the error box on the top of the page. However, it's blank. Only 2 people have admin access to the site, myself and the client's IT guy. I cannot say with certainty what he may have done/changed. I haven't updated a location in roughly 2 months, but I have updated/added over 200 locations with no errors before now. I've tried editing other Location entries, and all error. I then tried editing non Location entries, and none of them error. I can add new ones, though. But since I cannot update existing entries, I cannot re-add old ones that need updating and close the old ones.

Error box seen here: http://screencast.com/t/CZuzo7H3Nd0


texts: Does Expresso Store Have a USPS International shipping plugin?

texts:
I am tring to add an international shipping method. But the Store USPS plugin uses
'API' => 'RateV4' Which is for domestic shipping. 'API' => 'RateV2' is for International Shipping. Do I need to just change some values in the default USPS Shipping plugin to make this work?


texts:
When I try saving Cache breaking rules with Mustash, I get this error:

Error Number: 1366

Incorrect integer value: 'NULL' for column 'group_id' at row 1

INSERT INTO `exp_stash_rules` (`plugin`, `hook`, `group_id`, `bundle_id`, `scope`, `pattern`, `ord`, `site_id`) VALUES ('channel_entries', '@all', 'NULL', 'NULL', 'NULL', '', 0, '2')

Filename: third_party/mustash/models/mustash_model.php

Line Number: 574

Any thoughts on this?

We're using a Multi-Site Manager setup.


texts: Tagger 4.0.0 and EE 3.2.1 - Error when trying to create a Tag Group

texts:
When you try and create a tag group in DevDemon's Tagger 4.0 addon, it doesn't work. When you click 'Save Group' it throws the following:

Fatal error: Call to a member function hasModule() on a non-object in /system/ee/EllisLab/ExpressionEngine/Controller/Addons/Addons.php on line 1106

Looking at that file we have:

private function getModule($name)
    {
        try
        {
            $info = ee('Addon')->get($name);
        }
        catch (\Exception $e)
        {
            show_404();
        }
        if ( ! $info->hasModule())
        {
            return array();
        }

Any thoughts? Is Tagger not EE 3.1.x compatible? Anyone know or have any thoughts?


texts: Listings disappear when item moved to submenu

texts:
I have 20 years experience developing LAMP apps, but I'm new to Expression Engine. I'm helping someone edit a site that was abandoned by the developer.

The site uses EE2 with the Structure module. They had a parent-level item that displayed listings. When I make it a sub-menu item to another parent-level item, the listings disappear. It says no listings found, even though I created a channel associated to that listing category.

Also, I see a lot of help being offered to use this or that code, but I can't tell where the template is that governs the layout of that page.

Can someone point me in the right direction to understanding this?

Thanks,

Bill


texts: Tools for learning ExpressionEngine addon development

texts: What are the available tools/tutorials for learning to develop ExpressionEngine addons (modules, fields, extensions, plugins and accessories)?


texts: Blank page when canceling payment transaction

texts:
I am experiencing a blank page after canceling a credit card payment offsite using Cartthrob and a built-in payment gateway. I see the page gets redirected to extload but just shows a blank screen. There are no issues when completing the transaction and get redirect to the correct page without any errors.

Working on the latest versions of the plugin and CMS so that could not be the issue, maybe there is something I have missed in the setup?


texts: Is there a way to disable auto-convert URLs and email addresses into links for custom member fields?

texts:
I have created a custom member field, {Google_Plus_URL}, where a URL like, https://plus.google.com/1051794532082275037724 can be entered.

In my template, I reference this field as such:

{if Google_Plus_URL}

Connect with {screen_name} on Google+

{/if}

The end result is, unexpectedly:

Connect with <a rel="author" href="https://plus.google.com/1051794532082275037724">Mike Adamick on Google+

In researching this issue, I come across the "Automatically turn URLs and email addresses into links" options in relation to channels, but there doesn't appear to be an similar setting for member data. Aside from using a plugin like the one proposed in this similar question, is there a built in solution I'm missing?

I'm using EE v2.5.5


texts:
I bought a licence for expression engine 7 years ago.  I now want to update my content on website and I cannot find expression engine to log in and make changes.  My website is www.keeinteriors.com can you help me?

I tried to log in and get forgotten password but none was sent to either email.


texts:
Im trying to add breadcrumbs to my application, Although I am not getting any results. Below you can see my code and a image of the result i am getting :(

       Home

     {exp:structure:breadcrumb here_as_title="yes" wrap_each="li" inc_separator="yes" separator=" " inc_home="no" add_last_class="yes" class="active"}
     {/exp:structure:breadcrumb}
     {if freebie_1 == "search"}
Search Results
{/if}


texts: EE Reset password form works properly, but returns user to reset password form

texts:
We have a reset/forgot password form (let's call this Form A) in a template that allows the user to enter the email address they signed up with (below) - this works by the way.

Form A

{exp:user:forgot_password}

    <input type="text" name="email" id="email" placeholder="Email Address"/>
    <input type="submit" name="submit" value="Submit" />

{/exp:user:forgot_password}

Once completed, this sends the user a unique link to reset their password
(example.com/member/reset_password?&id=XXXXXXXX), which when you
click on takes you to a dynamically created EE "Please Enter A New
Password Page" with a form (Form B) for which there is no template that I can see.
When you create your new password within this page, this works, but
it redirects the user back to the original custom reset/forgot password form
specified above that they completed (Form A).

This is pretty bad UX, so we'd like to redirect the users to a login page, or at very least to the site homepage. How can we do this there's no template that allows us to intervene?

Thanks!


texts:
Currently using EE 2.7.3 and Freemember 2.3.1. I made sure to create an encryption key first for my config file. I've followed the documentation so far, it's thorough and keeps things minimal. Unfortunately, immediately after calling Freemember I'm being given this error:

  Parse error: syntax error, unexpected ':' in
  /home/.../system/expressionengine/third_party/freemember/mod.freemember.php
  on line 397

This is line 397 of mod.freemember.php:

$return_url = ee()->input->get_post('return_url') ?: $this->history(0);

And here is my login markup:

{if logged_out}
    Login

            {exp:freemember:login return="PREVIOUS_URL"}
                <input type="text" name="username" value="" maxlength="32" placeholder="Username">
                <input type="password" name="password" value="" maxlength="32" placeholder="Password" autocomplete="false">
                <input type="submit" name="submit" value="Submit">
                {if auto_login}

<input type="checkbox" name="auto_login" value="1" {auto_login_checked} > Auto-login on future visits

                {/if}
                Forgot your password?
            {/exp:freemember:login}

{/if}
{if logged_in}
    Logout
{/if}

div#login-modal is being toggled with JQuery (1.10.4)

What is causing this? My guess is I've overlooked something but I'm out of ideas.

EDIT: Trying to isolate the issue, any hint of Freemember tags on the page will return an error.


texts: Outputting specific categories with exp:channel:form

texts:
I want my users to be able to post articles so I'm using channel:form to accomplish this, everything's working great but I can't work out how to output  categories as checkboxes, I have two category groups that i'd like to output separately, the code i've tried either outputs all categories or none.

I have the following code:

{exp:channel:form channel="work" return="contribute/thanks"}

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

Formats

          {categories}
            {if category_group_id == 4} {!-- formats --}
            {category_name}
            <input type="checkbox" id="{category_id}" name="{category_id}[]" value="">

            {/if}
          {/categories}

Industries

          {categories}
            {if category_group_id == 1} {!-- industries --}
            {category_name}
            <input type="checkbox" id="{category_id}" name="{category_id}[]" value="">

            {/if}
          {/categories}

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

{/exp:channel:form}

This isn't outputting any categories, seems it's not understanding the if statements? However if I use the code shown on the example (http://ellislab.com/expressionengine/user-guide/add-ons/channel/channel_form/#categories)

Categories
<select name="category[]" id="categories" size="4" multiple="multiple">
  {categories}
    <option value="{category_id}"{selected}>{category_name}</option>
  {/categories}
</select>

This outputs all of the categories into one select dropdown, i'm struggling to see how to adapt this, any ideas would be most appreciated!


texts:
Solution was to save entries until the entries with "bad data" were saved over.

I wrote a quick tag to display all entries in a list from a particular channel. However, it threw a bunch of PHP warnings. This is the tag.

{exp:channel:entries disable="categories|pagination|member_data" channel='member' dynamic='off'}

{title}

{/exp:channel:entries}

In my first round of troubleshooting I found that if I limited the loop to a certain number (let's say 27) of entries the tag would render as expected. But if I'd change the limit to 28, the error would throw. I would assume that this means there is corrupt data in some entries... but not all?

I've since discovered that if I disabled custom fields the tag would render. Further troubleshooting led me to start disabling/uninstalling fieldtypes. After much of trial and error it seems that any fieldtype that has data stored in the database will cause the php warnings.

Now, what is odd (to me) is that if I declare a specific entry id's there is not an error. These entries include ones that are known to instigate the php errors.

  entry_id="642|643|644|646|647|648"

There is definitely something awry in the database, I don't see anything that jumps out at me when I take a look at the sql, but I don't have the best mySQL skills.

Where do I look next?

The errors read as following:

A PHP Error was encountered

Severity: Notice

Message: Undefined index:

Filename: channel/mod.channel.php

Line Number: 4785

A PHP Error was encountered

Severity: Warning

Message: Invalid argument supplied for foreach()

Filename: channel/mod.channel.php

Line Number: 4787

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /***/system/codeigniter/system/core/Exceptions.php:170)

Filename: core/Common.php

Line Number: 412

Fatal error: ob_start() [ref.outcontrol]: Cannot use output buffering in output buffering display handlers in /***/system/codeigniter/system/core/Exceptions.php on line 166

System facts

  updated to 2.5.5
  Errors happen locally and on live servers
  Have around a thousand entries, so saving each one isn't a great option


texts: Mail list edit confirm pages and post backs

texts:
I'm currently using the mail list extension (http://ellislab.com/expressionengine/user-guide/modules/mailinglist/index.html) on one of my sites and I have a few questions which I couldn't find the answer too using google and the documentation.

I wish to edit the Post back page so that it can be branded up with the rest of the website. And I plan to handle the form posting using AJAX.

So I need away to edit the return when i post the email address to the server and i need a way of editing what the user sees when they return to the site to confirm there registration.

I hope this makes sense,

Thank you in advance.


texts: How do I get a member login form on the offline template?

texts:
We typically demo new EE sites to clients with the site in "offline" mode, which prevents unauthorized access and requires the client to login before they can see anything. Previously we've either directed clients to the CP to login, or, have left the site online and done the authentication via Apache.

Is it possible to put an EE member login form in the offline template so they can login without having to go to the control panel first?

I've tried inserting this code into my offline template, but, it appears that the EE tags aren't getting parsed when the site's offline:

{exp:member:login_form return="site/index"}

                Username

                <input type="text" name="username" value="" maxlength="32" size="25">

                Password

                <input type="password" name="password" value="" maxlength="32" size="25">

        {if auto_login}

<input type="checkbox" name="auto_login" value="1"> Auto-login on future visits

        {/if}

<input type="checkbox" name="anon" value="1" checked="checked"> Show my name in the online users list

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

Forgot your password?

{/exp:member:login_form}


texts:
So, my first time round with expresso store.

What i'm hoping to do is limit certain combinations of variations, as well as change the price for combinations.

The products are custom made so the materials and dimensions affect the price.

Here's an example.

Item      Size      Material     Price
Table     300mm     Mahogany     £250.00
Table     500mm     Plywood      £200.00
Table     500mm     Mahogany     N/A

Also, need to be able to display a message dependant on the combination, too - tho I can probably do that easiest by detecting the price (as there will be many variation options, there will be few price variations).

Anyway, will appreciate any and all help, if the answer is 'build an extension to do it' that's fine - just don't want to get into all that if I just don't need to.


texts: Having trouble with a conditional with Child Categories Navigation

texts:
I am using Laisvunas' Child Categories plugin on my site and am having some issues with conditionals on setting the selected navigation element for styling purposes.

For example on this page: http://rouviere.com/our-work/ the code for the sidebar navigation is as follows:

    {exp:child_categories parent="102|105" child_categories_sort_by="custom" child_categories_sort_direction="asc" show_empty="no" entries_sort_by="date" entries_sort_direction="asc"}

    {child_category_start}

{child_category_name}

    {child_category_end}
{/exp:child_categories}

The navigation works fine, however, I would like to indicate which segment is active. I tried adding the following code (also seen above) to indicate which segment is active:

<a {if segment_3=="{child_category_url_title}"} class="selected"{/if}

Nothing happens. I have tested it by manually entering a child category url title, so I know it works. Any clues on how to get this working properly?

Thanks.


texts: Pay by invoice - how to send and handle due date

texts:
As far as I can gather, i should use the payment type Manual for this purpose.

I have created an invoice template in EE, but I have two questions

1) Is there some obvious way of sending it to the customer?

2) How can i handle the due date? It has to be set for X weeks after the date the invoice is actually sent

Is this something I can do with Store, or will I have to look elsewhere?

Thanks


texts: Expression Engine 4 / Assets numeric value out of range for column 'filesize' error

texts:
We use Expression engine 4 and the latest Assets.  After adding a new external source (AWS S3), and trying to update index, I'm getting an error:

"Numeric value out of range value for column 'filesize' at row 43"

I'm guessing this is because we have giant files in our bucket?  Just looking for a way to get around this and be able to index our external source.


texts:
Am using the following code for channel images field to be displayed on the frontend using channel form tag.

<label for="ad_uploads">Upload your images</label>
{field:ad_uploads}

However, it doesn't work!

Any suggestions?

Am using ee 2.11.3 and Channel images 6.0.2


texts: How can I check to see if today is a holiday with Solspace calendar?

texts:
I've used Solspace Calendar to create an "Office Holidays" calendar where we enter all of the dates/times we're closed for the holidays. The idea is to let visitors know if we're open for calls or not. That said, I'm not sure what the best way is to check and see if the current time/date lands on a holiday or not. Especially without looping through all holidays in the calendar.

Any suggestions on ways to check to see if we're currently in a "holiday"?


texts:
I am experiencing an odd issue. Randomly, form submissions within the control panel are not actually saving anything and redirecting me to the CP home. This happens with regular channel entry editing, Low Variables, Low Reorder, CE Cache... doesn't seem to matter what is getting saved. About 40% of the time, the form submission takes, and works as expected.

This only happens in production. It is hosted in a multi-instance environment (PagodaBox). I thought perhaps it had something to do with each request going to a different instance... but they are all sharing the same database.

Any ideas?


texts:
I want to group entries by 8. The last div demonstrates that there might be an exact amount of entries that are divisible by 8.

 item 1
 item 2
 item 3..
 item 8

 item 9...
 item 16

 item 17
 item 18
 item 19

I want to do it this way so I can use a jquery slide in effect, when you click a button, it would slide/fade-in the next div of items.

I was able to achieve this thanks to the math count % == 0, thanks guys.

Now I have another question, I need to output the appropriate carousel list links

    {exp:channel:entries channel="recipes"}
        {if count % 8 == 0}

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

You can see what I am trying to do with {count / 8} so the html will render like, obviously it is not working, but you can see what I am trying to do, my goal html output would be:

...

I thought maybe I could set a dynamic variable with doing something like:

{if count % 8 == 0}{dynamic_variable == count / 8}{/if}

I know I could use stash to store the variable but I don't know how I would get count / 8 math to work outside of the conditional since the EE docs say the math only works within a conditional, any help is appreciated.


texts:
How do I get the if statement below, to return TRUE and therefore return my string "Africa is in this array"? Note: template is set to parse on INPUT (I cant use output for this template)

 <?php
    $entryregion="{categories show_group='4' backspace='2'}{category_name}, {/categories}";
    $entryregionArr=(explode(',',$entryregion));
    print_r($entryregionArr);
    echo "<br />" ;
    if (in_array('Africa', $entryregionArr)) {
        echo "Africa is in this array";

    }
    ?>

the above print_r($entryregionArr); prints an array that looks like this. Array ( [0] => Africa [1] => South Africa [1] => Durban [1] => ) I think I want it to look more like this  Array ( [0] => Africa [1] => South Africa [2] => Durban ) where Durban is in the 2nd key and the last key id deleted, but I am not sure why or how to do this. I have tried parse='inward' in the category tag.  I had a recent suggestion through this site to use  the explode() function and I am grateful because it has shown me that this is where my error is. Well, one step at a time. Any suggestions would be appreciated.


texts: Can you use embed variables within a css file?

texts:
I'm using a css file that uses channel entries tags so clients can update a background-image.  However, I have embed variables setup on my template that I want to pass into the css file, but it doesn't seem to work.  This is what I'm trying to do:

{exp:channel:entries channel="contact"}
    .{embed:body_class} #wrapper { background-image: url("{contact_header_photo:1920x425}"); }
{/exp:channel:entries}

where, in theory, .{embed:body_class} would output .contact

Anyone have any suggestions?


texts: Anyone know how to capitalize a page title?

texts:
I'm using the {segment_2} variable to complete various bits of info on a page. The segment is all lowercase, but that's fine as I'm using CSS to capitalize those elements.

The problem comes when I'd like to use that {segment_2} in the page title. It's appearing all in lowercase and I can't figure out how to make it appear in sentence case.

Any ideas would be appreciated!

Thanks in advance,

Tom


texts: Is it possible to display number of comments pending moderation?

texts:
This is the first time in a while that I'm developing a site in EE2 that will use a moderated comment system. I'd like to make it really clear for the moderators when there are comments pending, but I'm struggling with how to do so.

The only place I can find in EE2 that indicates the number of pending comments is the CP Home dashboard, on the fourth line under "Modify or delete." That's not really as clear as I'd hoped. Plus, I was planning to show Structure on login for moderators, rather than the dashboard.

I'd love to be able to have a badge in the top nav of the CP that would show how many comments are pending. Or an accessory in the footer. But I can't find a supported add-on that serves this function. (Two possibilities in devot-ee — Comment Badge or Mini CP — are defunct.)

Any suggestions?


texts:
I currently have hundreds of entries listed in structure 2 levels deep like this:

-Category
--Sub Category [X10]
---Item [x10]

(These are not expression engine categories but structure pages with sub pages)

I want to move all of the items up one level and remove the sub category so it will look like this.

-Category
--Item [x100]

Is there an easy way to bulk update these entries or will I have to do it manually?

Thanks,

Colin


texts:
I am building a site where the URLs of a blog entry look like:

/blog/2012/04/url_title

I am building out these urls by using entry_date. My links look like:

/blog/{entry_date format="%Y"}/{entry_date format="%m"}/{url_title}

The one thing I have not been able to figure out is how to use the Next/Previous Entries tags. Entry date values are not available in this tag pair so I have no way of grabbing the date values of the entry.

Any ideas?


texts: Separate First Name/Last Name fields in Exp:resso Store Billing Name field?

texts: Is there a way to store separate first / last name fields in the Exp:resso store billing name field?


texts: Expresso store checkout process - shipping city and postal code validation (disallowed characters)

texts:
It looks like Expresso store during the checkout process allows to use disallowed characters in postal code and city fields for shipping. Also postal code allows to put only 2 characters when shorter in the world is 3 digits. It creates problems when UPS or FedEx modules are used for shipping calculation.

Any clue how to limit postal code when shipping is only in the States and validate city name if doesn't contains numbers etc?

Thanks


texts: Strong Tags inserted into Expression Engine

texts: Over the weekend, one of my sites has "strong" tags inserted everywhere.  I checked the templates, they are the same.  Any idea how they could have gotten in there?


texts: Can 'Omnipay: Braintree' accept Paypal too?

texts:
Could anyone tell me if the 'Omnipay: Braintree’ gateway has the ability to accept Paypal too please? Not really sure what I’m looking for in the repo: https://github.com/thephpleague/omnipay-braintree)

We're specifically looking to use it with Expresso Store.


texts: Is there a way to add a button to the WYGWAM styles or controls that allows user to easily insert a <br> tag inside a paragraph?


texts:
I need to sort across all categories based on performance start date. Its all one category group with three categories. It sorts but it will sort one category by date and the second category by date. I want it to span across all three categories and base on star_date display a view of events by date. I am a bit lost can use some help.

  {exp:channel:entries channel="performances" dynamic="no"   category_group="3" sort="asc" orderby="performance_date_one" }

{title}

  {description_of_event}
  {performance_date_one format="%l, %F %j, %Y"}

   {/exp:channel:entries}


texts: Can I use "contains" logic in categories?

texts:
Is there a way to say "If this entry contains category 5" rather than "If this entry's category is category 5"?

Consider this:

{categories}
{if category_id="5"}
Do something
{/if}
{/categories}

I believe the condition would only return true of the only category assigned is category 5. If an entry has categories 5 and 6 assigned, it would not be returned here, but that's what I'm looking for.

Possible?


texts: Anyone happen to give a hand to solve issue with Solspace Ratings module?

texts:
I have a bit odd issue with Solspace Ratings Module.
It should hide the form after guest giving their review points but it keeps showing the form. Im on EE 2.10.1 running on php 5.6.2. No MSM, very basic installation. Ratings Module is the latest 3.3.1.
System folder is renamed and above webroot for extra info if that might count?

The form does get hide ONLY if you are logged in. But for guests, it just keeps showing up and worse, guests can submit as many reviews they want, even that form params are setup to allow only one vote.

Below is the setup for the form I have:

{exp:rating:form entry_id="{segment_3}" required="rating" anonymous="yes" collection="food-related" return="food/index" duplicate_check_guest_ip="no" allow_duplicates="no"}

{if not_duplicate}

So, did you like this?

1 = Didnt like. 5 = I want more!, Tell us, please:

<select name="rating" id="rating" class="required">
<option value="1">1 points</option>
<option value="2">2 points</option>
<option value="3">3 points</option>
<option value="4">4 points</option>
<option value="5">5 points</option>
</select>

<input type="submit" name="submit" value="Submit!" class="button button-3d button-small button-rounded button-red" />

{/if}

{if duplicate}&nbsp;{/if}
{/exp:rating:form}


texts: How to add cache headers to EE responses?

texts:
I have found that caching templates has greatly improved performance. But how can I further improve performance by having EE include cache headers to prevent the browser making the same requests time after time?

Ideally I would like to explicitly mark the templates where this is acceptable.


texts:
I'm using Dynamic Parameters to filter through some channels
https://ellislab.com/expressionengine/user-guide/add-ons/channel/dynamic_parameters.html

Is there a way to get the chosen select value to stay selected rather than it default back to the first option (All Tours in my case) after posting.

<form method="post" action="{path='template/{segment_2}'}">
          <input type="hidden" name="csrf_token" value="{csrf_token}" />
              <select name="channel">
                  <option value="llanelly-house-tour|restoration-tour|ghostly-tour">All Tours</option>
                  <option value="llanelly-house-tour">Llanelly House Tour</option>
                  <option value="restoration-tour">Restoration Tour</option>
                  <option value="ghostly-tour">Ghostly Tour</option>
              </select>
    </div>
    <div class="small-2 columns">
    <input role="button" aria-label="Submit" name="submit" type="submit" class="button postfix submit" value="Go" />
    </form>


texts: Safecracker Return Message on Form Submission

texts:
Suppose I have a Safecracker form that will edit channel entries. Once the entry is edited I want to display something like "Thanks for editing your entry" on the edit entry page. How would I go about displaying a thank you message on successful form submission? I do not want to be redirected to another page.

Here is example code.

{exp:safecracker channel="channel_name" return="channel_name/edit/ENTRY_ID" entry_id="{segment_3}"}

Title:<input name="title" type="text" value="{title}">
<br/><input type="submit" value="Submit">

{/exp:safecracker}


texts:
I know the plugin is not being developed or supported by the author anymore, but does anyone have experience with SL MailChimp Subscribe?  It only seems to be half working for me.  Some members are being added and some are not, but in particular, it's not correctly adding the country members are selecting.  Only one country, Ireland is being updated in Mailchimp.

Can anyone shed some light one this?

Thanks,


texts: EE5: Saving long entries in Control Panel doesn't save and shows website homepage

texts:
My client reported that when trying to create a new entry via the Control Panel, she had to add 1 paragraph at a time and keep resaving the entry. At a certain point, she couldn't add any more content to it, it would process the form, but the added content wasn't saved, and the system would show the homepage of the site (with the URL for the edit entry page).

The site is otherwise working fine. I thought it may be htaccess so I messed with a few things there, no change (and it doesn't make sense that this would be the problem in hindsight). I disabled all extensions via config override, that didn't change anything either. Checked the PHP and apache error logs, nothing there. Repaired and optimized db tables. Nothing.

Any ideas?

EE 5.2.3
PHP 7.1.32


texts: Forced inline errors (testing) using Matrix and Safecracker File not working

texts:
I have a Safecracker form with a couple of Matrix fields, both of which have Safecracker File fields in them. On testing them, I've been trying to break the form by uploading files outside of the specifications set in the File Upload preference - both in pixel size, file size and file type.

Testing all situations, the file's are actually getting uploaded if they're the correct file type but larger in pixel and file size are allowed.

It doesn't allow for file uploads of a different type though, but frustratingly also doesn't display any error messages.

EE v2.5.5, Matrix v2.5.6, Safecracker File v2.1

Sample template code for the two fields below:

{exp:safecracker
    channel="awaentry"
    return="entries/nomination/URL_TITLE/success"
    id="award-entry-form"
    class="standard-form"
    url_title="{segment_3}"
    include_jquery="no"
    author_only="yes"
    error_handling="inline"
}

{global_errors}

    {error}

{/global_errors}

{field_errors}

    {error}

{/field_errors}

    Screen Grabs (Desktop)

Please provide a set of screen grabs with details, that can be used for promotional purposes.

    {field:website_screens}

    Screen Grabs (Mobile)

Please provide a set of screen grabs with details, that can be used for promotional purposes.

    {field:website_screens_mobile}

    <button type="submit" class="submit">Save Entry</button>

{/exp:safecracker}

Has anyone come across these problems before? A search seems to say no, well not that has been reported anyway. Changelogs for EE v2.6.1 don't mention anything specific to this problem.


texts: How do I automatically switch to a user's language upon first visit while still being able to switch to other languages?

texts:
I'm currently working on a project where the website has two languages, Dutch and English. I've set up my root index.php to have Dutch set as default language and an index.php in /en/ is pointing it to the English website.

My ExpressionEngine version is v2.10.1.

I'm not sure where to start from here. My main questions are:

How do I determine the user's location to be outside The Netherlands?
How do I keep the language switcher intact (preventing endless
redirects).

Thanks in advance.


texts: How do I customize the tell-a-friend "thank you" template?

texts: I'm using the standard tell-a-friend code from the EE Docs. Where do I find the "thank you" page template that comes up after emailing an entry using the tell-a-friend tag? I'd like to style it to look like the rest of my site.


texts: Can't upload photo. Says "The upload path does not appear to be valid."

texts: I am trying to upload photos to one of my categories on my site which I have done several times before but it is now telling me that "The upload path does not appear to be valid."  How can I fix this so I can upload my pictures to my site?  I can go to another category and it will allow but not under the one I need.


texts: ExpressionEngine API - get channel entries to show on different site

texts:
I have a news on my EE site, it's http.
Then i have another site that run on https.
I want to show my news entries on my https site, remembering that https cannot iframing http page, i think i can use API to achive this.

My question is:
can i use API?
if yes, how to implement it?
if no, can you give me options to achive my goal?

Thanks,
Best Regards,
.mafaik


texts: What file holds the "Invalid username" message?

texts:
In trying to prevent username enumeration, I'm editing login messages to obfuscate whether the username or password was incorrect. I've successfully edited the messages for when the password is wrong, but I cannot track down where the "Invalid username" message pictured below is stored.

I've edited myaccount_lang.php, but it's had no effect on this output. I've searched for "Invalid username" on my /system/ folder, and updated the message anywhere I've seen it, but to no success. (The only other file I found it in was moblog_lang.php, just to be clear.)

What am I missing?


texts:
I have just updated to version 3.5.1 and get the following error in the control panel.

ee:cpnews_feed is not writeable. Make sure you've set the correct relative or absolute path, and that the location is server-writable.

ee/legacy/libraries/simplepie/SimplePie.php, line 1463

Do you know how I can clear this.

Thanks


texts: Javascript Substring function crashes EE2

texts:
I'm having an odd result whenever I try to use the text "substring(" anywhere within EE (both with 2.4 and after updating to 2.7).  EE kicks me out of the Control Panel without saving my content.

I'm trying to implement a Google Analytics Experiment by including their code in the <head> section of my templates.  I've tried pasting the script in a custom field, default field, a template, everywhere there is a text input field in EE.  Even within previously saved templates that already contain perfectly functional javascript.  As soon as I click "Save" or "Update" EE redirects out of the CP to one of my content pages.  Nothing is saved.  I've tried Chrome, FF, and IE all to the same results.

I'm allowed to save the content if I type "substring" but the second I include the opening "(" I get this behavior, but I don't get it with the substr() function


texts:
Is there a way to programmatically empty the cart? I know you can by submitting a form with name="empty_cart", but I'd like to do it programmatically between page loads, not requiring a user input.

If it's not possible with native tags, is this something we could build an extension for?


texts: Post Processing of a SafeCracker Form - how to insert channel field data?

texts:
After a user submits a SafeCracker form, is there a way for me to take a value from the submitted form, run it through a process, then set other Channel field values?

I'm allowing users to enter their address. I need to convert that address to lat/lng values, which my Channel has fields for. I do not want my users to ever see this lat/lng value, so I never present it in the forms they see. The lat/lgn values are critical, though; I need them.


texts: How do you set up a language pack to take effect on system messages?

texts:
I'm currently finalizing the setup of a multi-lingual site and everything to this point has benefited from variables handling language-specific items, but I do have a Safecracker form in the site that automatically serves up general error messages when, for example, a field has been left blank when it's required.  I have the french language pack installed, but I'm somehow missing how I enable it so that when the site is being accessed via the french URL that the error messages served back by the Safecracker form also appear in French.

In index.php, I have the following (mirrored for english as well):

UPDATED CONFIG INFO BELOW

case "french.domain.com":
    $assign_to_config['site_url'] = 'https://french.domain.com';
    $assign_to_config['language'] = 'french';
    $assign_to_config['global_vars'] = array(
        "user_language" => "fr",
        "user_locale" => "en_US.UTF-8",
        "user_locale_date_format" => "%b %e %Y",
        "user_locale_event_date_format" => "%b %e %Y",
        "swap_site_label" => "English",
        "swap_site_url" => "https://english.cps.ca",
        "country_code" => "fr",
);

I just need a bit of help sorting out this final step.


texts: Assets + MSM won't display/upload files on custom sites: Update Indexes not working

texts:
I've browsed through quite a few similar questions, but many of these seem to have gone unanswered. I have some new input that might help.

Situation

I'm running EE2.5.5, Assets 2.05, and Multiple Site Manager (not sure if version is relevant/where to find it) with 3 custom sites.

Like most similar questions, everything seems to be working fine on the default site (let's call this one Site1). Every site had their File Upload Directories duplicated from Site1 and are working fine in EE's own File Manager (after syncing every directory).

The Problem

Assets is not working in any of the site variations.

What's interesting: I know why! The "Update Indexes" feature is failing. When I hit "Update Indexes", an AJAX request is made to the wrong domain. This request SHOULD go to "site1.com/", instead of "site2.com/", since the control panel only works from site1 (in my setup).

I've tried adding the config variable $config['assets_site_url'] = 'http://site1.com/index.php';, unfortunately to no avail.

The Question

How/where can I configure Assets to help it send the Update Indexes AJAX request to the correct URL?


texts: Expresso Store 2 not mapping Zoo Visitor fields on checkout

texts:
I'm running Expresso Store 2.0.6, Zoo Visitor 1.3.30, and EE 2.7.2, and having an issue with Expresso Store checkout not displaying the Zoo Visitor details of the logged in user.

I've mapped all Zoo Visitor fields in Expresso Store > Settings > Order Fields, but when a logged in user goes to the Checkout, their details are not being shown in the fields.  I'm just using the built in {field:xxx) tag (ie {field:shipping_address1} ) to show the field.

If I map these fields to the Member fields, then they DO show up. The issue with this is that Zoo Visitor doesn't save back to the normal Member custom fields (either in the CP or using the update Front-End tags) ... so I can't use them either.

Anyone else replicate this issue?

Cheers.


texts: ExpressionEngine: check if taxonomy is empty

texts:
I'm very new to EE but I can't seem to find how to check if the following is returning empty nodes:

{exp:taxonomy:nav tree_id="1" display_root="no" ul_css_class="clearfix"  root_node_entry_id="{entry_id}"}
    {node_title}
{/exp:taxonomy:nav}

I'm doing this because I have a toggle button for the menu but I want to hide it if there are no children nodes for the current page.


texts: Show / Hide Modifiers Based on Selection

texts: I'm trying to show / hide modifiers based on a selection.  For instance I am building a store who rents licenses for a period of time (3, 6, and 12 month).  I want to show a different set of options based on one of the selections above.   Is there an easy way to do that?


texts: Is There Anyway to Select a Primary Related Item in Playa?

texts:
We were using Solspace's Related Entries before switching to Pixel & Tonic's Playa after an upgrade to EE2. Related Entries had an option to designate a 'primary entry' of the related entries. We used code, like below, to select a single record out of the related items for 'showcasing':

{exp:related_entries:entries main_only="yes"}

{title}

    {!-- Updated: 5 May 2012, Stylistic Change to Read More --}

{exp:word_limit total="30"}{summary}{/exp:word_limit}

Read Now &raquo;

{/exp:related_entries:entries}

Is there any method to do this in Playa? or would I need to create a second Playa field, where just a single related item is added?


texts:
I have an ee site, and in google webmaster tools it's generating some really random urls - and causing a big problem with duplicate title tags - but I can't figure out where they are coming from - an example url is:

http://www.oceanindependence.com/yacht-sales/yachts-for-sale/caprice/P12

but then google seems to keep finding more links the same but with different pagination on the end, ie /P108 /P216 etc... I have added in a 301 redirect to get the page to point correctly, but this doesn't fix where the link is coming from in the first place

The weird part is, that the 3rd segment should be the pagination eg ( http://www.oceanindependence.com/yacht-sales/yachts-for-sale/P12 ) but somehow an extra segment is being added in before this and google is finding it from somewhere

In the template for yachts-for-sale, the only link code is:  - which for me all seems to work correctly

Am hoping someone may have encountered something like this before and maybe have a solution?

I am using ee 2.7.0 and structure (but I don't think this is structure related)

Cheers Jonny


texts: 404 when Sagepay attempts to contact Cartthrob notification URL in Nginx

texts:
https://xxx.xxx.xxx/themes/third_party/cartthrob/lib/extload.php

works fine, but

  https://xxx.xxx.xxx/themes/third_party/cartthrob/lib/extload.php/sage_s

returns a 404.

My nginx server config is as follows:

server {
  listen 443 default_server ssl;
  ssl_certificate /etc/nginx/ssl/xxx_xxx_xxx.pem;
  ssl_certificate_key /etc/nginx/ssl/xxx_xxx_xxx.key;
  server_name xxx.xxx.xxx;
  root /sites/xxx_xxx_xxx/public_html;

  access_log /var/log/nginx/xxx_xxx_xxx-access.log;
  error_log  /var/log/nginx/xxx_xxx_xxx-error.log info;

  location / {
    index index.php;
    try_files $uri $uri/ @ee;
  }

  location @ee {
    rewrite ^(.*) /index.php?$1 last;
  }

  location ~ \.php$ {
    include /etc/nginx/fastcgi_params;
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_index index.php5;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  }
}


texts:
I'm curious if anyone has used Matrix Column Labels in their templates before?

SCENARIO:

I have tabular data showing table headers: ROOM #, ROOM NAME, etc...

Those double as my Matrix Column Labels. Instead of having:

        Room #
        Room Name

I'd rather have something like:

{MATRIX_FIELD}

            {column_number}
            {column_name}

{/MATRIX_FIELD}

I didn't see anything in the Matrix documentation to pull the column labels and was curious if anyone has done this before. Obviously I can pull in the COLUMN NAME but nothing for LABELS.

Thanks everyone!


texts: Blog Pagination URL: Remove "P" from url and get correct page number

texts:
I want my URLs to be like the following: domain.com/blog/2

Currently they are: domain.com/blog/P6

RIght now if I show 6 articles per page, my pagination will jump by 6.

For instance, Page 1 will be /, page 2 will be /P6/, page 3 will be /P9/, ect.