texts:
In the following code I'm using Expresso store to stash the current user's basket away.

Win it I'm setting a nested list so that I can loop through the options and display them as a definition list.

However that nested list doesn't seem to be returning.

Can anybody spot what's wrong here?

Set List

{exp:store:cart}
    {exp:stash:set name="basket-total"}{order_subtotal}{/exp:stash:set}
    {exp:stash:set_list name="basket-items" process_tags="yes"}
        {items}
            {stash:title}{title}{/stash:title}
            {stash:quantity}{item_qty}{/stash:quantity}
            {stash:entry-id}{entry_id}{/stash:entry-id}
            {stash:price}{exp:stash:embed:rcf:ecom_price stash:entry-id="{entry_id}"}{/stash:price}
            {stash:subtotal}{item_subtotal}{/stash:subtotal}

            {exp:stash:set_list:nested name="options"}
                {modifiers}
                    {stash:option}{modifier_name}{/stash:option}
                    {stash:value}{modifier_value}{/stash:value}
                {/modifiers}
            {/exp:stash:set_list:nested}
        {/items}
    {/exp:stash:set_list}
{/exp:store:cart}

Get List

    {exp:stash:get_list name="basket-items"}

                {title}

Remove

                    {exp:stash:get_list:nested name="options"}

{option}

{value}

                    {/exp:stash:get_list:nested}

Quantity:

{quantity}

            {subtotal}

    {/exp:stash:get_list}


texts: Fatal error: Maximum execution time of 90 seconds exceeded... codeigniter/system/core/Loader.php on line 846

texts:
I am running ExpressionEngine 2.5.2, was working on my site last night, tested everything, and all seemed to be running just fine. However, today when I try to navigate around the site, my pages are loading extremely slow. On a couple of the pages, I am receiving this error:

Fatal error: Maximum execution time of 90 seconds exceeded in /var/www/vhosts/cutandpaste.com/system167/codeigniter/system/core/Loader.php on line 846

This is what is on line 846 in Loader.php:

// Does the file exist?  No?  Bummer...
if ( ! file_exists($filepath))
{
   continue;
}

This error came up out-of-the-blue, and I have no idea where to start with fixing it.


texts: What is the best store solution for many items all at the same price?

texts:
This is a large gallery selling prints at A4 and A3 at a set price for both (but I don't know the prices yet) via paypal.

I don't think it needs a full store cart solution, almost an identical simple paypal button with dropdown for price modifier – but is it possible to pass a SKU to paypal in this way?

What might be a tidy solution for this?

Thanks
Bruce.


texts: PHP error on publish/edit screen - certain channels only

texts:
On a site running EE v.2.2.1, I've encountered an error that affects the display of the top tab section of the publish/edit screen. It appears to be occurring in only two channels out of about a dozen on the site.

I'm attaching a screenshot that shows the garbled screen and the error message, which is:

  A PHP Error was encountered Severity: Notice Message: Undefined index:
  field_visibility Filename: content/publish.php Line Number: 71

Line 71 in the file (expressionengine/views/content.publish.php) reads as follows:

<img src="<?=$cp_theme_url?>images/<?= ($field['field_visibility'] == "y") ? 'open_eye' : 'closed_eye' ?>.png" alt="<?=lang('delete')?>" width="15" height="15" />

Notes:

I built this site for a client a number of years ago and upgraded it to EE 2 in 2011, but I haven't really touched it since then. So I don't know what changes may have been made in the interim.

The only thing I do know is that the hosting company moved the site to a new server a couple of months ago. Of course, that may not be relevant -- or maybe it is.

Can anyone point me in the right direction to fix this? Thanks!

Brian


texts: Expresso Store - Add free shipping when an order's subtotal is over an certain amount?

texts:
Is it possible to disable the shipping price if the order total is over a certain amount?
I was thinking maybe a conditional in the checkout template but I havent gotten it to work.
Does anyone have any ideas or could point me in the right direction? Thanks!


texts: Can the 3rd tagpart of a plugin be used freely, or does it HAVE To be the name of a method?

texts:
I'm trying to make a plugin that I need to be as simple as possible to use. If possible, I want the usage to be:

{exp:pluginname:anytext}

And the output to be:

anytext

Obviously there will be more to it than just that, but the essence is that I need the "anytext" bit to be any bit of text, not a hard-coded method.

I've seen plugins that make use of the 4th tagpart, eg. {exp:ce_img:make:anytext ... }, where the anytext bit gets used as a variable prefix. Unfortunately, when I try to do something similar, but using the 3rd tagpart instead, I get an error:

Error

The following tag cannot be processed:

{exp:pluginname:anytext}

Please check that the ‘pluginname’ module is installed
and that ‘anytext’ is an available method of the module


texts: Is there a limit on how high the Entry IDs can go?

texts:
I've been trying to import thousands upon thousands of entries into a few different channels.

Before I get too far into my current project, I just wanted to clarify that there is no limit as to how high the entry IDs can go in ExpressionEngine.


texts: Solspace User - Generating a Radio button from a custom member field

texts:
Solspace's documentation seems to suggest I can generate a radio list from a customer member field if that member field is set to SELECT type.

  This variable pair is a flexible method for creating pull-down menus, radio button arrays, etc. In the variable pair, you precede the short_name of the member field with select_ .Link to Documenation

However I cannot work out how to do it. Any suggestions?


texts: JavaScript Must Be Enabled to View This Email Address

texts:
I am using the MX Notify Control plugin to email when a new member registers, the template I am using for the email is simply:

Email:{email}

{exp:member:custom_profile_data member_id="{member_id}"}

First Name: {member_firstname}

Last Name: {member_lastname}

ZipCode: {member_zipcode}

{/exp:member:custom_profile_data}

Yet for some reason, when I send it like this, the email is blank.  I used the Simple Registration plugin to create the form.

Then I tried:

{exp:member:custom_profile_data member_id="{member_id}"}

First Name: {member_firstname}

Last Name: {member_lastname}

Email:{email}

ZipCode: {member_zipcode}

{/exp:member:custom_profile_data}

And I get the following error:
 .(JavaScript must be enabled to view this email address)

Anyone have any ideas?


texts: How to make Codeigniter's db->get() query return relationship data

texts:
I'm trying to fetch a channel entry's data from within a plugin. I was surprised that ExpressionEngine's Channel Entries API includes functions for creating, updating, deleting, and checking whether an entry exists, but no function to get a channel entry. So I'm trying to use Codeigniter's db->get() function to fetch this data.

First, I tried just fetching the channel data:

$query = $EE->db
  ->select('*')
  ->from('exp_channel_titles')
  ->join('exp_channel_data',
    'exp_channel_data.entry_id = exp_channel_titles.entry_id')
  ->where('exp_channel_titles.entry_id' => 1)
  ->get();
$result = $query->result_array();
var_dump($result[0]);

This returns all of the channel entry's data except relationship data, unfortunately. My custom channel field with an ID of 106 is a relationship field, and I can set and update it through the ExpressionEngine CMS just fine, but when fetching the channel_data in this way the field is blank and its field type is (strangely) set to "xhtml":

["field_id_106"]=> string(0) "" ["field_ft_106"]=> string(5) "xhtml"

Next I considered that maybe I need to join the exp_relationships table to this query by adding a second join:

->join('exp_relationships',
  'exp_relationships.parent_id = exp_channel_titles.entry_id',
  'left outer')

But this still returns a blank string of fieldtype "xhtml" for my relationship field_id_106 in the channel data returned. So, any thoughts on how to fetch relationship data along with the rest of the channel data using Codeigniter in ExpressionEngine?


texts:
I'm just wondering if it's possible to hide all the months that don't have a blog entry?

{exp:low_yearly_archives channel="blog" start_month="1" status="not closed" sort="desc"}
  {year}
       {months}

              {if num_entries != 0}
              {month_short} ({num_entries})
              {if:else}
              {month_short}
              {/if}

       {/months}
{/exp:low_yearly_archives}

I only have blog entries in the month on July at the moment, but it's showing me every month from January. I may be able to work around this by using "month_start" but, if there's ever a case I miss a month with a blog entry then I wouldn't want the month showing with no archives. Also, if i remove "month_short", it takes away the names, but still leaves a space for the month.

I hope this makes sense, thanks in advanced!


texts: Show entries authored by certain zoo visitor member on their profile page

texts:
I've got a profile page for each of my zoo visitor members and on there I want a list of all the entries they've written. My URL is /careers/network/julie-alchin with 'julie-alchin' being the {visitor:url_title}. I don't know if I can use that segment_3 in anyway in the channel entries tag?

Any help would be very much appreciated.

Thanks, Julie


texts:
I'm trying to create a quantity field next to each one of my pricing modifier items, but none of them are coming up in the debug info. What in the world might I be doing wrong here?

Any help would be REALLY appreciated.

THANKS!

{exp:cartthrob:add_to_cart_form return="tours/cart"
                            entry_id="{entry_id}"
                            return="tours/cart"
                    }
                    {exp:cartthrob:item_options entry_id="{entry_id}"}
                        {tour_options}
                            <input type="input" name="quantity" size="3" value=""> {option_name} {price}<br />
                        {/tour_options}

                            <input type="hidden" name="item_options[tour_options]" value="{option_value}">
                     {/exp:cartthrob:item_options}

                        <input type="submit" name="submit" value="Add Tour to Cart">

                     {/exp:cartthrob:add_to_cart_form}


texts: I get this error (see attached) when trying to access the 'Modules Panel'. Has anyone got any idea why this is happening?


texts: Matrix: JS error in the control panel (rowInfo[index] is undefined)

texts:
Weird error in the control panel. I'm using the Matrix field in one channel and as a field in Low Variables.

When i start filling out a new entry things work like a charm. But when i try to open en existing entry i get the following JS error as soon as i open the tab containing the matrix field.

  Tijdstempel: 18-01-13 16:27:00
  Fout: TypeError: rowInfo[index] is undefined
  Bronbestand:
  http://www.urlhere.nl/themes/third_party/matrix/scripts/matrix.js?2.5.2
  Regel: 90

This error 'freezes' the entire matrix field. Basic textfield are still editable but the assets field are frozen. Also removing existing lines becomes impossible but adding new ones is possible. New lines are numbered from 1 as if the others lines don't exists.

Any ideas?

Using ExpressionEngine 2.5.5 and Matrix 2.5.2

With kind regard,
Bas van Ginkel


texts: Access a Relationship field inside a Playa field

texts:
I have a Playa field that contains related People to display on a page. In each Person entry there is a standard EE Relationship field (pre EE2.6) to assign the Office Location.

What I need to do is show the telephone number from the Office Location, but can't figure out the best way to do it.

Here is my code;

{exp:playa:children field="page_people"}
    {exp:stash:append_list name="page_people" parse_tags="yes"}
        {stash:person_title}{title}{/stash:person_title}
        {!--This is the relationship field for Telephone--}
        {stash:person_telephone}{related_entries id='person_office'}{location_telephone}{/related_entries}{/stash:person_telephone}
    {/exp:stash:append_list}
{/exp:playa:children}

When the page renders, it just displays as {REL[person_office]6g2JK3WuREL}.

If anyone can offer a suggestion, I would be grateful.

Thanks.


texts: Getting pagination to work w/ nested {exp:channel:entry} tags?

texts:
I'm working on a blog site that uses a base index file as a "driver", with embedded templates for all the important data. The embedded templates both have {exp:channel:entry} tags that display a certain # of blog entries. Each template is formatted differently per the certain # of blog entries being shown, as I wanted the last four entries to look different than the first four.

The issue I'm having with pagination is that in the index files {exp:channel:entry} tag, I've set the limit to 1, and now it's giving me 10 pages worth of results (which is the total # of entries I have), but what I really want is just normal pagination that shows eight entries per page, formatted as I normally do.

Here's the relevant code:

<? //Formats article page w/ embedded EE variables. ?>

{embed="home/header" page-title="Lean Articles"}
{embed="resources/subhead"}

<? //Container for multiple blog articles, 700px wide defined by Grid system. ?>

{embed="a_update/article-nav"}

{if segment_2 == "" || segment_2 == "category" || segment_2 == "P1"}

<?//Embed main and side content for Homepage section of site.?>

{exp:channel:entries channel="aupdate" limit="1" paginate="bottom" orderby="desc" dynamic="off"}
    {embed="a_update/.hidden_main_content"}
    {embed="a_update/.hidden_side_content"}

       {paginate}

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

      {/paginate}

{/exp:channel:entries}


texts: Is there a way to add the recipient_email field using the composer in Freeform. We want the customer to be able to use the composer to edit a form and need to be able to send email notifications based on a dropdown selection field on the form.


texts:
I'm looking for any suggestions what to use (addons) to have ability to:

create customer account during checkout process (as an option)
capture customer data (billing and shipping address)
store all completed orders

and if account exists:

let clustomer to log in
use stored data (billing and shipping address) during checkout process
view all completed orders

Thanks for any suggestions


texts: Get the current entry_id from inside a module addon

texts:
I am working on an addon for EE3 and would like to be able to pull whatever the current {entry_id} is to use inside the mod file without requiring the user to have to add it as a param.

Is this something that can be done? I feel like I have gone in circles through the docs as well as printing objects, etc...

I know I could do something like this:

{exp:my_module:my_method entry_id="{entry_id}"}

I would just like them to be able to use:

{exp:my_module:my_method}

and whatever optional params are wanted if need be.

Thanks

* EDIT *

@derek-jones pointed me in the right direction by sending me to the channel_entries_row in the Channel Module Extension Hooks here.

However, after reading through it, AND being new to hooks and how to use them, I am still unsure as to how to retrieve the data I am after. Any help in this would be greatly appreciated.

I created an extension for my module and in my hooks, I included it in the extension like this:

public $hooks = array('channel_entries_row');

(I placed it into an array so I can loop through all I end up using and adding them in one statement. I know it looks off here.)

So according to the docs...

How it’s called:

$row = $this->extensions->call('channel_entries_row', $this, $row);
if ($this->extensions->end_script === TRUE) return $tagdata;

So do I need to create a method inside my extension named the same as the hook? or create my own method and just call the hook?

So something like this?

public function channel_entries_row($this, $row)
{
    // Check if we're not the only one using this hook
    if (ee()->extensions->last_call !== FALSE) {
        $config = ee()->extensions->last_call;
    }

    // build the rows so we can get the entry_id
    $row = $this->extensions->call('channel_entries_row', $this, $row);

    echo "<pre>";
    print_r($row);
    echo "</pre>";
    exit;

    // The above are just there for trying to test right now...

    if ($this->extensions->end_script === TRUE) return $tagdata;
}

...and then call it from my module when needed?

Just trying to understand a bit here. I don't know if I need more coffee or what.     ;)


texts: How can I check how old a piece of data is?

texts:
I have some content that I'm storing in a custom member profile field and I want to be able to check how old it is on the front end and show the user a message asking them to update it if it's more than 12 months old.

I have a 2nd custom field which I'm planning to use to store the 'updated date' but how can I compare that to the {current_time} variable and find out if there is an interval of more than 12 months?


texts:
I am looking to set up a site where certain channels can only have one entry per member, whether it be through expressionengine settings or through an add on. Does anyone has any experience of setting up anything similar?

Thank you


texts:
after moving my site from one production environment to another, Im getting strange results in a Playa field.  the tags are not being parsed, but values have been set.  what causes this sort of behavior? where the {product_vineyard_appellation} tags are not being parsed in the if conditional.

this is the output on the site:

{product_vineyard_appellation}

Appellation

Estate Malbec

{/product_vineyard_appellation}

and this is the template

{if product_vineyard_appellation}
  {product_vineyard_appellation}

{if channel_short_name == "vineyards"}Vineyard{if:else}Appellation{/if}

{title}

  {/product_vineyard_appellation}
{/if}


texts: Is there an Assets variable like {filedir_X} that will output the S3 server path? I'm moving my images to S3 and I have referenced images in several channel entries in a textarea like <img src="{filedir_X}imagename.jpg"/> and I'd prefer not to hard code the S3 URL.


texts:
I upgraded the ExpressionEngine from v2.6.1 to 2.7.3. After upgrade, I am seeing error message for third party addons which couldn't include the file having like

require_once reduce_double_slashes(PATH_THIRD.'ep_better_workflow/config.php');

I found that PATH_THIRD isn't correct and having the value as '/' due to which all the path included with PATH_THIRD are showing error message.

Could anyone please suggest me.

Thanks,


texts: My sysadmin's asking for outbound connections from the EE box fire firewall rules. Does anybody know what they typically are? I'm using EE 5.3.2.


texts:
I am having trouble displaying checkboxes for a P&T Field Pack Checkboxes custom field in a Channel Form (ExpressionEngine 2.7.1, Field Pack 2.1.1) using the {custom_fields} and {options} loop.

I've simplified this example, but using the following code nothing is displayed.

{custom_fields}
  {if field_name=='preferred_position'}
    {options}
      {option_name}
      <input
        type="checkbox"
        name="{field_name}[]"
        value="{option_value}"
      >
    {/options}
  {/if}
{/custom_fields}

And the corresponding Field Options:

1 : Driver
2 : Cook
3 : Bartender

In earlier versions of EE (back when it was Safecracker), my loop looked like this:

{preferred_position:options}
  {option_name}
  <input
    type="checkbox"
    name="preferred_position[]"
    value="{option_value}"
  >
{/preferred_position:options}

Are the P&T fieldtypes unsupported by {custom_fields}?


texts: Can I edit contents of Channel Files field in Safecracker Form?

texts:
Can I build a page with SafeCracker that will allow me...

1) Upload files via Channel Files field? I'm running EE 2.5.5 (SafeCracker 2.1).

2) Manage (Edit, Delete, Add) files already previously submitted?

I wasn't able to find much info on the second question.


texts:
I'm not sure what I've done wrong here but with this code, I don't get any validation taking place, it goes straight to the next step:

{exp:store:checkout
    next="checkout/payment"
    error_handling="inline"
    require="shipping_name|shipping_address1|shipping_city|shipping_postcode|shipping_country"
    error_delimiters='|'
}

1. Shipping

            Name *

                {field:shipping_name} {error:shipping_name}

{/exp:store:checkout}

If I change the require parameter to remove the shipping_ from each field, the form reloads the current page, but no errors are output, so I'm a little stumped at this stage.

Any suggestions?


texts: display File Meta Data when I upload a phptp

texts: If I upload a photo I fill out title, credit and description, but I can't find out how I can show this information on my site!


texts: "Thumbnail could not be created for the image." Error

texts:
I've recently migrated a site, and now when uploading pictures through the file manager in Wygwaym images large enough to require a thumbnail cannot be uploaded, very small images, however, can be.  I've verified that the _thumbs directory exists, and has the correct permission.  As noted in some old EE Forum threads, I've also ensured that the server user that created the folder and the one the site runs as are the same.

Any thoughts?


texts:
Is it possible to show the entry_date to the season it's been published? e.g. Written in Autumn at.........

This will also need to work in different time zones. Client will publish from Europe and Australia.


texts: Template Routing with extra segments, how to catch 404's?

texts:
I'm using the extra segment approach to direct requests to pages, as described here:

Template Routes and extra segments

This is working great and allows me to create a common wrapper for pages, but how do I deal with 404's?

It doesn't seem to matter what I set 'Template to be used as the 404 error page' to it still directs to the index/index template, which contains the following:

{embed='pages/{segment:extra}'}

and so always gets 'resolved'.

is there a way that I can test that this calls a valid page:
{embed='pages/{segment:extra}'}

Or is there another approach I could use?


texts: Solspace Super Search - Blank results appearing in pagination

texts:
We display all the entries on our site using a Super Search loop inside an embed called results.html which we embed on the main page on our site. These display our posts by default, instead of using a standard channel entries tag... (I think we originally took this approach as we were using AJAX searching, but we have since abandoned this and are just using standard searching now).

We're trying to make Super Search search multiple channels (Teachers, Schools and Zoo Visitor), but we only want to display results for two of these channels (Schools and Zoo Visitor) when keywords are being searched for. This is because we don't want to have a list of posts populated by the less important content from these channels, but we still want to keep the channels searchable.

We have managed to get this working by using the setup outlined below, and more specifically, the following condition allows us to detect if keywords have been searched for and

{if:elseif channel_name == 'schools' && segment_2 == "search&keywords={super_search_keywords}"}

and

{if:elseif channel_name == 'zoo_visitor' && segment_2 == "search&keywords={super_search_keywords}"}

This is working! However, at the last hurdle, we're running into a final problem where we get blank results when no search has been run (i.e. keywords). It seems the channels which we are ignoring when no search has been run because of the condition above (Schools and Zoo Visitor), seem to be being counted in the pagination.

So our first page of results contains one entry and then the second page has a whole load of entries from the Teacher channel etc...

How can we get round this and stop these channel results being counted in the pagination?

Thanks for your time!

---------------------
results.html
---------------------

{exp:super_search:results channel="teachers|schools|zoo_visitor" status="not closed" orderby="date" sort="desc" limit="29" author_indicator="screen_name" keyword_search_author_name="yes" paginate="bottom" status="Members-id5|Members_Verified_-id6|Members_Pro-id7|open"}

  {if super_search_no_results}
     Sorry, no results message...
  {/if}

  {if channel_name == 'teachers'}

    {title}

{if:elseif channel_name == 'schools' && segment_2 == "search&keywords={super_search_keywords}"}

      {title}

  {/if}

    {if:elseif channel_name == 'zoo_visitor' && segment_2 == "search&keywords={super_search_keywords}"}

      {exp:zoo_visitor:details}

      {member_lastname}

      {exp:zoo_visitor:details}

  {/if}

{paginate}
Page {current_page} of {total_pages} &nbsp; {pagination_links}
{/paginate}

{/exp:super_search:results}


texts:
is there a simple out of the box approach to showing entries created by their author?
EG: after an article I want to list a credit like so:

"article by AUTHOR"

and allow a click through from the AUTHOR link to a template featuring just that author's entries…

Thanks.


texts: Is there a way to import to a Freeform Form?

texts:
Is there a way to import to Freeform Forms?  I wanted to create a form with pre-filled information, and users can login and use freeform edit their existing entries?

Thanks and I appreciate your feedback.


texts:
Pseudo Query:

Select zoo visitor channel fields from exp_channel data
And author_id from exp_channel_titles (joined on entry_id)
Where channel_id = my zoo visitor channel
And author_id does not have an entry where channel_id = orders channel

In english - I want to select some user data for all users who do not have an order.  Can this be done entirely in a query, or would PHP be necessary?  This isn't strictly an EECMS question, but I'll bet someone here can help.  If you can frame out what that query would look like, bonus points!

Here's the query I have now, which is the first 3 lines, but doesn't account for 'no orders':

select cd.field_id_XX as first_name, cd.field_id_XX as middle_name,
cd.field_id_XX as last_name, cd.field_id_XX as suffix,
ct.author_id as member_id from exp_channel_data as cd
join exp_channel_titles as ct on cd.entry_id = ct.entry_id
where cd.channel_id = "XX"


texts:
I'm on EE 2.7 and clients are complaining of short logout times.

  I’m forced to re-log into EE within 20-30 minutes of non-usage even though you’ve set the timeout to 8.3 hours.

My current settings are

$config['admin_session_type'] = "s";
$config['cp_session_ttl'] = 30000; // Keep admins logged in for one business day

Any thoughts on other settings to check/change?


texts: how to define the stash embedded template?

texts:
I would like to use the Stash embed functions, but I don't know how to define the template path.

In the Stash docs:

{!-- Stash template file at /path/to/stash_templates/test.html --}
{stash:embed name="test"}

How to define and set the path to the embedded template called test??

It is similar to the variable setting?

{!-- set a variable --}
{exp:stash:set name="foo"}bar{/exp:stash:set}

thanks.


texts: I have a weird scenario where I am trying to edit my global template preferences. I change a simple dropdown or field, hit submit, and get a successful indicator (the green icon at the top of the screen) but the field has not changed. I output all template debugging and there doesn't seem to be any errors, but all changes are reverted to what they were before. I verified file permissions on database.php and config.php were 666. Any ideas why this might be happening?


texts: Given a relationship id, get the entry_id of related entries

texts:
I have a safecracker form for a channel which has a gender field.

The gender field is a relationship field that points to a gender channel.

Since I have the gender relationship id available to me via the {gender} tag in the safecracker form, how do I get the entry id of the gender channel row using it?

I am using EE 2.5.5


texts: MSM Second Site not registering logged_in variable?

texts:
I've been working on a few sites for a client.   The first of which can log in and have the session variable as well as a the {logged_in} tag read just fine.

The second, it doesn't matter how I log in (CP successfully logs in, for example, or through freemember or even EE's native membership form), it doesn't seem to read the {if logged_in} tag.  The session variable is also blank.

Config files are lined up as explained in the MSM guide, and data can be written to the DB through channel forms, but I can't for the life of me figure out why I can't get the login state.   It's driving me nuts.

I've gone as far as stripping down to the following code to test, and still nothing:

{if logged_in}
    <?php
        $user_data = ee()->session->userdata("member_id");
        echo "UD: ".print_r($user_data,1);
    ?>
    YOU ARE LOGGED IN

    DEBUG

    Email: {email}

    GR ID: {group_id}

    ID: {member_id}

    Name: {username}

    LIMID: {logged_in_member_id}

{/if}
{if logged_out}
    YOU AREN'T LOGGED IN
{/if}

Any ideas where to start looking for a solution?

Vince.


texts: Listing channel entries by parent and siblings

texts:
I have a channel called fruit.
There is a custom field called 'parent' of type 'relationship' in this channel.
The relationship is set to channel fruit.

When I edit my entries in this channel, I can set the field called parent to any of my other entries.

Example entries...

Orange
Banana
Apple
Pear (parent is Grape)
Grape
Lemon (parent is Banana)
Strawberry (parent is Apple)
Kiwi (parent is Grape)
Mango (parent is Apple)

Based on the above, with my setting of some entries to be parents of other entries, a list would appear as...

Apple

Strawberry
Mango

Banana

Lemon

Grape

Pear
Kiwi

Orange

Now I want to setup an ordered list to display this relationship dynamically so that the generated code results in...

Apple

Strawberry

Mango

Banana

Lemon

Grape

Pear

 Kiwi

Orange

I have been reading about the new way EE handles parent-child-sibling relationships in the Docs. But I am having problems coding the above.

Cheers


texts: Super Search and Stash and limiting results

texts:
I am going to try my best to explain what I am trying to accomplish so I will be breaking this up into various parts.

WHAT I AM TRYING TO ACCOMPLISH:

Create a filtered list of search results into various lists. For example I want my filtered results to end up in SECTION A, SECTION B, SECTION C and so on. I will probably have 5 sections once all said and done.

Within each section I only want 3 articles to appear. I will then have a view more button to take the user to see a larger selection of entries.

HOW I AM SEARCHING MY CONTENT:

I currently have used Solspace's Tag module and tagged my articles as needed.

I then have a Super Search form searching my tags using checkboxes.

Then on my search result page I am using Stash to help me organize my entries into SECTION A, SECTION B and so on.

This is working as expected!

WHAT I AM HAVING ISSUES WITH:

My main issue at this point in time is limiting my search results per SECTION A, SECTION B and so on. I can limit my results per Super Search but that limit effects all sections meaning that I can only have 3 entries displaying across all SECTIONS combined. What I need is a total of 3 entries to be shown in each SECTION. I hope this makes sense.

Below is my sample code for my checkbox in the search form:

 &lt;input type="checkbox" name="our_tags[]" value="reg-link" {if super_search_our_tags_reg-link}checked="checked"{/if}&gt; Regional/Community Links

Then in my search results page I have the following:

{exp:stash:set name="service-results" parse_tags="yes"}
    {exp:super_search:results channel="test" search_in="priority_tags|our_tags" orderby="test+desc+priority_tags+desc" search="limit=3"}
        {exp:tag:tags entry_id="{entry_id}"}
            {if {tag_id} == "21"}

{title}

Our Tags - {our_tags}

Priority Tags - {priority_tags}

{tag},

{search_excerpt}

           {/if}
       {/exp:tag:tags}
    {/exp:super_search:results}
{/exp:stash:set}

I display my Stash output like so:

{exp:stash:get name="service-results"}

I have also attached a screen shot of my checkboxes and of the search result area. I hope these help explain a little more what I am trying to accomplish.

Any suggestions or help is greatly appreciated!
If I need to provide additional information please let me know.

Thanks in advance,

John


texts: EE Not Outputting All Data Using Query, for Data that Has NULL values in a Field

texts:
Using the following Query in my template will not output the title of entries that do not have the ci.filename. BUT when running the SQL in MySQL directly, it does produce the results, including the title field.

Strangely if we output custom fields, e.g. field_id_198 that is also returned, this DOES output.

So it seems Expression Engine is not outputting the title (and some other data like urt_title) when ci.filename is NULL, even though its in the MySQL results, but it is outputting other data.

{exp:query sql="
    SELECT *, ci.filename AS business_logo
    FROM exp_channel_titles ct
    LEFT JOIN exp_channel_data cd ON ct.entry_id = cd.entry_id
    LEFT JOIN exp_channel_images ci ON ci.entry_id = ct.entry_id
    LEFT JOIN exp_members m ON ct.author_id = m.member_id
    WHERE (
        cd.field_id_202 = '{segment_4}'
        OR cd.field_id_202 LIKE '%|{segment_4}%'
        OR cd.field_id_202 LIKE '%{segment_4}|%'
    )
    AND cd.channel_id = '36'
    AND (m.group_id = 1 OR m.group_id = 5 OR m.group_id = 6)
;"}

    {title}

{/exp:query}

Removing the exp_channel_images JOIN and field WILL output the title in the results, BUT running direct in MySQL produces the exact same results as the first statement.

{exp:query sql="
    SELECT *
    FROM exp_channel_titles ct
    LEFT JOIN exp_channel_data cd ON ct.entry_id = cd.entry_id
    LEFT JOIN exp_members m ON ct.author_id = m.member_id
    WHERE (
        cd.field_id_202 = '{segment_4}'
        OR cd.field_id_202 LIKE '%|{segment_4}%'
        OR cd.field_id_202 LIKE '%{segment_4}|%'
    )
    AND cd.channel_id = '36'
    AND (m.group_id = 1 OR m.group_id = 5 OR m.group_id = 6)
;"}

    {title}

{/exp:query}


texts:
Echoing post from http://ellislab.com/forums/viewthread/236223/ as suspected error in user documentation.

Looking at the documentation for the new relationships functionality it says filtering by category is supported (3rd paragraph of introduction): http://ellislab.com/expressionengine/user-guide/modules/channel/relationships.html#accessing-parents

However this is not listed as one of the supporting parameters under http://ellislab.com/expressionengine/user-guide/modules/channel/relationships.html#id9 and does not seem to work when I try something along the lines of the following:

{parents field="minutes_partner" category="20"}
{parents:title}
{/parents}

Anyone know if category filtering supported in relationships and if so how can I achieve this without writing some crazy custom query or coding a plugin?

Cole


texts:
The Wygwam changelog states that v3.3 "Added Grid compatibility." But when I create a Grid field, Wygwam is not offered as an available field type.

EE 2.8.1
Wygwam 3.3.1

Any ideas?

Thanks,
Philip


texts: Customizable, canonical URL for Solspace Tag entries

texts:
I'm using Solspace Tag to display a bunch of entries by particular tag. What I need to do is to set a Canonical URL for this list of entries. The Canonical URL might be to a completely different page.

Because the Solspace Tag {exp:tag:entries} is effectively not a real page, I was wondering if anyone might have an idea how I would go about this?

My first thought would be to somehow use Low Variables to set a specific Canonical URL for a {exp:tag:entries} 'page'.

Thanks


texts: Channel data not displaying in channel loop, but does display in query module tag

texts:
I recently had a client referred to me who has an existing EE build, v2.73, and some of their entries just stopped displaying on their templates. According to them, no code has changed and no software (EE or add ons) have been updated.

I created a blank template to put a simple channel loop in to try some of the common problems; dynamic="no", making sure all statuses are accounted for, show_expired, show_future_entries. None of it worked. Some entries' channel data would display, and others wouldn't. All entries, even the one's not displaying, are visible in the backend and I can see them in the database.

So I decided to see if I could pull out the data with the exp:query tag, and sure enough I can. I can pull the data of an entry with the exp:query tag, but not the same entry's data with an exp:channel:entries tag.

I've never encountered this before and have no idea how to troubleshoot it. Thought I'd see if anyone had any ideas.

The code below is on an otherwise blank template. The {article_text} field is mapped to field_id_3 in the exp_channel_data table.

{exp:channel:entries entry_id="3208" dynamic="no"}

      Channel Tag:

      {article_text}

{/exp:channel:entries}

{exp:query sql="SELECT field_id_3 FROM exp_channel_data WHERE entry_id = '3208' "}

      Query Module

      {field_id_3}

{/exp:query}

Both tags in the above block output content when I changed the entry_id to an article that is working on the front end. I'm straight up baffled. Any suggestions would be greatly appreciated.


texts: Server Migration : New Lines in Playa Tag Pair Breaking Templates

texts:
I have an issue where the same template - specifically Playa tag pair - works on one server, but not on another.

I just used the Plesk migration manager to move from a Media Temple DV 3.5 to DV 4. Everything about my file system and database is identical, from permissions to templates, EE version, entries etc. My mysql & php versions for each env. are listed at the bottom of this post.

The DV4, by default, runs PHP as a FastCGI application, but I have switched to run it as an Apache module, as it is on my previous server (to avoid 'no input file' .htaccess / index.php removal issues, and any others I'm not aware of).

My test template looks like so, on both servers:

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

Entry Title : {title}

Playa Tag Pair with Line Breaks

  {accommodation_locations
    status="not Closed"}Playa Entry Title : {title}
{/accommodation_locations}

{/exp:channel:entries}

.. but the output is only correct on one of them - the older DV 3.5:

  Entry Title : Laughing Waters Guest House

  Playa Tag Pair with Line Breaks

  Playa Entry Title : Panorama Route Playa Entry Title : Kruger National
  Park Playa Entry Title : South Africa

and the tags are not parsed on the new DV4 server:

  Entry Title : Laughing Waters Guest House

  Playa Tag Pair with Line Breaks

  {accommodation_locations status="not Closed"}Playa Entry Title :
  Laughing Waters Guest House {/accommodation_locations}

This only happens when there are line breaks in the tag pair. Both templates are encoded as UTF-8 and changing the encoding makes no difference.

The server has Nginx running as a reverse proxy in front of Apache, but I have turned this off and it has made no difference.

Any assistance very gratefully received, as I would prefer not to have to find a new host.

*The Working DV3.5 Server Environment has PHP Version 5.2.6, MySQL 5.0.45

*The unparsed tags DV4 Server Environment has PHP Version 5.4.13, MySQL 5.5.30

Both environments have EE version 2.5.5 and the latest Playa 4.4.3, although I have also tried an older version, 4.3.3 - with no change in the results.


texts: Expresso Store USPS shipping method for international orders

texts:
We run a store that has 50/50 Domestic & International orders daily. I am trying to set up some shipping methods using the USPS Shipping Method & can not see a way to restrict these shipping methods to international countries only.

Heres an example:

Create new shipping method called 'USPS International Small Flat
Rate Box'
Service: Priority
Mail Type: Package Service
Container: Small Flat Rate Envelope (no small flat rate box avail)

There's a few issues with this. The biggest being no country designation so the method will apply to all countries. The 2nd being only some USPS methods are avail.

The shortcoming I believe I am finding is that the USPS module can only be used for US shipments. All international shipments will need to be created with the 'default shipping module' & using respective rules.

This certainly creates a ton more work as there's no way to set up one rule for all international countries. Basically we ship to over 50 countries. Each country would need a separate rule set up for each international shipping service. Typically this is 'USPS Priority International' , 'USPS Express International', 'USPS First-Class Package International' & 'USPS Small Flat Rate Box' - This would be 200 shipping methods needed to be created manually.

This is one area where I believe Brilliant Retail handles brilliantly with its 'Shipping Calculator'. Am I missing something or is this a huge short coming with store shipping?


texts: Best content management approach to multi page articles in ExpressionEngine

texts:
We're working on a site where we need to present a multi page article within the front end of the site. Currently this is composed of a number of entries which are set as 'Structure Entries' inside a node.

It's likely that there will be many more articles like this so I'm not comfortable using Structure as a means of 'organising the entries' and beyond the association with each other by nature of their position in the structure tree there is nothing else to 'hold them together' or 'denote an order'.

Articles will vary in length so the native EE approach of a custom field per page isn't going to cut it.

I had thought of perhaps using a Pixel & Tonic Matrix field or Krea Content Elements field, maybe creating a 'custom content element fieldtype' which is a 'Page Break'?

Would love to hear how others have tackled such a challenge?


texts:
I have Playa installed on a clients site.
Playa 4.3.3 EE 2.5.5

The site was recently upgraded from EE 1.7.3

Everything works fine in the CP and publish forms.
Data is logging correctly in the exp_playa_relationships table.

Here is a very simple example:

<ul>
{exp:channel:entries channel="pages" entry_id="15974|14488" }
<li>{title}
{if promos != ""}
we have some data
{/if}
{promos}
{promos-heading}
{/promos}
</li>
{/exp:channel:entries}
</ul>

I get the message from the conditional, so the channel entries loop is finding data.

As a test I installed Playa in a dev environment, and of course all works as expected.

Any ideas what went south?  Any ee 1=>2 upgrade gotchas to look out for?


texts: I'll get a databae error when updating a entry using the channel polls field type

texts:
Recently I've installed the Channel Polls module of Devdemon on my development environment.
I addded the fieldtype to the channel and edited a existing entry, when I press submit the system will throw a database error.

  Unknown column 'site_id' in 'field list'

  INSERT INTO exp_developer_log (site_id, entry_id, channel_id, field_id, member_id, poll_status, allow_multiple, member_groups, result_order, show_results, chart_type, chart_width, chart_height, chart_bg, function, line, file, deprecated_since, use_instead, timestamp) VALUES ('1', '4', '5', '68', 1, '1', '0', '1|5', 'answer_order', 'after_vote', 'google_pie_3d', '350', '300', 'FFFFFF', 'convert_human_date_to_gmt()', 478, 'C:\Projects\Website\Development\2.6.1\system\expressionengine\third_party\channel_polls\ft.channel_polls.php', '2.6', 'Localize::string_to_timestamp', 1370352409)

When I lookup the table exp_developer_log I see a lot of fields but not the fields that a described in the query above.


texts: I need an SEO plugin that is similar to SEO lite, https://devot-ee.com/add-ons/seolite. Basically something that is simple, with global settings, and entry overrides. I like this plugin, but its main issue is that it cannot deal with images. The fact that EE cannot have multiple field groups per channel also basically makes it so you always have to use a plugin for this feature. I mostly just maintain EE websites and don't do new development with EE. Some suggestions from people who still develop heavily with EE would be great. This site is EE 2.9.


texts: Difficulty with whitespace and Editor add-on

texts:
I am using the Editor WYSIWYG add-on so that I can have WYSIWYG support in the category description editor. This has been working fine until the following issue arose.

When the category description is left in a way that appears empty, it actually outputs the following

 which is bad for three reasons:

It is not XHTML compliant (the
 should be
).
There is no sense for there to be an
 element in the first place... it should be blank. Sure I can understand the empty
 element but why the other?
The following template logic fails to work (primary concern):

{if category_description}

{category_description}

{/if}

How can I prevent the Editor add-on from generating junk for when an empty description is specified? or alternatively how can I safely determine when the description is empty?

Note: I do not trust using {if category_description != '

'} for a number of reasons. a) browser compatibility, b) varying results for empty category description, c) it's too hacky


texts:
We have a system of creating a client entry when someone registers for our site.  We can add more information to the client entry from the Content > Edit forms. The problem I am having is limiting channel entry results by screen name. The title of every client entry is screen_name, but I am not able to narrow entry data by screen_name.

We also have Matrix fields so organizing those is difficult.  Below is an example of the code I have been working with:

 {exp:channel:entries channel="clients" member_="CURRENT_USER"}
                                {client_project}

                                        {title}
                                        {entry_date format="%m/%d/%y"}
                                        View

{/client_project}
                            {/exp:channel:entries}

This code produces no resutls.  Also:

 {exp:channel:entries channel="clients" orderby="logged_in_screen_name" limit="1"}
                                {client_project}

                                        {title}
                                        {entry_date format="%m/%d/%y"}
                                        View

{/client_project}
                            {/exp:channel:entries}

This returns a result, but not the correct one.

Thanks!


texts: Freeform Pro Composer - Checkboxes & Values

texts:
I love the composer feature of FF Pro, but the problem I'm having is outputting custom markup for my form elements.

Inputs and Textarea's are no problem. But when I come to outputting Checkboxes or Radios I can't figure out how to do my own custom markup. Is this even possible?

The code to output the fields is this:

{composer:field_output}

But with Inputs I can do this:

{if composer:field_type == "text"}

        {composer:field_label}
        <input type="text" name="{composer:field_name}">

{/if}

Which is perfect for text inputs, but there is no tags (which I can see) to output the Radio / Checkbox values, or even options inside a select menu.

I also can't understand how to use the "Composer Edit Form", and have values placed inside the value parameter... Without again... just getting FF to generate the markup for me.

The reason I need to edit the markup, is to add ID's and Classes to the form fields.


texts: Orderby title and organize by another custom field

texts:
I have a low search filter set up which works great however the client now wants to separate the results by country of origin. This should be possible as the country is set by another custom field.

I see this working with Stash, but cannot seem to wrap my head around how to do it.

Working code with all results sorted by title:

{exp:low_search:form query="{segment_3}" result_page="{transcribe:language_abbreviation}/branch-locator/filter" form_id="region-filter" form_onchange='submit()'}
  <div class="form-group">
    <select class="form-control" name="child:pl_branch_region">
      {exp:channel:entries
        channel="regions"
        dynamic="no"
        orderby="title"
        sort="asc"
        disable="categories|member_data|pagination|custom_fields"
      }
      {if count=="1"}<option value="">All ({total_results})</option>{/if}
  <option value="{entry_id}"{if low_search_child:pl_branch_region == entry_id} selected{/if}>
        {title}
    </option>
      {/exp:channel:entries}
    </select>
  </div>
{/exp:low_search:form}

What I need to do is separate the results into country which is another field {reg_country} with value of either "can" or "usa"

Ideally the option list would be output like this:

Canada
 Alberta
 British Columbia
 Manitoba
 etc....
USA
 Conneticut
 Maine
 et..

currently all results are listed alphabetically but not sorted by country.


texts: CartThrob v2.3.2 - How to set up free shipping on orders over £x after any discount has been subtracted?

texts:
I'm using CartThrob v2.3.2 on a site where the client would like to have free shipping on orders over £50 which is easily setup in the shipping options.

However, when a customer uses a coupon code or discount it can bring the order total below £50 but the shipping remains free.

So how can I set it up so that the free shipping is only applied after any discounts have been subtracted from the order total?


texts:
I'm trying to clear cache with ce_cache:clear and conditionals but it seems if ce_cache:clear always gets called for.
Conditionals are based on cache date and edit date. So when cache date minus edit date is less then 0 clear cache and rebuild it.

I've tried many different ways but  without any luck. Things as preload vars, stash set, parse inward etc have been tried but I'm problably overseeing something.

{exp:ce_cache:get_metadata id="page"}
    {exp:stash:set name="cache_date_raw"}{made}{/exp:stash:set}
{/exp:ce_cache:get_metadata}

{exp:channel:entries channel='channel'}
    {if '{exp:stash:get name="cache_date_raw"}' < '{edit_date format="%U"}' }
            {exp:ce_cache:clear tags="{url_title}" refresh="5"}
    {/if}
{/exp:channel}

Or perhaps I'nm not using ce-cache the right way.
I've used the break settings in the CP but things get cleared too often. This is due to the fact members are working in draft modus.

Cheers,
Martijn


texts: No input file specified on staging server

texts:
My site works fine locally and works fine at a dev installation. When loading it onto a network solutions hosting account, I get "No input file specified." on every page but the home page. Both dev and staging are running php as a cgi script so not sure why the error there.

Feel free to take a peek at staging.imagenational.com


texts: Better authentication handling in EE - custom 401 and 403 HTTP error code pages

texts:
I submitted this as a bug to Ellis Labs over two weeks ago but have not had an acknowledgement that it is even a bug, so I am turning here to hopefully get some help. A similar question is still unanswered...

Versions: PHP v.5.5.25, EE v.2.10.1

EE provides the ability to create a custom 404 error page. However, it does not provide the ability to create custom 401 or 403 HTTP code error pages, unlike other web development frameworks. It uses HTTP authentication and authorization throughout the CMS so this seems very odd. Searching the EE core shows where this is implemented, and it seems very much like a sledgehammer approach.

In system/expressionengine/libraries/Auth.php:

132         // ------------------------------------------------
133
134         /**
135          * Authenticate from basic http auth
136          *
137          * @access      public
138          */
139         public function authenticate_http_basic($not_allowed_groups = array(),
140                                                 $realm='Authentication Required')
141         {
142                 $always_disallowed = array(2, 3, 4);
143
144                 $not_allowed_groups = array_merge($not_allowed_groups,
                                                      $always_disallowed);
145
146                 $authed = $this->_retrieve_http_basic();
147
148                 if ($authed !== FALSE)
149                 {
150                         if (in_array($authed->member('group_id'),
                                         $not_allowed_groups))
151                         {
152                                 $authed = FALSE;
153                         }
154                 }
155
156                 if ($authed === FALSE)
157                 {
158                         @header('WWW-Authenticate: Basic realm="'.$realm.'"');
159                         ee()->output->set_status_header(401);
160                         @header("Date: ".gmdate("D, d M Y H:i:s")." GMT");
161                         exit("HTTP/1.0 401 Unauthorized");
162                 }
163
164                 return TRUE;
165         }

The code uses EE to set a status header and then uses the raw PHP exit() function (line 161) to dump out a string. There is no way to actually subclass this functionality and create a custom 401 or 403 error page.

Note: I cannot even find a place where 403 errors are handled.

Does anyone know how I can give the control of authentication and error document handling back to Apache? Right now EE hijacks the process. I don't really want to hack the EE core (because that would require hacking the source of every subsequent upgrade). Are there some 3rd party EE plugins that do authentication and authorization in a more graceful way?

Thanks in advance.


texts: Grid field, type file, won't upload svgs using {exp:channel:form}

texts:
I have set the "File Upload Preferences" set to "all file types", on the grid field i have  Allowed file type  set to "All".  I have the "Channel Form Settings" "Allow Guest Posts" set to yes for that channel.

In the CP i can upload an svg, but not when using exp:channel:form, i can not upload an svg.  Using 2.9.3 and need to keep that version for now.  I have tried updating the config.php with $config['allowed_types'] = 'svg'; and add to the mimes.php, and nothing lets me upload .svg files from my form (i can upload pngs, jpgs, txt, etc. from that form). Seems to just be svg that gives me "There was a problem with one or more Grid fields".


texts:
I've added the page padding parameter to my pagination tags but it's still rendering only 5 pages.

There are hundreds of pages so I know that it's not an issue with the amount of content.

Any thoughts?

{paginate}
{if {total_pages} > 1}

{pagination_links page_padding="10"}
{previous_page}
&laquo;
{/previous_page}

{page}
{pagination_page_number}
{/page}

{next_page}
&raquo;
{/next_page}
{/pagination_links}

{/if}
{/paginate}


texts: Preferred method for site-specific content in MSM "child" sites?

texts:
I'm building a set of sites with MSM and intend to use a "parent" site for the organization to publish most of the common content that will be used for each of the "child" sites. Think of a restaurant with many locations where you want the location-specific information to be embedded into the page content for that location's site, yet the common information is pulled from the parent site.

For a simple example, if you're on a menu page for location A you'll see that location's prices, which may be different from the other locations. Assuming the menu is the same across all of the restaurants, I'd like to use the parent site to create channel entries for each entree and add in all of the common content there, yet have the location-specific price show on each location's menu page.

One simple option would be to create an entry on the child site and add fields for any of the location-specific content items. Then pass those items to the parent site template via embed parameters.

Child:

{exp:channel:entries channel="entrees"}
   {embed="parent:menu/entrees" url_title="{url_title}" price="{price}"}
{/exp:channel:entries}

Parent:

{exp:channel:entries channel="entrees" site="parent" dynamic="no" url_title="{embed:url_title}"}

{title}

            {entree_description}
         ${embed:price}

{/exp:channel:entries}

The drawback here is that each entry would need to be added on each child site, which doesn't scale well. In addition, the relationship between child site & parent site would be dependent upon the url_title being identical, which is error prone.

Any other options?


texts:
I'm installing ee1.6.8 on WAMP. I've done this many many times, I use it for testing before i attempt the real deal on the live servers. I've done this on all versions between 1.6.8 - 2.5.5 and they always always worked.

However this time, EE's installation refuses to install because it thinks it does not have the privileges to INSERT/DELETE etc... when in fact it absolutely does. I'm using the root/NO account which has ALL PRIVILEGES.

I've tried via localhost and 127.0.0.1 and it just keeps failing. This is on WAMP 2.2

Any ideas?

==== UPDATE ====

I just tried installing 1.6.9, 1.7.2 and 2.5.5 and both worked smoothly. So it appears that for whatever reason 1.6.X does NOT like wamp 2.2


texts:
Can I use a promo code variable in the email for new orders? The client would like to be notified of the promo code used in the email itself, which gets bcc'ed to them as well as the buyer. Something like this:

Order Id    - {order_id}
Order Total - {order_total}
Voucher (if used): {promo_code}


texts: Different shipping rates to countries inside the UK

texts:
Our client has asked us to help setup different shipping rates for Northern Ireland in CartThrob. This poses a problem because Northern Ireland is classed as part of the UK and so it does not have a separate country code to match shipping rates to.

At present on our site we use the Multi Location Manager to set 'By Location - Price Threshold' for countries outside of the UK and 'Customer Selectable Rates' for everyone inside the UK, which offers Standard Delivery and Next Day Delivery options.

We would like to be able to offer Standard Delivery and Next Day Delivery options to Northern Ireland customers but at different rates to elsewhere in the UK.

Ideally, some kind of Table Rate would probably be best suited, so that we can match Northern Ireland postcodes (which all start with 'BT').

However we need to ensure we can still offer the Customer Selectable Rates to Northern Ireland customers.


texts: Set "site_url" Config Variable in index.php

texts:
I'm upgrading a multi-language site from EE1 to EE2, and it's using the technique of duplicating index.php and path.php inside subdirectories named for each language, and defining global language variables inside path.php.

So I upgraded the site to EE2, ditched the path.php files from the subdirectories, updated the index.php files to the new EE2 versions, and added these configuration variables:

$assign_to_config['site_url'] = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://' . $_SERVER['HTTP_HOST'] . '/en/';

$assign_to_config['global_vars'] = array(
    'country_code' => 'en',
    'language' => 'english'
);

The global variables seem to be working, but site_url is not. I tried:

$config['site_url'] = '...'
$site_url = '...'

I'm also using Focus Lab Master Config, and I made sure to comment out the $env_config['site_url'] variable inside config.master.php. I also double-checked that it's not being defined inside system/expressionengine/config/config.php.

What am I doing wrong here?

UPDATE: The site_url global variable works when used in templates, but it isn't applied in the control panel, in Admin > General Configuration, for example.

I'm using FocusLab Master Config, and assigning site_url from within config.master.php does update the control panel. So there must be something getting in the way somewhere between index.php and config.master.php.


texts:
I know that by default EE doesn't allow guests to upload a file. Though a client really needs this feature in his site. Isn't there a possibility to enable this for guests as well?

I guess I would then need to have a look at specific code pieces to enable this but I can't seem to figure out where this might be located, did anyone ever solve this problem?


texts:
My contact form appears to be working on the front end. No errors or anything that the user is presented with. However, I'm not getting the email off my server. I've tried email addresses on and off my domain, with no success. Any idea what my be causing the issue?

Server: MediaTemple GS
EE: 3.3.0
SITE: creativebyhamilton.com/contact

Mediatemple says there is no issue on their end. They built a test form and were able to send a message to me, which seems that it must be EE.

Here is my code:

{exp:email:contact_form user_recipients="no" recipients="test@test.com" charset="utf-8"}

            NAME:
            <input type="text" name="message[]" value="" />

            EMAIL:
            <input type="text" name="message[]" value="" />
            <input type="hidden" id="from" name="from" value="test@test.com" />

            PHONE:
            <input type="text" name="message[]" value="" />

            COMPANY:
            <input type="text" name="message[]" value="" />

            MESSAGE:
            <textarea rows="8" name="message[]"></textarea>

        <button type="submit">Submit</button>
    {/exp:email:contact_form}


texts: Confirmation page before finalising order in CartThrob?

texts:
Is it possible to create a confirmation page prior to the finalising the order in CartThrob?

The idea would be that the customer would enter in their billing/shipping details. Then a page will be shown with all of their billing/shipping details, alongside an overview of the order, asking them to confirm everything is correct. At this point, they could then enter the payment details to finalise the order, or go back to edit any details if necessary.


texts:
I'm looking to change my ExpressionEngine development process to integrated GIT for version control.

What is the best place to start?

I work on a PC. I use UniServer for LAMP, Aptana Studio 3 for coding (has GIT integration).

What are the first basic steps I need to put into place?


texts: Showing one child page in main navigation

texts:
Is it possible to show one child page as a main navigation item? I tried the include parameter but it's not quite right.

  The parameter "include=" can be used to selectively show specific pages from the same level. http://buildwithstructure.com/tags/navigation/

It needs to be a child page but also be a main navigation link.


texts: Channel Videos - Removing Video When Saving

texts:
I have used DevDemon's channel videos on numerous occasions and always found it very useful. I have just installed the plugin on a EE 3.5.7 install, searched and browsed for the required video and all looks as expected. However, hit save and the video os removed and quotes "No Videos have been added."

Has anyone else came across this or is it a bug? Really hoping that this is a simple fix as the end user loves the feature and is keen to get it working for the site.

Any help would be appreciated.

Thank you
Scott


texts:
I am working on a site where the admin wants a set of tabular data. I created a module to display this data in the Control Panel, no problems there. My first concern was if there is a preferred method for storing module specific files (a CSV in this case). I settled on adding a directory within the module that stores the CSVs. Is there a better way? Particularly more secure?

My next issue was in forcing the download of the CSV. I would like to use the proper URL structure to hit a download_csv method in my module, set the headers and read out the file. When I do this, the outputted CSV has a full page markup added to the bottom. Here is the code I used in download_csv:

header("Content-Type: application/csv");
header("Content-Disposition: attachment; filename=$filename");
header("Pragma: no-cache");
readfile($filedir.$filename);

Again is there a way to use the proper URL structure and the download_csv method without getting all the "junk" added to the file?

Thanks!


texts: Large Database Error - Upgrading EE 1.x to 2.9.2

texts:
I’m trying to upgrade an installation of EE 1.6.8 to 2.9.2 and have come unstuck on the “Database too large” error in the upgrade wizard.

Specifically:

The following error occurred:
An unexpected error occurred while performing the update

Your database is too large to perform this part of the upgrade via a web request. Please contact your system administrator and have them run the script located at:

/Work/MYWEBSITE/Site Upgrade 2014/ee-localserver-01/system/expressionengine/cache/installer/update.sh

Then access this page again.

I have run the update shell script but it finishes within seconds and outputs this result:

Last login: Thu Nov 20 12:48:27 on ttys000
You have mail.
/Work/MY-SITE-REDACTED\ MY-SITE-REDACTED/Site\ Upgrade\ 2014/ee-localserver-01/system/expressionengine/cache/installer/update.command ; exit;
MY-MAC-NAME:~ liam$ /Work/MY-SITE-REDACTED\ MY-SITE-REDACTED/Site\ Upgrade\ 2014/ee-localserver-01/system/expressionengine/cache/installer/update.command ; exit;
Starting Large Database Conversion
UTF-8 Conversion (Step 1: Dumping database with current charset)
/Work/MY-SITE-REDACTED/Site Upgrade 2014/ee-localserver-01/system/expressionengine/cache/installer/update.command: line 10: mysqldump: command not found
UTF-8 Conversion (Step 2: Importing database with UTF-8 charset)
/Work/MY-SITE-REDACTED/Site Upgrade 2014/ee-localserver-01/system/expressionengine/cache/installer/update.command: line 17: mysql: command not found
UTF-8 Conversion (Step 3: Removing database dump)
DST Conversion (Step 1: Reading queries)
DST Conversion (Step 2: Writing temporary SQL file)
DST Conversion (Step 3: Importing temp file, this may take several minutes)
/Work/MY-SITE-REDACTED/Site Upgrade 2014/ee-localserver-01/system/expressionengine/cache/installer/update.command: line 291: mysql: command not found
DST Conversion (Step 4: Removing temp file)
Large Database Conversion Completed: Please return to the browser to finish your upgrade.
logout

[Process completed]

Going back to the upgrade wizard in the browser just puts me back in to the same error loop.

Any help would be seriously appreciated. Thanks.


texts: How to deal with 'sort by' on author field (playa) where there are multiple authors

texts:
I have a project where we display a table of books and a column in that table represents a playa field where 1 or more related authors may be selected. I would really like to then be able to sort on author with the first playa entry for each book being considered the 'primary' author and the sort apply to that...

The results I get when trying to order by this field appear to be rather random, wondering if this is partially related to Using Playa field to order channel entries list


texts:
So I have the following code snippet which is working fine:

{exp:stash:set name="market_ids" parse_tags="yes"}
{exp:query sql="select GROUP_CONCAT(entry_id SEPARATOR '|') as market_ids from exp_channel_data where channel_id=3 AND field_id_12 LIKE CONCAT('%', DAYNAME(from_unixtime({exp:stash:delivery_day})), '%')" parse="inward"}
    {market_ids}
{/exp:query}
{/exp:stash:set}

This sets a value for the markets that I use later on in the page.

However, sometimes the stash value inside the SQL statement ({exp:stash:delivery_day}) wont be set. Typically if the user has clicked a link and not entered the site through our pre-determined route.

I've tried adding a conditional around whole statement, but it doesn't appear to be working because it's still executing the SQL statement:

{exp:stash:set name="market_ids" parse_tags="yes"}
{if "{exp:stash:not_empty name='delivery_day'}"}
{exp:query sql="select GROUP_CONCAT(entry_id SEPARATOR '|') as market_ids from exp_channel_data where channel_id=3 AND field_id_12 LIKE CONCAT('%', DAYNAME(from_unixtime({exp:stash:delivery_day})), '%')" parse="inward"}
    {market_ids}
{/exp:query}
{/if}
{/exp:stash:set}

Anyone offer any advice on the best way to get this working?


texts: Server Error 500 when renaming system folder in EE3

texts:
On EE2 we rename the system folder, and then update index.php and our renamed admin.php. We attempted to do so in EE3, following the instructions here (which is the same as EE2) https://docs.expressionengine.com/latest/installation/best_practices.html.

But once we do this we get an Server Error 500. There are no errors in the log for this.

The instructions do state they may be other areas in the CP to change it, but we cant access the CP. There is no record of "system" in the database.

index.php

$system_path = './system3WmKw98f';

admin.php

$system_path = './system3WmKw98f';

Folder name

public_html/system3WmKw98f

Does anyone know what the issue is?

If I set the folder to system, at least i get the following error "Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php"

Also, there is no .htaccess with my EE install, dont know if its relevant.


texts: Too many redirects when forcing https on a template group

texts:
I'm having some trouble with forcing https on a given template group.  If I use the following, I get the "too many redirects" error. If I comment out my "force SSL" conditions, everything else works fine (removal of www, removal of index.php, etc.). Can anyone point out what's out of place here?  This is for a site hosted with EngineHosting (if that plays any role here) and I am using the Charge add-on with "force SSL" turned on (which forces https:// on the post value on the module's generated form)

<IfModule mod_rewrite.c>

# Enable Rewrite Engine
# ------------------------------
RewriteEngine On
RewriteBase /

# Redirect www Requests
# ------------------------------
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

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

# Forse SSL on Donate Section Requests
# ------------------------------
RewriteCond %{HTTPS} off
RewriteCond $1 ^(donate) [NC]
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

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

</IfModule>

#add Expires
# ------------------------------
FileETag MTime Size
<IfModule mod_expires.c>
  <filesmatch "\.(jpg|png|css|js|jpeg|woff|ttf|svg|eot|gif)$">
       ExpiresActive on
       ExpiresDefault "access plus 1 year"
   </filesmatch>
</IfModule>

I just want to force SSL on any /donate URI.


texts:
I've just installed Stash. I've got a couple of questions on how to use it.

I'm interested in retrieving the stashed variable and putting it in a variable so I can test it, and take actions depending on the value. How would I do that? (Actually, the retrieved variable is from $_POST, and I've got that retrieval happening, but I can't seem to get it in a variable I can use.)

Is there any way to delete a stashed variable? I couldn't find anything in the docs.

Here's my test code:

Get: {exp:stash:get name="test1" dynamic="yes"}

Output: {test1}

{if test1 == 'yyy'}Yipee!{if:else}Frack!{/if}

Thanks for your help.


texts: How to display Playa Info inside of Matrix

texts:
I am missing something very simple.

I have a Matrix field pulling in content from a Playa field.

Lets say my Matrix cells are called {cell_1}, {cell_2} and so on.
Each cell is a Playa field and I simply want to dispaly the content of {cell_1}, which is a Playa field.

How do I get my Playa info to display correctly for each cell?
Currently I am able to pull information in from my Playa field but its not showing the specific information I need.
{cell_1} should show me SPEAKER_A but it shows me SPEAKER_A, SPEAKER_B and so on.

I know I am missing something very simple and any help would be appreciated.

I think the answer I was looking for was removed from the docs when the P&T site was recently updated.

Oh yeah using:
EE 2.5.2,
Matrix 2.4.1, and
Playa 4.1.0.3

Thanks in advance!

John


texts: Cartthrob not saving items to cart in Chrome (not Firefox)

texts:
I received a report from a user today that users in Chrome cannot add items to their cart. It seems to be a new problem only in the past few days, perhaps caused by a recent Chrome update.

I later discovered that this is only a chrome problem, and doesn't actually affect Firefox users at all.

Basically, in Chrome, the user clicks the add to cart button, the site redirects to the cart, and the cart is empty.

When I inspected the HTTP requests for both Chrome and Firefox, I noticed that in Firefox, the exp_cartthrob_session_id cookie is maintained throughout the session. In Chrome, it seems to be reset on each request. Basically each request (GET product details page, POST add to cart, GET cart page) comes with a separate header that looks like:

Set-Cookie:exp_cartthrob_session_id=abcdefghijklmnopqrstuvwxyz; expires=Wed, 03-Sep-2014 03:17:59 GMT; Max-Age=18000; path=/

Why would Cartthrob be resetting the session header on every request. Is this a bug with Chrome expiring cookies, or a bug with Cartthrob? How can I get "add to cart" working again on my site?


texts:
At the start I just want to say hi to everyone as I am new to this message board.

I got a problem with gmaps plugin bought from devot-ee, after installing gmaps plugin and gmaps field type this error occures on everypage at the very top:

  Notice Use of undefined constant GMAPS_FT_AUTHOR - assumed
  'GMAPS_FT_AUTHOR' user/addons/gmaps_fieldtype/addon.setup.php, line 16
  hide details

  Severity: E_NOTICE Notice Use of undefined constant
  GMAPS_FT_AUTHOR_URL - assumed 'GMAPS_FT_AUTHOR_URL'
  user/addons/gmaps_fieldtype/addon.setup.php, line 17 hide details

  Severity: E_NOTICE Warning Cannot modify header information - headers
  already sent by (output started at
  /Applications/MAMP/htdocs/cork-comedy-festival/backstage/ee/legacy/core/Exceptions.php:112)
  ee/legacy/core/Input.php, line 249 show details

  Severity: E_WARNING Warning Cannot modify header information - headers
  already sent by (output started at
  /Applications/MAMP/htdocs/cork-comedy-festival/backstage/ee/legacy/core/Exceptions.php:112)
  ee/legacy/core/Input.php, line 249 show details

  Severity: E_WARNING Warning Cannot modify header information - headers
  already sent by (output started at
  /Applications/MAMP/htdocs/cork-comedy-festival/backstage/ee/legacy/core/Exceptions.php:112)
  ee/legacy/core/Input.php, line 249 show details

  Severity: E_WARNING Warning Cannot modify header information - headers
  already sent by (output started at
  /Applications/MAMP/htdocs/cork-comedy-festival/backstage/ee/legacy/core/Exceptions.php:112)
  ee/EllisLab/ExpressionEngine/Boot/boot.common.php, line 463 show
  details

If someone could advise me how to fix this error.

Kind Regards,
Remi.


texts: Selling event tickets with an initial deposit using either Store or CartThrob?

texts:
I've previously read it's possible to setup EE for selling tickets for an event using the inventory as the number of tickets for sale, so each product can be used as the event.

However, is it possible to somehow setup the process of buying a ticket so that the customer pays a deposit to confirm their place, then pay the remaining fee at a later date nearer the time of the event?

Thanks in advance.


texts: Assign subcategories to a new parent - possible to retrofit those to relate to the new parent?

texts:
I created a category and subcategories tied to this category. I then created a new category and then went into the old "main" category and assigned this new category as the previous 'top' category as its parent. From the look of it, the subcategories aren't aware that they have a new parent (in the admin, nothing comes up in the listing pages as being children of this new parent category. Same goes for the front-end of the site).

Any way to have EE run through and re-detect who the parents are? In the attached image, "Handouts" is the newly created parent category - you can see that it has a much higher number than the old "parent" which was Departments and Work Areas


texts: Template won't embed on one entry page but fine on everything else

texts:
I'm trying to add my embedded contact form template to one page for a blog entry. I've never had an issue with this template or embedding it until now.

Here is my code.

{embed="inc/html_header" page_title="{page_title} - {site_name}"
      page_description="{meta-description}"}
<div class="blog-page entry-main">
    {embed="inc/nav"}

    {embed="blog/listing"}
</div>

{embed="contact/form"}
 <!--Hey footer footer-->
{embed="inc/html_footer"}

So the embedded html_footer appears on the entry template page just fine along with my random  Hey footer comment. In fact, everything on this page displays correctly except for {embed="contact/form"}.

I've done so many things to try and fix this -- use snippets for the form, use conditionals to check for segment_3, etc, but still no success. The pages I'm trying to display have the root structure of:
/blog/entry/the-entry-post-title-whatever-user-enters

When I navigate to just /blog/entry/index.php. I see the footer, but also every single blog entry and the html header and footer embedded templates.

Any thoughts? I'm nearly going insane over this and even had a nightmare where I spent a day trying to figure this out. Dreams are not meant to infested with EE code. Thanks.


texts:
How many queries on a page would be considered too many and should be looked into?

I site I am currently working on has about 20 - 30 queries per page.

Is that pretty good or do I need to to look into lowering that number?

Just not sure what is average or typical.

Thanks.


texts: Unknown column 't.dst_enabled' in 'field list' after EE 2.7.2 Upgrade

texts:
Okay this one is totally nuts, I've spent all day trying to nail this one.

I've attempting to go from EE 2.5.5 to 2.7.2, but after the upgrade, I'm getting the following error on some pages:

    Error Number: 1054

Unknown column 't.dst_enabled' in 'field list'

SELECT t.entry_id, t.channel_id, t.forum_topic_id, t.author_id, t.ip_address, t.title, t.url_title, t.status, t.dst_enabled, t.view_count_one, t.view_count_two, t.view_count_three, t.view_count_four, t.allow_comments, t.comment_expiration_date, t.sticky, t.entry_date, t.year, t.month, t.day, t.edit_date, t.expiration_date, t.recent_comment_date, t.comment_total, t.site_id as entry_site_id, w.channel_title, w.channel_name, w.channel_url, w.comment_url, w.comment_moderate, w.channel_html_formatting, w.channel_allow_img_urls, w.channel_auto_link_urls, w.comment_system_enabled, m.username, m.email, m.url, m.screen_name, m.location, m.occupation, m.interests, m.aol_im, m.yahoo_im, m.msn_im, m.icq, m.signature, m.sig_img_filename, m.sig_img_width, m.sig_img_height, m.avatar_filename, m.avatar_width, m.avatar_height, m.photo_filename, m.photo_width, m.photo_height, m.group_id, m.member_id, m.bday_d, m.bday_m, m.bday_y, m.bio, md.*, wd.* FROM exp_channel_titles  AS t LEFT JOIN exp_channels AS w ON t.channel_id = w.channel_id LEFT JOIN exp_channel_data AS wd ON t.entry_id = wd.entry_id LEFT JOIN exp_members  AS m ON m.member_id = t.author_id LEFT JOIN exp_member_data    AS md ON md.member_id = m.member_id WHERE t.entry_id IN (27) ORDER BY t.sticky desc, t.entry_date desc, t.entry_id desc

Filename: modules/channel/mod.channel.php

Line Number: 297

I thought it was  a simple issue of an addon not being updated as dst_enabled has been removed since 2.6.

Now it get's weird.

I only get this error if I access the pages with a channel tag over SSL.

I've cut everything back to absolute bare bones, all addons, extensions, plugins and field types have been uninstalled and physically removed from the site. I've created a very basic template to reproduce the error:

{exp:channel:entries channel="pages" entry_id="27" limit="1" disable="categories|pagination|member_data|custom_fields|category_fields"}

    <h1>{title}</h1>

{/exp:channel:entries}

I've also replaced all EE files with a fresh download in case a file was not replaced during the upgrade.

I've disabled htaccess, and reverted to stock EE config.

Running on PHP 5.4.19 and can reproduce it on different servers with entirely different configurations.

The really annoying thing is I've run into this issue before, took days to track it down but I didn't document the fix! Paying the price now :(


texts: total_results of plugin nested within exp:query

texts:
I'm using the exp:query module along with a nested custom plugin that I've created. I need to get the count and total_results of the nested plugin but it's returning the count and total_results of the exp:query, which wraps around the plugin tags. If I move the custom plugin outside of the exp:query (for testing), it returns the plugin's count.

Is it possible to return the count and total_results of a plugin nested within an exp:query? Any help is appreciated. Thank you.


texts: "Old-Style" multiple sites on one installation

texts:
Many, many years ago, before MSM, there was a documented way to have multiple sites run on a single installation of EE. It involved creating a new folder at the site root and having an index.php and path.php file that redirected to the main installation.

I used this successfully for many years on EE1.x. Now that I've upgraded to EE2.x, it seems to have broken.

The main installation is at: www.rickandlynne.com

And, the second site is my wife's site at: www.rickandlynne.com/lynne

The trouble I am now having is with pagination, logins, and other blind navigation from my wife's site that ends up redirected to my site. For example, try pagination from her site and you'll see there is a "/" missing in the URL.

I've been experimenting with settings in the index.php and path.php and channel configurations and just can't figure out how to make this work any more.

Does anyone have experience with this and know how to get this "old style" multiple site scheme working in EE2? It appears to be possible because in the EE2.x index.php file there is a section shown here (with my configuration from EE1.x_:

/*
 * --------------------------------------------------------------------
 *  CUSTOM CONFIG VALUES
 * --------------------------------------------------------------------
 *
 * The $assign_to_config array below will be passed dynamically to the
 * config class. This allows you to set custom config items or override
 * any default config values found in the config.php file.  This can
 * be handy as it permits you to share one application between more then
 * one front controller file, with each file containing different
 * config values.
 *
 * Un-comment the $assign_to_config array below to use this feature
 *
 * NOTE: This feature can be used to run multiple EE "sites" using
 * the old style method.  Instead of individual variables you'll
 * set array indexes corresponding to them.
 *
 */
    $assign_to_config['template_group'] = 'lynne';
    $assign_to_config['template'] = 'index';
    $assign_to_config['site_index'] = 'go';
    $assign_to_config['site_404'] = '';
    $assign_to_config['global_vars'] = array(); // This array must be associative


texts:
I have a channel with several entry fields.

FieldType 1
FieldType 2
FieldType 3

I would like to reorder them in the CP so when a user creates a new entry the fieldtypes follow a different order.

FieldType 3
FieldType 1
FieldType 2

In EE2, I only had to change the "order" for each entry field.

I cannot find this option in EE3 anywhere.
That said, how can I accomplish this?

Thanks in advance.


texts: Is there a way to disable BBCode parsing in Channel Entries?

texts:
I have several articles that contain "[I]" as part of a quote. EE sees this as BBcode and renders the entire remainder of the entry as italic text (because there is no corresponding closing tag).

The only other mention of this issue I can find is in an archived EL forum thread from several years ago, which suggests there is no way to change this default behavior... Is there still no way to disable BBCode parsing?


texts:
Getting an error with Dev Demon updater:

  Message: Non-static method Updater_helper::arrayExtend() should not be called statically, assuming $this from incompatible context

REF #TT


texts: Freeform Pro - Writing an extension - How do I get form field values for validation?

texts:
I am new to this so apologies to the noob question.

I am writing my first EE extension, for Freeform Pro. I have the basic shell working for freeform_module_validate_begin and have been able to Enable the extension and verify that it works when a form is being submitted.

What I am stumped by is how to find my form field values so I can perform custom validation. For example, if I have a form text field named 'panelist_name', how can I find that value when accessing the hook freeform_module_validate_begin so I can check it?

I've tried standard _POST and EE input post.

I assume this is a very simple issue, but I cannot find the answer so far in the docs, or in this forum.

Thanks
K.


texts:
I'm coming from EE 1.6 and currently migrating to EE5. I have noticed issues when using the Simple Search Form and relationship fields.
My tag:
{exp:search:simple_form
    channel="books|authors"
    show_future_entries="yes"
    result_page="result"
    where="all"
    search_in="everywhere"
}

My channel relationship:

Parent Channel: Books
Child Channel: Authors

Include in search setting is enabled for the relationship field.
Example search text: David.
Search result only shows entries from Authors channel.
I'm expecting the result to also show entries from Books channel which has David as the author. (not to be confused with EE channel author).
Is this is a bug / not supported feature?


texts:
I am using PayU discovery miles payment gateway and when the user clicks 'Place your order' on my site I would like to open the discovery page in a new tab. Would this be possible?

The code that I have:

{exp:store:payment
    payment_method="PayU"
    form_id="checkout_form3"
    form_name="checkout_form3"
    member_id="CURRENT_USER"
    return="checkout/success/ORDER_HASH"
    <!--secure='yes'-->
}
<button id="checkout_form3_submit_discovery" class="alert" type="submit" name="submit">Place your order</button>

{/exp:store:payment}

At the moment, the off-page gateway opens up in the same tab as the website.


texts: same channel field on more than one channel

texts: Is there a way I can use the same field in more than one channel without purchasing an add-on?  I have an {image_description} field that I'd like to use in more than one channel.  Any work-arounds?


texts: Avoiding duplicate category names across MSM sites

texts:
Quick 'how to' question for everyone around using Categories across multiple MSM sites.

Here's the situation:

There is a 'master' (MasterSite) site, and 2 other 'sub-sites' (SiteA + SiteB).
SiteA and SiteB both have a channel called Events.
I'm using the standard Channel Entries tag on the MasterSite to show events from both SiteA and SiteB ... and of course using the site="SiteA|SiteB" parameter.
SiteA and SiteB both have an 'Event Category' group setup.

The issue:

Everything works fine until I have a single list of category names (for filtering). SiteA has the following categories - Wine, Christmas, Mother's Day.  SiteB has the following categories - Wine, Christmas, Father's Day.

When I list them out for filtering, I end up with duplicate names:
- Wine
- Wine
- Christmas
- Christmas
- Mother's day
- Father's day

I can see why this is happening, and where the issues are, and get why it has to work like that ... but I want to remove the duplicates! I can handle the filtering part (as I'm using Isotope I actually only need the category name to do the filtering!).

So here are my questions:

Can I setup and share a single category group across the different sites?
Is there an add-on that handles this issue?
Is there a parameter or setting I've missed that 'removes duplicates'?
Is there simply a better way to do this?

What I've come up with:

Use javascript to remove duplicates on the fly.
Use PHP to add in all categories into an array, removing duplicates, then list them out.

I'd rather do these things 'by the book' using built-in functionality if possible ... but am open to other suggestions!

Ready... steady... go!

:)


texts: Canceling form submission within channel_form_entry_form_tagdata_start hook handler in 2.7+

texts:
I am using this hook channel_form_entry_form_tagdata_start to process some data before it is saved to database.

But there are many cases where I want to cancel. Validation errors, missing field, etc.

What is the correct way to this inside a hook event handler?

Am I even using the correct hook?

P.S.

I used this technique before. Is this still the correct way to do it?


texts:
I'm having odd results with exp:search:simple_form and certain keywords. For instance, a search for 1010 returns results with:

XP1010
81010
1010

If I add a hypen to the search, 1010-24, it returns no results? Why is this?

{exp:search:simple_form
    channel="not product_options|color_charts"
    form_class="search"
    result_page="search/results"
    search_in="entries"
    show_expired="yes"
    show_future_entries="yes"
    status="not closed"
    where="any"
}


texts: Pagination on template that is same as directory name and index.php removal

texts:
I have a template that is same that directory name (namely, 'video'). Both template and files in directory are linked thoughout the site, so they cannot be removed.

I'm trying to remove index.php from all links, but the recommended method does not work in this particular case.

I've added following lines to my .htaccess, that makes the template 'main' page to be displayed correctly, but the pagination links still do not work. I'm getting 404 returned by server, not EE.
I.e /video/ works, but /video/P10 does not.

RewriteCond %{REQUEST_URI} !^video$ [NC]
RewriteCond $1 !\.(css|js|gif|jpe?g|png|pdf|swf|flv|avi|mpe?g) [NC]
RewriteRule ^video(.*)$  index.php/video$1 [L]

Can anyone give me advice on what directive do I have to add to .htaccess so that /video/ and /video/P10 would be correctly served by EE, but /video/some_file.avi would be served by file system?


texts: Freeform used for two different email addresses

texts:
I have always used Freeform for a single form.

For a new project, I need the user to be able to choose two different organisations in a select field. Depending on the option selected the admin email notification needs to be send to one of two email addresses.

I tried using the following code which I made following some of the example documentation on the freeform site, but I am not sure if this is what its meant for.

   {exp:freeform:form
   form_id="1"
   required="name|email|message"
   recipients="yes"
   recipient_limit="2"
   recipient_template="admin_notification"
   recipient1="Name 1|email@domain1.com"
   recipient2="Name 2||email@domain2.com""
}

        <select name="recipient_email" />
            {freeform:recipients}
                <option value="{freeform:recipient_value}">
                    {freeform:recipient_name}
                </option>
            {/freeform:recipients}
        </select>

Your Name: <input type="text" name="name" />

Your Email: <input type="text" name="email" />

Your Message: <textarea name="message"></textarea>

    <input type="submit" value="Submit" name="Submit" />
{/exp:freeform:form}

Can anyone tell me if this is the best route, as it doesn't appear to work as I had hoped. Do I remove the email in the control panel for admin notification? or leave an email there?

Thanks


texts: Search both channel fields and related entries fields

texts:
Let's say I have two channels, call them "primary" and "secondary". Channel secondary is referenced in channel primary as a relationship.

Now I want to search the entries of secondary based on fields from both channels.

So for example:

{exp:channel:entries channel="secondary" search:field1="foo" search:field2="foo" {related_entries}search:field1="foo"{/related_entries}}
// show entries from channel secondary with "foo" in field1 and field2, and field1 from channel primary
{/exp:channel:entries}

Obviously that's just pseudo code, but hopefully it illustrates my aim. Also note that I'm using EE 2.5.2, hence the old style tag pair.

I think I read that I would instead need to use reverse related entries, but I'm not sure how that would work. It seems like that would pose the same problem.

Any help would be appreciated.


texts: Freeform return_url with SUBMISSION_ID doesn't return to a page with an ID number

texts:
The docs for Freeform say the return_url should look like return_url="{path='my/template/submission/SUBMISSION_ID'}" but when I do that I end up on a page with URL = /my/template/submission/SUBMISSION_ID, i.e. SUBMISSION_ID doesn't get replaced with an actual ID.
I've also tried installing the demo templates which have the same and submitted the form, and get the same result.
What am I missing?


texts: Adding up (SUM) the values of a field in an entries loop

texts:
I have an ee entries loop returning a bunch of entries. Each entry has a custom field holding a numerical value. I would like to add together the values of that field at the end and output the total.

PHP equivalent would be:

for ($i = 0; $i < $total; $i++){
$total += $value[$i];
}

Total = echo $total

Even better would be to just have this run a SQL like command and return the value for me:

SELECT SUM(column) FROM table

Are there any plugins that can help me with this? I'd like to avoid PHP if possible but if I have to how would I make the PHP work with EE tags, I can't seem to get the value for the custom field into my PHP.

Is there an operator for Stash to achieve this?


texts: I get an ERROR when installing CALENDAR 2.3.0

texts:
Below is the Error Code

Exception Caught
SQLSTATE[42000]: Syntax error or access violation: 1072 Key column 'ics_url' doesn't exist in table:
CREATE TABLE IF NOT EXISTS exp_calendar_calendars ( id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, site_id INT(10) UNSIGNED DEFAULT NULL, name VARCHAR(100) NOT NULL, url_title VARCHAR(100) NOT NULL, color VARCHAR(7) DEFAULT NULL, description VARCHAR(300) DEFAULT NULL, ics_hash VARCHAR(100) DEFAULT NULL, default TINYINT(1) DEFAULT '0', PRIMARY KEY (id), KEY site_id (site_id), KEY ics_url (ics_url) ) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB;
ee/legacy/database/drivers/mysqli/mysqli_connection.php:122


texts: Many-to-many relation (playa?) with additional data

texts: I have a channel called "Courses" and it is using Matrix to have several "Lessons". I use Zoo Visitors, so I have members as channel entries. When a member signs up for a course, I want to follow if he/she completed the lessons of the course. When he/she completes all lessons under that course, then the course also will be marked as completed for this user. I can imagine how this would be done using database tables, but do you think if it can be handled using just channels/matrix/playa? Or module should be developed?


texts: Import events list and events detail from multiple feeds and combine them

texts:
I've got an external XML feed which contains a list with events and some basic info. Let's say: feeds/events
Every event has an unique ID and with that ID I can get the details of every event.
Something like: feeds/events/[UNIQUE_ID]

Is it possible to import and combine the details to every event and store it in a channel? I've used Datagrab before but I don't see how to combine something like this. I was thinking about a custom script to combine the two and output this so Datagrab could import it. But maybe there is an easier way to accomplish this.

Thanks in advance.


texts: Cartthrob order editing -- save order in draft status?

texts:
I need to be able to easily add, change, and delete items from finished orders. The most ideal solution to this would be to have all orders saved in some kind of 'draft' status and only finalize them after they're processed by staff, as has been mentioned on CT's forums.

I'm currently attempting to hack something together using javascript to allow staff to add and configure products (and then use Cartthrob's inventory reduce tag) but wondering if anyone else facing this problem has come up with a way to keep orders in the cart until after staff has finished with them? Or to put it a different way, is there any way to give a staff member access to the cart prior to it being submitted?

We don't use any kind of payment gateway so there's no reason the order needs to be finalized before staff gets to it.


texts: When building a fieldtype add-on, are you able to extend Grid?

texts:
I wish to create my own fieldtype add-on (a fieldtype where users are able to create advanced, responsive layouts using simple tools in the backend). I currently do this without an add-on using Grid, with each row in my Grid field corresponding to a block of content on the page.

Basically, I was hoping to extend Grid with some additional logic, Javascript and CSS to create a more user friendly version of this. I can see in the database how Grid generally works and my question is whether I need to replicate this functionality with a custom table within the database or whether I can extend Grid's functionality?

Cheers to anyone who can help and sorry if some of my terminology is a little off - still learning my way around EE addons