texts: Parse order fun! Getting a stashed Assets image resized using CE Image inside a plugin parameter

texts:
Alright, let's see if I can explain this correctly:

I am using Assets to store images to S3
CE Image is being used to manipulate the images and save/serve them from S3
I use stash to try and stay DRY and keep things easier to maintain

So far everything is working great on the site, we're ready to launch, and all humming along... Until I tried to use the SocialEEsta plugin to help spit out share icons.

Here is my model:

{!-- SINGLE VARIBLES --}
{exp:stash:set
  parse_tags="no"
  trim="yes"
}
  {stash:share_image_url}
    {exp:ce_img:pair
      src="{cf_featured_image:url}"
      width="800"
      height="450"
      crop="yes"
      allow_scale_larger="yes"
      hide_relative_path="yes"
      cache_dir="cache/img/products/shared/"
    }
      {aws_url}
    {/exp:ce_img:pair}
  {/stash:share_image_url}
{/exp:stash:set}

Here is my viewModel that gets all of my vars:

{exp:stash:set
  name="hero"
  output="no"
  parse_conditionals="no"
  parse_tags="no"
  parse_vars="yes"
}
  {stash:embed:partials:hero_banner}
{/exp:stash:set}

This is in my partial:

{exp:socialeesta:pinit url="{current_url}" media="{stash:share_image_url}" count="none" description="{stash:page_body}"}

Is this even possible?

I've tried:
 - parse_tags="no/yes"
 - parse_vars="yes"
 - process="start/end"
 - adding parse="inward" to the plugin tag
 - adding random to the plugin tag


texts: No results for a child relationship tag after upgrading to 2.7.3

texts:
I have a relationship field in a page with the name pro_related_program.  Before the update from 2.5.5 to 2.7.3 this code snippet (as part of a larger template that loads a single channel entry):

{related_entries id="pro_related_program"}

This session is part of a larger series.  For more information see {title}

{/related_entries}

would result in this html for a specific page on my website:

This session is part of a larger series.  For more information see Disaster Risk Management in East Asia and the Pacific - 2011 Series

the upgrade modified the code template snippet to:

{pro_related_program}

This session is part of a larger series.  For more information see {pro_related_program:title}

{/pro_related_program}

which gives me back nothing.  If I add a no_results clause in there it gives me the contents of the no_results clause.

Does anyone have any ideas as to what might be causing this?  What I coulddo to debug it?


texts: HTTP ERROR 500 when editing entry with image in EE2

texts:
Updated from EE 2.7.3 to 2.11.3. Entries with a fieldtype of file for images that have a image in place can now not be opened to edit them. They give a HTTP ERROR 500.

Entries without an image in that field are fine to open for edit.

The file manager still shows all 3 directories that are configured. They also show the images. But when I try to sync a folder or want to download an image I get HTTP ERROR 500 as well.

I can't find any place for further help of that problem for the moment. So I try here.


texts: Different values of checkbox for different members?

texts:
I'm trying to make a 'learning' site, something similar to Codecademy but for a small company. The setup at the moment is that I have a Training channel, with description and courses channel fields. Courses is a grid field with the name and title of the resource (so a book or video etc) and also a checkbox that will show whether the user has completed that resource. The channel entries will be for example, 'HTML' and then the description will be a little bit about HTML, and the grid will contain a list of books, videos etc about learning HTML.

I can set up with jQuery and AJAX to check whether the checkbox should be checked from the database, but the issue is that different members will have different things completed. What's the best way to organise the data so I can record who has done what? Would it be easier to do a separate channel for the resources and use relationships to link it to the types of training, then relationships to the member ID for the checkbox?


texts: focuslab config - ip address for host not working

texts:
I've got the focuslab config set up and everything works fine on localhost. However my staging server it doesn't work. I've determined that it's likely due to using an ipaddress in the host for config.env.php

    case '111.222.333.444' :
        define('ENV', 'stage');
        define('ENV_FULL', 'Staging');
        define('ENV_DEBUG', FALSE);
    break;

    default :
        define('ENV', 'local');
        define('ENV_FULL', 'Local');
        define('ENV_DEBUG', TRUE);
    break;

If I take one of my domains and use it as a pointer domain on the same server and change the ip to the domain it works. Unfortunately I can't keep that domain pointed there as I did that just for testing.

So the non work is http://111.222.333.444/~username but if I point a domain to the same host it works.

Is there some way to get master config to work with an ip address instead of a domain?


texts: Any way to login with email address in EE 3?

texts:
I'm working on a site where login with email is requested. NSM Email Login is only for EE2, and although the site is using User from Solspace, their solution to copy the email address into the username is inadequate for this site's needs.

Is there any other way to permit login with email address in EE3?


texts:
On a template I am calling in a series of snippets like so:

{sn-head}

{sn-header}

{sn-page}

{sn-listing-videos}

{sn-footer}

The sn-listing-videos snippet contains an entries loop like so:

{exp:channel:entries channel="video" limit="12" paginate="both" disable="categories|member_data" dynamic="no"}

    {sn-listing-pagination}

    {title}
{/exp:channel:entries}

The sn-listing-pagination snippet isn't rendering in this instance. In fact, none of my snippets are rendered with the sn-listing-videos snippet at all.

I have a few other templates which contain listing snippets for other channels which contain the same code apart from the channel parameter in the exp:channel:entries tag - and the pagination snippet works just fine in these.

I am using the SnippetSync module. I have run a test after having uninstalled it, but still no luck.

What could cause this problem for that particular template/snippet?

=================

EDIT:

Here's the code for a different listings page where the same set up works.

Template code:

{sn-head}

{sn-header}

{sn-page}

{sn-listing-resource}

{sn-footer}

sn-listing-resource snippet code:

{exp:channel:entries channel="resource" limit="5" paginate="both" disable="categories|member_data" dynamic="no"}
    {sn-listing-pagination}

    {title}
{/exp:channel:entries}

=================

EDIT #2:

Content of pagination snippet:

{paginate}

          {pagination_links}
            {previous_page}
              Prev
            {/previous_page}

            {page}
              {pagination_page_number}
            {/page}

            {next_page}
              Next
            {/next_page}
          {/pagination_links}

{/paginate}


texts: Wygwam - stripping tags from ul li (class and id) [Advanced Content Filter (ACF)]

texts:
Good afternoon,

after upgrading to the latest wygwam version i experienced the problem that the editor is stripping out content from wygwam fields. Not the visible parts but class and id fields from for example ul and li fields.

Most likely the new Advanced Content Filter (ACF) ckeditor implemented is the root cause of this because they have switched it to default on. Problem is that there doesn't seem to that pixel and tonic didn't update the ADVANCED SETTINGS tab so you can disable ACF, only add extraAllowedContent.

My question is, how do i disable ACF? I must set CKEDITOR.config.allowedContent to true to do this but WHERE?

http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter


texts: Expressionengine Email Contact Form Tags and Success Messages

texts:
Does anyone know of a way to create a custom success message and post to the expression engine processing controller manually?

I'm using jQuery validator, and usually what I would do is something like this:

   submitHandler: function(form) {
    var data = $(form).serialize();
        $.post(
            '/system/expressionengine/templates/default_site/global.group/form.php',
            data),
        function(data){
                $('#contact-form').html('
We’ll get back to you.
');

            }
        );
    }
 });

Unfortunately with the expression engine {exp:email:contact_form} tags it posts straight to a page and always redirects the user.

Does anyone know of a way to post or properly format the data so that handler will accept the post data and allow a seamless form submission experience?


texts: CartThrob Multipage Checkout Example Templates?

texts:
I'm looking to create a checkout process with CartThrob over multiple pages. Checkout process will use a number of gateways, Paypal, Offline Payments as well as posting directly to an offsite gateway.

Page 1 will collect Billing and Shipping info. Then in the case that we need to take credit card details to post to the gateway, this will be done on page 2.

Wondering if anyone has some example code that may help me here. I'm still looking into the correct way of implementing this but some examples would help loads as the documentation only briefly mentions this in relation to the save_customer_info_form tag, but is not giving me any clues on how to implement it.


texts: Cartthrob packing slip template doesn't display channel fields

texts:
Here's a simplified version of my packing slip template code:

{exp:channel:entries channel="orders" limit="1" status="open|New|Shipped" dynamic="no" entry_id="{entry_id}"}

{title}

Ship to: {order_shipping_first_name} {order_shipping_first_name}

{exp:cartthrob:order_items order_id="{entry_id}"}

{item:title} {item:price} {item:quantity} {item:subtotal}

{/exp:cartthrob:order_items}

{/exp:channel:entries}

If I replace {entry_id} with an actual order entry_id and view the template outside of the control panel, it displays everything just fine:

However, if I set it as the packing slip template in the CT system settings and click 'Print packing slip', it brings up the template OK, but won't display anything other than the {title} tag from the orders channel and throws a PHP warning when displaying the order items:

Am I using the wrong template tags, or is this a bug in Cartthrob?

Right - I've now installed the example CT templates and tried to use that and... It still doesn't work:


texts:
I've been asked to have a specific template, contest form, expire at 5:30pm tonite. There are no channel entries on this page so I can't set an entry to expire. Is it possible to do this with conditionals and current time? There are no concerns about time zones as the contest is very localized to one city.

Basically I need to replace the contest form with a short message and it needs to happen at a specific time which I am unable to be in front of a computer.


texts: Low Search in fields: combine different search_modes

texts:
I have a Low Search form that looks like this:

{exp:low_search:form result_page="search/results"}

<input name="search:title" type="text" value="" placeholder="Title"/>

<select name="search:order-model">
<option value="">Select a model</option>
{exp:low_options:order-model parse="inward"}
  {options}<option value="{option:value}">{option:value}</option>{/options}
{/exp:low_options:order-model}
</select>

<input class="submit" type="submit" value="Search" />

{/exp:low_search:form}

The customer can search by title, model, or both. Now, for the title field I would like to use 'any' mode (return all entries that contain at list part of keyword) while for order-model field I need exact match (e.g. if user searches for m-200 it should omit km-2001 from seach results)

Is there any way to achieve that. It looks like that is probably possible with filters, but what about search form?


texts:
My client has a "resource" blog with articles and PDFs that are available for download.

They would like for their users to enter in an email address before being allowed to download the PDFs (I know). The form would save the entry into the database and email an admin the information for a possible follow-up (I know..). They would also like for the user's data to be saved for that session so they don't have to fill out the form over-and-over if they choose to download other articles. They do not want the user to have to login or register.

I have this working outside of ExpressionEngine2 and Freeform, using $_SESSION variables to check if the form was submitted and saving the $_POST data into the $_SESSION array for auto-populating the form fields on subsequent article pages. The user just has to hit Submit again on the form, which is fine.

However, when implementing in EE 2.7.3 using FreeForm Pro 4.1.3, using the default form action, the POST and SESSION arrays are empty after submission. If I substitute the Freeform form:action it works as expected, but of course the form results aren't stored in the database or emailed to the admin.

They love the Freeform interface and ability to see and export previous entries. Also, I need to do the form submission check server-side, so a user can't just view the source and download the PDF without filling out the form.

Is there another way to accomplish this? I am a hook novice. Any help or insight is most appreciated.

Here's my current code on the blog listing template:

<?php session_start(); ?>
<!DOCTYPE html>

...

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

{title}

        <?php // SET VAR FOR FORM SUBMIT
            $submit = ee()->input->get_post('submit', TRUE); ?>

        <?php // IF FORM NOT FILLED OUT
            if ( empty($submit) ) { ?>

            Download Attachment: {exp:channel:entries channel="blog"}{title}{/exp:channel:entries}

                {exp:freeform:form
                    form_id="16"
                    required="email"
                }

                    Email *
                    <input type="text" name="email" id="freeform_email" placeholder="Email" value="<?php if (!empty($_SESSION['email'])) { echo $_SESSION['email']; } ?>">

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

                {/exp:freeform:form}

        <?php // ELSE IF FORM IS FILLED OUT
        } else if ( !empty($submit) ) { ?>

            <?php // Save each POST value in SESSION
            foreach ( $_POST as $key => $value ) {
                ${$key} = $value;
                $_SESSION[$key] = $value;
            }
            ?>

Thank you message.

        <?php // ELSE SOMETHING BROKE
        } else { ?>

Something went wrong. Please try again.

Try again.

        <?php } ?>

        {/exp:channel:entries}


texts: Jquery doesn't load for Control Panel after move from Dev to Live

texts:
Recently while moving from my first local dev to public site, the jquery that powers the Control Panel basically stopped working/loading. Version is v2.5.3 and I will be upgrading the dev to latest but hope to figure this out before I dive into that.

The signin screen loses all jquery and formatting (no jquery code in HTML head) and menus inside EE no longer function as well as all addons that rely on jquery. The tabs that are usually hidden for accessories such as MC Cloner and ExpressionEngine Info are showing (when they should not).

I've tried the following.

reuploaded all theme folders and checking permissions
Cleared Cached before and after upload
uninstall/reinstall jquery addon
Checked config.php for conflicting paths
disabled extensions via config.php

Ensured the following paths are correct

Admin ‣ General Configuration
Admin ‣ Security and Privacy ‣ Captcha Preferences
Admin ‣ System Administration ‣ Emoticon Preferences
Content ‣ Files ‣ File Upload Preferences
Members ‣ Preferences
Design ‣ Templates ‣ Global Preferences
Admin ‣ Channel Administration ‣ Channels

You can see the cpanel here, notice the missing jquery embed (I will change the url to admin.php before launch)
http://www.centerchurchucc.org/admin.php?S=0&D=cp&C=homepage

Really puzzled on this one!

My gen prefs


texts: Displaying gift certificate info in Cartthrob's checkout/cart when buying a certificate

texts:
I'm doing some work on an existing site that uses Cartthrob and finishing off the gift certificate integration.

For the life of me I can't figure out how to show the details of a gift certificate that the customer is purchasing.

The certificate is a single "product" that can have a variable value which is selected when the customer adds it to their cart.

In the cart/checkout, I can show the product title and its price but I can't show the email address or message associated with the certificate.

There has to be a way to do that right?


texts:
I have a grid field type that is working correctly without any issuse.  What i am trying to do is create an if statment basied on the search criteria of the grid search.

What I have:

    {courses search:course_type="Foundation" search:degree_type="Masters" search:applies_to = "<?php echo $degreeName ?>"}

        {courses:course_number} {courses:course_title}

{courses:course_content}

    {/courses}

The code above works fine.  What I want to do is create an if statment basied on the number of rows, that only returns one thing regardless if there are rows or not.

Something like this:

{if courses:total_rows > 0 search:course_type="Foundation" search:degree_type="Masters" search:applies_to = "<?php echo $degreeName ?>" }
    Some Code
{if:else}
    Some Other Code
{/if}


texts:
Quick question re setting up shipping prices. I'm setting up a store selling books and need to calculate shipping on the basis of book size, essentially: light, normal and heavy. This is/can be set in the channel entry.

What I need then is to set prices for the US, UK, Europe and Asia taking into account these variables of light, normal and heavy. I.e. there would be these three shipping rates for each location but calculated at checkout (or before).

Is there a plugin needed for this? Or what would be the best approach?


texts:
EE3

Is it possible to display the parent category of the current entry?

    {exp:channel:entries
        channel="news"
        disable="member_data|pagination|trackbacks"
        dynamic="no"
        limit="7"
        category="24|26"}

    {categories}
            {parents}
                    {parents:title}
            {/parents}
    {/categories}

{/exp:channel:entries}


texts:
I am building a reasonable size replacement site in EE and will be migrating content from an existing static-built site.

In order to maintain as many inbound and internal links as possible, what is the best way to add .html to URL's?

Due to the number of URL's involved I don't want to have to redirect each one individually in .htaccess. Using .htaccess to strip .html has been suggested. If this is the best method, what would I need to add to .htaccess to achieve this? Are there any drawbacks or negatives to this method?


texts: Welcome discount limited to time and membership group

texts:
For the moment when people signing up on new membership the system send out a welcome email with discount % to be used at our store limited to the membership group (Restrict to Member Groups) and limited to one purchase per customer (Limit Per Customer).

The down side is this discount code has unlimited time. I'm not sure if there is an already builtin feature to set how long this discount should last since member signed up (example 14 days) or if this is a feature request?

Thanks


texts: Playa tag ignoring child_ids parameter and Low Events parameter

texts:
I'm trying to use Low Events in conjunction with a Playa primary tag pair to exclude expired entries from showing up on the site. This is the code I think should work:

{exp:channel:entries channel="home" show_expired="no" limit="1" disable="categories|member_data|pagination|trackbacks" rdf="off"}
    {exp:low_events:entry_ids channel="events" show_passed="no"}{low_events:entry_ids}
      {cf-home-events show_future_entries="yes" limit="3" child_ids="{low_events:entry_ids}"}
        {title}
      {/cf-home-events}
    {/exp:low_events:entry_ids}
{/exp:channel:entries}

The primary issue is the Playa primary tag pair is ignoring the show_passed="no" parameter from the low_events tag. I think the issue has something to do with the Playa tag's "child_ids" parameter because it is not parsing the correct info. For example, the "{low_events:entry_ids}" field outside of the Playa tags excludes passed events. But the "child_ids="{low_events:entry_ids}"" ignores that completely. I tried manually inputting the entry ids into the "child_ids" parameter, but it ignored that too, outputting the same values as before.

Any ideas as to why Playa would be ignoring the Low Events parameter? Or why it would be ignoring the "child_ids" tag parameter?

FYI: Playa 4.3.3 running on Expression Engine 2.5.3. Low Events is version 1.1.1.


texts: Reverse Related Entry Showing A Future Post

texts:
I have an issue I’ve never run into before. I’ve recently started scheduling posts for the future on a site and I have a reverse related entries tag (EE 2.5.5) that is showing these future entries and I can’t make it not do that. It’s pretty essential that this tag not show future entries and the reverse related entries tag (again, EE 2.5.5) does not seem to accept the show_future_entries parameter.

Any help would be appreciated.


texts: How to use a remote database inside docker containers

texts:
I'm attempting to setup a docker container to run expression engine. Using best practices for Docker, it is recommended to separate the db from the web host and php containers. However, it seems there is no easy way to specify a remote database that I can find. The admin.php wizard always fails to connect to the database.

I am using mysql 5.6 currently
I have a hostname (db) that connects to the SQL container correctly via telnet from php and web containers, so I know its available.
Setting the server address to db or its ip address fails to connect
I have even tried a stream rewrite in nginx to pass all data from localhost:3306 to db:3306 with no luck. Tested by telnetting to localhost:3306 from php and web containers.

Does anyone have the correct procedure to tweak the database hostname before running the wizard with admin.php?

Thanks!


texts: Low variables & Matrix - Make a row act like an entry

texts:
Is it possible to have a "main page" that pulls through a Low Variable tag pair with all the matrix rows, and then a view page to view each page with more details about that "one matrix row"?

{exp:low_variables:pair var="franchises_for_sale"}
    {field}
    View this matrix row
{/exp:low_variables:pair}


texts: Wygwam: use apostrophes and proper quote marks

texts: Does anyone know if it's possible to get Wygwam to replace inch and foot marks (" and ') with apostrophes and proper, left and right curly quote marks? So Don't becomes Don’t and "This" becomes “this”? I think EE does this to titles, but Wygwam doesn't seem to... Thanks!


texts: Has anybody used Structure Nav with Transcribe?

texts:
I've recently been using Transcribe and wanted to integrate Structure's Nav feature. I have used both separately without issue in the past. But now that I'm bringing them together, I'm having some problems.

I'm using Structure Nav to list some pages (displaying their titles with a custom text field and custom image field) and would like to show the Welsh alternative once the language has been switched. However I don’t seem to be able to do this

{exp:structure:nav_advanced start_from="/see-do"}
{exp:ce_img:single src="/assets/images/img.jpg"}

{root:title}

{root:page_introduction}

{/exp:structure:nav_advanced}

This is my code which works fine for the English side, but is there any way to display the Welsh alternatives once the language is switched?

In the Transcribe documentation, it mentions that there are some tags for Structure but I'm unsure whether this applies to Structure Nav too.

I'm using EE v3.4.4

Can anyone help with this? Has anybody successfully combined the two modules?

Thanks


texts: Limit number of Expression Engine Channels

texts: I have heard that some say that you should limit the number of expression engine channels you use to about three regardless if you use the free or paid version. Has anyone else experience EE giving problems after you create more than three channels?


texts: How to find out what class/function has invoked extension hook?

texts:
I have an extension that relies on certain extension hook.

The hook can be invoked either by function from EE core or third-party module.

I need to be able to tell what function / class has invoked it. Is there a way I can find that?


texts: Solspace Calendar - Ordering occurrences by time

texts:
I'm outputting occurrences using the {occurrences} variable pair within a {exp:calendar:events} tag for a single day and I'd like to sort these occurrences by time.

{exp:calendar:events calendar_id="22" date_range_start="2013-11-10" date_range_end="2013-11-10" sort="asc" show_years="9" pad_short_weeks="n"}

   {occurrences}
      {occurrence_start_date format="%D, %F %j %g:%i %a"}
   {/occurrences}

{/exp:calendar:events}

I tried using the sort parameter in the occurrences variable pair and  but it didn't work. Any tips?


texts:
I have used the DevDemon form addon since EE2 but its basically dead at this point. I reported more than one bug to the developer over a year and they don't bother to fix anything. I don't think it will be upgraded to EE4 either and the last update was over a 1.5 years ago.

I would just buy the one from Solspace but it has something missing that I really need and most forms have today.

The form logic that is based on JavaScript. For example, hide field X if user fills out data on field A or show field B if email field is completed. This allows you to show or hide and change the form based on what the user is filling out. I also need regex checks.

The DevDemon form has this but its extremely buggy and at this point not even working with EE3 anymore correctly. Neither is the multiform feature and I don't think there is future for it with EE4 either. I only use the module for more advanced forms as the build in form functions from EE work fine for basic things.

Is there any alternative for more complex forms today? Pricing is not a problem.


texts:
I have a strange situation where Russian characters are outputted as garbage if the template type is JavaScript.

I.e. "Российской Федерации" is outputted correctly if the template is "Web Page", but outputted as "Ð Ð¾ÑÑÐ¸Ñ" if JavaScript is selected.

Any ideas where I might be going wrong?


texts:
I have a Matrix field that I am using for an address.

I have 5 columns in total

Address 1 - Text
Address 2 - Text
City - Text
County - P&T Dropdown
Postal Code - Text

I have City and County marked as required.

Now using the standard short field name in Safecracker will not output the fields how I want them formatted, so I am breaking them out.

For example,

I have the following when it comes to address one...

<input type="hidden" name="address[row_order][]" value="row_new_0" />
<input type="text" class="span8" name="address[row_new_0][col_id_4]" />
Address (first line)

This works fine for all the text fields, but I am not sure about how the best way to display the P&T dropdown field.

I am using a P&T dropdown, as it allows me to utilise option groups, which I am using like so

England
 -county 1
 -county 2
 -etc
Scotland
 - and so on...

Now the only way I have found to output this in safecracker, is to write out every option.

<select class="span6" name="address[row_new_0][col_id_6]">

<option value="" selected="selected">Select your county</option>
<optgroup label="England">
<option value="Avon">Avon</option>
<option value="Bedfordshire">Bedfordshire</option>

...

</optgroup>
</select>

The problem with this is that it does not seem to validate. If I leave the select unchanged, it doesn't throw up the "required" error.

Another issue is that if I do complete the required fields, but make other errors on the form, when submitted, it does not remember the values I entered. Presumably this is due to it not have a value="something" - but I am not sure what 'something' should be.

Any help appreciated!


texts: Replace "Add File" link with a single file upload input?

texts:
I've been developing a website for an artist to feature and sell their artwork. Each piece of artwork has its own channel entry, and currently, there are a number of "File" fields so the artist can upload various views (e.g., landscape, portrait) for each artwork.

They've created all of the artwork entries and are now going back through and adding all of the various view images. However, they find EE's upload process tedious for this particular work.

Basically, they want to bypass EE's built-in file browser entirely. They'd like to replace the "Add File" link with a single file upload input field à la the old nGen File fieldtype so they can upload images directly.

I've looked and looked and can't find anything to fit the bill. I thought the "Show existing files?" option for "File" fieldtypes might be the solution, but that's only on the front-end, not the CP.

The site is currently running on v2.10.1, FWIW.


texts: EE3 --> Multiple Concurrent Database Connections via config files

texts:
we converted to 3.3.3 from 2.5.5.

a concurrent connection to a secondary database (set up using Focus Lab Master Config in both versions) works in 2.5.5 but i get warnings in 3.3.3 with message Warning

  Illegal string offset 'hostname'.

it finally completely fails when it tries to run the query and prefixes tables with the primary connection db name instead of the secondary db name.

its loading the primary connection db instead of the secondary connection - all tables names are prefixed with primary connection db name.

we used this syntax in 2.5.5 - $this->EE->load->database('secondary_connection', TRUE);

and in the environment specific config for my local is

$env_config['database'] = array (

'expressionengine' => array (
        'hostname' => 'localhost',
        'username' => 'xxxx',
        'password' => 'xxxxx',
        'database' => 'xxxxx',
        'dbdriver' => 'mysqli',
        'dbprefix' => 'exp_',
        'pconnect' => FALSE
    ),

'ext_db_components' =>
    array (
            'hostname' => 'localhost',
            'username' => 'xxxxx',
            'password' => 'xxxxx',
            'database' => 'xxxxx',
            'dbdriver' => 'mysqli',
            'dbprefix' => '',
            'pconnect' => FALSE,
            'cache_on' => FALSE,
    ),

);

the error appears on a page that calls a model.

in one of the model methods, it needs to access an external db (housed on same mysql server).

in EE2, loading that external connection using
$this->components_db = $this->EE->load->database('ext_db_components', TRUE);
 let us query against it using active record.

the same line of code in EE3 throws Illegal string offset 'hostname' warnings before finally failing with a mysql exception.

FYI - it does appear to be calling the legacy db.php connector (/system/ee/legacy/database/DB.php) rather than the EE3 db connector

is there a way to concurrently connect to an external db using config settings in 3.3.3?

NOTE: I am not asking about switching primary connections based on environment - i need multiple concurrent connections in the same environment.


texts: Playa fields: can I pair one channel entry to another and populate similar channel fields in template?

texts:
I'm an EE novice working on a big site. I have a configuration concept in my head and I want to know if it's doable. Please bear with my limited knowledge of EE lingo. I'm still learning.

So I have a channel Speaker whose channel fields include Name, Topic, Bio, etc. I have another channel Multimedia which includes many of the same kinds of channel fields: Title, Subtitle, Description, etc.

We have speakers come in regularly and give a presentation. We create their Speaker entry long before their event. After the event we produce a video and create the Multimedia entry for that event. We do multimedia for other types of events which is why we don't just have a multimedia channel field in the Speaker channel.

Is there a way for me to add a Playa channel field to Multimedia, connecting a Multimedia entry to a Speaker entry, and then populate the template with Speaker info?

Something like this (this is again, theoretical, but if you feel the need to correct my syntax, go right ahead):

{exp:channel:entries channel="Multimedia"}
  {if playa_field}
    {playa_field}

{speaker_name}

{speaker_topic}

{speaker_bio}

    {/playa_field}
  {if:else}

{media_title}

{media_subtitle}

{media_desc}

  {/if}
  <video src="{media_url}">Your browser doesn't support HTML5 video.</video>
{/exp:channel:entries}

(edit: removed a redundant {/if} thanks to syntax correction in comments)


texts: Random Duplicate locations when using Google Maps for EE

texts:
I've got Google Maps for EE set up to show a US map listing the locations of all of the firms within an organization.  Everything seems to be working ok, but one of the locations is showing up twice (it's only entered once on the back-end).  There are a few locations that are overlapping (making it hard to tell that), so I want to enable clustering to give a visual cue that more than one location might exist.  However, when I do, I get other locations that randomly appear twice.  Here is my code:

{exp:gmap:init id="member_directory" style="width:1000px;height:600px"}
{exp:channel:entries channel="firms" dynamic="off" status="open" limit="500"}
{cf_firm_location}
    {exp:gmap:marker
        id="member_directory"
        address="{m_address}{street}, {city}, {region} {postal_code}{/m_address}"
        zoom="4"
        //open_windows="false"
        //extend_bounds="false"
        //geocode="false"
        clustering="true"
        icon="/themes/third_party/gmap/icons/office.png"
        infobox="true" // Tells script to use infobox.js
        //offsetY="-45" // Offset the X position of the window
        //offsetX="15" // Offset the Y position of the window
        closeBoxMargin="5px" // Sets the box margin (could also be done in stylesheet)
        class="ui-infobox-dark" // Uses the dark theme made available by Google Maps for ExpressionEngine v3
        closeBoxURL="/themes/third_party/gmap/css/images/white-close-button.png" //Uses an alternative close button
        style="width: '400px'"
    }

{title}

{m_address}{street}
{city}, {region} {postal_code}{/m_address}

            {if m_phone1}Phone: {m_phone1}
{/if}
            {if m_phone2}Phone 2: {m_phone2}
{/if}
            {if m_fax}Fax: {m_fax}
{/if}
            {if cf_firm_website}{cf_firm_website}{/if}

View Full Profile

    {/exp:gmap:marker}
{/cf_firm_location}
{/exp:channel:entries}

Any thoughts to why that might be happening?  I've confirmed in the source code that the same firms are showing up twice.  Thanks in advance!


texts:
I have EE installed on a clients windows server but I'm having problems removing index.php from the URL

This is the first time I've worked on a windows server (all precious jobs have been in apache and used .htaccess)

The hosting company is being incredibly difficult - can anyone please point me in the right direction.

Thanks

James


texts: Channel Form elements not populating entry

texts:
I have some checkbox entry fields and select option fields that are not populating my channel entry through my channel form. All the other input fields, including a standard select dropdown, populate fields correctly.  I am using REEgion to add the states/provinces and I have radio buttons trying to select the checkboxes.

Below is a sample of my templates:

Checkboxes:

            <fieldset>
                <legend>Do you require a deposit?:</legend>
                <input type="radio" value="yes" name="require_deposit" id="require_deposit1"> Yes

                <input type="radio" value="no" name="require_deposit" id="require_deposit2"> No

            </fieldset>

The ID's and NAME elements all match the custom field tags.  Thanks for any help you can offer.

Select dropdown:

            Bank State/Province:
            {exp:reegion_select:states_provinces title="State or Province" id="bank_state_province" name="bank_state_province" class="reegion_select"}


texts: advice on displaying a business directory / member list

texts:
I have a site with a list of members and each member is listed in a business directory.  I am using solspace user to handle my members and display their location on a map.

THe issue I have run into is that some members have more than one location so I need to come up with a method to allow them to add a second location. (and sometimes 3 or 4 additional locations)

What are my options?  add many new member fields or build a new channel to handle additional stores?

I laready have hundreds of members with their info already in there, so changing the members with a single store is not really an option.  I only need to add on the option of additional stores.

I am using this bit of code in a map widget:

{exp:user:users sort="asc" limit="100" group_id="5" search:shipping_region="NB" search:retailer_type="not Pending|Web"}
    {if longitude}
     {
        "properties": {
            "tags": [],
            "phone": "{shipping_phone}",
            "classifiers": ['a'],
            "address": "{shipping_address1}",
            "name": "{shipping_name}",
            "province": "{shipping_region}",
            "owner": "welocally",
            "postcode": "",
            "city": "{shipping_address3}",
            "country": "{shipping_country}",
            "website": "{website}"
        },
        "type": "Place",
        "geometry": {
            "type": "Point",
            "coordinates": [ {longitude},{latitude} ]
        }
    },
    {/if}

{/exp:user:users}


texts: How to fix Google Maps for ExpressionEngine - Uncaught TypeError: this.lat is not a function

texts:
I'm getting this error all of a sudden when trying to add markers to a map in the CP:

  Uncaught TypeError: this.lat is not a function

I've previously followed all of the advice on devot-ee about using a previous version of the Google Maps API, but this has now happened despite doing that.

Any advice on how to work around this?


texts: Order entries by value in Matrix field column

texts:
How would I go about setting the order of entries in a "products" channel based on the value in a price within a matrix field?  So for each product, there is a matrix field with columns of regular price, sale price, sale start date, sale end date, color (an option that rarely affects price anyway).  But regular price and ale price are pretty well always the same regardless of how many color options there are for the given product.  What I'm looking to do is basically this:

{exp:channel:entries orderby="{matrix_field:reg_price}" sort="asc" dynamic="no"}

Any way to do something like this?  Do I need to first perform a query to determine what the active price is for the items in order to sort them by this field?


texts: How to load javascript file in my module

texts:
I have a module that is dependant on a couple of Javascript files.

How can I load these Javascript files on the front end when my module is called?

They are quite large so I cannot simply use an inline <script></script>


texts: custom export freeform data with radio buttons

texts:
I am trying to create a custom "download to csv" form for specific forms.

The radio buttons are saved in the db as
287|~|Person 1, 290|~|Person 2, 296|~|Person 3

I want to create a custom download to csv form because I only want users to be able to download specific forms, not all.

I believe I need to use $this->multi_item_values($array)
but I'm pulling my dat from a query and the code below is not working

        $editors = $results->row('EDITORS');
        $updEditors = $this->multi_item_values($editors);

When I echo $updEditors, I get the following error:

Fatal error: Call to undefined method EE_Functions::multi_item_values() in /www/eh14243/apps_html/ctrl/expressionengine/libraries/Functions.php(679) : eval()'d code on line 97

Thanks in advance for any help or pointing me in the right direction.

Peter T


texts: Redirect from URL containing member_id to username

texts:
Just wondering if there is a way to redirect vistors from a URL that contains member ids to a url that contains the username.

I originally had member pages set up like so... members/profile/{member_id}/ for a range of profile pages. I have since changed this to members/profile/{username}/ and I was wondering if there is a way to redirect a visors to the new URL if they were to attempt to visit a url with a member id still in it.

I tried

{if segment_3 != username}
  {redirect="members/profile/{username}/"}
{/if}

and

{if segment_3 == member_id}
  {redirect="members/profile/{username}/"}
{/if}

but neither has an effect. (The 'profile' pages are running within Switchee, so I'm not sure if thats having an effect at all?)


texts: Update process freezes from 2.11.8 to 2.11.9, what do I do now?

texts:
This is an urgent issue, because it concerns a MSM site with three live sites. I try to update to the latest 2.xx version but the installer freezes in the process, to be exactly from 2.11.8 to 2.11.9 .

What do I do now?
Who can possibly help me out here?

thanks a lot!


texts:
We implemented a slide show in our homepage and would like to place a video as one of the sliding images.

Can a slider include a video?
If not, can you toggle between video and slider in the CMS?


texts: Formatting date does not follow localisation settings!

texts:
Although I have set in the CP the localisation settings to Swedish, also for superadin and my users, and I have installed the Swedish foreign language pack the date formattings in my Templates still are English, this is unwanted I cannot work with this.

Day 4 in the week should be 'torsdag' (=Swedish) but it remains 'Thursday'.

I do not understand how this really works.
Is there a simple native way to solve this?

Thanks a lot for answering.


texts: Editing pages from outside the Control Pane with two group id's

texts:
{if author_id == logged_in_member_id OR logged_in_group_id == "1"} Edit This Page ⇑{/if}

I have added a second logged in group id "6" However, when I change this from 'logged_in_group_id == "1"' to 'logged_in_group_id == "1|6"'

it don't work…

how do I make this so both id == "1" and id == "6" can login?


texts:
I upgraded Wygwam 2.7.0 to 3.3.3. I run module update and I cleared my browser's cache. I am getting the next errors:

Uncaught SyntaxError: Unexpected token ILLEGAL (ckeditor.js)
config.js:10 Uncaught ReferenceError: CKEDITOR is not defined (config.js)
wygwam.js:134 Uncaught SyntaxError: Unexpected token ILLEGAL (wygwam.js)

Also I am getting the next error 9 times:

Uncaught ReferenceError: Wygwam is not defined

The files ckeditor.js and wygwam.js are being loaded, so that should not be the problem. I read Channel Images could interfere with Wygwam, but I am not using that. Any ideas on this?

Edit:

I turned off all extensions and removed all modules. That didn't made a difference.

I changed the code in ckeditor.js, but the code did not update in the browser.

After that I changed the file names to ckeditor-b.js and wygwam-b.js and referred in the code to the new files. After this change the new code loads in the browser and the errors I first had, disappeared. But now I have new errors. All of the new errors refer to paths that don't exist.

Edit 2

I reversed the changes I made in Wygwam.

I guess I need to use a timestamp like specified in this link. I tried it by placing it in config.js, but that file does not load in the first place because ckeditor is undefined. Where would the correct placement be?


texts: Solspace Supersearch - Searching entries based on a checkbox field

texts:
I'm using the Solspace Supersearch add-on and am trying to search entries based on a checkbox field. Currently I'm getting all entries within the results. I've tried using name="users-exact" and this doesn't help to filter the returned data either.
Suggestions appreciated,
Thanks!

<form method="post" action="{path='search/results'}/">
    {exp:super_search:search}
    <input type="hidden" name="csrf_token" value="{csrf_token}" />
    <input type="hidden" name="inclusive_keywords" value="no" />
    <input type="hidden" name="redirect_post" value="no" />
    <input type="checkbox" value="Under 16" name="users[]"/> Under 16
    <input type="checkbox" value="16-18" name="users[]"/> 16 - 18
    <input type="checkbox" value="18 and over" name="users[]"/> 18 and over
    <input type="checkbox" value="Women" name="users[]"/> Women
    <input type="checkbox" value="Men" name="users[]"/> Men
    <input type="submit" name="submit" value="Search"/>
    {/exp:super_search:search}
    </form>

{exp:super_search:results channel="zoo_visitor" inclusive_keywords="no" status="Services-id5"}
    {firstname}

{building}, {street}, {town}, {county}

    {/exp:super_search:results}


texts: Freeform 4.x Fileupload forgets my file after error validation

texts:
I have a problem.

I've got a form with some input fields. One of them is a file upload field. When the user submits the form, every field will be validated and the page gets reloaded with the error messages (inline errors), but all fields still showing the users input but the file input forgets the selected file.
Is there any solution to fix this problem?

Thank you!


texts:
I'm working on a site in ExpressionEngine which has been causing all sorts of problems, and we thought we had solved most of them, but now have run into a completely new issue which I can't seem to resolve.

We took this project over from another development firm, and when we try to edit any snippets that were created initially those changes are never saved, the snippets code just reverts back to its original state. We are able to create new snippets and edit those without any issues whatsoever, but can edit any of the pre-created templates from the other firm.

I have cleared the cache both through the admin section in EE, and have cleared out the cache folder in system/expressionengine/cache/, but this still does not solve the issue. I thought then that I would just edit the snippet directly in the database in order to make the changes. My changes will save in the database for those snippets, but it still does not change the code in ExpressionEngine. I have verified that any changes that I make to snippets that I have created are being stored in the database, so I'm really confused as to what could be causing the issue, and why even my changes in the database aren't being reflected in the system.

Thanks


texts:
I have an Exp:resso store setup based off of the example templates bundled with the software. I'm using Stripe.com as my payment gateway, in test mode.
Problem:
After submitting a payment, checkout page 3 returns to itself without proceeding to the return="shop/order/ORDER_HASH".
This is the response that I see in my Stripe control panel.
The site is available at: http://74.52.63.240/shop/product/alessandra
(sorry, stackexchange won't link to an IP address)
There is an SSL cert installed for https://taliahancock.com. For testing purposes, I have my hosts file set to 74.52.63.240 taliahancock.com.
Help is much appreciated. This is my first time using both Exp:resso store and Stripe.


texts:
I have a client site where there was a custom YouVersion button added to WYGWAM that stopped working after updating all the things.

It's working on an Ee 2.6.1 / Wygwam 2.7.1 site.
It's now running EE 2.10 Wygwam 3.3.3 and not working.

There is a YouVersion folder/addon installed in:
/themes/third_party/wygwam/lib/ckeditor/plugins

"YouVersion" is specified in the Wygwam config, alongside a drop-down value of "extraPlugins".

The YouVersion button just doesn't appear. Nor do any of the other I see in the plugins folder and add in the extraPlugins list.

This is on a dev server, but I didn't see any pathing specified that might be affecting things.

Anything else I should look for?


texts:
Maybe I'm just completely missing something, but I've looked through the docs a few times and haven't been able to find an answer. I'm working on building a way for people to go through events and filter them by day and time. Is there a way in Calendar to filter events by day? I haven't been able to find anything about it.

For example, I'd really like to be able to simply put something along the lines of:

{exp:calendar:cal day="thur"}

to only display events that occur on Thursdays. But so far, I haven't been able to find anything along those lines and I'd rather stay away from doing a somewhat complicated if statement. Especially with the number of filters I'm creating. I'm also using some query strings to filter, but I assume that wouldn't be an issue if I can just figure out how to filter events by day.


texts:
I've got a Wygwam field that's using Assets for image uploads. I can upload images and they display fine in the entry form, but when I save the entry and then go look at it on the front end, the image URL is wrong. Here's an example:

Correct URL: /uploads/news/Picture_5.png
Actual URL: /uploads/news/Picture_5.pngPicture_5.png%7D

The strange thing is if I go back into the entry and just resave it, it fixes the problem.

I'm using the latest versions of Assets, Wygwam, and EE.


texts:
I am currently using Expresso Store for non-members to purchase printable tickets for events. I don't want to require account creation for the checkout process but am concerned that a ticket purchaser will not receive an email with the order details.

I would like to be able to modify the order email and resend the confirmation mail. Is there anyway to do this with Expresso Store?


texts:
I would like to match both production and development versions to have identical category ID's without having to import the db every time. In this case it's only one Category which is out of Sync. (category ID 130 should be 137)

Which statement should I use on the db? (mysql noob)


texts: Listing the members/authors who last posted/edited entries in several channels

texts:
My members each have their own "PR-room" where all their entries in several channels + their public profiles are collected and shown to the public.

I want a listings page where the 4 last updated PR-rooms are listed. When I ask for the latest entries/edits with the channel:entries tag on multiple channels, I'll get "duplicates", i.e. if a member has posted in both the "News"- and "Galleries"-channel I'll get two listings for the same member/author.

How can I restrict the list to only one result pr. member, regardless of how many channels they've posted in?


texts: Upgraded to Matrix 2.5.2, now getting white screens

texts:
Earlier today, I updated my site to Matrix 2.5.2 and now, I'm getting white screens on all sorts of channel entries that have a Matrix field.

I get white screens inside the CP when I edit an existing entry that has a Matrix field and also when I view that entry on the front-end.

I do not get white screens when I go to publish an entry in a channel with a Matrix field.

To verify that it was, indeed, Matrix causing the issue, I pulled up an entry that did not have a Matrix field. I then added a Matrix field to its channel, and got a white screen. Removing the Matrix field returned the normal, expected behavior.

FWIW, I am using ExpressionEngine v2.5.5 with 64M of memory in PHP.


texts: Really need the ability to grab the refering url that URL helper offered. Is this available for EE3 or is there an alternative?


texts: When trying to update indexes a get a JS error and it never finished

texts:
I go into the Assets add-on, then to "Update Indexes," select my image group and hit the "Update Indexes" button and get an immediate JS error:

Uncaught SyntaxError: Unexpected token < assets.min.js?2.1.4:10

Is this a known issue? Any suggestions how to fix?

The error is here:


texts: Output Channel Entry {status} to Lowercase Slug

texts:
Is there a documented (core) way to output the status as lowercase?  What if the status is two words - is there a way to output the status with a hyphen?

i.e.:

Status name in Control Panel: In Progress

{status}

Would output:

in-progress

If there isn't a documented way, could you suggest a solution?


texts:
I have this code here

{exp:channel:entries
        author_id="1|CURRENT_USER"
        channel="foo"
        disable="categories|category_fields|member_data|pagination"
        dynamic="no"
        orderby="entry_id"
        sort="asc"
        parse="inward"
}
    ...
{/exp:channel:entries}

This code is supposed to return all the foo entries which as authored by

the admin (author_id=1)
the current logged in user (author_id=45)

The problem that I am having is that it doesn't get the correct entries.

I tried 2 variations as listed below but they didn't work.

author_id="1|{member_id}"
author_id="1|{logged_in_member_id}"

However, when hardcoding the values

author_id="1|45"

It returned the correct entries.

How do I solve this problem since I can't use hardcoded values in the code?


texts:
We've just updated a site to use LS3.5.1 from 3.3.2 and I'm getting the following errors. EE is 2.9.0 - an upgrade is an option as the site is brand new.

Severity: Notice
Message: Undefined index: 7
Filename: keywords/lsf.keywords.php
Line Number: 869

We're using Structure, so for the link to the page we want to use {page_uri}. The results are all working as expected - we're just getting these errors.
I've been into each collection and added the language option. I've re-indexed the collections and switching {page_uri} for {auto_path} removes the error notices.
I've also deleted the module entirely and re-uploaded to make sure we're not missing anything in the filters folder which I've seen could be an issue.
Any thoughts?


texts: Access/Caching Issues with ExpressionEngine

texts:
I am primarily a WordPress developer, but we have a few clients whose sites run on ExpressionEngine. One such client has had a myriad of issues with their site that we've struggled to troubleshoot.
Issues seem to arise when publishing content on a page. Sometimes the changes won't save at all. Sometimes the changes will save once, but any subsequent changes won't save. Sometimes the changes won't appear until hours later. Sometimes the client will get logged off upon publishing.
With the exception of the last one, this seems to me like a caching issue, but I'd love the input of devs who are more familiar with EE. When looking at the add-ons, the only ones that appear relevant to this issue are "Minimee" (though it only appears to be caching CSS/JS files, and "CE Image" + an AWS integration, which should only affect images. I also see some settings in the .htaccess file regarding the "CE Cache Static Driver" if that helps.
Site is wochamber(dot)com. Thanks!


texts: Calendar-based Content Displayal like Lumosity

texts:
Sorry, I don't know how else to describe this (as in the title). So have you all seen Lumosity's logged-in user page? Basically, it shows a calendar with today's date (Sunday, for example), and games to play for that date. Then, when you login the next day, it'll show that it is Tuesday, and it'll give a selection of games to play for Tuesday.

Is there a way to do this with ExpressionEngine, where you pull and display random content each day (different content every 24 hours) from a channel (pool of content)?

Or to make it even more complex, say we want to display 5 content entries. How do we pull 1 entry from 5 different channels, so that the 5 content entries we want to display are all of different types?

Thanks.


texts: "No file" error when trying to upload files via the file manager

texts:
I'm getting a "No file" error when trying to upload files via the native file manager. You can see the browser uploading the image but then you get the rather unhelpful red error message.

I was able to upload files no problem a few weeks ago and the only thing that's changed since then is upgrading to 2.5.5.

Anyone else had this problem?


texts:
Today a site I administer started getting a 404 error when trying to access the CP at www.thedomain.com/admin.php

It was working fine and as far as I know there have been no changes to the system by the client.

A user reported getting the error 'disallowed key characters' - though I have not seen this, for me it just redirects to the site 404 page.

The only thing that is different is that they sent an mail out earlier today (batched in 100s - approx 2000) that might result in high bandwidth/traffic in response, I am not sure if that would impact it though.

Can anyone help shed some light?


texts: I've enabled template debugging on our EE installation on a test server. I can't see the template debugging information when I load pages (either in CPanel or templates). Another developer I work with can see them just fine on his machine. We're both logged in as Super Admin. Any ideas what's wrong?


texts:
Has anyone seen a plugin or a method where I can set a description for a category field?

I have a client who is uploading wrong image dimensions to the category image field. I want to suggest "please use 500x500" for example.


texts: Force cache update Wygwam / Change timestamp

texts:
I was finally able to update Wygwam to the latest version (3.3.3).

One user has contacted me to tell me he only saw gray fields instead of the normal Wygwam fields.

I told him to empty his brower's cache, which worked. I would like to force to update the cache for Wygwam for all users so they don't have to do a thing. (And don't contact me because they are panicking ;) )

I tried placing CKEDITOR.timestamp = '1.0'; in config.js, but than I get an error in the console: illegal character.

Can someone tell me how to force updating the cache in Wygwam?


texts:
I'm working on a membership site utilizing Zoo Visitor.  I have several two "member-related" channels - that either directly (Zoo Visitor) or indirectly (Firms, Resources, News, etc) relate back to the member.  Allowing the member to edit their Zoo Visitor profile on the front end is easy.  What I'm struggling with is allowing them to edit the other related content.

When my client sets up a new user, they can relate that user to a particular Firm in the Firms channel.  Right now, I'm using DS Sub Channel, which is basically a relatable field-type that also let's you create and edit entries from the other channel.  For instance, when my client is setting up a new firm, they can quickly add a user to the Zoo Visitor channel right from the Firms channel, then relate that user to the firm.

What I'm mainly struggling with is how to securely let them edit the firm information that they are related to once they have logged in.  Do I need to have my client set a particular user as the author for that firm?  What if I have more than one member that is related to that firm - can any of them edit the firm information?  Am I missing something obvious, or just overthinking this?

I've been struggling with the best way to handle this but have just put it off until now.  Unfortunately, I'm to the point where I need to solve it once and for all.

Thanks for any suggestions!


texts: how can I conditionally display image if one is attached to channel entry

texts: I have an image that is an optional channel field, and I've got it hard coded into the template.  If someone doesn't attach an image, there is an empty image box on the page for that entry.  How can I tell EE to check for an image, and if its not there, just load the rest of the page normally?


texts: Expression engine 3 - plugin not being picked up

texts:
I am trying to create a simple plugin, however EE is not picking it up so I cannot enable it.

class Age_gate
{
  public static $name         = 'Age Gate';
  public static $version      = '1.0';
  public static $author       = 'Me';
  public static $author_url   = 'http://example.com/';
  public static $description  = 'Makes people verify their age.';
  public static $typography   = FALSE;

    public $return_data = "";

    public function __construct()
    {
        $this->return_data = "Hello World";
    }
}

/* End of file pi.plugin_name.php */


texts: How to get Expresso Store to trigger stripe email receipts?

texts:
How is it possible to get orders from Expresso Store 2 to get Stripe to send email receipts as well as eh ones generated from Expresso?

There is no option to enable them as far as I can tell in Expresso. Is there a way to pass the parameter from the form to get email receipts as per the stripe docs?

https://support.stripe.com/questions/email-receipts

Many thanks,

Tom


texts: create select field using api with name/value pairs

texts: Anyone have any example or documentation to create a select field using the EE api in a channel group with name/value pairs for the select option.  I cannot find anything on how to do that. I am able to create the select field itself, just not with name/value pairs for the options.


texts:
We are getting the above error on an intranet that is running the following code:

{exp:file:entries category_group="2" category="<?= $cat; ?>"}

        {entry_date format="%m/%d/%Y"}
        {title}
        {description}

{/exp:file:entries}

We are getting the following error:

  A PHP Error was encountered Severity: Notice Message: Undefined
  offset: 1 Filename: database/DB_active_rec.php Line Number: 1724

  A PHP Error was encountered Severity: Notice Message: Undefined
  offset: 2 Filename: database/DB_active_rec.php Line Number: 1724

  A PHP Error was encountered Severity: Notice Message: Undefined
  offset: 1 Filename: database/DB_active_rec.php Line Number: 1724

  A PHP Error was encountered Severity: Notice Message: Undefined
  offset: 2 Filename: database/DB_active_rec.php Line Number: 1724

  A PHP Error was encountered Severity: Notice Message: Undefined
  offset: 1 Filename: database/DB_active_rec.php Line Number: 1724

  A PHP Error was encountered Severity: Notice Message: Undefined
  offset: 2 Filename: database/DB_active_rec.php Line Number: 1724

  A PHP Error was encountered Severity: Warning Message: Cannot modify
  header information - headers already sent by (output started at
  /home/national/public_html/system/codeigniter/system/core/Exceptions.php:170)
  Filename: core/Common.php Line Number: 446

  Error Number: 1052 Column 'site_id' in where clause is ambiguous
  SELECT exp_files.file_id, variable_name, variable_data FROM
  (exp_files, exp_global_variables) INNER JOIN exp_file_categories
  ON exp_files.file_id = exp_file_categories.file_id INNER JOIN
  exp_categories ON exp_file_categories.cat_id =
  exp_categories.cat_id WHERE exp_files.site_id IN ('1') AND
  exp_categories.cat_id = '1' AND exp_categories.cat_id = '2'
  AND site_id = '1' Filename: libraries/Template.php Line Number: 2989

This is after an upgrade from EE 2.4 to EE 2.8.1. Not sure what to try... support hasn't responded in over 24 hours. Any help would be greatly appreciated!


texts: How can I download ICS file for an event?

texts: Is there any option where the .ics files gets downloaded on a click at the front-end for the selected event?


texts:
Have this URL:

http://192.168.1.2/univsched#/csf

How can I parse this using EE tags? I want the value: csf

segment_x tags don't work.


texts: a less expensive way of grouping entries by category

texts:
I'm trying to figure out if there's a more performant way of getting entries grouped by category.

As you can see, I'm using NSM Categories module. Right now, this costing me 263 queries and 5 seconds of load. If I remove my if statements (only there because we have different markup for the first entry of a category and also spit out an opening ul element), performance increases dramatically using 63 queries in 2 seconds.

Can anyone suggest any improvements? With something so intensive, we'll be using CE Cache anyway but would like to improve even more before we get to that stage.

{exp:nsm_categories:archive
            enable="entries"
            category_channel_entry_limit="6"
            category="3|6|5|1|7|2"
        }

{category_name}

                {category_channel_entries}
                {if {category_channel_entry_count} == '1'}

{title}

by {exp:playa:children var_prefix="children" entry_id="{entry_id}" backspace="5"}{children:title} and {/exp:playa:children}

                {/if}

                {if {category_channel_entry_count} == '2'}

                {/if}
                {if {category_channel_entry_count} > '1'}

                    {title}

                {/if}

                {/category_channel_entries}

            {/exp:nsm_categories:archive}


texts:
I'm using Expression Engine's Channel Entries API and am having an issue with it.

User can add credits to their name. The storing of these credits work fine. If they choose to update their profile later on, it goes wrong.

I have this:

$data = array(
  'edit_date'       => time(),
  'entry_id'        => $credit_entry_id,
  'title'           => $credit["credit_upd_title_" . $credit_entry_id],
  'field_id_90' => $credit["credit_upd_director_" . $credit_entry_id],
  'field_ft_90' => 'none',
  'field_id_91' => $credit["credit_upd_year_" . $credit_entry_id],
  'field_ft_91' => 'none',
  'field_id_93' => $credit["credit_upd_link_" . $credit_entry_id],
  'field_ft_93' => 'xhtml',
  'category'        => $cat_arr
);

When I dump this data, the data is correct. When I actually run:

$this->EE->api_channel_entries->save_entry($data, (int) $this->credit_channel_id, (int) $credit_entry_id)

everyting gets updated correctly EXCEPT for the title. The title instead is updated with the title of the parent_entry (this are playa entries).

Am I missing something in the usage of the API or am I encountering a bug?


texts: Add an ID to radio button within Channel Form

texts:
I need to add an ID attribute to a PT Checkbox within Channel Form so I can target it with JS.

Any idea how I can do this?

The standard usage for Channel Form is '{field:my_radio_button}' which doesn't give me the flexibility of adding and ID.

Input appreciated!


texts: Multi-Evironment config bootstrap above webroot on a single server

texts:
I'm working on a project that only has one server to work with. That means the production and development server are the same and development is a sub domain (dev.example.com). In the past when I've run into this it hasn't been an issue to use the Focus Labs multi environment bootstrap setup. I just put both system folders above webroot:

Pulblic_html

www.example.com

system

dev.example.com

system

However on this project we want to put the system folder above webroot:

system
Public_html

www.example.com

That presents a problem when putting dev on the same server. They would both point to the same folder above webroot. Is there a way to have the bootstrap file look for a different system folder above webroot?

system
system_dev
public_html

www.example.com
dev.example.com

I trie hacking around the config file, but didn't have any luck. Anyone do this? It seems like a pretty common scenario people would encounter.


texts:
I have this conditional

{if '{logged_in_group_id}' == '{exp:config_variables:get name="xxxxx"}'}...

where {logged_in_group_id} is equal to 3

and {exp:config_variables:get name="xxxxx"} is equal to 3

But why does this conditional return false?

I have also tried using a literal value

{if '{logged_in_group_id}' == '3'}...
{if '3' == '{exp:config_variables:get name="xxxxx"}'}...

but they still returned false.

What is wrong with this?


texts: Can the annotation class be deactivated?

texts:
I've just upgraded my site from 2.8.1 to 2.9.3 and now certain bits of it are failing. It seems that a new "Template Runtime Annotation Class" introduced in 2.9.0 is randomly dumping comment markers into rendered templates (for reasons I still don't truly fathom) and it's causing all the parts of my site which are expecting good json to fail.
Is there any way I can turn this "feature" off, even if it's only conditionally?

And help here is much appreciated.

Andy


texts: Why has Fieldtypes disappeared in CP menu?

texts:
Why would the Fieldtypes option under Add-ons not be available in the CP in EE 2.1.1?

I've inherited a site, so have no knowledge of a broken update or other such cause.  Matrix seems to be properly installed, is working on the entry page and the site is populating the content properly.

Has anyone seen this before?

Thanks very much,
Doug


texts: Are there limitations to ExpressionEngine's JavaScript templates?

texts:
I recently upgraded a couple of sites to EE2.5.5. I was utilizing templates to store JQuery and its plugins, combining all within an index file of my 'scripts' group. This isn't necessarily best practice, or how I typically include JQuery in my more recent builds, but it worked for the sites for a very long time. Upon completing the EE2 upgrade, JQuery included in a template produces a script error, breaking the site's scripting.

Here is an example error from firebug using JQuery 1.7.1:

SyntaxError: unterminated string literal
...entElement;q.setAttribute("className","t"),q.innerHTML="<link/>

<

This occurs on all versions of JQuery I've tried, minified or not, and produces a variety of errors.

The real answer is "Don't load JQuery from a template", but I think the fact that EE is somehow breaking JS code when using a Javascript template type is something to note and question. Are there limitations to 'javascript' template types?


texts: Solspace Calendar - Issues with surrounding beginning of cal loops with conditionals

texts:
We need to tell whether the user has chosen a specific date or has just defaulted to our calendar:

example.com/calendar
example.com/calendar/11/31/2013

We're trying the following:

{if segment_2 == ""}
  {exp:calendar:cal date_range_start="today" date_range_end="today" show_days="1" pad_short_weeks="n"}
{if:else}
  {exp:calendar:cal date_range_start="{segment_4}-{segment_2}-{segment_3}" date_range_end="{segment_4}-{segment_2}-{segment_3}" show_days="1" pad_short_weeks="n"}
{/if}
  ... do stuff with the events for the given day here.
{/exp:calendar:cal}

When we go to the /calendar page all of the data returned is fine, however, when we go to a specific date page, the data returned is for the current day (ie the data that's returned on the /calendar page).

Does anybody know as to why this is happening?


texts:
We have a text field were we want to put quite big HTML content (955 lines). We were able to do it without problem a few weeks ago, but now it's cutting the content, apparently always at the same point (around 65.000 characters).

EE let's you copy all the content, but when you save the page, it cuts it.

We haven't changed anything in our EE installation lately, but we made some changes to our PHP configuration for other reasons (so I guess it could be PHP related, but we are not sure and don't know how to fix it).

We've tried "pasting into the field and selecting another field", as suggested in https://expressionengine.com/forums/archive/topic/229708/problems-cutting-pasting-to-textarea-channel-fields, without luck. I haven't found more articles regarding this problem.

We are using version 2.10.1 - Build Date: 20150501.

Any clues?


texts:
When I choose Stripe for my payment option, it only has one field for an API key.  Stripe apparently requires both a live secret and a live publishable key for taking payments.  Generally the secret key is used on the server side and the publishable key is put into the HTML of the checkout form.  Your documentation, however, doesn't seem to mention where it should be in your particular set of templates.

Should I just use Stripe's documentation on that, since yours is silent on the matter, or is there a particular way I need to reference that publishable key in your checkout template(s)?

And if I use the Stripe method, do I need the WHOLE Stripe Header code block I've seen used in the header in other examples:

<script type="text/javascript">
$(document).ready(function() {
$.getScript('https://js.stripe.com/v1/', function() {Stripe.setPublishableKey('pk_live_xxxxxxxxxxxxxxxxxxxxxxxx');});
  /* Ensure your checkout submit button has id="checkout_submit" */
 $("#checkout_submit").click(function() {

/* Only handle requests for Stripe gateway */
if (this.form.elements["payment_method"].value == "stripe") {

  /* Temporarily disable the checkout submit button */
  $("#checkout_submit").attr('disabled', true);

  /* Create a Stripe card token */
  Stripe.createToken({
    name: $("#payment_name").val(),
    number: $("#payment_card_no").val(),
    cvc: $("#payment_card_csc").val(),
    exp_month: $("#payment_exp_month").val(),
    exp_year: $("#payment_exp_year").val()
  }, stripeResponseHandler);

  /* We don't want to submit the form yet */
  return false;
}
  });
  /* This function is triggered once Stripe has generated the token */
  function stripeResponseHandler(status, response) {
/* Re-enable the checkout submit button */
$("#checkout_submit").attr('disabled', false);

/* Check whether we have a valid credit card */
if (response.error) {alert(response.error.message);} else {
  /* Set the card token and submit the checkout form */
  $("#payment_token").val(response['id']);
  $("#checkout_submit").unbind("click").click();
}
 }
});
</script>
<!-- End Stripe header code -->

Or should I just call it by itself?

 <script type="text/javascript">Stripe.setPublishableKey('MYPUBLISHABLEAPIKEY');</script>


texts:
I'm overhauling a legacy ee 1.7 site and they use freeform pretty heavily; currently they have about 170 freeform fields(!) - is there a way to import them into a fresh install of freeform? I haven't tried to go through an upgrade path with this and I'm using a clean 2.10 build with datagrab to pull content in.

I don't want to pull in the legacy freeform data particularly but if I could import all those fields it would save a lot of time/sanity!


texts:
I want to set a condition for category in exp channel tag which should result in a condition:
"where category = 3 and category=2"
How can I give this condition in exp?
 "category=3&2 " and category="3|2"  not getting the correct results,they return the same query
  If anyone knows, please help.

Many Thanks


texts: Low Search pagination not including passed keywords

texts:
This is what I have:

{exp:low_search:form
    result_page="search/clinical-trials/"
    collection="clinical-trials"
}
    <input type="search" name="keywords" placeholder="Search..." value="{low_search_keywords}">
    <button type="submit" class="button button-postfix-search"></button>
{/exp:low_search:form}

{exp:low_search:results
    collection="clinical-trials"
    status="open"
    limit="10"
    dynamic="no"
    paginate="both"
    pagination_base="search/clinical-trials"
    status="open"
    keywords:inflect="yes"
    keywords:lang="en"
    keywords:mode="auto"
    keywords:loose="right"
    keywords:stem="yes"
}

    {title}

    {paginate}

        {pagination_links}
        {first_page}

First

        {/first_page}
        {previous_page}

&laquo; Previous

        {/previous_page}
        {page}

{pagination_page_number}

        {/page}
        {next_page}

Next &raquo;

        {/next_page}
        {last_page}

Last

        {/last_page}
        {/pagination_links}

    {/paginate}

{/exp:low_search:results}

It seems like everything is working properly until I look at the pagination URL after I pass a keyword. For example, I entered "cancer" as a keyword in the form and hit submit. This is the page URL:

http://www.example.com/search/clinical-trials?keywords=cancer

But the pagination link is:

http://www.example.com/search/clinical-trials/P10

It's lacking the keywords query! It should be:

http://www.example.com/search/clinical-trials/P10?keywords=cancer

I'm not sure what's going on here? I have the same code in other pages on my site and the pagination links seem to be forming properly.


texts: Updating from Safecracker to Channel Form

texts:
I just updated to EE 2.7.1 and now using Channel Form in place of Safecracker. I can't seem to sort these two bugs:

1) Any existing 'file' custom fields behave as if they are required, throwing up the error "You did not select a file to upload." if left empty. (edit: this also happens in the CP, not just Channel Form problem)

2) The datepicker creates undefined text like this: "2013-10-01un1efine1". It does work if I use {field:my_date} but then get the localised/fixed select menu, and the only way to remove it is to hide it using css.

I'd be interested to hear anyone else's problems with the Safecracker to Channel Form problems.


texts:
I have created channel 'History' and in Edit Group Assignments I have chosen 'None' as Status Group, though I am able to have option selecting Status during publish entries and am able to filter statuses with open and closed.

I would like what is the purpose of Status Group(None/Statuses) in channel Edit Preference??


texts: Limit Safecracker access to specific entries, using member groups and categories

texts:
I'm wondering about best practice, and if I'm setting myself up for trouble.

The goal:
Limit an editor's Safecracker access to specific entries within a channel, based on the member group of the editor.

The setup:
I'm using Zoo Visitor for members as channel entries. Thinking of using categories to limit Safecracker access within a channel.

An example:
my_member_channel has an entry named Dan, who is in my_editors member group. Dan needs to be able to edit other users in the my_member_channel that have the category "Editor Category" selected, but no others.

This seems to work:

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

    {categories}

        {if category_id == 1 && (member_group == '6' || member_group == '8')}
            {!--
                If the category "Editor Category" (1) is selected, and the logged in user is in my_standard_admin (6) or my_editors (8) member group.
                --}

            {exp:safecracker
                channel="my_member_channel"
                entry_id="{segment_3}"
            }

                Various fields in the channel to be edited here,
                including a Matrix field with a Playa column:
                {field:my_matrix_field}

                submit button
            {/exp:safecracker}

        {/if}

    {/categories}

{/exp:channel:entries}

I tested this lightly, but it seems to work fine. So if I continue down this route I'll create "pseudo member categories" to be used in various channels and then conditionally check before showing the Safecracker form.

Am I missing a much more stable approach? I would prefer doing this all using the CP, but can't seem to work out a way to dole out the permissions in a custom enough way, therefore Safecracker.


texts: Is the date_range_start parameter based on the entry date?

texts:
I assumed the tag would be based on the start date of an event, however I have this code

{exp:calendar:events orderby="event_start_date" author_id="{member_id}"}

which shows all entries. When I add the date_range_start parameter

{exp:calendar:events orderby="event_start_date" author_id="{member_id}" date_range_start="today"}

no entries appear, even though there are two events with start dates in May, 2014.


texts: Get Absolute Results outside of Low Search Results tag pair

texts:
Is there any way to get the absolute results on a Low Search results page outside of the {exp:low_search:results} tag pair?

Something like:

{exp:low_search:absolute_results query="" collection="" limit=""}

So I can do this without the tag pair extra coding:

<a href="#venues">
    Show all {exp:low_search:absolute_results query="{segment_2}" collection="venues"} Venues found
</a>

Using the tag pair once or twice on a page is fine but it starts to get unwieldy after a while because I am grouping the collections on Bootstrap tabs and other UI foolery.


texts: Simple Search: search form redirects to home page

texts:
We had been developing a site on a temp URL with Media Temple and on Friday we launched live. We gave the IP to the client and they set the A record. Once the A record was set we cannot use the search feature. According to the search logs the last successful search was 15 minutes before site IP went to client for the A record.

So far we have stripped out and added back everything in the htaccess, we have tried Low Search addon, we have made test pages and tested the code piece by piece and nothing has worked. We checked all of the settings internally as well.

Has anyone else had this issue? It was working fine until the A record was set. I am open to suggestions :)


texts:
Not strictly EE but I'm flummoxed all the same.

I'm trying to clean up zyteq.com.au and on this URL (http://zyteq.propeller-dev2.com/products/software) I've taken out jquery Match Height and resolved the product container sizing with CSS.

However this javascript remains and is causing all three product links in the row to direct to the URL of the first:-

    $("#products_box").children().hover(

    function(){

        $(this).addClass("hover");

    },

    function(){

        $(this).removeClass("hover");

    }

).click(function(e){

    url = $(this).find("a").first().attr("href");

    if (typeof(url) != 'undefined') {

        window.location = url;

        e.preventDefault();

    }

});

Any ideas what that does and why anyone would use it? Is it connected to jquery match height or CartThrob in any way?

Just to be sure, the last developers included it in no less than three js files…
If I comment it out the link issue is solved but without understanding what it does I'm reluctant to remove it altogether.


texts:
I'm using the following code in my template for a Mailing List form, but it doesn't seem to be working.

{exp:mailinglist:form
    list="default"
}

        Email address
        <input type="text" class="form-control" id="email" placeholder="Enter email" name="email" value="{email}">

    <input type="submit" name="submit" value="Submit" class="btn btn-primary">
{/exp:mailinglist:form}

The form seems to post though no email appears in my default mailing list. Any thoughts on what could be the issue? I'm on 2.7 and am using .htaccess to remove the index.php.


texts: 100 Spam Registrations Per Day Even With Low NoSpam

texts:
We installed Low NoSpam recently and already have captcha enabled and in the Low NoSpam documentation it reads like it will delete all spam registrations, but instead they're just sitting in our database waiting to be deleted. Is this the case and we just need to manually delete them? Or should they automatically be purged. Or is something else wrong? At one point before we caught the issue we had over 800,000 registrations on the site that should only have about few hundred at this point.

Thanks for any help you can offer.


texts:
Good Morning Everyone,

im sorry if this is duplicating my post on Ellislab forum, but I though id attack from all angles.

Im new to EE and Cartthrob, however I have an issue after each attempt at installing Cartthrob.

EE installs ok, however during the installation of templates and template store from the cartthrob I get an Internal Server Error, after a refrsh everything seems ok, however when i active the test store most of the pages produce the following error

Error
Unable to load requested field type file:  ft.rel.php.
Confirm the fieldtype file is located in the expressionengine/third_party/ directory

I spoke to CT, but they say this error relates to EE not CT.

Any advise would be greatly appreciated


texts: Solspace Reset Password Error 'The code number you submitted was not found in the database'

texts:
I am using Solpaces User module (v4.0.9) on a recent EE build (v3.5.10) and the reset password feature is throwing up the following error:

The code number you submitted was not found in the database.

This message appears on a system message page and I'm struggling to figure out why this is happening. Everything works quite smoothly up until that point. The reset email comes through and the link takes me to the right place. Its only when I type in my new password and confirm it do I get this error.

Can anybody shed any light on why it might be doing this?

Thanks


texts: Solspace FreeForm 4.2.4 (Free) - Cannot create new fields - PHP Errors

texts:
EE v2.10.3

Freeform Free 4.2.4

Having trouble creating new fields.

When I hit the "New Field" button I get the following errors...

    A PHP Error was encountered
Severity: Notice
Message: Undefined index: checkbox
Filename: libraries/Freeform_fields.php
Line Number: 246

A PHP Error was encountered
Severity: Notice
Message: Undefined index: checkbox_group
Filename: libraries/Freeform_fields.php
Line Number: 246

A PHP Error was encountered
Severity: Notice
Message: Undefined index: country_select
Filename: libraries/Freeform_fields.php
Line Number: 246

A PHP Error was encountered
Severity: Notice
Message: Undefined index: hidden
Filename: libraries/Freeform_fields.php
Line Number: 246

A PHP Error was encountered
Severity: Notice
Message: Undefined index: multiselect
Filename: libraries/Freeform_fields.php
Line Number: 246

A PHP Error was encountered
Severity: Notice
Message: Undefined index: province_select
Filename: libraries/Freeform_fields.php
Line Number: 246

A PHP Error was encountered
Severity: Notice
Message: Undefined index: radio
Filename: libraries/Freeform_fields.php
Line Number: 246

A PHP Error was encountered
Severity: Notice
Message: Undefined index: select
Filename: libraries/Freeform_fields.php
Line Number: 246

A PHP Error was encountered
Severity: Notice
Message: Undefined index: state_select
Filename: libraries/Freeform_fields.php
Line Number: 246

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /path/to/public_html/system/codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 475

The Field Type select box is also populated with php errors.

I have tried a fresh install of the addon too, by removing the existing system + theme folders and uploading fresh.

Thanks


texts: Local Php Issue possibly related to Mac Upgrade?

texts:
I have some local sites for dev on my Mac that are the latest version of EE2. Not updated for years and clients for various reasons don't want to upgrade to EE5. Fair enough.
Now they want some changes but when I go to access the sites I get a blank page - this is because I've upgraded to MacOS Mojave since last accessing those EE2 sites and it is running PHP Version 7.1.33.
I assume this is the issue. All EE5 sites work fine but I have a feeling that EE2 should work with Php7 - maybe is an add-on issue?
Any suggestions for troubleshooting?


texts:
I am trying to get an existing EE site working with MSM. I upgraded the site earlier from 2.1.2 to 2.9.3. Once that was working, I then installed MSM 2.1.7. When I enable MSM in the CP I get several PHP errors:

Message: apc_delete_file() [function.apc-delete-file]: Could not stat file /nfs/c10/h04/mnt/123456/domains/domain.com/html/system/expressionengine/config/config.php, unable to delete from cache.
Filename: core/EE_Config.php
Line Number: 1222

Message: Cannot modify header information - headers already sent by (output started at /nfs/c10/h04/mnt/123456/domains/domain.com/html/system/codeigniter/system/core/Exceptions.php:170)
Filename: core/EE_Input.php
Line Number: 213

Message: Cannot modify header information - headers already sent by (output started at /nfs/c10/h04/mnt/123456/domains/domain.com/html/system/codeigniter/system/core/Exceptions.php:170)
Filename: libraries/Functions.php
Line Number: 446

Once this happens, trying to access any page on the site gives "Site Error: Unable to Load Site Preferences; No Preferences Found" messages. Disabling MSM in the config.php gets the site working again, but how do I complete this so that MSM is working?


texts: Relationships – How to know which one is the parent and which one is the child

texts:
I am designing a website for a fashion label who have collections every season, and they do multiple 'projects' for each collection. For instance artwork, videos etc. For instance Collection A may have 3 projects attached to it, and Collection B may have 2 projects.

Collections
      - title (text input)
      - url_title (text input)
      - collection-year (text input)
      - season (select dropdown)
      - images (channel images)

Projects
      - title (text input)
      - url_title (text input)
      - project-collection (relationship to collection)
      - project-images (channel images)

Relationships seem like the best way to link a project with a collection. What I'm struggling with though is creating a submenu for the projects that are grouped by collection. For instance...

Collection A
- Project 1A
- Project 2A
- Project 3A

Collection B
- Project 1B
- Project 2B

Any ideas?

Thanks!
Michael


texts: installing EE on web server in sub-directory...URLs...ugh

texts:
I'm new to expression engine and I run into this aggravating problem EVERY time I install EE. Whenever I upload my templates, my URLS break almost everytime. The only way to fix it is to go in an manuelly tag every image IMAGE/CSS/JS URL with {base_site} and then ensure my folders are all on the base of the my site/sub-folder. Is there any other way to ensure my URLs won't break at upload other than what I just said? It's just so time-consuming to have to do it all manuelly? Once again, this is in a sub-direction (i.e. website.com/_development_sites/mysite).

See the below code for an example. Do I really have to insert the {base_url} for all my JS/CSS files and IMAGE tags and image links in order for them to work? Isn't there a faster work around so I don't have to spend so much time customizing my HTML template before uploading?

Any ideas?

`

<link rel="stylesheet" href="{base_url}css/overrides.css" type="text/css" />
<link rel="stylesheet" href="{base_url}css/responsive.css" type="text/css" />
<meta name="viewport" content="width=device-width, initial-scale=1" />`


texts: How do you send CartThrob Wishlist contents via email?

texts:
Looking through the CT Wishlist add-on docs it doesn't say how to email a wishlists contents to another person or email address.

Docs link: http://cartthrob.com/docs/docs_wish-list/#sample-user-flow

I would like to use it for an 'add to quote' feature where certain products (which are not simple products to price) are added to a customers wishlist before they are sent over (via email) to the site owners ready for them to quote by emailing the customer directly.

It says in the docs that it can be done but not how to do it. Can someone please let me know this is definitely possible before purchasing?

Thanks.


texts: Default .htaccess rewrite block for EE in a subfolder?

texts:
Is there a default .htaccess rewrite block for EE while running it in a subfolder?

I have EE in /eefolder/ i.e., mydomain.com/eefolder/  with simply

RewriteEngine on

in the .htaccess file in that folder.

I have WordPress in root, i.e. mydomain.com with its own .htaccess file and rewrite block.

When I try to view any URL in EE, such as mydomain.com/eefolder/site , I get a 404 from either WordPress or the default 404 from the hosting service.

What do I need in .htaccess in the eefolder? Is there a default rewrite block? I have the index.php file in the eefolder.

Or is there another configuration to change to be able to view the EE site and not get a 404?


texts: categories inside the Edit Entry publish tab?

texts:
It is possible to display categories inside the Edit Entry publish tab with EE3, to facilitate the use of publishing ?

Does an add-on exist to display the categories on this first tab ?


texts: How to get page_url's of entries in other sites (MSM)

texts:
ExpressionEngine 2.7.2

We have an EE/MSM install that's managing 2 different websites (desktop and mobile). I'm building a tool that allows the administrators to generate custom URLs and I need to output the Pages module URLs for both websites. Here's my code:

<select name="page" id="page">
    <option value="">Select Page...</option>
    <optgroup label="Desktop Site">
        {exp:channel:entries channel='content_page|coupons_page|garage_door_repair_page' show_pages='only' sort='asc' orderby='title' dynamic='no' site='default_site'}
            <option value="{page_url}">{title}</option>
        {/exp:channel:entries}
    </optgroup>
    <optgroup label="Mobile Site">
        {exp:channel:entries channel='content_page' show_pages='only' sort='asc' orderby='title' dynamic='no' site='mobile_site'}
            <option value="{page_url}">{title}</option>
        {/exp:channel:entries}
    </optgroup>
</select>

The default site code (first channel:entries tag) outputs as I'd expect. On the mobile site entries (second channel:entries tag), though, no entries are output at all. If I remove the show_pages attribute the entries will output but the {page_url} outputs blank. I've checked every entry on the mobile site (there's only 3) and all of them have page URLs that are working normally. The template this code resides in lives on the desktop site.

Is this a bug or am I doing something wrong?


texts: Email From Template addons php tag not working

texts:
when We have add code like this in email form template then php code not working.

code like this.

{exp:email_from_template to="mailid" from="mailid"  echo="off" mailtype="html" }
     //php code $test= "hi";

    {exp:channel:entries channel="channel" dynamic="no" disable="pagination|member_data|categories" }

         //php code  echo $test;

    {/exp:channel:entries}

 {/exp:email_form_template}

above code echo test not display , We have already set allow php ="yes" parse order="output" for template.

let me know any idea for this.

Thanks,
Piyush


texts:
I'm relatively new to EE and hoping it will for me to power a web app prototype I'm working on.

Is there anyway build a public front end that allows users to edit or publish entries without logging into EE? I've not been able to find any documentation would suggest this is possible.


texts:
This has been asked by @jrothafer before, but no answer was provided:

Load framework outside of folder structure

I need to develop several APIs for our web application. Mostly, these are data synchronization tasks. These APIs will run out of a an API folder on root as such:

/apis/xyz_api/synchronize.php

Once I have the external data loaded into arrays, I would like to use EE2 to populate/update the channels. It will be much more concise if I can use the EE models for this, rather than MySQL queries.

So, how do I instantiate EE in this case?

Than you for your help.


texts:
{!-- rant --}

I don't seem to get much in the way of support via DevDemon support request (even though I'm still within the 60-day purchase window). I've ran into multiple random bugs with the recently released EE3 version,
two-weeks on, still waiting for support to get back.

I've got some issues, however, that I can't wait on any longer, so hoping the community can provide a helping hand!

{!-- /rant --}

It seems there is a JS error when attempting to batch delete vouchers (anything more than 5 at a time).

Also, with that, is there a way to allow a voucher to be used by multiple users as apposed to one-off?

Any help on this appreciated!!


texts:
I just attempted to use Updater 3.2.4 to update my test site from EE2.7.2 to 2.10.1. The process froze up while it was installing EE. Now all my pages, both CP and front end are just blank pages with empty html, head and body tags. I don't know if this is a database issue or a file issue. Has anyone seen this before? Any help is appreciated.

Thanks.


texts:
I am busy with a site which should allow authenticated users to upload and download files, however am having issues.

Firstly i created custom channel fields, which allow file uploads. the image file upload works, the audio upload field also works but when i try upload a video it gives an error the video file 1.1MB.

Am i missing a step?


texts:
EE 2.10.1
Playa 4.5.2
Stash 2.6.7

I'm building out a particularly complex single entry page and can't seem to wrap my head around how to approach what needs to be done.

I have a Trips channel with two playa fields Related Outpost and Related Activity. On the individual trip page I need to list all trips that are in the same outpost (reverse relationship) and sort them by Activity.

So Trip A takes place at the Green Outpost. I need to show all trips that also take place at the Green Outpost and then sort/filter like this:

Rafting (activity)

trip a
trip b
trip c

Hiking (activity)

trip d
trip e

I know it's not possible to filter/search by a playa field natively, but would this be possible using Stash and if so, where would I start with this?

Currently I have the following, stripped down template, where I suspect that each Activity (Rafting etc) would be an embed

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

        {trip_outpost}
{title}
{/trip_outpost}

Rafting

Trip Title

            Trip Details Here

Trip Title

            Trip Details Here

Trip Title

            Trip Details Here

Hiking

Trip Title

            Trip Details Here

Trip Title

            Trip Details Here

{/exp:channel:entries}


texts:
I'm trying to upload some files to EE via Assets but they keep failing.

This is the response:

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

And this is the response in Console:

  http://xxxxxxxx.co.uk/index.php?folder=4&ACT=20&qqfile=favicon.png
  403 (Forbidden)

I've tried a few things...

Changed permissions on folders (And sub folders) in my uploads folder to 777
Changed permissions on Cache folder (And sub folders) to 777

I also double checked the upload path and upload URL and it's correct.

When I upload the files via FTP and then update the Indexes via Assets it syncs perfectly, but they won't upload via the CMS.

Any ideas?


texts:
I recently moved a site to a new server and everything went very well. There is one page that requires http authentication to access it. One member group was not able to log in, so I reset the password for that member, but they are not still not able to log into the page and I am not able to log in as Super Admin either. If I remove the access restrictions I can access the page without issue.

Running EE 2.7.2 and yes there is an .htaccess file.

Any suggestions?