texts: Playa Upgrade 2.9 - playa not installed and now unable to load site preferences error

texts:
I upgraded a site from EE 1.7.3 to EE 2.9.1 - the last piece was upgrading Playa.  The site was working fine until that point. When I went to upgrade Playa, I received the following error:

  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

After checking for parent_var_id and parent_is_draft (both exist) I went to set the version number to 4.5 in exp_fieldtypes - however there is no playa field listed in that table.

Also, now the site and control panel do not load and instead I'm getting:

  Site Error: Unable to Load Site Preferences; Invalid Preference Data

Thanks for any help you can provide.


texts: content to display by month in archive always shows current month rather then the month selected?

texts:
on this http://ee2.acer.edu.au/rd/archive/2013/April

I have this code

{exp:channel:entries channel="research-developments" status="Featured|Open" orderby="entry_date" sort="desc"  dynamic="off" display_by="month" limit="1"}

but it always shows latest month so at the moment I have may for all archives when I need it to display each for each section , any ideas ?


texts:
I am creating a 'dashboard' for my users I use matrix to let them add their employment history.

They can update their profile via channel forms but

1 - how can I insert/add data into the matrix fields (examples if you have a link to one please.

is is possible to use the ajax style add row that I can when logged in as the superadmin in the EE backend?


texts: How to allow content authors to add icons to links?

texts:
Does anybody allow their content authors to add icons to links? If so, how do you do this? I'm considering the best approaches.

I allow them to make links, and to make those links into buttons (the "Styles" menu of WYGWAM has button options when a link is selected, adding the "btn" classes), but I don't yet know of a good way to also allow icon selection. I currently do it by hand with the  tag. But if I can make it easy on content authors to do this, all the better.

Will be using EE5/latest Font Awesome.


texts:
There are many add-ons available on the market, but their taget is too high for my needs. I have about three hundred members present, and voorei offer payment services through membership.

I was wondering if there is a solution that is less costly and difficult to implement extensions as carthrob.

I was considering the form paypal, and I cheidevo if you can implement this with a mebership.


texts: How can I use Low Variables to store Freeform data, then call to page dynamically?

texts:
I have an existing site with a good number of forms that use Freeform, currently coded directly into the templates. I'd like to pull them out of the templates and into low variable fields, then call them to a page either via (a) using a segment or (b) via a field in a channel entry.

Setting up the variable works fine, and if I tick the parse early box and code it directly into the template the form displays great. However, when I try to use a segment variable or channel fieldtype to display it the form tags do not get parsed.

So for example, if I set up a variable called "form-my-page", and code it directly into my template as:

{form-my-page}

Works great.

If I try to do something like:

{form-{segment-2}}

Doesn't parse.

Or if I attempt to use a fieldtype to attach a form to a channel entry, I find I'm unable to use early-parsed variables, and otherwise the form data doesn't get parsed.

I realized that I could use Solspace's new composer and fieldtype, but I don't want to have to redo all my custom forms right now. Thanks for any insight!


texts: Installation of MSM not working on localhost / server

texts:
I have just tried to install Multiple Site Manager (MSM) both on my local MAMP server and on the database.

I have copied the files required, and turned on the MSM setting in General Configuration.

However, whenever I go to "Edit Sites", I get the following error:-

The website encountered an error while retrieving

http://localhost:8888/soundhalo-blog/admin.php?S=390e647927cdde75544e6e3c9e258cf84f8cce2b&D=cp&C=sites&M=manage_sites.

It may be down for maintenance or configured incorrectly.

Can anyone help me out as to why this is showing up? I get the same error on the server as well.


texts: Expresso Store ‘State’ Dropdown showing NO States

texts:
I must have done somethings but I am not sure what I did. No States show up in the dropdown. This is checkout2.html. Its just an empty select Form. I set the default in the admin to County: United States and State:California.

As I cycle through the checkout process, I get to /store/checkout2 and the form is there but State has no states in the dropdown. Also the default Country is Afghanistan. (odd because it set to United States.

It was working before but not, it stopped. Its on a testing server right now because I am rebuilding it. I reinstall ’store’ and made sure I am using 2.5.1.

I am baffled. Here is the link for the 'example store' I set up. It exhibits the same behavior no Sates in the dropdown.

Thanks ....


texts: SQL query to count question marks in comment field?

texts:
Wanted to ask if anyone can help me with (code or commands to use) an sql query to count how many times the question mark character appears in table *exp_comments*, field comment?

Thanks!
Lee


texts: Database error 1054 following update to 2.7.0

texts:
I've just updated a staging instance of EE to 2.7.0 from 2.5.2 following a successful update of a development instance and the live production instance. The reason for update was because we have MSM installed with four sites and needed to update to support a fifth.

I'm upgrading MSM from version 2.1.4 to 2.1.6.

Following the update three of the four sites function correctly but the fourth displays the following error with debugging enabled:

  Error Number: 1054

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

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

  Filename: modules/channel/mod.channel.php

  Line Number: 288

I've tried restoring the database and config files and re-running the installer and I've also tried clearing all the caches via the control panel as per the suggestions in this thread on the Elis Lab forum. Incidentally I am posting as MaryMalphurs on that thread (client account).

I've checked that the config file has the version number as "270" I've double checked the index.php MSM config entries.

I'm at a total loss now so any help will be greatly appreciated.

Thanks,
 Alex


texts: Grouping Matrix rows based on Playa relationship field

texts:
I have my Field groups set up like so;

Trail

title
related_things [Playa]

Thing

title
content [Matrix]

content_text [Wygwam]

content_trail [Playa, assigns a Trail above]

When I edit a 'Thing', i'm adding multiple rows to the Matrix and assigning each {content_text} with a {content_trail}, which uses Playa:

.

However, some rows may have the same Trail assigned in the {content_trail}. This is not a problem, but in the template I would like the content displayed and grouped by the {content_trail}.

Here is my updated code using Stash;

{!-- Iterate over an array of unique Trails in the list --}
{exp:stash:set_list name="@:content_trail" parse_tags="yes" parse_depth="33"}
    {!-- For each Trail output a data for the matching Trail --}
    {exp:stash:get_list name='@:content'
      orderby="content_trail"
      sort="desc"
     }
        {!-- This is the content_text column from the content Matrix table --}
        {stash:content_text}{content}{content_text}{/content}{/stash:content_text}
        {stash:content_trail}{exp:playa:children col="content_trail"}{title}{/exp:playa:children}{/stash:content_trail}
    {/exp:stash:get_list}
{/exp:stash:set_list}

{exp:stash:get_list name='@:content_trail' unique="yes"}
    {!-- Get the unique Trail title --}
    <h2>{content_trail}</h2>
    {!-- Get all content_text Matrix rows for this Trail --}
    {exp:stash:get_list:nested name="@:content" prefix="result" orderby="total" match="#^{content_trail}$#" against="content_trail"}
        {content_text}
    {/exp:stash:get_list:nested}

{/exp:stash:get_list}

What this is now doing is successfully getting the unique content_trail Playa data and displaying it all in one h2 tag like: Aviation TrailHeritage Trail, instead of creating two separate h2's. Also, it is not displaying the content_text rows that match the unique content_trail's.


texts: Set quantity to 1 if user has entered a price

texts:
Hi wondering how I could set quantity to 1 if the user has entered a price.

I'm adding multiple donations to cart within product form tag and want to hide the quantity input. How can I check if a price has been inputed and then set the quantity to 1.

I have the following but get an invalid conditional error in template.

<input type="hidden" name="items[{count}][item_qty]" value="{if "{price}" >= "1"}1{if:else}0{/if}" />


texts: I don't see anything in the change log or mentioned on the Pixel and Tonic website.  Does Playa work with ExpressionEngine 3?


texts: Freemember - Set to not Activation Required AND it automatically sets to Pending. How do I change this?

texts:
I've built a site using freemember and although there's "no activation requried" it automatically sets the member to "Pending" rather than "Members".

I've checked my encryption key and turned off terms of service - still no joy!

It's pretty urgent so any help would be awesome :) Thanks


texts:
Trying to figure out if this is possible using currently available add ons.

I have a client who wants to be able to pick from a pre-defined list of items in a channel entry field (or fields). He may have a list of 10 requirements to choose from, displayed with checkboxes. Only the ones that he ticks will be displayed on output in the template.

That's easy enough using the checkboxes fieldtype...

This is where it gets complicated - The list of checkboxes are the same across all channel entries (with only selected items being shown) but he wants to be able to inject further data (which differs between entries) into the pre-defined list within the publish page.

For example, if the following were a list of checkbox items:

This is an item with static data
This is an item with {dynamic} data
This is an item with static data

Where {dynamic} appears he wants to be able to input fresh data, essentially a field within a field. Does anybody know of a way to achieve this, or possibly a work around?

Or, possibly a way to map another field to this 'placeholder'?

Many thanks


texts:
I'm using EE to light up a HTML email template, so, not surprisingly, I've had to resort to some trickery to get the layout working in Outlook.

Basically, I have a table, and I need a cell in the table to alternate between the left and right side for every other matrix row:

{my_matrix_field}

            {if row_count:even}

            {/if}

            {if row_count:odd}

            {/if}

{/my_matrix_field}

Possible?


texts:
I'm a novice in ExpressionEngine, but with plenty of background in PHP. Still, I'm struggling with the EE parsing order.

Here is my situation and I would be very, very thankful if anyone can give me some/any guidelines how to approach it or what I'm doing wrong.

I'm having a page that renders some content and there is a link to reveal more. The trick is that revealing that more content is password gated, but with no membership complexity.

I've got a static password (yeah, I know) that is saved as a snippet.
When the user clicks to reveal more content a dialog is shown, asking for the password and then the form posts to the same page.

When the page loads it checks to see if a session variable is set and if not, sets it, then re-directs to itself (to clean up the posted values).

The page re-loads and checks for the session variable. If it is set it displays the more content, otherwise displays the link to ask for password.

Here is the snippet. I've renamed the variables, so they make more sense.

{exp:switchee variable="{exp:session_variables:get name='session_variable'}" parse="inward"}
  {case value=""}
    {if '{post:posted_variable}' != '' AND '{post:posted_variable}' == '{snippet_variable}'}
      {exp:session_variables:set name='session_variable' value='1'}
    {/if}
    {exp:redirectee:redirect status='302' url='{current_url}'}
  {/case}
{/exp:switchee}

... Content ...

{if '{exp:session_variables:get name='session_variable'}' == '1'}

... MORE CONTENT OF SOME KIND ... an embed/snippet even

{if:else}
  Click here to view More Content

    <form action="{current_url}" method="post"><input name="posted_variable" type="password" /><input type="submit" value="Go" /></form>

{/if}

... JS to handle the modal ...

My understanding is that EETemplate parses first the {exp} tags, then the advanced {if}, which made me use switchee with the parse="inward" attribute. I used to have it in an {if} conditional. Still the switchee case is not firing, and the previous setup always fired the session set and redirects.

Thanks in advance.

Third party stuff:

Redictee - http://reinos.nl/add-ons/redirectee
Session Variables - http://putyourlightson.net/session-variables-plugin
Switchee - hallmark-design.co.uk/code/switchee/
Mo Variables - github.com/rsanchez/mo_variables

EDIT:

In addition to the above. I've tried extracting the top code to separate page, and the form action sends the user there, which should redirect back. It's all using switchee, which looks very complicated for such a simple thing! It still doesn't work.

{exp:switchee variable="{exp:session_variables:get name='session_variable'}" parse="inward"}
  {case value="1"}
    {exp:redirectee:redirect status='302' url='{last_page_visited}?status=allok'}
  {/case}
  {case default="no"}
    {exp:switchee variable="{post:posted_variable}" parse="inward"}
      {case value="{snippet_variable}"}
        {exp:session_variables:set name='session_variable' value='1'}
        {exp:redirectee:redirect status='302' url='{last_page_visited}?status=good'}
      {/case}
      {case default="yes"}
        {exp:redirectee:redirect status='302' url='{last_page_visited}?status=bad'}
      {/case}
    {/exp:switchee}
  {/case}
{/exp:switchee}

For some reason {case value="{snippet_variable}"} is never considered.

{case default="yes"} is the only case that is considered. Simply setting it to {case default="no"} breaks the page.

Any suggestions?


texts: Assets: Uploaded File Doesn't Display in File Browser

texts:
I'm running Assets 2.0.5 on EE 2.5.5 with MSM and FocusLab Master Config.

When I click "Upload", select a file from my computer, and click "OK", the Assets progress bar moves across the screen, but when it's complete the new file does not display in the file browser. The file is uploaded successfully, and is visible in the directory via FTP, it's just not visible in Assets. This happens both on the publish page and inside the Assets control panel.

Assets has been working fine on this site until about a week ago when this problem started happening. But the only changes I made around that time were to install Low Events and the URL Tube plugin; add a new channel and remove an old one. None of that should have affected Assets as far as I know.

I get a bunch of console warnings for each file that loads in the Assets browser:

I updated all the indexes but the problem persists. Please let me know what additional information you need to get to the bottom of this. Thanks.


texts:
Have set up MSN as follows:

spotlesslyclean.com
-- system
-- themes
-- admin.php
-- index.php
spotlessovencleaning.co.uk
-- admin.php
-- index.php

However, when you visits spotlessovencleaning.co.uk, it defaults you to the login screen.

config file as follows:

    $system_path = '/var/www/vhosts/spotlesslyclean.com/dev.spotlesslyclean.com/system/';

$assign_to_config['site_name'] = 'spotless_oven_cleaning';

$assign_to_config['cp_url']    = 'http://dev.spotlessovencleaning.co.uk/admin.php';

$assign_to_config['site_url']  = 'http://dev.spotlessovencleaning.co.uk';


texts:
I've built a pretty standard-fare Freeform contact-form, but have spiced things up a bit. The entry_id from the JSON-response is used to fetch someone's name and e-mail, which I run through an underscore template and parse out to the user (something along the lines of "Thanks John Doe, we'll get back to you shortly on johndoe@gmail.com).

Now, I understand that this is potentially a huge security risk, as all freeform-results are available through a public json-endpoint (in my case /api/response/{entry_id}).

How would I go about securing this? Ideally I'd just want the system to only be able to do this once... Is there a way to set that up in Freeform?

Any input would be greatly appreciated!

Thanks!


texts: conditional statment to display all entries that are from today and forward

texts:
Have

events channel
have 10 entries
have a date field called event_start_date

Desire
 - display only up coming events in asc order

List

2016-12-06
2016-11-01
2016-10-24
2016-05-30
2016-09-12
2016-05-15
2016-05-02
2016-03-29
2016-03-01
2016-02-08

Code:

{exp:channel:entries channel="events" orderby="event_start_date" sort="asc"}
  {if {event_start_date format='%Y-%m-%d'} >= {current_time format='%Y-%m-%d'}}
    {event_start_date format='%Y-%m-%d'}

  {/if}
{/exp:channel:entries}

Results:

2016-02-08
2016-03-01
2016-03-29
2016-05-02
2016-05-15
2016-05-30
2016-09-12
2016-10-24
2016-11-01
2016-12-06

Desired

2016-05-15
2016-05-30
2016-09-12
2016-10-24
2016-11-01
2016-12-06

What am i doing wrong?

Final working code:

{exp:channel:entries channel="events" orderby="event_start_date" sort="asc" search:event_start_date=">={current_time}"}
    {event_start_date format='%Y-%m-%d'}

{/exp:channel:entries}


texts: I'm attempting to upgrade my EE Discussion Form Module from version 3.1.8 to 3.1.14 in my EE 2.7.3 environment. I followed the upgrade instructions, but when I access the Add-ons > Modules > Discussion Forum page in the CP nothing happens. The module doesn't seem to update. The only odd thing I see is that the change log for the module shows entries for 3.1.5 and then jumps to 3.1.14. There doesn't seem to be version 3.1.6 - 3.1.13 and I'm on version 3.1.8. So could the issue be that the module update scripts aren;t recognizing my version as one available for upgrade?


texts: Do username have to be unique in ExpressionEngine?

texts:
I am in the process of importing data from another application to ExpressionEngine. I know that EE expects screen_names to be unique as of Sept 2012.

The question is whether I have to make the username unique too or if I can use a combination of first name and last name (e.g. "johndoe") risking that there might be more then one "john doe" in the imported data.

Thanks for any hints.


texts: Solspace Facebook Connect Register error when returns

texts:
i've an error when Facebook Register returns on my website. this is the error:

The following errors were encountered

This form has expired. Please refresh and try again.

The link in browser is like that

http://www.url.com/?ACT=54&hash=205d1b74bc165cddc18fcd32d5e22434

The request was sent by

https://www.url.com/site/register

Is there some issue with the https?

Thanks guys


texts: User session ending when clicking on a link

texts:
I have a site with a login form on the front end for the user to log into the site.  The login works ok, but when they click on any link to another page, their session ends and they get logged out.  This is an issue as I have {if logged_in} tags in various parts of the site.

I'm using EE 2.2.2 and I have set the Session type Session ID only.  Setting any other session type dosn't allow them to log in at all.

Thanks,


texts: Can the Map Location be Automatically Obtained Using Address, in Objective HTML's Google Maps?

texts:
We are using ObjectiveC's Google Maps module and fieldtype http://devot-ee.com/add-ons/google-maps, which allows a user to choose a location on a map to obtain the longitude and latitude which is saved to the entry (the longitude and latitude is used in search results for a "results near x miles" list).

Our users are already entering an address to display for the listing, so is it possible for the Google Maps add-on to automatically get the lat and long from the address so we do not have to offer the map for them to pick a location in addition to entering their address?


texts: MSM & Super Search results howto retrieve site info for each result

texts:
We're using MSM with Solspace Super Search, each sub site is reached through a subdomain, eg:

site_1.oursite.com

site_2.outsite.com

But, on a search results page that displays results from across all sites, all of the path tags I have tried, such as 'auto_path', get resolved to the current sub domain for all results, and not to the site for each entry.

I could group the results according to sub domain and then set the paths, but is there a way to get the full path for each entry without doing this?

    {exp:super_search:results paginate="bottom" limit="40"}
        <?php $class = {count} % 2 == 0?'even':'odd';?>

        <td class="<?=$class?>" width="30%" valign="top">{title}
        <td class="<?=$class?>" width="10%" valign="top">{author}
        <td class="<?=$class?>" width="10%" valign="top">{entry_date format="%d/%m/%y"}

        {paginate}

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

        {/paginate}

    {/exp:super_search:results}


texts: Show list of entries from specific category while showing a detail

texts:
i'm creating a portfolio site where artists can show projects. artists are a category

on a project page (from an artist) i want to show the artists other projects as well.
this seems simple but i'm not sure how to do this:

// get the category_id
    {exp:channel:entries channel="projects" status="open" limit="1" orderby="entry_date" sort="asc"}
        {categories show_group="1"}
           // parents from the categories are not artists but artist groups
            {if category_id != "1" AND category_id != "2" AND category_id != "3" AND category_id != "4"}
                <?php $artistid="{category_id}"; ?>
            {/if}
        {/categories}
    {/exp:channel:entries}

// show all titles from the category id (artist id)
    {exp:channel:entries channel="projects" category="<?php echo $artistid ?>" status="open" limit="50" orderby="entry_date" sort="asc" dynamic="off"}
         {title} /
    {/exp:channel:entries}

eg on portfolio/project/test-dave-eerste-van-de-dag, the artist_id is 6 but it doesn't work in the second exp:channel:entries. php is on output. probably it goes wrong with both input and output.
there must be an easier way to do this!


texts: Channel Images: possible way to let client switch from Tile to Table view?

texts:
I'd like to be able to allow a client to switch the Channel Images channel entry screen from Table to Tile, but I don't want the client to actually have access to the field settings (to keep things simple).

Is there a way to do this?


texts: When using Google Maps for EE, why does my third map (out of 3) appear correctly while the others are static images?

texts:
Using Objective HTMLs "Google Maps for ExpressionEngine" plugin this query returns 3 records and it is giving me the first two maps as staic maps and third map as a live map:

{exp:channel:entries channel="events" orderby="events_start_date" sort="desc"}

<div class="map">
{exp:gmap:init id="map{entry_id}" class="google-maps" style="width:100%;height:380px" scrollwheel="false"}
                {exp:gmap:marker id="map{entry_id}" latitude="{events_map_latitude_field}" longitude="{events_map_longitude_field}" zoom="16"}
</div>

{/exp:channel:entries}

Why are all the maps not live maps with a marker on them?

The maps are also in a div that uses jquery show/hide and the real map only shows the first tile and the static maps (which should be real maps) don't even show. If the show/hide is disabled the maps render correctly (though the first two are static).


texts: prev_entry and next_entry not returning correct site_index path

texts:
I'm showing single entries on my site index page and for each entry my url looks like this: index.php/entry_url_title.

The EE docs say that I can use {path='site_index'} as a variable in {exp:channel:prev_entry} and {exp:channel:next_entry}, however that doesn't seem to be working for me.

{path='site_index'} is returning: index.php/site_index/next_entry_url_title Not the expected: index.php/next_entry_url_title.

{path='site_index'} is working correctly outside the next_entry and prev_entry tags.

I'm running EE2.9.2
Any thoughts?

Per Marks request I'm including my template code, stripped down to the essentials:

{layout="home/layout"}
{exp:switchee variable="{segment_1}" parse="inward"}
{case value="''"}

{/case}{case default="yes"}

        {exp:channel:next_entry channel="work" url_title="{segment_1}"}
            Next - {title}
        {/exp:channel:next_entry}
        {exp:channel:prev_entry channel="work" url_title="{segment_1}"}
            Prev - {title}
        {/exp:channel:prev_entry}

    {exp:channel:entries channel="work" url_title="{segment_1}" limit="1"}

    {/exp:channel:entries}

        {exp:channel:next_entry channel="work" url_title="{segment_1}"}
            Next - {title}
        {/exp:channel:next_entry}
        {exp:channel:prev_entry channel="work" url_title="{segment_1}"}
            Prev - {title}
        {/exp:channel:prev_entry}

    {/case}
{/exp:switchee}

As you can see I'm using switchee, however I've tested outside of switchee I get the same result.


texts:
I am using ajw feedparser to output a feed from Songkick. It has been working correctly up until recently but now the date is showing as a day earlier than it should eg. 15th April instead of 16th.
Any suggestions would be much appreciated! (The feedparser plugin support forum is pretty dead!)

{exp:ajw_feedparser
url="http://api.songkick.com/api/3.0/artists/304376/calendar.xml?apikey=2bpAQkQkQ3wYFukP"
itempath="/resultsPage/results/event"
         cache_refresh="60"
         limit="3"}

{start@date format='%M %j %Y'} &nbsp;
{if series@displayName}{series@displayName}, {/if}
{if venue@displayName}{venue@displayName}{/if}

      {/exp:ajw_feedparser}


texts: How to get corect CP thumbnail paths using master config and MSM

texts:
I'm using a master config file based on this one, in an MSM install of EE2 (2.5.5).

In the config file, I set the base path and url like so:

$base_url = $protocol . "://" . $_SERVER['HTTP_HOST'];
$base_path = $_SERVER['DOCUMENT_ROOT'];

This works a treat, but, I exclusively access the CP via my default site /admin - e.g.
https://www.default_site.com/admin/

When I switch MSM sites in the CP, the thumbnails in my matrix file type custom fields break, because they are looking for the files in the default site rather than the MSM site I have just switched to.

Apart from accessing the CP via my other MSM site url, is there a way to get thumbnails working in this scenario? (I cannot find any config overrides specific to thumbnails, apart from the prefix value).

Note: All other file paths, file upload prefs, and front-end files work correctly - it's just the thumbnails in the CP, for the 2nd MSM site, that are broken.


texts: Cartthrob: confirmation email sent but member not registered

texts:
I'm having an issue on a site running EE v2.5.5 and Cartthrob 2.3.6. The vast majority of users are able to register no problem. However, some users intermittently go through the registration process, receive a confirmation email, but when they try to login they get the error: The existing username and/or password you submitted are not valid.

When you check in the backend of the site the member is not registered. I can't for the life of me find any pattern. I thought it might be something to do with people registering from work, where companies have some kind of excessive caching on their servers which is confusing EE somehow.

If anyone has experienced something similar please feel free to share the pain, and even better a solution!


texts: Adding the total number from a specific custom field of all channel entries

texts:
I am wondering if the following is possible to do within ExpressionEngine:

On the front end of the site, I would like ExpressionEngine to search a particular custom field within a particular channel, and add all of those numbers together to come up with a sum total. So for example...I have a channel named "Invoices" and within that channel, I have a custom field named "Monthly Total" which only has numbers and a decimal (ie. 15.25). On the front end of the website, I would like to display the sum total of custom field named "Monthly Total" for every single entry in that channel. So essentially, this front end section would automatically update when a new channel entry is created or deleted.

I hope that made sense, can this be done?  Thanks!


texts: is it healthy to built a web services or a web app using EE?

texts:
we are growing company and we support and use EE for more than 4 years and continues, because we believe in it, and it is our choice ever.

Any ways, I was in interesting discussion with a developer about how healthy & good enough is it to use ExpressionEngine for web services, web apps, cloud services, dating website or CRM for public such as paid services etc...
and that will be our development methodology in our business so every one has the same level experience to make faster development.

But his opinions about using EE are

It works only for small projects such as blog or website.
custom development in EE is wasting of time.
We will get bad performance with database Inflation.
it uses MYSIM mysql engine.
it dose not support other data bases.
it is better to built application with custom development using php framework such as
laravel, or zend because it is faster and more solid.
it has no powerful permission system.
you should keep it as CMS nothing else.
Don't put all the eggs at one basket. EllisLab won't be here for every

My opinions are:

it is better way to develop custom forms and fast way to implement design.
I think Custom development with EE is easy because the learn is short with Grate documentation.
it is easy to develop and custom your work online using (control panel).
you can use built your backend for your end users as backend using Channel:forms.
it has many many tools and embedded features starting from login and security ends to Word Censoring, so you wont need to reinvent the wheel.
it may wont safe time but it is a solid framework and has allot of add-ons to extend.
ExpressionEngine will work will with the good hardware and well configured servers.
accountability for the project ( if I lose my programmer I will find someone to help), ellislab support.
I have experience with 2 web services both are walking without a limping .

After all, we did not come out with any result So I thought about asking the experts.
am i overestimate of expressionEngine value? or just he is right.
your honest will help us to set some rules :)
thanks for advance in helping


texts: Does replace_tag fire for single tags if there is no $data?

texts:
I'm having a problem with a custom field type where I want to return 'some value' on the condition of there being no value in data. This works when I use a tag pair, but not when I use a single tag.

i.e.

{my_field}something here{/my_field}

will call replace_tag even when $data is empty, but...

{my_field}

will not even call replace_tag unless $data is not empty. In this case I want to force a 'default' value if the field is empty but it appears impossible.

Is this a bug or intended behaviour to improve performance? Is there some workaround I can use to trick ExpressionEngine into thinking $data has some value before the template is parsed to force it to call replace_tag on single tags?

Edit:

Trawling through the ExpressionEngine core files gives me the impression that what I'm trying to achieve is impossible though I guess there's a mild chance that an extension might be able to rescue me.


texts: Cartthrob: Controlling tax on products using multi_add_to_cart_form

texts:
Hoping someone can help me with this...

We are using the multi_add_to_cart_form to create custom product packages. The site sells classes and the client is offering a class add-on that can be added to the cart when the class is added to the cart. Classes are in one channel, add-ons are in another channel. The add-ons are added to classes via Playa. This works great to create a nice class page with selectable add-ons.

Here's my dilemma - classes are not taxable. The add-on products are. How can I allow tax to be applied to the products, but not the classes when they are added to the cart??

If I use:

{exp:cartthrob:multi_add_to_cart_form
    tax_exempt="yes"
    shipping_exempt="yes"
    return="store/cart"
}

Nothing is taxed. And if I remove the tax_exempt="yes", everything is taxed. Any way to work around this? Maybe a way to pass a tax variable via hidden field?

Looking forward to any suggestions! And I will buy you many beers! :-)

Thanks,
Danielle


texts: Using CartThrob with PayPal Express (error 10004), is there a way to view long/full error messages?

texts:
I'v run into a sudden issue with CartThrob and PayPal Express in which it is giving me the following short error message:

error 10004: Transaction refused because of an invalid argument. See additional error messages for details.

Unfortunately, I'm having a hard time troubleshooting this issue because error 10004 can have a multitude of reasons for showing up but I can't find the specific issue without seeing the "long" error message.  Is there a way to see the "long" error message with CartThrob natively?  Or barring that, some way to see it through the PayPal developer site side?


texts: List authors by number of posts in specific channel

texts:
I need to display a list of authors that have posted in a specific channel, sorted by number of posts in that channel. I've got this:

{exp:query sql="SELECT screen_name, total_entries, member_id FROM exp_members ORDER BY total_entries DESC"}
    <li>
        {screen_name} ({total_entries})
    </li>
{/exp:query}

... but that counts entries across all channels, not a specific one. Can't seem to find any plugins to help with this, so guessing it's going to be a more complex query.

Thanks loads for any help!


texts: Only allow users to see files they previously uploaded in Assets

texts:
With the new html upload form would it be possible to add files like using safecracker file upload?

I want members to be able to upload images/files (ideally with assets) and then they can only see what they have uploaded and not the directory of files. Is this possible?


texts:
I have a page in a website created with expressionengine. In my site, posts are shown with exerpt and by clicking the 'readmore" using  {title_permalink=''} you go to a 'single-post' page. On that template that is then shown i wan't to display some message from another channel, but the result is nothing... I do have result when i use the same code on the page where all the postst are.

Can one place a 'entries tag' on a page which is generated by a {title_permalink=''}??


texts: Direct link to specific order in control panel from front end template

texts:
Is there any way to generate a URL to take an administrator directly to an order from a list generated by the {exp:store:orders} tag?

I can send them here: /cp/addons_modules/show_module_cp&module=store&sc=orders (to the main orders module)

I tried "/cp/addons_modules/show_module_cp&module=store&sc=orders&sm=show&id={order_id}" but the order_id does not match the "cart id".

Am I missing a simple tag?

Thanks!


texts: Loop a new section (outside loop) after every 2 entries

texts:
This is a strange one I've never come across over 5 years developing with EE. There may be a simple solution but I'm not seeing it!

Essentially, I need to create a dynamic loop that outputs a different colour background after each 2 entries. To help you understand, I have a full screen width background, inside there is a container with 2 entries. After these two, there is a new full width background with another 2 entries, then after those two, it reverts back to the original colour and so on...

This is my code:

            {exp:channel:entries channel="partners" orderby="date" sort="asc"}{if partner_group == "Construction & Property"}

            {if partner_logo != ""}{if:else}

{/if}

Company Name: {title}

Established: {partner_established}

Key business activities:

              {partner_key_business_activities}
              {partner_additional_info}
              {if partner_website_link != ""}
Visit website
{/if}

{/if}{/exp:channel:entries}

All I need to do is add a class of "section--light-grey" to the main section class. Because this is outside the loop, I can't use {switch} or conditional counting.

Any idea how to do this without creating multiple loops with offset parameters? Or can I offset dynamically?

Here is a diagram of what I'm trying to achieve:

Entry 1  – Entry 2 (white background section)

Entry 3  – Entry 4 (light grey background section)

Entry 5  – Entry 6 (white background section)

Entry 7  – Entry 8 (light grey background section)

etc...


texts: Freeform recipients not sending to recipient

texts:
Hi I am new to EE and found the FreeForm Module for Contact Forms.
It is pretty Helpful and i love how fast you can create forms with it.
One thing is not working though and as i read other posts about this topic i can not find reasons why it is not working.
Here is the Code

{exp:freeform:form
            form_id="1"
            required="first_name|last_name|email|user_message"
            return="{segment_1}"
            recipient1="Topic1|t1@domain.de"
            recipient2="Topic2|t2@domain.de"
            recipient3="Topic3|t3@domain.de"
            recipient4="Topic4|t4@domain.de"
            recipient5="Topic5|t5@domain.de"
            recipient6="Topic6|t6@domain.de"
            recipient_template="user-request"
            notify_user="yes"
            recipients="yes"
            user_email_field="email"
            recipient_limit="8"
            }
                First Name *
                <input name="first_name" id="first_name" type="text"/>

                Last Name *
                <input name="last_name" id="last_name" type="text"/>

                E-Mail Address *
                <input name="email" id="email" type="text"/>

                Subject *
                   <select name="recipient_email">
                {freeform:recipients}
                 <option value="{freeform:recipient_value}" {if freeform:recipient_selected}selected="selected"{/if}>
                    {freeform:recipient_name}
                 </option>
                {/freeform:recipients}
                </select>

                Your Message *
                <textarea name="user_message" id="user_message"></textarea>

                <input id="submitForm" type="submit" value="Send Form"/>
            {/exp:freeform:form}

So it does find errors, and it does send an e-Mail to the admin but it does not send an email to the selected recipient nor the user.

What did i miss to set up correctly?
( i changed the e-mail adresses in case of spamming :) )


texts: Solspace Calendar not showing custom field

texts:
I've got Solspace Calendar set up and working using the {exp:calendar:cal} tag but I can't get a custom field for location to show up. I've even got the enable='custom_fields' parameter set. Shows up like this at the moment: http://cl.ly/image/1I2E411L0m0b

Using EE 2.8.1, Calendar 1.8.9. Here's the code: http://pastie.org/9320357

The events channel is the default one that is installed when you install Calendar with a short name of calendar_events.

I've tried changing the custom field short name to something else (like "my_event_location") and that doesn't fix it.


texts: How does the exp:resso store register_member parameter work

texts:
This is about a software downloads facility where I want account registration for new members during the order confirmation stage. I have read the documentation about this, but have questions:

1 should I use register_member="" just like that or is it register_member="true"

2 do I have to require the email address via parameter or does the presence of the register_member= parameter cause that?

3 the docs say that an account will be created based on the email address. What feedback is provided when this actually happens?

4 what happens if a returning customer goes through another order process? The docs only say "and the email address must not already be used for a member account." Does this mean an error will be generated or is there a way to steer the user to login before completing the order?


texts:
I'm getting tons of bogus links to my EE site (ee6) when I search on Google, as in, I can see this link in google:
"https://www.andy-kirkpatrick.com/blog/view/the-haunted-cliff"
which is correct, but also this one (and many others), like this:
"https://www.andy-kirkpatrick.com/articles/view/the-haunted-cliff"
which goes to a 404 page.
There is no way that post should appear in that view template, and it does not appear in my sitemap either. I'm also getting results for
template paths for templates that I have never created on the site.
Any ideas?
Best
Andy


texts:
Using Matrix v2.5.6 under EE v2.6.1 I'm getting the following message pop-up in the Developer Log:

Deprecated function set_human_time() called in system/expressionengine/third_party/matrix/celltypes/date.php on line 92.
Deprecated since 2.6. Use Localize::human_time instead.

Not sure what the quick fix is for this?


texts: CartThrob Cart Items Info without currency formatting

texts:
We're using CartThrob Pro 2.7 and EE 2.10.  Is there a way to output the item subtotal without the currency formatting?  We've tried:

{exp:cartthrob:cart_items_info number_format="yes"}

{item_subtotal}

{/exp:cartthrob:cart_items_info}

but it still applies the currency symbol


texts:
I have just upgrade to Calendar 2.0.5 and I used to have a template that generated a list of events sorted by month using the {display_each_month} loop within {exp:calendar:cal} tag. Now that the cal tag no longer exists I can't figure out how to do this...

{exp:calendar:cal sort="asc" dynamic="no" calendar_name="events" date_range_start="today" show_months="3" pad_short_weeks="n"}
{display_each_month}

{date format="%F"}

{if month_event_total == "0"}
There are no events scheduled for {date format="%F"}.
{/if}
{events}

{event_start_date format="%d"} - {event_title}

{/events}
{/display_each_month}

{/exp:calendar:cal}


texts: Executing multiple SQL statements with Database class

texts:
Using $this->EE->db->query(); is it possible to execute a query as complicated as this:

CREATE TEMPORARY TABLE exp_temp_table (...);
INSERT INTO exp_temp_table () SELECT ...;
UPDATE exp_temp_table ... SET ...;
SELECT ... FROM exp_temp_table ...;

For obvious reasons I've removed most of the actual statements.

This code executes perfectly in phpMyAdmin, but when I try to use $this->EE->db->query(); I get a SQL error at INSERT INTO exp_temp_table ()... - is it not possible to execute queries with multiple statements? If not, is there some way I can work around this?


texts: Solspace Calendar does not displaying past events

texts:
When I use this code (specifying an entire year of past and upcoming events), Calendar only displays upcoming events and fails to display events which have already passed.

{exp:calendar:events date_range_start="2013-08-01" date_range_end="2014-08-01"}

(The behavior is the same when I use the {exp:calendar:cal} tag pair.)

How can I get past events to show up in my event list?


texts: DevDemon Forms Email Route - Act as email switch and form feature switch?

texts:
I'm using the latest version of EE and DevDemon Forms. We have a form that works well. Our first field is an Email Route dropdown. This works as expected and sends an email to the correct person depending what is chosen.

We would like to use this same Email Route field for conditional logic as well. When we enable conditional logic on a field further down in the form, the Email Route field appears in the possible fields to use, however, no matter what we enter for "value", the condition is never met.  We've tried to enter the label and the value from the Email Route field, but nothing seems to work.

Is there a way to use Email Route as both a route selector and as a conditional switch?


texts: Expresso Store checkout and custom field based on entry ID

texts:
Based on a documentation my code looks like (short version):

{exp:store:checkout channel="products" form_class="form-horizontal"}
            {items}
                TEST 1
            {exp:channel:entries entry_id="{entry_id}"}
                TEST 2
            {/exp:channel:entries}
            {/items}
{/exp:store:checkout}

TEST 2 message is not displayed at all.

Any clue what is going on?

Thanks

PS.
It looks like Expresso Store parsing bug. Similar issue described here

PS.2

I have wipe out whole cart/index template and put just those lines:

TEST:

    {exp:channel:entries channel="products" entry_id="230" dynamic="no"}
    Entry id image:
    {product_image limit="1"}

    {/product_image}
    {/exp:channel:entries}

And what I'm getting is only a text TEST: nothing else. Product with an entry ID 230 exists in the products channel.


texts: Editing playa fields inside of a safecracker form

texts:
I'm trying to figure out how to update my playa fields (member_firstname, member_lastname, etc) when they're inside of a safecracker form. All of the non-playa fields update:

{exp:safecracker
limit="1"
channel="business"
return="myfig/dashboard/success"
datepicker="no"
url_title="{segment_2}"
safecracker_head="no"
error_handling="inline"
use_live_url="no"
author_only="yes"
}

Business Name
{title}

{exp:playa:children field="contact" status="not closed" limit="1" entry_id="{embed:entry_id}"}

Primary Contact First Name
<input type="text" name="member_firstname" id="member_firstname" value="{if member_firstname}{member_firstname}{/if}"/>

Primary Contact Last Name
<input type="text" name="member_lastname" id="member_lastname" value="{if member_lastname}{member_lastname}{/if}"/>

Primary Contact Title
<input type="text" name="member_job_title" id="member_job_title" value="{if member_job_title}{member_job_title}{/if}"/>

{/exp:playa:children}

Pastie: http://pastie.org/6405829

Any thoughts?


texts:
Just wondering if anyone has a solution for this.

I want relationships between two channels... nothing fancy. But in the CP I want from both channels to be able to create the relations.

Say I have the channel Bakery and Bread.
1: From the bakery I want to be able to add one or more breads.
2: From the bread I want to be able to add a bakery.

Right now I could do this by adding a relationships field to both of the channels and point them to the opposite channel. But both fields won't know of each others existence thus not displaying the relations made in the opposite channel.

I think this is probably because of the ability to sort the relations. But that feature is something we don't need for this specific problem.

I hope I made clear what I need :) hopefully someone knows of a solution.


texts: Tagger and Channel Forms — import from simple text field?

texts:
I'm using an API to pre-populate EE entry forms, and one of the fields is a Tagger field. How do I take my comma-separated string of plain-text tags and turn the into something the Tagger field will accept?

I know Tagger has an Import feature, but I'd love to able to do this at the entry level, instead of having to go in and process tags manually each time.

If not, is there another tagging add-on that will allow this?


texts: Wordpress to ExpressionEngine, missing tags

texts:
I'm currently using DataGrab to pull a WP blog into EE. It works for the most part, but I can't seem to get tags to work?

I added the Wordpress datatype to DataGrab (http://brandnewbox.co.uk/products/datatypes) and I see the "tags" section is looking for domain="tag", which the WP export has? Trying to get it to populate DevDemon Tagger field, but when checking import it looks like it's not seeing the tags at all?

Any suggestions greatly appreciated!!

EDIT: So I managed to get Wordpress tags pulled in by modifying the Wordpress datatype for DataGrab. Don't remember the line number, but for tags it's looking for domain="tag"but Wordpress exported it as domain="post_tag", so once I updated that I was able to get tags in. However, DataGrab still doesn't work with Tagger. So I could only import the tags into a text field, and then go into Tagger and import from the field.

This still doesn't completely solve the problem. Now the tags are in Tagger, but no longer attached to the post. So they're basically useless :(

Any thought/ideas on how to ge things re-attached in an automatic way? With 1,000's of post I'm not willing to go through and manually re-assign!

EDIT 2: I've since tried to use Solspace Tag as an alternative to see if it would work, unfortunately it does not. With DevDemon Tagger no error was returned, with Solspace Tag however I receive a php error:

Message: Undefined index: allow_subloop
Filename: fieldtypes/datagrab_tag.php

So still trying to figure this out. There are post on the DataGrab forum about this as well, so I know I'm not alone: http://brandnewbox.co.uk/forums/viewthread/858/, I also submitted my own post here: http://brandnewbox.co.uk/forums/viewthread/927/

I will update this post if I manage to get a solution figured out...


texts: (Not an issue) In CartThrob, how can I delete an item from the cart by updating it's quantity to 0?

texts:
Edit: This appears to work out of the box, as long as everything is set up and coded correctly. See my comment below.

Using {exp:cartthrob:update_cart_form}, is there a way to make items with an updated quantity of 0 reliably delete from the cart when the form is submitted?

I can't find any documentation or postings on this question, but I'm hoping there is a way. It makes no sense to me that a customer can update their quantity to any other number, but 0 has no effect. Setting a quantity to 0 should bring the same result as calling delete.

In my testing, if I have a cart with multiple items, the last item listed will sometimes delete from the cart if I update it's quantity to 0. However, this is inconsistent. Setting quantity to 0 on any other item in the cart has no effect.


texts: Saving takes minutes - Timeout when saving an edited entry

texts:
I have raised the question a month ago here

I need to come back to this. We still have this issue. EE 5.3 with Publisher (but only one language at use for the moment). The website did run for about 10 days without any issue (it was copied from a developer space to the live-domain). All of a sudden when saving some of the edited entries it takes minutes to save them back so that we encounter a Request Timeout. We checked with the hosting company, they do not see what happens and no errors are logged.
We have enough memory and we could remove the Timeout with the htaccess. It takes 4 to 6 minutes on some of the entries to be correctly saved.

We have no idea why EE takes that long for an entry save? There are no relationship stuff in those entries that take that long. There are no Bloqs fields in those entries. Some of the Bloqs field entries do save normally.

I have installed a copy of the site on an other server to check if we get any difference. It has the same behavior on this copy. The same entries do take minutes to update.

Is there someone who can help us to investigate and solve the problem? How could we make visible what EE is trying to do in this long time? My customer and I are getting a bit nervous now.

Some help is really appreciated.


texts: When member accounts are created in expresso store - group specification

texts:
When I have a form submitting to store on a purchase, can I set it so that the account that is created holds the correct member group information? I would like to set someone to pending status. This is my form, can I set it so they are assigned to group 10?

{exp:store:checkout form_class="form-horizontal" register_member="yes" return="shop/order/ORDER_HASH"'}

So something like this:

{exp:store:checkout form_class="form-horizontal" register_member="yes" return="shop/order/ORDER_HASH" group_id='10'}

Or will I need to have them fill this information in post-this form? If they don't have an account, does the form create a password for them or does that need to be included?


texts:
i have made this code to generate the new entries wich have been posted.

<div class="nieuwe_berichten">
  {exp:channel:entries channel="interne_memo" display_by="week" limit="1" show_current_week="yes"}
    {total_results} nieuwe berichten!
  {/exp:channel:entries}
</div>

This code generates only: “2 nieuwe berichten” and also 2 times. Does anybody know how to write a good code for this?

thnx in advance,
Leon vd Leer


texts:
I have an ajax form set up for my EE contact form which requires that the email and message field be filled in. I need to have "name" and "subject" required too. Please help

 // Contact form to use AJAX.
    $(document).ready(function()
    {
        /* helper function to display a message describing the results of the form submit */
        function displayAjaxMessage(message)
        {
            $("#ajax-message").html(message);
            $("#ajax-message").fadeIn(1000);
        }

        /* attach a submit handler to the contact form. By default, EE generates the ID "contact_form" */
        $("#contact_form").submit(function(event)
        {
            /* stop the contact form from submitting normally */
            event.preventDefault();

            /* hide any left over message from a previous submit */
            $("#ajax-message").hide();

            /* send the form data using post and check the results for any errors*/
            $.ajax(
            {
                url: "/",
                type: "post",
                dataType: "html",
                data: $(this).serialize(),

                /* If there was some kind of an AJAX error, display an appropriate message or take some other action of your choice */
                error: function(jqXHR, textStatus, errorThrown)
                {
                    displayAjaxMessage("Sorry, a mistake in form");
                },

                /*  parse the HTML returned by EE to see if they forgot to enter an email address or a message.
                    If so, the HTML will contain a specific error string we can match, and then we can display our own message */
                success: function(html, textStatus, jqXHR)
                {
                    if (html.match(/<title>Error<\/title>/))
                    {
                        var error = $(html).find('ul li:first').text();
                        if (error == "A valid sender email is required")
                        {
                            displayAjaxMessage("Vennligst oppgi en gyldig mailadresse");
                        }
                        else if (error == "Email Message is Required")
                        {
                            displayAjaxMessage("Legg inn en melding");
                        }
                    }
                    else
                    {
                        displayAjaxMessage("Takk for at du kontakter oss");
                    }
                }

            });
        });
    });


texts: Unformatted Textarea with Very Basic Text Styling

texts:
What's the best way to have an unformatted textarea field (meaning no
 or
 tags), but still allow the client to make text bold, italic, or add a link?

I often have to put content into a specific element (
, for example), so it can't be wrapped in its own
 tags. And often for styling purposes the content can't have line breaks. But the content can still have bold or italic text or contain a link. Example:

  This is an example of some summary text. Text can be bold, or it can be emphasized, and it can even contain a link because these are all inline changes that don't affect layout.

Is there any client-friendly way (read: no html tags) to accomplish this?


texts: Using Stash to limit repeating events output by Solspace Calendar

texts:
While using Solspace Calendar I'm trying to limit recurrent events to only the next occurrence. I found a great tip on how to do it with PHP here:
Solspace Calendar: Only show next occurrence of recurring event in list of recurring and non-recurring events

Here's a trimmed down version of what I'm currently trying:

{embed="_layouts/index"}
{exp:calendar:cal date_range_start="today" show_months="4" pad_short_weeks="n"}
      {exp:stash:append_list name="events-list" parse_tags="yes"}
        {stash:item_entry_id}{entry_id}{/stash:item_entry_id}
      {/exp:stash:append_list}
    {/exp:calendar:cal}

{exp:stash:get_list name="events-list"}
  {exp:calendar:cal event_id="{item_entry_id}" event_limit="1"}
    {exp:stash:set_list name="events-show"}
      {stash:the_title}{title}{/stash:the_title}
    {/exp:stash:set_list}
  {/exp:calendar:cal}
{/exp:stash:get_list}

{exp:stash:set name="content"}
  {exp:stash:get_list name="events-show"}
    <h4>{the_title}</h4>
  {/exp:stash:get_list}
{/exp:stash:set}

Content is then pulled into my template.

I'm given no output but even if it did my logic is clearly off. Hitting the database this much is really bad.

Any suggestions?


texts:
I am trying to exclude entries that either have no value or a value of "0" in a field, but am running into problems with the 'search:' parameter.

search:product_inventory="not IS_EMPTY"

works and excludes all entries that have no value in that field.

As I also want to exclude fields with the value of zero, I changed it to:

search:product_inventory="not IS_EMPTY|0"

This threw this error:

Error Number: 1054

Unknown column 'wd.field_id_8NOT' in 'where clause'

SELECT DISTINCT(t.entry_id) FROM exp_channel_titles AS t LEFT JOIN exp_channels ON t.channel_id = exp_channels.channel_id LEFT JOIN exp_channel_data AS wd ON wd.entry_id = t.entry_id LEFT JOIN exp_members AS m ON m.member_id = t.author_id INNER JOIN exp_category_posts ON t.entry_id = exp_category_posts.entry_id INNER JOIN exp_categories ON exp_category_posts.cat_id = exp_categories.cat_id WHERE t.entry_id !='' AND t.site_id IN ('1') AND t.entry_date < 1358591770 AND (t.expiration_date = 0 OR t.expiration_date > 1358591770) AND t.channel_id = '2' AND exp_categories.cat_id = '68' AND t.status = 'open' AND ( (wd.site_id=1 AND wd.field_id_8!="") AND (wd.site_id=1 AND wd.field_id_8NOT LIKE "%0%") )

Filename: modules/channel/mod.channel.php

Line Number: 2660

Using:

search:product_inventory="not 0|IS_EMPTY"

throws the same error.

I then tried:

search:product_inventory="= not 0"

which successfully excluded the entries with a '0' in that field.

I changed this to:

search:product_inventory="= not 0|IS_EMPTY"

but this time the 'IS_EMPTY' is being completely ignored and all entries that have no value in that field are still returned.

How can I successfully exclude entries that have no value or a value of '0' in that field?

I am running EE v.2.5.3.


texts:
This works fine but I want to “limit” the number of times the snippet shows up at the top of each entry, I only want it to show up on the top (one time in category “7”, no mater haw many entries.

Any suggestions?

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

{category_name}

{/exp:channel:categories}

{exp:channel:entries channel="event_calendar" dynamic="no"}

{if category_id == "7"} {snippet-rodeo-intro}{/if}

{event_name}

{event_description}

{/exp:channel:entries}


texts: freeform sending emails to control panel but not to my inbox

texts: I am using freeform as a contact form, i have never had any problems with it before, when i submit an email from the developed form it returns as a submission in my freeform control panel, although the contact form submission is not reaching my inbox. Anyone any ideas why this is?


texts: Assets2 borked after removing index.php (official Ellislab method)

texts:
Using Assets 2.0.5 on EE2.5.5

When I remove index.php using Ellislab's official method Assets simply stops working.
It's hard to explain without screenshots, but on existing entries all thumbs are gone and when you click add or remove file in an entry form you simply get a blank screen.
More specifically what especially seems to trigger it, is leaving "Name of your site's index page" blank, the htaccess file doesn't seem to be the issue. More specific if I make Name of your site's index page blank, the behaviour happens, if I put index.php back it's working fine, even with the htaccess file.

Any suggestions?


texts: Is this complex category filtering possible in Low Search?

texts:
I have a collection/channel of products, where each product belongs to multiple categories. I have two category groups: product and collection. Example product categories include 'shirts' and 'hats'. Example collection categories include 'blue' and 'on sale'. collection categories can be thought of as children of product categories, though in the EE backend, their category groups are siblings.

I have a form that lets you input a keyword to search by, and then a tree of the product and collection categories.

I have a pseudo-query of what I need to accomplish:

SELECT
  products
WHERE
  keyword = 'foo'
AND
(
  ( product_cat = 'shirt' AND ( collection_cat = 'blue' OR collection_cat = 'on sale' ) )
  OR
  ( product_cat = 'hat' AND ( collection_cat = 'blue' ) )
)

I know you can search through multiple categories by sending an array of category IDs, but in this case I need to have a parent-child category relationship.

Is this possible?


texts: Low Search - How to search fields with Date fieldtypes

texts:
I would just like to know how Date fields are searched.

In order to do this, I want to know in what format should I search.

Do I search datetime as a timestamp? as a string?


texts:
I have created a user dashboard and am trying to get the last loggin date to show on the homepage.

I tried {last_activity} but got no output. Is there a variable I can use for this? The profile is extended using zoo visitor.


texts:
I am using EE2.9.2 with Stash and CE Cache. While trying to create a clean URL structure, ie. raising the appropriate 404s where necessary, I ran into challenges I'm struggling to solve.

I have a Books section (among other resources) where I've set up categories (e.g. Arts, Children, etc.). To keep this section 404-sane I need to check if the URL has the proper "books" in it and if the category exists.

After a lot of try and error, here's what I ended up doing:

1) Test for proper section

This is the template /resources/index.html

"/resources/books" should pass, "/resources/bookz" should not.

{if segment_2 != ""}
    {if "movies|books|music" *= segment_2}
        {!-- all is well (there is no "does not contain" directive in EE) --}
    {if:else}
        {!--redirect="404"--}

        {!-- TEMPORARY WORKAROUND--}
        {exp:channel:entries
            channel="resources"
            url_title="does_not_exist"
            disable="categories|category_fields|custom_fields|member_data|pagination"}
                {if no_results } {redirect="404"} {/if}
        {/exp:channel:entries}
    {/if}
{/if}

I'd love to use the commented line instead of the workaround, but if I enable CE Cache and enter a wrong URL nothing happens and the request eventually times out.

2) Test for proper category

This is the template I embed if {segment_3} is not empty.

"/resources/books/arts" should pass, but "/resources/books/artz" should not.

{if {exp:stash:is_empty name="current_category_name"}}
    <?php
        $this->EE->output->set_header("HTTP/1.0 404 Not Found");
    ?>
    {!--redirect="404"--}
    {redirect="error/error-404"}
{/if}

Again I'd love to use the commented line and not use PHP, but if I don't CE Cache caches the wrong URL.

I'm frustrated that something so elementary and necessary seems to hard.

Any advice on how to do this better or why the above doesn't work with the commented line instead of the workarounds is very much appreciated.


texts: How to build a taxonomy filter for drilling down search results?

texts:
How would I build a taxonomy filter like this in EE?

http://webcodesigner.com/?post_type=listing

I've already purchased Low Search, are there any other addons necessary for this kind of thing?

Thanks!


texts: User registeration form valid registration code error

texts:
I've tried the Solspace User module registration form and the standard EE registration form and I'm get the same error on both submissions:

The form you submitted contained the following errors:
You must provide a valid registration code to complete your registration. (note: Registration codes, like passwords, are case-sensitive.)

I have no reference to registration codes or even a captcha in my registration forms. In my member preferences I have allow member registrations set to yes, require terms of service is no, enable membership captcha is no.

I'm not sure what is wrong and what registration code EE is looking for?

Any help would be very much appreciated.

Julie


texts: Multiple File Uploads on Freeform not working

texts:
I had the following form working until I added file upload:

Submission Form

{exp:freeform:form
    collection="remnants"
    required="name|article_title|article_tagline|article"
    return="submit/submitted"
    file_upload="blog_user"
}

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

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

Article Title: <input type="text" name="article_title" />

Article Tagline: <input type="text" name="article_tagline" />

Article:
<textarea name="article"></textarea>

Attach a File: <input type="file" name="article_image" />

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

{/exp:freeform:form}

I keep getting the following error:
Article Image: The upload path does not appear to be valid.

I've allowed for up to 10 images but only one input is showing. I'm wondering if I didn't probably create the input field?


texts: Is it possible to set "global" parameters for a plugin with multiple functions?

texts:
I've written a plugin that connects to another service to then display its data within my EE site.

Certain parameters are necessary for each tag - primarily things like a key, username. Is there a way to declare these once rather than within each function's parameter array? I'm currently doing that, which works, but seems… like a lot of repetition.


texts: Outputting next post image within {exp:channel:next_entry}

texts:
I'm trying to output an image of the next post within my template like so...

{exp:channel:next_entry}
   <img src="{testimony_story_background}"/>
{/exp:channel:next_entry}

It doesn't work. What is the correct way to do this using a custom field that has been set up? I have tried using the query module but that that only seems to work outputting simple text fields. Here is an example...

{exp:query sql="SELECT field_id_16 FROM exp_channel_data WHERE entry_id = '{entry_id}'"}
   {field_id_16}
{/exp:query}

Any help would be wonderful!


texts: Getting CKEditor in Wyvern to not use inline styles

texts:
I've seen this post:
Remove inline styles from WYGWAM -  but it's for WYGWAM. Has anyone successfully changed CKEditor's behavior, from Wyvern, to output this:

Instead of this:

It's not clear which file I should edit.


texts: How to use page transitions with Expression Engine

texts:
I'm trying to use page transitions using smoothstate.js (http://miguel-perez.github.io/smoothState.js/).

What this appears to do is to load the destination of a link in the background when the link is hovered rather than clicked, meaning when it is actually clicked the content is already loaded and can be presented with a smooth transition.

The challenge I'm finding is that I often use an {if segment_3 != ''} type conditional to use one template to show both a listings AND a detail page and avoid having to create an extra template and add an extra segment to my URL. Something like this...

{if segment_3 == ''}

    Listings page to go here...

{if:elseif segment_3 != ''}

    Detail page to go here...

{/if}

This seems to cause problems and not load the content on these detail pages correctly. I can only assume this is because when the content is loaded, the URL hasn't changed yet, meaning the EE conditional still comes out as false rather than positive.

Any ideas on how to get around this would be massively helpful and appreciated.

Thanks in advance,

Tom


texts:
Trying to build an archive with Stash & Low Yearly Archive, but not getting it to work as I need. The result that I get with the code below is:

 - 2013
 - 2012

Everything within the nested list is not getting set it seems. Can you help spot what I am missing?

Setting the list with:

      {exp:stash:set_list name="yearly-archive" parse_tags="yes" parse_depth="2"}
            {exp:low_yearly_archives channel="news" start_month="1" status="not closed" sort="desc" dynamic="off"}
                {stash:year}{year}{/stash:year}
                {stash:year_count}{year_count}{/stash:year_count}
                {stash:total_years}{total_years}{/stash:total_years}
                {exp:stash:set_list:nested name="news_months_{year}" parse_tags="yes"}
                    {months}
                        {stash:num_entries}{num_entries}{/stash:num_entries}
                        {stash:month}{month}{/stash:month}
                        {stash:month_short}{month_short}{/stash:month_short}
                        {stash:month_num}{month_num}{/stash:month_num}
                    {/months}
                {/exp:stash:set_list:nested}
            {/exp:low_yearly_archives}
        {/exp:stash:set_list}

Retrieving with:

 {exp:stash:get_list name="yearly-archive" parse_tags="yes"}
 {if year_count == '1'}
{/if}

      {year}

      {exp:stash:get_list:nested name="news_months_{year}" parse_conditionals="yes" parse_tags="yes"}

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

      {/exp:stash:get_list:nested}

 {if year_count == total_years}
{/if}
 {/exp:stash:get_list}

When adding output="yes" to the set_list & set_list:nested tags the outer tag outputs as expected:

 year|=|2013|&|year_count|=|1|&|total_years|=|2|+|year|=|2012|&|year_count|=|2|&|total_years|=|2

The inner (nested tag) outputs nothing...

Thanks for taking a gander!


texts: form: how to autofill fields based on value in relation-dropdown

texts:
I am afraid I am a bad coder, so I ask for a little help here. I went through answers, but I do not understand enough to go on.

I must make a form, one of the fields is a drop down, and before the user processes the form, the form must auto-fill in values of certain fields. I have got that working with a relationship field, but that gives a list with titles. I need one specific field.....

I tried Select2  http://devot-ee.com/add-ons/select2 as fieldtype which seems better than the relationship field, because I think I can select another field, not just the title. But the syntax of the MYSQL query confuses me. And I do not know how to do the auto-population.

thanks a lot.


texts:
Is it possible to have an .ics file to download a single event in a calendar?  right now downloading the .ics downloads the entire calendar

{exp:calendar:icalendar
event_id="{segment_3}" dynamic="on"
{/exp:calendar:icalendar}

I figured something like the above would only export the one event using the dynamic on and event id but it downloads the entire calendar


texts: Channel Form is not inserting  tags like Channel Entries does; all  tags mysteriously gone from entries

texts:
When we enter properly formatted HTML into the RTE via the CP, the
 tags are present. But when we use the {exp:channel:form ...} we lose all the
 tags but retain all other tags. We're using Textarea (Rich Text) fields because we need the RTE on our custom dashboard.

I tested the {exp:channel:entries ...} and the
 tags were properly retained.

So what could be causing this? How can we fix it? We need the channel form to output the proper tags because we have a live preview of what's in the populated textarea elements.

Update:

When using {field:my_channel_field} the
 tags are retained, but the RTE isn't created. It's just a textarea with html/text.

Update 2:

I did some digging and found that in the SQL tables there are no
 tags, meaning that they're inserted when the data is called.

For instance this is what's actually in the Database

Lorem nascetur
 Porttitor. Integer nunc. Hac ultricies velit magnis. Nunc est, tortor proin?

And this what is output when using {exp:channel:entries ...}:

Lorem nascetur

 Porttitor. Integer nunc. Hac ultricies velit magnis. Nunc est, tortor proin?

So at some point the
 tags are being injected into the document, and I want to know how can I force this so they are in the RTE when the user goes to edit them within an {exp:channel:form ...} loop?

Update 3:

I found these in /system/expressionengine/modules/rte/libraries/Rte_lib.php on lines 445 to 446

// Strip paragraph tags
$data = preg_replace("#<(/)?pre[^>]*?>#i", "<$1pre>", $data);
$data = preg_replace("#
|
]*?".">|
#i", "",  preg_replace("#<\/p>
]*?".">#i", "\n", $data));

and

if (stristr($str, '<p') !== FALSE)
{
    $str = preg_replace("#<(/)?pre[^>]*?>#i", "<$1pre>", $str);
    $str = preg_replace("#
|
]*?".">|
#i", "",  preg_replace("#<\/p>
]*?".">#i", "\n", $str));
}

in /system/expressionengine/libraries/EE_Typography.php.

Commenting them out didn't seem to solve the problem

Update 4:

I tested my theory more completely by simply doing a {exp:channel:entries ...} and {exp:channel:form ..} on a blank template with nothing other than a field.

When output, the channel:form actually outputs HTML tags (
 from update 2 above) that never get rendered, and the channel:entries outputs the correct HTML and does get rendered. See picture:


texts: Advanced Settings don't get saved (Wygwam)

texts:
I'm using EE 2.8.0 and updated to Wygwam 3.3. I'm adding some advanced settings in the Wygwam configuration (eg.g for the Basic set) in the CP - when saving and going back to the Wygwam configuration page, all the advanced settings are lost.

Anyone else experiencing the same problem?


texts:
Is it possible to use particular template group based on a category of landing page? For an example product categorized as furniture will load template from furniture template group (index) instead of user will go to Pages -> Templates and choose it from a drop down.

Thanks


texts: Native relationship field and zoo visitor

texts:
I have channel that is called jobs which contains information about job opportunities, within that channel i would like to use the native relationship field for contacting a certain person who is a zoo_visitor member.
In the cp i can asign a person using the relationship field. Only when tempting i get no results.

I’m using this code:
I tried an other, a non zoo_visitor channel, which did work. What am i doing wrong?

{exp:channel:entries channel="jobs" entry_id="89"  status="not closed"}

{job}

 {contact_person}
     {contact_person:member_firstname}
{/contact_person}
 {/exp:channel:entries}

Thanks for your time
Dave


texts: Can't login to control panel (redirects back to login)

texts:
I'm having the same issue described here. I've tried the working solution but it hasn't worked for. In config.local.php I have $env_config['cookie_domain']   = 'buckley.dev'; and I am still unable to login. This site is using the focuslab multi environment config set up in case that is relevant.

This was working last night when I installed EE 2.8.1 but when I tried to login this morning it won't let me. I am also unable to log in to the staging site.

I have also tried logging in with Firefox unsuccessfully.

In config.master.php I have the following

//$env_config['cookie_domain'] = "";
$env_config['cookie_path'] = "";
$env_config['cookie_prefix'] = "bulkley";
$env_config['admin_session_type'] = "c";
$env_config['user_session_type'] = "c";
$env_config['require_ip_for_login'] = "n";
$env_config['require_ip_for_posting'] = "n";
$env_config['secure_forms'] = "n";

Also I am able to login via a front end form so I know my user/password are correct. I am however unable to access the CP.

Interestingly if I login via the CP (and get redirected) and then I view the front end of the site when previously logged out, I am now logged in. So the issue isn't that I'm not logging in but that I can't access the control panel when logged in.


texts: Low Search - Is it possible to do fulltext search on a channel entries comments?

texts:
Using Low Search, is it possible to do fulltext search on a channel entries comments?

If so, then how? If not, are there any possible alternative actions one can do to do so?


texts: HOW TO SERVE CERTAIN ADS TO MOBILE DEVICES

texts:
WE ARE A RESPONSIVE DESIGN  I template for all sizes.  Yet we are switching up out ads, and want to serve one set of ads for a desktop and laptop and 1 type for mobile devices.  How do i go about doing this?

Thank you


texts: how to get entries based on day - session timing - entries per session entry

texts:
How to get and output entries like this ( example event Agenda )

day01
—session time-span ( loops session timespan entries )
——session span entrie(s) ( one or multiple )
——session span entries ( one or multiple )
——session span entries ( one or multiple )
—/session time-span
—session time-span
——session span entries ( one or multiple )
—/session time-span
/day01

-day02 ........

If anyone has input on how to do something like this
( still having the template readable :) )

I would be very thankful.

edit : my template ended up looking like this .. added storing a lastday variable to get days in the loop .. ( perhaps it can be done even better - but it works like a charm thanks for the input guys )

  Blockquote
  {!--keep track of previous day in order to check if we have a new day--}
      {exp:string:set name="lastDay"}just starting{/exp:string:set}

**strong text**
    {exp:channel:entries channel="session_timeblocks" show_expired="yes" show_future_entries="yes" dynamic="no" limit="999" orderby="date" sort="asc"}

    {!-- store start day and time of current entry for check later on --}
    {exp:string:set name="currentDay"}{entry_date format="%d"}{/exp:string:set}

    {exp:string:output random}
    {if currentDay != lastDay}
        {if lastDay != "just starting"}
            -2-
 {!-- close open session and day --}
        {/if}

-1-

{entry_date format="%D %j/%n"}

    {/if}
    {/exp:string:output}

                {entry_date format="%H:%i"} - {expiration_date format="%H:%i"}

                {exp:playa:children field="{cf_session_timeblock}"}

{title}

                        {if cf_session_summary}

Summary

{cf_session_summary}

                        {/if}

                {/exp:playa:children}

    {!--store current entries start day and time--}
    {exp:string:set name="lastDay" random}{entry_date format="%d"}{/exp:string:set}
    {if count == total_results}2
{/if}

    {/exp:channel:entries}

  Blockquote


texts: Difference between quoted and unquoted comparison syntax

texts:
In general, when comparing variables in templates, I use unquoted variable names. e.g.,

{if segment_3 == category_url_title}

If comparing to an actual value (not a variable), I quote the value. e.g.,

{if count == "1"}

But in some cases (within a Matrix or Playa field, for instance), the comparisons only work if you quote the parsed variable. e.g.,

{if "{row_count}" == "{total_rows}"}

So my questions is - why is this? Does it have to do with strings containing spaces vs those that are space-free (like segment variables, integers, and booleans)? Often it just seems random, which I don't like.

I've also read that there is a performance hit when comparing using quoted vs unquoted syntax. Any truth to this?


texts:
We're hosing a site built with EE v2.10.1. As part of our hosting agreement I’ve had to run a vulnerability scan.

The scan found 23 CRLF injection/HTTP response splitting vulnerabilities.

Is this likely to be an EE issue or as a result of the way the site is coded?

I have the report that I could send to a EE support contact if it helps.

Thanks

Wayne.

Here is an example of the error in the report.

`Affected items

/

Details
Path Fragment input was set to SomeCustomInjectedHeader: injected_by_wvs
Injected header found:
SomeCustomInjectedHeader: injected_by_wvs

GET
/index.php/template-group/template-name/some-title-here%0dSomeCustomInj
ectedHeader:%20injected_by_wvs-2013 HTTP/1.1
Referer: http://domain.com
Cookie: exp_last_visit=1127726290; exp_last_activity=1443086299;
exp_tracker=%7B%220%22%3A%22font-awesome.css%22%2C%221%22%3A%22corporate%2Fcorporate-inf
ormation%2Fcharity%22%2C%222%22%3A%22corporate%2Fcorporate-news%2Ftite-here%22%2C%223%22%3A%22corporate%2Fnews%22%2C%224%22%3A%22
good2freeze%2Fdetail%22%2C%22token%22%3A%2200636beb8451791776252ab2ef30c264%22%7D;
exp_csrf_token=13e5fd3fee3d9d10383fc125f3cb6ef2197cc286; cb-enabled=accepted
Host: www.domain.com
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.21 (KHTML, like Gecko)
Chrome/41.0.2228.0 Safari/537.21
Accept: /`

The scan was run on a developed site using Acunetix Vulnerability Scanner


texts: Overriding login_authenticate_start: how to fail with specific message?

texts:
I have an extension that uses a 3rd party authentication system for EE3. It's working great overriding login_authenticate_start but I'm stuck on some logic for when the 3rd party auth fails: how to fail gracefully?

I know in this function I can exit() to stop the login, but it's not pretty. If you just exit() you get a white page.

How do I reject the login gracefully (i.e. back to the login page) and provide my own text for the explanation text? (much like when you fail a login normally as depicted below)


texts: Is it possible to modify the output of pagination urls?

texts:
I'm currently using the following code for pagination:

{pagination_links}
    {page}
        {pagination_page_number}
    {/page}
{/pagination_links}

Because of an addon I'm using, I need to modify the output of the {pagination_url} variable.

{pagination_url} outputs http://sitename.com/blog/P20, and I need to add a segment before blog.

I attempted to use the Find and Replace Plus addon, but due to the parse order, I'm not able to use the {site_url} variable to find/replace.

Is there an easier way to accomplish this?


texts: Is it possible to show the 'Login as member' link to non super admin groups?

texts: Does anyone know if it's possible to show the 'Login as member' link, (available to super admins  on Member Profile view, under 'Member Administration') to other member groups??


texts: Profile:Edit New Member Password Saving Issue

texts:
When using Profile:Edit and CartThrob together we are saving member data as part of checkout.

If we look directly at the DB the password is being saved but there is nothing in the salt column of the exp_members table. If you try to login on the website EE throws a The existing username and/or password you submitted are not valid error.

If you then go to member management of the CP and enter the password just like it was during checkout, a value is added to the salt column of the DB and you can login on the website without issue.

Does anyone have suggestions about how to get Profile:Edit/CT to salt the password?

Thanks for your time.


texts: checkout return param doesn't get honoured on submit

texts:
Trying to submit an order, though I can't seem to get it to forward to the return path.

Here's my tag:

{exp:store:checkout require="name|address1|state|country|postcode|order_email" return="/checkout/order-complete/ORDER_HASH" form_class="form"}

I've seen this post, and it behaves exactly the same, though I do have a name attribute set & that doesn't make a difference :(

Order Confirmation page

Tried both a button element & an input (like the docs use) no difference...

<button class="cta" type="submit" name="submit">Pay Now</button>

Seems like my post request is 302ing...

Seems like the params are set twice in my post data? Maybe it's being overwritten?

I've tried this with both relative & absolute paths in the return param on the checkout tag. No difference. The order gets submitted, cart gets emptied and it reloads the page /checkout/review-and-pay.


texts: Channel entries not automatically filtered by language when using Transcribe

texts:
Hello fellow ExpressionEngineers,

I'm in the process of translating the website of one of my companies. It was made in french and I'm doing the english language translation.
For that job, it seemed like the rather new EEHarbor's Transcribe module was fit for the job. I think I've got a pretty good understanding of how it should work. The problem is that I can't make it show the proper channel entries regarding the current language. It will always show all entries for the channel no matter if they are in french or in english.

To give you a little background, EE install is 2.5.5, and I'm not using a lot of modules/plugins : NSM Better Meta, NSM Morphine, NSM Live look, NSM Bootstrap, Wyvern, Low Seg2Cat, Detour, Entry Lottoree, Minimee. Nothing too fancy and all up to date.

Following is an example of one of my channel tags :

{exp:channel:entries channel="features_at_glance" dynamic="no" order_by="date" sort="asc" limit="4" {global:param_disable_default}}

{title}

{feature_at_glance_content}

{/exp:channel:entries}

{global:param_disable_default} comes from NSM Bootstrap and is replaced by disable="categories|pagination|member_data".

I have tried removing every params from the channel without any success. It's still showing every entries for the channel even if you are supposed to view the english version of the website.

Transcribe is configured like so:

Settings

Default language: French
Add language prefix to URL: Defined per language
Transcribe enabled: yes

Languages

French has "add language prefix to URL" set to "no" while english has it set to "yes" (French being the default language, I obviously don't want it prefixed for SEO reasons).

Also, please note that I have also var dumped some var like language_id in Transcribe source code to verify that the proper language was being used and I was able to confirm it was at least correctly detected.

Any ideas what I'm doing wrong?

Thanks!


texts:
Really dumb question but maybe even dumber issue with Cart Throb.

When you receive this error.

Error

Aromatic Binder is currently out of stock.

Where in the heck and how the heck do you add more inventory when there isn't any specific inventory management in 3.0


texts: Low Events: How can I compare formatted start_date and end_date in conditionals?

texts:
I've just started using Low Events after realizing the hard way why I need it. I'm attempting to format a nice string when the range happens within the same month; instead of August 14, 2013 - August 16, 2013, I'd like to display August 14-16, 2013.

I've attempted to compare formatted output of the month and year only, like this...

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

...yet instead of the expected output EE just complains that it choked on the conditional:

 Parse error: syntax error, unexpected T_STRING in /var/www/vhosts/foo.com/httpdocs/system/expressionengine/libraries/Functions.php(683) : eval()'d code on line 56

Using parse="inward" had no effect, and I've isolated that first {if conditional as the problem. Is there any way to achieve the formatting I'd like without relying on an embedded template?

I also tried swapping the single and double quotes as Robson suggested, but that had no effect.

This is EE 2.5.5 and Low Events 1.1.4, and swapping {exp:channel:entries} for {exp:low_events:entries} makes no difference.

Here's the entire (simplified) template for context:

 {exp:channel:entries channel="events" limit="1" url_title="{segment_2}"}
 {embed="parts/.header" page_title="{title}"}

{if '{event_dates:all_day}' == 'y'}
            {if '{event_dates:one_day}' == 'y'}
                {event_dates:start_date format="%F %j, %Y"}
            {if:else}
                {if '{event_date:start_date format="%F%Y"}' == '{event_date:end_date format="%F%Y"}'}
                    {event_dates:start_date format="%F %j"}-{event_dates:end_date format="%j, %Y"}
                {if:else}
                    {event_dates:start_date format="%F %j, %Y"} - {event_dates:end_date format="%F %j, %Y"}
                {/if}
            {/if}
        {if:elseif '{event_dates:one_day}' == 'y'}
            {event_dates:start_date format="%F %j, %Y"} - {event_dates:start_time format="%g:%i%a"}-{event_dates:end_time format="%g:%i%a"}
        {if:else}
            {event_dates:start_date format="%F %d, %Y"} - {event_dates:start_time format="%g:%i%a"} to {event_dates:end_date format="%F %d, %Y"} - {event_dates:end_time format="%g:%i%a"}
        {/if}
        {if event_location}

{event_location}
        {/if}

    {event_description}

    {if event_rsvp_link}

RSVP Now &raquo;

    {/if}

 {if no_results}{redirect="404"}{/if}{/exp:channel:entries}
 {embed="parts/.footer"}


texts: How to format currency in the templates?

texts: Is there a native way to do this? Or must I use an add-on like: http://devot-ee.com/add-ons/price-format?


texts:
We are using CE Cache's static caching on our site because of some performance issues on our server. We are also using Freeform to place a newsletter sign up form on just about every page. Obviously this caused problems as Freeform uses the XID parameter for security purposes and when the page (and thus form) are cached it fails that security check.

We were wondering about possible options to get around this. The obvious option is to not cache the pages in that way, but the page load would behave strangely as some parts would be cached and load quickly, while other parts would take a long time to load. Some other options we considered: have that form submit to an in-between page that then does the actual Freeform submission (this seems to messy and too much overhead), have the form load in an iframe on the page (this would work except for the above issue that the whole page would load and leave that empty iframe until it loads), or move servers (ugh).

Is there any way to disable that security check for Freeform? Or is there a way around this issue? I was surprised to see that a google search on the topic didn't bring up any results, I just wanted to make sure I covered all the options before picking one. Any insights on this issue from others that may have experienced something similar?


texts: Help using core Template Route and Template Route Manager w/ pagination

texts:
I'm tying to figure out how to use the new core Template Route feature.

I have the following templates:

gear.group/brand.html
gear.group/brand_entry.html

I have the following urls:

/gear/brand/orange/
/gear/brand/orange/P20
/gear/brand/orange/my_entry_title

Note: segment_3 or orange in this case could be any category and should be considered dynamic

I tried to have one template for the first two urls above and another one for the entry itself. I tried routes in the Template Route Manager like you see in the image below though, without success:

[full image]

Or I could use one template instead of two and a conditional of some sort though, I'm not sure how at this point.


texts: Security test fails on freemember:update_profile form

texts:
EDIT

This question is related to compliance to a specific security test, the problem has nothing to do with Freemember extension.
For the record : The solution found to pass the test was to simply str_replace the posted data to remove anything between < > before it's sent to the database.

Security test flags : Cross-Site Scripting: Persistent on freemember:update_profile form

The test machine manages to insert javascript code in the form fields

Any ideas ?


texts: Are {layout:set} variables available to all extended layouts?

texts:
I'm trying to make sure I understand the scope of {layout:set} variables, compared to how embeds work.

Traditionally, variables set with an {embed="template_group/template variable="foo"} are only accessible one level deep, directly within the embedded template.

Now let's talk layouts.

We have at minimum 2 layout templates: layouts/global & layouts/master.

For the sake of this questions, let's say I have a blog/index template that extends layouts/master and layouts/master extends layouts/global

blog/index:

 {layout="layouts/master"}

 {layout:set name="title"}Blog Title | {site_name}{/layout:set}

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

        All the blog content here...

    {/exp:channel:entries}

layouts/master:

{layout="layouts/global"}

{embed="embeds/masthead"}

{layout:contents}

{embed="embeds/footer"}

layouts/global:

<html>
    <head>
        <title>{layout:title}</title>
    </head>

     <body>

         {layout:contents}

    </body>
</html>

The question I'd like clarity on (that my tests confirm) is this: Will the the {layout:title} variable be available within the layouts/global template regardless of where it's set, or do I have to redefine it within the layouts/master template, the way that you have to do if you were nesting embeds and passing variables?


texts: "The page you requested was not found" for member templates

texts:
After update to 2.9.2 I have "The page you requested was not found" for all member pages(registration, profile and so on).
Can't understand what's wrong. I've checked .htaccess rules - ok, templates for member pages also exists. So how to fix this?

Best regards, Aleksey.


texts: It is possible to parse an ExpressionEngine snippet inside a page via Ajax?

texts:
It is possible to parse an ExpressionEngine snippet inside a page via Ajax ?

like:

{exp:channel:entries channel="news" limit="10"}
    <h2>{title}</h2>
    {body}
{/exp:channel:entries}

The EE code would be processed and returned as html or not??


texts:
I have the latest Assets on EE 2.5.5 and I'm not seeing the files in the File Manager. I have one upload destination called Uploads and in that, a number of subdirectories and files. When I update the index, it takes some time so it looks like it's found files, but the File Manager shows neither directories nor images.

All file permissions are fine and it appears to upload OK, I just can't browse and select anything. Any suggestions?


texts:
I'm trying to get a folder of SVG images (12,000 clip art images - don't ask) to show up in the File Manager.  If the folder it set to any file, they obviously appear, but when it's set to "image only" the SVGs don't show.

I've tried the obvious thing of adding 'svg' =>'image/svg' to config/mimes.php this means that they are able to be uploaded.  However this still doesn't mean that EE treats them as images.   Is there somewhere else I have to add svg to get EE to treat them as images?


texts: Looking for print_r or var_dump equiv for channel:entries row

texts:
I'm new to expressionengine, and am looking to understand the channel:entries loop better. In the interest of that, I've been looking for something that allows me to print_r or var_dump a channel:entries structure as a whole, and a given row of that structure, like:

// Note that this is certainly not correct ee syntax, but rather a plain php representation of what I'm trying to do:
$results = {channel:entries};
print_r($results); // Show members of the channel:entries tag.

foreach ($results as $row) {
    print_r($row); // Show members of a single row of the result set.
}

Clarification: in no way am I attempting to output any of this information to a page -- this is merely an attempt to better understand the data contained in a row, so I can make better use of this project I've inherited.


texts: can you set permissions with HooKan Permissions Manager, or does it just display them? I see this plugin is for setting permissions and I didn't know if I needed to get both, http://devot-ee.com/add-ons/entry-permissions


texts: How can I setup a table with ingredients in alphabetical order with a letter label and make it easy for client to update?

texts: Please refer to the table at http://www.tomsofmaine.com/research/ingredients for reference. I currently have a Matrix field setup to add new ingredients and generate a table and it works beautifully. Now the client wants a letter label separating each alphabetical section. I can't think of an easy way to do this so it's easy to update for the client. I don't think I can use Matrix anymore, and the only other option I can think of is to build the entire form in Wygwam, but that would make it very tough for the client to update. Any ideas?


texts: Control panel dropdown submenus not expanding?

texts:
I can't figure out why my dropdown submenu's aren't expanding? No JS errors either?

I am using Zoo Flexible admin but when I hide the custom menu or reset to default the issue still persists? Any ideas?

EE 2.5.3
Zoo Flexible Admin 1.62

Third Party folders are outside of system & themes folders