texts:
I am building an EE plugin and need to store some information in a session.

How can I save and retrieve information from a session in an EE plugin?

Thanks


texts: Simple Contact form returning "Forbidden (403) CSRF verification failed. Request aborted." on submission

texts:
I have set up a simple contact form on a new installation of Expression Engine 5.2. Email module is installed. This submits ok on localhost but on the server I am getting hit with the titular error.

My code:

                    {exp:email:contact_form recipients=my@email.com" charset="utf-8" form_class="iwd-standard-form"}

                    <fieldset class="iwd-fieldset-contained">
                        <legend>Your contact details</legend>

                                *Name:

                                <input name="name" placeholder="Your name" type="text">

                                *Email:

                                <input name="from" placeholder="Your email" type="text" value="" />

                    </fieldset>
                    <fieldset class="iwd-fieldset-contained">
                        <legend>Leave us a message</legend>

                                Message:

                                <textarea name="message" placeholder="Enter message" style="height:200px"></textarea>

                    </fieldset>

                    <fieldset class="iwd-fieldset-uncontained">

                            <input type="hidden" name="csrf_token" value="{csrf_token}">
                            <button id="form-submit" type="submit" class="iwd-button submit-form">Submit</button>

                    </fieldset>

                {/exp:email:contact_form}


texts: Not able to log into EE 2.9.0 when Cookie Consent is enable

texts:
I've recently updated a site from EE 2.7.3 to 2.9.0. A client has pointed out to me that she can't log into the CP but instead get's the message:

This form has expired. Please refresh and try again.

I didn't get this message using Opera but managed to repeat the error using Firefox (on OSX).

After much fruitless searching around and playing with session settings with the CP, I tried disabling Cookie Consent and suddenly was able to log in using Firefox.

The problem is that I really need to have Cookie Consent enabled because of the nature of the client's business. So I'm wondering if anyone has had this same problem and has found a work-around?

I'm also using the latest version of Cookie Consent 1.1


texts: Displaying form submission errors inline

texts: Is there module to improve the errors in Expression engine ? The in build system is pretty cumbersome and without spending time building multiple form validation classes I would like something that does not send you to the error page but shows the errors on the current page.


texts:
I have installed visitor module version 4.0.2 that gives me this error.

I tried in EE3, EE4 both but get same error everywhere when install module. Any idea?


texts:
How can I add more than one entry to this. How do I add for more numerical ids?

{if:elseif entry_id == 216}


texts:
The website I am working on at the moment in ExpressionEngine2 requires candidates to apply for a job which is listed on the website. As soon as they apply for the job, the website consultant needs to be notified via email that a candidate has applied for job X.

I am using a module to set up and send the email (wording, attachments, settings etc) and the email only contains one line to send the email ($send = $this->EE->email->Send();), but sometimes sends out a double email - the exact same one.

How could this be?


texts: Quick and simple way to determine which templates are used on an EE site and where

texts:
I have inherited a large EE site (upgraded to 2.9.2) that is, frankly, a mess on the backend (EE CP). There are many template groups and templates that appear to have been left behind from multiple site redesign iterations over the past 6 years and I am not sure if they are used any more, and even if they are, where they are used. Additionally they are not saved to disk - they are just stored in the db - and I want to version control all the templates, but only what is current, not the legacy junk, so I need to turn back on template writing to disk, at the very least to initially dump out the used templates so I can get them into Git.

I want to clean it up for both my and my content creators sanity. Is there a simple way (I don't care whether it is via the EE CP, PHP, or MySQL CLI - I am fluent in all) that I can easily determine if a template is used on any Pages in the site? If I used the MySQL CLI which EE table(s) should I be searching for? Are templates stored in the db by name, or as key-value pairs (PK integer and name), and are the templates names/PK integer used as foreign keys in other tables? I need to know how to isolate everything unused.

Thanks in advance.


texts: Multiple SubDomains Pointing to Different EE Posts

texts:
What's the best way to get this to work?

I need to get a series of different subdomains to point to specific posts (URLs) from an EE site like this:

sub.domain-1.com --> domain.com/post1
sub.domain-2.com --> domain.com/post2
sub.domain-3.com --> domain.com/post3

Would this all be done at the domain host where the subdomain is being set up?


texts: Showing entries based on URl segment and relationship

texts:
I have a timetable of agenda times in a channel called "agenda" with a relationship to "events"

I'm trying to control which agenda times show using the URL, but no events show up. In "agenda" you pick 1 "event" to be related with.

I want only the agenda items from "my-event" if it is the 3rd segment to show.

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

  {exp:channel:entries channel="agenda" orderby="date" sort="asc"   }

{if agenda_event:url_title == segment_3}

      {agenda_start format="%g:%i"}
      {title}
      {agenda_speakers}{if agenda_speakers:speaker_intro != ""}{agenda_speakers:speaker_intro}{/if} {agenda_speakers:speaker_first_name} {agenda_speakers:speaker_last_name}{if agenda_speakers:speaker_outro != ""},{agenda_speakers:speaker_outro}{/if}{/agenda_speakers}

{/if}

      {/exp:channel:entries}


texts: Is it possible to output exp:channel:category_archive listings to match the Low Reorder order of the entries?

texts:
Before I start adding multiple Channel Entries tags to a template, and getting my hands dirty with custom SQL, I wanted to see if this was possible. I'm using exp:channel:category_archive in the sidebar of a page and would love the output to respect the Low Reorder order on the list of entries it outputs.

Category Sorted Entries doesn't seem to support this yet http://rog.ee/category_sorted_entries and according to LR support this doesn't seem possible https://getsatisfaction.com/low/topics/category_archives_wont_reorder

Has anyone solved this?


texts:
Busy developing some custom modules for EE.  Everything is going swimmingly, except I can't seem to find any documentation on how to filter results in my modules tags.

What I am looking to achieve is something like:

{exp:my_mod:my_func month="June"}
    ...
{/exp:my_mod:my_func}

My hope is to filter results here and only show results for the month of June, rather than doing this filtering in the .mod file.  Is this a simple thing to achieve of should I just do it manually on the back end (which would mean creating 12 separate modules)


texts: Super Search and Primary Category - conditonal if searched categories includes entry's primary category

texts:
I have a very complex situation in which I need to pull out one entry from a Super Search results loop and re-inject it in a different location on the page. I'm planning on using NSM Transplant for that part and some early tests indicate it will work fine.

The tricky part is writing a conditional inside the Super Search loop that will identify the correct entry to pull out via Transplant. I want to only transplant the entry if the category or categories searched include the Primary Category of that entry - which in my case is a location.

So in plain english this is the conditional I want:

  If {this_entry's_primary_category} is contained in {super_search_category} then do something with Transplant, otherwise, leave it alone

I'm using CE String so my first thought was to check if the {super_search_category} string contained the primary category URL title with strpos, something like this (this is inside exp:super_search:results):

{if "{exp:ce_str:ing strpos='{exp:primary_category entry_id='{entry_id}'}{primary_category_url_title}{/exp:primary_category}'}{super_search_category}{/exp:ce_str:ing}" != "-1"}

This always returns false - even on the entry where the primary category should be found within super search category. I think it's because {super_search_category} only works outside the exp:super_search:results tag. Is this correct?

Any suggestions for the easiest way to test to see if an entry's Primary Category is included in category or categories searched on a Super Search results page?

 Edit to add some recent code examples

This is on a Super Search results page:

{exp:stash:set name="ss-cats" parse_tags="yes" parse_depth="2"}{super_search_category}{/exp:stash:set}

{exp:super_search:results
    redirect_post="yes"
    channel="directory"
    status="Open|Featured"
    performance="off"
    category_indicator="category_url_title"
    search-words-within-words="yes"
    inclusive_categories="yes"
    orderby="vendor-group+desc+vip+desc+rating_field-rating+desc+title+asc"
    search_in="title|vendor-person|about|extended|address|awards"
    inclusive_keywords="no"
    where="all"
    limit="50"
    paginate="bottom"
}

{exp:stash:get name="ss-cats"}
<!-- lots of stuff here removed for simplicity -->

{/exp:super_search:results}

At the moment, I'm not even getting this simple stash set/get to work so I can read the value of {super_search_category} inside the results loop.

Edit for progress below:

{super_search_category} returns category URL titles if used outside results loop.

If you used INSIDE results loop it does nothing (tag is not parsed at all).

If I use Stash to save the tag output from outside the results loop it works to some extent:

{exp:stash:set name="ss-cats" parse_tags="yes" parse_depth="1"}{super_search_category}{/exp:stash:set}
Stash get SS cats outside results: {exp:stash:get name="ss-cats"}

{exp:super_search:results
    redirect_post="yes"
    channel="directory"
    status="Open|Featured"
    performance="off"
    category_indicator="category_url_title"
    search-words-within-words="yes"
    inclusive_categories="yes"
    orderby="vendor-group+desc+vip+desc+rating_field-rating+desc+title+asc"
    search_in="title|vendor-person|about|extended|address|awards"
    inclusive_keywords="no"
    where="all"
    limit="50"
    paginate="bottom"
}

Stash get SS cats inside results: {exp:stash:get name="ss-cats"}

{/exp:super_search:results}

In this case the stash:get outside results works fine, but the stash:get inside results returns something different (a completely different category name - which isn't even the Super Search category!).

So I fail to see how I can read {super_search_category} from within the results in order to use it in a conditional.


texts: Outputting date variables with formatting in Channel Form

texts:
I'll preface this by saying that I am asking for information, not a coding solution. At this point, it is unclear to me why EllisLab would intentionally do this.

I'm creating an edit form for a channel entry. Inside my {exp:channel:form} loop, which works, I try to output a date variable with specific formatting.

When I output the date variable once with a format parameter...

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

...the variable is not parsed on the front-end. However, if I place the date variable in my template twice, once without the format parameter and once with the format parameter, my problem is solved. Placement of these two instances of the variable is irrelevant.

Can anyone provide an explanation as to why the channel form tag does this?

EDIT: Here is a snippet of the code for understanding the parse order:

{exp:channel:form channel="product" class="styled-form" return="dashboard" datepicker="no" url_title="{segment_3}" require_entry="yes"}
    {exp:store:product entry_id="{entry_id}"}
        <input type="date" id="p_date_available" name="p_date_available" value="{p_date_available format="%Y-%m-%d"}" required/>
        <!-- put here to force EE parsing of formatted date variable-->
        <input type="hidden" value="{p_date_available}"/>
    {/exp:store:product}
{/exp:channel:form}


texts: how to print shipping options in cartthrob

texts:
I am using the flat rates shipping plugin in cartthrob. I need to add a description for the shipping product, so I managed to get this far:

I added the following in cartthrob_shipping_flat_rates.php

            array(
                'name' => 'shipping_product_description',
                'short_name' => 'product_description',
                'type' => 'text'
            ),

This code added the fields I need to input a description to each shipping product i.e.(arrives within 7-14 days, arrives within 3 days etc.).

https://dl.dropboxusercontent.com/u/1348309/shipping.png

My question is, how do I make use of that content. In my template tags I am using the following:

{rate_title} Shipping

{product_description}

and this is outputting this:

USPS Priority Shipping
{product_description}

https://dl.dropboxusercontent.com/u/1348309/shipping-template.png


texts:
I am displaying a promo code that the user submits by using {promo_code}, but now I also want to display the 'base discount' value for the promo code. I tried to use {promo_code_value}, but this seems to be blank even though the R100 value of the promo code is reflected in the {order_discount} tag.

Any other suggestions on what I could try?


texts: How do I get the page to reload to the same page Freeform Form submission?

texts:
I have a newsletter form that pops up in a modal window and I would like the page to reload rather than go to a "thank you" page after you click submit. (see the sign up for our newsletter button in the footer).

According to Solspace documentation:

If [the return is] not specified, the user will be returned to the same page.

But if I leave the return="" off the form, it reloads the parent site.

I have tried the following to override this but without success.

return="{if segment_1 == ''} http://skimmer.disl.org
        {if:elseif segment_2 != ''} segment_1/segment_2
        {if:else} segment_1
        {/if}

Is there some secret Solspace formula that I am not aware of? I would appreciate some guidance on resolving this.

Thanks.


texts:
This works (all tags output):

{exp:channel:entries channel="section_homepage" disable={global:param_disable_all_with_cats}}
{{channel_short_name}_top_banner}
{channel_short_name}
{section_homepage_top_banner}
{/exp:channel:entries}

This doesn't work:

{exp:channel:entries channel="section_homepage" disable={global:param_disable_all_with_cats}}
{{channel_short_name}_top_banner}
{/exp:channel:entries}

This outputs {{channel_short_name}_top_banner} as a string, rather than parsed.

it's as though I need to include BOTH:

{channel_short_name}
{section_homepage_top_banner}

BEFORE the dynamic tag parses....

{{channel_short_name}_top_banner}

I'm using Structure 3.3.14.5 and EE 2.81.


texts: Updating Member preferences for one member group resets other member groups

texts:
I'm running 2.6.1 (can't update right now)
I have 2 member groups (+ admin)

Each time I update the channel publishing preferences the preferences of the other channel all revert to no access.

Is there a config file for member prefs or DB table I can edit?

Thanks


texts:
I try to make channel form submit via ajax, but stuck now. I have a page showing the list of channel entries, when user clicks on edit link, which is next to each entry, it shows a panel () which contains template partial where I have the channel form. Simply when user clicks on the edit link, it just calls:

$('#contentedit').load('/malls/_editmall/' + id);
$('#paneledit').toggle('slide', { direction: 'right' });

where I have template partial is _editmall. And the code in the partial is as follows:

  {exp:channel:form channel="malls" include_jquery="no" json="yes" entry_id="{segment_3}"}
    Title
    <input type="text" name="title" id="title" value="{title}" size="50" maxlength="100" onkeyup="liveUrlTitle();">
    URL Title
    <input type="text" name="url_title" id="url_title" value="{url_title}" maxlength="75" size="50">
    <input type="submit" name="submit" value="Submit">
  {/exp:channel:form}

I put the following code in the example to the main template (I tried also in partial though),

So I expect that the page will just save and stay in the page as it is. But instead it opens the url of the partial, and shows the json (success) on the page. And yes, I have reference to both jquery and jquery form plugin.

You can see my page here

Any idea what I'm doing wrong?


texts: What's the difference between url_title and url_title_path?

texts: I keep running into issues, and apparently I just don't understand the difference between these two variables.  One set of pages works with url_title_path, and the other set will only act right with url_title.  There must be some difference I'm missing, but I don't know what it is.  any help?


texts:
The following code is causing a 8-9 second page load delay on our site and I’m trying to whittle this down however I’m not sure which conditionals to try to change in order to best affect the load times

I’ve tried using the ifelse addon from Devot:ee however it doesn’t seem to be helping at all (where I’ve placed it!)

There are about 80 categories and the code below picks out 4 of them. The channel that the products are pulled from has about 1000 entries

Using EE 2.9.0

    {exp:channel:categories channel="products" style="linear"}
    {exp:ifelse parse="inward"}
    {if hp-featured == "Yes"}

Best Selling {category_name}

        {exp:low_reorder:entries set="product_order" category="{category_id}" dynamic="no" disable="member_data|pagination|primary_category|categories|category_fields|misc_content|news|homepage_adverts|about" limit="3" url_title="{embed:the_url_title}" }

more info &raquo;

   {title}

  {if '{bulk_discounts:total_rows}' == 5}
        {bulk_discounts}
            {if field_row_count == 5}from {if saleprice}&pound;{saleprice}<s> &pound;{price}</s>{if:else}&pound;{price}{/if} per item{/if}
        {/bulk_discounts}
  {/if}
  {if '{bulk_discounts:total_rows}' == 4}
        {bulk_discounts}
            {if field_row_count == 4}from {if saleprice}&pound;{saleprice}<s> &pound;{price}</s>{if:else}&pound;{price}{/if} per item{/if}
        {/bulk_discounts}
  {/if}
  {if '{bulk_discounts:total_rows}' == 3}
        {bulk_discounts}
            {if field_row_count == 3}from {if saleprice}&pound;{saleprice}<s> &pound;{price}</s>{if:else}&pound;{price}{/if} per item{/if}
        {/bulk_discounts}
  {/if}

  {/exp:low_reorder:entries}

    {/if}
    {/exp:ifelse}
{/exp:channel:categories}


texts: I've installed Nolan 2.5.1 in EE 2.9.2.  It's showing up ok in Addons > Plugins, but with the wrong version number.  It's showing as version 1.0 .  It's also not showing up as an option as an option under data type when I set up a Grid Field type:


texts: SLASH constant isn't the same as "/" character [in PHP]?

texts:
I recently discovered that the EE/CI's SLASH constant isn't the same as the "/" character. Or, at least, in my plug-in code, (SLASH == "/") evaluates to FALSE...

They output the same character, though. I'm confused... can anyone explain why this is the case?


texts: Assets stopped connecting to Amazon S3, Access denied by target host

texts:
Assets has been working well for the past couple of weeks uploading files to Amazon S3. The past few days the customer has started uploading the main bulk of his files Wav files, approx. 10Mb up to 50Mb in size. All was working well, until last night it stopped.

When refreshing the bucket list in Asset Sources settings, it states:
"Access denied by target host"

Access and Secret Keys are correct, I even tried creating new ones.
S3 permissions on the bucket is correct.
In fact nothing has changed our end.

I read online we should create a Bucket Policy. I did this, to no avail, same error. I even made a completely open policy allowing everyone to do everything, still same error.

I disabled our firewall, same error.

Just seems Amazon is blocking us all of a sudden for no reason.

Do you have any advice, it renders Assets and S3 useless and completely changes the way our site works.

Thanks in advance


texts: EE Store: Add csv file to order confirmation email

texts:
LS
I would like to add a csv file to the order confirmation email containing fields from the order.

Like so:

Header:
Type verzending ; Familienaam ; Adres 1 ;land ; Postcode ; Woonplaats ; Vooraanmeldingstype 1 ; Contactgegevens 1 ; Proactive rule 1 ; Pro-active taalinstelling 1

Rule:
NCP,PRO;None;Test;NL;3145ER;Woerden;email;bvanzandvoort@gmail.com;1;NL

•   Type verzending: always "NCP,PRO"
•   Familienaam: {shipping_name}
•   Adres 1: {shipping_address1}
•   Land: {shipping_country}
•   Postcode: {shipping_postcode}
•   Woonplaats {shipping_city}
•   Vooraanmeldingstype 1: always "email"
•   Contactgegevens 1: {order_email}
•   Proactive rule 1: always "1"
•   Pro-active taalinstelling 1 : always "NL"

Is there anyway to add this as CSV file (or txt) as an attachment to the confirmation email?


texts: Solspace Tag: Pagination generates %20-links, despite correct websafe-setting

texts:
when I use the pagination inside the exp:tag:entries-loop the links generated look like

xy.com/blog/tag/Tipps%20für%20Lehrer/P10

instead of

xy.com/blog/tag/Tipps+für+Lehrer/P10

It's exactly the same problem which is asked here (but not solved), except I am not using stash. Thread-starter Davor Peic tried with a spartanic clean template and had the same problem.

Therefore I do not molest you with my code but just want to ask if you could verify that this is a bug or not. Thanks.


texts: replace_tag() receiving NULL for field data

texts:
I am creating my own custom field type, and my replace_tag function is as follows:

function replace_tag($data, $params = array(), $tagdata = FALSE) {

    return $data; // NULL

}

The problem, as noted in the code, is that $data has no value. I have verified that the channel entry i'm display is correct, that field's data is properly stored in the database, and that if I manually set a value for $data inside the replace_tag() function, it prints to the template just fine.

Any suggestions as to what could be going wrong?

Thanks!

P.S. I started a thread here but never got responses. Trying this instead.


texts: Show sub categories where location has jobs

texts:
I have a category group that's attached to several channels, including the jobs channel.

This isn't the way I'd have configured this initially but never mind.

I have 2 parent categories USA & Europe and then cities as sub categories. I want to show the cities and the jobs in those cities.

Not all cities have jobs and right now, using GWCategories, I'm spitting out cities where there are no jobs.

{exp:gwcode_categories channel="jobs" last_only="yes" cat_id="13" show_empty="no"}
{cat_name}
{/exp:gwcode_categories}

Gives me all cities, irrespective of whether they have jobs or not.


texts: Admin->Synchronize Templates, show Only changed?

texts: How can I modify the code to show ONLY templates that have changed? I think it kind of ludicrous to show unchanged templates in the Synchronize Templates page.


texts: What is the source of my 'Blacklist irretrievable' error?

texts:
When I go to download the blacklist in a recent install of v2.5.3 - Build Date: 20120911 I get this…

  Error: New blacklist was irretrievable.

  Did not receive a '200 OK' response from remote server. (HTTP/1.1 301
  Moved Permanently)

I've raised a ticket with EllisLab about this with my new complimentary Silver plan. I'm guessing it's to do with the domain rerouting that's happened over the weekend.

Wonder if anyone here can offer suggestions quicker than EllisLab ;)


texts: Wygwam 'site page' link type not parsing when used within Low Variables variable

texts:
I am using:
EE 2.7.2,
Low Variables 2.4.0,
WYGWAM 3.2.2

I have a WYGWAM field as a Low Variable, and within it, I am setting up some page links. When I create a link, under "Link Type" I chose "Site Page" and select the page on my site. However, when I output that variable on my homepage, the links are broken, and look like href="{page_38}". For some reason the page url isn't getting parsed. This "Site Page" method works fine for links in my channel entries.

Any idea how to get around this? For now, I just switched to specifying the URL manually, rather than selecting the site page. Thanks!

Gary


texts: exp:cartthrob:is_in_cart always returns true

texts:
I am running EE 2.7.3 and Cartthrob 2.4

Trying to use this tag

{exp:cartthrob:is_in_cart entry_id="1234"}

But not matter what entry_id I use the tag always returns true (1 actually)

The only way I can get to return false (0) is to leave the entry_id param blank

I could be missing something but I think this is a bug?

UPDATE

I set up a minimal test case with this being the only template code

{exp:cartthrob:is_in_cart entry_id="XXXX"}
{exp:cartthrob:debug_info}

I put 3 items in the cart
entry_id 3517
entry_id 3518
on the fly dynamic item with no entry id

passing 'XXXX' to the tag is not a valid entry ID, but the tag still returns 1

if the cart is empty the tag returns 0 as expected

if I remove the on the fly product the tag returns 0 as expected

sounds like the issue has to do with on the fly products, does that help at all with troubleshooting?


texts:
EE 2.7.2
CT 2.5

I'm working on a live cartthrob site that I inherited and there are php errors on the checkout pages, but only when logged in. Is there a known fix for this?

A PHP Error was encountered

Severity: Notice

Message: Array to string conversion

Filename: libraries/Template.php

Line Number: 3784

A PHP Error was encountered

Severity: Notice

Message: Array to string conversion

Filename: libraries/Template.php

Line Number: 3784

A PHP Error was encountered

Severity: Notice

Message: Array to string conversion

Filename: libraries/Template.php

Line Number: 3784

A PHP Error was encountered

Severity: Warning

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

Filename: libraries/Functions.php

Line Number: 809

A PHP Error was encountered

Severity: Warning

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

Filename: libraries/Functions.php

Line Number: 809

A PHP Error was encountered

Severity: Warning

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

Filename: libraries/Functions.php

Line Number: 809

A PHP Error was encountered

Severity: Warning

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

Filename: libraries/Functions.php

Line Number: 414


texts: Low Search - Showing all items and Pagination

texts:
I have these simple code using low search

{exp:low_search:results
    {if segment_2}query="{segment_2}"{/if}
    limit="4"
    paginate="bottom"
}

This normally works for the search except when I want to show everything. To do that, I simply need to eliminate the query param

{exp:low_search:results
    limit="4"
    paginate="bottom"
}

However, here is the problem. What if I paginate through the results? In my case then I would have a pagination link of something like

http://www.foo.com/search/P4

But if I use the code above

{if segment_2}query="{segment_2}"{/if}

then it will mistakenly believe that P4 is a query string.

How should these be handled?


texts: Category dropdown in Channel Form, with parent cats as option group labels?

texts:
I'm having a few issues with categories at the moment that seems like it should be simple, but it is not.

I have a category set up which contains a list of UK counties. This consists of 4 parent categories (the countries - England, Scotland, Wales & Ireland) and many child categories for each (the individual counties).

I am trying to output the categories into a select dropdown within a channel form, with some structure.

I want the parent categories to show as a 'non selectable' label, and the child cats organised beneath.

This way users can only select a single county, and the parent category should be selected as it is set to 'auto-assign' within the settings.

In other words, I want it to look like this...

instead of this...

Any ideas? Everything I've tried (including this question here and I am still unable to get it working!)

(The first picture was achieved via the P&T dropdown in a custom field)

UPDATE:

The answer below got this working and I am using the following...

<select name="category[]" id="categories">
  <option value="">Select one...</option>
{categories}
  <option value="{category_id}" {if "{category_depth}" == "1"}disabled{/if}{selected}>{category_name}</option>
{/categories}
</select>

Only thing now is validating it? Is there a way to make a category required via the native (i'm using inline) error handling?


texts: Multiple Playa fields in Channel Form not updating

texts:
I am using {exp:zoo_visitor:update_form> on a rather large Profile page for members to update their details.

It seems that you can only update one playa field at the time - I have experimented wrapping the {exp:zoo_visitor:update_form> tags around all form entries and each separate but the Playa fields don't update together.

Update: I replaced all Playa fields with the native Relationships field (yikes!) but these fields seem to hold the data. There is also a Matrix field, which doesn't hold the data but after replacing this with the native Grid field it's behaviour maintains.

Surely this is all JS related but I am not able to debug this....

include_jquery="no" has no effect.

Running 2.7.3


texts: Copy Data from exp_channel_titles Based on entry_id

texts:
I'm trying to copy some channel data from the exp_channel_titles table into Better Workflow's exp_ep_entry_drafts table. I want to copy the data by matching the entry_ids, which already exist in both tables. So the status for entry ID 42 in exp_channel_titles will go into the status column for entry ID 42 in exp_ep_entry_drafts.

I'm very much a MySQL n00b, but here's what I came up with:

INSERT INTO
  exp_ep_entry_drafts (
    status,
    url_title,
    expiration_date,
    entry_date
  )
SELECT
  titles.status,
  titles.url_title,
  titles.expiration_date,
  titles.entry_date
FROM
  exp_channel_titles titles
JOIN
  exp_ep_entry_drafts
ON
  titles.entry_id = exp_ep_entry_drafts.entry_id

When I run that in the EE query form, I get this error:

  Fatal error: Call to a member function num_rows() on a non-object in /path/to/the/system/expressionengine/controllers/cp/tools_data.php on line 482


texts:
Is it possible to use the Allow EE Code plugin and textarea formatting option and also have formatting as XHTML?

I have an existing field (textarea with XHTML formatting) with lots of content in many existing entries. I would like to change that field to Allow EE Code, but still have it auto format as XHTML. As far as I can tell, when you change a field to format as "Allow EE Code" it doesn't use XHTML or Auto BR formatting. No auto formatting at all.

Is there any way to marry the two and have the best of both worlds?


texts: Zoo Flexible Admin + MSM Needs Hard Refresh - how to avoid?

texts:
This is based on this Support Thread:
http://devot-ee.com/add-ons/support/zoo-flexible-admin/viewthread/4202

In short: the menu in MSM doesn't change without HARD refreshes every time.

It looks like no one has managed to crack this nut yet and it's partially due to the ExpiresHeader, but I have no idea how to exclude a certain path by the expires header rule or any other way.

Thoughts? Client keeps emailing me saying she can't find things due to switching sites -- irony, since the Flexible Admin is meant to make it easier.


texts: SafeCracker File: min-width/min-height for Images

texts:
Is there a way to set a «min-width» for images to a «SafeCracker File»-Field (type: Images)?

We have a SafeCracker-Form, where Users are allowed to upload Images — but these should have a min-size of 512x512 Pixels.

There are Settings for max-width/-height in edit_upload_preferences, but I haven't found settings for min-width/-height so far.


texts: Object of class EE_Session could not be converted to string in DevDemons forms

texts:
I've installed the latest version of DevDemons Forms(3.3.5)
When I navigate to the index page of the Control Panel I'll get the following error.

A PHP Error was encountered
Severity: 4096
Message:  Object of class EE_Session could not be converted to string
Filename: forms/ext.forms.php
Line Number: 240

I also found a bug report on the Ellislab website related to this problem https://support.ellislab.com/bugs/detail/19469


texts:
I'm outputting modifiers as radio field but how could I target the first modifier so that it is checked.

{modifier_options}

        <input type="radio" name="{modifier_input_name}" checked="checked" value="{option_id}"/> {option_name} {if price_mod_val} ({price_mod}) {/if}

    {/modifier_options}

This selects the last modifier but would like it to be the first.


texts: Expresso Store changed column name in database

texts:
We've built a custom report-system for a client, fetching data from the "exp_store_orders"-table and displaying them to admins.

Yesterday I updated the site to EE 2.8.1 and Store 2.3.1. After ironing out some wrinkles everything seemed fine. Except the PHP-script generating the report. We got a PHP-error: Message: Invalid argument supplied for foreach().

What gives?


texts: Upload File and write path to text-field in Frontend/User Edit Form

texts:
Is there a way to upload a file in a Frontend Edit Form (Solspaces «User») and write the new file-path into a member-custom-field (text-field).

The goal is to let users add/upload more than only one Membership-Photo to their profiles.


texts: Custom addons folder location in ExpressionEngine 3

texts: Does anyone know if there is an config override for changing the addons folder location in ExpressionEngine 3.  I can't see anything mentioned in the documentation but I was wondering if I have missed something.


texts: Tagging content in one channel for other channels

texts:
We have a channel of article content (called 'Articles'), and each of those entries is categorized as either a 'standard, case study or bulletin.'

I have 3 other channels, and I want to select when an entry in the 'Articles' channel is posted, which other channel it's also relevant to.

So for example, I post a "Latest Study" entry to the 'Articles' channel, and want to indicate that it's also relevant to channel 2 and 3. This way it can auto-populate the other channels.  If categories were not already used, I would likely have done it that way.

Can I do this with relationships? I haven't used the new relationships from 2.6 very much. I tried setting it up but it was going the wrong way (pulling content from the other channels into the 'articles' channel, rather than the other way around).

Basically what I am saying, I want to dictate from the pool of articles in one channel, what's relevant to other channels... other than using categories.

Any help would be appreciated. I have a feeling it's something obvious I am not considering.

Thanks!


texts: For some reason having difficulty getting the homepage to translate. It just won't swap language although it adds the language prefix after the domain name "domain.co.uk/cy/ but the language switcher links still show's "en" and no content gets translated.


texts: can cartthrob installed on MSM site ?  I have try to using cartthrob on multi site, but the item data on cart not all shown ( just the product title ). Please help me to solve this problem . Thanks before.


texts: Front end login redirect to {page_url} with structure, how to make this work

texts:
EE 2.7.2
Structure 3.3.13

I've got a site where I have a front end login form that is on all pages as a modal when clicking the login link in the header. Everything works fine, however for the redirect="" parameter I would like the form to redirect to the page it was filled out on.

using this code:

  {exp:member:login_form return="{page_url}"}
    Username
    <input type="text" name="username" value="" maxlength="32" size="25">

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

    <input type="submit" name="submit" value="Submit" class="button small">
  {/exp:member:login_form}

results in a broken url http://domain.com/%7Bpage_url%7D

and a white page with this message

  The URI you submitted has disallowed characters.

I tried using low variables and preparsing the {page_url} (same as embedding a template) but that also did not work.

Is there a way to get the {page_url} to work in the login form?


texts: Check to see if a product has been purchased - Expresso

texts:
Is there any way in expresso to check if the current user has purchased a particular product?

Something like, {if purchased}you own this{if:else}you don't own this{/if}

Thanks


texts:
I am trying to clean up my templates after an upgrade from EE2 to EE3. Everything I delete / remove keeps reappearing on next log-in. This includes some entire Template Groups and some individual templates in other groups. How do I remove them form the system permanently?

Thanks for any help
-A


texts: Generate/Print Shipping Labels with Expresso Store

texts:
Has anyone written a plugin to generate shipping labels for USPS/UPS/FedEx for Expresso Store?

-Or- has anyone generated templates with the native Expresso Store tags to do the same thing? (Create a list of orders, with links to "shipping label templates")

Curious to see what, if anything, others have done here.


texts:
I've just started to install expression engine 2.8.1 (for the record I experienced the exact same problem with version 2.7.3) I've installed expression engine god knows how many times and have 6 copies of expression engine on the same server but when I go to run the installer I am experiencing the error

Unable to locate the specified class: Security.php

Has anyone experienced this before and if so, what was the fix?

Thanks


texts: Cartthrob Order Manager Customer export to csv not exporting all customers in report

texts:
When using Cartthrob's Order Manager Customer Report's export to CSV, the export csv file only lists 101 customers, rather than the 920 listed on the Module's web version of the report.

Any suggestions on how to export the entire list?

Cartthrob 2.70, Cartthrob Order Manager 2.61, EE 2.10.1


texts: Solspace Freeform Pro change default values of checkboxes from "y,n" to "Yes,No"?

texts:
I'm trying to get these checkbox fields to match outputs with some other fields I have that have "Yes" and "No" outputs. Any way to change these? Thanks!

Here's some more details...
I have a large multipage form that users fill out and submit. After submission it takes the user to a page with a summary of all the information provided in the form. I have some Checkbox fields on the form as well as some Radio buttons. The Radio buttons I can give a value. I have given values of "Yes" and "No". The checkboxes have built-in values of "y,n". I would like to be consistent with the values displayed, and would like the "y,n" values of the checkboxes to be "Yes, No" instead. Thanks for your help!

EE 2.9.3
Freeform Pro 4.2.2

Here's some template code...

This is a checkbox...

                {freeform:field:email_invoice} Email invoice instead of sending via USPS?

                {if freeform:error:email_invoice}
                    {freeform:error:email_invoice}. Please type "NA" if not applicable.
                {/if}

This is a radio button...

                {freeform:field:controlled_substance wrapper_open="" wrapper_close="" row_wrapper_open="" row_wrapper_close="
" label_wrapper_open="" label_wrapper_close="" }
                {if freeform:error:controlled_substance}
                    {freeform:error:controlled_substance}
                {/if}

When displaying it after submission I'm using this code...

checkbox...

                Email invoice?: 	{freeform:field:email_invoice}

radio button...

                Controlled substance?: 	{freeform:field:controlled_substance}


texts: Customizing Google Maps by Objective HTML

texts:
I am using the Google Maps plugin by Objective HTML for a site I'm working on and am curious to know if it's possible to change the styling of the map it generates?

I have been able to change the styling of a map before using Google's API, but that was just for a static marker on a map. This appears to be slightly different as a plugin so I'm unsure whether a) its possible b) where specific styling code slots in.

There's nothing special about the map, just a standard marker for a channel entry. But it'd be great to know how I can adjust the styles of different elements of the map i.e the water and land colours and how much detailed text is displayed.


texts:
I had

{parents channel="gallery"}
    {if parents:no_results}Galleries: 0{/if}
    {if count >= 1}
        {if count == total_results}
        Galleries: {parents:total_results}
        {/if}
    {/if}
{/parents}

And if 3 galleries and 2 videos, it would say  Galleries 3 Videos 2

Now it says Galleries 3 Galleries 3 Galleries 3 Videos 2 Videos 2

I'm sure EE's realtionships changed...any idea what I need to change it to?

Thanks!


texts: Group/Combine fields in backend and add another block?

texts:
I'm looking for a way to combine/group channel fields plus the ability to
add another punch/block of them.

I know you can group fields in tabs but i need something like the plus in Matrix
where you can add a new row.


texts:
I'm trying to sell subscriptions (yearly memberships) using the Simple Commerce module.
I've set-up everything on EE side and on PayPal's (including the Instant Notification URL). Since I'm still testing everything, I'm not using encryption. Also I'm not using sandbox, but doing tests with 0,01p payments using real paypal accounts - my business and personal accounts, both verified. My business account is set to accept payments automatically.

When the payment is received, a first instant message to notify the subscription is sent successfully. Then PayPal tries to send another ipn, to notify the payment, but this one gets stuck with a "error 500".

It took me a while to get the first IPN, because one of the 3rd party extensions (VZ Bad Behavior, just in case someone else is experiencing the same problem) didn't allow paypal to hit the url. But if the first IPN gets through, why not the 2nd one?

Also, I'm using Expresso Store on the same install, and never had a problem with IPNs.

Any suggestion would be much appreciated.


texts:
I'm just wondering if there are certain guidelines to bear in mind if you want to ensure an EE site stays fast. What typically are the things that slow down an ExpressionEngine installation?

Does the number of entries in the system have a large impact?
How about the number of global variables you've set (especially when using Low Variables excessively)?
Does the number of addons in the third party directory play a role?
What about a site that was upgraded from EE 1.xx?

I realise this is a lot of questions. I'm just trying to work out why one of my sites is way slower than the others (same hosting).

Cheers

Jim


texts: Low Search and match 3 fields and then return data

texts:
I'm looking for a bit of guidance here, just need pointing in the right direction for. A solid solution.

Would this be possible with ExpressionEngine? Either using something like Low Search or even the Simple Search??

Step 1:
Person enters: Surname, Postcode, Client reference number

Step 2:
If those details match with the data in an entry(?), they then get put through to a confirmation page which is personalised with a unique code – this unique code will be already existing in the entry.

In step 1, the data inputted will need to match exactly so there is no risk of someone accidentally getting someone else's unique code. So blank spaces will need to be removed maybe??

Happy to take advice on a better way rather than entering x3 search fields.

Thanks

UPDATE

Here is the code I am using now.

Kind of works but I cannot get it to match exactly. For example searching for "Steve" or "Steven" in the first name field returns the same result. Where the actual name in the entry is "Steve". And then the client reference number returns the same result if "1234" or "12345" is enetered, where in the actual entry it is "1234".

Form:

{exp:low_search:form
            result_page="/site/success"
            collection="season_ticket_holder"
            required="search:firstname|search:surname|search:clientref|search:postcode"
            require_all="search:firstname|search:surname|search:clientref|search:postcode"
            exact="search:firstname|search:surname|search:clientref|search:postcode"
        }

                First name*
                <input type="text" name="search:firstname" id="firstname" class="txtbox">

                Surname*
                <input type="text" name="search:surname" id="surname" class="txtbox">

                Client Ref*
                <input type="text" name="search:clientref" id="clientref" class="txtbox nowhite">

                Postcode*
                <input type="text" name="search:postcode" id="postcode" class="txtbox">

        <input type="submit" id="submit" class="submit" name="submit" value="Submit &#8250;" />

        {error_message}

        {/exp:low_search:form}

Results page:

    {exp:low_search:results
query="{segment_3}"
}
  {title} {first_name} {surname} {client_ref} {postcode}

{discount}

  {if no_results}No search results{/if}
{/exp:low_search:results}

Collection Settings:

FIX:
problem solved, the issue was the search fields were not matching the custom field names. firstname = first_name. Thanks to Low for sorting that.


texts: Wygwam fullscreen toolbar not showing up in Firefox

texts:
Wygwam 3.1.1 and EE v2.6.1 - Build Date: 20130506

I noticed today that the in Firefox 23, after clicking on the "maximize" option in the toolbar, the entire tool set disappears when in full screen, compared to Chrome, where the toolbar is positioned at the top of the screen and visible even when scrolling.

Bug?


texts: Simple form showing "no results" correctly but not displaying "results" correctly

texts:
I have tried to include the simple form on my text site but it only seems to work if you type in a keyword that isnt in any of the entries.

I have copied my code below for my search field:

 {exp:search:simple_form channel="{channel_content}" results="20" result_page="/search/results" no_result_page="/search/no-results" search_in="everywhere" where="any"}
    <input type="text" name="keywords" id="keywords" class="form-control" placeholder="Search">

    <input type="submit" class="btn-u" value="Go" />
     {/exp:search:simple_form}

And below this is the code for the search template:

     {exp:switchee variable="{segment_2}" parse="inward"}

        {case value="no-results"}
            {search_message_no_results}
        {/case}
        {case default="yes"}

                {lang:title}
                {lang:excerpt}
                {lang:author}
                {lang:date}
                {lang:total_comments}
                {lang:recent_comments}

        {exp:search:search_results switch="resultRowOne|resultRowTwo"}

                {title}
                {excerpt}
                {author}
                {entry_date format="%m/%d/%y"}
                {comment_total}
                {recent_comment_date format="%m/%d/%y"}

            {if count == total_results}

            {/if}

            {paginate}

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

            {/paginate}

        {/exp:search:search_results}

        {/case}

        {/exp:switchee}

I am also using the switchee add on if that helps.

Thanks
Jordan


texts:
I'm trying to upgrade a site from EE1 to EE2 and I followed the EL docs to the letter but when I go to run the wizard I get "Click here to install a brand new copy of ExpressionEngine". Anyone know why this might be occurring?

UPDATE: Forgot to add that I would be upgrading an EE1.7.3 site to EE2.5.5 running on a MT GS server.


texts: Would like to have a divider between category names where there are more than 1 to show. (and no divider when there is only 1 category name)

texts:
This is the site with 2 category names in the blog:

http://www.hogarthlighting.co.uk/blog/article/melba-the-savoy-hotel-london

News Picture Lights.

I would like it to show this when there are 2 or more category names

News / Picture Lights

Would I use 'if' statements? I have tried but had no success.


texts: Relationship field - {count} of type, and {total_results} of type

texts:
I have a relationship field which contains a number of different pieces of content.

Each piece of content has a type property.

Is there anyway I can count the number of each of the types that is included in the relationship.

For example.  3 Product related items, and 2 Showcase related items.

I need to be able to get the {total_results} of each type.

This is what I'm trying to do...

 {if "{related:panel_type}" == "products"}

      {if "{related:count}" == "1"}

      {/if}
        // do stuff
      {if "{related:count}" == "{related:total_results}"}

      {/if}

    {/if}

  {if "{related:panel_type}" == "showcase"}

      {if "{related:count}" == "1"}

      {/if}
        // do stuff
      {if "{related:count}" == "{related:total_results}"}

      {/if}

    {/if}

So at the moment {total_results} is equal to 5 so my ul is not getting closed properly.

Does anyone have any ideas how I can get around this problem.

I would like to keep my markup inside the exp:channel:entries loop, and ideally use only one loop.

Any help, greatly appreciated


texts: How can I remove ICQ, Yahoo, MSN, Birthday fields from member profile admin in the Controlpanel?

texts:
Is there a way to remove the silly fields in the member profile administration of the control panel?

If not possible to remove them, is it possible to move them to the bottom so they appear after any custom member fields?

I'm specifically talking about the following fields;

AOL
IM
ICQ
Yahoo IM
MSN IM <- this doesn't even exist anymore does
it?

and ideally I'd like to also remove;

Birthday
Location
Occupation
Interests
Bio

Why these aren't an option in the config is something I have never understood. Or, if we want that stuff, just add them as custom member fields.


texts:
In 7 years with ExpressionEngine I've never seen this error before when saving a channel entry: Numbers cannot be used as URL Titles

And, there are past existing entries in this site with numbers as URL Titles. Anyone know what might be causing this and if there is a switch to allow them? I can't find anything.


texts: How get the particular part for a string?

texts: How to get a particular part of a string? e.g after some special characters or some words.


texts: What is causing Wygwam 3.2.2 error: SyntaxError: Parse error, TypeError: Result of expression 'u' [undefined] is not an object

texts:
After upgrade of Wygwam on Exp Eng 2.7.2 our module Wygwam 3.2.2 is not loading in the control panel due to the following errors...

SyntaxError: Parse error
/themes/third_party/wygwam/lib/ckeditor/skins/wygwam3/skin.js?t=B9VJ5M2

TypeError: Result of expression 'u' [undefined] is not an object.
/themes/third_party/wygwam/lib/ckeditor/ckeditor.js

There are similar questions here...
Wygwam3.21 not initializing - ckeditor error: TypeError: u is undefined
and
Wygwam - IE8 issue - editor doesn't load and throws javascript error

I've deleted and reinstalled the folders in both themes/third_party and module/third_party. Why is it using this particular skin? Any ideas on what is causing the error?


texts: How to save the current url across page reload with Stash?

texts:
I'm trying the following code to save the latest visited url across a page reload:

TEMPLATE A:

{exp:stash:set name="latest_url" scope="site" save="yes" refresh="60"}

{exp:current_url:full_url}

{/exp:stash:set}

TEMPLATE B:

{exp:stash:latest_url}

or

{exp:stash:get name='latest_url'}

--

There's no output, whatever I do!

But the current url is successfully grabbed in template A, which I can see, after turning output to "yes".

What's wrong?


texts: can the "Entry Manager" in EE 3.4.6 do more than "remove"

texts: In EE 2 we were able to bulk-edit several articles at once -- mostly to change their status, the time/date of publication, and the wording of the headline. But in EE 3.5.6, there seems to be less capability. We can only remove. Is there any way around this, or do we have to buy an add-on? The "check -- with selected --" does not seem to make sense....


texts:
I was wondering if anybody knows what the status is on Store updating the iDEAL payment method.
Is it gonna be updated to the new version of iDEAL in the next version of Store?
Is there a release date already?

Any information will be helpull.

Thanks in advance.


texts: How to enable conditional social meta information for blog posts

texts:
So I've got a fairly complex problem. Allow me to explain...

I've got an EE website where 80% of their traffic comes via social shares of their blog posts, so making sure the Twitter and Facebook meta data is perfect is key. FB and TW require the meta data that shows on a share card be placed within the  tag of your website.

There's two different times people share the site

1.) blog posts
2.) global: any other page on the site that's not a blog post

I need the variables/values inside the meta tags, inside  to change depending on whether or not the user is sharing a blog post or global page. and IF they are on a blog post, use the EE variables for that specific post.

This is my sloppy attempt at writing what I ultimately need using rough JS syntax:

<head>

if (is blog post) {

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

<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:site" content="@lorem"/>
<meta name="twitter:title" content="{title}"/>
<meta name="twitter:description" content="{excerpt}"/>
<meta name="twitter:image:src" content="{blog_thumbnail}"/>

{/exp:channel:entries}

} else {

<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:site" content="@lorem"/>
<meta name="twitter:title" content="Lorem ipsum dolor"/>
<meta name="twitter:description" content="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent tempus velit enim, sit amet pulvinar sapien blandit et. In facilisis tortor vitae quam venenatis euismod. Nunc auctor lorem porta mauris congue accumsan."/>
<meta name="twitter:image:src" content="lorem.com/_img/share.jpg"/>

}

</head>

I'm not sure what I should even be using for this? Is there some way to do this IF statement with EE's template code or is there some way to do this on page load with javascript and still get the EE variables?


texts: Using Stash to prepend matrix output to wygwam output

texts:
I'm trying to make my press release pages a little more fool-proof so instead of leaving the formatting of the location and date to the user I want to create a location matrix field (they type the city name and choose a state from a drop down menu; states MUST be spelled out hence the dropdown field) and prepend the output of this to the wygwam field that contains the press release content. I'll also add the date from the entry_date field to this. The output will eventually look something like this:

location, state - month day, year - begin press release...

I can set the stash without any problems and even output it on its own but I'm not sure how I could go about prepending it to the Wygwam content. In the past I've done this with MX Jumper but it required the addition of some random content at the beginning of the press release that  could be swapped out. I'm hoping I can do this with Stash without the need for any extra content in the press release content field. Any suggestions on how this might work?

Update with template code:

{exp:channel:entries channel="press_releases"}
    {exp:stash:set name="pr-date-loc"}
        {press_release-location}<strong>{pr-city}, {pr-state} &mdash; {entry_date format="%F %j, %Y"} &mdash; </strong>{/press_release-location}
    {/exp:stash:set}
{/exp:channel:entries}

{exp:channel:entries channel="press_releases"}
    <h1>{press_release-title}</h1>
    {exp:stash:prepend name="pr-date-loc"}
        {press_release-content}
    {/exp:stash:prepend}
{/exp:channel:entries}


texts: CartThrob and CT Admin reporting email address

texts:
I'm using CT Admin with my Cartthrob store.
Currently all my reports with CT Admin use the EE site's webmaster name and email address for the values. I would prefer to keep our agency as the webmaster email and have a setting somewhere (if possible) to use in the invoice/report pages.

Is this possible?


texts:
I just updated my site to EE 2.9 from EE 2.6.1. I'm using MX Notify Control v. 2.4.6 along with the fieldtype MX Delegate Email to send out emails after Zoo Visitor updates. The field type is causing problems throughout the site now. I cannot access any of the Channel Fields in the EE CP, nor access any of the entries that use MX Delegate Email.

Since I have hundreds of Zoo Visitor entries that include a field for MX Delegate email, I was afraid to just remove the field to see if that fixes it.

The error I am getting is:

Fatal error: Call to undefined method EE_Fieldtype::EE_Fieldtype() in /home2/account/system/expressionengine/third_party/mx_delegate_email/ft.mx_delegate_email.php on line 16

I'm hoping that Max Lazar or someone will give me a suggestion of what to do.

UPDATE: I ended up doing a search for the Fatal error I mentioned above, and found a hack that worked here: http://devot-ee.com/add-ons/support/simple-s3-uploader/viewthread/12869

In the MX Delegate Email plugin code, I changed

parent::EE_Fieldtype();

to

parent::__construct();

It fixed the problems I mentioned above plus a few others I didn't know were related.


texts: Cartthrob: How to set up product that is available for rent OR purchase?

texts:
I need to set up a checkout system when certain products say, a camera, can be either purchased OR rented.

I understand how this could be accomplished with separate entries for purchase/rental options. Using price modifiers will handle the different rental options nicely.

Obviously I don't want site admins to have to enter this content multiple times however. Anyone know the best way to approach this?


texts:
I’ve started trying to figure out how relationships work and I have two channels (parentChannel and childChannel).

My data looks like this:

parentChannel - title - “Item Name”
childChannel - title - “2013 Item Name” , “2012 Item Name”, etc, etc

Within one of my templates, I would like to show some childChannel data, but I want to filter it to only the newest entry - in this case the 2013 entry.

How would I accomplish this?  Should I be “filtering” my childChannel data by some other means than the title itself, such as a category?

All help is appreciated.


texts: Redirect to custom error page after user fails to log in

texts: When a user tries to log in and fails because the username or password is incorrect, he is redirected to the ugly EE error page saying "The existing username and/or password you submitted are not valid". How can I redirect to a custom page (basically the same log in page with a little red error message added to it) instead? The EE user guide doesn't seem to say anything.


texts:
I am using a UI Kit for styling out the pages on a site. With the UI kit, there are multiple CSS files and js files in order to achieve the results of the rendered objects. Is there a way to incorporate this into the wygwam field so that the editors can view the copy as it will render?

Too many times, they try to modify the copy to look like they think it should rather than trust the styles will render.

I know there is the option:

Enter the URL to a CSS file you want to be applied to your field contents.

but I need more...

* EDIT *
Ok, I created a small CSS file that uses @import and load it in the custom CSS setting.

Now, I need to wrap the content in the field in a div so it renders properly during the entry process. Is that even possible?

* EDIT 2 *
I have now modified the advanced settings to add a bodyClass of "grid page" which gets me somewhat close. I still really need a way to frame in the field as it is going to be used in the pages though.


texts: playa:child_ids parameters are not working

texts:
we have a big issue with the following code:

{event_related_media:child_ids limit="2" status="Archived" channel="video" show_expired="no" show_future_entries="no"}

With the following code, I get all the children entries id. None of the parameters are used to filter the results.

The official doc says explicitly that child_ids tag "supports almost all of {exp:channel:entries}’ tag parameters", but, well, no...

To be sure, I debug all SQL requests of the template, and whatever I used as channel name parameter (for instance, 'foo'), 'foo' is never used in any sql query.

Any idea?

Pv


texts:
Two days ago I upgraded a local dev site from 2.6x to 2.9.  The local site is running via MAMP Pro, running PHP 5.5.10. I am also using the FocusLab master_config file.

Before upgrading, I ran the server test to make sure things were ok, and they were. The upgrade itself (manual, not using DevDemon updater) went off without errors. I did have a few issues after upgrading, one related to an add-on and another was an error in one of my templates, but I was able to figure them out.  Everything seemed to run ok (or so I thought).

The next morning, I was getting an error message try to access the site.
"Unable to determine what should be displayed. A default route has not been specified in the routing file."

This happens on the front end or trying to get into the Control Panel. But I can serve up a static file (like robots.txt). I thought it might have something to do with the MAMP Pro install (I had to move the files to another location) so I set up on my Mac Air today.  Same exact error.  Other local sites still running 2.6x and 2.7x are running ok.

I have also added the following into my config.master file without any luck

$config['uri_protocol'] = 'AUTO';

$config['enable_template_routes'] = 'n';

(I also tried PATH_INFO, QUERY_STRING, REQUEST_URI, ORIG_PATH_INFO for uri_protocol)

Anyone have any suggestions on things to check or try?  Yes, downgrading to 2.7x is an option but I thought this might be something known or easy to fix.


texts:
On our site we use a plugin that uses the IP2Nation module to detect the country of the visitor.

We then output amended content if the site is viewed from abroad - so instead of encouraging visitors to view the showroom, we tell them that we export worldwide.

The thing is, I've just discovered that Google's cached versions of pages are the Export version.

So my question is...
Is it possible to detect if a 'visitor' is a bot - preferably as an if statement. We could then surround the export checking if statements with a bot checker first, so that bots don't trigger the export version, but real people do.


texts: Getting address detail from marker using Google Maps for ExpressionEngine

texts:
I have a Google Map generated from multiple entries and using Google Maps for ExpressionEngine.

Each entry can have multiple markers. Basically, each entry is an business with multiple locations. For logistical regions it is not practical to create a separate entry for each location.

My question is how can I get the address info from each marker to output on my template. I can do it if there is only a single marker per entry by using the built in function to copy the formatted address to another field but since I have many markers in an entry this won't work.


texts: Overwrite Value of Default Region for Exp:resso

texts:
I'm having issues with overwriting the value of the billing and shipping region fields as they are taking on the default value set in the Region/Country area of the Store setup.

I am using Store with Zoo Visitor and I thought that, like all other fields, if the billing/shipping region fields had a value, that is what would be outputted. However, for me that is not the case, it is only outputting the default value even though the fields in the entry have values.

Can anyone shed some light on why this is?

Thanks,
J

EDIT:
The current code is:

<select name="billing_region" class="state billing_state customDrop"><option {if billing_region == ''}selected {/if}value="">--State--</option><option {if billing_region == 'ACT'}selected {/if}value="ACT">ACT</option><option {if billing_region == 'NSW'}selected {/if}value="NSW">NSW</option><option {if billing_region == 'QLD'}selected {/if}value="QLD">QLD</option><option {if billing_region == 'VIC'}selected {/if}value="VIC">VIC</option><option {if billing_region == 'TAS'}selected {/if}value="TAS">TAS</option><option {if billing_region == 'SA'}selected {/if}value="SA">SA</option><option {if billing_region == 'WA'}selected {/if}value="WA">WA</option><option {if billing_region == 'NT'}selected {/if}value="NT">NT</option></select>

However, {billing_region} is just outputting the default region.
We have set a default country (AU, Australia) and the default region is set to nothing at the moment after trying to display the current region with and without a default.


texts: Cartthrob quantities based on quantity textfield

texts:
I'm displaying a single add_to_cart_form  and would like to have my select field for the quantity to reflect a number that I have in an "quantity" custom textfield. Currently, I have the following within my add_to_cart_form tags:

<select class="w-select" name="quantity">
    <option {selected} value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option value="9">9</option>
    <option value="10">10</option>
 </select>
{if '{quantity}' == '' OR '{quantity}' == '1'}<input class="add btn w-button" type="submit" value="Add to Cart">{/if}
{if '{quantity}' == '0'}
Sold Out!
{/if}

But, I would rather have the options reflect the amount of items available in the inventory. For example, for this item, I most commonly will have 5 available, but sometimes 3, sometimes 20. No matter how many there are, the price will be the same for each item, so using the multiple quantity option does not make sense.

It is entirely possible that this is super simple and I'm overthinking it, but thought I would ask.

Thanks in advance for your time!


texts: Any reason to buy Playa over the native EE relationship module?

texts: Is there any reason to buy Playa over the relationship module? I have a fairly complex relationship setup and need something to assist. Playa looks good but does it offer anything the native relationship module does not?


texts: Display Full/Editable Grid within Relationship in Channel Form?

texts:
Using {field:grid_name} in Channel Form displays full grid with all fields.  But I was wondering if there's a way to display the Grid which is located within relationship?

For example:

{relationship_field}
        {field:grid_name}
{/relationship_field}

Something like that?

Thanks,
Tim


texts:
Is it possible to filter entries in Low Search based on the number of rows/count of a specific Grid Field?

For example something like,

Get all rows whos field X(a Grid field) has a count greater than 0


texts: EE Addon Module - How to store a value in a EE session?

texts:
I am needing to set and and retrieve a variable within this addon.
For example on one page my module connects to a remote server and gets an auth code. I would then use that auth code for all subsequent requests back to that remote server.

I assumed that like in codeigniter i could just store this in a session, most likely the EE session. But everything i have tried does not store for the period of the session, just the time it is set.

Am i being a numpty?
Or do i need to roll my own session setup and storage?

Thanks, N


texts:
I recently purchased and installed WYGWAM 3.1.1 and noticed that in the embed feature is missing. 5 o'clock on a Friday might have something to do with it, but I can't seem to find it.  I would rather not have my client click on the "Source" button to add such things as well.

Any help would be great!


texts:
I wonder where should I place my .gitignore file when the EE system folder is above the root and I need to track those files.

This is my .gitignore at the moment:

# Globals and OS junk files
[Tt]humbs.db
.DS_Store
*.DS_Store
cgi-bin/
error_log

# Subversion files
.svn

# Master Config
config/config.local.php

# Images and Media
sized/
thumbs/
_thumbs/
made/
remote/
public_html/media/**/*
!public_html/media/**/*.gitkeep

# Caches
system/expressionengine/cache/**/*
system/expressionengine/cache/eedt/**/*
!system/expressionengine/cache/**/index.html
!system/expressionengine/cache/**/*.gitkeep
!system/expressionengine/cache/**/current_version

Any ideas?


texts: Profile Edit form using Solspace User is submitting without going to 'return' parameter template

texts:
I have a Solspace User v4.0.9 form setup to edit Member Custom Fields, in EE 3.5.10

However, when editing the fields and submitting, all the form fields empty and the 'return' template isn't loaded. It feels like the form is being submitted by jQuery or something weird, but I have no idea how, as I haven't set it up like that.

  {exp:user:edit return="account/billing/updated" form:class="rd-mailform text-left"}

Yet, if I edit the Member in EE, all the correct data has been saved to the Custom Fields.

If I then manually refresh the frontend form, all the data appears correctly in the form fields.

I don't get it. What am I missing?


texts:
We have an existing site running on EE 1.6.8.

We decided to start afresh, clean new site so we have an install of v2.7.1 running.

We’ve built the site, finished the templates and are starting to look at running imports on any old content we want from the EE 1.6.8 site.

To achieve this we’re using Solspace’s Importer and have XML feeds for the old data.

The problem is some characters are outputting odd characters such as

Harrison&#8217;s

If we check the old database table the data looks fine:

Where as the XML doesn't:

We also have an issue where some entries that have been imported end up showing some strange characters in the new templates. An example of this can be seen here:

Oddly the XML and entry appear ok for this:

The old DB 'was' Latin1 but has been changed to UTF8 and that the new DB is UTF8 and the page template (RE 2nd problem) are UTF8 also as are the XML files.

What have we missed?


texts: Pagination using the Query Module or Active Record Plugin

texts:
I have a custom table exp_jobs which I am querying.  I have used {exp:query} and have also been trying out http://devot-ee.com/add-ons/activerecord ...

Having 1 issue which I think could be solved a few ways.  The issue is when you page through the results page 2 I lose the value I am search for.  So if I have search form and I do a post I get: http://website.com/jobs?keyword=medical&job_state=AL

Works fine.

Going to page 2 and I the query string is gone, which I expect.  I need to be able to alter the paging links however the {pagination_links} pair doesn't work for exp:query even though the docs say:

The pagination in the Query module works exactly like the Channel and Comment Pagination with only one exception. Instead of using a LIMIT clause in your query, use the limit=”“ parameter to specify how many results to display per page, and ExpressionEngine will automatically modify your query to display the appropriate results.

Somehow I need to override the standard pagination to include the query string, any thoughts on how I can do that or plugin I may have overlooked.  Tried a bunch.

I also looked at cookies and sessions but not getting consistent results.  I may just need to write my own plugin here to handle this if all else fails.

Thank you!

UPDATE: April 20, 2013

I ended up using jQuery to append the URL based on an earlier recommendation from Rob

<script type="text/javascript">
var querystring = '{querystring}';

$('#paging a').each(function()
{
 var href = $(this).attr('href');
 href += (href.match(/\?/) ? '&' : '?') + querystring;
 $(this).attr('href', href);
});
</script>


texts: SuperSearch in multiple custom fields with just one checkbox

texts:
So, I'm doing a filtration of my search results.
I'm using checkboxes.

In order to get the colours I need to filter with, I loop through all the entries and run it through stash to get rid of duplicates.
Then I put these values in a checkbox-input.

This works great when just looking in one custom field, but with 4 custom fields, not so much.

I can loop out everything as I'm supposed to, but the submitting value needs to be the name of the field it should search in. Meaning the name="farg[]" should be name="frg_2[]" and so on.

The colour "Yellow" can be in any/all of the customs fields, hence me having to run it through stash to get rid of duplicates.

Running supersearch 3.1.4 and EE 3.3.3.
Any suggestions?

Here's the code.

        {!-- Loops out all the colours and stores in list --}
            {exp:stash:set_list name="farger" trim="yes" parse_tags="yes"}
                {exp:channel:entries search:typ="keramik" channel="produkter"}
                    {if farg != ''}
                        {stash:farger}{farg}{/stash:farger}
                    {/if}
                    {if frg_2 != ''}
                        {stash:farger}{frg_2}{/stash:farger}
                    {/if}
                    {if frg_3 != ''}
                        {stash:farger}{frg_3}{/stash:farger}
                    {/if}
                    {if frg_multi != ''}
                        {stash:farger}{frg_multi}{/stash:farger}
                    {/if}
                {/exp:channel:entries}
            {/exp:stash:set_list}

        {!-- Get list, loop out with color name, avoid duplicates --}

Färg

                {exp:stash:get_list
                    name="farger"
                    orderby="screen_name"
                    sort="asc|desc"
                    sort_type="string|numeric"
                    unique="yes"
                    parse="start"
                }

                            <input
                            type="checkbox"
                            name="farg[]"
                            value="{farger}"
                            id="{farger}"
                            class="checkbox"
                            {if super_search_farg == '{farger}'}checked{/if}
                            />
                            {farger}

                {/exp:stash:get_list}


texts:
I've picked up an old EE 1.6 site that has 58k spam member accounts. Anybody got a safe way to delete them all without going through every paginated screen in the CMS? It's on a live server but I suppose I could edit the SQL to change pagination.

I'd rather do it directly in myqsql though I think, but I want to make sure no table relationships are broken.


texts: Playa parent ids automatically shows future entries ids

texts:
I noticed that {exp:playa:parent_ids} returns the parent ids, even if that parent's entry date is in the future.
Isn't it confusing to change the way EE works with future entries?

support answer:

*_ids tags currently don't support the show_future_entries parameter.

There's an upside, though - we are releasing a new Playa version today and this will be fixed in that, so you'll have your issues fixed with the latest version.


texts:
I'm trying to sell a product at a reduce price in a basic store:product tag. I just need a button that when clicked adds the product to the cart with the reduced price, however, it keeps getting added to the cart at the full $200 price, not the reduce amount of 150.00. Any help in figuring this out would be appreciated.

{exp:store:product entry_id="{entry_id}"}
    <input type="hidden" id="item_qty" name="item_qty" value="{min_order_qty}" />
    {modifiers}
        {modifier_options}
            {if option_name == "special"}
                <input type="text" name="{modifier_input_name}" value="{price_mod_val}" />
                <button name="update_cart" class="btn btn-primary">Your Price <span>({price_inc_mod})</span></button>
            {/if}
        {/modifier_options}
    {/modifiers}
{/exp:store:product}


texts:
When I try to update the index for an upload directory, the progress bar will freeze at a certain point. The first time I run the update, it freezes fairly early, but sometimes if I refresh the page and run the update again, the bar will progress quickly, then freeze in the middle or about 3/4 of the way.

Assets works perfectly on my local WAMP server. It's only on the production server where this issue is occurring.

I get this console error multiple times when running the update index:

POST https://www.mysite.com/ 500 (Internal Server Error) jquery.js:177
Uncaught Internal Server Error, admin.php:389

All of my upload directories are 777 permissions.

The URL I'm using to access the control panel matches the Site URL in General Configuration.

The system/expressionengine/cache directory has 777 permissions.

I'm using absolute paths for my File Upload Preferences on my local environment.

External sources are not included.

I also cleared out my .htaccess file except for these rules:

RewriteEngine On
RewriteBase /

# ----------------------------------
# Keep WWW Rule the topmost rule.
# ----------------------------------

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

# Force SSL
RewriteCond %{ENV:HTTPS} !on [NC]
RewriteRule ^(.*)$ https://www.mysite.com/$1 [R,L]

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

This problem coincides with other Assets uploading issues, but I figured I'd start with this.

EE 2.6.1
Assets 2.1.3


texts: Setting up field type tag pairs from custom plugin methods

texts:
I'm currently writing a plugin that returns a result set comprising channel_titles and channel_data. I have a file field in there, so the columns from channel_data are formatted like {filedir_1}filename.jpg

Now, I figure there must be a way to use this information so that I can call the file field type tags (like {field:size}) or the tag pair (like {field}{path}{/field}) from my template, but I don't have a clue how to do this and I can't find any documentation on it. Can anyone help?

In case this isn't clear, here's an example:

My plugin method

My template

You can see, I'm manually converting that string to the path, and it's ugly as sin. Ideally, I'd like to be able to use that file field type in exactly the same way as it's used in {exp:channel:entries}.

Anyone know how to do this?


texts: Solspace: User - Total Entries showing as 0 for user

texts:
I am running Solspace User 3.5.3 on EE 2.9.2 and have a discrepancy with the total number of entries shown for a user.

When I am logged in as admin for the site and I go to my profile in user_main, it says I have a total of 0 entries. However it also has a link to the page that displays all my entries and there are 19 pages worth of entries.

The code for this section is:

Total Entries: &nbsp;
{if last_entry_date == "0"}
This user has not published any entries yet.
{if:else}
{total_entries} &nbsp; (last published: {last_entry_date format="%F %j, %Y"})
{/if}
&nbsp; view all &rarr;

The same problem is evident on the user_entries page where despite the fact that there are 19 pages of entries, the total_count shows as 0.

The code:

{exp:user:stats member_id="{segment_3}" limit="1"}{if logged_in_member_id == "{segment_3}"}My{if:else}{screen_name}'s{/if} Entries {total_entries}{/exp:user:stats}

Clearly {total_entries} is having a bad day.


texts: Some pages giving errors and not loading after migration

texts:
I recently migrated my localhost EE website to a remote Linux server. Now, a few (5 out of about 35) of my pages are returning this error (Google Chrome for Win7):

  No data received.
      Unable to load the webpage because the server sent no data.
      Here are some suggestions:
      Reload this webpage later.
      Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.

In Firefox for Windows, the error is:

  The connection to the server was reset while the page was loading.

The behavior is intermittent on some of the pages. Sometimes you can refresh the page several times and get it to load.

I am using Structure 3.3.8 as well as Low Variables, CE Image, Assets, and other add-ons.

Has anyone seen this problem before? Any ideas what's going on? Thanks.

UPDATE

I tried deleting one of the page entries and recreating it. The new page has the same error.

I have put in a support ticket with my web host to see if they can review the server logs to find any clues.


texts: How do I get the last "ID" (row) created after using the "channel_form_submit_entry_end" hook? Can the hook send me the "ID"? EE5


texts:
I'm using EE v .3.4.4 and have used a dump of the site's live database to keep my development machine in sync from time to time.  This has not been a problem in this project until last week.

After importing the live DB last week, I was unable to login to the CP.  I have the continual loop of the login page being redisplayed.

So I cleared the exp_security_hashes table and the exp_sessions table.

This did not fix the issue.
Adding
$config['cookie_domain'] = "";
to master config works.

But I do not want to keep this as a fix as this is not the correct cookie domain.

What is the correct permanent solution for this?

Thanks in advance.

Dorothy


texts: DevDemon Updater: An upload error occured. CODE: 1

texts:
While uploading EE 2.9.0 zip file, Updater (v3.2.14) is throwing following error:
"An upload error occured. CODE: 1"

Any help would be appreciated.

Thanks


texts: Relationship field in grid field not outputting data using EE3

texts:
I have a relationship field in a grid field which is not outputting any data. But, it should.

{service_types}

{/service_types}

{service_types} is the grid field and {service_types:url:url_title} is the relationship field. This works in EE2, but not EE3 seemingly?

I have checked that the target entries are open and not have silly expired or far future dates etc etc.


texts: Is there a way to restrict the categories tag pair from displaying a category_group attached to an entry?

texts:
I have tried using category_group="4" to restrict the categories displayed in the channel entries tag to ONLY that category group, but it's still displaying from category_group 14 as well. I then tried category_group="not 14" to try and restrict it from displaying those categories, but it changed absolutely nothing.

My news entries use 2 category groups, and I need to restrict it to only display categories attached to the entry from category_group 4. I may just be missing something...but it shouldn't be this hard to only display from one group.

Here is the code I'm currently using, and trying category_group="4" didn't help either:

{exp:channel:entries status="open|Featured" channel="{channel}" category="{cat}" orderby="date" limit="10" paginate="bottom"}

{title}

{entry_date format="%F %d, %Y"} | Filed under: {categories backspace="7" category_group="not 14"}{category_name},&nbsp;{/categories}

                {if news_body}
 Read More &raquo;
{/if}

        {paginate}
{pagination_links}
{/paginate}
{/exp:channel:entries}

I would like to add that show="not 97|98|99" worked, as these are the exact categories in the group I would like to not show. I need a dynamic solution however, as these could be modified by the client in the future.


texts: Whats the best hosting for Expression Engine sites?


texts: Freeform Pro 4.1.3 and Google Event Tracking

texts:
I am trying to add Event Tracking to a FreeForm submit button so that when the user clicks the button it tracks the event in Google Analytics.

The problem I am running into is that regardless of how I try formatting the onClick event, it keeps getting stripped out.

Here's what I have tried:

{freeform:submit attr:class="btn btn--active" attr:value="Send" attr:data-ng-hide="formSent" attr:onClick="ga('send', 'event', { eventCategory: 'Contact', eventAction: 'Form', eventLabel: 'Project'});" }

And this:

{freeform:submit attr:class="btn btn--active" attr:value="Send" attr:data-ng-hide="formSent" attr:onclick="ga('send', 'event', { eventCategory: 'Contact', eventAction: 'Form', eventLabel: 'Project'});" }

Finally I just removed all of capitalization:

{freeform:submit attr:class="btn btn--active" attr:value="Send" attr:data-ng-hide="formSent" attr:onclick="ga('send', 'event', { eventcategory: 'contact', eventaction: 'form', eventlabel: 'project'});" }

Regardless the outcome is always the same:

<input type="submit" name="submit" value="Send" class="btn btn--active" data-ng-hide="formSent">

As you can see, the onClick code is completely removed. Any ideas on what I am doing wrong?


texts: Uncaught TypeError: $.ee_filemanager.toggle_all is not a function

texts:
I encountered this bug in a clean install of EE2.9.3, using MSM.
I commented out the $.ee_filemanager.toggle_all in 'themes/compressed/cp/files/file_manager_home.js'.

Is this a bug? Or something I did wrong during installation?


texts: Best practices: Images in entries with custom HTML5-attributes

texts:
I want the images in my entries look like:

Right now I am using Wygwam as WYSIWYG.

I would prefer any solution where the metadata of the image is stored separately. Perhaps there is a plugin to handle this?!

I would appreciate any idea, thanks!


texts: Accessing Master Config environment names within templates

texts:
I'm using Focus Lab's brilliant Master Config https://github.com/focuslabllc/ee-master-config but wondered if it is possible to use the ENV constant in a template?

Something like this?

{if ENV == 'staging'}Show this.{/if}

Thank you.


texts: Need query that filters entries by category

texts:
I need to display entries from Channel 1 and entries from (Channel 2, Category 1).

I'm guessing the meat of the query would be something like this:

WHERE channel_id = 1 OR (channel_id = 2 AND cat_id = 175)

And this is the full query I'm trying to use, which isn't working:

{exp:query sql='SELECT t.entry_id FROM exp_channel_titles left join exp_category_posts p on p.entry_id = t.entry_id WHERE channel_id = 88 OR (channel_id = 11 AND cat_id = 192) LIMIT 8'}{entry_id}{/exp:query}

This is the error I'm getting: "Unknown column 't.entry_id' in 'field list'"


texts: Multiple Freemember login forms on one page, prefix tags?

texts:
I have to keep the quick login form in the header whilst on the proper login page.

This means that if you submit either form with an error, it shows the error messages in the header and in the main content area.

Is there any way to prefix the tags?

{header:field:email} and {content:field:email} for example?


texts: Compare url segment and category name with conditional

texts:
I'm trying to write a conditional so that the I can output an active css class when the url segment is the same as the category name. Because the url segment includes dashes between each word and small case and the category name have uppercase characters without dashes the == operator is not evaluating true. Any advise on how to best accomplish this?

My Current Code:

{if segment_4 == category_name}active{/if}

Updated Answer

Found a solution using Low Seg2Cat plugin to get category_id from segment url:

{if segment_4_category_id == category_id}active{/if}


texts: How to store temporary data for a user just for their session?

texts:
I need to allow a user to add articles to a wishlist that they can then e-mail or print. The data doesn't need to be saved or last longer than their session.

Is there a native EE way of doing this without writing a plugin myself? Or can anyone recommend a plugin that they know does this and that they have experience with please?


texts: Thanks for your help.  We are about to build a solution for a client and we will use the multi-site addon.  These six sites will all be identical except that each will have unique content assets and be on their own domains.  Assuming that all the sites will use the same templates and design, what is involved in adding a new site down the road?  Is it pretty easy for a dev to knock out?  Can the hours be roughed?


texts: Low Variables not allowing new cell or entries when using Matrix

texts:
I'm using Low Variables v235 with Expression Engine Core. I'm trying to create a new variable which uses Matrix, but something isn't right. Matrix won't allow me to add a new column. There are no + signs below the cells, and the formatting doesn't look quite right. When I tried to create a new entry, the line 'No rows exist yet. Create the first one.' appears, but won't let me click on Create the first one, even though it appears as a link. The cursor remains as a text selector, rather than changing to the 'finger' like it should if it were a link.

I uploaded Low Variables again just in case there was something wrong (both system and theme files) with the first installation, but i'm having the same problem.

I've used LV before, with Matrix, and haven't had this problem. I just don't know what's wrong this time.


texts: Can't log in to CP after installing Multiple Site Manager, can't switch sites

texts:
ExpressionEngine v2.5.2
Multiple Site Manager 2.1.4

I installed MSM 2.1.4 in an existing running version of EE 2.5.2.

It seemed to be installed OK, I was able to create a new site, but before I had a chance to do more I logged out.

When I came back I was unable to log in. The login panel seems to submit, clears its fields, but remains in place without logging in. Multiple tries make no difference

The only way I have been able to log in is by editing config/config.php and setting
$config['multiple_sites_enabled'] = "n"; instead of y;

If, after I log in, I set MSM to "on", I can access the menu to edit or add a site, but I cannot switch to the site I've created, it stays on the current site.

Once I log out, I'm locked out again.

On looking through as many references to this problem as I could find on StackExchange and the Ellis Lab forum archives (apparently it's not an uncommon problem) I found that in most cases they say deleting cookies and clearing the cache, and/or resetting session security preferences solves the problem.

This hasn't worked for me.

I have:

• Tried clearing caches and deleting all cookies - on 4 different browsers (Safari, Firefox, Chrome, Opera) on two different computers (both running Mac OS X 10.6.8)

• Tried changing Security and Sessions CP Session Type and User Session Type -  to all thee options, logging out and logging in again each time. In each case I can log in as long as Enable MSM is set to "No". If I set Enable MSM to "Yes" and log out,  I'm locked out again, no matter what the Session Type; only able to log in if I reset it to no in the config file.

• Tried adding these values to config/congif.php (as per this post: Can't login to CP after logging out ):

$config['cookie_domain'] = "";
$config['cookie_path'] = "";
$config['cookie_prefix'] = "";
$config['admin_session_type'] = "s";
$config['user_session_type'] = "c";
$config['require_ip_for_login'] = "n";
$config['require_ip_for_posting'] = "n";
$config['secure_forms'] = "n";

(No change - removed again)

I have successfully used MSM before on another site on the same web host (HostMySite.com).

Has anyone else encountered this problem to this level?


texts: how to get parent URLs belonging to it's child categories?

texts:
i wants to get parent url of child categories like this Example: PRODUCTS & SERVICES > ENTERTAINMENT > SURPRISE PROMO.

PRODUCTS & SERVICES is my parent category, and ENTERTAINMENT is PRODUCTS & SERVICES's child category, and SURPRISE PROMO is ENTERTAINMENT's child category. so i need to get full url like this "www.example.com/products-services/entertainment/surprise-promo"

{exp:channel:categories category_group="1"}
    {category_name}
{/exp:channel:categories}

Please help how to get full URL,

thanks in advance


texts: Profile:Edit ajax login form doesn't display errors

texts:
I have a login form saved as a snippet, which I include in the pages where it's needed, and the script that runs it is in the header include template. Basically, I use Ajax to avoid showing that interstitial page when logging in, and it works as expected for that. However, when I add error_handling="inline" and put error variables in the form template, nothing shows up -- the form clears itself, but no messages show up.

This is the form:

{exp:profile:login return="{path={segment_1}/{segment_2}/{segment_3}/{segment_4}}" include_jquery="no" json="yes" error_handling="inline"}
Username
<input type="text" name="username" value=""  maxlength="32" class="input" size="25" />        {error:username}
Password
<input type="password" name="password" value="" maxlength="32" class="input" size="25" />{error:password}
     {if auto_login}

     Remember Me?
     <input type="checkbox" name="auto_login" value="1" checked="checked"> {/if}
Login
  {/exp:profile:login}
 |{errors}{error}:{field}|{/errors}

This is the jQuery, just in case that's the problem:

I am running EE version 2.5.5 and Profile:Edit 1.0.7.  I tried all the variations of error variables shown here, and nothing works.


texts: CE Image + Assets + S3 = Really Long and Ugly URL

texts:
I'm using a combination of Assets (with S3) and CE Image to store and manipulate my images respectively.

Here's an example of the tag I use:

{exp:ce_img:pair src="{url}" width="1280" height="720" crop="yes" save_type="jpg" allow_scale_larger="yes" quality="81" cache="yes" refresh="360"}{made}{/exp:ce_img:pair}

And this is an example of the URL it produces:

http://bucketname.s3.amazonaws.com/images/made/images/remote/http_s3.amazonaws.com/bucketname/articles/imagefile.jpg

Is there any way to get around producing such a long and ugly URL when using these two add-ons together?


texts: Load RTE into custom module for use in control panel

texts:
is there a way to load the RTE javascript in a module for the cpanel?

I have tried the following, but keep getting an error when refreshing the page:

ee()->load->library(array('javascript', 'rte_lib'));

ee()->javascript->output(
  ee()->rte_lib->build_js(0, '.WysiHat-field', NULL, TRUE)
);

error:
Unable to load the requested class: rte_lib

any ideas?

thanks in advance.


texts:
I've got Low Search working in a site thats using keyword and a separate category filter menu.

The client has pointed out that when he searches for...

  Director - Product appears (As is in 'Title')
  Directors - Product doesn't appear

  Robens - Product appears (As is in 'Title')
  Roben - Product doesn't appear

I've got this current setup...

{exp:low_search:form
    result_page="shop/search"
    form_class="form-inline"
    collection="shop_product"
    keywords:lang="en"
    keywords:inflect="yes"
    keywords:loose="both"
    keywords:mode="all"
    keywords:stem="yes"
    search_mode="any"
}

            <input type="text" name="keywords" placeholder="I'm looking for...">

            <input type="submit" value="Find" class="button alternate">

{/exp:low_search:form}

But I feel like I'm adding too many parameters in for this to work. I've read through numerous docs and form/stackexchange posts and still can't seem to get this working.

Any ideas?


texts: 'Champagne' messes up my publish layouts

texts:
I already tried contact the guys from 'mighty big robot', but their support doesn't seem to be that fast and I really need to have this fixed. So I might as well try my luck over here.

So, I installed 'champagne' - http://devot-ee.com/add-ons/champagne and it works great.

It allows you to send newsletters through campaign-monitor directly from expressionengine. It also allows you to use EE's templating system to generate a template that can be use for your newsletter.

You can do this by selecting a EE-template that will be used for your newsletter in the channel you'll be using to create your newsletters. Like so:

Note: 'newsletter' is my channel, 'newsletter/index' is my template.

BUT, not every channel needs a newsletter. So when leaving these fields blank, like this:

You would expect that the 'champagne' module doesn't load when accessing the publish layout for this particular channel.
Unfortunately, it does: it ads a tab and a custom field, but they're riddled with errors and are messing up the whole publish layout. Like this:

I tried fixing it myself, but I just can't figure out where the module starts adding the tab and custom field.

In ft.champagne.php at line 85 it checks wether a template has been assigned to the channel and throws an error when this isn't the case.

if ( ! isset($channel_settings['html_content_url']) OR ($channel_settings['html_content_url'] == '' OR $channel_settings['text_content_url'] == ''))
{
return $this->EE->lang->line('msg_no_channel_settings');
}
else
{
    ...

The statement is correct: the code goes into the 'if' segment ( and stays out of the 'else' ) but it doesn't print the error, and it doesn't prevent the module from loading the tab & fields when it shouldn't.

Any ideas ?

EDIT:

nico suggested to reset the publish layout, which works. But I would rather solve this without having to reset and rebuild the publish layout of a few dozen channels.