texts: Export Calendar .ics not auto-refreshing, event times off

texts:
Good Morning,

I want to set up the export calendar function to allow a user to type in a URL into their Google Calendar, then automatically stay up-to-date as new users add to my non-profit's events calendar.

After reviewing document I have altered the example text (see below), but found that whether I download the .ics file directly, or whether I ask Google Calendar to add by URL where the revised text is located (http://mygatewayarts.org/calendar/export), that

1) the link is not active: the calendar does not include the latest information days later.

2) Despite setting the calendar to start today, I see some past recurring events, but certain one-time events do not.

3) Some event times are incorrectly listed.

Would you propose any tips or alternatives to the example text? Is this the best way to go about it?

4) Lastly, it'd be helpful as well if the descriptor text could link to the event detail page.

{exp:calendar:icalendar
    orderby="title"
    sort="asc"
    date_range_start="today"
    show_years="5"
    dynamic="off"
}
{/exp:calendar:icalendar}


texts: Want to display all but 1 category in channel entries loop

texts:
I would like to display all but 1 category in my channel entries loop. I tried doing category="not .." but it doesn't work. Here is my code

{exp:channel:entries channel="lm_edit" sort="desc" category="not 42" limit="5" disable="member_data|trackbacks|playa|pagination" status="open|LMonly" dynamic="no"}
    {if count == "1"}

    {if lm_main_image != ""}
    {exp:ce_img:single src="{lm_main_image}" border="1|b9b3be" width="150" height="75" crop="yes" align="left" class="img-responsive" id="tabimg"}
    {/if}
    {title}

    {if lm_deck == ""}{/if}
    {if lm_deck != ""}{exp:eehive_hacksaw chars = "100" append="..."}{lm_deck}{/exp:eehive_hacksaw}{/if}

    {if:else}

    {title}

    {/if}
    {if count == "5"}More News{/if}
   {/exp:channel:entries}

When I get rid of 'not' and just have category="42", all entries from 42 display. When I add back the not nothing is filtered out and all entries display.


texts: Channel form entry status always set to closed

texts:
I have a site that I recently upgraded, and converted a safecracker form to a channel form. Since the upgrade, every entry posted through the form has its status set to closed, no matter what the status field is set to in the form. I use the same form for editing, and I am able to edit an existing entry and change the status, but EE seems to be ignoring the status set via the form when the entry is created.

I have custom status set up for the channel, and have 'held' set as the channel default. I tried stripping out the status field entirely, and adding

<input type="hidden" name="status" value="held" />

but that didn't change anything.

The channel has my custom status group assigned to it, and all members have access to my custom statuses.

It doesn't matter whether I'm logged in as a regular member or a superadmin, new entries posted through the channel form always have the status set to closed.

Is there some way around this? Relevant form code is below:

{exp:channel:form
 channel="calendar_events"
 include_assets="no"
 use_live_url="no"
 return="schedule/appointment/confirm/{if segment_4 ==     "edit"}edit/{/if}ENTRY_ID"
 {if segment_4 == "edit"}entry_id="{last_segment}"{/if}
 logged_out_member_id="6"
 rules:appointment-time="required"
 }
{!-- Set Entry Status --}

Status

<select name="status" id="status">
  <option value="Held" {if status == "Held"}selected{/if}>Hold</option>
  <option value="Booked" {if status == "Booked"}selected{/if}>Book</option>
  {if logged_in_group_id == "1" OR logged_in_group_id == "7"}
  <option value="open" {if status == "open"}selected{/if}>Delete</option>
  <option value="closed" {if status == "closed"}selected{/if}>Closed</option>
  {/if}
</select>

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


texts: Can multiple Freeform recipients be set per drop-down option?

texts:
For example, can I set the following to set one chosen recipient to be sent to multiple emails?

{exp:freeform:form
    form_name="request_a_quote"
    recipients="yes"
    recipient1="email.A@site.com|email.B@site.com"
    recipient2="email.C@site.com"
    recipient3="email.D@site.com,email.D@site.com"
    required="name|email|phone_number"}


texts:
I'm having a difficult time trying to troubleshoot what is wrong with my page in expression engine.

I have a channel called site_pages and I'd like to select the entry for it, but it doesn't work... I'm almost sold on just using php for everything because Expression Engine is soooooooo ridiculous to troubleshoot these issues.

Here is what I'm running as a test; this h1 doesn't even render;

{exp:channel:entries channel="site_pages" url_title="new"}

Hello 1

{/exp:channel:entries}

What I'm really looking for is this;  But I'm not that advanced yet...

{exp:channel:entries channel="site_pages" url_title="new"}

{/exp:channel:entries}

EDIT:

I got some data to show on the site by creating a new field that matches the url_title and can get data back by this

{exp:channel:entries channel="site_pages" pageId="new"}

{/exp:channel:entries}

Still odd, I can't easily output the query run by expression engine


texts:
I have a news section which is functioning like a blog. Currently in the navigation I am statically listing the years for which content was published. I would like to change this so that ExpressionEngine will automatically generate links to different years only if there are articles that were published that year.

Here is the code I am currently using:

News

<a href='{path=news/article/?latest=true}'   <?php if(isset($_GET['latest'])){echo 'class="active"';};?> >Latest Post

<a <?php if($year == '2013'){echo 'class="active"';}; ?> href="{path=news/?year=2013}">2013

<a <?php if($year == '2012'){echo 'class="active"';}; ?> href="{path=news/?year=2012}">2012

<a <?php if($year == '2011'){echo 'class="active"';}; ?> href="{path=news/?year=2011}">2011

Can anyone tell me how I would change this code so that the years are automatically populated based on when articles were published?

Thanks in advance!


texts: Any idea on how to debugg this "Developer log" alert message?

texts:
Possible Duplicate:
  How can I find out which add-on is sending a message to the developer log?

I have this message in my Developer log about some Add-on using "login_form()" function. When I search through all my Add-ons this function is nowhere to be seen :)

Any ideas how I remove this message? Keeps popin' up every 2-3 day.

Also it's complaining on "row 0"? :)

Thanks all!

Here's a screenshot of error: http://i.stack.imgur.com/vPEuO.jpg


texts: Disallowed Key Characters - MX Google Maps extension

texts:
Using EE 2.8.1 I get 'Disallowed Key Characters' after setting up the field type.
I have downloaded the latest MX Google Maps extension.

Any thoughts?


texts: Can I add together the values of the cells in each Matrix row?

texts:
The Matrix docs say:

  :average, :lowest, :highest, and :sum

  These tags return the average, lowest, highest, or sum value of a given numeric column in your Matrix field.

I have a matrix field that is all about hours spent on different activities and different weeks. I not only want to get the sum of each column (the weeks) but also the sum of each row (the activities) and if possible get the sum of every cell in the whole table. Is that possible or do with just Matrix or do I need to install something like the Simple Math Add-on?

so instead of {matrix_field:sum col='week1'} is there something like {matrix_field:sum row_id="1"}


texts: Can I have show different member registration fields for some users?

texts:
I'm using the Members module and would like some users to enter just these fields to register: username, password, email address. But I'd like to collect that plus my custom member fields from other users who are using a different function of the site.

Is there a good way of doing this?

Right now I'm trying editing /themes/default/registration_form.html. I removed those useless "AIM" type fields, leaving me with username, password, email, custom fields loop. So I was thinking of wrapping a conditional around the custom fields that checks a URL segment, but passing an additional segment--e.g. members/register/add_custom_fields--is getting a 404 error. Maybe there's another way of passing some flag to tell the page whether to show the custom fields?

Using EE 2.7.3

Any tips are appreciated.


texts: Just wondered if anyone has a painless way of setting up a staging URL for website development. I often use Heart Internet, but the temporary URLs provided (ie ipaddress/domainreference) do not work with EE installations. In the past I've changed the domain ref to a staging domain, and got the client to point a subdomain to the new IP address. However, I'm not sure if Heart are allowing this now. I can also setup a hosts config locally, but that's makes client reviews awkward. Any thoughts greatly appreciated.


texts: Categories work on dev server but not live server

texts:
We've just moved a site from the dev server to the live server and everything seems to be fine. However, the categories filtering on the blog doesn't seem to be working.

The URLs generated are:

/blog/category/recipes

The sidebar code for the categories is:

Categories

  {exp:channel:categories channel="blog" style="linear"}

{category_name}

  {/exp:channel:categories}

The stripped down channel entries tag for "blog/index" is:

{exp:channel:entries channel="blog" orderby="entry_date" sort="desc" limit="5"}
{if no_results}No results{/if}

{title}

      {blog_main_content:excerpt}

Published on {entry_date format="%l %j %F %Y"}

{/exp:channel:entries}

What could I have missed during the site move? Where should I start looking to troubleshoot this?

Thanks for any advice

EE2.5.5

EDIT:
Archives seems to be filtering though:

/blog/archives/2013/04

{exp:channel:month_links channel="blog" limit="12"}

{month} {year}

{/exp:channel:month_links}


texts: Problem with Safecracker File in a second Matrix field not uploading file

texts:
I have a Safecracker form where I have more than one Matrix field in the form. Each of these Matrix fields has a Safecracker File field as the first column. When testing the form out I can only upload files into the first Matrix field. I get no inline errors, just an empty field in the second Matrix field.

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

Has anyone come across this problem before. Sample template code for the two fields below:

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

{global_errors}

    {error}

{/global_errors}

{field_errors}

    {error}

{/field_errors}

    Screen Grabs (Desktop)

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

    {field:website_screens}

    Screen Grabs (Mobile)

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

    {field:website_screens_mobile}

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

{/exp:safecracker}

There's other problems with this combination when it comes to proper error messages being parsed through, but will get this working first.

Uploading to the second Matrix field works as expected in the EE control panel.

Would love some assistance as I'm really quite ready to punch someone fair square in the face...this shit should work by now!!!


texts: Categories of a category_group won’t show

texts:
I have a strange thing in EE 2.8.1.  I want to show a list of all categories in category_group=“1” but nothing won’t show up.

I have 3 category groups

ID 1 - with 105 categories, top & sub level, Channel = "Producten"
ID 2 - with 2 categories, Channel = "Nieuws"
ID 3 - with 1 categorie, Channel = "Producten"

When i use for example:

{exp:channel:categories channel="producten" dynamic="no"}
{category_name}
{/exp:channel:categories}

{exp:channel:categories category_group="2" dynamic="no"}
{category_name}
{/exp:channel:categories}

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

Example One: I just get the one category from ID 3 and nothing from ID 1
Example Two: Just works great, nothing special
Example Three: Nothing happend, but why?

So i don’t see what can be the problem, anybody else have a idea? Looks like EE does not see Group 1.


texts:
I have a problem where I need to increment a variable if it satisfies a conditional like so:

{matrix_tag_pair}
  {if matrix_column_name}
    $increment++
  {/if}

  {if $increment > 9}
    do this...
  {if:else}
    do that...
  {/if}
{/matrix_tag_pair}

Is it possible to do this without enabling PHP in a template? I don't see where you can create throwaway variables like counters using just EE template tags.

Solution:
Increment was close enough that I modified the source so it could also return the count without incrementing.

{exp:pvl_increment start="0" step="1"}
{matrix_tag_pair}
  {if matrix_column_name}
    {exp:pvl_increment random}
  {/if}

  {if {exp:pvl_increment increment="no" random} > 9}
    do this...
  {if:else}
    do that...
  {/if}
{/matrix_tag_pair}

Thank you for pointing me in the right direction. This was enough that I didn't have to enable PHP in my template. This slightly modified version of Increment combined with Loop Plus could be a very useful combination.


texts:
I have a page that I want to list the entries in a channel, but I ONLY want the entry to be listed IF it has a relationship. So I am populating the filter with the following:

SHOW BY SERVICE

All

    {exp:channel:entries
        channel='service'
        orderby='title'
        sort='asc'
        disable='categories|member_data|pagination'
    }

            {title}

    {/exp:channel:entries}

I don't mind writing a custom query to do it, but I tried this:

SELECT DISTINCT(title) AS parent_title FROM exp_channel_titles WHERE entry_id IN ( SELECT DISTINCT(parent_id) AS parent FROM exp_relationships )

with no luck. Maybe I am over complicating things with this one. The rest of the page is under an entry loop in another channel:

{exp:channel:entries
    channel='success_story'
    disable='categories|member_data'
    orderby='date'
    sort='desc'
}
    ...

The field is in the Success Stories channel as a relationship field named {services_used} which is pointing to the Service channel to relate it to the various services used.

I just need to be able to list the Service channel entries (distinctly) if they are referenced as used by a Success Story entry.


texts:
I have, more or less, have these structure

templates
    test.group
       index.html
       another-file.html
       assets
           styles
              foo.css
           scripts
              bar.js

As you can see, I put some Javascript and CSS files into a template folder in JS.

I have reasons for this so let's say this is our goal.

I need to include foo.css and bar.css. To access it, I tried

<link href="{site_url}index.php/test/assets/styles/foo.css" rel="stylesheet" type="text/css" />

<script src="{site_url}index.php/test/assets/scripts/bar.js" type="text/javascript"></script>

But this does not work. What I saw was the contents of index.html.

Which is the correct result if you follow EEs template structure.

But I want to bypass this. I want to be able to access the css and js file.

Is there a way to do this?


texts: Updated from EE 2.5.2 to 2.7.3 channel:form outputs error tags

texts:
I updated EE 2.5.2 to 2.7.3, changed the exp:safecracker tag to exp:channel:form.

Sending a new entry with no content outputs not an error message as expected it shows the tags like

{field_errors}
   {error}
{/field_errors}

channel:form has this parameter: error_handling="inline"

I am wondering why that is and how I could fix it?


texts: Why are the Wygwam toolbar icons not showing?

texts:
I am running Expression Engine 2.6.1 and Wygwam 3.0.2 but the icons do not show up in the field. I could use some help getting them to show up properly.

I get the following error when the page loads in Chrome:

chrome.tabs is not available: You do not have permission to access this API. Ensure that the required permission or manifest property is included in your manifest.json. [VM] binding (1054):216
Binding.generate [VM] binding (1054):216
(anonymous function) [VM] tabs (1140):43
(anonymous function) measureIt.js:120
Uncaught TypeError: Cannot call method 'create' of undefined measureIt.js:120
GET http://independence4seniors.com/themes/third_party/wygwam/lib/ckeditor/skins/wygwam3/skin.js?t=D09H5XK 404 (Not Found) ckeditor.js:16
Uncaught TypeError: Cannot read property 'init' of undefined

I reloaded the theme but still get the same result.

Any ideas?

Thanks.


texts: Non-existant subdirectory URLs display a blank white page instead of redirecting to homepage

texts:
Currently, I have Strict URLs disabled in my global preferences so that if somebody tries to access a page that doesn't exist, it will just bring them to the homepage. However, this only works on pages that are in the root of the folder structure. For instance if I go to http://mysite.com/nonexistant it will reroute me to the homepage as it should, but if I go to http://mysite.com/about/nonexistant it presents a blank white page.

I tried enabling Strict URLs and specifying a 404 page(because this will be what I do eventually) and the same issue occurred. http://mysite.com/nonexistant shows me my 404 page, but http://mysite.com/about/nonexistant displays a blank white page.

Any ideas on how to fix this?

Thanks in advance!


texts: Is this how to redirect when using strict urls?

texts:
I've got a blog the url structure like this and strict urls's turned on.

www.site.com/blog
This lists all the blog entries

www.site.com/blog/post/url_title
This is the single entry page displaying the entry

Now, if www.site.com/blog/foo they'll still get a full list of blog entries. Would it be a good practice to add this at the top of /blog to prevent it happening?

{if segment_2 AND segment_3 == ''}
  {redirect="404"}
{/if}


texts: Primary Category {selected} in Channel Form

texts:
Primary Category, when used with Channel Forms as per these instructions: http://www.solspace.com/docs/primary_category/using_with_channel_form/, does not function as expected.

The problem is that the {category}{/category} tags make all selected categories {selected}, even if they are not the single selected Primary Category. So the select box for the Primary Category selection has multiple selected options, which of course is not allowed in HTML and so it often highlights the incorrect value as the selected one.

Is there another way, other than using the {selected} variable, to select only the single Primary Category in this category select box? Otherwise it can't function reliably in Channel Forms unless each entry is assigned to only a single category.


texts: Channel Form refuses to set Status to entry

texts:
I found a year old post regarding this issue as well (Setting entry status with Channel Form) but no apparent solution.

Has anyone come upon one yet?

Basically I can do this:

{status_menu}
    <select name="status">
        {select_options}
    </select>
{/status_menu}

But no matter if I am logged in as a super admin, regular user or even a guest, the entry saves with the intended status. It's like the field is being ignored.

Any clues?


texts:
I'm migrating a site from Media Temple (GS) to (DV), but every URL without index.php returns the homepage. URLs with index.php display correctly.

FastCGI is disabled, here are the contents of my .htaccess file:

AuthUserFile /path/to/my/password.file
AuthName "Please Log In"
AuthType Basic

require valid-user

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

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

EE 2.6.1


texts:
I know you can easily load a random entry from a channel, but I wanted to know if the functionality exists in EE to randomly embed and load a template from a group?

Thanks in advance for any guidance on this.


texts: Remove Cookies Allowed Default EE Message when using Cookie Consent Module

texts:
I have recently installed the Cookie Consent Module on a recent EE site build,
and have added an allow cookies link (ie. {cookies_allowed_link} ) to a policy banner at the top of the site.

My question is:

Is there anyway to remove the default EE ' Cookies Allowed ' grey message box from showing? ie. I just want the user to able to click allow cookies and the site just carries on as normal with out going to a message screen.

Many thanks in advance on this :-)

Regards

Karl


texts: I am including a form:action="" parameter in my Freeform tag that runs a script. The script runs correctly, but the Freeform submission doesn't get saved to the database or emailed. Am I missing a step?


texts:
Good evening.

I want to be able to add a note to each item in the cart that is not editable by the customer.

I can get a note to appear in the form of a text box, however they are always writable.

I wondered if there is a way to disable the input on the View/Update cart page.

I am providing the note to the item via a little bit of PHP.


texts:
I have a simple search form.  When the results are displayed, it doesn't show the template group / template in the URL.  It shows just the entry URL.  I'm using the {auto_path} variable.  I realize I could go into each channel and change the URL, but is there an easier way?

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

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

{/exp:search:search_results}


texts:
I have the following code:

    {cf_concerts_media_assets var_prefix="asset"}

{if asset:title}{asset:title}{if:else}{asset:filename}{/if} ({asset:size})

    {/cf_concerts_media_assets}

with or without the prefix it is rendering the size in bytes instead of the formatted version?
I am on EE 2.5.5 and assets 2.0.3

cheers
stefan


texts:
I am building a newsletter template that will display between 5 and 7 articles. My client will get to choose which articles will display by putting the entry_id's in the url (ex. http://site.com/newsletter/111/222/333/444/555/666). How can I do this? Also, I am using an older verion of EE (hence the use of 'weblog'). Below is my code, which only works if there's 1 article (ex. http://site.com/newsletter/111)

{if segment_1 != "" }

{exp:weblog:entries entry_id="{segment_1}" limit="1" dynamic="no" disable="member_data|pagination|categories"}

                    {if image != ""}{image}{/if}

                            {title}

                            {if alt_summary != ""}
                                {exp:strip_p}{alt_summary}{/exp:strip_p}
                            {if:else}
                                {exp:strip_p}{summary}{/exp:strip_p}
                            {/if}

{/exp:weblog:entries}

{/if}

{if segment_2 != "" }

{exp:weblog:entries entry_id="{segment_2}" limit="1" dynamic="no" disable="member_data|pagination|categories"}

                    {if image != ""}{image}{/if}

                            {title}

                            {if alt_summary != ""}
                                {exp:strip_p}{alt_summary}{/exp:strip_p}
                            {if:else}
                                {exp:strip_p}{summary}{/exp:strip_p}
                            {/if}

{/exp:weblog:entries}

{/if}


texts: Expresso Store: Add PDF attachement to order confirmation emails

texts:
Is it possible to add an attachment to the order confirmation email in expresso store?

The attachment is just a generic terms and conditions type thing. So will be the same for all orders.

Thanks
Dave


texts: Possible to change encode options for each low search form?

texts:
I was able to use low search to filter entries, by getting the values of the parameters in the URL, I set No for encode query setting in the low search module.

I set it back to Yes to and tested my sitewide search form, which it needs to be encoded.

is there an encode parameter in the form tag that I can set on the fly?

If I could get this (below) to work using the query="{segment_2}" then I won't need to set the encode setting on the fly:

<select name="store:price">
    <option value="0">PRICE</option>
    <option value="|10"{if get:price == "|10"} selected{/if}>up to $10</option>
    <option value="10|25"{if get:price == "10|25"} selected{/if}>$10 to $25</option>
    <option value="25|50"{if get:price == "25|50"} selected{/if}>$25 to $50</option>
    <option value="50|100"{if get:price == "50|100"} selected{/if}>$50 to $100</option>
    <option value="100|"{if get:price == "100|"} selected{/if}>$100 and up</option>
</select>


texts: Gathering category_id value from segment - Low Seg2cat

texts:
Not sure if I doing it wrong, my basic url goes like this

====

'site.dev/scooter' - I used {segment_1_category_id} and I get the value of "8" which is correct

If my url is 'site.dev/8' and I used {segment_1_category_name} and I get no results? I tried all the variables on the docs, nothing works.

The docs did not say this extension only works with category_url_title

====

I know I can do it with category loop with {segment_1}, etc etc. If my url goes like this
'site.dev/scooter-unicycle'
My result is 8 and 9 which is correct. This is reason why I am using Low Seg2Cat

====

This is not a duplicate, I have checked other querys.


texts: Error from YearList plugin: Non-static method Yearlist::usage() should not be called statically

texts:
I recently noticed that I was getting an error message from one of my plugins YearList. The page the error occurs on seems to function as expected despite the error, but I would like to resolve the error or at the very least hide it from view.

The error being displayed is:

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

And the error says it is occuring on this line of pi.yearlist.php

$plugin_info = array(
                 'pi_usage'         => Yearlist::usage()
               );

Any ideas?


texts: display category and child id’s separately for masonary filtering

texts:
I am using masonry filters to filter entries on a template using category ID’s to differentiate

Filter buttons:

All

   {exp:query sql="
        SELECT *
        FROM exp_categories
        WHERE group_id IN (4)
        ORDER BY cat_name ASC"}

{cat_name}

        {/exp:query}

Then each entry has the category id in the class for filtering:

The problem I have is an entry has a parent AND child category they will not be included in the filter because the ID’s are combined.

ie: USA cat id = 11 New York child id is 65 So this entry’s class will be 1165. I need to separate them so I have just the parent 11 ideally also have 65 as a separate class but not sure how that will work with my filtering.

This would be my goal:

class="masonry-item col-sm-6 col-md-4 mansonry-filter-11  mansonry-filter-65 hentry"

EDIT:
I think this is my solution


texts: Solspace Tag and serach by tags from tag group

texts:
I have created tags group "Attributes", which contain tags for product colors, material which was made etc.

I have set that tag field as searchable, but I have hit a wall on searching site using tags from the "Attribute"

Example: searching for "red Pinto Paris armchair" where 'red' is an attribute tag, 'Pinto Paris' is the product name (EE title entry field) and an 'armchair' comes from the product description (EE entry field). I'm able to search for "Pinto Paris armchair" but is not show up only those armchairs tagged as a red.

Search snippet looks like:

{exp:search:simple_form channel="products" search_in="everywhere" result_page="search" no_result_page="search/noresults" status="retail|open" where="all" results="12"}
          Search
          <input type="text" name="keywords" id="keywords" placeholder="Search" />
          <button type="submit" name="submit"></button>
{/exp:search:simple_form}

Any clue what can be wrong?

Thanks


texts: how to work with the MVC in EE as we do on the CI for custom functionality?

texts: I need to implement the custom search function that will search data from another database so where I write the code as we do in CI MVC ?


texts: Implementing Google Trusted Stores on EE Site

texts:
I'm trying to implement Google Trusted Stores on my Expression Engine site using Expresso Store addon.

I was able to get the GTS Badge code/part to work, however I can't get the 2nd code/part to work. Here is an example of Google's code:

  MERCHANT_ORDER_ID
  CUSTOMER_EMAIL
  CUSTOMER_COUNTRY
  CURRENCY
  ORDER_TOTAL
  ORDER_DISCOUNTS
  ORDER_SHIPPING
  ORDER_TAX
  ORDER_EST_SHIP_DATE
  ORDER_EST_DELIVERY_DATE
  HAS_BACKORDER_PREORDER
  HAS_DIGITAL_GOODS

    ITEM_NAME
    ITEM_PRICE
    ITEM_QUANTITY
    ITEM_GOOGLE_SHOPPING_ID
    ITEM_GOOGLE_SHOPPING_ACCOUNT_ID

My question is, how do I pulled the customer email, customer country, etc details into the script. I tried using the Expresso Store tags for the data {order_total} etc, but that didn't work. I also tried that again after placing the Google script inside of my {exp: expresso store loop.

Using EE 2.8.1 and Expresso Store is up-to-date.

Thanks in advance!!


texts: How can I set up nginx to serve Stash's static cache?

texts: Mark Croxton helpfully provided this sample .htaccess for using Stash's static cache on Apache servers. Unfortunately, I'm running this particular site on nginx, and I haven't found any good answers on how to accomplish these same rewrite conditions with nginx. I'm hoping someone else has done it already and doesn't mind sharing their solution.


texts: EE 2.7 to 2.7.1 Upgrade Problem - Undefined variable: template_group

texts:
I had this error in one page that I have after upgrade.

A PHP Error was encountered
Severity: Notice
Message: Undefined variable: template_group
Filename: libraries/Template.php
Line Number: 1959

A PHP Error was encountered
Severity: Notice
Message: Undefined variable: template
Filename: libraries/Template.php
Line Number: 1959

Anyone has an idea what the problem is here?

An Observation that might be useful or not

Looking at libraries/Template.php, it seems to me that there is a chance that $template_group and $template will not be set based on the scope and conditionals. Is this wrong?


texts: User Categories, User:Edit Expected Behavior

texts:
I'm using categories in a user:edit tag and also in a user:profile tag on separate templates. In the user:profile template the categories that the user is assigned to appear, however in the user:edit template the checkbox for the assigned category is not selected. Should it be? All other member data is populating as expected.

I'm using this code from the example as a test:

{categories}
    {category_selected}selected="selected"{/category_selected}
    {category_body}
        <input type="checkbox" name="category[]"
        value="{category_id}" {selected} /> {category_name}
    {/category_body}
{/categories}


texts: I have a site with 1000's of products that were originally entered incorrectly. The titles have been updated, but the URL title's still have the old data. Is it possible to bulk update these entries to with either a sql query or script?


texts: Add-On Index Page Throwing Parse Error That Is Not Correct

texts:
EE 5.3.0

When I go to the Add-Ons section of my control panel I get this error:

Parse error: syntax error, unexpected '.', expecting ',' or ';' in /.../.../public_html/.../ee/EllisLab/Addons/rte/ext.rte.php on line 19

When I go to that line in the file (which I haven't touched and would never dream of messing with), I can see that the line in question has no issues. It's just a $docs_url with an expressionengine url as the value. There is no unexpected '.'

I have used a url path to get into two of my plugins directly, bypassing the Add-Ons list page, and they seemed to work fine. It's just the Add-Ons list.

Any ideas?


texts:
We have two pricing options:

Pay as you go ($30 one off)
Per term/semester ($25 a week, paid in full for the semester with each class varying in price and length)

What is the best way to do this type of pricing in CartThrob where we can enter in the amount of lessons per semester (preferably in the cartThrob fields) and the two rates (pay as you go + per class per semester) and it automatically spits out the per semester cost?

Thank you!


texts: 'Clear' button for Freeform forms that clears all fields?

texts: Does anyone know the best way to add a 'Clear' button to Freeform forms that would clear all fields?


texts: In EE3 can I query the Model service for template info in my template's PHP?

texts:
I want to do something like:

$templates = ee( "Model" )->get( "Template" )->all();

//Loop through them
foreach( $templates as $template ) ...

But when I try this, it hangs the page/server. Is this not possible in a template?


texts: need some kind of {count} within category archive tags that doesn't reset or each category

texts:
I'm displaying a list of facilities by state in a sidebar using the category_archive tags(template code below)...

Iowa

facility
facility
facility

Missouri

facility
facility
facility

if I add a {count}, it resets for each group of facilities (1-3, then 1-3 again). I have map pointers for each location on a google map added with the Google Maps plugin. I'm trying to do some stuff with Javascript that needs to be able to relate the facility in the list with the corresponding map point. The Google Maps plugin puts each facility pointer in an array by the index number, but the numbers go in order, so I can't relate them to the facilities listed in the sidebar, because I can't figure out how to get a running count of all locations listed. Any ideas? and please let me know if I need to clarify something...


texts: calling out categories in the Playa module

texts:
Excuse me if this question is slightly unclear, as i'm having trouble working out the logic to it. On the feature section of my blog page - which can seen in the image attachment above. I am dragging data from the playa module to display feature previews of the most recently uploaded features posted onto the site.

The features on my site are separated into  6 category sections, energy, sport, sleep, wellness, perform, relax.

I want to display one of each of the most recently uploaded features from each category. for the example, one feature will display a post from the the sleep category, one form the energy category and so on...

This is want i have tagged in my template thus far.

{exp:playa:children field="feature_previews" limit="6"}

{feature_assets}{feature_copy}{/feature_assets}

            {/feature_assets}

{/exp:playa:children}

From the tagging above is there anything i need to add in the loop order differentiate category per post?


texts:
I am using the following in my .htaccess file to remove index.php:

<IfModule mod_rewrite.c>
RewriteEngine On
# Removes index.php
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]

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

I need to redirect an old page to a new, existing page but I am getting strange results.

I added the following to the .htaccess:

Redirect 301 /Payment.aspx /clients/login

But the url it redirects to looks like this:

http://www.myurl.com/clients/login?/Payment.aspx

It is adding that extra query string to the end of the URL.

Is there any way around this?


texts: Not able to login to ExpressionEngine 2 Control Panel

texts:
When i try to login, i am justing hanging at a white screen.
The URL in the browser is, http://myintranetsite.com/system/index.php?/cp/login/authenticate

It stays at that url and never lets me get logged in.
After quite some time it times out and i get a Fatal Error.

Maximum execution time of 300 seconds exceeded in c:\path...\root\system\expressionengine\libraries\El_pings.php on line 244

FYI, I am running the most up to date version of EE2 on a Windows Server


texts: How to stop new members created by admins using Profile:Edit from going into the Pending group

texts:
I'm using Profile:Edit to create new member accounts on the front-end. I've got my member preferences set to 'Manual activation by an administrator.'

When creating a new member account (by a Super Admin, or a 'client admin' member account that has permissions to create new members), I'm finding that new member accounts are still going into the Pending queue.

Is there a way to make accounts created by an admin go into the proper member group that I've specified? This is adding an extra step to the process of creating new members. I'd rather not change the activation preference to 'No activation required' as we do still want to approve new member accounts that are created on the front end of the site by guests; but I would have thought/hoped that EE or Profile:Edit would smart enough (unless I'm doing something wrong) to realise that if an admin is creating the new member account, it doesn't need to go into the Pending group. Any advice or workarounds would be appreciated, thanks.

Here's the simplified code from my new member registration form for Profile:Edit:

{exp:profile:register include_jquery="no" datepicker="no" return="/extranet" dynamic_screen_name="[cf_profile_first_name] [cf_profile_last_name]" group_id="10"}

First name *

<input class="required" name="cf_profile_first_name" placeholder="First Name" type="text" value="{cf_profile_first_name}" />

Last name *

<input class="required" name="cf_profile_last_name" placeholder="Last Name" type="text" value="{cf_profile_last_name}" />

Email *

<input class="required" name="email" placeholder="Email" type="text" value="{email}" />

Password *

<input class="required" name="password" placeholder="Password" type="password" value="" />

<input type="submit" value="Create new login &raquo;" />

{/exp:profile:register}


texts: Expresso Store, required address field based on country

texts:
It seems if I require the State of a billing or shipping field, it is required whether or not the selected country has "states". For example, if France is selected, the State dropdown has no options, but the user can't proceed because the State field is required.

What is the best way to correct this?


texts: How to stop users being auto logged out after about 3 or 4 hours

texts:
Users of our site ( EE 2.9.2 ) are being randomly logged out after 3 or 4 hours.

I have checked cookie viewer in chrome and firefox, and “exp_sessionid” and “exp_expiration” are being set correctly and are not marked to expire in a matter of hours. They are set to expire 1 year in the future.

In our login form we force remember me to checked and pass auto_logon=1 to the server.

My question is: Is there some sort of idle timeout or weird config setting that needs to be overridden to fix this?

  NOTE: This is on our members website , NOT the EE control panel. I know the control panel handles sessions differently and has an idle monitor. But the website shouldn’t be doing this.


texts: Registration spam possible attack vectors

texts:
I have dealt with spam problems previously with some valuable help from this forum but I've got a site that is suffering with registration spam at the moment and no matter what I try, nothing seems to reduce it.

So far I have tried;
Standard EE CAPTCHA
Then added a honeypot
Then changed the CAPTCHA to Use ReCAPTCHA
Finally added Low Anti Spam and hooked it up with Akismet

Even with all that the site is still getting registration spam so I'm wondering if there's some URL that I've forgotten about that provides a registration form or some means by which a spammer can bypass the anti-spam measures.

EDIT: Here's the registration form in case anyone has any ideas

pccs-books[dot]co[dot]uk[slash]pccs-register

UPDATE:
I had thought I'd cracked this but noticed that Low No Spam was blocking any attempt I made to create an account (though I think this was an Akismet issue - I can't find the Typepad API registration page anymore).

So I have removed Low No Spam for now and added MX Stop Spam, Barricade and also changed the URL of the registration form.

It does look like spam registrations are getting thrown straight into the "Banned" group however my client is more concerned about the flood of notifications they get (they don't seem to want to simply turn notifications off). So I am still trying to find a way to just stop the form being filled in by spammers. I realise this is a big ask and the harder you make it the less likely real people will register but I'd be grateful for any suggestions.


texts: How to structure a category listing template?

texts:
What is the best way to create a category listing page where the category name is used in both the  and  tags?

This is what I have at the moment:

<!DOCTYPE html>

    {exp:channel:category_heading channel="news"}
        {if category_name}
            <title>{category_name} - News - {site_name}</title>
        {if:else}
            <title>Archive - News - {site_name}</title>
        {/if}
    {/exp:channel:category_heading}

    {common-page-head}

    {exp:channel:category_heading channel="news"}

{category_name}

        {if category_description}

{category_description}

        {/if}
    {/exp:channel:category_heading}

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

{title}

            {body}

    {/exp:channel:entries}

Whilst this works, is it bad to have the {exp:channel:category_heading} tag twice on the same template? (i.e. excess queries).

Is there a way to place the page title into a temporary variable which can then be reused to avoid performing the same queries multiple times?


texts: Product to Retailers (one to many) in ExpressionEngine

texts:
I have to build a website using the popular Expression Engine CMS.

I have managed to get my head around how channels and channel fields work. The problem I now have is that when an admin user adds a new product I would like for them to be able to select a retailer and then add a unique url for that retailer for the product.

Is this something that can be achieved using the Expression Engine CMS.

I had a look at Playa but I am unsure if this is what I need for this?

Many Thanks!


texts: Can't find a list of possible date options

texts: I have searched for two hours, probably 200 different pages trying to find a list of other date variable options.  I know "entry_date" and "current_time" and want to find some kind of "modification_date" or SOMETHING like that...to display that instead of "entry_date".  Does this exist?  I don't know what to call it, nor do I know how to search for it...I found the ExpressionEngine "Date Variable Formatting" but that's for the format of the variable.  Not a list of the variables themselves.  Someone please help me.  I'm going nuts!  :-)


texts: Low Search - not respecting hidden field/param

texts:
In my search form I have this:

<input type="hidden" name="programs_courses_show_in_results" value="Yes">

And in the results I have this:

{exp:low_search:results
  channel="programs_courses"
  entry_id="not 110"
  limit="100"
  query="{segment_4}"}

  {if count == 1}{total_results}{/if}

  {if count ==  1}
{/if}

{title} Count: {count} | Show: {programs_courses_show_in_results}

  {if count == total_results}
{/if}

  {if no_results}No search results{/if}

{/exp:low_search:results}

Technically, I also have some category parameters in the search form, but if I leave those alone and only hit the search button, the results show everything in the channel, not just the ones with the programs_courses_show_in_results field set to "Yes".

Am I missing something?


texts:
I all of a sudden cannot email in EE.  When sending through Firemail I get a million errors like the following. EE 2.9.3 and FireMail 1.9.3.  Was working earlier, can't image why this would happen all of a sudden

A PHP Error was encountered

Severity: Notice

Message: fwrite() [function.fwrite]: send of 11 bytes failed with errno=32 Broken pipe

Filename: libraries/Email.php

Line Number: 2073

A PHP Error was encountered

Severity: Warning

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

Filename: libraries/Functions.php

Line Number: 446


texts: EE2 Structure and structure list closes prematurely

texts:
We are cleaning up an old client site, and I see that structure closes the  tag halfway down our list of articles. The end result is that half of the page looks like this:
https://dl.dropboxusercontent.com/spa/auu99oc6z1dn54z/8c2bknqf.png

When I inspect the code, I see that Structure, after a certain amount of entries, just closes the ul tag.
https://dl.dropboxusercontent.com/spa/auu99oc6z1dn54z/nvto40_h.png

Has anyone encountered this previously?


texts: Is there something like Low Reorder just for Categories?

texts:
I'm in the process of taking things out of our codebase and into content where they belong, things like navigation and listings of categories. I really enjoy the features offered up by the Low Reorder add-on. I use Draggable to manage the order of categories within a category group, but I would only need a subset of these categories.

E.g. given a category group of:

Alpha
Beta
Carrot
Doc
Elephant
Mouse

I may just want 3 of those in a custom order in one place, 4 of them in a different order in another, but all I'd need are the category names, url_titles, and in the desired sequence. Don't need entries. Just the categories.

I might just go ahead and make a channel just for entries with 1:1 relation to categories (maybe along with a WB Category Select field as the relation) and then use Low Reorder to create subsets as desired. But I really want to avoid having to essentially enter content twice and any overhead of channel:entries when all I really need is a list of category names and url_titles. I suppose a bonus would be getting to using the entry title over the category name as an option or something.

I could add custom fields to the category group(s), but then you wouldn't be looking at the set in front of you.

Before I set off to do this I figured I might as well ask the community if there is anything like Low Reorder just for categories? Or if there's an existing module, add-on, or method to do this that slip passed me?

Thanks.


texts:
I have spent many hours testing several of the popular mobile detect plugins and get mostly errors.

When I look at their support options, they seem to have shut down many months ago. I'm starting to wonder if they aren't compatible with more recent versions of Expression Engine, and the developers gave up on them.

Are any of you having luck with them? If so, which plugins do you use and what version of EE are you using?

When I follow the documentation for MX Mobile Device Detect, I get the following:

{exp:mobile_detect:device}
{if "{exp:mobile_detect:device}" == "mobile"}
Greetings mobile visitor!
{/if}
{if "{exp:mobile_detect:device}" == "not_mobile"}
Greetings desktop/laptop visitor!
{/if}
{/exp:mobile_detect:device}

Produces the response "not mobile" on my desktop and a blank on my phone.

The following code produces a blank instead of Hello Bill.

{exp:mobile_detect}
    {if device == "ipad"}
        Hello Steve
    {/if}
    {if device == "android" }
        Hello Bender
    {/if}
    {if not_mobile}
        Hello ... Bill ???
    {/if}
{/exp:mobile_detect}

The following code also produces a blank:

{exp:mobile_detect:screen_detect}
{if {screen_width} > 1024}You have desktop{/if}
{/exp:mobile_detect:screen_detect}


texts: Cart throb % coupon discounts calculation incorrect

texts:
When i set the percentage off to 20% in a coupon and make a purchase, the value that is returned from this:

{exp:cartthrob:cart_discount_percent_of_total}

tends to differ, on my example purchases, i would get 17%, then 21% etc. I am yet to make a purchase where it had taken 20% off exactly.

Why is the cart_discount_percent_of_total never exactly the percent i entered when i created the coupon, which in this example is 20%? The products are high value so the a few percent could amount to hundreds of pounds.

EE - 2.10.1

CT Pro - 2.7


texts: Shipping rule based on discount code in Store

texts: I am trying to find out if there is any way I can apply a flat shipping (eg. $2 ) per quantity if a specific promocode is applied.


texts: MySQL: Update Rows Based on Specific Set of Entry IDs

texts:
I have a random group of about 40 entries in the same channel where I need to copy the url_title from exp_channel_titles over to the uri column in exp_structure_listings. If I wanted to copy the urls for all entries there'd be no problem, but I need to copy only the urls from this specific group of entry IDs. I tried:

UPDATE
    exp_structure_listings s, exp_channel_titles t
SET
    s.uri = t.url_title
WHERE
   s.entry_id = t.entry_id
AND
   t.channel_id = '17'
AND (
      t.entry_id = '2128'
   OR t.entry_id = '2142'
   OR t.entry_id = '2171'
)

But, not surprisingly, that didn't work. I feel like I should be using a join in here somewhere but I'm not really sure what the syntax should look like.


texts: Automatically set/unset category based upon field value?

texts:
I would like to automatically add blog articles to the category "Video" if a video embed is pasted into the provided field. Likewise I would like to automatically remove blog articles from the "Video" category if the provided field is cleared.

Is there a way to do this?


texts:
Our website has been using MegaUpload with EE for a year without a hitch.

However, MegaUpload has suddenly stopped uploading files for no apparent reason. The user browses to the file, selects it for upload but the progress bar doesn't move past 0%. No errors are given. Just nothing happens.

We are using ExpressionEngine v2.5.5 and MegaUpload v2.5.3.

The hosting plan has enough space and the *.mp3 files are only 2-3 megs each. The destination folder still has full write permissions.

The clients use their site to upload files for their customers on a daily basis so this is a semi-urgent one. Can anyone help!?

Cheers
Lou


texts: How to check the EE version number via PHP?

texts: I'm writing an add-on and need to check the current EE version from PHP. What is the best way to get the current ExpressionEngine version?


texts: PHP error when uploading images using DevDemon Channel Images

texts:
I'm getting the following error when trying to upload images to my site using DevDemon's Channel Images (v5.4.18):

  Server response was not as expected, probably a PHP error. OPEN ERROR

Clicking on the OPEN ERROR link presents me with a blank white screen.

I'm running EE 2.9.0 and also have the Expresso fieldtype installed (v3.3.3).
However, the Channel Images field is listed before the Expresso one, when editing my Entry. I noticed some other posts had found that to be a solution in the past.


texts: Limiting GWcode categories based one an additional category

texts:
I am designing an EE site for a board game cafe which sells games online and also has a games library in-store for playing. The client wants to enter the game information only once into the shop database (games will be for sale online only, available in store only, or both). Initially, when I did the online shop coding for online sales (I'm using Expresso Store), I used the categories as navigation. I did this so that the client can easily add categories. The client wants the same categories available for the in-store games library, so I copied the entire Store template group for the games library and modified the product template to remove the pricing and ‘add to cart’ functionality, but I need different sidebar category navigation in this template group as not all games available online for sale are available in store. I made a new category group called ‘games library’ and was hoping that only products with that checked (id 10) will return the other categories.

I have sidebar navigation which looks (in part) like this:

Genres

{exp:gwcode_categories group_id="4" show_empty="no"}
     {cat_name}
{/exp:gwcode_categories}

Age Groups

{exp:gwcode_categories group_id="8" show_empty="no"}
     {cat_name}
{/exp:gwcode_categories}

I only want items to show up in this navigation if another category (ID 10) is also checked.

I tried this, but it doesn’t work – it just shows empty bullets

Genres

{exp:gwcode_categories group_id="4" show_empty="no"}
{if cat_group_id == '10' AND cat_group_id == '4'}
     {cat_name}
{/if}
{/exp:gwcode_categories}

Can anyone help?


texts: Downgrade from Freeform Pro to Freeform - Error

texts:
Not needing all the features of Freeform Pro I attempted to downgrade to the regular version of Freeform 4.0.12. However, when I attempted to run the update script I get the following error:

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

What do I need to get rid of this error and get up and running on FF?

Thanks.


texts: How do you manually set the category and status of a channel form?

texts:
Right now I have this simple test form:

{exp:channel:form channel="data" category="6" status="Closed" return="contact/thanks" }
   <input name="title" type="text">

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

The data is submitted but it doesn't set the status or the category. Maybe I am misunderstanding the documentation on how this should work.


texts: WSOD on index.php and system, no problem reaching phpinfo

texts:
I have migrated my EE 2.5.1 install to a new dev machine (actually just OS - Ubuntu 13.10 - reinstall from scratch) and cannot get past WSOD in home or system. I checked the instructions from the server migration guide, file permissions etc. seem to be good. Database config is good and config.php has all the same paths as previously.

I can reach phpinfo page in the same directory as index.php. I can also get to the server wizard front page, but as soon as I click "check my server" I get the WSOD again. System requirements are good according to phpinfo.

I have absolutely no debugging info on index.php or system, regardless of debug=1 in index.php and xdebug.scream in php.ini; the only error in Apache logs is a warning from the phpinfo page.

The only difference I can think of between this and the previous install is that I installed PHP5-cli first, before Apache2, and had to install php5-mod-apache afterwards.

How can I get past the WSOD, or at least get some more debugging info?


texts:
I am running EE 3.5.15 and have added the following link to a user page so the user can log out:

Log Out

However when I click on that link, instead of logging out I get the following error:

Any clues why this is happening and how to solve it?


texts: Display image gallery on clicking separate image using Matrix

texts:
I've recently come across a bit of an issue that's got me stumped, here goes.

I have a Matrix field called {images} with the following fields within it;

project_image (Assets fieldtype)
project_title
project_additional_images (Assets fieldtype)

On the front end of the site the project_image displays. However on clicking the project_image I would like to trigger a lightbox plugin (Swipebox) which in turn displays the multiple images added in project_additional_images.

My code is as follows

{images}

                {exp:ce_img:single src="{project_image}"
                    crop="yes"
                    allow_scale_larger="no"
                    class="project-img" alt="{title}"
                    width="230"
                    height="230"
                    quality="100"
                    filter="auto_sharpen"}

{/images}

Is there a way to accomplish this. Looking at the code above, that currently only gets me halfway, in that it will only show a single image from the project_additional_gallery field. I would ideally need it to show multiple images. The gallery-{row_id} was a shot in the dark. If anyone offer some advice on this that would be much appreciated.

As you can see above, the chunk of markup also makes use of CE Image and Swipebox

Thanks
Adam


texts:
I have an odd situation where a client wants to display a date as-is without any Daylight Savings Time conversions. Basically, if they enter a specific date they want it to display as is (with the formatting intact).

How would I do this with EE? This was an EE 2.2 site that was recently upgraded to 2.7.3 so it includes the DST goodies; unfortunately they hate the new DST stuff.


texts: Is it possible to run ExpressionEngine along side a Cake PHP site?

texts:
I've been asked to add a CMS to an existing Cake PHP driven site. Cake PHP doesn't appear to drive much of the site outside of URL structure, templates and forms (there is no content management).

The client doesn't want to convert the entire site to ExpressionEngine all at once due to cost constraints.

I'm guessing CakePHP probably routes everything through index.php like EE does, so I'm wondering if it's possible to run them side by side?

I suppose on approach would be to run the ExpressionEngine portion on a sub domain. Are there any other approaches?

Thanks,

Anson


texts: FreeForm Pro, Composer form not displaying Captcha, despite Show for logged_in = YES

texts:
Latest version of FreeForm Pro 4.0.11
Version of EE is 2.4.0 (but I would only upgrade if I really really have to)
Freeform form made with Composer, captcha added. (But it wont appear on fronted)
Tried logging in/out, tried other browser/device as well


texts: Pagination & Categories (Incorrect URL Generated)

texts:
I have a very standard news feature on the site i'm working on which has both categories and pagination for the entries. A problem i'm having is that the pagination is not filtering by category in the link it is generating.

When I am on a category URL (i.e. /news/category/general) this is not included in the {pagination_url} tag, meaning when you click it goes to the non categorised second page. The link I would expect is /news/category/general/P5 and I'm getting /news/P5

Is this a bug or am I doing something wrong?

Here is a shortened version of the tags:

{exp:channel:entries channel="news" orderby="date" sort="desc" paginate_base="news" paginate="bottom" limit="5"}

    CONTENT

    {paginate}
        {pagination_links}

                {first_page}
&larr; First
{/first_page}
                {previous_page}

&larr;

&hellip;

                {/previous_page}
                {page}
{pagination_page_number}
{/page}
                {next_page}

&hellip;

&rarr;

                {/next_page}
                {last_page}
Last &rarr;
{/last_page}

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


texts:
All of a sudden, thumbs are not showing in Assets. The folders are being created in the cache/assets/thumbs folders when files are uploaded, but no image is generated.

The odd part is that in my dev environment the thumbs are being created.

2.8.1 EE
2.4 Assets


texts: How to convert MH File Field's with multiple images?

texts:
Anyone successfully convert MH file fieldtype that has multiple images to a matrix or similar? I have some entries that have multiple images tied to a single MH file field. I'm in the process of upgrading EE1 to EE2, and fields with just one image are fine, but entries with multiple images have data stored like:

image_1.jpg
image_2.jpg

I've seen these threads for after upgrading to EE2 for nGen file field and MH file field, but these are specific to single files.


texts:
I am wondering. Is there way to include inventory levels with each product option in CartThrob Pro?

e.g. 10 Smalls, 5 Mediums, 2 Larges.


texts:
I have this code in my module

$this->EE->load->library('pagination');
$pagination = $this->EE->pagination->create(__CLASS__);
...

The problem is that I get this error

Fatal error: Call to undefined method EE_Pagination::create() in ...

I am using EE 2.5.5

Is there some changes that make this code not work? Is there a new way to do this?


texts:
I have a Channel with 4 custom fields which represent half hour timeslots (10-10.30, 10.30-11 etc) - the idea is that the field is populated with the logged in users name to marry them up for an appointment in the required slot. So far so good.

Each person can only choose ONE timeslot so when in an ChannelForm to add/edit/remove their name in the field I would like them to see a drop down where they can choose from the four timeslots (i.e. fields) and then submit (their name can be passed in a hidden field).

This is rather than have a Channel-Form template which actually shows the four fields...in effect it is forcing them to choose one and not allowing them to see the four empty fields...make sense?

Is it doable?


texts: Low Events :: How do I output the category id of an event inside the {exp:low_events:calendar} tag?

texts:
I'm using the calendar tag ( exp:low_events:calendar ...) to output a calendar from my events channel that implements the low_events fieldtype eg:

            {exp:low_events:calendar channel="events" date="{pre_date}" show_future_entries="yes" disable="category_fields|custom_fields|member_data|pagination"}

&lt;

                        {this_month format="%F %Y"}

&gt;

                        {weekdays}{weekday_1}	{/weekdays}

                {weeks}

                        {days}
                            {if events_on_day}

                                {day_number}

                            {if:else}

                                {day_number}

                            {/if}
                        {/days}

                {/weeks}

            {/exp:low_events:calendar}

I'm using categories to distinguish different types of events.

I would like to add a class to the {day_number} so that diffent types of events can be styled with different background colors eg:

{if events_on_day}
    {day_number}
{/if}

But it doesn't look like category_id is an available variable inside the calendar tag

Any ideas on how to go about this ?


texts: What's the best way to handle limited membership periods and/or expiry?

texts:
This doesn't seem to be part of EE core, which - honestly - surprises me.  Maybe I'm missing something.

I'd like to be able to limit membership periods by setting an expiry date on specific members (not the group), when approved by the admin in the CP.

I don't believe this is an unusual requirement, how have you all handled this in your installations?

The installation in question is version 2.5.2.

Thanks very much for viewing.


texts: Custom fieldtype: tag pair and replace_tag_catchall()

texts:
I'm building a new fieldtype which should be used with:

single tag:

{myfield}

...which correctly calls replace_tag() method

single tag with modifier:

{myfield:modifier}

...which correctly calls replace_tag_catchall()

tag pair:

{myfield}{somedata}{/myfield}

...which correctly calls replace_tag()

but I also need tag pair with modifier:

{myfield:modifier}{somedata}{/myfield:modifier}

...which should call replace_tag_catchall(), but it's not calling anything.

The documentation is relatively clear that it should work.

Any idea how I can make the miracle happen?


texts: Assets used in Matrix as Low Variable doesn't get updated

texts:
Can someone else who updated to latest Assets 201 try this on your install?
I have a Matrix as Low Variable and inside I have a column with Assets, that Assets doesn't get updated on submiting. Assets alone in LowVariable works fine.

EE 253, latest Matrix/LowVars/Assets

Thank you


texts: Forcing inline errors on checkout_form with Stripe Payments

texts:
First, thanks in advance for any insight.

I have successfully set up cartthrob to process payments with Stripe and I have one final UX hurdle to cross over: the checkout_form doesn't seem to honor the error_handling="inline" parameter.

For example: if I try to submit the form with an incomplete credit card number, instead of triggering the inline error, I get a JavaScript dialog, "The page at...says, Your card number is incorrect." As a test, I switched to another gateway in the Payment Gateway configuration panel, submitted the form again with an incomplete credit card number and, expectedly, CartThrob properly triggered the inline error.

Has anyone come across, or better yet, circumvented this behavior? I know that Stripe requires relies on JavaScript to process its credit cards, so I suspect this is tied to those requirements, but it seems as though one should still be able to handle the errors inline. The inability to is a major bummer for UX.

Cheers,

Chris


texts: How to show Low Events dates in a Postmaster parcel

texts:
How can I get a Low Events date to display in a Postmaster parcel? I want to send an email confirmation when a user submits an upcoming training session announcement.

1.) I tried this:

{parcel:training_event_details}

2.) I tried this:

{parcel:training_event_details:start_date}

3.) I tried this (a combination of this example from Low and this example from Objective HTML):

{exp:channel:entries channel="training_sessions" entry_id="{parcel:entry_id}" dynamic="no" status="not closed"}
  {training_event_details:start_date format="%j %F %Y"}{training_event_details:start_time format=", %H:%i"}
  {if training_event_details:one_day == 'y'}
    {training_event_details:end_time format="&ndash; %H:%i"}
  {if:else}
    &mdash;
    {training_event_details:end_date format="%j %F %Y"}{training_event_details:end_time format=", %H:%i"}
  {/if}
  ({training_event_details:duration})
{/exp:channel:entries}

All methods above render blank. What am I missing? Thanks!

Versions:

ExpressionEngine: 2.9.2
Low Events: 1.3.1
Postmaster: 1.5.0

Edit to fix bug (mentioned by Low in comment) in code #3:

Here is the working code:

{exp:channel:entries channel="training_sessions" entry_id="{parcel:entry_id}" dynamic="no" status="not closed"}
  {training_event_details:start_date format="%j %F %Y"}{training_event_details:start_time format=", %H:%i"}
  {if '{training_event_details:one_day}' == 'y'}
    {training_event_details:end_time format="&ndash; %H:%i"}
  {if:else}
    &mdash;
    {training_event_details:end_date format="%j %F %Y"}{training_event_details:end_time format=", %H:%i"}
  {/if}
  ({training_event_details:duration})
{/exp:channel:entries}


texts: Only outputting one category group with Channel Form

texts:
I have 2 categorys assigned to a channel that I want to use with channel form, however I only want to allow the editor to use 1 of these categories when adding a new element via channel form, I've tried the following:

{exp:channel:form channel="work" return="work/thanks"}
     <label for="categories">Categories</label>
     <select name="category[]" id="categories" size="4" multiple="multiple">
        {categories category_group="2"}
           <option value="{category_id}"{selected}>{category_name}</option>
        {/categories}
     </select>
{/exp:channel:form}

But this still outputs both categories, I can't seem to find any parameters in the documentation? http://ellislab.com/expressionengine/user-guide/modules/channel/channel_form/#category-group


texts: Filtering Playa entries in the drop panes loads site index template

texts:
When I start typing to filter entries in the Playa drop pane my list of entries is being replaced by my homepage template. There are no javascript errors. What could cause this?

I'm using Playa 4.3.3 on EE 2.5.5.

Edit: As suggested by Jérôme below, removing this from my .htaccess fixes the issue:

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

How can I deal with this?


texts: Cartthrob order status update notification not triggered if order status updated via Order manager

texts:
I've been puzzling over why a Cartthrob order notification isn't being sent when an order's status is manually updated from "processing" to "completed"

The order was being updated via the CartThrob Order Manager.

I have just discovered that if I update the order entry through EE's native entry manager then the notification is triggered.

Has anyone run into this? I'm assuming the necessary hooks aren't being called when this is done via the Order Manager.

Is there a way I can fix this?

Looks like others are having the same issue http://cartthrob.com/forums/viewthread/9771/


texts: Looking for a way to "inject" images into channel entries without having the content administrator trying to mess with html.  I found hop inject on devot-ee, and I'm wondering if anyone has used it or a similar plug-in, and what you thought of it.  If you've used something different that you feel is better, I'd definitely be open to any recommendations.  thank you!


texts:
Link a page usign {path='site_index'}{page_uri} (inside an exp:channel:entries obviously)
generate this url:

http://local.sitename.it:8888//centro-accoglienza/la-struttura

How can I remove the double slash after site_index?
Is there a way to do that?

Thanks!


texts: Why can I only send plain text e-mails with the communicate tool?

texts: If I send an HTML e-mail using the communicate tool in the control panel it will be delivered but the body is always blank. I can send plain text e-mails with the communicate tool and the body is received. I'd like to get this resolved so I can send either HTML or plain text using the communicate tool. Any tips or suggestions on correcting this issue would be greatly appreciated thanks!


texts: I'm looking to do responsive images with EE4, where you serve smaller versions of an image for mobile devices. Can anybody recommend a good method? I've noticed many references to CE Image, but it appears that's only up to EE3.


texts: Using cp_analytics plugin for Expression Engine2

texts:
In a website I am busy building in EE2, I need to build a metric dashboard displaying all sorts of tracked analytics for the website. I installed the cp_analytics plugin into Expression Engine I bought from devot:ee which looks amazing, but how would I retrieve and display other google analytics values such as viewing by device type, visitor stats etc? I suppose I probably need to link the site to a Analytics account? But is there some sort of API I can use to retrieve these values and display them on the dashboard?

Also, is there built in analytics in EE for EE specifc analysis i.e. page views, email analytics etc?


texts:
I've just upgraded to EE 2.9 and trying to update Playa to 4.5.

When I go to Fieldtypes -> Playa I get this error:

  A Database Error Occurred Error Number: 1060

  Duplicate column name 'parent_element_id'

  ALTER TABLE exp_playa_relationships ADD parent_element_id VARCHAR(255)
  NULL AFTER parent_var_id

  Filename: third_party/playa/ft.playa.php

  Line Number: 488

The previous version I had installed was 4.4.5 - I've tried setting it to 4.4.4 in exp_fieldtypes as well but same error.


texts: Populating an admin multiselect with channel entries

texts:
I am trying to work out how to populate an admin multiselect menu from entries within another channel.

Basically I just want to allow my client to be able to add new values to the multi-select without giving them access to all the channel fields.

I thought the 'populate from another channel field' would work but it doesn't seem right.

Any ideas?

Thanks
Martyn


texts: Displaying Structure sub-nav on child pages

texts:
The documentation shows how to put a sub-nav on a parent page with children, but how do I display the same sub-nav on the child pages?
http://buildwithstructure.com/documentation/conditionally_display_sub_navigation_or_html/


texts: Has anyone coded a Playa Multi Select Drop Panes UI in a Safecracker Form?

texts: Can't find anything online about it... is it possible? Someone must have done this before? Please give me some guidance.


texts: filter output with a loop: if {entry_id} not in array

texts:
Within a loop, I need to output different info according to whether an entry is in an array of id's or not.

I currently get the id's from a query on the matrix table.

So I need something like this:

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

{if entry_id not in (ids)}
    //some output
{if: else}
    //some other output
{/if}

{/exp:channel:entries}

I can't use stash, and I can't figure how to do this with PHP/embedded templates/query tag, I think the parse order is a problem.

Here is the query I use to get the entries to filter on:

SELECT entry_id FROM exp_channel_titles
WHERE entry_id in
(SELECT `child_entry_id` FROM (`exp_playa_relationships`)
WHERE `parent_field_id` =  '{embed:parent_field_id}'
ORDER BY `rel_order`)


texts: How do I get the reverse entries of a relationship field?

texts:
I have a multi-site with two different channels:

Guides
Rivers

I need to associate specific guides with each river. Each river can have multiple guides associated with them.

Currently, I have it setup so the Rivers have a relationship field that allows selecting of entries from guides channel. That's working perfectly, but I'm running into an issue trying to list all of the Rivers a Guide is associated with.

For example: I have the river Salmon with a relationship of Guide A, Guide B and Guide C. On the Salmon River's page, it displays Guide A, Guide B and Guide C.

When I click on Guide A, I want that page to display all of the Rivers that have Guide A selected in the River's relationship field, i.e. Salmon River, Main Payette, etc.


texts: Matrix date field error for v2.5.10 bug and fix (at least we think so)

texts:
We found an error with Matrix v2.5.10 and EE v2.5.0. Specifically the date field was throwing an error

Fatal error: Call to undefined method EE_Localize::format_date() in /chroot/home/giagingo/giaging.org/html/zIyzybo7i9Yn5T/expressionengine/third_party/matrix/celltypes/date.php on line 139


texts: I've got a client who is reporting that unwanted dynamic URLs for static pages are appearing in Google Webmaster Tools. This means that content is being duplicated as far as Google in concerned. How would these dynamic URLs get created (if not deliberately), and how can I prevent this happening again?


texts: How do I use a SAEF / Channel Form to upload a file not related to entry?

texts:
Is there any way to use a SAEF / Channel Form to upload an image (with title, category etc.)?

Will it require a custom plugin or is this something that can be achieved already?

Thank you.


texts: Unable to load the following extension file: Better Workflow

texts:
I upgraded EE from v2.6.1 to v2.7.1. After upgrade, I am getting the following error:

  Unable to load the following extension file:
  ext.ep_better_workflow.php

Could anyone please help me.

Thanks,


texts: Jquery function undefined when logged in

texts: I am working on development of a web app where users can use a Channel:form to submit/edit entries. I am Using mmenu for off-canvas menu. I had it working and then it stopped, reporting that function is undefined. After hours of debugging found out it works when not logged in to EE. However in order to add/edit entries, I need the visitor to be logged in. Is this a Channel:form problem/error? Anyone know of a work around?


texts: Trouble with multiple relationships? (Relationships field)

texts:
I have a Relationships field called "relate_entries".
This field is set to relate to just one channel. I no problem calling the title when it is not looping by setting things up like this:
{exp:channel:entries
    channel="kalender"
    sort="asc"
    show_future_entries="yes"
    show_expired="no"
    disable="categories|category_fields|member_data|trackbacks"}

{relate_entries:title}

{/exp:channel:entries}

But if I try to output multiple related entries it doesnt work.
{exp:channel:entries
    channel="kalender"
    sort="asc"
    show_future_entries="yes"
    show_expired="no"
    disable="categories|category_fields|member_data|trackbacks"}

    {relate_entries}
        {relate_entries:title}
    {/relate_entries}

{/exp:channel:entries}

Thanks for any help.
EE 6.0.2


texts:
I have a home channel in which I want to display various Playa fields bringing entries in from other channels. It's tricky though, home is a listing item as it will change everyday (Note the start and stop). The information Playa brings in is also from a listing.

{exp:channel:entries channel="home" limit="1" start_on="{current_time format="%Y-%m-%d 00:00"}" stop_before="{current_time format="%Y-%m-%d 23:59"}"}

{exp:playa:children channel="articles" field_id="18" parse="inward"}
{title}
{/exp:playa:children}

{/exp:channel:entries}

The problem here is that the Playa field always shows the title from the home listing, not the article listing even though I specified the channel in the Playa field. From looking at the Playa docs, this should work fine. Any suggestions?


texts: Store : Update order status on checkout submit

texts:
I want to update the status of an order to processing once the checkout form has been submitted.

Looking through the dev docs: https://www.expresso.com/docs/extension_hooks.html

One of these two hooks fit the bill:

store_payment_request_start
store_payment_request_end

These are called when the order is processed by a payment provider - however, if I use a discount code for 100% off (ie, a free order) then these hooks aren't called (which does makes sense to me - I'm assuming the order isn't pinged to the payment provider as there is no payment to make).

Anyway, I can't see any further hooks that I can use to accomplish this status change, is anyone aware of way I can change the order status on a checkout submission?


texts: assets, no thumbnails, no image on front end

texts:
I'm using Assets 1.1.5 and EE 2.4 .  I can upload an image ok through Assets, but no thumbnail is created and the image does not appear on the front end.

The only difference I can see is that on the server, the owner / group is different when a file is uploaded through Assets than if a file is uploaded directly to the server.

Thanks,


texts: Database error after updating Matrix 2.4.3 to 2.5.8

texts:
I just updated an EE site from 2.4.0 to 2.7.2. Now going through and updating (many) plugins. I just updated Matrix from 2.4.3 to 2.5.8 and I get the error below while trying to click on Matrix in the Fieldtypes page in the CP. Any help would be awesome, thanks!

A Database Error Occurred
Error Number: 1060

Duplicate column name 'is_draft'

ALTER TABLE `exp_matrix_data` ADD `is_draft` TINYINT(1) UNSIGNED DEFAULT '0'

Filename: third_party/matrix/ft.matrix.php

Line Number: 509


texts: How can I fix broken URLs after migration

texts:
I copied my staged working EE site to a SiteGround production server and the URLs are now broken.
I have the site in xyznew directory.
- The homepage does come up and displays properly at www.xyz.org/xyznew
- But when I hover over all the top level menu items, my browser shows the links as www.xyz.org/xyznew/#  which just returns back to the current page, the homepage.
- When I hover over all my second level menu items, they return links of the form xyznew//events/julyevent   [Yes with double slashes and not prefixed with the domain name. )

It seems like a configuration file issues, but I don't know what setting(s) are off.

Any assistance would be greatly appreciated.


texts: inline editing - how do you guys do this on the front-end?

texts:
I am applying a inline editing method that involves colorbox and the backend. below every entry there's a link that opens up an inline popup with the correspondent "edit entry" screen from the backend. it's very usable, and needs almost no additional programming.

but since we have safecracker there must be more evolved methods to do this?
like "edit in place". anybody care to share?

cheers
stefan


texts:
I have a Newsroom page that combines "In the News" channel entries and "Press Release" channel entries and I need to sort by different dates. Press Releases use the entry_date because they go live on a specific date. In the News entries have their own pub_date date field since article publication dates might not necessarily align when the article is posted to the site (entry_date). While I could use entry_date for In the News entries, in the future an Events channel field will be added and included in this list. Events can't use the entry_date because they need to be listed on the site much earlier, however, the request is to have the date listed and sorted by be the event start date.

Is there a way to sort entries by multiple dates like this? I tried:

{exp:channel:entries channel="in_the_news|press_releases" orderby="pub_date|entry_date" sort="desc"}

but the entries listed all In the News article sorted by pub_date then all the Press Releases sorted by entry_date, not a mix of the two sorted by pub_date is ones existed then entry_date it not.

UPDATE:

Current code based on @stuartmcd69's answer below.

{exp:stash:set_list name="newsroom" parse_tags="yes"}
    {exp:channel_entries channel="in_the_news|press_releases" dynamic="no"}
        {!--  create stash variables --}
        {stash:news-article_title}{news-article_title}{/stash:entry_title}
        {stash:news-publication_name}{news-publication_name}{/stash:entry_title}
        {stash:pr-title}{pr-title}{/stash:entry_title}

        {!-- capture dates from both channels and convert to a universal date variable --}
        {stash:universal_date}
            {exp:switchee variable="{channel_short_name}" parse="inward"}
                {!-- News Article dates --}
                {case value="in_the_news"}
                    {news-publication_date}
                {/case}

                {!-- Press Release dates --}
                {case value="press_release"}
                    {entry_date}
                {/case}
            {/exp:switchee}
        {/stash:universal_date}
    {/exp:channel_entries}
{/exp:stash:set_list}

{exp:stash:get_list name="newsroom" orderby="universal_date" sort="desc"}

    {!-- Display entry based on channel name --}
    {switchee variable="{channel_short_name}" parse="inward"}

        {!-- News Articles --}
        {case value="in_the_news"}

{news-publication_date format="%F %j, %Y"}

{news-article_title}

{news-publication_name}, {news-publication_date format="%F %j, %Y"}

        {/case}

        {!-- Press Releases --}
        {case value="press_releases"}

{entry_date format="%F %j, %Y"}

{pr-title}

        {/case}
    {/switchee}
{/exp:stash:get_list}


texts:
Moved an EE site (v. 2.6.1) from local to development server.  On the development server, I'm getting the following:

A PHP Error was encountered

Severity: Warning

Message: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Denver' for 'MST/-7.0/no DST' instead

Filename: libraries/Core.php

Line Number: 295

The site still loads, and I can access the CP, but this obviously is an issue. I host other EE sites on this dedicated server and they don't have the issue.

I am using master config and have played around with a few settings there from Google research, but nothing has helped.

The host has kind of left it to me, but I'm at a loss.  Any suggestions on where to start?

Thanks in advance!


texts: How do I add an entry to a category progammatically in an add-on?

texts:
I have a site that uses ChannelForms for users to add entries to a channel. These entries need to be categorised, but I can't rely on users to pick the right category as this depends on data they enter in other fields in the form, which isn't known until the form is submitted.

How can I set the category programmatically according to known rules using an add-on on the ChannelForm return page in the same way that yo_status_tools does for entry statuses?


texts: Assets in Safecracker: File uploads twice

texts:
I'm successfully using the technique covered in this question: Simple HTML file field uploads with Assets and Safecracker

<fieldset>
   URL
   <input name="event_url" id="event_url" type="text" placeholder="http://" />
   Upload a File
   <input type="file" name="event_upload" /> <input type="hidden" name="event_upload_filedir" value="2" />
</fieldset>

It works, but it seems to be uploading the file twice. Here's my output code:

check: {event_upload:total_files}
{if "{event_upload:total_files}"!=''}
Download: {event_upload backspace="2"}{filename}, {/event_upload}
{/if}

That results in this in my web page:

check: 2

Download: TEST2_1.pdf, TEST2_1.pdf

If I check the entry in the Control Panel, it only displays 1 file. If I save the entry via the Control Panel, the issue is corrected, and only 1 file is output.

Update: If I save the entry via my Safecracker Edit form, with the same field code, nothing changes.

Any solutions for this?

EE 2.5.2 (I'm not in a position to upgrade presently)
Assets 2.0

Thanks!


texts:
EE 5.2.2

Quite a simple question: In the EE calendar tag, instead of showing {day_number}, I'd like something like {day_of_week}. So rather than showing '5' I want my calendar to show 'Thursday, 5' -- so the day of the week and the number as well.

Am I missing something from the docs? I've tried doing {date format="{format}"} with no luck. This seems like it would be a common feature.

EDIT I ended up solving this issue using php but it's probably still useful to have the answer if someone knows how to do with with the calendar tag functionality.


texts:
How can a allow Members to register new members via the control panel? I've set up the Members prefs to allow access to the Register Member entry screen. But the system does not seem to accept a new registration - just returns to the same entry screen.

Thanks

Andrew


texts:
Since Wygwam 3 was released it has not had the form elements button reintroduced. I am in need of some guidance on how to add the button back for our editors, more specifically the  field.
I have looked into adding plugins to CKeditor, and it appears I have followed the instructions but the integration with expression engine the button will not show.
I contacted Brandon Kelly about this back in September and he indicated the following...

We removed those plugins for Wygwam 3.0, along with some others that were very rarely used, to cut down on Wygwam's overall file size. The next update will come with a way to bring them back if you really need them, but for now, the only way to get them is to go back to Wygwam 2.x.

The update to Wygwam 3.2 appears to have added this functionality, but the documention is unlear to me.

Wygwam 3.2
Released on Oct 1, 2013
Added the wygwam_tb_groups, wygwam_tb_label_overrides, and wygwam_tb_combos extension hooks, making it possible for other extensions to add new toolbar buttons to Wygwam’s toolbar configurator.
http://docs.pixelandtonic.com/wygwam/changelog.html

Thanks for any help!


texts: Use backspace parameter on Stash nested get_list

texts:
I'm using Stash to capture a list of articles. I'm trying to keep my viewModel separate from my view markup.

For each article, I'm capturing a nested list of categories.

In the view, I want to output comma-separated categories. I was under the impression that I could use backspace="x" on a get_list, but it doesn't seem to work. I am I going about this incorrectly?

I suppose I could use an if/else with 'count' and 'total_results' to remove the final comma and space, but would also like to know if backspace can work.

Set article list

{!-- Articles --}
{exp:stash:set_list name="articles" parse_tags="yes" parse_depth="2"}
    {exp:channel:entries
        channel="news"
        dynamic="no"
        orderby="sticky|entry_date"
        sort="desc|desc"
        sort_type="numeric|numeric"
        disable="member_data|category_fields"
        {triggers:entries}
    }
        {stash:id}{entry_id}{/stash:id}
        {stash:sticky}{sticky}{/stash:sticky}
        {stash:title}{title}{/stash:title}
        {stash:summary}{article_summary}{/stash:summary}
        {stash:date}{entry_date}{/stash:date}
        {stash:url}{page_url}{/stash:url}
        {stash:image}{article_featured_image}{/stash:image}

        {exp:stash:set_list:nested name="this_article_categories" parse_tags="yes" context="{entry_id}"}
            {categories}
                {stash:category_name}{category_name}{/stash:category_name}
                {stash:category_url_title}{category_url_title}{/stash:category_url_title}
            {/categories}
        {/exp:stash:set_list:nested}
    {/exp:channel:entries}
{/exp:stash:set_list}

Get Articles (See the get_list:nested name="this_article_categories" in the code below.)

{!-- Get Articles --}
{exp:stash:get_list name="articles" prefix="news" paginate="bottom" limit="15"}

            {news:date format="%M %j, %Y"} in {exp:stash:get_list:nested name="this_article_categories" backspace="2" context="{news:id}"}
                {category_name},
            {/exp:stash:get_list:nested}

{news:title}

        {news:summary}

Continue reading

{/exp:stash:get_list}


texts:
I am seeing several errors in my site logs regarding a the sessions.php file. What is this and how can I fix it?

Here are my EE details:
ExpressionEngine v2.5.2 - Build Date: 20120606 - © Copyright 2003 - 2014 EllisLab, Inc.
Script executed in 0.0993 seconds - 26 SQL queries used

And here are some example errors

16  [error]  PHP Fatal error:  Call to a member function num_rows() on a non-object in /var/www/vhosts/cutandpaste.com/system167/expressionengine/libraries/Session.php on line 790

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


texts: Unable to install EE Core - Installation Wizard does not even show up

texts: I downloaded the latest EE core 2.9.0 and pushed the files up to my server. When I go to the admin.php page I just get a blank white page, no installation wizard, nothing. I went through an official EE guide and set the various file permissions that it said to do, still no dice.


texts:
I am using creating template parts (header, footer) but would like to know how I can add a variable, a body class to individual templates.

I see people are using stash but is there another way to set a variable on a per-page basis.

Thanks


texts:
I'm making responsive website based on bootstrap front-end framework, but when I "move" static and working HTML pages to EE templates bootstrap parts are not working (for an example accordion effect). Bootstrap CSS and JS are included in the header.

Any particular steps must be taken to get this to work with EE?

Thanks


texts: Stash variable is being set but I can't retrieve it

texts:
I'm trying to create a stash variable of a pipe delimited entry_id list using the following:

{exp:channel:entries channel="related_entries" limit="1" disable="categories|member_data|pagination|trackbacks" entry_id="2249"}
{exp:stash:set name="featured_ids" parse_tags="yes"}
    {entry_relationships backspace="1" parse="inward"}{entry_id}|{/entry_relationships}
{/exp:stash:set}

{/exp:channel:entries}

I've enabled template debugging and can see that the variable is being set by stash:

Stash: SET featured_ids to value 6147|8116|6270|3031|3019|463|6380

..but when I try and retrieve the variable using

{exp:stash:get name="featured_ids"}

I get

Stash: RETRIEVED featured_ids with value

and looking at the order of the output, guess what? It is LATER in the parse order than setting the variable in the first place, which explains why it doesn't output anything.

Does anyone know how I can get around this?

EDIT: I've added process="end" to my get tag and now in the template debugging I'm seeing the following:

Stash: RETRIEVED featured_ids with value 6147|8116|6270|3031|3019|463|6380

but when I look at the output on the actual page, I'm seeing:

{b0faccac1d7de314625221c0189105071802790178}

Anyone any ideas?

Cheers

Jim


texts: How do I setup Automatic 301 Redirects on url_title change

texts:
EE gives clients great control over the url_title of the entry. This is great for publishing new entries, and necessary for editing entries in case of mistakes or any other "good" reason to change the url_title.

Being an SEO conscience developer who runs an EE site, when I change a url_title for an entry that has been published and indexed by Google, I set up a 301 Redirect using .htaccess, so previous users and search engines know where the new page lives.

Clients will not do this, of course. Without me telling them, they will simply change the url_title as they see fit. I believe this is something they should be able to do without contacting someone who knows about 301 Redirects. This is something that is handled automatically by WordPress (based on a limited understanding and experience with WordPress).

Are there any plugins or techniques out there that will accomplish this task you are aware of?


texts: Does Stash play nice with Search Fields plugin?

texts:
I have Search Fields set up to do some non-standard filtering of a channel entry and all works fine. I've come across a separate issue where it would be good to derive a Stash list from these Search Field results but it doesn't seem possible to get the two working in tandem.

I realise that there's some overlap in terms of the functionality here but kind of reluctant due to time to abandon the current Search Fields setup - does anyone know of a way to set a Stash list from the SF results or is it a no go?


texts: Passing js file parameter in embed in ExpressionEngine

texts:
I am learning EE on the fly as I am creating our new corporate website in EE (at management's insistence) and I need to load different external js files depending on the template. I tried the approach below and the page in the browser doesn't show the variable as passing through even though the title variable comes through nicely.

Is there an error I don't see or is there a better way to do this?

I have a template named html_head.html coded as such:

<!DOCTYPE html>
<!--[if IE 7]> <html lang="en" class="ie7 no-js"> <![endif]-->
<!--[if IE 8]> <html lang="en" class="ie no-js"> <![endif]-->
<!--[if !IE]><!--> <html lang="en" class="no-js"> <!--<![endif]-->

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta id="view" name="viewport" content="width=device-width, maximum-scale=1.0, minimum-scale=1.0, initial-scale=1" />
    <title>{embed:page_title}</title>

    <!-- Stylesheets -->
    <link rel="stylesheet" href="{site_url}/bootstrap/css/bootstrap.min.css" />
    <link rel="stylesheet" href="{site_url}/bootstrap/css/bootstrap-responsive.min.css" />
    <link rel="stylesheet" href="{site_url}/css/styles.min.css" />

    <!--[if lt IE 9]>
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <script src="{site_url}/js/respond.min.js"></script>
    <script src="{site_url}/js/jquery-182.min.js"></script>
    <script src="{site_url}/js/modernizr.js"></script>
    <script src="{site_url}/bootstrap/js/bootstrap.min.js"></script>
    <script src="{site_url}/js/page_scripts/{embed:page_script}.js"></script>
</head>

<body>

and I am calling this from other templates as such:

{embed="embeds/html_head" page_title="Company Name" page_script="home"}

But as mentioned page_title works but page_script doesn't. Any help is appreciated.

Thanks in advance!


texts:
I'm working on an old EE1 site at the moment.

It's multi-lingual using this approach from Carl http://cwcrawley.co.uk/2010/01/multi-lingual-websites-in-expressionengine/ with English, Chinese, Japanese & Korean versions.

I have a conditional in a template that looks like

{if description_{user_language} != ""}{description_{user_language}}{if:else}{description_en}{/if}

where {description_en} etc is an LG TinyMCE field. It works fine.

However, the client wants a better WYSIWYG and so, naturally, we'd like to use WYGWAM. So after installing WYGWAM and configuring the custom fields, our conditional renders the page blank. As soon as we remove the conditional it's fine (missing the content of course but has pinpointed the cause).

I can't think of a way around this or why it's happening.

Any suggestions?


texts: How do I remove the second segment from my URL?

texts:
I have a template group called "about-us" and within that group are 2 types of templates, one is called "about-content" and the other is called "where-and-when".  I've noticed when I navigate to the page it displays this url "...about-us/about-content/where-and-when".  But where I actually want the url to point is "about-us/where-and-when".  I'm doing  something wrong, and I can't figure out what it is.  Its probably super simple and I'm going to feel like an idiot when you tell me the answer;)

here's my code:

{exp:channel:entries channel="content" disable="categories|member_data|pagination"     url_title_path="where-and-when"}

{title}

{page_content}

{snp_when}

        {snp_location}

{/exp:channel:entries}

I also have this code that displays links in the sidebar to other entries. I'm thinking this may be the problem, because I'm clicking the link in this div to get to the "where-and-when" page.

About Us

        {exp:channel:entries channel="content" dynamic="off"}
        {if url_title != last_segment}
{title}
{/if}
        {/exp:channel:entries}


texts: How would I charge to create an entry (e.g. in Solspace Calendar)

texts:
I want to build a site that allows subscribe, then book time slots in a calendar. Booking a slot will cost an amount based on criteria the member selects in a form. I'm thinking the subscription part of the site will be built with Membrr, and the calendar will be Solspace Calendar.

The part I'm not sure about is how to charge users to book a slot (effectively charging to create an entry?).

Has anyone done something similar, or have ideas regarding how I might implement this?

Thanks in advance.