texts: ExpressionEngine 1 Query Module and Ordering SQL UNION

texts:
I'm receiving a MYSQL Error on this code in ExpressionEngine 1.6.4 (very old version)

{exp:query  limit="10" paginate="bottom"
    sql="SELECT 'gallery' AS `content_type`, `cat_id` AS `entry_id`, `recent_entry_date` AS `entry_date`
        FROM `exp_gallery_categories`
        WHERE `gallery_id` = 9 AND total_files > 0
        UNION
        SELECT 'video' AS `content_type`, `entry_id`, `entry_date`
        FROM `exp_weblog_titles`
        WHERE `weblog_id` = 6 ORDER BY `entry_date` DESC"

}
<p>{content_type} - {entry_id} - {entry_date format="%d %F %Y"}</p>
{paginate}{pagination_links}{/paginate}
{/exp:query}

MySQL returns this:

MySQL ERROR: Error Number: 1054
Description: Unknown column 'entry_date' in 'order clause'
Query: SELECT COUNT(*) AS count FROM `exp_gallery_categories` WHERE `gallery_id` = 9 AND total_files > 0 UNION SELECT COUNT(*) AS count FROM `exp_weblog_titles` WHERE `weblog_id` = 6 ORDER BY `entry_date` DESC

It seems like EE is modifying my query before MySQL and making it fail (On a SQL client this works smoothly).


texts: Does CartThrob support Stripe as a gateway in the UK?

texts:
The official Supported Payment Gateways page suggests Stripe can only be used in North America, but not in Europe:

http://cartthrob.com/docs/pages/supported_payment_gateways/index.html

I'm wondering if this page simply hasn't been updated since Stripe started supporting markets outside North America.

Can Stripe be successfully set up as a payment gateway with CartThrob for UK stores? And does it work with all the currencies supported by Stripe?


texts:
I suddenly can not upload images and get the following error (Even though all is writeable)

I tried to upload files that i had previously uploaded to make sure they are not damaged and still get the same error

What else could i check to make sure all is correct?

ExpressionEngine v2.5.5

A PHP Error was encountered

Severity: Warning

Message: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file

Filename: libraries/Image_lib.php

Line Number: 1246
A PHP Error was encountered

Severity: Warning

Message: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/home/*/public_html/cms/images/uploads/general/656.jpg' is not a valid JPEG file

Filename: libraries/Image_lib.php

Line Number: 1246
A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 408
Thumbnail could not be created for the image. Please make sure the thumbnail directory is writable.

Upload to general

Upload File


texts: Which table contains the data on the member group channel assignment privileges?

texts:
I am looking at my database and have looked at these tables

exp_member
exp_member_data
exp_member_fields
exp_member_groups

I can’t find any information here about the channel assignment privileges of a member group.

The one where you have something like

Can post and edit entries in:  Foo    Yes      No
Can post and edit entries in:  Bar    Yes     No


texts: Filter by entry_id parameter in exp:store:search tag

texts:
{exp:store:search} doesn't appear to allow you to filter by entry_id in the same way {exp:channel:entries} does.

I've written a plugin that will return only entries that meet advanced category criteria which works great (it returns them as a piped string of entry_ids).

However I need to pass that into {exp:store:search} in order to take advantage of your order by price feature.

Any guidance is appreciated.


texts: PHP Error after upgrading from version 2.5.3 to 2.11.7

texts:
I'm getting the following errors after upgrading from EE version 2.5.3 to 2.11.7.

Any ideas how to solve this one?

Thanks in advance,

Tom

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/expressionengine/public_html/index.php:54)
Filename: core/EE_Input.php
Line Number: 213

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/expressionengine/public_html/index.php:54)
Filename: core/EE_Input.php
Line Number: 213

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/expressionengine/public_html/index.php:54)
Filename: core/EE_Input.php
Line Number: 213

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/expressionengine/public_html/index.php:54)
Filename: core/Common.php
Line Number: 475


texts: Entries list without know ID of Category - want to usw category_url_title

texts:
In my URL I have the category (segment_2).
And now I want a list with all entries from this category.

If I use category="8" its fine, but in my URL isn't a ID... it's the {category_url_title}.

{category_url_title} is my {segment_2}

{exp:channel:entries channel="redner" dynamic="off" category="{segment_2}" status="open"}
    {title}
{/exp:channel:entries}

thanks for help
Michel


texts: Unexpected results when using {redirect=404} and template layouts

texts:
It appears that when using the recommended method of {if no_results}{redirect=404}{/if} in a template that uses the template layout feature, it duplicates the layout, if a layout is also used on the actual 404 template. The 404 template lives at errors/404 it includes the following:

errors/404 template

{layout="_layouts/master}
404 Error Content Here

When viewing a normal page that 404s (sitename.com/pagedoesntexist) it works as expected.

_layouts/master template

{layout="_layouts/_global}
   {embed="_embeds/header"}
     {layout:contents}
   {embed="_embeds/footer"}

On instances that do not work as expected it's set up like the following:

Sample template using the 404 redirect tag

{layout="_layouts/master}
{exp:channel:entries}
   Content Here

   {if no_results}
     {redirect=404}
   {/if}
{/exp:channel:entries}

This results in the file rendering the master layout twice (double header + footer in my instance) because the {redirect=404} tag is essentially copying the results of the /errors/404 template into the template that contains no results instead of displaying the 404 page as usual.

Is there a way around this bug, preferably that doesn't require enabling php in templates?


texts: How do I process form data with a php script inside expressionengine?

texts:
I have an ee site that has tons of forms that are currently live. These forms are submitting data to a third party service using that service's custom submission code (which has nothing to do with ee addon code - I think the service is just using CURL).

I need to implement additional validation for these forms on the PHP side before I pass the data to the service. I kind of need a middle layer which processes the data I guess. The forms are in plain html and are stored as snippets or low variables.

I do not need to save the data. I only need to

validate form inputs
filter out bad input characters
throw back errors and redirect to form if form data is invalid
send data to the service if the form is valid

How should I do this? Should I write a plugin, extension, module? I only need to process the data not build the form. What should I write?


texts: Cleanest way to list entry titles with links to body of entry below?

texts:
I'm trying to achieve something that I think might be simple, but I'm just not getting it figured out. What I want is to have a list of my entry titles with links to anchors to the body of the entry immediately below, like this:

title1
title2
title3

body1
body2
body3

Here's the code I've got right now:

{exp:channel:entries channel="channel-name"}
   {title}
{/exp:channel:entries}

{exp:channel:entries channel="channel-name"}

   {body}
{/exp:channel:entries}

It seems to me that calling the channel twice is redundant, but I don't know how to get around that. Am I missing something obvious?


texts: Can I use the {ext:freeform:composer} tag inside a richtext field?

texts:
I would like to be able to add a form within a rich text field (or wygwam) but it just renders the tag as a string instead of pre-processing it. Is there a way around this? (parse="inward" doesn't work.)

any help would be great.


texts: P&T Checkbox field not outputting on site?

texts:
I've been working on a dev site for the past month or so. Everything was working fine. Started to upgrade the live site just now. It's pretty much all gone smoothly, except for 2 fields that are not showing on the site.

They are two P&T Checkbox custom fields. (Same channel). They are visible in the CP, and every entry has some options selected.

Now on the front end where I am displaying these options, nothing is output. It's the exact same template and set up that I am using in the dev site, which is working fine.

Not sure where to start trying or testing? Any ideas?


texts: ExpressionEngine - Send custom field in New Member Registration Email?

texts:
I need to send custom field data to the admin when a user registers. In this example I'm trying to send the ZIPCODE along with other standard fields. I'm using freemember to collect the custom field data.

This is my Admin Notification of New Member Registration Template:

    New member registration site: {site_name}

    Name: {name}
    User Name: {username}
    Email: {email}

    zipcode: {zipcode}

    Your control panel URL: {control_panel_url}

Any Help is greatly appreciated.  I do have Solspace User, but that hasn't been any help.


texts: Parsing code in a textarea field pulled in with Playa

texts:
I am trying to allow a user the ability to select code snippets (widgets?) to show in a sidebar area on a page-by-page basis. These snippets could have plain old HTML code or could be EE channel entries loops.

I setup a Code Snippets channel with a single "code_snippet" textarea field (format NONE) where the code would be pasted in. Then in the Pages channel, I created a Playa field called "page_sidebar_items" that pulls from the Code Snippets channel.

On my template, plain old HTML code will display correctly but EE channel entries tags (actually, I'm using a Low Events tag) will not. It will output the actual EE code on the page instead of parsing it first.

Is there a way to tell EE to parse that code before displaying it? I have tried placing parse="inward" in a few different places with no luck.

I have tried this:

{exp:channel:entries channel="Pages" disable="member_data|pagination|categories|category_fields"}
    {exp:playa:children var="page_sidebar_items"}
        {code_snippet}
    {/exp:playa:children}
{/exp:channel:entries}

And this:

{exp:channel:entries channel="Pages" disable="member_data|pagination|categories|category_fields"}
    {page_sidebar_items}
        {code_snippet}
    {/page_sidebar_items}
{/exp:channel:entries}

Code Snippet:

Upcoming Events

{exp:low_events:entries channel="events" show_future_entries="yes" sort="asc" dynamic="no" disable="member_data|pagination|categories"}

{if '{event_dates:one_day}' == 'y'}{event_dates:start_date format="%F %j, %Y"}
{if:else}
{if '{event_dates:start_date format="%F"}' == '{event_dates:end_date format="%F"}'}
{event_dates:start_date format="%F %j"}-{event_dates:end_date format="%j, %Y"}
{if:else}
{event_dates:start_date format="%F %j"}-{event_dates:end_date format="%F %j, %Y"}{/if}
{/if}

{title}

{event_host}

{event_city}, {event_state}

Details

{/exp:low_events:entries}

This code snippet works fine if placed directly into my template, but does not work (HTML bits are fine but EE bits are not parsed) when pulled from the channel via Playa.

What am I missing here? Thanks in advance!

Side Note: I've also tried using Low Variables instead (code snippets live in LV and add a LV fieldtype to my Code Snippets channel) with pretty much the same results. If I could get that approach working, I would prefer that over code living in a channel.

Versions: EE 2.9.2, Low Events 1.3.1, Structure 3.3.14.7, Playa 4.5.2, Low Variables 2.5.0


texts:
I'm building a VERY simple store setup to demonstrate its capabilities to a client. I setup a quick and dirty EE site, added Structure, Wygwam and Store. EE and all the add-ons are current versions. I then created my field types, my product channel, and linked the two. I added a store home page in Structure and told it to use the store_example/index template. I added a single product then went to the site. So far so good. I went to the product page, clicked on add to cart and nothing appears in the sidebar cart after the page reloaded. Is there some step I've missed or a reason why my add to cart button wouldn't work?Remember, these are the default templates that are installed with Store, I haven't changed anything other then that main navigation on top. and linked to a common bootstrap.css file.

UPDATE: I'm not sure how relevant this is but I started looking at other Store examples on the web and I noticed that the exp:store:product tag was outputting a form tag with an action. Mine is missing the action parameter for some strange reason.

UPDATE 2: .htaccess file contents:

# remove index.php
RewriteCond %{QUERY_STRING} !^(ACT=.*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]

# EE 404 page for missing pages
ErrorDocument 404 /index.php/site/404

# remove www
# RewriteCond %{HTTP_HOST} ^example.com$ [NC]
# RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]

The removal of index.php is from the documentation for Structure and has worked for all sites I've ever built with it. The 404 was added recently due to EE not working without it. I never could figure out why. The removal of www is commented out because this is a test site.

Commenting out the removal of index.php and updating my $config['site_index'] does work but I'd like to be able to remove index.php from the URLs.


texts: Is there any setting in Expression Engine that does not permit cross-origin framing?

texts:
Running EE 3.5.11

In the portfolio section of my website, I display websites that I have built using an iFrame. Most of them work and display properly, but there are a handful of ExpressionEngine sites that I built that do not show properly, but instead I get the following console error:

  does not permit cross-origin framing

One that works correctly: http://rouviere.com/our-work/project/se-wind-supply-chain-map

One that does not work correctly: http://rouviere.com/our-work/project/cameron-clinic

They all use the same code for the iFrame:

<iframe id="webview"  src="{website_url}"></iframe>

I contacted the host for the sites that do not display in the iFrame and they said that they do not have any server settings that would be blocking cross-origin framing.

Any suggestions for solving this would be appreciated.


texts: Safecracker Registration & EE's registration process, Forgot Password

texts:
I'm using Safecracker Registration. There are a few things I want to improve for my registration process. I'm not sure if this is something I need to do in Safecracker Registration or in EE.

Registration Process Questions

Upon submitting the registration form, users are NOT loggged in and are directed to a page that tells them to verify their email address. Everything is good so far.

When the user checks their email and clicks the activation link, I want the user to be directed to a page that I specify instead of EE's default page.
When the user gets to the activation page (whether it's mine or EE's), I want the user automatically logged in. The assumption is that only the user has access to his/her email and clicking the activation link essentially confirmed the identity of the user -- thus, this is safe.

Forgot Password

This process sends an initial email to the user, which then sends another email with the new password if the user clicks the link in the initial email. How do I get these links to direct to my template pages instead of EE's?

Synchronizing Information

My member's Channel (the one associated via SafeCracker Registration) has a {profile_name} field. Whenever this is set, I'd like to sync it up with EE's {screen_name}. How do I do this?


texts: Pagination Library on an Add-on Control Panel Page

texts:
I am updating the Link Vault add-on to paginate the report results in the control panel. For some reason, the link generated for the page 1 link always leaves off the defined suffix of query string parameters. Has anyone experienced this before? How do I fix it?

I verified that the $query_string_suffix variable is populated correctly. It must be since all the other pagination links are fine. It is just the page 1 or "first" link that is wrong. Why would all the others be fine?

// Setup the pagination links
$page_config = array(
    'base_url'          => $this->base_url.AMP.'method=reports',
    'total_rows'        => count($complete_report_data),
    'per_page'          => $data['limit'],
    'page_query_string' => true,
    'suffix'            => $query_string_suffix
);

Edit: I found this bug report from EE 2.5.5 but the known solution doesn't seem to describe code that is still located in the Pagination library.


texts:
I have a client that needs to migrate to CloudFiles (currently hosting their assets on their own server). DevDemon indicated that they have a migration-script for current entries, but they are nowhere to be found (tried contacting them over e-mail and Google+), does anyone have a solution for this? They have over 2000 entries with Channel Images, so manual migration would be a PITA.

Thanks!

Steven


texts:
Running 2.7.3 with secure forms, everything works fine passing the xid_hash etc... until somebody clicks the back button or tries to reload after submitting a form.

It's the usual issue of it trying to reuse the same xid, but I can't refresh the xid as they're just clicking back.

I notice in the 2.8 changelog developers section it's deprecated a load of xid functions, do we know if this somehow fixes this?


texts:
all,

Just started a new job at a publication and inherited EE, as well as social media accounts.

When I post content to FB/Twitter, though, what would normally be the headline field simply pulls in the name of the publication. I assume there's a really easy fix to this, but just don't know what on the backend would solve the problem.

Let me know when you can and thanks. dave.


texts: htaccess: need help hiding index.php and doing a redirect without conflict?

texts:
I need to redirect a page on a client site to an outside URL. I have been using the following redirect, which works - sort of:

redirect 301 /durhamchapelhill http://gds.chapelhilluumc.org

The problem is that the resulting URL is cluttered:

  http://gds.chapelhilluumc.org/?/durhamchapelhill

I sought help on StackOverflow and got a really good redirect

RewriteEngine On
RewriteBase /

RewriteRule ^durhamchapelhill$ http://gds.chapelhilluumc.org [R]

By itself, it does an awesome job and returns a nice clean URL. Which brings up the thorny issue of hiding the index.php page.

Before all of this started I was using the following to hide index.php and it works great:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]

The problem is I need both (hide index.php and redirect).

Here is the combination I tried:

RewriteEngine On
RewriteBase /

RewriteRule ^durhamchapelhill$ http://gds.chapelhilluumc.org [R]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]

However, if I combine the two rules the redirect fails.

Is there an htaccess doctor in the house that can assist with setting this straight?

Thanks!


texts:
I have a site that is using the forum module. Although the forum is password protected itself, members must be logged in to the website using a custom template before they can access the forum.

When someone tries to access a forum URL, they are redirected to the custom template to log in. I did this by putting a PHP redirect in the forum header template.

The problem is when a member is subscribed to a forum thread and gets a notification email from the forum with a URL to a forum post in it, the link takes them to the forum post page but redirects them to the custom login page.

When the member logs in, the chain is broken and they do not get redirected to the forum post.

Os there a way to get this to work correctly?


texts: Multiple Dynamic Product Variables not working?

texts:
I am using espresso-store 1.6.2, and working with the product modifiers. I've managed to get the dynamic product variable working for my price & sku in the main area (code below).

{price}{per_unit}

Sku: #{sku}

                     {modifiers}

                         Options: {modifier_name}

                            {if modifier_type == 'var' OR modifier_type == 'var_single_sku'}
                            <form class="store_product_form">
                            <select name="{modifier_input_name}" class="select" style="width:100%;">
                              {modifier_options}
                                <option value="{option_id}">
                                  {option_name}
                                  {if price_mod_val} {price_mod} {/if}
                                </option>
                              {/modifier_options}
                            </select>

                          {if:else}
                            <input type="text" name="{modifier_input_name}" />
                          {/if}
                          </form>

                    {/modifiers}

But when I try to use the {price} anywhere else on my site it doesn't work, I can use it multiple time but only within the "price_box" div.

I guess i'm just wondering if you can only use the Dynamic Product Variables css classes only once?

Thanks in advance!


texts: Ajax xid form errors without refreshing page

texts:
Not sure if this is an XID issue or what, but occasionally it will be successful but 99% of time it fails.  I want someone to seamlessly turn on "vacation mode" by just checking radio button without submit button or refresh... it goes and just sets a variable in database and spits out "success or fail".

I'm using same custom ajax code throughout site and it works except this one page.  I'm sending a hidden XID, and tried stripping it down as much as possible.

Error it spits out for me (which i have no clue what that means):

{!-- ra:000000007029234a0000000076a13fa1 --}

Here's my form basically:

<form name="vacationModeForm" class="clearfix vacationModeForm" id="vacationModeForm" action="{site_url}ajax/set_vacation_mode" method="POST" data-postback='vacationPostback' >

<input type="radio" name="wk{embed:selectedWeek}_Active" value="0" onchange="$('.vacationModeForm').submit();" {if wk{embed:selectedWeek}_Active == 0} checked='checked' {/if} > OF<input type="radio" name="wk{embed:selectedWeek}_Active" value="1" onchange="$('.vacationModeForm').submit();" {if wk{embed:selectedWeek}_Active == 1} checked='checked' {/if} > ON
<input type="hidden" name="XID" value="{XID_HASH}" />

Here is the simple ajax template setting a variable (I've stripped down as much as i could and even hardcoded)

ee()->db->update('pc_users',
    array(
        'wk2_Active'  => '1'
    ),
    array(
        'member_id' => '1618'
    )
);

if ( (ee()->db->affected_rows()) > 0) {
    echo 'Success...';
}
else {
    echo "Failed";
    ee()->db->error();
}

Here's the custom ajax call used throughout.  it gets to the ajax template fine (I removed all the other classes for the .on, as I'm using this on every form throughout site and it works great on at least 10 diff. ajax calls/forms

$('body').on("submit", ".vacationModeForm", function(e){
    e.preventDefault();
    var form = $(this);
    var postback = form.attr('data-postback');
    // only submit filled in fields so you don't get php undefined
    var fields = $(this).find(":input").filter(function () {
        return $.trim(this.value).length > 0;
    }).serialize();
    console.log('ajax form submitting to: '+form.attr('action'));
    $.ajax({
        type:"POST",
        url:form.attr('action'),
        data:fields,
        dataType:"html",
        beforeSend: function() {
            $('.'+postback+'').show().html('');
        },
        success: function(response){
            $('.'+postback+'').show().html(response);
            console.log(fields);
        },
        error: function(xhr, status, error) {
          alert(xhr.responseText);
        }
    });
});


texts: How do you get Cartthrob to send the customer's info through the Stripe Payment Gateway?

texts:
We're using the Stripe Payment Gateway with Cartthrob and the payments are going through and it's working just fine. The only problem is that in the Stripe Dashboard the customer's name, address, and more is set as null.

So as I tried to locate the cause of the problem I looked at a few of the files, and the Cartthrob_stripe.php file seems to be where the problem is. It all lines up with the stripe.js documentation that they have, and it has the section that creates a token to see if it's cool to pass through, and then passes through that information. I think it's on the second pass after discovering that there is no error that it doesn't keep the customer's name & address info, and only sends through the essentials. But I can't test out my theories on how to fix this without making actual payments as Stripe in test mode doesn't send the information to the Stripe dashboard. So I won't know if what I did just worked or not.

I'm hoping to get either a solution to this or some tips on how I might properly test my theories. Any help is appreciated, and anyway that I can help with getting the solution together, let me know. Thank you


texts: Removing unwanted newline characters in Wygwam

texts:
Wygwam automatically adds some extra space in
 tags by default. Is there any way to remove them without editing the source in Wygwam? I'm using Wygwam 2.6.3.

What is intended

This is a paragraph

What actually happens

     This is a paragraph


texts: Display latest entries in categories, only display distinct items per category

texts:
I have a homepage with 4 blocks. Each block contains the latest entry from a category. Right now if one item is assigned to multiple categories then it displays in all the blocks.

How can I pull the latest item from each category and ensure that only distinct items appear in category block?

Thanks,


texts: Show future entries / parent relationship

texts:
I have a channels "Show" and "Event".
The Event channel has a relationship field (rel_show) to link to a Show

In the Show detail page.. i want to show all the Event related to that Show (event the upcoming events)

{exp:channel:entries channel="show" url_title="{last_segment}"}
LOTS OF CODE...
{parents field="rel_show" orderby="entry_date" sort="desc" show_futures_entries="yes"}
MORE CODE ...
{/parents}
{/exp:channel:entries}

2 questions..

The show_future_entries doesn't work is there a way to bypass or make it work
I need to group the event by Year.. but i think relationship doesn't allow that right?!.. I can use php to "group" or put and Header when the loop dectect a new Year..

I also may close the "show" exp:channel:entries.. to open a new one with channel="event" and then use a if statement to check if related entries is the good show.. But i have a looootttt of event..

Any ideas?


texts: URL to search a field for keyword on Low Search

texts:
We have a query which searches a specific custom field for a given keyword.

As an example lets assume we have a table of results, one of the columns data is a custom field called 'my_colour' which contains a colour such as red.

When we click 'red' we want to show all results from a collection where the field 'my_colour' contains 'red'.

This would give something like the following URL:

http://example.com//results?search:my_colour=red

Which works, but our question is, is there is a specific tag to do this for example:

{exp:low_search:url search:my_colour='red'}

We DONT want use filter to append the current URL, instead simply display a specific set of results for the field and keyword.


texts:
I've run into this before - and have never found a 'great' solution. The crux of my problem is that I need to document some EE tags, using content in a channel entry.

For example, I'd like to output something like:

{exp:someth:ing}

The issue is, that of course, EE htmlentifies the curly brackets, so what I end up with is:

&#123;exp:someth:ing&#125;

I've tried using CE Str (awesome plugin by the way) to decode these html entities, which it does - flawlessly. However, at that point, due to what I'm assuming is a parse order issue - EE then tries to process those tags rather than just outputting them.

In the past, the only solution I have found required including PHP in my templates which is not really an option anymore. I've tried knocking out a quick plugin - but have had no luck.

Any ideas would be wildly appreciated.

I'm hoping there is some magic addon like:

{exp:donot:parsetags}
   ...
{/exp:donot:parsetags}

But so far, I cannot find it - and maybe I am just searching for the wrong keywords.

MW


texts: Changing the Handling Charge in Exp-resso Store

texts:
The per-item handling surcharge is based on items in the order. "If the user purchases multiple items, this number will be multiplied by the item quantity, and displayed in the {order_handling} variable. (from Exp-resso Store docs)"

Is there a way to make this handling charge per order not per Item? Running 1.6x Exp-resso Store.


texts: Transcribe randomly outputs completely wrong URI

texts:
I'm using Transcribe 1.6.1 and EE 2.8.1.

I'm getting a weird thing happening when using the {exp:transcribe:uri} tag to output different URLs.

In my footer I have the usual Sitemap | Terms | Disclaimer| Privacy | Contact links, but only Contact isn't working correctly. It outputs M140o93H7pQ09L8X1t49cHY01Z5j4TT91fGfr instead of /en/contact

I've done some debugging on this one and I've found that the rest of the links output in the format of http://domain.tld/en/path but contact is outputting /contact/ only. I looked into it further and discovered that even though site_url='yes' is supposed to be default param for this function but when parsing contact it is set as no. So I've gotten around this issue by explicitly setting site_url='yes' in my code.

I'm happy to have fixed the problem but this one is really bugging me why it's being so weird. Anyone have any ideas on this one?

Also, couldn't find any way to contact the developer on this one.


texts: At what point does the 404 template send it's response code?

texts:
I've recently launched a new site for a client. Their old site contained a lot of product pages with url parameters such as id=0123.

To try and alleviate people following dead links from Google etc I have implemented a system that looks up the id parameter against their old database, fetches the name of the product and then looks it up in the exp_channel_data table. If a match is found I have a 301 redirect at the top of the 404 template to send the visitor to what is hopefully the correct page.

If no match is found then the 404 page displays (though I may add some other sort of guessed lookup based on some other criteria later).

My question is, will that 301 get sent back to Google BEFORE the 404 response code generated by hitting the 404 template. Will the above method have the desired effect of telling Google that pages have moved to different URLs?


texts: Showing entries that only have a specific category

texts:
With the category parameter in ExpressionEngine we can specify to not provide entries with a specific category category="not 1"

Is there a way to show entries that only have a specified category, for example: category="only 1"

So entries that are marked as category 1+2 will not show.


texts:
We need to get download functionality where channel entries can be downloaded to an Excel spreadsheet (preferably) or a csv at a push.

Been looking at Export_It and using it which is ok but ran into two problems which apparently are not solvable - at least have never got any results investigating them - so need maybe another solution.

The problems in question were/are:

1) Strange characters in the spreadsheet if the file contains accented foreign characters. I believe integrating PhpExcel with Export_It should fix this but I never got this working and no-one on PhpExcel forums or elsewhere seems to know anything about the error.

2) We need to be able to take data from TWO categories in the download: i.e. category="1&2" in the parameters.  Have not been able to find out if Export_It supports this but it seems not as it doesn't work.

So we need another solution. Has anyone successfully implemented PhpExcel as a stand-alone in EE? Are there any other modules or solutions you might recommend?


texts: Conditional statement using two different channels

texts:
I have two channels setup, one "blog" and one "authors". The blog channel has all of the blog post entries and the Authors channel has a list of the different post authors.

I am looking on a specific entry (blog post) to show the blog information (body, author, author description and pic). I want to have it so that I just put in the entry the authors name then have a conditional statement that cross checks the authors name in the blog entry with the different authors in the Authors channel, then pulls the information from the authors channel (bio, picture, social media links, etc...) but am having trouble finding anything about doing conditional statements between two channels.

Here is the code to pull everything in which works for the Blogs portion but not the Authors:

{exp:channel:entries channel="blog|authors" text_only="yes"}

{title}

 {entry_date format="%m-%d-%Y"}

 {entry_author}

 {exp:channel:entries channel="blog" limit="1"}{categories limit="1"}{category_name}{/categories}{/exp:channel:entries}

{entry_body}

Keywords: {entry_keywords}

{if blog/entry_author == authors/author_name}

        Posted by {author_name}

        {author_description}

{/if}

{/exp:channel/entries}

Any help would be much appreciated.

Thanks


texts: Removing index.php causes internal server error

texts:
Just installed EE 2.8.1, haven't renamed the system folder yet and am trying to set up the htaccess file to remove index.php from URLs. When I use the htaccess code recommended in the installation instructions, I get an internal server error. The error log gives an alert:

.htaccess: RewriteRule: cannot compile regular expression '(.?)index\.php/(.*)'\n

Here's the .htacess contents

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    # Removes index.php from ExpressionEngine URLs
    RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
    RewriteCond %{REQUEST_URI} !/system/.* [NC]
    RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]

    # Directs all EE web requests through the site index file
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>

Anyone run into this and know how to fix it?

It's on an Apache 1.3.4 server; fresh install, no addons.


texts: Is there a Realex Payments module for Expresso Store 2?

texts:
As per this post (from October last)

https://expressionengine.stackexchange.com/questions/14325/expresso-store-realex-payments#=

Is there any support for Realex Payments provider? I have commissioned the Realex payment module for the previous version of Store, but we have moved on the upgrades and now need to offer the same thing for what is a much better store version.


texts: Best practices: Location-aware Navigation in EE2?

texts:
Recently upgraded an older Expression Engine site from 1.x.x to 2.7.3, and looking to upgrade to 2.9.0 and optimize some of the slower code.  One of the issues I'm working on is getting rid of a lot of embed tags, which were used in the old site to embed navigation, using embed variables to set classes to display active links in the embedded navigation template.

I'm looking for some general guidance on Expression Engine best practices to do something like that - with the goal of finding a solution that can do it with the least queries and load the fastest, even when dealing with a lot of conditionals in the navigation.

This is what I want to happen: when on site/about, the navigation menu will be rendered like this:

About Us

Community

Directory

The idea is that the "selected" class changes depending on the template that's being loaded to let users know where they are in the site..

So far, I've considered the following possibilities:

Use preparse in Low Variables:

Template: site/about

{exp:low_variables:single var="lv_subnav_about" preparse:selected="about"}

Low Variable: lv_subnav_about

About Us

Community

People: Directory

Revising the scheme to use segments instead of passing variables to
accomplish the same goal.  This would still probably require the
same number of conditional statements in the embed/low variable, but
would using segments help at all, performance-wise?
Using the new (in EE 2.8.x) layout variables to do the same thing,
i.e. {layout="site/normal" selected="about"}.  This would have
another advantage in that I could create layouts that take care of
other embeds I'm trying to get rid of - header/footer/sidebar/etc.

Please let me know if you have any ideas on what the best way to accomplish this goal might be, even when dealing with much more complex navigation (passing multiple variables to indicate category and page, etc) - thanks!


texts: Problem using Stash in conditional structure

texts:
I posted this in the Stash support forum on Devot-ee, but there's more activity over here so I thought I'd try my luck in both locations. Not sure about the etiquette of posting in two forums, so apologies if it bends any noses. Here's my situation:

I have a site in which the user can turn various sections (Books, Screenwriting, News, Events etc) on or off depending on whether they are relevant to them. Whether a specific section is on or off is recorded in a Global Variable—eg. gv_include_books_section (value=[y/n]).

On the homepage I have a few columns, each of which I want to display recent entries from one section or another. The catch of course is that I don’t know in advance which sections will be on or off, AND I don’t want to use entries from the same section in more than one column.
My solution is to only show entries from a section if a) it is switched ‘on’ AND b) it hasn’t been used earlier in the template. (a) is easy to check as it’s already stored in a Global Variable, and I’m using Stash to set a flag to record whether a specific section has already been shown.

I’m also using IfElse since these conditionals necessarily consist of if/else chains (Switchee got too complex as all the branchings required multiple nested Switchee tags).
As far as I can see the code I have should work, but it doesn’t. I presume the issue is parse order but I'm unsure how to rectify it.

In addition to the template code; the global variables in play are:

gv_include_books_section = “n”
gv_include_screenwriting_section = “y”
gv_include_journalism_section = “y”

The template code is:

{exp:stash:set_value name="books_used" value="0" type="snippet"}
{exp:stash:set_value name="screen_used" value="0" type="snippet"}
{exp:stash:set_value name="journalism_used" value="0" type="snippet"}

{!-- column_1 --}
{exp:ifelse parse="inward"}
    {if gv_include_books_section == "y"}
        {exp:stash:set_value name="books_used" value="1" type="snippet" replace="yes"}
        {snp_home_books}
    {if:elseif gv_include_screenwriting_section == "y"}
        {exp:stash:set_value name="screen_used" value="1" type="snippet" replace="yes"}
        {snp_home_screen}
    {if:else}

Oops

    {/if}
{/exp:ifelse}

{!--  columm-2 --}
{exp:ifelse parse="inward"}
    {if gv_include_screenwriting_section == "y" && screen_used == "0"}
        {exp:stash:set_value name="screen_used" value="1" type="snippet" replace="yes"}
        {snp_home_screen}
    {if:elseif gv_include_journalism_section == "y" && journalism_used == "0"}
        {exp:stash:set_value name="journalism_used" value="1" type="snippet" replace="yes"}
        {snp_home_journo}
    {if:else}

Oops

    {/if}
{/exp:ifelse}

By my reckoning column_1 should display content from the screenwriting section (because the Books section is turned off), and column_2 should show the journalism section (because the Screenwriting section has already been used in Column 1). What’s actually happening, however, is that both columns are showing screenwriting content.

Um… help please? Thanks.


texts: Expresso Checkout conditional (use hook?)

texts:
So, at the end of the checkout process (where it becomes an order) I want to fire off an SQL query wrapped inside AJW export (which creates an xml file).

However, within the confines of ExpressionEngine and Expresso respectively how precisely would I do this?

The idea would be:

User hits submit --> No Errors --> Turn into order --> Fire off AJE\SQL XML --> Redirect user to whatever page.

I'm guessing I'd use a hook or something like this, right?

store_order_complete_start

Any suggestions for how this might be most suitably accomplished? The documentation is kind of thin when it comes to this stuff.

On the other hand, would it be possible for me to put the code in a template and do a 'next' on the checkout tag instead of 'return' so when the user hits "confirm" it takes them to a template with the code, which automatically creates the order and returns them to a page with the hash?

If I'm over thinking this, I'm totally open to any solution that proves to be simpler\superior.

Edit: Have this figured out. Wrapped the PHP\AJE code inside a javascript function and had an even listener tied to the checkout submit button. Seems to be working just fine!

Edit: No, this won't work. Because it hasn't been put into the database by the time this script executes...


texts: WYGWAM double wrapping email links when emailProtection is set to encode

texts:
I have an editor configuration set up using emailProtection. emailProtection is set to Encode. If the user adds an email link in the WYSIWYG editor, when it is rendered in the page, it has the original link and then that one is wrapped in another obfuscated one. I would have expected it to replace the original one with the obfuscated one. Am I missing something in the settings? Here is an example of the output.

me@here.org


texts: Save template as a file error - due to MAMP?

texts:
In Template Manager I am trying to save my template (site/index) as a file. When I click update I get this error:

unable to save your template as a text file

I have asked around and searched and what I've seen is that it has to due with permissions or path to file, but I have tried messing around with both of those.

Thanks in advance.

MORE INFO-----

The template is called index and it is in the template group site: site/index

My Server path to site's templates is: /Documents/ExpressionEngine/unimin/expressionengine/templates

I am using:

ExpressionEngine Core (free version)
MAMP Pro
Mac OSX Mavericks
Google Chrome


texts: set order to freeform pro field list type?

texts:
I have a checkbox group field in Freeform Pro where the value list type is from a channel field.
Is it possible, using an attribute in the freeform tag to set the order (asc by title) of the items?

Thanks

Peter T


texts:
I have a  HTML table where a user can subscribe.I send an ajax call when the user clicks the subscribe button and store it in a non ee table.Next time when the user comes on the same page,I want to show "you have subscribed instead of subscribe".PHP stage is input.

Because of some reasons,i cant store my data in exp_members_data.Since i am using a non ee table,

How can i query it to get the desired result.

Any solution?
This is what I am doing.

{exp:query sql="SELECT screen_name, email, location FROM My_table WHERE user = 'subscribed'"}
        {screen_name}
        {email}
        {location}
{/exp:query}


texts: "Thumbnail could not be created for the image" on virtual machine

texts:
I am running ExpressionEngine inside of a Vagrant virtual machine. When trying to upload an image, I get the following error:

Thumbnail could not be created for the image. Please make sure the thumbnail directory is writable.

The image is uploaded to the "uploads" folder, but never gets past the point of creating the thumbnail. The _thumbs directory has 777 permissions and is owned by apache and inside the apache group. What could the problem be?


texts:
I would like to remove all urls with trailing slashes using the .htaccess file.
I have tried a couple peices of code suggested on other questions but does not work.

Any suggestions on how to do this by modifying the code below?

RewriteEngine On

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

RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://www.domain.com/$1 [L,R=301]


texts: Using width / length / height as dynamic option

texts:
Im using  this answer
Recommendation for dynamic Store product data updates to setup my products, wich works great but the problem is they are not getting added as seperate products like products with product modifiers, basicly it only adds one quantity to the product.

Is there any way todo this? I could setup a dynamic product variable, but it would be great todo it this way.


texts: how could you only email users that have entered something in a channel?

texts:
I would like to send an email to users who have submitted an abstract in the abstracts channel, but leave out users who have not submitted anything.

what would be the best way to achieve this?

I personally would just create a template, then have my abstract authors emails listed, and from there, ask my client to copy paste the list into his email app...

something like this:

{exp:channel:entries channel="abstacts"}
    {embed="_includes/_get_author_email" author_id="{author_id}"}
{/exp:channel:entries}

but I'm sure there's a better way to do this!
any thoughts?


texts: Solspace SuperSearch giving 'You are not allowed to search' on live site

texts:
Using Solspace SuperSearch in ExpressionEngine site works OK on test site.

When running behind the network firewalls and load-balancing systems produces
"You are not allowed to search."

The form POSTS, but then does not redirect onto the results page.
Any suggestions?


texts: Ordering issue with orderby in Super Search

texts:
How do you force the "orderby=" parameter to use a custom field like "alphabet" as the lead in Super Search.

Using it +asc doesn't work, nor does using it alone. It still prioritizes the results by entry date.

We've tried a few variations to make sure we were using it line with the documentation, but orderby="title+workers-name+asc" whereas workers-name was the custom field

Thanks in advance.

Code Sample:

{exp:super_search:search channel="workplace" orderby="title+workers_lname+asc"}
<form action="{path='workplace/search-results'}" method="post" id="search_form">
<input type="hidden" name="csrf_token" value="{csrf_token}" />


texts: Is there a plugin like Zenbu for the CP members admin section?

texts:
We have a client that wants to see member custom fields when looking at the control panel member list (including the "activate pending members" screen).

Is there a plugin similar to Zenbu except for the members section? Are there any other ways to display custom member fields on the member list page?

Note we are not using Zoo Visitor or Profile:Edit on this site and would prefer not to add these to an already complicated site unless we really need to.


texts: Something has gone wrong and this URL cannot be processed at this time + Zoo Visitor

texts:
I upgraded ExpressionEngine version to 2.9.0. and also Zoo Visitor to latest version. After upgrade, I am seeing a very strange error message after submitting Zoo Registration form exp:zoo_visitor:registration_form

  Error

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

Before, upgrade everything was working fine. Could anyone please help me.


texts:
I am new to EE.WE are using cartThrob .Now we have set up 13% sales tax globally. The twist comes now.When a person buys 6 or more items , there should be no tax charged for One region(Eg Ontario) . Is there any way to set this rule in EE backend? Does cartThrob provide this kind of functionality.

Thank you


texts: Solspace Freeform: redirect to URI other than template_group/template

texts:
I have a form at the URL https://domain.tld/segment_1/segment_2/form, and would like to redirect (on success) to https://domain.tld/segment_1/segment_2/form/thank-you.

When I do: return="segment_1/segment_2/form/thank-you" it doesn't work.
Is this possible?


texts: Wygwam 2.7: How Can I Customize the Image Properties Modal?

texts:
I would like to customize Wygwam's Image Properties modal to display the following options only:

Upload image files from local HD
Add Alt text
Add a caption

I don't want site members to be able to:

See existing images
Resize images
Style images
Use other advanced options

Many thanks!


texts: Is there an add-on that can provide a hook to change the forget password email?


texts:
I want to implement Authorize.net (AIM) to take credit cards on site and PayPal Express to give a customer the option to pay off site.

Preferably there would be a column to pay by credit card and column that asks if the user would like to Use PayPal Express.

Would I need 2 forms to do so? Can I have two Checkout forms on one page?

What would the basic code setup look like for this?


texts:
I'm using Datagrab to import a feed from Blogger.
However it seems to be getting stuck at Running - 24 out of 25 records (96%).

This is locally - any ideas on how best to debug why this is not completing?

Cole


texts: Bypass shipping options for downloadable products

texts:
I am building a store that sells books, but also offers subscriptions and downloads.

Currently I have the shipping calculated after the user enters their address.  Once the address is entered, the user advanced to the next page with shipping options.

I would like for people who purchase non-shippable items to bypass that page.

Any Idea on how I can achieve this?


texts:
( v2.7.3 )

Hi, I'm using the Simple Registration addon and allowing the form to use the email address as user and screen name. However, if an email address is not valid it triggers an error for both user and screen name as well as email, which is confusing for the user.

  ·        The username you chose is not available
  ·        The screen name you chose is not available
  ·        The email you chose is not available

Is there a way to change this?


texts: Is there a way to have pagination show up at the bottom of a table?

texts:
Entry pagination is a pretty simple thing except with tables. Whenever I do pagination on table data it only displays at the top. Is there a way to get it to show up at the bottom?

Here is the code I am using.

State
CC
Name
Posiition
Address
Phone
email

{exp:user:users orderby="stake" sort="asc" group_id="9|12" limit="50" paginate="top"}

{state}
{council}
{screen_name}
{occupation}
{location}
{phone}
{email}

{paginate}

Page {current_page} of {total_pages} page(s)  {pagination_links}

{/paginate}
{/exp:user:users}

If I do paginate="both", I get two pagination links at the top. Any ideas?

Thanks.


texts: Shopping cart with diff. product pricing & renewal?

texts:
What EE shopping cart/e-commerce plugin that can do the following:

sell digital product, using PayPal or Skrill processors
different pricing schemes for a single product
one-time payment; purchase expiration; and an optional renewal

Example:
I have a digital item to sell, named XYZ.

I want to sell ZYC for different pricing schemes & expiration:

XYC Lite for $50 & will expire in 6 months; $10 for renewal (not recurring but only an option)
XYC Pro for $100 & will expire in 1 year; $20 for renewal (not recurring but only an option)
other pricing schemes....

I must be able to set whether purchases of XYC is auto-approve or manually approve.

Auto-approve - after a user made the payment, it's already considered a "successful purchase" (see #3 below) and can immediately access the download.
Manually approve - after a user made the payment, it will be considered as "pending" and not yet successful. An admin must manually approve for it to become a "successful purchase" (see #3 below).

Successful purchase of the item will move the user to a certain Member Group:

XYC Lite purchasers will be moved to Lite Group member group.
XYC Pro purchasers will be moved to Pro Group member group.

In the "Purchase Area" (displays purchases) of the user, they have an option to renew even if it's not yet expired. Renewing will extend the timeframe of the expiration.
When an item purchased is nearly expiring, it must send an email reminding about it, i.e. "you need to renew".
Upon expiration of purchase, the user will be move back to a specified member group and can no longer access the download. He must have an option to renew as the price indicated in #1 but take note that the renewal is not a recurring payment, it's just an option.
Renewals (for example XYC Lite; $10) should be auto-approve (regardless if I set the item purchase to manual approve) and will again move the user to the specified member group and give him another 6 months access to download.


texts:
I'm using Store 2.4 and EE 2.9. I've got a simple product with dynamic pricing to allow the user to set the price of this particular item.

{exp:store:product_form return="vanpool/store/checkout"}
  {exp:store:product entry_id="19339" disable_form="yes"}
  <input type="hidden" name="item_qty" value="1" />

      Amount to Pay *
      <input id="price" class="large" name="price" type="text" value="" />

      Notes
      <textarea name="order_custom1"></textarea>

    <input type="submit" name="submit" value="Pay Now" />

    {/exp:store:product}
{/exp:store:product_form}

I've tried everything I could find here with regards to htaccess, trying different servers, etc. The form posts but the cart is never updated with the item. I've tried being logged in and logged out. I do see the orders being generated for the cart in the control panel but they're missing info: http://cl.ly/image/1g1E0R0y2T2L

I'm completely stuck on this. Any ideas?


texts: List of highest rated entries in Solspace Rating

texts:
I got this problem: My entries are rated (star-rating, just submits a value between 1 and 5). Now I want to show on a single-entry-pages the top-rated entries of the category the actual entry is in.
Example:
We are on entry-page "Snoopy" which is filed in the category "dogs". I want a list like
"Best rated entries in dogs:
- Snoopy xxxxx
- Other dogs xxx
- My dog xx
- My mother's dog xx

I tried for hours and hours, but with no success. Perhaps anybody could give me a hint what I am doing wrong?

I got a lot of code snippets that all don't work, here is one:

{exp:rating:rank channel="{my_channel}" limit="3" category = "2" dynamic="no"}
 {exp:rating:stats}

   {title} - {overall_avg}

 {/exp:rating:stats}
{/exp:rating:rank}

This one just shows me nothing. If I remove the exp-rating-stats-loop it only shows me 3 times the actual entry.
I would appreciate any help very much - thanks!

EDIT: FURTHER EXAMPLES

Here are some examples: In an empty template this generates the correct output, 5 entries with their titles:

{exp:rating:rank category="24" limit="5"}
{title}
{/exp:rating:rank}

while in my standard-template there is no output. When I add the parameter dynamic="no" I get the entry of the page I am.

EDIT 2: EXP:CHANNEL:ENTRIES-LOOP

When I put it OUTSIDE the exp:channel:entries-loop, it works. My loop is

{exp:channel:entries channel="{snp_my_channel}" limit="1"
disable="member_data|trackbacks|pagination" track_views="two"
status="open" cache="no" refresh="2500"
require_entry="yes"}

But I need it inside the loop. Is there perhaps any parameter missing?


texts: Store: Specific channel for exp:store_search doesn't work?

texts:
I'm banging my head on this and new to EE as a cms - perhaps there's an obvious answer

I have the latest Store and EE2.10.x and I have several channels dedicated to Store items. I want to show all contents from just one channel:

{exp:store:search orderby="title" sort="asc" limit="10"}
  {exp:store:product entry_id="{entry_id}"}
    {title}
  {/exp:store:product}
{/exp:store:search}

This looks at all channels for content produces a title, as I understand it should from the docs as it's a wrapper for {exp:channel:entries}.

But I get no results if I try to get Store to show only 1 channel:

{exp:store:search orderby="title" sort="asc" limit="10" channel="channel3"}
  {exp:store:product entry_id="{entry_id}"}
    {title}
  {/exp:store:product}
{/exp:store:search}

Since I only need a item listing, I thought I'd try a standard {exp:channel:entries} but I get no listings at all either? Event the titles aren't being show, which is really confusing.

Am I missing something? Shouldn't Store or EE be able to list items in a specific channel?


texts: Default recipient.email when no checkboxes are selected

texts:
I am selecting recipients based on checkbox selections.  This works great except when no checkboxes are selected at all.  How can I check if no selection has been made, and give recipient.email[] a default value if nothing is selected?
Thanks.


texts: Import Channel Entries into New Channel?

texts:
We are in the process of architecting an upgrade for a site, and in the process are considering consolidating multiple channels into a single channel. (in the process utilizing new templates designed around the single channel)  BUT, we have a significant amount of entries in the original channels.

Assuming we set the new channel's fields to the correct configuration, can we use one of the import tools to migrate entries from one channel to another instead of manually needing to recreate entries?  Or would we need to export first then reimport?

Any suggestions or guidance to ensure minimal repetition of work would be GREATLY appreciated!


texts: Page doesn't scroll to form if validation errors are shown

texts: I have a FreeForm form at the bottom of a page. When the form is submitted and returns with a validation message, the user is bounced back up to the top of the page. Is there a way to make sure the page is scrolled down at the same place in the document so the user isn't disoriented?


texts:
I am trying to redirect a template to an outside website in EE2, I have tried this:

    {redirect='http://other_website.com/whatever/12/'}

It puts the url of the host before the url I put there because it's expecting a template.

    http://myhost.com/http://other_website.com/whatever/12/

Is there any way to redirect it properly?

Thanks!

PS: In EE1, I have used:

    {exp:redirect_to location="http://www.yahoo.com"}

but it's not working now.


texts:
I'm having trouble with a stash list that should be filtered.

My list itself looks like this:

{exp:stash:get_list name="stores_list" parse_tags="yes" parse_depth="3" parse="inward" match="{exp:stash:get name='applicable_countries_list'}" against="country"}

       {store_name}
       {address_1}, {postal_code} {city}
       {country}
       {phone}
       {fax}

{/exp:stash:get_list}

The value in match against returns exactly this: #(FRANCE|REUNION)#

When I just use this exact variable in the match parameter, it works perfectly, and only stores in France and Reunion are shown. When using the stash variable though, nothing show up.

I've tried wrapping the list with a stash:parse tag, and also tried {stash:applicable_countries} as a variable. No luck yet though.


texts:
Not sure i am doing something silly.

I want to list all events from a specific day using low events.
So i have this:

{exp:low_events:entries channel="events" date="2014-06-26"}

I would expect this to return all events for that day.

I have one event with low events fields set to:
2014-06-26 - 2014-06-28 (all day ticked)

Should i see the one event?


texts: Use channel search parameter with grid fields

texts:
I need to filter entries basing on grid field.
If grid field is filled the entries will be shown. But I can't do that because seems that is not supported by search parameter. This doesn't works:

{exp:channel:entries channel="notizie" limit="10" search:immagine_principale:immagine="not IS_EMPTY"}

where immagine_pricipale is a grid field.

How can I solve it?!


texts:
Here is my code

{exp:stash:set_list name="xxxxx" parse_tags="yes"}
    {exp:channel:entries
        category="{embed:category_id}"
        channel="xxxxx"
        disable="categories|category_fields|custom_fields|member_data|pagination"
        dynamic="no"
    }
            {if '{exp:plugin:that_returns_some_boolean}' == 'true'}
                {stash:item}
                    {exp:plugin:that_returns_some_value}
                {/stash:item}
            {/if}
    {/exp:channel:entries}
{/exp:stash:set_list}

{exp:stash:get_list name="xxxxx"}
    {if count == 1}
        <li>
        {exp:plugin:that_returns_some_string}:&nbsp;
    {/if}

    {if item}
        {item}
        {if count != total_results}
            ,
        {/if}
    {/if}

    {if count == total_results}
        </li>
    {/if}
{/exp:stash:get_list}

The basic gist of this code block is to simply put some values in the Stash list based on some conditional.

My problem is that the conditional that wraps {stash:item} doesn't seem to be respected. {stash:item} is always appended to the list. Because of that, I see all the items outputted by {exp:stash:get_list} as if the conditional doesn't exist.

Am I doing something wrong?


texts: Member Group Tabs throws blank screen after EE upgrade to 2.10

texts:
After an update to EE 2.10.1 the module Member Group Tabs throws the following error:

Call to undefined method Cp::set_variable() in /path/sh_member_group_tabs/ext.sh_member_group_tabs.php on line 277.

Does anyone have an idea how to resolve this?

Thanks in advance,
Tom


texts: Templates syncing between two different environments

texts:
We have an EE site that uses one database. That database is used for both production and for development. If we push a new template to our dev environment will we ever run into an issue where the template syncs to the database and makes it available in production, too?

What about if we have save_tmpl_files enabled? Will that prevent any syncing?


texts: 0 displayed after saving entry on View Entry Page

texts:
I have a channel with about 12 custom fields. Nothing complicated, mostly text input, a few text areas, two files and one relationship field.

I noticed after I create an entry and click save, the next screen which is called 'View Entry' displays all the data I entered BUT also shows a zero.

I thought it odd, so re-installed EE Core. Remade my channel and its custom fields but once again, I keep getting shown a 0. It seems that one of the fields is defaulting to the 0. I recheck all of them 100s of time, they all look fine.

I seem to recall that back in the 1.4 EE days, I encountered this problem as well.

Anyone have a reason as to why?

Thanks


texts: Conditional disables needed class on  tag

texts:
When I use this conditional it works great, it activates the active state when I am in segment 1, however, at the same time it disables the other class on the li 'dropdown'.

The 'dropdown' class is  positioning relative, when its disabled  the dropdown menu moves all the way to the right of the parent container.

Is their a different conditional which will allow me to NOT DISABLE the 2nd class (dropdown)  on the il tag.

{if segment_1 == "donate"} class="active"{/if} class="dropdown">Donate


texts: Ecommerce system for EE and requesting a quote

texts:
I need customers to submit a quote rather than an order, which as i understand is easy to do just use a manual payment gateway, but the bit I'm not sure on is the admin needs to login in & update product prices and delivery cost for the order then sends this out in an email?

Is this do-able? and which extension would you recommend?


texts: Playa - Live filter is not visible in control panel

texts: How to make the live filters visible on control panel when we publish a channel? I've added channel field and set playa as field type. But when i try to publish an entry, i cannot see the live filters near to the field. I'm using Playa 4.3.3 and EE 2.


texts: Add custom validation to Content_publish form

texts:
In our system, entries are created from the Control Panel, and one of our custom entries needs more complicated validation rules.

Basically, depending on the status of the submitted entry, we need to determine whether other fields are required, validate the submission based on that and then show errors as per normal validation rules.

I've looked into getting access to the data from the entry_submission_ready hook and setting the errors via ee()->form_validation->_error_array['foo'] = 'bar', but this hook is called after validation has already completed and passed.

Ideally I would prefer not having to rewrite any core code, though I am willing to override Content_publish if this can be done cleanly from a module/extension.


texts: Are custom member fields not functional in the registration form if the setting for "field visible in registration page" is set to "No"

texts:
I have a number of custom member fields setup to store "yes" or "no" settings. They are used for form inputs for checkbox fields. I don't want them visible on the standard Exp Eng profile pages or on the standard Exp Eng Registration page because that would be confusing to the user and they might enter incorrect values in the fields.
In the Exp Eng documentation there is this...

Is this field visible in registration page?
When set to “yes”, the field will be available in the public member registration form.

For these fields in question I have them set to "no" for the above setting. My question is, will the above setting also "deactivate" that custom field on a Registration page, even if I make the field available in the code of the form?
I have a custom registration page that I setup in a member profile template group that uses these input fields but after someone has submitted the form and completed the member signup none of the selections that use those fields come through.
From the point of view of the person signing up they are making selections to signup for email newsletters but after they are registered none of those subscriptions choices were saved.
There may be another issue with a javascript routine but that works fine on other pages.


texts: Expression Engine file manager - Error on browsing uploaded images

texts:
I'm running EE v2.10.1

After a migration the File Manager, while selecting a file in an entry, stopped functioning. The File Manager opened via Content -> Files -> File manager gives no issues.

When I use the file manager via Content -> Publish -> Page(= channel name) -> link 'Add File'. This opens the file manger popup.
The first thing that I notice is that the wrong channel image are being displayed. Secondly I'm not able to search. And at last the pagination does not work and refreshes the whole page and shows the error "The page you requested was not found." The URL is changed to http://sitename.dev/C=content_publish&M=filemanager_actions&action=directory_contents&tbl_offset=15

The console doesn't show any javascript errors.

I search for a solution and tried a couple of solutions, like:

Clear all chache
Deleted the themes folder and get a fresh version
Run Module Updates
Updated all extensions and modules
Checked the configuration

The following third party modules are installed (latest version):

cp_css_js
ending
entry_type
forms
forms_linked
loopee
low_seg2cat
publisher
publisher_drivers
publisher_language_control
stash
streeng

I'm a bit lost on how to solve this since it appeared after a migration.


texts: Use {exp:pages:load_site_pages} to share Pages URIs across MSM sites?

texts:
The {exp:pages:load_site_pages} tag is not very well documented in how you use it. Gleaning from system/expressionengine/modules/pages/mod.pages.php, what it does is merges the specified site's pages URIs with the current site's. It does this in runtime - not saving to config in the DB.

The fact that it is a template tag makes it less useful because the first segment of the URL has to be specified, directing EE to the template with this tag and then possibly the second segment could be used in conjunction with Pages URIs. (Haven't quite figured that out).

The problem I'm facing is our landing pages use the first segment for Pages URIs. So for example we have /about-us that hits a page with the designated template. I tried putting this tag on our site/index and on our designated 404 to no avail. How can you alter Pages URI functionality with a template tag when Pages URI functionality is triggered pre-template?

My question is, how in the world can I make Pages URI's from one site available on another site?


texts:
I've NEVER seen this before! I'm migrating an EE site from one server to another and am getting this error:

error

Unable to load the following extension file:

ext.tag.php

I'm running EE version 2.4 and am planning on upgrading, but need to get everything working like it was on the previous server first.

When I set $config['allow_extensions'] = "n"; everything works fine, but when I re-enable my Extensions I get that error.

I've updated the config file from an Envee config to my stock config.php file and still getting that error.

I've downloaded all of the third_party folders and did a search for "ext.tag.php" (along with tag.php, etc...) but for the life of me I cannot figure out where that file is being called from.

Has anyone seen this? A Google, Devot-ee and EESE search comes up with nothing really helpful. Hopefully someone else has ran into this before! I have verified that the DB settings are correct and just strange that I can't figure out where this is being called from.


texts: shipping switzerland, europe - international regions - how to?

texts:
so this is my second store site I am developing.
and I never did a store v2.x site - so my question might be obvious...

so my customer has defined 3 shipping options:
1. switzerland 10.-
2. europe 15.-
3. international 18.-

so I've thought I make 3 shipping methods with the "default shipping plugin":
1 switzerland (with country = switzerland)
2 europe
3 international

I think that could work rather well. Would you do that the same way?

Or would you rather create only one shipping option and then first put switzerland, then all the countries of europe, and leave the rest for international orders. I know that this method would involve more work at the beginning, but customers woudn't have to choose the shipping options themselfs and they coudn't cheat that way - am I right?

Do you have any tipps on what's the best way?
If the first option is best, maybe a word on how to preselect the shipping method automatically?

any help appreciated!
stephan


texts: EE 2.5.5 not searching in custom wygwam field

texts: I have a site that's using a custom wygwam field for the body of an article page. I've set the field up to be searchable, however, EE is only showing results that have the keyword(s) in the title. Is it not possible to search a wygwam field or is this a known bug?


texts: Fatal Error cannot use 'Bool' in Lexer.php

texts:
We recently migrated one of our websites using EE to a new server running php7. We're getting the following error:

Fatal error: Cannot use EllisLab\ExpressionEngine\Library\Parser\Conditional\Token\Bool as Bool because 'Bool' is a special class name in /home/.../public_html/system/EllisLab/ExpressionEngine/Library/Parser/Conditional/Lexer.php on line 9

Here is line 9 from Lexer.php :

use EllisLab\ExpressionEngine\Library\Parser\Conditional\Token\Bool;

I tried setting 'allow_extensions' to 'n' and nothing changed. Also, I am able to log into the back-end.

Running EE version 2.10.2

It seems that using 'Bool' is no longer supported in php7. Does anyone know of a solution? Is there a fix for this in EE3?

Thanks.


texts: Is Matrix EE1 still available somewhere?

texts: I would like to use the fieldframe FF Matrix Bulk/Multiple Upload. Is there any way I can acquire Matrix version 1.3.5 or newer so I can use the Bulk add on?


texts: DB error after upgrading to Playa 444: Duplicate column name 'parent_var_id'

texts:
After updating an EE 2.5.5 site to the latest playa 4.4.4., an error showed up when trying to access the FieldType settings screen.

  A Database Error Occurred

  Error Number: 1060

  Duplicate column name 'parent_var_id'

  ALTER TABLE exp_playa_relationships ADD parent_var_id INT(6) UNSIGNED
  AFTER parent_row_id, ADD INDEX (parent_var_id)

  Filename:
  [redacted]/playa/ft.playa.php

  Line Number: 423

I was in the process of upgrading the site to EE 2.6.1. so I carried on and the error still shows after performing the upgrade. It seems that the site is still functional, I see no error when accessing pages making use of playa or when using the fieldtype in the CP.

Anyone experienced this? P&T guys?


texts: Using Mo' Variables in Module Tag Parameters

texts:
I'm using Mo' Variables for the early-parsed request variables. Here is the best-case scenario:

{exp:calendar:cal
    date_range_start="{if get:start}{get:start}{if:else}today{/if}"
    date_range_end="{if get:end}{get:end}{if:else}6 months{/if}"
}

This obviously doesn't work do to advanced conditionals being parsed late (sigh). So here is the workaround I thought might work:

{exp:calendar:cal
   date_range_start="{if get:start != ''}{get:start}{/if}{if get:start == ''}today{/if}"
   date_range_end="{if get:end != ''}{get:end}{/if}{if get:end == ''}6 months{/if}"
}

This doesn't work either. After doing a bit of debugging, it appears that the conditionals are not being parsed. My guess is that this is because there is no query string variable called "start" when the user first visits the page so the template parser doesn't find the conditional until later in the parse order.

I can make this work with PHP, but I'd love to have a pure EE solution:

{exp:calendar:cal
   date_range_start="<?= !empty($_GET['start']) ? $_GET['start'] : 'today' ?>"
   date_range_end="<?= !empty($_GET['end']) ? $_GET['end'] : '6 months' ?>"
}

So my question is this: is there an elegant solution to---without using PHP in my template---get the value of a request variable and if it doesn't exist use some default value? There must be some trick I'm not seeing to make this work. I don't think using Switchee or IfElse will be elegant here. It will work, but it would look really janky and make the calendar module tag hard to read. I'll concede defeat and drop down to PHP before doing that.


texts:
I can't work this out and probably just need another set of eyes.

I have a Low Variable name lv_book_slider_en which is a Playa field looking up a channel with specific category.

There are channel entries assigned to the LV, and the status is open.

When I call the variable as {lv_book_slider_en} within my template it spits out:

[285] [a-southern-girl-a-small-town-and-the-secret-of-a-good-life] A Southern Girl, a Small Town, and the Secret of a Good Life
[448] [blue-like-jazz-the-movie] Blue Like Jazz: The Movie
[4925] [a_call_to_action] A Call to Action
[5068] [antinomianism] Antinomianism

When I try to do:

{exp:low_variables:parse var="lv_book_slider_en"}

{title}
                                              {/exp:low_variables:parse}

I get nothing.

I've just found as I typed this that Transcribe seems to be the problem. If I disable that, I get output as expected. I know Transcribe builds relationships between language entries.

Unfortunately, right now, Transcribe is a core part of the build so can't really look to move.

Does anyone have insight here?

Thanks,
Steven


texts: Trying to upgrade PT Fieldpack in EE 2.7.2

texts:
I upgraded from EE2.5.2 to EE2.7.2. I had the old individual P&T Dive Bar fields installed. I'm trying to upgrade to the new Field pack as per the instructions, but I can't access the Add-ons > Fieldtypes screen due to the following error:

  Fatal error: Class PT_Fieldtype contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (EE_Fieldtype::display_field) in /var/www/vhosts/snip/subdomains/stage/system/expressionengine/third_party/pt_field_pack/pt_fieldtype.php on line 148

How can I bypass / fix this error so I can install the new fields?

Thanks in advance.


texts:
I installed vwm_secure_files and now when I try and edit ANY channel field I am getting this error and cannot do anything

  An Error Was Encountered
  Unable to locate the model you have specified: vwm_secure_files_m

EE. 2.5.3
VWM Secure Files .3


texts: Stash is rewriting my variables when outputting multiple entries - how to make them distinct?

texts:
I'm using Stash for image replacement in my main column. {images} is a Matrix field.

In my body field, {image-1}, {image-2}, etc. are the image placeholders. My code looks like this ({images} is a Matrix field).

{images}
    {exp:stash:set name="image-{row_count}" type="snippet"}
        {exp:ce_img:single src="{image:url}"
     alt="{image:title}"}
    {/exp:stash:set}
{/images}
{exp:stash:set name="content"}{body}{/exp:stash:set}
{exp:stash:get name="content" parse_vars="yes"}

This works fine, but then I need to run it again for the side column. I also run in to problems with my RSS feed - multiple entries on the page cause Stash to run over and over, but I'm not getting fresh results for each entry.

How do I make Stash run freshly each time?


texts:
I turned off the site in the config panel, General Configuration , Is system on? = no. Inside the config file, it’s set to no too. But even if it’s set to no, the site still online. I can still view the site when logged out.

On a fresh EE install System Offline not working works, so i guess it would be caused by a Plugin conflict.

Does someone had already had this issue ??

i’m using EE 2.7.2

Thanks,

Stéphane


texts: What is the best way to handle a matrix field in Stash

texts:
I have the following code in a template that I use to prepare the data for an embedded template using the Stash partials approach. It is for a single entry page that draws data from an entry that can have one or more images stored in a Matrix field.

{exp:stash:set_list name="business_listing" parse_tags="yes"}
  {stash:title}{title}{/stash:title}
  {stash:address_1}{b_address_1},{/stash:address_1}
  {stash:address_2}{b_address_2},{/stash:address_2}
  {stash:city}{b_city},{/stash:city}
  {b_images}
    {exp:stash:append_list:nested name="business_images" parse_tags="yes"}
    {stash:image}{b_img}{/stash:image}
    {/exp:stash:append_list:nested}
  {/b_images}
{/exp:stash:set_list}

Note that I am using the set_list on the outside and the append_list:nested inside.

I fetch these in the embedded template like so,

{exp:stash:get_list name="business_listing" orderby="title"}

    {exp:stash:get_list:nested name="business_images" orderby=""}

    {exp:ce_img:pair src="{image}" width="277" height="175" crop="yes"}

    {/exp:ce_img:pair}

    {/exp:stash:get_list:nested}

{title}

  {address_1}
  {address_2}
  {city}
{/exp:stash:get_list}

Now whilst this code works, I am not sure that it is the best way to do this. The {stash:image_{count}}{b_img}{/stash:image_{count}} feels decidedly dodgy, and as you can see I have left the orderby blank as I am not 100% sure what to put in there for a matrix field (that has only one column 'b_img').

So, if anyone would like to chime in and give me some wisdom on this I would love to hear it.


texts: Methods of including other EE fields in a custom field type

texts:
I am developing a custom field type which needs to display fields from two different channels in the CP Edit and Publish pages. Users of this field type will need to edit the data from those different channels.

When the data is from a text field it is relatively easy to display it and allow users to edit. However this gets more difficult if I need to display data from a relationship field.

I have read through the developer add-on docs but can't figure out a method of displaying data using another field type within my own. Is there a way of displaying another field type within my custom one?


texts: CSRF bug on IE, unable to login to to CP EE 2.9.2

texts:
Got a weird one, on this site http://www.limbsandthings.com, Internet Explorer customers (all versions, even 10&11) are unable to search, add to their cart, and login to the control panel. Basically perform any form action without hitting the "This form has expired" CSRF error.

Chrome, Firefox, & Safari users aren't experiencing any issues.

I've tried setting the 'disable_csrf_protection' config setting (not ideal)

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

However when that setting is enabled IE users aren't able to login at all (no error message occurs). They are able to perform other form actions.

I've even set a P3P cookie policy in .htaccess, thinking that maybe IE was somehow thinking our session cookie was third party. Setting IE's permission levels to Low doesn't seem to help either.

Another 2.9.2 site I manage for a client, http://www.jerseywatch.com is not experiencing any issues with IE.

Update: Viewing the cookies in Chrome vs. IE showed something interesting. The "exp_csrf_token" cookie is showing up when I inspect it in Chrome, however IE is reporting that the "exp_csrf_token" cookie doesn't exist.

Any ideas?


texts: Exp-resso store, iDeal payments: AP1200: IssuerID unknown

texts:
First things first:
I'm running on EE 2.5.3, Expresso Store 1.6.1. All certificates are in place.

On the final step of the checkout process, after choosing "iDeal" and an issuer, i get an  error:

  IssuerID unknown (AP1200: Field generating error: IssuerID unknown)

I think this means the issuerID is incorrect.

The code i'm using:

<select name="payment[issuer]">
<option selected value="">Selecteer uw bank...</option>
<option value="0031">ABN AMRO</option>
<option value="0091">Friesland Bank</option>
<option value="0721">ING</option>
<option value="0021">Rabobank</option>
<option value="0751">SNS Bank</option>
<option value="0761">ASN Bank</option>
<option value="0771">SNS Regio Bank</option>
<option value="0511">Triodos Bank</option>
<option value="0161">Van Lanschot</option>
</select>

How can i make sure Expresso Store supplies my bank with the correct issuerID?


texts:
I'm trying to display one entry with the search:field_name parameter of ExpressionEngine. This works fine, but I can't get the no results tag to work. I have tried a lot of things, including the use of other things then exp:channel:entries. This is my current code:

        {exp:channel:entries
            channel="projecten"
            dynamic="no"
            search:project_trackcode="={freebie_2}"
            limit="1"
            require_entry="yes"
        }
            test
            {if no_results}
               Geen resultaten
            {/if}
        {/exp:channel:entries}

It doesn't matter if I set require entry to yes or no. The code does return entries if available, but when it doesn't find an entry, it doesn't even seem to enter the {exp:channel:entries}.


texts: Inserting entries from remote posted XML

texts:
I'm trying to post/update/delete entries in a channel by posting XML to a URL.

I've created a module with an action URL that does the processing and uses the Channel Entries API to manage the entries but this requires that I am logged in while I post the data.

My question is how can I post the data from a remote server without needing to be logged in?

Is it possible to authenticate a user by IP rather than logging in or emulate a users credentials from within the module?

Thanks


texts: Processing a specific section of a template, after it's loaded

texts:
I have a template containing sections and I'd like to process just the tagdata that is contained between the tags related to the button, and only when the button is selected (not when the page renders):

{exp:plugin:foo}
 <button>process</button>
    some content….
{/exp:plugin:foo}

some other content
{exp:plugin:foo}
 <button>process</button>
    some more content….
{/exp:plugin:foo}

I need to pass the relevant content (the tagdata from between the same tags as the button that has been pressed) to a custom function where I process it (to create a file), but I need to be able to pick out the data from within the selected tags, not the whole page, and I need to trigger this event after the page has fully loaded.

How do I deal with the button action, calling 'ACT=' doesn't let me use '$this->EE->TMPL->tagdata'?

Is there an easy way to parse and pick out the tagdata I need once the template data is available?


texts:
Hi think this is a long shot! but just incase…
would it be possible to calculate a total with Freeform pro, eg for an order form featuring:

Number of items?

if there were 10 selected (drop down) at £20 each the result then calculated and entered as a field (automatically) would thus be £200?

Thanks


texts: How do you modify the basic CSS of the member registration page?

texts:
Expressionengine 2 makes it extremely easy to bring a potential new member to a site via the registration form with one simple line of code:

sign-up

It works, signs up people, etc.  The problem is that there seems to be no template anywhere that populates this page.  Also it generates a ton of CSS.  how can you modify the HTML and or CSS for this page?

Thanks in advance.


texts: My client wants a blog set up in EE. However, from an SEO standpoint he heard that having your blog on a subdomain is better. A) What is the validity to this request and B) Would I have to use MSM in order for this to be managed all from the same admin? Thanks for any recommendations!


texts:
I'm running into an issue trying to use SSL for a registration form on an MSM set-up.

When viewing pages via https on SITE A, the EE globals/paths are getting set incorrectly to SITE B instead of SITE A. For example:

{stylesheet='_css/styles.css'}

when viewed securely on SITE A, shows

https://SITEB.com/eeindex.php?css=_css/styles.css.v.1354718804

and

Log Out

viewed securely on a page on SITE B shows up as

https://SITEB.com/eeindex.php?ACT=10

When the page is viewed with just http://, it works fine.

Any ideas on how to fix this?

Thank you,

Paula


texts: Messages sent via the communicate panel error and are undelivered if a cc or bcc is included

texts:
EE v2.5.2

Messages sent via the communicate panel work OK and messages are delivered successfully.

But if an address is entered in the cc or bcc field then we get PHP error messages and the mail isn't delivered.

"For security reasons, extra headers for the mail() functionhave been disabled, please contact support for more information.
Filename: libraries/Email.php
Line Number: 1537"

"Cannot modify header information - headers already sent by (output started at /path/etc/etc/system/codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 412"

Anyone got any ideas what to try?


texts: File Field Class in a custom Add-on - Javascript click event not attaching

texts:
I'm using the Entry Widgets Add-on and as part of that I'm trying to create a new widget for it which contains a File FieldType. So I'm using the File Field Class which comes with EE to accomplish that, and it's outputting all the right html markup, but what it's not doing is adding the Javascript click event to the Add File link.

As I understand it so far, this is not happening because each widget is loaded into the page using AJAX and so is loaded after all of the File Browser javascript is executed on DOM Ready.

I guess what I'm after is a straightforward way to either rerun the javascript so the events get added to my newly injected fields, or just recreate the click event itself. Or alternatively, if anyone know of a standalone way of getting the standard CP File browser working in my widget.


texts:
I am trying to wrap my brain around fluid fields, and the documentation isn't helping me AT ALL.  How do I get these to display on my site?

The channel is: Portfolio

The fluid field is: portfolio_popup_image

The sub-fields within the fluid field are: portfolio_caption, portfolio_image, and portfolio_image_alt_text.

Here's my template sample:

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

    {portfolio_popup_image}

{title}

{portfolio_popup_image:portfolio_caption}

    {/portfolio_popup_image}
{/exp:channel:entries}

I have been looking at the instructions and my template for over an hour and can't get anything to work.  Any help would be greatly appreciated.


texts: Channel form file upload field displays oddly

texts:
I am using channel:form to allow users to upload an event listing. One of the fields is for an event poster which is a file field. It all works fine except the way it displays on the front end is not at all as expected and very confusing for the end user I would think. This is how it looks when it first loads up.

Seems strange that it starts with the file icon when none has been selected yet and it has the undo remove link when a file hasn't been removed.

Clicking the X on the image icon works as expected as does undo remove. If you actually use the browse button and select an image though there does not seem to be a way to remove it.

I read through whatever questions I could find on file fields on here and can confirm I am loading jquery 1.7.2 and there are no errors displayed on console.

Only other fields on the form are a wygwam field and a low events field.

Here is the template code for reference. Stash is being used to output the javascript at the end of the body after the jquery call.

        {if logged_in}
          {exp:channel:form channel="events-board" return="" include_jquery="no" include_assets="no"}
            Event Name
            <input type="text" name="title" id="title" value="{title}" size="50" maxlength="100" onkeyup="liveUrlTitle();">

            Event Date
            {field:cf_eventsEventField}

            Event Location
            <input type="text" name="cf_eventsLocation" id="cf_eventsLocation" value="{cf_eventsLocation}">

              Event Poster File

A high quality pdf or jpg is preferred. Our board is 1024 X 1280px at 72dpi any other poster size may be modified to fit. This field is optional but your event is more likely to be included on the events board if it has a quality poster attached to it.

              {field:cf_eventsPosterDownload}

            Event Description
            {field:cf_eventsWebDescription}

            <input type="submit" name="submit" value="Submit">
            {exp:stash:set name="saef_assets"}{channel_form_assets}{/exp:stash:set}
          {/exp:channel:form}
        {/if}


texts: Correct way to share functions/methods between Module and Extension

texts:
I'm just getting acquainted with Add-on development beyond basic plugins and I'm not exactly sure the proper way to organize my files.

I have a base Module file, mod.xxxx.php that has a handful of methods within. I am now realizing I need an extension as well to hook into a few base EE hooks. Within the extension, I want to use a few helper methods from my module but I'm not sure the proper way to share them between the Module and Extension.

I tried

if (class_exists('Modulename') === false)
{
    require_once PATH_THIRD.'modulename/mod.modulename.php';
}
$modulename = new Modulename();

And then called

$modulename->modulemethod($variable);

In the extension, but it's not returning the right type, rather an empty array.

Should these "helper" functions really be moved into a helper file and then loaded into both the extension and the module using the load->helper function of CI?


texts: Content on a page defined by text in a field, publications by year

texts:
I know someone out there has done this before.
I need to build a publications page that will show it's list of publications by a given year which has been filled in a channel field. I've googled I looked at the EE docs and I am not quite sure how to build this.

I have a channel field that will be filled with a 4 number year my content managers.
Here is my basics. It of course lists all years in descending order but i need to make a separate page for "2015, 2014, 2013, etc."

Thanks for looking.

{exp:channel:entries
   channel="publications"
   orderby="pub_year"
   sort="desc"
   paginate="both"
   limit="8"
   }

{pub_year}

{title}.

{/exp:channel:entries}


texts: How is the ExpressionEngine user guide documentation managed? By categories or channels with relationship fields to the child pages?

texts:
I would like to create a user guide for my website which functions the same way as the ExpressionEngine user guide / docs. Seen here.

I would like to know how they structure their pages. Do they use categories, if so how? Or do they use 1 channel for the parent articles with a relationship field pointing at another channel for the child articles?

Do they use an add-on ? I was also thinking that they may have used a customised version of the ExpressionEngine Wiki to achieve the user guides?

I tried Googling it but came across nothing. What do you think the best approach would be in creating such a thing?

Thanks,

Sam


texts:
I have a safecracker form that allows users to post location details. At the moment, I use a combination of a standard  for them to choose the country, and the reegion select fieldtype to select the UK county. Based on there selections, I manually add the category based on these selections.

I am looking for an easier way for the user to add the details in teh safecracker form, and what I would ideally like, is a way for them to choose just the county, from a grouped select.

Something like:

Which would be,

England

County
County
etc

Scotland

County
County
Etc

and so one.

This means they only have to make one select within the form, and it would be easy to validate.
Is there a way to produce this type of dropdown from an EE field, that would also be compatible with safecracker and its inline validation?

I'm thinking I could also make this a grouped category dropdown maybe? Although I do like to have the  country/county replicated in normal fields as it's easier to pull into templates.

Any help appreciated!

Thanks!


texts:
I'm having an issue with stash holding onto some content when looping through records.

I have a BrilliantRetail catalog listing page which loops through all the entries in a category. Within this tag, I'm using the related_products tag to pull out the related products and then store them in two different places within that loop so that I don't have to call and execute the related_products tag twice.

However, on products which don't have related entries it appears to be just repeating the stored content.

{exp:stash:set parse_tags="yes" parse_conditionals="yes" name="br_bulk"}
                        {exp:brilliant_retail:product_related product_id="{product_id}"}
                            {related_products}
                                {if "{related_type_id}"=="2"}
                                    {exp:snippet total="40"}{related_title}{/exp:snippet}

                                 {/if}
                            {/related_products}
                        {/exp:brilliant_retail:product_related}
                {/exp:stash:set}

and then further down the page, I have two pieces of code which are:

 {if "{exp:stash:not_empty name='br_bulk'}"}

                                    Bulk Order Options Available

                                   {exp:stash:br_bulk}

{/if}

followed by a final

{exp:stash:destroy name='br_bulk'}

Just before I close the {exp:brilliant_retail:catalog} tag.

However, it looks like this 'destroy' function isn't working as expected (or I've misunderstood its function).


texts: conditional to evaluate structure (url) field and current_url

texts:
I'm trying to create a conditional to determine if the structure entry url is the same as the global {current_url}. I created a structure field called, {product_category}. For some reason I cannot get conditional below to evaluate to true. Any idea what the issue is?

When callinng in template {product_category} I get the following output:

  http://localsite.com/index.php/online-store/business-compliance-materials/

When calling in template {current_url} I get the following output:

  http://localsite.com/index.php/online-store/business-compliance-materials

Here's my conditional:

{if product_category == current_url . '/'}
     True
{if:else}
     False
{/if}


texts: How to Duplicate a Structure Tree or subtree?

texts:
EE3: I am wondering if anybody knows a way to duplicate an entire Structure Entry Tree including child entries. It has been asked before, without an answer here.

How could I achieve this?

optional: If that doesn't work, how can I duplicate an entire channel?

There's a plugin called MXCloner which currently isn't EE3 ready (or can anybody tell me I'm wrong? But the description on devot-ee and author's site is not very clear if it can duplicate more than one entry at a time. No mention of channels.


texts: Increase number of channel entries displayed in control panel

texts:
A few years back, I worked on a client EE project that involved deleting thousands of existing entries. A fellow EE developer showed me that you could append the query string with a variable that will tell EE to display more than just the standard 50 entries.

http://domain.com/admin.php?D=cp&C=content_edit&{mystery_variable}=200

I remember using it, and it being a lifesaver, but I've forgotten what the actual variable is, and have had no luck searching for it.

Any ideas?

Thanks,

ty