texts: Double up of Assets File Upload preferences within Assets addon

texts:
We've just updated to the latest version of Assets v2.0.4 and have noticed that there's two of every upload preference displaying in the side column. We're using the Focus Lab Config for this site and have the preferences set in the config.master.php similar to the following:

    1 => array(
        'name'        => 'Files - Documents',
        'server_path' => $media_path . '/files/documents/',
        'url'         => $media_url  . '/files/documents/'
    )

There looks to be two possible problems, the first being that changing something in the config, doesn't reflect the change in Assets, and the problem of the subject matter whereby we see two of each File Upload preference. The above example would have entries in the side column for:

Files - Documents
documents

The proper name, and the name of the directory.

Any assistance would be greatly appreciated.

UPDATE:

Thought I would update showing what's going on in my instance. First of all here's my upload preferences so you can see they're pretty normal beasts.

Now this is the output from Assets (v2.0.5) at time of capture.

Note that I have an 'All Media' upload preference so that it can be set within WYGWAM as it only allows for a single upload location. The dated folders at the top of the Asset upload point listing are actually subfolders of the Files: Board Documents pref.


texts: Any way/plugin to automatically change a members group based on an action?

texts:
I'm wondering if there is a way to change a users/registered members group based on them performing an action?

At the moment members register into a default group. If that member submits a specific entry via a channel form I would like to change their member group. Is there a way to automate this? Plugin or otherwise?


texts: Distinguishing duplicate channel titles in a PlayA field when adding a record

texts:
For a field I am using PlayA and for the Field Options have selected two Channels.

The problem I have is that some of the titles within the two channels are the same and therefore when adding a new EE record it is impossible to tell from which of the two channels a particular title is from. Is there a solution to this?

I am guessing that as I am ordering by Entry Title, the first entry will be from the first channel and the second entry will be from the second, but I do not know if I can be certain of this.

The obvious solution of changing the titles in one of the channels is not an option for this particular web site.


texts: I can't find the EE2 user guide on the web. Several google snippets have "Expression Engine 2 user guide" supposedly on a page on the Ellislabs site but when I click them I don't see the link.


texts: EE css template vs. a standard css file?

texts: Is there an advantage/disadvantage to using a EE css template vs a standard css file? I tend to use a css directory that is separate from EE templates. I like using a css preprocessor, and I prefer not to sync my css files through the Template Manger. I am wondering if I am missing some advantage to not using a ExpressionEngine css template?


texts: Having trouble uploading PDFs to a channel

texts:
This is an EE1 site. Whenever I try to upload a PDF I get an error message saying that there was a problem uploading this file. The permissions on the server are still set to 777 and the XSS filtering is off. I have no idea what else it could be.

Here is the exact error message:

  PDF – There was a problem uploading ‘TEST.pdf’


texts: Best way to add a note/comment to the CP Edit Entry interface?

texts:
I'd like to tell my user who is adding an entry via the CP to do something. This doesn't have to do with any field, it's simply an instruction on what to do next.

Specifically, I hide the "Photo" field because these users can't be trusted to upload a professional photo; instead they are supposed to contact an admin to add their photo.

This instruction can be inside the Edit Entry interface somewhere, or even on the next page, after Submit has been clicked.

Any recommended way to do this?


texts:
TLDR, recently updated from EE2x to EE5x
We have some code to easily duplicate entries by using the EE API.
The short version of the code:
ee()->load->library('api');
ee()->legacy_api->instantiate('channel_entries');
ee()->legacy_api->instantiate('channel_fields');

ee()->api_channel_fields->setup_entry_settings($channel_id, $entry_data);

$success = ee()->api_channel_entries->save_entry($entry_data, $channel_id);

if(!$success)
    {
         return show_error(implode('<br />', $this->api_channel_entries->errors))
    }

Which works perfectly fine when a SuperAdmin runs this  piece of code via button. No error, nothing but success!
However, all other users, not belonging to EE's superAdmin member group that attempt to run this code trigger an error that's a bit difficult to decipher.

{"messageType":"error"
"message":"No such property: 'status_model' on EllisLab\ExpressionEngine\Legacy\Facade"
"trace":["#0 ee/EllisLab/ExpressionEngine/Legacy/Facade.php(30): EllisLab\ExpressionEngine\Legacy\Facade->get('status_model')"
"#1 ee/legacy/libraries/api/Api_channel_entries.php(823): EllisLab\ExpressionEngine\Legacy\Facade->__get('status_model')"
"#2 ee/legacy/libraries/api/Api_channel_entries.php(111): Api_channel_entries->_check_for_data_errors(Array)"
"#3 ee/legacy/libraries/Functions.php(627) : eval()'d code(195): Api_channel_entries->save_entry(Array'16')"
"#4 ee/legacy/libraries/Functions.php(627): eval()"
"#5 ee/legacy/libraries/Template.php(2018): EE_Functions->evaluate('{!-- ra:0000000...')"
"#6 ee/legacy/libraries/Template.php(591): EE_Template->parse_template_php('{!-- ra:0000000...')"
"#7 ee/legacy/libraries/Template.php(236): EE_Template->parse('{!-- ra:0000000...',false,1,false)"
"#8 ee/legacy/libraries/Template.php(167): EE_Template->fetch_and_parse('',Array,false)"
"#9 ee/legacy/libraries/Core.php(661): EE_Template->run_template_engine('','')"
"#10 ee/legacy/controllers/ee.php(63): EE_Core->generate_page()"
"#11 [internal function]: EE->index()"
"#12 ee/EllisLab/ExpressionEngine/Core/Core.php(241): call_user_func_array(Array,Array)"
"#13 ee/EllisLab/ExpressionEngine/Core/Core.php(110): EllisLab\ExpressionEngine\Core\Core->runController(Array)"
"#14 ee/EllisLab/ExpressionEngine/Boot/boot.php(151): EllisLab\ExpressionEngine\Core\Core->run(Object(EllisLab\ExpressionEngine\Core\Request))"
"#15 index.php(174): require_once('...')"
"#16 {main}"]}

I'm open to any ideas, google has been quite the let-down in terms of any EE5 support.


texts:
This is probably a newbie question...

I have a blog of fifty entries, and I want to be able to have people click through them using previous/next links, but I also want people to have random access to all of them in a sidebar menu.

I have a standard pagination tag pair:

 {paginate}

     {if previous_page}
            Previous Page &nbsp;
        {/if}
         {if next_page}
            Next Page
        {/if}

    {/paginate}

inside a standard channel entries pair:

{exp:channel:entries channel="md" limit="1" disable="member_data" orderby="author_last" sort="asc"  paginate="top" } ...

And it works--but only because I start the series with a hard-coded link to a 'P1' pagination style link.

However, I also have a full menu of all entries in a sidebar using the channel entries tag and urls thusly:

{exp:channel:entries channel="md" orderby="author_last" sort="asc" disable="member_data" dynamic="no" }

{author_last}: {title}
...

With the result that if a person clicks on any of the entries from the sidebar menu, pagination links disappear.

Is there any way to have it both ways?

thanks


texts: URL and Routing Issues, anything other than index gives 404

texts:
Hi I am fairly new to ExpressionEngine, but I am having an issue navigating from the Index Page. When ever I click on a link to view an entry it always gives me a 404 error.

I think it might be a configuration issue related to routing, but I am unsure. The message I get is as follows

  The requested URL /~Streel/EE_Site/Shop/Test was not found on this
  server.

To my understand that structure is essentially the following:

  /~UserAccount/Website/Channel/Entry

Is that correct? Also what information do I need to supply to help debug this issue?

Edit 1: Included Index Page

Below is what I am having the issue with, this is pretty much from the EE Tutorial here

The Goal is to show all Shops and link directly to each shop

This is my test platform to see how formating works

    {exp:channel:entries channel='shop'}

{title}

{brewery_description}

      {/exp:channel:entries}

Edit 2: More examples

Whenever I navigate to a non-home page TemplateGroup or Template, I get 404; (Each Template has a Hello World content in the web page)

/~Streel/EE_Site/Locations/new -> 404 Response
/~Streel/EE_Site/Locations -> 404 Response

Edit 3: Found a way to navigate

including index.php works

/~Streel/EE_Site/index.php/TemplateGroup/TemplateName works!


texts:
I'm using the Tally add-on to display a total from a custom field I have that stores numeric values. It's working great, my only problem is that I need a conditional setup that will display 'your current total is 0' or even just '0' when the logged in user has a null or zero tally total.

When a logged in user visits my front-end template, it works perfectly if they have tally but if the tally is null or zero then it's completely blank. Does anyone know how to setup a conditional like this for Tally? I couldn't find any examples of conditionals for Tally in the documentation and I tried the code below to no avail:

{if tally:total == ""}You current total is 0.{/if}

The code above just displays every time whether or not the logged in user has a tally or not and I've tried it both with nothing in the quotes and with a zero in the quotes. I would greatly appreciate any tips or suggestions for accomplishing this, Thanks!


texts: How can I have a username shorter than 4 characters?

texts: I am trying to register a member with a two character username. Is this a possibility? I'd imagine I would need to hack the core, but is this a good idea? Where would I even get started with it?


texts: All "file" fieldtypes being required since upgrade

texts:
Sorry to keep whining to you guys :)

After upgrading from 2.5.3 to 2.7.0 and then to 2.7.1 in the last few days,
I've discovered that creating new content and editing existing content are both failing with the complaint that "no file was selected for upload". This happens at every instance of the native "file" datatype, and it happens in spite of none of them being marked as required.
A quick scan of the DB confirms that the "not required" setting is also correctly being stored in the exp_channel_fields table.

Oddly, this only happens when the attribute is intended to receive an image. Channels which can take an optional generic file upload can be entered without problems without an attachment being present.

Nothing obvious in the console, nothing at all in the log files.

Anybody seen this before?


texts:
This is a simple event listing. I want the output to list by "touring date" which is a custom date field. However, it doesn't seem to work.

  {exp:channel:entries channel="touring_calendar" dynamic="no" orderby="touring_date_and_time" sort="asc"}

{touring_city_state}

{touring_show_name}

{touring_venue_name}

 {touring_date_and_time  format=" %F %j, %Y; %g:%i %a"}

  {/exp:channel:entries}

It seems to be listed by "entry date" not the custom date field I created. I am stuck!


texts: Can't upload files to Assets 2.0.5 in ExpressionEngine 2.5.5

texts:
Cannot upload files with Assets v2.0.5 in ExpressionEngine v2.5.5.

Files uploaded with native EE file manager works.
Directory permissions for upload directory is 777 (for
troubleshooting sake).
XSS filtering on uploads is DISABLED per config file and db settings.
Action # 38 in database is upload_file method.
Uploading files using assets results in the following error:

There was an error uploading your file: Your file could not be saved. Either the upload was cancelled, or there was a server error.

Header/response information from the request below:

Request URL:http://website.com/?folder=2&ACT=38&qqfile=small_image.jpg
Request Method:POST
Status Code:200 OK

Request Headers:

Accept:*/*
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Cache-Control:no-cache
Connection:keep-alive
Content-Length:5750
Content-Type:application/octet-stream
Cookie:exp_perpage=150; exp_last_visit=1361303427; exp_last_visit=1361303427; exp_last_activity=1361319620; exp_last_activity=1361319626; exp_sessionid=44b2b994fb6c7f4e0960bb746fdf415e3e01daa6; exp_expiration=1392855796; exp_sessionid=44b2b994fb6c7f4e0960bb746fdf415e3e01daa6; exp_expiration=1392856008; arp_scroll_position=0
Host:website.com
Origin:http://website.com
Pragma:no-cache
Referer:http://website.com/system/index.php?S...
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17
X-File-Name:small_image.jpg
X-Requested-With:XMLHttpRequest

Response Headers:

Connection:Keep-Alive
Content-Encoding:gzip
Content-Length:122
Content-Type:text/html; charset=utf-8
Date:Wed, 20 Feb 2013 00:26:57 GMT
Keep-Alive:timeout=5, max=99
Server:Apache
Set-Cookie:exp_sessionid=44b2b994fb6c7f4e0960bb746fdf415e3e01daa6; expires=Wed, 20-Feb-2013 02:26:57 GMT; path=/
Set-Cookie:exp_expiration=1392856017; expires=Thu, 20-Feb-2014 00:26:57 GMT; path=/
Vary:Accept-Encoding


texts: Solspace Calendar, ICS_Update & Google Calendars

texts:
I am having problems with Solspace Calendar 1.8.4 in EE 2.7.0 using the ICS Update function.

I've created a template with the following code:

{exp:calendar:ics_update calendar_id='179'}{/exp:calendar:ics_update}

I've verified that there is an entry with id 179 in the Calendar: Calendars channel that is 'open'. I've also confirmed that the following is in the "URL to iCalendar (.ics) file" field:

https://www.google.com/calendar/ical/canadian__en@holiday.calendar.google.com/public/basic.ics

When I browse to the template, I don't see any output at all (logged in as super admin). No items are imported into the calendar. The calendar was initially created without the ics URL filled in, but I have also tried creating a new calendar and adding the URL to the ics file at that time. Neither option has worked at this point, and I am attempting to get this done for my client this week.

Does anyone have experience with the ics_update that can point me in the right direction to get this fixed?


texts: stop google from crawling ajax pages with no

texts:
I have a static site that pulls in pop up content using ajax. I don't want search engines to index those ajax pages. I know there are ways to block pages with

<head>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
</head>

But I don't have that on each of the ajax pages. so wondering what the best approach would be.


texts: WYGWAM causing Undefined property: EE::$view on validation failure of Channel Form

texts:
I'm using the latest version of ExpressionEngine (2.9.2) and the latest version of WYGWAM (3.3.3).

I've a Channel Form which includes the WYGWAM field and when I submit the form I receive the following error:

A PHP Error was encountered

Severity: Notice

Message: Undefined property: EE::$view

Filename: libraries/File_field.php

Line Number: 704

Fatal error: Call to a member function head_link() on a non-object in /Users/joe/Sites/mywebsite/webroot/5ystem/expressionengine/libraries/File_field.php on line 704

However, I've noticed a few things:

1) I only receive the message if the form has validation errors, otherwise it submits fine and the record appears in the channel as expected

2) If I remove error_handling="inline" from the form declaration then the errors are displayed fine, albeit not inline

3) If I remove the WYGWAM field then this error does not occur, even if there are/aren't validation errors and if the error_handling="inline" is/isn't included

Can anyone shed any light on this please?

The rest of the form declaration is:

{exp:channel:form channel="jobs" author_only="yes" error_handling="inline" return="jobs/success" class="channel-form" datepicker="no"}


texts:
I've been using Phil Sturgeon's Rest to read in JSON data from a url but it looks like it's starting to fail, as it hasn't been updated for a while.
I just want to pull in a JSON feed and display the contents in a table with some re-formatting of the presentation of dates etc.
This is the template code I'm currently using:

{exp:rest url="https://www.britishorienteering.org.uk/fixturesjson.php?club=elo" verb="get" format="json" limit="5" parse="inward" cache="yes" refresh="180"}

    {exp:low_nice_date date="{date}" format="%D %M %d%S" localize="yes"}
    {title} - {venue}
    {nearest_town}
    {level}

{/exp:rest}

I can't find anything on Devotee that does this, any ideas?


texts:
We have hundreds of products that are purchased in bulk. It would be easiest if a user could go down a list and mark quantities and then submit an order.

There doesn't have to be a checkout, because orders have to be approved before moving forward with payment, and most orders are at least $5,000.

Has anyone heard of solution that can achieve this in EE?

We've tried FreeForm, but we've maxed out the number of fields allowed.


texts: Recurring Event Date on SolSpace Calendar Event Page

texts:
EE v2.7.2. Calendar v1.8.5.

I have a calendar using the SolSpace Calendar add-on, with some recurring events. On the individual event pages for these recurring events, the date shows up as the first occurrence of the event and not each individual date, I think because it's only creating one instance of the event page and not targeting the date in the url.

Example: Prime Rib Dinner Nights are Tuesdays at 5:30 PM. The first occurrence on our calendar is January 7th, and all instances of the event on the calendar show that date instead of the actual date.

Clicking on Prime Rib Dinner Night from the July Tuesdays should show the July dates instead of Jan 7th.

Calendar for July: http://sdyc.org/calendar/month/2014/07/ Prime Rib Dinner Night event page: http://sdyc.org/calendar/events/2199/ Not sure how to code that to work properly on the calendar/events template. Thank you.

{exp:calendar:events orderby="title" sort="asc" event_id="{segment_3}" date_range_start="2010-01-01" show_months="144"}
   {if no_results}No Results{/if}

{exp:channel:entries channel="calendar_events" disable="trackbacks|member_data|pagination" limit="1"}
{/exp:channel:entries}

{event_title}

DATE & TIME:

  {if event_all_day}
    {event_start_date format="%l, %F %j, %Y"}{if event_multi_day} -

    {event_end_date format="%l, %F %j, %Y"} {/if}

  {if:else}
    {event_start_date format="%l, %F %j, %Y"}{if event_multi_day} - {event_end_date format="%l, %F %j, %Y"}{/if}

     {event_start_date format="%g:%i%a"} - {event_end_date format="%g:%i%a"}
  {/if}

LOCATION:
 {event_location}

      {if event_speaker != ""}
SPEAKER:
 {event_speaker}
{/if}

EVENT DETAILS:
 {event_summary}

{/exp:calendar:events}


texts:
Since Wygwam 2.3.1 it's supposed to have "Set the forcePasteAsPlainText CKEditor config setting to 'Yes' by default" (pasted from release notes). But I'm still getting a lot of junk code (inline styles, Word markup, the whole shebang).

Is this happening for other people as well? I've even tried adding it manually as a config setting, but that didn't make any difference.

Any help would be greatly appreciated, as this is making my client's life miserable.


texts: Mass find-and-replace URLs in rich text fields

texts: I have a number of EE rich text fields for a bunch of entries with inline images that have been uploaded. I'm noticing that the HTML image tags this generates is including the full, absolute image URL with a domain, e.g. http://www.cool.pizza/assets/img/etc.jpg instead of just /assets/img/etc.jpg. We are switching subdomains soon, however. Is there any way to do a mass text replace on these fields to remove the "http://www.cool.pizza" from image URLs?


texts: custom form validation class for a module I am building

texts:
I am building a module for EE2 and I want to extend CI's form validation library. I also want a separate language file too, kept within my module's directory so it's separate from future EE updates.

I created a libraries folder within my module's folder within the third_party folder.

I named the file: My_Form_validation.php

<?php defined('BASEPATH') OR exit('No direct script access allowed');

class MY_Form_validation extends CI_Form_validation {

    /**
     * Constructor
     *
     * @access  public
     */
    function __construct($rules = array())
    {
        parent::__construct($rules);
    }

    public function is_valid($value)
    {
        $this->form_validation->set_message('is_valid', 'The %s field can not contain any spaces');
        return FALSE;
    }
}

$this->EE->form_validation->set_rules('short_name', 'Short name', 'required|max_length[30]|is_valid');

I set the rule in the mcp.module_name.php file, I also swapped out $this->EE->form_validation... with $this->CI->form_validation and nothing.

it is not erroring out, it just doesn't seem like it is loading it correctly.

I tried loading the my form validation library in the mcp.module_name.php constructor and it returns this error: Fatal error: Class 'CI_Form_validation' not found

I shouldn't have to load it since it should load along with the default form validation library.

Below is my constructor for the mcp.module_name.php file

public function __construct()
{
    $this->EE =& get_instance();
    $this->CI =& get_instance();
    $this->EE->config->load('config');
    $this->conf = $this->EE->config->item('restaurant_menu_defaults');
    $this->CI->load->helper('file');
    $this->EE->load->helper('html');
    $this->EE->load->model('restaurant_menu_model');
    $this->base = BASE.AMP.'C=addons_modules'.AMP.'M=show_module_cp'.AMP.'module=restaurant_menu';
    $this->base_url = BASE.AMP.'C=addons_modules'.AMP.'M=show_module_cp'.AMP.'module=restaurant_menu';
    $this->EE->cp->add_to_head('<link rel="stylesheet" href="/themes/third_party/restaurant_menu/css/restaurant_menu.css" type="text/css" media="print, projection, screen" />');
    $this->base_short = 'C=addons_modules'.AMP.'M=show_module_cp'.AMP.'module=restaurant_menu';
    $this->data['base_url_short'] = $this->base_short;
    $this->data['base_url'] = $this->base;
    $this->site_id = $this->EE->config->item('site_id');
    $this->EE->cp->set_breadcrumb($this->base, $this->EE->lang->line('Restaurant Menu'));

    // setup navigation
    $this->EE->cp->set_right_nav(array(
        'module_nav_home' => $this->base_url.AMP.'method=index',
        //'module_nav_settings' => $this->base_url.AMP.'method=settings',
    ));
}

UPDATE:

added this to my construct on mcp.module_name

$this->EE->load->library('form_validation');
$this->EE->load->library('MY_Form_validation');

then in my methods, I run the form validation using: if($this->EE->my_form_validation->run() === FALSE)

Then I set my form field rules:

$this->EE->my_form_validation->set_rules('title', 'title', 'required|max_length[75]');
$this->EE->my_form_validation->set_rules('short_name', 'Short name', 'required|is_valid|max_length[30]');
$this->EE->my_form_validation->set_error_delimiters('', '');

MY_Form_validation.php

<?php defined('BASEPATH') OR exit('No direct script access allowed');

class MY_Form_validation extends EE_Form_validation {

    /**
     * Constructor
     *
     * @access  public
     */
    function __construct($rules = array())
    {
        parent::__construct($rules);
        $this->EE =& get_instance();
    }

    public function is_valid($value)
    {
        $this->EE->form_validation->set_message('is_valid', 'The %s field can not contain any spaces');
        return false;
    }

}

It won't post the form unless all the rules are met, but it won't display the form error messages, why do you think that is?


texts: problems updating store 4.0 to 4.1 in EE 5

texts:
the upgrades/updates always seem broken.  The ’update” button in the CP never seems to process and recognize that the update is done.  I’ve beein running v 3.1 on two sites since earlier this year..  As far as I can tell, they are fully updated to v 3.1, yet the CP still shows the “update to 3.1” button.  And, now, the same thing  on another install going from v 4.0 to v4.1.

Looking through the update notes, doesn’t appear to be any DB updates.

So, I’m also assuming the v4 > v4.1 update is complete (all files are copied and the store seems to operate correctly).  Just seems that the “update the version in the DB so we know what version we’re running”  process is not working.  Can I (should I) just increment the version numbers in the DB tables associated with Store?


texts: Simple Registration very slow response times

texts:
Recently rolled out the latest version of Expression Engine (5.1.2) and upgraded our PHP version to 7.2 and noticed a massive drop in the response times from our signup forms the using Simple Registration addon.

We used to receive a response in under a second, now it takes 10+ seconds to register a user or return an error message.

I'm wondering if this is just a compatibility issue with the latest version of EE (or php) or if it's something else?

Any thoughts?

EDIT: Worth mentioning that the members table is very large, but I've tested other plugins and they don't have the same problem. Would like to continue using Simple Registration if there is a solution to this problem, as it has functionality that I have been unable to find in other member addons.


texts: Future dating entries not displaying when current

texts:
Any future-dated entries are not displaying for me once the entry date is current. The exception is if I touch any entry in the channel (which is nice that it busts the cache, but it rather defeats the purpose of future dating). I have global caching enabled, but not on the template itself. Caching provides a nice speed improvement, so I'm hoping the answer isn't to disable it entirely.

{exp:channel:entries channel="mychannel" show_future_entries="no" limit="1" orderby="entry_date" sort="desc" disable="categories|member_data"}
    Most recent: {title} - {entry_date format="%D, %F %d, %Y - %g:%i:%s"
{/exp:channel:entries}


texts: Carttrhob packages and price modifier inventory

texts:
I'm having an issue trying to get the inventory value for products loaded into a package. As far as I can see I have all the correct set up done, I can add a package and products to the cart - and can checkout with the correct products.

I have given the item_options modifier a data-stock attribute so I can check against this using JS and display a message if the item is out of stock. This works on a regular product channel but for some reason the {sub:inventory} tag is spitting out a really long random string. Any ideas what may be going on? Below is my item_options block which is inside a {packages_packages} tag.

{exp:cartthrob:item_options entry_id="{entry_id}" row_id="{sub:row_id}"}
{if dynamic}
  {option_label}
{input}
{if:else}
{if options_exist}
{if allow_selection}
  {option_label}

{select class="chosen-size-select"}
{if option_first_row}
  <option selected value="">Please select a size</option>
{/if}
  <option {selected} value="{option_value}" data-stock="{sub:inventory}" data-option-price="{if option_price_numeric != 0}{option_price_numeric}{/if}">
  {option_name}{if option_price_numeric != 0} +{option_price_numeric}{/if}
</option>
{/select}

{/if}
{/if}
{/if}
{/exp:cartthrob:item_options}

URL for the result is here: http://oyumoyu.com/shop/outfit/outfit-01


texts: EE MSM 5.1.3 Field Groups and Fields on All Sites

texts: I recently updated EE to 5.1.3, and am running MSM. Since the update, when I add a new field group or channel field to one site, it publishes across all sites (and recognizes already existing ones). It is recognizing the {short_name} from the other sites and preventing me from creating the same in any new site. Is there a known way to isolate new groups and fields to each site?


texts: Can I specify external upload locations in Assets with MSM via configuration file?

texts:
I am working on a ExpressionEngine site with a lot of preexisting content in many MSM sites. Due to the need to put upload files into Amazon's S3 storage service, I am migrating all of file fields and Wygwam content to Pixel & Tonic Assets. I am using Focus Lab's Master Config.

I have added to the master config file the configuration variable mentioned in Asset's documentation:

$env_config['assets_source_settings'] = array(

    1 => array(
    'access_key_id'     => $s3_key,
    'secret_access_key' => $s3_secret,
    'bucket'            => $s3_bucket,
    'url_prefix'        => $s3_prefix,
    'subfolder'         => '/files/images/general/',
    ),

    ...

);

However when I go to the external sources page for Assets in the control panel, I do not see any of the sources listed. I can successfully use the same credentials and values by manually adding them, but I would prefer to use the configuration file instead as there are 11 sites to replicate across and quite a few upload locations.


texts:
I've set up three relationships in my products channel, pointing at...wait for it...the products channel. They're called also_like_1, 2 and 3.

In my main template, inside my {exp:channel:entries channel="products" limit="1"} tag, I have this:

{if also_like_1 > ''}

You May Also Like

    {related_entries id="also_like_1"}
    {embed="includes/productsummary" prod="{entry_id}"}
    {/related_entries}
{/if}
{if also_like_2 > ''}
    {related_entries id="also_like_2"}
    {embed="includes/productsummary" prod="{entry_id}"}
    {/related_entries}
{/if}
{if also_like_3 > ''}
    {related_entries id="also_like_3"}
    {embed="includes/productsummary" prod="{entry_id}"}
    {/related_entries}
{/if}
{if also_like_1 > ''}

{/if}

Here's what the productsummary template looks like:

{exp:channel:entries channel="products" id="{embed:prod}" limit="1" }

{embed:prod}{title}

{/exp:channel:entries}

So, I'm getting the right values for {embed:prod}, which are the desired products entry_id's; but the {title} keeps coming out with the parent's title.  :(

Main question: how do I get the desired products entry in the embedded template?

Side question: is there any way to reference the enclosing entry's fields in the inner channel:entries tag? (Either with an embed or without.)

Thanks for your help.


texts:
So I'm developing a site using Solspace Tag.  A little background... I have a site that displays tags in two places.  One global cloud tag in the footer, and another in an entries detail page (tags associated with that specific entry).  When a user clicks on a tag, they should be taken to a page that displays all entries with that particular tag. I've been trying to get the example from the documentation to work, but the page does not output anything.  The only thing in the template is the following tag pair.

{exp:tag:entries
    inclusive="yes"
    orderby="entry_date"
    sort="asc"
    limit="20"
    paginate="bottom"
}

{title}

{body}

{tag_paginate}

Page {tag_current_page} of {tag_total_pages}. {tag_pagination_links}

{/tag_paginate}

{/exp:tag:entries}

Do I need to wrap this in an entries tag as well?

{exp:channel:entries channel="news|reviews|etc"}{/exp:channel:entries}

What does work is {exp:tag:tag_name}. I can output the tag name based on the URL.

Any help would be great!


texts: Model Service ChannelEntry relationship fields

texts:
I can't figure out how to save (or retrieve) relationship field data using the Model Service. I can save flat fields with out an issue (and retrieve them).

So when retrieving an entry like this:

$entry = ee('Model')
        ->get('ChannelEntry')
        ->filter('channel_id', 1)
        ->first();

var_dump($entry->field_id_1); // this is a text field data, this works

var_dump($entry->field_id_2); // this is a relationship field with data, it outputs NULL

As you can see, I don't get the relationship data. I couldn't figure out a way to load relationship data either, by using ->with("Relationships")or any other verbiage that makes sense.

At the same time, I can't seem to save relationship data in any way:

$entry = ee('Model')->make('ChannelEntry');

$entry->title = "Title";
$entry->url_title = "title";
$entry->site_id = 1;
$entry->channel_id = 1;
$entry->status = "open";
$entry->author_id = 1;
$entry->field_id_1 = "My text field"; // this works
$entry->field_id_2 = array("100", "101"); // doesn't save relatoinship data, and trying a few different formats didn't work
$entry->save();

I've been digging through the EE source code and it isn't clear if this is possible at all. I know I could insert raw DB entries next to the Model Service, but that sucks and is harder to get right.

Any one have any success with this?


texts: RSS feed for specific category in channel

texts:
I have a channel that has 20 categories - each representing a client who can post there or have others post there for their attention.

Of these 20 categories/clients one (only one) needs a personal RSS feed - is it possible to have a feed showing the one category only? Docs seem a bit unclear on this.


texts: Adaptive Images: CE Image vs. Standard EE Image Manipulations

texts:
I made a site which uses CE Image for adaptive images. It uses the instructions at https://www.aaron-gustafson.com/notebook/adaptive-images-in-expressionengine-with-ce-image/ to do this. You can see this in action if you search "srcset" in the first link's source code.

But I'm wondering, wouldn't the standard image manipulations be just as good? I'm talking about the "Constrain or Crop" part of your Upload Directory, where when you upload an image, EE automatically creates derivatives of it.

Or maybe I'm oversimplifying things?


texts: Parsing matrix field inside a playa loop

texts:
I have a setup where I have to parse information from a matrix field that is nested within a playa loop.

The template code would look like this:

{exp:channel:entries}

    {matrix_tag_pair}

            {playa}

                {matrix_field}

            {/playa}

    {/matrix_tag_pair}

{/exp:channel:entries}

Unfortunately the {matrix_field} would not parse. Any idea how to make the matrix field parse other than to place it outside the {playa} loop?

Cheers

Edit:

here is the longer version:

I would like to add a couple af products at the same time in a ct cart.

The products I add recide in a matrix that contains a playa field. The matrix is a recipe and the ingredients are the playa field that come from a
product/ingredients channel. The quantity is defined with the matrix field {quantity}.

a basic example is this:

{exp:cartthrob:multi_add_to_cart_form return="/store/cart"}
{exp:channel:entries
    channel="recipes"
    disable="categories|category_fields|member_data|pagination|trackbacks"
}

{title}

You will need:
                    {matrix_recipes}

                            {products}{!-- playa field --}
                                {title}
                                <input type="hidden" name="entry_id[{entry_id}]" value="{entry_id}" />
                                <input type="input" name="quantity[{entry_id}]" value="{quantity}" />
                                (price:{product_price} each)
                            {/products}

                    {/matrix_recipes}

<input type="submit" value="add to cart"/>

{/exp:channel:entries}

    {/exp:cartthrob:multi_add_to_cart_form}

The problem with the above setup is that the quantity is not rendering.
I found a couple of ways to make this work but they were all looking clumsy. One was to wrap playa fields in the playa tag pairs leaving the quantity field outside the playa loop. That left me with a far to verbose template code.


texts:
I have a site where Channel Images' Upload works and images are displayed but Import simply hangs.

Also, Channel Images is generating long randomly-named directories in the site's home directory and saving images there.

All the settings seem correct and everything passes with Test Location in Upload Location Settings.

Anybody seen this before?


texts:
I have two channel_fields that can be filled, and I need one of these values to be required (but not both).

Is there fieldtype that can solve this problem?

NB Only one of the fields needs to be filled. I don't want to set both fields as required.


texts:
I've a site running EE 2.8.1 and the allowed filesize on the server is 512M however, if I try to upload a large PDF I receive the following error: "This form has expired. Please refresh and try again."

This error does not appear on my local, development version of the site, however I have no idea what I'd need to configure or set on the server to get this working for production.

Thanks in advance.


texts: Control Panel won't log out, loops when logging back in randomly

texts:
I upgraded to EE 2.7.3 a few months back and recently added caching preferences to our .htaccess file for site optimization. Since these changes, I'm currently having two issues:

Sometimes when I press the 'Log-out' button, it just refreshes the
page and keeps me logged in.
After I'm logged out based on time or when the 'Log-out'
button does work, when I try to log back in - I will occasionally
have the screen loop on a white screen and it won't
go to the control panel.

Clearing my cache solves both issues. I don't have a problem doing this, but we're starting to roll the control panel out to others at work and I would rather it just work.

In my 'Security and Session Preferences', I have the CP Session type set to 'Cookies and session ID'.

My .htaccess code is:

<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 24 hours"
ExpiresByType image/jpg "access plus 1 months"
ExpiresByType image/gif "access plus 1 months"
ExpiresByType image/jpeg "access plus 1 months"
ExpiresByType image/png "access plus 1 months"
ExpiresByType text/javascript "access plus 1 months"
ExpiresByType application/javascript "access plus 1 months"
ExpiresByType application/x-shockwave-flash "access plus 1 months"
ExpiresByType text/css "access plus 1 hours"
</IfModule>

<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</IfModule>

I didn't think this would affect the control panel itself, but I may be wrong.

Do I have to specify I don't want the control panel cached, or does this sound like an issue unrelated to the .htaccess?


texts: Does any one know if there is a way to display Exp-resso Store fields like Price in the Zenbu entries display? It'd be super-cooper nice for users.


texts: Strings of 2 characters or less causes Super Search timeout

texts:
I'm having an issue very similar to Ryan Masuga as seen here: http://www.solspace.com/forums/viewthread/3520/

I am running EE 2.7.3 and Super Search 2.1.3. In the original post I saw a mention to pagination, I wonder if that might be causing it? I'm using AB Pagination 1.6.3.

Here's my site: http://llumcmurrieta.org/

Basically a search for POB seams to spin forever and eventually timeout. Whereas a search for "POB" (with the quotes) works.

Here is my results block:

{exp:super_search:results
    site="internet"
    channel="pages|service_lines|bucket_services|bucket_treatments|bucket_conditions|news|pob_directory"
    exclude_entry_ids="618|935|871"
    highlight_keywords="strong"
    smart_excerpt="yes"
    paginate="bottom"
    limit="10"
    relevance_proximity="yes"
    search_words_within_words="no"
    fuzzy_weighting="yes"
    relevance="title=1+services_tags=5+ct_tags=5+page_keywords=5+services_introduction=2+ct_about=1+body=1+count_words_within_words"
    {!-- services_about and ct_sub_sections cause an error with super search -- see discussion: http://www.solspace.com/forums/viewthread/17419/ --}
}
  {if count=="1"}
{/if}

  {embed="search/_result" id="{entry_id}" excerpt="{excerpt}" relevance="{relevance_count}"}

  {if count==total_results}
{/if}
  {if super_search_no_results}

Sorry, we couldn't find anything to match what you are looking for.

  {/if}
  {paginate}

      Showing {abp_entry_from}-{abp_entry_to} results of {abp_total_entries} total

      {if abp_has_previous}

        &laquo; Previous

      {/if}
      {if abp_current_page_num_liber > 3}

        1

      ...
      {/if}

      {abp_pages padding="2" initial_size="5"}

      {if abp_is_current}
      {abp_num}
      {if:else}

        {abp_num}

      {/if}

      {/abp_pages}

      {if abp_has_next}

        Next &raquo;

      {/if}
      {if abp_last_page_not_linked}
      ...

        {abp_total_pages}

      {/if}

  {/paginate}
{/exp:super_search:results}

Any help would be greatly appreciated! Thanks!


texts:
In a plugin, I have this as part of the SQL's WHERE clause:

$where_sql = "`store_table`.`channel_id` = {$this->channel_ids->stores}
                AND `regions`.{$this->field_column_names->region->region_name} IN ({$regions})
                AND `regions`.{$this->field_column_names->region->region_name} != ''
                AND `address_types`.{$this->field_column_names->address_type->address_type} = 'Physical'
                AND `store_address_data_grid_table`.{$this->grid_column_names->store_address_data->store_address_latitude} != ''
                AND `store_address_data_grid_table`.{$this->grid_column_names->store_address_data->store_address_longitude} != ''
        ";

I need this query to respect that entry's status (e.g. status = Open). How do I add that to this query?

EDIT 1:

It looks like the status value is saved in exp_channel_titles and actually stores the value values ("open", "closed") instead of an id. Anyway, I'm not sure how I'd add this to the WHERE clause.


texts: "Google Maps for ExpressionEngine" field validation with Zoo Visitor Update Form

texts:
I am using Google Maps for ExpressionEngine field type with Zoo Visitor update member entry form. But I couldn't make this field type as Required.

I tried by having "Is this a required field?" as "Yes" from field setting and/or validation rule rules:field_name="required" but no luck.

Could anyone please suggest how can I validate Google Map field.

Thanks,


texts:
I'm trying to develop a membership website. I'm using SafeCracker Registration so I can leverage Channels for member data. Once members are registered and verified, I want them to be able to do the following:

Log in from a customized login page
Have their own control panel where they can edit their profiles (I'll build the SafeCracker forms); I don't want them seeing the EE CP.
Use EE's build in emailing system so members can email each other (I don't want to build this myself)

So, my questions are:

What is the proper way to customize the login page? The changes I want to implement include mark up changes, content changes, and other design changes.
How do I tell EE that when a member of a particular member group logs in that they should be redirected to the customize CP that I plan to build?
How do I let my member use EE's email system so that members can email each other? Ideally, I'd like to redo the markup for this (to make it responsive using Twitter Bootstrap), but I'm happy to just use whatever EE has initially as I am concerned it may be too much effort trying to make changes to it.


texts: Channel Form - Submit via Ajax with file upload

texts:
How do I implement an Ajax implementation on a Channel Form, especially when there is a file needed to be uploaded?

I look at an example, but I don't think I really understand how it works.


texts:
I would like to create a list of entries that have NOT been tagged by with a specific tag group. Does anyone have an idea how to accomplish this?

Thanks in advance!


texts: How can I filter entries via relationship field? Is Playa the answer?

texts:
Here's what I am trying to accomplish in EE 2.5.5. I have 2 channels; blog article and author. The author channel is pulled in via Relationship Field in the blog article channel. I then have the blog pages which correctly display the authors name and link out the the authors profile page, no issues. The issue is that I cannot figure out how to display only that author's blog posts on the authors profile page. In other words I cannot figure a way to filter the list of blog articles by the author relationship field per each authors bio page.

Is there a way to filter relationship fields by the channel entries search parameter? Can I do this with reverse related entries? Can I do this easily with the Playa addon?

Any help is appreciated, thanks!

Edit - here's the code I'm currently using, currently this displays "Some articles: John Doe":

{exp:channel:entries channel="authors" limit="1" dynamic="no"}

{reverse_related_entries channel="blog" orderby="entry_date" sort="desc" limit="100"}

{if no_reverse_related_entries}
     No Articles
   {/if}

Some articles:

{article_title}
{article_header_image}
{article_content}
{title}

{/reverse_related_entries}

{/exp:channel:entries}


texts: After upgrading to CartThrob 2.5, cart_items_info no longer working

texts:
I'm using EE 2.7.2, and just updated to CT2.5. After the update, the cart no longer populates product data inside the {exp:cartthrob:cart_items_info} tag pair.

For example, if I add an item using {exp:cartthrob:add_to_cart entry_id="{segment_3}" quantity="1" return="cart/index"}, as I have always done, I'm redirected to the cart, where I see a new line item, the title is blank, and item_price, item_subtotal and cart_subtotal dollar amounts all return $0.00. If I add the same item again, the quantity updates, but the title is still missing as are the dollar amounts; similarly, if I add a different item the cart shows a new line item, but all the same data is missing.

Any insight would be great.


texts:
Everything was working fine,
Till suddenly dynamic and classic search refers to homepage url?

The search refers to template result_page="search/results" but instead it goes to homepage (www.site.com) instead of www.site.com/search/results

First thing i have tried to figure this out is to remove the .htaccess but it didn't change anything.

Second i made a new template to test this, used the example in EE user guide but the results also takes me back to the homepage instead of www.site.com/search/results

It's not a server problem as i have a similar copy of the website on the same server and there it works fine
The only difference between both sites is transcribe.
But i'm not sure that is related.

How should i go ahead and debug this to make it go to the result_page="search/results"

Thanks


texts: Cart Throb - live rates and disable shipping

texts:
I am running CartThrob and using Live shipping rates.  The problem I have run into is if I have one product in the cart and I have Shipping Disabled for that product the live rates plugin is still showing shipping options.

How do others get around this?

CartThrob 2.2.2
EE 2.5.3

Shipping: <select name="shipping_option">
{exp:cartthrob:get_shipping_options}
    <option value="{rate_short_name}" {selected}>{rate_title} - {price}</option>
{/exp:cartthrob:get_shipping_options}


texts:
I'm using EE v2.8.1, Content Elements 1.6.9 and Wygwam 3.3. On my entry page, I'm receiving a blank area where the wygwam is supposed to be. Am I missing something?

https://www.dropbox.com/s/ogs877ovbszipp5/Screenshot%202014-04-23%2016.48.34.png


texts: Display ordered items within exp:store:orders oder exp:store:payment

texts:
Is it possible to retrieve the list of products in the orders or payment template tag, e.g. like in the checkout tag {items}?

After successful payment we display a summery page using the {exp:store:orders} or {exp:store:payment}, along with the orders summery we would like to display a list of the items related to that order (like in the control-panel).

We tried something like:

{exp:store:payment order_hash={last_segment}
    Your order ID: {order_id}
    ...
    {items}
        {exp:channel:entries entry_id="{entry_id}"}
            {title}
        {/exp:channel:entries}
    {/items}
{/exp:store}

But unlike within the {exp:channel:checkout} tag this does not work.

Do we need to use a manual query?

Thank you,
Daniel


texts: Freeform notification email to zoo visitor member's email address too

texts:
client would like to send notification not only to enquirer (ie email submitted in form) but also the Zoo Visitor member they enquired about 'title' gets passed to a field on the form so populates form automatically – but would somehow need to get the Zoo Visitor Member's email and use that in the notification too!

Its a music agency website and the Zoo Visitors are bands – the enquirer would be a person enquiring about the band, any ideas!?
Thanks


texts: How-to connect to secondary external DB in EE2

texts:
Im relatively experienced with PHP/HTML, however not so much with EE 2.4. Im working with a company using this set-up, so im on the learning curve at the moment. However, the first db 'expression' has been set up via phpmyadmin on cpanel, a second database to hold a few tables for front-end db search is required and im having trouble figuring out how to connect to this database, and to display data, i.e. select * from tbl_states

Am i to create a template script/ file for connection, or a webpage (php enabled) file? or will the php method work in ee 2.4?

<?php
include("include/dbinfo");
$comm=@mysql_connect(localhost,$username,$password);
$rs=@mysql_select_db($database) or die( "Unable to select database");

$sql="SELECT * FROM tbl_states";
$result = mysql_query($sql) or die("SELECT Error: ".mysql_error());
$num_rows = mysql_num_rows($result);
?>

$DB1 = $this->EE->load->database('ext_db', TRUE);

$q = $DB1->quesry('SELECT * FROM tbl_states');
$results = $q->result_array();

trying to use the below code to echo to no avail

if ($results ->num_rows() > 0){
  foreach ($results ->result() as $row){
    echo $row->stateName."";
  }
}

Help towards this is highly appreciated !!


texts: Does channel videos work with channel form

texts:
I am trying to add an SAEF for members to upload videos and currently have channel videos, does anyone know if it works and what the template code would be.

Thanks


texts:
Is it possible to access the ordered list properties field in Wygwam?  It is not there by default and I don't see any options in the Editor Configurations dropdown that would add it.

This is what I am trying to do...

http://devnet.kentico.com/questions/creating-alphabetical-list-in-ckeditor


texts: Notifications on Page beside E-Mail-Notifications

texts:
Is there a way to get the User-Notifications that normaly get sent via E-Mail (new Comment, new Entries etc.) somehow ON PAGE beside via eMail?

My Goal is to provide the member with notifications similiar to the notifications on Facebook oder Google+ etc. where you get all the notifications on page instead only per E-Mail.
The larger scope would be to use this in a «Notification-Center/-Flyout», with the Web-Push-Notifications API and other APIs.

Has anyone already developed such a System or how could it be possible? I am quite sure I am not the only one with this goal.

Update
To prevent missunderstanding: I need a solution to get the notifications out of the email-only-format to the frontend.


texts: Excluding results from a particular category

texts:
I have a landing page which is to show all of the current members of an academic group. This group is to exclude alumni. The memberships of the various groups are categories, so I need to exclude this one particular category. When I try the following code to exclude alumni (category 4), the rest of the category filtering no longer works (i.e. when you click on a group to see the members, all people are listed in every category, instead of being filtered properly). The filtering works once I remove category="not 4" from the channel entries tag, but then the list shows all of the alumni, which is no good. The following is the code for the landing page, which is intended to show all memberships except alumni:

{exp:stash:append name="content"}

Please select a group to see its members:
   {exp:channel:categories category_group="1" show="not 4" channel="people" show_empty="no" style="linear" backspace="8"}
   &nbsp;{category_name}&nbsp; |{/exp:channel:categories}

{/exp:stash:append}

{exp:channel:category_heading channel="people" show_empty="no"}
  {exp:stash:append name="content"}

{category_name}

  {if category_description}

{category_description}
{/if}
  {/exp:stash:append}
{/exp:channel:category_heading}

  {exp:stash:append name="content"}

 {exp:channel:entries channel="people" status="open" orderby="title" sort="asc" show-expired="no" limit="200" show_future_entries="no" category="not 4"}

{people_name}

{people_bio}
{if people_email}
contact
{/if}

{/exp:channel:entries}

  {/exp:stash:append}


texts: Changed a textarea to a RTE textarea, now not working in safecracker

texts:
I had a custom field in a channel that was a standard text area. This was also included within a safecracker form. I recently changed the field to a RTE text area field, and all my existing entries updated nicely.

However I have this field in a safecracker form like so

<textarea rows="8" class="span16" name="my_custom_field" id="my_custom_field" value="my_custom_field">{my_custom_field}</textarea>

and now when an entry is submitted via the safecracker form, it throws up an error

with Message: Undefined property: EE::$rte_lib

So I am assuming this is because i have change this field. Can I easily change the safecracker form to work with this field?

Should add:
I'm not worried about the RTE features being available on the front end, just in the CP. Not sure if this helps things!


texts: Cartthrob adds tax to all orders after upgrading to v. 2.5

texts:
After upgrading Carttrob from v 2.4 to 2.5, Cartthrob adds tax to all orders rather than just to the orders in the jurisdictions established in the Tax Settings area.  This happened when upgrading to v 2.4 and it required a support session to fix.  (I don't know what was done to fix it.)

Any help is welcome.


texts:
After getting files properly indexed on the backend, how can they be displayed through a template on the front-end using the two assets:folders and assets:files?

If the file structure looks like this on the server:
Folder A
- file1
- file2
- Folder B
-- file3
-- file4
--- Folder C
---- file5
---- file6

... and was indexed with Assets, using their tags how could I display that in an unordered nested list?  Th example on their site with folders and files is close, but isn't nested.  The end goal is a browsable download page with EE goodness.  If not, is there a better way with navigation, maybe like their backend?


texts:
My project needs NTLM authentication. This is not core function as i found here: Can ExpressionEngine….?

Are there any existing add-ons which provide this? If not, where would be an appropriate place to find a developer for this?

Thanks!


texts: Should the channel data table have so many columns?

texts:
I have noticed that each custom field takes up 2 columns in the channel data table.

The second column often seems to have little value.
Existing columns do not seem to be recycled for new channel field groups with the same field type.

This seems like quite a wasteful design because:

It increases the size of rows in other channels.
Must surely come with various performance penalties (like full-text search perhaps).

Are there ways to optimize this? am I worrying unduly? what is the realistic maximum number of custom fields for an ExpressionEngine site?


texts: AJW-Export date formating in CSV is off 6 hours

texts:
I'm using ajw_export for my CSV,

I have:

DATE_FORMAT(from_unixtime(exp_channel_data.field_id_454), '%h:%i') AS Start_Time,

works but shows time with 6 hour difference.

I have tried:

DATE_FORMAT(DATE_ADD(from_unixtime(exp_channel_data.field_id_454), '%h:%i')INTERVAL 6 HOUR) AS Start_Time

but it gives me erros in my sql.

Can anyone tell me what Am'I doing wrong?

Thank you


texts:
I am having an issue with Assets sub folders and Expression Engine File Manager.

I have a folder called photos. In assets i create sub folders more for organisation purposes as having lots of images in the same folder will be hard to maintain at a later date as file count increases.

The problem is when moving files into these folders. Files are no longer shown in File Manager. Because of this I am having issues with expresso store download tag.

Does anyone have a solution for this? Keeping the files in the photos folder everything is fine even using assets. It is only when organising the files do I have problems.

Any help would be great.

Thanks


texts: Upgrading from 2.5.5 to 2.8 with tons of embeds and reverse related entries?

texts:
I am working on a site using 2.5.5 and it uses embeds and related entries quite heavily. The embeds are used to hand parsing data the way the site requires it.

q1 Should I upgrade straight to 2.8 or do it in stages? (if so what)

q2 Does the updgrade change my templates and DB to support the new way embeds and related entries may be handled?
Will it break them?

Thx!


texts: MX Select Plus having problems with ampersands

texts:
I've noticed that in the MX Select Plus fieldtype if any of your options contain an ampersand they are saved as a unicode character for the entry in the database (&), however the fields option settings save them with an html entity (&amp;).

The problem is when you return to edit an entry, even though you have previously selected an option, it will not be selected in the MX Select Plus field as the values are different:

Value in the database : "A&E Television"

Value for the option in MX Select Plus Field : "A&amp;E Television"

Has anyone else had this sort of a problem with this Fieldtype?


texts: Is this the most efficient way to code this?

texts:
I have a specific entry I want to display when a user navigates to that particular section of the website.  To clarify, I have an "about us" section of a church website where, when the user clicks on "about us" it takes them to the a url "pastors-welcome".  From there there are listings in the sidebar for other entries in that channel.  I am wondering if the way I have coded this is the most efficient method?  I'm new to EE and as with anything new, you just don't know what you don't know.  looking to you guys n' gals for the wisdom that comes from experience.

{if segment_2 == ""}
        {exp:channel:entries channel="content" limit="1"     disable="categories|member_data|pagination" url_title_path="pastors-welcome"}

{title}

{page_content}

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

    {if segment_2 != ""}

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

{title}

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

        {page_content}

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


texts: Using Assets Wygwam, how can I pull in the caption for an image in the text editor?

texts: I need the basic ability to load the caption from an image (assigned in Assets) into Wygwam. Is this possible?


texts: How do I choose a different design template?

texts:
This might be really basic, but using a standard Expression Engine install, how do I choose a different design template for a specific channel? I'm not using Structure or anything like that.

I basically have two design templates, one for the front page, and one for articles. I'm displaying a portion of the content of each article on the front page. But want to link to the article itself from the front page. Then I want it to open that article using the other design template. Weirdly enough, I can't find any documentation on that.


texts:
I want to apply tax rule for canadian state in cartthrob . Can anyone guide me for that? Because the states/country dropdown has US states but not canadian states.

Thanks in advance.


texts:
I have a Playa relationship between my "News" and "Projects" channels. In a News entry, you can select a related Project, so "News" is the parent and "Projects" is the child.

I have the following code on my Project template, and it works correctly to show related News items. However, I would like to hide the entire section when there are no related News items. I thought perhaps wrapping the section with {if no_parents}{if:else}...{/if} would work, but I believe this type of statement must reside within the {exp:playa:parents ... } tag pair.

{!-- TO DO: put in logic to hide block if no related news --}

Related News

    {exp:playa:parents channel="News"}

{title}

    {/exp:playa:parents}

Is there something simple here I'm overlooking?

I am using ExpressionEngine version 2.5.3 and Playa version 4.4.2.

Thanks!


texts: Taxes defaulting to a particular setting in CartThrob

texts:
We've just come across a strange issue in CartThrob (v2.3.5; EE 2.5.5) where the tax is calculating, but only somewhat.

We've got several different tax rates setup for two states: NY and CA. When using a NY zip code, the tax calculates correctly every time. For CA though, it always uses the first tax rate listed and ignores the others, regardless of zip code.

Here's a screenshot of that part of CartThrob: http://cl.ly/RpCc

With that set up, if I use 93657, whose tax rate is 8.975, it still gets calculated as 10% (the first CA tax rate). If I move the first listed CA tax rate of 10% to the bottom, and try to use 93657 again, it then defaults to 9.5% (the new first listed CA tax rate).

I have no idea what could be causing this issue. Any ideas?


texts: Ways method to protect members profile edit pages?

texts:
Just looking at finding the best ways ways to protect member profile editing pages.

I have members profiles set up under a template structure such as

members/profile/{member_id}/sub-page

Thats is fine, all these pages are public. I do however show, on the members own profile page, a link to edit their details. This is displayed via the conditional

{if segment_3 == logged_in_member_id}
   Edit Your Account
{/if}

I then have the account edit pages such as (this is actually one template using switchee)

members/account/{member_id}/profile
members/account/{member_id}/password
members/account/{member_id}/avatar
members/account/{member_id}/notifications

But these pages should only be viewed by the logged in member, which at the moment is easily bypassed via just changing the member_id in the URL.

So what would be the best way to protect these pages, so if someone did try and change the member_id in the URL, they would not be able to access other users pages.

Thanks!

(And whilst I'm on this subject, is is possible to use the username in the URL as opposed to the member_id ?

Many thanks!


texts: How do I stop sitemap.xml displaying instead of the /sitemap/index.php template?

texts:
I have a template_group/template like sitemap/index.php, in which I have a regular html site map for site visitors. I also have sitemap.xml in the root folder.

visiting www.site.com/sitemap is showing the sitemap.xml file and not the one I have in sitemap/index.php.

I'm using the EL supplied htacccess file to remove index.php from url's.

Be grateful for any suggestions on how to fix this please.

Best wishes
Lee


texts: How to pull channel entry data from Playa Links

texts:
So have you heard about the new Playa Links add-on? It's kind of great, showing you when entry A has selected entry X in its Playa field. But how do you pull the data from entry A into entry X? Is it the same way as pulling it from X to A?

Is this unclear?


texts: Resolving conflict between variables between main loop and playa:parents loop

texts:
Playa experts out there: I thought variable prefix parameter would solve this one, but perhaps I'm misunderstanding how it's intended to be used.  Here's what I'm trying to do:

{exp:channel:entries set="prod" dynamic="no" disable="pagination"}

{title}

API Docs
{exp:playa:parents channel="api" field="cf_apis_related_product"}

{title}

{/exp:playa:parents}
{/exp:channel:entries}

Is there a namespacing way to get the url title from within the wrapping entries loop WITHIN the playa parents loop?


texts: Stored images limit per entry - Channel Images

texts:
I have an entry with 125 images in a channel images field.

Since the website is multi-linugal, a related entry needs to have the same number of images.

However, the limit of stored images seem to be 50.

How can we have all the stored images for a related entry.

And also it would be great if there was an add all images and remove all images button.

Am using EE 2.11.9 and Channel Images 5.4.19


texts: How do I use low variable to create a yearly archive?

texts: I am trying to use low variables to create a dynamic page that shows all the entries from a given year and am having some difficulty in creating the resulting dynamic page.


texts: GWCode Categories and Stash set/get_list

texts:
I'm working on a template that outputs large tables of stockists. At the moment they're quite slow so I've reworked it a bit to use Stash set & get_list but they're still quite slow.

For instance, the template I'm testing has come down from ~9 seconds to ~6.5. I'd like to get that down further and wondering what I can do with the below to achieve that.

{exp:stash:set_list
    name="stockists"
    parse_tags="yes"
}

    {exp:channel:entries
        category="{segment_3_category_id}"
        channel="stockists"
        disable="member_data|pagination|trackbacks"
        dynamic="no"
        orderby="title"
        sort="asc"
    }
        {stash:stockist_cat}{categories backspace="1"}{category_name}|{/categories}{/stash:stockist_cat}

        {stash:stockist_row}

            {title}

            {if stock_address_1}{stock_address_1}
{/if}
            {if stock_address_2}{stock_address_2}
{/if}
            {if stock_address_3}{stock_address_3}
{/if}
            {if stock_city}{stock_city}{/if} {if stock_state}{stock_state}{if:else}{segment_3_category_name}{/if} {if stock_pcode}{stock_pcode}{/if}

p {if stock_phone}{stock_phone}
{/if}
            {if stock_url}{stock_url}{/if}

        {/stash:stockist_row}

    {/exp:channel:entries}

{/exp:stash:set_list}

        {exp:gwcode_categories
            cat_id="{segment_3_category_id}"
            depth="2|3"
            parse="inward"
            show_empty="yes"
            style="linear"
        }
            {if depth=="2"}

                {cat_name}

            {/if}
            {if cat_description}

{cat_description}

            {/if}

            {if depth=="3"}
                {exp:stash:get_list
                    name="stockists"
                    match="#\b{cat_name}\b#"
                    against="stockist_cat"
                    save="yes"
                    scope="site"
                    refresh="60"
                    replace="no"
                }

                    {cat_name}
                    {stockist_row}

                {/exp:stash:get_list}
            {/if}

        {/exp:gwcode_categories}


texts:
I've asked this question over at Solspace but thought I'd see if any of the EE community have any insight.

I have urgent need of a solution that can automate the exporting of freeform data. The manual solution is not a viable option at all.

Can anyone advise me of how I could achieve a cron job or JSON feed… anything that can be picked up by a remote server, I'm open to all ideas.

Exporting each "form" group would be mandatory ie. not all form data in one stream/file/URL


texts:
I am using Minimee 2.1.12, and Bootstrap 3.2.0. When I add the bootstrap CSS file to my {exp:minimee:css} tag pair, I am getting an error "ERR_CONNECTION_RESET" in my browser.

I did some whittling down to the CSS file, and narrowed the issue down... This here is the smallest chunk of CSS from that file that will still cause that issue. If I remove any more, the issue doesn't occur... I don't know what about this section of CSS is causing the issue...

.table > thead > tr > td.active,
.table > tbody > tr > td.active,
.table > tfoot > tr > td.active,
.table > thead > tr > th.active,
.table > tbody > tr > th.active,
.table > tfoot > tr > th.active,
.table > thead > tr.active > td,
.table > tbody > tr.active > td,
.table > tfoot > tr.active > td,
.table > thead > tr.active > th,
.table > tbody > tr.active > th,
.table > tfoot > tr.active > th {
  background-color: #f5f5f5;
}
.table-hover > tbody > tr > td.active:hover,
.table-hover > tbody > tr > th.active:hover,
.table-hover > tbody > tr.active:hover > td,
.table-hover > tbody > tr:hover > .active,
.table-hover > tbody > tr.active:hover > th {
  background-color: #e8e8e8;
}
.table > thead > tr > td.success,
.table > tbody > tr > td.success,
.table > tfoot > tr > td.success,
.table > thead > tr > th.success,
.table > tbody > tr > th.success,
.table > tfoot > tr > th.success,
.table > thead > tr.success > td,
.table > tbody > tr.success > td,
.table > tfoot > tr.success > td,
.table > thead > tr.success > th,
.table > tbody > tr.success > th,
.table > tfoot > tr.success > th {
  background-color: #dff0d8;
}
.table-hover > tbody > tr > td.success:hover,
.table-hover > tbody > tr > th.success:hover,
.table-hover > tbody > tr.success:hover > td,
.table-hover > tbody > tr:hover > .success,
.table-hover > tbody > tr.success:hover > th {
  background-color: #d0e9c6;
}
.table > thead > tr > td.info,
.table > tbody > tr > td.info,
.table > tfoot > tr > td.info,
.table > thead > tr > th.info,
.table > tbody > tr > th.info,
.table > tfoot > tr > th.info,
.table > thead > tr.info > td,
.table > tbody > tr.info > td,
.table > tfoot > tr.info > td,
.table > thead > tr.info > th,
.table > tbody > tr.info > th,
.table > tfoot > tr.info > th {
  background-color: #d9edf7;
}
.table-hover > tbody > tr > td.info:hover,
.table-hover > tbody > tr > th.info:hover,
.table-hover > tbody > tr.info:hover > td,
.table-hover > tbody > tr:hover > .info,
.table-hover > tbody > tr.info:hover > th {
  background-color: #c4e3f3;
}

That CSS doesn't break the site unless it's within my minimee tag.

Any ideas?


texts: How to manually add Content to a Matrix-Row with SafeCracker

texts:
I need to use SafeCracker to publish a new entry into a Channel whose Custom-Field-Group exists of only one field — which is a quite large Matrix-field. (Matrix -> pixel&tonic Fieldtype)

The code look like this (but with much more fields)

{exp:safecracker channel='mychannel' return='success' include_jquery='no' datepicker='no'
…
<input type="hidden" name="title" class="title" value="" />
<input type="hidden" name="mychannel-field0" class="field0" value="" />
…
{/exp:safecracker}

The fields will get filled through a JavaScript-Datafetcher.

My Matrix-Field is named {mychannel-entry} and the first cell is named mychannel-field0 etc.

How can I tell my form to input the values of my hidden fields into the first/new Row-Cells of a new entry to my channel?

Note: This form only adds new entries, no editing-functions required.


texts: Can site members add products to Carthrob store?

texts: If we wanted to allow members to list products for sale similarly to Amazon and take a transaction fee, would that be possible with Carthrob?


texts: Admin Group editing entries in CP - complex permissions issue

texts:
What I need to achieve is the following - not sure the best way to go about it, hoping someone knows of an add-on or other solution:

1) User submits an entry via Channel-Form front end. All sorted.

2) Entry gets posted in one of 10 categories with status 'pending' - each of which has a specific Admin/Editor who is notified by email. Again sorted.

3) On getting the email the Admin/Editor logs in to the CP and either approves or denies the entry.

The issue is at #3 where each of the 10 editors should see ONLY the entries posted to their own category that they are the Admin for.

So, when two entries are placed in UK and USA categories respectively, the UK and USA admin each can login and see/approve only the entries with their country categories and not in any other country cat.

Obviously it's possible to restrict by channel - but is finer-grained control possible? Any suggestions?


texts:
Basically I want to serve "made" images from the subdomain for one of my File Upload locations.

I've seen a couple of posts on how you can use ce-img to handle local sub domains but they weren't fully on my wavelength and hence haven't had the "light bulb" moment.

I have setup a sub domain where the folder lives at the primary domains root folder:

var/myhost/mywebsite/ = mysite.com

var/myhost/mywebsite/siteassets/ = assets.mysite.com

Have configured one of the 'file' paths to use the sub domain to upload images to and it works - upload myimage.jpg and it appears at assets.mysite.com/folder1/myimage.jpg

$config['ce_image_src_regex'] = array( 'http://assets.mysite.com/' => var/myhost/mywebsite/.'/' );
$config['ce_image_made_regex'] = array( '^/' => 'http://assets.mysite.com/' );

It seems no matter which configuration I use, it never really works, I've experimented that much I've now forgotten where I started.

Can someone enlighten me pls :)


texts: Unable to paste text from Illustrator into Wygwam field

texts: I am working on a site from designs done in Illustrator and when I try and copy text from the Illustrator document and paste it into Wygwam nothing happens. It is just blank. I have to first paste the copy into a text editor and then copy it and paste it into Wygwam for it to work. Does anyone else have this problem and is there a solution?


texts: show specific feed related to entry; however, a single page template is being used

texts:
I have a single page template that is used to show a specific entry (based on url segment). When the unique page content is displayed, I would like to show a specific unique feed also.

I'm thinking i can have a custom field in the entry screen where I enter the unique feed url. Then use either use EE native feed functionality or Andrew Weaver's RSS plugin to display the feed.

However, I'm not sure if is it possible to call the custom field that holds the url?

Any ideas or other ways to solve this problem?

thanks

  {exp:ajw_feedparser
     url="??????"
     cache_refresh="60"
     limit="8"
  }

  {title}

  {description}

  {/exp:ajw_feedparser}


texts: Get the product name {title} in the low stock email?

texts:
The default low stock email template only output the product ID number.

I've tried {title} in that template, but it does not get parsed.

Any way to do this?


texts: get the values from 1 Matrix column into a dropdown select for another Matrix field column in another Channel

texts:
So I have 2 channels:

Channel NEIGHBORHOOD has a Matrix Field called "neighbors" and it gathers a list of people's names and info on them.

Channel EVENTS has a Matrix field called "guests" and I want to have a drop down that pulls all the neighbor names into a drop down.

I tried making the Matrix cell a Playa field but it pulls in only the neighborhood title.
I tried P&T Dropdown but it was manual entry of the drop down options.

Is there any way to get the values from 1 Matrix column into a dropdown select for another Matrix field column??

OR

Is this even possible w/out Matrix - I tried a new Playa/Relationship/Select field and none allowed me to do this at all... They all seem to only use the title.


texts: How to display the lowest number from multiple fields - PHP?

texts:
I have channel entries with around 20 number fields, each containing a price: {price_1}, {price_2}, etc.

I need to display the lowest of these prices in the entry's template but am finding it strangely difficult to do!

My PHP skills are just copy and paste level, and I thought I could just do:

echo min({price_1},{price_2}...)

But some of the price fields may be empty, so I am getting PHP errors.

Any help gratefully received!


texts: Safecracker Registration: Label, Field, Error for Member fields?

texts: Is there a way to access the label, field value, and error of Member fields in a Safecracker form? I'm looking for something like http://ellislab.com/expressionengine/user-guide/modules/safecracker/#field-my-field-name, but for member fields. Thoughts?


texts:
I'm having issues with implementing the auto opt-in mailinglist feature with Solospace's Freeform 4.

I have set up the mailing list called "jrp-mailinglist" and a landing page with the freeform on it with basic content "first name, last name, email & categories". I do not wish to have a checkbox to confirm sign-up. Eg. If they are filling out this form then have confirmed that they wish to sign up.

The freeform syntax I have used is:

{exp:freeform:form
mailinglist_opt_in="no"
mailinglist="jrp-mailinglist"
form_id="3"
required="first_name|last_name|email|sign_up_categories"
return="sign-up/thanks"
}

But am unsure how to use the mailinglist field type.

I have gone through the Freeform4 docs (http://www.solspace.com/docs/freeform/default_fieldtypes/#mailinglist) but am unable to see where it clearly outlines how to implement the auto opt-in for my selected mailinglist.

Any help or advise would be greatly appreciated.

Thanks,
Dan


texts:
I've created Select Dropdown fieldtype and populated it manually. How do I display the select in a channel form?

The EE documentation states: This creates a standard HTML  drop-down list.

However when I add the {fieldtype} to my channel form nothing appears.

How do I add the Dropdown to my channel form?


texts: Altering the 'forgot password' behavior?

texts:
Under our login form, I have a 'forgot password' link which goes to the native EE page for this: /members/forgot_password. When the link is clicked:

EE sends an email to the user.
User clicks on link.
EE resets password to something random.
EE emails new password to user.

I'd like the change this sequence so the user can create a new password. How would I do this?

Thx.


texts: Try to set Low Search to match one Category and any from Group of Categories

texts:
I have two category groups. One is for Towns and the other is for Designations. Some Designations are state-related, some are national-related. So I've combined the categories that are state and the categories that are national into the value in checkboxes. I've put all Towns in a select.  The Designations categories are in checkboxes and look like this:

<input type="checkbox" class="checkbox" name="category[]"  value="2336|2332|2335" selected>National Register
 <input type="checkbox" class="checkbox" name="category[]"  value="2334|2337" selected>State Register

and the Town categories look like this:

<select name="category[]" id="ctm_city">
<option value="">-- Select option --</option>
<option value="2158">Andover</option>
 <option value="2159">Ansonia</option>
 <option value="2160">Ashford</option>
 <option value="2161">Avon</option>
</select>

I'd like if a Town category is selected that it is required but the designation categories can be any of the categories listed in its value. But I've only been able to get results from any of the combined categories (meaning the results match the town or match any of the Designations). Or if I use:

<input type="hidden" name="require_all[]" value="category">

then the results are only what matches everything...which is almost nothing. So being that both Towns and Designations are all categories (but 2 different category groups) how would I match selection from one Town category AND any category included in the selected Designation category checkbox?

As a test I've tried the query string:
?category=2148&2334|2337
and I get a disallowed query string error.


texts: EE conditionals within javascript snippet

texts:
I am trying to use EE conditional statement within Javascript. The Javascript is called through a EE snippet. Part of the problem is I am using js conditionals right below my EE conditional. Is this even possible with a EE if statement? Do I need to escape my if statement some how? Any suggestions would be greatly appreciated.
Here is a simplification of my snippet:

<script type="text/javascript">
...

{if add_option_on=="On"}
if (thisForm.os2.value == "") {
 alert('Please choose a {exp:channel:entries channel="products" disable="member_data|pagination" limit="1"}{customize_option_label}{/exp:channel:entries}');
 return false;
}
{/if}

...

</script>


texts: How do I format the date in a foreign language?

texts:
I currently have the task of building an EE site in Chinese. All is going well so far, but I have a problem trying to get the date shown in chinese. Anyone have a solution to this?

I'm just using the following standard date code at the moment:

{current_time format="%l %j%S %F, %Y"}


texts: Updating Matrix Safecracker Cell type to File Cell Type

texts:
I'm doing a major update on a site -- EE v2.1.3 to v2.8.1

I have a Matrix field that's using the safecracker cell type and I'm wondering what's the best to handle this.

Pre-update the channel form field didn't exist and post update I'm not able to access the field to update it without error messages.

Should I edit the database directly and update the col_type from 'safecracker_file' to 'file'?

I'm thinking that if I do this then I can go in through the EE control panel and update the field details, but I'm not sure if there are other ramifications that I'm unaware of.

Appreciate any feedback or insights.

Jules


texts: I've I clients website which has been working fine, today the site has gone down randomly. I was initially able to access the control panel and all seemed fine, whilst logged in the home page displayed a error 28 message which  understand means the database has run out of room. The client had checked with the host who said all was fine their end. But now the site is displaying "Site Error: Unable to Load Site Preferences; No Preferences Found" and I can't access the control panel any more?? Has anyone got any suggestions of how this could have come about or more importantly how it can be fixed. Many thanks in advance.


texts: Check if item is in cart using categories

texts:
Folks:

The client has a number of products that do not ship outside of North America (most ship anywhere). I am using the is_in_cart tag (http://cartthrob.com/docs/tags_detail/is_in_cart/) to check if non-shippable items are in the cart. There are 18 items that don't ship outside North America.

Now, I have a long OR statement to deal with this ({exp:cartthrob:is_in_cart entry_id="301"} OR {exp:cartthrob:is_in_cart entry_id="302"} OR {exp:cartthrob:is_in_cart entry_id="303"} etc.). This isn't too bad. Problem is, though, that the site is going multilingual. This means 18 more checks for every new language. With 6 languages total, that's a crazy number of OR statements and will be a big performance hit.

It would be great if I could just check against a single category. Is this possible?


texts: I am missing the Relationships Field Type

texts:
This is simply my problem, I have no relationships field. I have no idea how I would've removed this and or how that would even be possible considering it's a native EE function.

Any clue how to get this back?


texts: After upgrading from EE 1.8 to EE2, my CP theme no longer works. I double-checked paths, I tried moving my cp_themes folder to the system folder. No luck. Any thoughts?


texts: Channel Form only accepting Image Uploads

texts:
I've configured a channel form with the goal of receiving applications for employment. Part of this process means the user should have the ability to upload a pdf or word document to the channel.

Currently the form only accepts image uploads. If a user chooses a pdf or word doc I get an error that the file type is not accepted.

My set up is:

{exp:channel:form channel="job_application" logged_out_member_id="2" include_jquery="no" include_assets="no" json="yes" return="/contact-us/careers"}
<label for="applicant_resume">Upload your resum&eacute;</label>
<input id="applicant_resume" name="applicant_resume" type="file">
{/exp:channel:form}

Channel Field

Allowed file type: All

Allowed directory: Resumes

File Upload Preferences

Allowed File Types: All file types

XSS Filtering: Off

I've tried uploading as a guest, logged in as a Client, logged in as a Super Admin and no difference. Curiously, I can log into the admin area and manage pdfs, docs, etc just fine. The error only happens with Channel Form.


texts:
is it true that assets 2 does not support image manipulations anymore?
I just had a hard time debugging a site after updating to assets 2.
I'm on EE 2.5.5 and assets 2.0.2

it was one of my favorite things in assets 1.x... and I cannot find it in the docs anymore!

at least the following is not working anymore:

{my_matrix_field}
    {matrix_cell_assets_fieldtype:url:image_manipulation}
{/my_matrix_field}

this still works:

{my_matrix_field}
    {matrix_cell_assets_fieldtype:url}
{/my_matrix_field}

I am on matrix 2.4.2 and I cannot update to the latest version because of some other bug.

cheers
stefan


texts: Freeform: pass variable to confirmation page

texts:
I have a freeform form with a text field with a value.  Users of this form are not logged in and I need to pass the value of that field to a second confirmation page where I am building a paypal form.  The passed value represents the amount to pay in the paypal form.

So on the Freeform:

<input name="amount" type="text" id="Amount" size="8" placeholder="$ amount"/>

and on the confirm page in a paypal form

    <input type="hidden" name="amount" value="{amount}" />


texts: Adding 10+ Sites to MSM - Does this workaround sound crazy?

texts:
Here's the situation.  I tried to add a 10th site to my MSM and I got an SQL error that effectively says, you can't add another column to the exp_weblog_data table.

Description: Can't create table 'simplifiedsafety_eu.#sql-1935_220d4' (errno: 139)

So I researched a bit and basically this boils down to a poorly designed database (yeah I know it has to do with fulltext searching yada yada) and the constraints of mySQL.

So what is a developer to do?

Well here's what I came up with and I wanted to run this by some people in the community before I test this out:

1) Create another www directory (called www2) where I pointed the URL for the additional sites

2) Create a copy of the current ee database.

3) Create symbolic links to all files and directories in the original director EXCEPT for the system/config.php

4) Point the new system/config.php at the copy of the database.

5) Delete most of the sites out of the ee that's pointing at the db copy.  (Of course I could copy the site I needed first)

If my theory holds then I could maintain ONE code base, but have two separate databases (and two separate config files), and everything else would be unified.  Assumedly this would allow me to double the number of MSM sites that I'm running.

The only disadvantage that I could see is if I wanted to make a duplicate of a site that was in the other database.

I realize that the control panels would only show the sites in the database that it was pointed at, but that's not a problem for me either.

Your thoughts here:


texts:
I am using the code below to display a list of items all with the same category, which works.
However the URL os not want I would like displayed. The URL shows as http://vintageceramics.co/store/products/category/ceramics/264

I would like to remove the /264

How would I do this? I have Low Seg2Cat installed, but I'm not sure how to use it in this case?

I would be most grateful if anyone can help.

{exp:channel:entries channel="promotional" status="open" category="{last_segment}" limit="4"}

{promo_product_image}

{/promo_product_image}

{promo_main_title}

{promo_product_description}

{categories show_group="26|25|28"}
View Details
{/categories}

{/exp:channel:entries}


texts: Transcribe for EE2 - export all variables?

texts:
I have an older EE2 site that will be rebuilt and not upgraded. There are almost 150 translations in the Transcribe module. Is there an easy way to export via db query or template code a list of variables and translations somehting like this:

variable_1 English French,
variable_2 English French,
variable_3 English French,
variable_4 English French,

This would save a lot of copy/pasting.

Digging into the database I see two tables that I need to combine to output the data correctly. I am completely unfamiliar with mysql so have no idea where to start.

exp_transcribe_variables and exp_transcribe_translations

Translations has a column variable_id which should match the variables column id see screenshots from navicat


texts: Stash - tag pairs to set multiple variables at once - no results / no_results

texts:
This one kept me busy for a while and I although could find similar questions none of the solutions worked.

Using template partials, gather the page content then send though (via embed) to a master wrapper template. This site has 'pages' where the URL should identify a unique entry, but EE tries it's best to show something, adding require_entry in the Channel tag should trigger no_results if an entry can't be found.

{no_results} works as expected when trying the channel:entries tag (below) outside of stash. Looking at stash docs, unprefix is specifically for this scenario. The below code does work.

{exp:stash:set
    name        = "st_page_content"
    parse_tags  = "yes"
    unprefix    = "my_prefix"
}
    {exp:channel:entries
            channel         = "channel_short_name"
            limit           = "1"
            require_entry   = "yes"
        }

{title}

    {if my_prefix:no_results}
no results
{/if}

    {/exp:channel:entries}
{/exp:stash:set}

But it doesn't work when stashing multiple variables between 1 stash tag pair. Eg. no_results is not stored in st_page_content:

{exp:stash:set
    name        = "st_page_content"
    parse_tags  = "yes"
    unprefix    = "my_prefix"
}

    {stash:st_entry_id}{entry_id}{/stash:st_entry_id}

    {stash:st_page_content}

        {exp:channel:entries
                channel         = "channel_short_name"
                limit           = "1"
                require_entry   = "yes"
            }

{title}

        {if my_prefix:no_results}
no results
{/if}

        {/exp:channel:entries}

    {/stash:st_page_content}

{/exp:stash:set}

EE 2.9.2
Stash 2.6.1 (Dev)


texts: Pagination links on CP Module screen are not clickable

texts:
I'm working on a module that's outputting data using $this->EE->load->library('table').

I'm passing this back to my index() function to render things:

return array(
    'rows' => $rows,
    'pagination' => array(
        'page_query_string' => TRUE,
        'base_url'    => $this->_full_url(), // My own function
        'per_page'   => 20,
        'total_rows' => $total_rows
    )
);

This is all working wonderfully. In fact, my pagination links are working wonderfully as well. They're generating URLs like this:

http://addons.clearbold.localhost:8888/system/index.php?S=a87b760ae58c317d28e7d1ebf3c8f374e89173a5&D=cp&C=addons_modules&M=show_module_cp&module=module_name&tbl_offset=20

And if I do a View Source and click the links enabled in the source view, they take me to exactly the page I want to see.

On the CP screen, though... I can hover over the links and see the right URLs in the status bar. My cursor switches to the hover state to show they're clickable. But when I click them – Nothing happens. The browser doesn't follow the link.

Why aren't they clickable? I've tried recent Chrome, Safari & Firefox versions.

Full pagination output:

&nbsp;&nbsp;1&nbsp;2&nbsp;3&nbsp;&nbsp;


texts: Can ExpressionEngine handle nested menus?

texts:
I'm creating a web store, and have set up nested categories to make the menu system (example):

Home:
  - Categories:
      * Living room
      * Bathroom
Computers:
  - Categories:
      * CPU
      * RAM
  - Ready-made computers:
      * Gamer Starter
      * Gamer Extreme

Because of the structure, a simple ul>li+ul>li-structure will not suffice. Is it possible to use custom HTML with this structure? This is what I've done so far, but it's messy and not quite working...

    {exp:channel:categories channel="top_menu" style="linear"}
    {if parent_id == 0}
    <?php $parent_id = '{category_id}'; ?>

        {category_name}

...

    {/if}

            {if {parent_id} == '<?php echo $parent_id; ?>'}
            <?php $parent_2_id = '{category_id}'; ?>

{category_name}

            {/if}
            {if {parent_id} == '<?php echo $parent_2_id; ?>'}
            {category_name}
            {/if}

            {if parent_id == 0}

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


texts: Is WYGWAM 3.3.3 Compatible with EE 2.10.1?

texts:
Can't find anything that indicates this in docs.

Thanks


texts: File field inside Grid field inside Low Variable - File is not saved

texts:
So I've seen similar questions to this one, but they dealt with P&T addons Matrix & Assets. The problem I am experiencing is with EE Native Grid & File fields when they are placed inside of a Low Variable.

The file is uploaded correctly, it's not a permissions issue. I can see the file in the file manager and use it in other fields on the site.

My Low Variable is a Grid type, and it's got a column that takes a file upload. When I select the file, it shows the thumbnail, but as soon as I click 'save changes', it is gone.

When I logged the DB queries that ran when saving the field, it showed that the file field is getting set to NULL.

I'm running EE 2.7.3 and LV 2.4.0


texts:
I'm really sorry this is a bit of a vague question, but I'm wondering if anyone has any thoughts that may shed some light on this issue.

I recently installed the "Better Workflow" plugin on a client's website. I literally only installed it and enabled it - I didn't change any configuration - or tweak any other settings. I left it for them to configure the workflow as they wished.

A few days later they informed me that some entries in their EE site were mysteriously going missing. We believed it to be caused by the Workflow plugin automatically submitting entries as Closed. They hadn't yet configured the Workflow themselves - so I disabled both the Add-on and the Module. They're both still disabled as of this moment.

In the week that followed we noticed:

Some entries still closing themselves on update
Some entries closing themselves overnight (they came back on Monday after the weekend to find several entries auto-closed whilst they were gone)
Some entries vanishing from the database completely and irreversibly (not closing - literally deleting)

The client is technically competent and I am certain there's not a rogue user simply deleting entries. But things are going missing - either automatically closing in seemingly mysterious circumstances or vanishing entirely.

So my question is...

Could this have anything to do with Better Workflow modifying configurations?
Could this have anything to do with Better Workflow at all, or is that a red herring?
Are there any EE settings that auto-set expiry dates for tours or auto-close them?
Have you seen anything like this before, or do you have any suggestions for how to begin to tackle this issue?

Thanks!


texts: EE 2.8.1 Solspace freeform 4.1.5 - composer issue

texts:
Using this tag "{exp:freeform:composer form_name="form"}", I'm receiving this output

{composer:page}{composer:multi_page_start} {composer:rows}
{composer:columns}

EE 2.8.1
Freeform Pro 4.1.5

Is anyone having an issue or am i not aware of change in this updated version?
I've looked over the documentation and i'm doing the same as before.

Anyone have any luck?


texts: Superseach / Low search - How to handle this type of search criteria

texts:
I have 2 category groups (function and material).

In my search for i have the 2 category groups listed as checkboxes, so the user can perform multiple search combinations.

How I need the search to work is, if I selected Sales and Marketing from the functions categories list and selected Videos and eBooks from the materials categories list. I want to be able to see Video and eBooks entries in either Sales or Marketing.

What is the best way for me to handle this type of query.


texts:
Good morning!

Does anyone know if there's a way to require a path variable in a page?

I have a page in EE (3.3.0) such as this:

www.bakers.com/site/cookies/oatmeal/

Where "oatmeal" is a title of an entry.  So when I link to it, I do this:

{title}

Works great.  But if someone just navigates to www.bakers.com/site/cookies/ it will just list all of the cookies in a big long list.  I'd like to present either a 404 or a custom page.

Thoughts?

Not sure if this is a job for hidden templates...


texts: EE Hook where I can change language to be displayed?

texts: Is there hook in ExpressionEngine where I can change the language to be shown before the page is rendered?


texts: Replacing Native Relationships with Playa - Update 300 some entries at once

texts:
I’m trying to switch a site from the Multi Relationships add-on to Playa, the Multi Relationships add-on is just too limiting and Playa would solve the problems.

The trouble is, I have over 300 hundred entries in a particular Channel, and apparently due to the fact that this channel was using Multi Relationships and not native relationships, I can't use Playa’s converter.

For the particular application, it's my church's website, and for each sermon we post, I associate the sermon with a Channel entry for the speaker. Most of the sermons are from my pastor. It seems like I should be able to submit a query that will update the Playa field for each entry to be associated with the Pastor’s Channel entry, and then manually go in a change the few sermon’s that were preached by someone else, but I can’t figure it out. So far, nothing. Any help on how to run that query would be appreciated, queries are my Kryptonite.


texts: Channel Images tag pair breaks page parsing

texts:
I am using channel image 5.4.2 and as per docs I trying simple template like":

<html>
  <head>
  <meta charset="UTF-8">
  <title>Document</title>
  </head>
   <body>
      {exp:channel:entries
      channel='articles'
    dynamic='no'
    entry_id='85'
    limit='1'}
    {title}
 {exp:channel_images:images channel="articles" entry_id="85"}
    <img src="{image:url}" alt="{image:id}">
{/exp:channel_images:images}
{/exp:channel:entries}
 </body>

Where I have custom field, called "article images". The problem is that when I add this and try to open the template I'm getting "ERR_CONTENT_DECODING_FAILED" and page breaks.

Actually my end point is to add this in json output and to be able to consume added images json property from the whole json object, which is used for website data.

Does anybody had this issue?

EDIT: Actually what I do need on the front-end is

"article_images" :
    [
        "/imgs/237455.jpg",
        "/imgs/4H631C00.jpg",
        "/imgs/243224.jpg"
    ]

this to be added as JSON property