texts: Matrix issues using with Solspace Importer

texts:
I'm using Solspace Importer to import data from a JSON data feed, and all is working well. As Grid isn't currently supported, I'm using Matrix for my repeatable entries.

All works well on initial run, but on next run of the import, the following errors are thrown.

A PHP Error was encountered
Severity: Warning
Message: Illegal string offset 'is_draft'
Filename: matrix/ft.matrix.php
Line Number: 2409

A PHP Error was encountered
Severity: Warning
Message: Illegal string offset 'is_draft'
Filename: matrix/ft.matrix.php
Line Number: 2461

Not really sure why this is failing the second time around, but maybe something to do with updating entries incorrectly?

Let me know if any more info is required!


texts: Field Editor: Unable to load the requested class: services_json

texts:
Since i'm not getting any response in the official support forum for FIELD EDITOR I decided to repeat the question over here in the hope someone out there knows how to solve this.

Since i started development on a ee 2.8.1 system i’m getting a "Unable to load the requested class: services_json" error when i try to save changes to my custom field group using FIELD EDITOR.

Googling the error helped me find a similar error in the Zoo Flex Admin add-on but the solutions posted there didn't help me fix this issue.
http://devot-ee.com/add-ons/support/zoo-flexible-admin/viewthread/12713

Do you have any clue how to fix this?

Greets,
Bas


texts: Moving Hosts: Freeform 2.6.6 not sending email

texts:
I'm moving one of my sites to a new host. I'm still using EE 1.6.9 and using it with Freeform 2.6.6. I know, I know... I'm way out of date. But, things have worked and I've never seen a need up upgrade my software and pay for latest and greatest.

So... I'm hoping someone can give me some things to try because I'm all out of ideas.

I'm operating the site under a test URL for the time being just to ensure everything works. I've changed all paths (that I know of), changed config.php file, updated permissions on the necessary files/folders on the server, etc. The ONLY thing I can't seem to get working is getting Freeform to send email. On my current live host, I've used this version of EE and Freeform together for probably four years with zero issues sending mail.

On my new host, the only difference that I can tell is that I'm now using PHP 5.2, where on my old (current) host they're still using PHP 5.1.6. I don't think this would make a huge difference, but maybe? I'm not sure I can downgrade to 5.1.6, so if that is in fact an issue, is there an updated Freeform that I could install that will still work with my version of EE and PHP 5.2?

Any ideas would be greatly appreciated.

Thanks all

EDIT:

I wanted to add that on my old (current) host, email configuration was setup to use phpmail. On the new host, they use sendmail for email. So, I have went in and changed the email configuration in Admin to "sendmail."

I'm also able to email myself via the "communicate" tab in the control panel, so I know email is working.


texts: Comments are appearing without moderation even though they're set to be moderated

texts:
I've got an ExpressionEngine 3.5.1 website and the comments posted by the public ('Guests' in EE speak, or non-logged in users) are appearing immediately after posting. We want the comments to go through moderation and have set it up appropriately but it's not working.

The way it's set up is in the Admin > Members > Member Groups I've set 'Guests' to:

Submit comments = Yes
Bypass moderation = No

The comment module is enabled and the form in the template has been done following EE's documentation, e.g.

{exp:comment:form channel="myblog" preview="channel/preview"}

        {if logged_out}

                Your Name:
                <input type="text" name="name" value="{name}" size="50" required class="form-control" placeholder="Your name">

                Email Address:
                <input type="text" name="email" value="{email}" size="50" required class="form-control" placeholder="Your email address">

        {/if}

            Post your comment...
            <textarea name="comment" cols="80" rows="5" required class="form-control" placeholder="Write your comments here">{comment}</textarea>

        <input type="checkbox" name="save_info" value="yes" {save_info} /> Remember my name &amp; email address

        {if captcha}
                Please enter the word you see in the image below:

{captcha}

                <input type="text" name="captcha" value="{captcha_word}" maxlength="20" />

        {/if}

            <input type="submit" name="submit" value="Post Your Comment" class="btn btn-primary btn-lg btn-red">

{/exp:comment:form}

I've logged out of the Admin panel and even tried it in a Chrome Incognito browser window to make sure it's not using any session/cookie data that thinks I'm an Admin.

The comments appear... but we don't want them to go directly on the site without moderation. How can I fix this?

I've updated to EE 3.5.1 today which is the absolute latest version to make sure it's not an EE bug. Same behaviour as my older version.


texts:
I'm completely running stuck at the moment. In first place I had an issue that if I typed www.mydomain.nl, the user always was redirected to mydomain.nl. No idea why and I wanted to force the user to access the site with www. in the URL. So started looking at this an somehow (without changing a thing I believe), I can now access the site with www. in the URL, so not being redirected anymore.

However, I'm now getting a Site Error if I access the site when using the URL with www. in front of it. But the site is working fine without the prefix. I don't understand it anymore.

Working: http://domain.nl

Not working: http://www.domain.nl.

Giving this error:

An Error Was Encountered
Site Error: Unable to Load Site Preferences; No Preferences Found

.htaccess file which is unchanged:

RewriteEngine On

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

If I search for this error, I mostly reed about database errors. But how would a www in the URL break up a database connection.

database.php file in system/expressionengine/config/

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

$active_group = 'expressionengine';
$active_record = TRUE;

$db['expressionengine']['hostname'] = 'localhost';
$db['expressionengine']['username'] = 'someUser';
$db['expressionengine']['password'] = 'thePassword';
$db['expressionengine']['database'] = 'someDatabase';
$db['expressionengine']['dbdriver'] = 'mysql';
$db['expressionengine']['pconnect'] = FALSE;
$db['expressionengine']['dbprefix'] = 'exp_';
$db['expressionengine']['swap_pre'] = 'exp_';
$db['expressionengine']['db_debug'] = TRUE;
$db['expressionengine']['cache_on'] = FALSE;
$db['expressionengine']['autoinit'] = FALSE;
$db['expressionengine']['char_set'] = 'utf8';
$db['expressionengine']['dbcollat'] = 'utf8_general_ci';
$db['expressionengine']['cachedir'] = 'system/expressionengine/cache/db_cache/';

/* End of file database.php */
/* Location: ./system/expressionengine/config/database.php */


texts: In Freeform, How do I specify return page from channel field in composer tag?

texts:
I'm using the Freeform composer tag to pull a form into an EE template, but I can't work out how to set the return value to whatever page the users puts into the Freeform channel field. It works fine if I specify a specific page in the tag.

This is my tag as it works (form_select_form is my custom field):

{exp:freeform:composer form_id="{form_select_form:form_id}" form_name="{form_select_form:form_name}" return="/message/thanks"}

What I'd like is the equivalent of:

{exp:freeform:composer form_id="{form_select_form:form_id}" form_name="{form_select_form:form_name}" return="{form_select_form:user_specified_return_page"}

Any ideas?


texts:
During a migration from 1x to 2x on an EE site, I needed to switch to current Google Maps add-ons and chose MX Google Maps (for now anyway). The site was using a geotagger that filled a Latitude field and Longitude field with data, so those are still in place.

Since MX Google Maps uses it's own fields, I need to find a way to migrate current db data to MX Maps. But I'm hella bad at this SQL query stuff.

Right now, the lat/lon are stored in exp_channel_data in field_id_41 (lat) and field_id_42 (lon). MX Maps stores Lat/Lon in field_id_46 as a pipe delimited set (lat|lon). It also stores data for each entry in it's own table at exp_mx_google_map.

In exp_mx_google_map it has

point_id (a sequential number for each post)
entry_id (tied to the entry itself)
latitude
longitude
address (not using)
city (not using)
zipcode (not using)
state (not using)
field_id (in this case 46)
icon

With about 2400 entries storing lat/lon, what's the best way to go about moving this data over? Besides drinking heavily and sleeping on it, which I've tried and doesn't work.


texts: How to display entries from current category grouped by another category

texts:
I have content entries in a channel called resources.

Resources primary categories are whitepapers and downloads.

Secondarily, the entries are categorized by "brand"

What I want to do is grab the current category id (e.g. downloads) but then display the entries grouped by "brand"

This is my code.

{exp:channel:category_heading channel="resources"}
{!--grab main category we're viewing. E.g. we're viewing "downloads" in the "resources" channel--}
<?php $category = '{category_id}'; ?>
{/exp:channel:category_heading}

{!-- loop through the brands --}
{exp:channel:categories category_group="2" show_empty="no"}

{category_name}

    {!-- now display entries from this main category (e.g. downloads) that are also categorized under the current brands --}
    {exp:channel:entries category="<?php echo $category; ?> & {category_id}" channel="resources" disable="member_data|pagination|trackbacks"}

        {title}

    {/exp:channel:entries}

{/exp:channel:categories}

Where it says $category and category_id, only recognizing the latter. I can accurately print the $category to screen in the loop but the category= filter doesn't recognize it.

Thoughts?


texts: Error: This form has expired. Please refresh and try again

texts:
I am using Channel Form to submit an entry here. However, when a user submits the form, they get the following error:

  This form has expired. Please refresh and try again.

The site is running EE 2.8.1.  I reviewed the other posts here with recommended solutions to this problem, but none of the suggestions work including clearing the cache and adding the hidden csrt_token field.

I confirmed that the permissions are set properly in Channel Forms, so I am not sure how to proceed from here and would appreciate any insights for a solution.

Here is the code:

{exp:channel:form channel="calendar_events" class="artist" return="calendar/confirmation"}
              <input type="hidden" name="csrf_token" value="{csrf_token}">

*Name of Event
                    <input type="text" name="title" id="title" value="" size="50" maxlength="100" onkeyup="liveUrlTitle();">

*Organization
                <input type="text" name="submitting_organization" id="submitting_organization" value="" maxlength="75" size="50">

*Contact - Full Name
                    <input type="text" name="submitted_by" id="submitted_by" value="" size="50" maxlength="100">

*Contact - Phone Number
                <input type="text" name="contact_phone" id="contact_phone" value="" maxlength="75" size="50">

*Contact - Email
                <input type="text" name="submitters_email" id="submitters_email" value="" maxlength="75" size="50">

*Date and Time
                {exp:calendar:date_widget}

*Event Location
                <input type="text" name="event_location" id="event_location" value="" maxlength="75" size="50">

*Event Address
                <input type="text" name="event_address" id="event_address" value="" maxlength="75" size="50">

            *Description of Event
                    <textarea name="event_summary" rows="5" cols="65" >{event_summary}</textarea>

            Photo (optional)
                {field:event_thumbnail}

*Cost of Admission
                <input type="text" name="admission" id="admission" value="" maxlength="75" size="50">

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


texts:
I'm trying to use MX Calculate to perform a percentage calculation of each row in a matrix column and the percentage is based on the value that's in each row which I'm trying to get Switchee to recognize but I think my problem lies somewhere in the parse order but I can't figure it out. Here's the code:

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

     {case value=">=1000"}

     $ {exp:mx_calc parse="inward" expression="{event_fee}/100*40"}

     {/case}

     {case value="<=999"}

     $ {exp:mx_calc parse="inward" expression="{event_fee}/100*30"}

     {/case}

 {/exp:switchee}

Thanks.


texts: Expresso Store - Empty orders triggering order confirmation email - Store v2

texts:
Since upgrading to Store v2 we have started to notice 'empty' order confirmation emails coming through. There are no products listed and the value of the order is £0.

Checking the admin these orders are being marked as paid, but the customer and order details are blank. I'm not sure if this is a result of the upgrade, or if some naughty external script has just found the site and knows what php scripts to call to trigger the emails.

Grabs of the empty orders in the admin follow:

Order list - notice the green 'yes' paid marker.

Order detail page


texts: {exp:search:keywords} doesn't show keywords used in search

texts:
I'm using EE native simple search and in the results template have the following at the opening tag:

{exp:search:search_results limit="16"}
{if count=="1"}

Search Results

You searched for {exp:search:keywords}.

{/if}

...

But the results shows like this...

The string looks to be the same for each search with results and doesn't match the URL string.

The no_results page seems to output correctly...

Anyone else come across this?


texts: Improve on these methods for displaying only the country name using Google Maps for EE

texts: How would you display only the country name from an entry that has been geocoded with the fieldtype from the excellent Google Maps for ExpressionEngine (GMEE)?


texts:
OK, EE2 used to do this, but it looks like it has been abandoned by default in EE5.

Before, in EE2, if you put in two entries with the same title, EE would adjust the later one, adding a 1 or a 2 automatically if it spotted another entry that had the same title url. This was very handy for recurring events, like monthly board meetings.

ie,

/monthly-board-meeting
/monthly-board-meeting-1
/monthly-board-meeting-2
/monthly-board-meeting-3

The later ones would automatically add a number to avoid url conlicts. Is there a way to do that with EE5??


texts: Adding quotes around a parameter causes error?

texts:
I have the following:

{exp:email:contact_form
    charset="utf-8"
    form_class="customer-email-form"
    recipients={exp:stash:get name='recipients'}
}

Notice that the recipients parameter's value is not in quotes. When I put quotes and try to send an email, I get "no recipients" error. However, if I replace the Stash with hard coded email address(es), I need the quotes to make the email form work.

Is there something wrong? Or is this expected behavior?


texts: Search Multiple Fields with one keyword input in a form with other field searches

texts:
I've seen variants of this question but nothing that matches. There is a form that has multiple dropdown category selectors and a few keyword inputs. This is the field which I would like to also search the entry title.

<input type="text" name="search:resource_additional_names:rhn_historical_name" value="{low_search_keywords}" placeholder="Keywords">

If I try something like:

<input type="text" name="search:resource_additional_names:rhn_historical_name|search:title" value="{low_search_keywords}" placeholder="Keywords">

The results page throws an error. Is there a way to do this?


texts: Is it possible to filter on title when using dynamic_parameters?

texts:
I have a list of products with a filter in the side bar, which allows you to filter by size, country, etc. I want to be able to filter by product name in groups - 0-9, A-C, D-F, etc. The product name, as you can imagine, is contained the entry title.

My dynamic parameters are working fine when it is any other custom field, but not when it is the title (or url_title) that I am trying to filter on. I've even tried filtering by the exact product name, e.g. one of the products is "3 Fonteinen Oude Geuze", but still no luck.

Here's my code, just in case there is something obvious that I am doing wrong:

<form id="more-beer-sort" class="more-beer-sort" method="post" action="{path='{segment_1}'}">
  <label>
    Country:
    <select name="search:cf_more_country" id="search:cf_more_country">
      <option value="">All</option>
      {exp:query sql="SELECT DISTINCT field_id_48 AS cf_more_country FROM exp_channel_data WHERE channel_id=13"}
      <option value="{cf_more_country}">{cf_more_country}</option>
      {/exp:query}
    </select>
  </label>
  <label>
    Style:
    <select name="search:cf_more_style" id="search:cf_more_style">
      <option value="">All</option>
      {exp:query sql="SELECT DISTINCT field_id_49 AS cf_more_style FROM exp_channel_data WHERE channel_id=13"}
      <option value="{cf_more_style}">{cf_more_style}</option>
      {/exp:query}
    </select>
  </label>
  <label>
    Size:
    <select name="search:cf_more_size" id="search:cf_more_size">
      <option value="">All</option>
      {exp:query sql="SELECT DISTINCT field_id_54 AS cf_more_size FROM exp_channel_data WHERE channel_id=13"}
      {if cf_more_size!="Bottles|Draught"}
      <option value="{cf_more_size}">{cf_more_size}</option>
      {/if}
      {/exp:query}
    </select>
  </label>
  <label>
    Name:
    <select name="search:title" id="search:title">
      <option value="">All</option>
      <option value="0|1|2|3|4|5|6|7|8|9">0 - 9</option>
      <option value="A|B|C">A - C</option>
      <option value="D - F">D - F</option>
      <option value="G - I">G - I</option>
      <option value="J - L">J - L</option>
      <option value="M - O">M - O</option>
      <option value="P - R">P - R</option>
      <option value="S - U">S - U</option>
      <option value="V - Z">V - Z</option>
    </select>
  </label>
  <input type="submit" value="Filter List">
</form>

{exp:channel:entries channel="more" dynamic_parameters="search:cf_more_country|search:cf_more_style|search:cf_more_size|search:title" orderby="title" sort="asc" {sn_disable}}
  <!-- OUTPUT PRODUCTS -->
{/exp:channel:entries}

Note, I am using the query module to only show distinct/unique entries in the filter as per this post: Only show distinct entries

Thanks for any help or ideas of how to resolve this issue.


texts:
In attempting to use the Magpie RSS parser, I'm getting the below errors:

A PHP Error was encountered
Severity: User Warning
Message: MagpieRSS: Failed to fetch http://careercenter.gammaiotasigma.org/jobs/?display=rss&keywords=&filter=SHOW_AT%3A740037&resultsPerPage=12.
  (HTTP Error: connection failed (101))
Filename: plugins/pi.magpie.php
Line Number: 1387

A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: plugins/pi.magpie.php
Line Number: 104

In checking http status codes, 101 =

101 Switching Protocols
This means the requester has asked the server to switch protocols and the server is
acknowledging that it will do so

Why would that be considered an http ERROR?

Magpie tag that causes the error:

{exp:magpie url="http://careercenter.gammaiotasigma.org/jobs/?display=rss&keywords=&filter=SHOW_AT%3A740037&resultsPerPage=12" limit="12" refresh="720"}

    {items}

{title}

        {description}

    {/items}

{/exp:magpie}

In THE SAME PAGE, I have this feed and it works:

{exp:magpie url="http://careers.independentagent.com/jobs?resultsPerPage=12&display=rss" limit="12" refresh="720"}

    {items}

{title}

        {description}

    {/items}

{/exp:magpie}

What am I doing wrong? I ran both through the validator and they are both valid feeds.


texts: Force SSL on some URLs but non-SSL on others with .htaccess

texts:
I'd like to redirect requests for certain urls to secure https with .htaccess rules. I found this excellent tutorial:

https://exp-resso.com/blog/post/2011/08/securing-your-expressionengine-website-with-https

Based on this, I can redirect everything in the "account" template group, my system folder and the admin.php file with the following:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond $1 ^(account|system|admin\.php) [NC]
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

This works perfectly. But now I'm trying to find out how to do the opposite, redirect other URLs to non-secure http. I don't want to hard code navigation with http URLs. I'd rather use {path=''} and {site_url} variables.

Also, ideally it would work so that I don't have to hard-code all my non-secure template groups and pages into the .htaccess file.

RewriteCond $1 ^(about|contact|calendar|unicorns|etc) [NC]

This would be too hard to maintain.


texts: Calculation {member_field} * {channel_field}

texts:
Is there a simple way to do this calculation on a page without using PHP on output?
I have a member_field with a value and a channel_field with a value and want to output

{member_field} * {channel_field} =


texts: Installed CE Cache and deployed. Funny thing is that it only caches something when i'm logged on (changed to cache in db and found out). If i use another browser to simulate a logged off user, it doesn't cache.. What could be wrong?


texts: Zoo Visitor Fields Displaying Tag Instead Of Member Data

texts:
I am trying to map the member fields of EE2 to the zoo visitor fields to display the user's previously registered shipping and billing details and I am using the value '{visitor:global:shipping_phone}' to retrieve the values, but the value of the phone field is showing the actual text '{visitor:global:shipping_phone}'. I am wrapping my form fields with the '{exp:zoo_visitor:details}' tag.

I have also mapped the two fields in the backend.

What else am I missing?


texts: NSM Config Bootstrap is not overwriting the settings in database.php

texts:
This is starting to make me tear my hair out. I've worked with NSM config bootstrap (http://ee-garage.com/nsm-config-bootstrap) on several sites now. It enables you to set your database connection details in the bootstrap file, which should override database.php, and they change depending on which server environment you're looking at. The issue I'm having is that changing my connection settings in the bootstrap file isn't overwriting the settings in database.php, so I'm getting connection errors on either the local or the stage, depending on what I put in database.php. My file structure is:

system
    expressionengine
        config
            config.php
            database.php
            config_bootstrap.php

At the bottom of config.php and database.php I have this line:

require_once(realpath(dirname(__FILE__) . '/config_bootstrap.php'));

The relevant part of my bootstrap file looks like this:

// Define the environment settings

$env_config = array();
$env_db_config = array();
$env_global_vars = array();

// Set the environmental config and global vars
if (NSM_ENV == 'local') {
    $env_db_config = array(
        'hostname' => 'localhost',
        'database' => 'database',
        'username' => 'username',
        'password' => 'password',
    );
    $env_global_vars = array(
        'global:cm_subscriber_list_slug' => ''
    );
}
elseif(NSM_ENV == 'staging') {
    $env_db_config = array(
        'hostname' => 'localhost',
        'database' => 'database',
        'username' => 'username',
        'password' => 'password',
    );

    $env_global_vars = array(
        'global:cm_subscriber_list_slug' => ''
    );

    $env_config = array(
        'webmaster_email' => 'webmaster@' . NSM_SERVER_NAME,
        'webmaster_name' => 'Webmaster',
    );
}
else {
    $env_db_config = array(
        'hostname' => '',
        'database' => '',
        'username' => '',
        'password' => '',
    );
    $env_global_vars = array(
        'global:cm_subscriber_list_slug' => '',
        'global:google_analytics_key' => 'XX-XXXX'
    );
}

I know the bootstrap file is being included, as it's also setting things like my template directory and file upload paths etc correctly, it appears that it's just the database settings that it's not overriding. I thought it may be permissions, but database and config files are 666, so it should be ok.

Please let me know what other information I need to include if this isn't enough.


texts: Discussion Forum - Are template tags available for it?

texts:
Based on the documentation, {exp:forum} is available to show the forum in the templates.

But the problem here is that I want the forums to conform to the look and feel of my site.

Are there tags available for this module where we can get more control on the output(like a tag for the header, a tag for the list of boards, etc)?


texts: Looping through channels, outputting field name, field type, field value

texts:
Given any Channel, is it possible to loop through all the entries and output the following:

field name
field type
field value

Assume that the Channel is unknown and can be any Channel. This means that I don't know ahead of time what fields there are in the Channel.

For the field values, I assume that I would need extra logic to display its corresponding values (e.g. a grid might need to have a nested loop, etc.).


texts: Migration from Assets to native File Manager

texts: Is there an easy way to migrate Asset-Fields to the native File Manager without loosing the referenced Image?


texts: Safecracker Registration: which Channel is Member associated with?

texts:
I'm using https://objectivehtml.com/safecracker-registration/. When users register on my site, the channel parameter is set different based on certain business rules. Is there a way for me to later on determine which Channel the current member was associated to?

One possible solution is to have a Channel field to store this particular information. Then I can use the Safecracker tag with Safecracker registration's edit_member="yes", access the Channel data, store it in a Stash, then use it for whatever I need it later on. Seems clunky.

Suggestions?


texts: EE 2.7.1 - Channel Form for new entry not working

texts:
I have completed the editing of entries with Chanel_Forms, but I can't get channel_forms to create an entry. I am running MSM and have EE 2.7.1. Below is my code. You can see this is extremely basic. What is going wrong here? When I submit, the page just refreshes and does not enter the new entry in EE CP.

            {exp:channel:form
                channel="test_channel"
                site="blogs"
                id="newEntryForm"
                return="{site_url}/inline/URL_TITLE"
            }
                Title
                <input type="text" name="title" id="title" value="{title}" maxlength="100" onkeyup="liveUrlTitle();">
                {label:test}
                {field:test}

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

Sorry guys... I bounced off of this project completely. I will rebuild this test environment and make the suggested changes to reply with the results.


texts: Assets, thumbnails not showing up and can't post new images

texts:
Just noticed the Thumbnails of previously published posts in the Assets modal window are not showing up anymore and I can't upload images either in new Post.

They worked fine before.

Using Assets 2.2.2 And EE 2.7.2 Cache folder is writable

Thanks in advance for the help.


texts: How can I prevent a {switch} tag from cycling unless a Switchee case or advanced conditional is true?

texts:
I have a channel entry loop that is outputting entries from three different channels. Entries from each channel are marked up differently, so I have a Switchee case with the value of channel_short_name to determine which channel the entry is in and then output the appropriate markup.

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

{case value="channel_one"}

... (Channel one markup)

{/case}

{case value="channel_two"}

... (Channel two markup)

{/case}

{case value="channel_three"}

... (Channel three markup)

{/case}

{/exp:switchee}

Within one channel, I need to have two different layouts (based on status) and cycle between classes. I'm trying to accomplish this by nesting another Switchee case using status as the value and {switch} to cycle classes.

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

{case value="channel_one"}

... (Channel one markup)

{/case}

{case value="channel_two"}

... (Channel two markup)

{/case}

{case value="channel_three"}

   {switchee variable="{status}" parse="inward"}

   {case value="Featured"}

   {/case}

   {case default="yes"}

   {/case}

   {/switchee}
{/case}

{/exp:switchee}

Finally, the issue I am having is the {switch} markup nested in Switchee seems to cycle on every entry, wether the case it is wrapped in is true or not.

The output is something like this.

Is {switch} working as expected? Is there a different approach I should take on this? Any other plugins I should try?


texts: EE & CartThrob: How to pass custom field variables from Cart to Checkout pages

texts:
In my CartThrob {update_cart_form}, I have a Matrix-populated zip code drop-down field. When a user clicks "Checkout" I want the value of the drop-down menu to pass as a variable to the checkout page and populate the billing zip code field. Is this possible?

EDIT: You can actually view the precursor to this by going here: http://dandelionflowershop.com/index.php/website/cart

Keep in mind that you need $40 in your cart before delivery options become available.


texts:
I have made an extension that creates an action. The action has been created and is in the database with an ID of 34. But when I go to the following URL:

http://mywebsite.com/index.php?ACT=34

I get an error page saying:

Error
The action you have requested is invalid.

The method name stored in the database is post_job and I have this method defined in my extension class. Anyone know why this is happening?


texts: Interesting Playa bug requiring two closing tags of nested exp:playa:children tag pair

texts:
{exp:channel:entries}

    {exp:playa:children var_prefix="parent"}

        {parent:exp:playa:children var_prefix="child"}

        {/parent:exp:playa:children}
        {/parent:exp:playa:children}

    {/exp:playa:children}

{/exp:channel:entries}

For whatever reason, I can get all the data I want inside all these loops ONLY if I have that second closing {/parent:exp:playa:children}. If I leave only one, which is what one might thing to be correct, it doesn't work properly. Am I doing something wrong?


texts: Stash filter entries by categories using match / against

texts:
First of all I will collect all the website categories in a particular category group. Then, for each category group I will generate my Markup that will be fed to Jquery to generate navigational tabs. So far so good.

Then I will fetch (inside the category loop) the channel entries and I would like them to be actually filtered by category_id.

I get no output with this code:

    {exp:stash:set_list name="categories" scope="site" parse_tags="yes"}
        {exp:channel:categories category_group="1"}
        {stash:cat_name}{category_url_title}{/stash:cat_name}
        {stash:cat_id}{category_id}{/stash:cat_id}
        {/exp:channel:categories}
    {/exp:stash:set_list}

    {exp:stash:set_list name="where" parse_tags="yes" process="end" parse_depth="3"}
        {exp:channel:entries channel="dove_siamo" dynamic="no"}
        {stash:item_entry_id}{entry_id}{/stash:item_entry_id}
                    {categories}
                    {stash:this_category}{category_id}{/stash:this_category}
                    {/categories}
            {exp:stash:set_list:nested name="address" context="{entry_id}" parse_tags="yes" }
                    {address}
                        {stash:via}{via}{/stash:via}
                        {stash:cap}{cap}{/stash:cap}
                        {stash:citta}{citta}{/stash:citta}
                        {stash:ospedale}{ospedale}{/stash:ospedale}
                        {stash:altro}{altro}{/stash:altro}
                        {stash:centralino}{centralino}{/stash:centralino}
                    {/address}
            {/exp:stash:set_list:nested}
        {/exp:channel:entries}
    {/exp:stash:set_list}

    {exp:stash:get_list name="categories"}

Dove siamo

{cat_id}

                            {exp:stash:get_list:nested name="where" match="#^{this_category}$#" against="cat_id"}

{this_category}

                                {exp:stash:get_list:nested_1 name="address" context="{item_entry_id}"}
                                {via} {cap} - {citta}

                                {ospedale}

                                {altro}
                                {/exp:stash:get_list:nested_1}
                            {/exp:stash:get_list:nested}

    {/exp:stash:get_list}


texts: Issue setting entry_date via channel form

texts:
I'm getting a problem with the entry_date field when creating an entry via a channel form.

I have set the following parameters on the channel form:

  include_jquery="no"
  include_assets="no"
  datepicker="no"

and I am initializing the date picker field myself as I want to set the date format and date range myself:

        //init our datepicker setting date range
    $date.datepicker({ minDate: -90, maxDate: "+0D"});

    //set our date format based on locale
    var locale = navigator.language || navigator.userLanguage;
    if (locale === "en-US") {
            var dateformat = 'mm/dd/yyyy';
        }
        else {
            var dateformat = 'dd/mm/yyyy';
        }
        $date.datepicker({dateFormat: dateformat});

After submitting the form When I look in the database (exp_channel_titles) it has the correct values for the year, month and day columns but the entry_date column is saving a timestamp that is always a day behind.

If I change the channel form to use the native EE implementation of the date picker, i.e set my parameters to :

  include_jquery="no"

thereby having EE initialize the date picker field then the date is saved correctly but this way I am unable to set the date format or date range.

Any suggestions?


texts:
I have 3 channels

City

-Name of City(Title)

University

-Name of School(Title)
-Address
-City(Relationship Field With City Channel)

Professor

-Name of Professor(Title)
-University Name (Relationship field with University Channel)
-Gender
-Salary
-Experience

Now What I have to do is On City Page I have to list all University and when i click on that university then on that University Page I have to show all Professor teaching in that University

The Code I am using is

  {exp:channel:entries channel="university" limit="1" url_title=segment_2}
  {title}
  {address}

  {relationship_field="universityname"}

  {if relationship_field:gender == 'M'}{if:else}{/if}
  {relationship_field:title}
  {relationship_field:experience}
  ${relationship_field:salary}

  {/relationship_field}

But for some reasons i cant get the value of Professor Channel.
Please Help


texts: Expresso Store 1.6.5 with UPS Shipping: The maximum per package weight

texts:
I'm sure this has been covered and I've seen the updates in 2.0 that have fixed this issue but, is there a work around for Version: 1.6.5 pertaining to "The maximum per package weight for the selected service from the selected country is 150.00 pounds." error.  I want to break these up into multiple packages.

I'm assuming its in here:

<Package>
                    <PackagingType>
                        '.$this->settings['packaging'].'
                    </PackagingType>
                    <Dimensions>
                        <UnitOfMeasurement>'.$dimension_units.'</UnitOfMeasurement>
                        <Length>'.sprintf("%.1f", $order_length).'</Length>
                        <Height>'.sprintf("%.1f", $order_height).'</Height>
                        <Width>'.sprintf("%.1f", $order_width).'</Width>
                    </Dimensions>
                    <PackageWeight>
                        <UnitOfMeasurement>'.$weight_units.'</UnitOfMeasurement>
                        <Weight>'.sprintf("%.1f", $order_weight).'</Weight>
                    </PackageWeight>
                    '.$insure_order.'
                </Package>


texts: Anyone know a WYSIWYG editor with Hex color picker

texts:
I am looking for a WYSIWYG editor for EE2 that allows you to drop in a hex color. Any got any ideas?

I looked at Wygwam, Editor and Expresso but none of them seem to have any color control. Any thoughts?


texts: I can't seem to find any information on whether the add-on Zoo Flexible Admin is going to be ported to EE3. DevDemon has been less than helpful and has no information about what they are going to do with this add-on. Has anyone been able to find out whether or not Zoo Flexible Admin will be ported to EE3?


texts: Index Categories in Expression Engine search results

texts:
I have a site that needs to include category names as a parameter for search results that's keywords might be the cat name.

Anyone know of a way to do this, or possibly a plugin that converts a chosen set of categories to field data automatically so I can spoof it.

Ta.


texts: Objective HTML Google maps for ExpressionEngine

texts:
Hi wondering if anyone can help.

Using Google maps for expression engine from Objective html.

I have a channel called "franchise"

In each of the entries i will have "one" plot based on their postcode.

{exp:channel:entries channel="franchise" status="open" dynamic="on"}
  {exp:gmap:init id="map" scrollwheel="false"  style="width:100%;height:300px"}
  {map_position id="map" zoom="10"}
{/exp:channel:entries}

The above code is on the view page of the entry, This all works great for showing that one marker and even if i add another marker using the fieldtype that works great also. Just to check though this is the correct syntax? Obviously it works but if anyone can tell me if it is wrong in any way would be much appreciated.

Anyway...

I am wondering how i can have a main page that pulls through all the plots from every entry that have been added into the fieldtype and the syntax i need to pull that through. I have had a look at the docs but cant quite get my head around it.

When i click the marker i want to be able to show the title of the entry also.

Thanks to anyone that can help.


texts:
I'm using an embedded template to include the  for my site.
I want to use Google Analytics custom variables to track visitor information for logged in users so thought I could selectively show the Analytics code if a user is logged in using the {if logged_in} conditional.

So in a  tag have put the following:

{if logged_in}
// define a Visitor-level Custom Variables based on the member ID
_gaq.push(['_setCustomVar',1,'Member ID','{member_id}',1]);
{/if}

If the user is logged in then the code works as expected.
However if a member is not logged in the template is writing the following to my HTML:

{if FALSE}
// define a Visitor-level Custom Variables based on the member ID
_gaq.push(['_setCustomVar',1,'Member ID','0',1]);
{/if}

Any thoughts why this might be happening? I would expect that if nobody is logged in the site would return nothing.

Cheers,

Cole


texts:
Is there an easy way to search within a Matrix field for a particular value and if it matches to display the associated entry? Similar to how the "search:" parameter allows you to constrain Channel Entries output based on content within your fields. I want to do something like this:

{exp:channel:entries
    channel="shows"
    search:show_uid="={segment_2}"
    limit="1"
    show_expired="yes"
    dynamic="off"
}

"show_uid" is the name of my Matrix field and the value I'm trying to match is in column 2.


texts: Combining multiple inputs in to single textarea

texts:
I would like to use freeform to make an enquiry form that lists several products each with a quantity input field. On submit these would combined in to a single textarea field, each on a separate line.

Is this something that is possible within freeform?


texts: Assign different and specific subfolder to each Member with Assets

texts:
i've to assign a subfolder to each member so when "User1" uses the Assets field to upload his photo, this is stored in a subfolder "main_upload_folder/user1_subfolder/".
When "User2" uses the Assets field to upload his photo, this is stored in a subfolder "main_upload_folder/user2_subfolder/"

And this for each member, so when user upload a photo other users can't see other's member photo.

Is it possible?


texts: Full Channel Name with space prevents channel from displaying

texts:
If I remove the space the channel works,

I have a channel with the a name containing spaces, and it wont show on the site, if I remove the space the channel works fine


texts: Matrix 2.6.1 not working with EE revisions

texts:
We have an older version of EE (2.5.1) and Matrix was not saving standard EE revisions of an entry.

The field was upgraded to the latest (2.6.1), but it's still not saving any revised data. This is true for both editing an existing cell/row or adding a new row.

The changelog suggests that EE revisions issue was resolved with Matrix version 2.5.5 and 2.5.6 (https://docs.pixelandtonic.com/matrix/changelog.html).

Both EE cache and browser cache was released before testing.

Has anyone else had this issue? If so, how can it be resolved?


texts: Stash - {exp:stash:is_empty} or {exp:stash:not_empty} is not working properly

texts:
I have this code. Inside the stash tag pair, there is a loop that gets a list of
author_ids based on certain conditions

{exp:stash:set name="author_ids" trim="yes" parse_tags="yes" parse_vars="yes"}
    ...
    {!-- TODO: Loop --}
    ...
{/exp:stash:set}

I outputted the code below for debugging purposes

exp:stash:author_ids - [{exp:stash:author_ids}]

{exp:stash:not_empty name="author_ids"}

{exp:stash:is_empty name="author_ids"}

The interesting thing is that this is the output for when I have a list of author_ids...

exp:stash:author_ids - [175|176|]
1
0

...and this is the output when there wasn't any author id that was set

exp:stash:author_ids - []
1
0

This is strange.

In both cases, why does the empty functions of stash return the same result for both cases
when its apparent that in one case, the value is empty and the other is not empty?


texts: Custom URL structure using Playa segments

texts:
How can I build a custom URL structure using Playa fields as segments?

Like this:

http://example.com/templateGroup/template/playaParent/playaChild


texts:
I search how to have a entry with multiple pages if the product created has multiples colors.

Indeed, i work on a product website and my client want to have the possibility to define a product in different color but he wants one channel in admin but several pages in front-end. And in search system, he wants to find only one product :-(

There is a possibility (module, add-on, custom field) to have a system in admin when it's activate it's create multiple pages but with only one channel.

I hope someone'll understand what i try to do :-)

Thanks.


texts: Duplicate Entries in Backend of Playa Field 4.4.5

texts:
I'm currently working with Playa on a project and having an issue where playa is creating what looks like duplicate items in its list, when editing a entry based on any number of categories being selected for that entry.

I have attached a video for easy reference of the bug I am encountering. I have used playa on many other projects and have not run into this issue before.

Video Example of Issue


texts: SQL help to remove an imported text error

texts:
We recently migrated a site, and any line break imported as /n. This was not a huge deal for the templates, but it is for the entries.

This is for an EE3 site, and I just don't write SQL code that much. Can I get some assistance writing a query that will replace /n with <br /> in field_id_1 for all entries whose channel id is 2?


texts: Linking to an entry's position in a paginated list

texts:
For one of my channels there is no template for displaying a single entry. Entries are only ever displayed in a list on a landing page, which is continued on the paginated sub-pages, like:

http://website.com/landing/P6

This channel is searchable. When an entry appears in the search results, I want to create a link to its position in the paginated list.

So if the entry is found on the landing page (the first page of the list), the link will look something like:

{title}

And if the entry is further back in the pagination:

{title}

From within the search results, what is the least expensive way to determine where the entry falls within the pagination? All of my ideas would likely require a lot of unwanted additional queries.


texts: Percentage discount for X number of item options in Cartthrob

texts:
I have products in a channel that each have a CartThrob Price Modifier to choose a size.

What I would like to do is to give a customer 10% off if they buy more than 10 of any of those options in the Price Modifier.

I was wondering if it's possible to have a discount like this?

Thanks


texts: Need help with the MX Zip plugin for EE 2.7+

texts:
I've been using the MX Zip plugin for a while, but one function it used was deprecated in version 2.7.

Call to undefined method EE_Functions::remove_double_slashes()

It's a free plugin (http://www.eec.ms/add-ons/mx-zip), but it looks like it has not been updated for a while. Has anyone found a workaround for this?


texts: Stash Get_List outputting additional empty item

texts:
I have a client that needs a slider that can either show text, or a "tweet" (using CE Tweet for getting the tweet's info). I'm using Stash, and thought this would be the best way to get there:

    {exp:channel:entries
        channel='slides'
        dynamic='no'
    }
        {exp:stash:set_list
            name='home_slides'
            parse_tags='yes'
            parse_depth='2'
        }
            {if slide_type == 'tweet'}
                {slide_tweet type='show'}
                    {stash:list_text}{text}{/stash:list_text}
                    {stash:list_attribution}{user_name}, {user_screen_name}{/stash:list_attribution}
                    {stash:list_cta} Retweet{/stash:list_cta}
                    {stash:list_link}https://twitter.com/intent/retweet?tweet_id={id_str}{/stash:list_link}
                {/slide_tweet}
            {if:else}
                {stash:list_text}{slide_text}{/stash:list_text}
                {stash:list_attribution}{slide_source}{/stash:list_attribution}
                {stash:list_cta}{slide_call_to_action}{/stash:list_cta}
                {stash:list_link}{slide_link}{/stash:list_link}
            {/if}
        {/exp:stash:set_list}
    {/exp:channel:entries}

This is where I'm outputting the list (simplified slightly):

    {exp:channel:entries
    channel='pages'
    limit='1'
    require_entry='yes'
}
    {exp:stash:set parse_tags='yes'}
        {stash:page_title}{title}{/stash:page_title}
        {stash:page_content}

                    {exp:stash:get_list name='home_slides' prefix='list'}

                                        {list_text}

                                        {list_attribution}

{list_cta}

                    {/exp:stash:get_list}

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

Now after my actual entry gets outputted, another "slide" gets put into my template, but all the stash-variables in that list-item are empty. Any idea as to where this emtpy item might come from?

Thanks!

Steven


texts: Embed variables in the Query Module for expressionengine

texts:
Having an issue with the following sql within the query module.

SELECT
    exp_channel_titles.entry_id,
    exp_channel_titles.title,
    exp_channel_titles.url_title,
    exp_channel_titles.status,
    exp_channel_titles.channel_id,
    exp_channel_data.field_id_66,
    exp_channel_data.field_id_50
FROM
    exp_channel_titles

INNER JOIN exp_channel_data ON exp_channel_data.entry_id = exp_channel_titles.entry_id

WHERE
    exp_channel_data.field_id_50 = '{embed:member_group}'
OR
    exp_channel_titles.entry_id IN ({embed:additional_projects})
AND
    exp_channel_titles.status = 'open'
AND
    exp_channel_titles.channel_id = '14'

This issue I'm having is if the embed:additional_projects variable has no value (or contains no additional project IDs) it throws an error.

The real test for access to an entry comes with the member group I would just like to add additional entries on a per ID basis if need be. Thanks in advance for any insight or help.


texts: Using Datagrab module with Structure and blueprints, it is throwing error on edit channel entry

texts:
I am having a CSV file and i am using Datagrab module to importing CSV for a channel (eg: XYZ) . It works fine.

Also i am using Structure and blueprints module in my project.
After successful CSV import, when i access the channel (named as eg: XYZ), it is showing that entries BUT when i edit a entry then i am getting following errors :

A PHP Error was encountered
Severity: Notice
Message: Undefined index: 4318
Filename: blueprints/ext.blueprints.php
Line Number: 174

A PHP Error was encountered
Severity: Notice
Message: Undefined index: 4318
Filename: structure/tab.structure.php
Line Number: 164

How can i remove the errors?


texts: Datagrab doesn't import relationships consistently

texts:
I've got datagrab set to import from a google doc spreadsheet in csv mode. There isn't much data in the grand scheme of things and only 250 records, but there are about 5 columns that are for relationship columns matching to other fields.

Now, i have php memory limit of 512mb and plenty of processing time but it has serious issues in not importing the data for the relationships.

I can't see any way to resolve this :(


texts: Disable freeform if user has submitted details and returns to the site

texts:
Is there a way to disable a freeform form if a user has already submitted their details? There is a plugin that can pull the users IP but how do I compare to that to the list of IP addresses of submitted freeform entries?

{if "{exp:get_post_var type='user_ip'}" == "127.0.0.1"}
    YES, it is 127.0.0.1
{if:else}
    NO, it is not 127.0.0.1
{/if}


texts: Porting a text input field to file field in Expression Engine

texts:
I have a site that has a lot of legacy images taken from the site they were on previously, these are stored in a field called legacy-images as a text input. This is basically the folder path from the domain root.

The problem is I need to harness the power of the file resizing options EE has built in and to do this I need to have all these images setup as a file field. Manually moving them isn't an option as there is around 1500 entries. Any idea how I can achieve this?


texts: Problem importing database - import hangs on exp_stash table

texts:
Here's a weird one. I need to set up a dev server, so I'm importing a DB from and existing production EE install. The import proceeds fine until it gets to the exp_stash table. Then I get MySQL error 150. I've tried this on two different servers, but I get the same error.

CREATE TABLE  `exp_stash` (
`id` INT( 11 ) UNSIGNED NOT NULL AUTO_INCREMENT ,
`site_id` INT( 4 ) UNSIGNED NOT NULL DEFAULT  '1',
`session_id` VARCHAR( 40 ) DEFAULT NULL ,
`bundle_id` INT( 11 ) UNSIGNED NOT NULL DEFAULT  '1',
`key_name` VARCHAR( 64 ) NOT NULL ,
`key_label` VARCHAR( 64 ) DEFAULT NULL ,
`created` INT( 10 ) UNSIGNED NOT NULL ,
`expire` INT( 10 ) UNSIGNED NOT NULL DEFAULT  '0',
`parameters` TEXT,
PRIMARY KEY (  `id` ) ,
KEY  `bundle_id` (  `bundle_id` ) ,
KEY  `key_session` (  `key_name` ,  `session_id` ) ,
KEY  `key_name` (  `key_name` ) ,
KEY  `site_id` (  `site_id` ) ,
CONSTRAINT  `exp_stash_fk` FOREIGN KEY (  `bundle_id` ) REFERENCES
`exp_stash_bundles` (  `id` ) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = INNODB DEFAULT CHARSET = utf8 ROW_FORMAT = COMPACT;

The error is

#1005 - Can't create table 'versastu_oakcrk.exp_stash' (errno: 150)

Research shows it has something to do with InnoDB table type/db type, but solution is unknown.


texts: SafeCracker: «You must specify a valid entry to edit.»

texts:
SafeCracker gives me a Error after submitting an edit-form…

{exp:safecracker channel='xy' … entry_id='{segment_3}'}

The URL contains the entry_id @ segment_3
All field-values are included in their respective custom fields
If I look into the rendered HTML, the entry_id is all over the place like: <input type="hidden" name="entry_id" value="15771"> and others (RET, URI) … ditto for the correct values for author_id, channel_id, site_id etc. (see below)

If I submit the form, the following error gets displayed.

  You must specify a valid entry to edit.

BUT an interesting fact: the entry gets saved anyway!

System: EE 2.5.5

EDIT: All the hiddenFields:

<input type="hidden" name="ACT" value="21">
<input type="hidden" name="RET" value="http://domain.com/dir/dir2/15771">
<input type="hidden" name="URI" value="dir/dir2/15771">
<input type="hidden" name="XID" value="">
<input type="hidden" name="return_url" value="dir/dir2/success/15771">
<input type="hidden" name="author_id" value="1">
<input type="hidden" name="channel_id" value="16">
<input type="hidden" name="entry_id" value="15771">
<input type="hidden" name="site_id" value="1">
<input type="hidden" name="return" value="dir/dir2/success/15771">
<input type="hidden" name="allow_comments" value="y">


texts:
I have the following problem:
- Let's say I'm on domain.com/en/support/manuals
- Using pagination I get the following URL on Page 2: domain.com/en/support/manuals/domain.com/en/support/manuals/P10

Once I manually remove the duplicate part, it works just fine. Whats wrong here?

Thanks in advance!

EDIT: Here's the template code:

{exp:channel:entries channel="manual" limit="10" paginate_base="support/manuals"}

      {manual_relationship}
        {manual_relationship:title}
      {/manual_relationship}

      {categories}{category_name} {/categories}

      {manual_size}

  {paginate }

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

  {/paginate}

  {/exp:channel:entries}


texts:
I’m using a modified comment form as a way to collect and display company names on this page:

http://www.drivesmartva.org/current-projects/distracted-driving/distracted-driving-safety-partners/

The orderby tag has worked well until now, but suddenly started listing new entries in chronological order at the bottom of the existing alphabetical list.

I've checked and double-checked the code, and everything seems in order:

{exp:comment:entries orderby="comment" sort="asc" entry_id="{structure:page:entry_id}"}

{comment}

{/exp:comment:entries}

Has anyone run into a similar problem with comment order?


texts:
Does anyone know if there is a way to do what Restricted Area for EE1 does but for EE2?

https://devot-ee.com/add-ons/restricted-area

This is a hugely important feature that would allow members to be given specific permissions not only based on which group they belong to, but also on a member specific level as well.

So for example, the user belongs to Group A which has only access to Channel A. Another user belongs to Group B which has access to Channel A, Channel B and Channel C. This feature would allow another user from Group A to also have access to Channel B only (alongside their Group A permission of Channel A).

Thanks!


texts:
In my template, my custom plugin is parsed before others plugins, is there a way to say to EE that I want my plugin to be parsed at the end?

    {exp:gwcode_categories parse="inward"}
{exp:mycustom_plugin:s value="{cat_id}"} //ex: 1, my log file says this is ok!

{/exp:gwcode_categories}
{exp:mycustom_plugin:g value"} //should say:1 but in my log file, the constructor of my plugin is called before GWcode Categories

My plugin has persistence, and that works fine outside EE 2.5.5


texts: DataGrab: How to use relative URL? Or edit URL?

texts:
I would like to configure DataGrab to use a relative path for its CSV importing. Is this possible? The reason for this is that I need to duplicate this site and don't want to hard code the domain name in the URL.

Alternatively, but not ideal, is there a way to edit the URL path? Maybe I can just edit the URLs for each copy of the site.


texts: What is the benefit of using {exp:stash:static} over {exp:stash:cache}?

texts:
I am using fragment caching in most places with Stash to cache the data from ExpressionEngine on my current project, but there are a few instances where pages are totally static, such as the about page. There is nothing dynamic at all going on with it, and therefore nothing that needs to be escaped from caching.

It seems I could just as easily use either {exp:stash:static} as {exp:stash:cache}. I set up the template with {exp:stash:cache} and I now see it sitting the db as a fully cached flat file. If I were to use {exp:stash:static}, then it would do the same thing but write it as a file to the specified directory instead of the database, I guess.

So my question is, for instances like this when there is no content that needs to be escaped from the cache, is one method significantly more performant than the other? I'd assume using the static cache is more performant as then there is no call to the database, but I'd appreciate some views on this before choosing it as my preferred method. Thank you!


texts: Text Input Field Being Wrapped in  tags only for first entry

texts:
I'm running 2.7.2 and I have a text input field called article summary that is set to format none.

However on the front end the input is getting wrapped in p tags but weirdly enough it's only happening on the first entry.

My code is:

{article_subtitle}

And on the front end comes out as:

Article Subtitle content

I've tried the suggestion on this post but with no luck: Unformatted Field Data Wrapped in
 Tags on Output

Any thoughts?


texts:
I have a problem about my control panel menu loading
it’s run slow, especially about anything run with js i think
the hover menu like menu Design, Members, etc are not showing up
then i try to enter template manager link after i view the source code
but it’s not working when i try to select template groups

i think the problem is the js, because after i view the source code, then i try to open every js in the page, but there is one link that slow to load

it’s located here: /admin.php?S=025e0f4f2e17084ef824276564d10053&D=cp&C=javascript&M=combo_load&ui=core,widget,mouse,position,sortable,dialog&plugin=ee_interact.event,ee_broadcast.event,ee_notice,ee_txtarea,tablesorter,ee_toggle_all,ee_navigation&file=json2,underscore,cp/global_start&v=1383269521

have anyone ever experienced problem like this? how to solve this problem?

Thanks,
Best Regards,
.mafaik


texts: Programmatically Adding an Item to an Expresso Order

texts:
I have a client that needs to add a "free gift" to their customers' orders for every $100 that a customer purchases.

I'm using ExpressionEngine 2.9.0 and Expresso Store 2.3.1. I've created an extension hook that executes on "store_order_recalculate_end." The hook is executing and I'm using XDebug to debug our store.

I'm trying to figure out how exactly to add an item to the order programatically. I found the function

addItem($item_attributes, $form_params)

in the file:

/system/expressionengine/third_party/store/src/Store/Model/Order.php

Our store is working as expected with and without the hook installed. I captured the $item_attributes and $form_params values when I post an item from the shopping cart using XDebug and by setting breakpoints in Sublime Text. Using those captured values, I duplicated those arrays in my extension hook, and referenced the entry_id of the free gift that we want to give to customers.

The following code in my hook creates the following arrays and then executes the addItem() function of the Order class.

$item_attributes = array(
    'entry_id' => $this->freeGiftCardEntryId,
    'item_qty' => 1,
    'line_item_id' => rand(0, 10000),
    'is_gift_to' => '',
    'is_gift_from' => '',
    'is_gift_special_note' => '',
    'is_gift_shipping_full_name' => '',
    'is_gift_shipping_address' => '',
    'is_gift_shipping_city' => '',
    'is_gift_shipping_state' => '',
    'is_gift_shipping_province' => '',
    'is_gift_shipping_country' => '',
    'is_gift_shipping_zip_code' => '',
);

$form_params = array(
    'form_id' => 'product_form_0',
    'form_class' => 'product',
    'input:line_item_id' => 'Line Item ID',
    'input:is_gift_to' => 'Is Gift To',
    'input:is_gift_from' => 'Is Gift From',
    'input:is_gift_special_note' => 'Special Note',
    'input:is_gift_shipping_full_name' => 'Gift Shipping Full Name',
    'input:is_gift_shipping_address' => 'Gift Shipping Address',
    'input:is_gift_shipping_city' => 'Gift Shipping City',
    'input:is_gift_shipping_state' => 'Gift Shipping State',
    'input:is_gift_shipping_province' => 'Gift Shipping Province',
    'input:is_gift_shipping_country_' => 'Gift Shipping Country',
    'input:is_gift_shipping_zip_code' => 'Gift Shipping Zip/Postal Code',
    'encrypted_params' => 1
);

$order->addItem($item_attributes, $form_params);

When I add an item, I can see that my hook is executing, and I can see it calling the addItem() function for every $100 spent. However, the item is never added to the cart. I believe that it "fails" on line 607 of the Order class in the addItem() function where it executes the following:

$item = $this->findExistingItem($entry_id, $modifiers);

I've compared the XDebug tracing information using a DIFF tool. Comparing a product that is added via the UI, and the product that is added programmatically, I can only see a few minor differences. From what I can tell, they are exact, except for some posted form values that aren't present on the one added programatically. However, I wouldn't call them specifically important.

My questions are, is this how you would add something programmatically? In addition, if this is how you would add it, are there other variables I need to post to identify the current user session?


texts:
Is it ok to use an early parsed variable/snippet with the following inside?

logged_in AND member_group == "1" OR member_group == "2" OR member_group == "3"

So that i can use the following at the top of my template

{if {variable}} Content {/if}

It works.... I just want to know if its bad practise or comes with any issues etc? If it is a problem, can anyone suggest another way i can lock down my templates but have one place that I can edit the statement if anything changes. This would save me changing it on every template.


texts: Closest location using Google Maps for ExpressionEngine

texts:
I am using Google Maps for ExpressionEngine for a store locator but need to build some additional functionality for a small area on my home page.

I need to show the closest store location on a map using the visitor's current location and also list out the details of the closest store (title, address, distance from closest location, etc).

Google Maps for ExpressionEngine does not do this out of the box and I'm unsure how to achieve this.

I know the {exp:gmap:current_location} tag will draw out a map with the visitor's location, but I don't know how to get the rest to work.

Any help is appreciated.


texts:
I have a weird problem: my EE URLs are generated with an extra "W". For instance, on http://www.example.com,

{title}

will produce (notice that www becomes wwww):

wwww.example.com/index.php/article/details/article-name

I can't find anything in the admin where I may have typed in the URL wrong.

Does anyone have an idea for how to solve this?


texts:
I'm using Solspace Importer to create channel entries from external XML.

It works fine but only with first title/description element (lang="es"). How can I grab data from (lang="en") children?

My XML structure is below & full huge file is here.

<root>
    <property>
        <descriptions>
            <title lang="es">
                <![CDATA[ Bungalow en Altea Hills ]]>
            </title>
            <title lang="en">
                <![CDATA[ Bungalow in Altea Hills ]]>
            </title>
            <description lang="es">
                <![CDATA[
                    Bonito bungalo en Altea Hills con vistas al mar.
                ]]>
            </description>
            <description lang="en">
                <![CDATA[
                    Lovely bungalow in Altea Hills with sea view.
                ]]>
            </description>
        </descriptions>
    </property>
</root>


texts: Safercracker radio buttons – show chosen on refresh of page

texts:
Trying to show selected radio buttons (which assign entry to categories) on Safecracker page – updates entry okay ie assigns to right category but on refresh of Safecracker page all radio buttons are empty?

<fieldset>

Category you belong to

Please choose ONLY 1

{exp:channel:categories
  category_group="1"
  style="linear"
  channel="live"}
<input type="checkbox" name="category[]" value="{category_id}" />
{category_name}
{/exp:channel:categories}

Any pointers appreciated, thanks!


texts: Can I revoke or regenerate an expressionengine license number?

texts:
Long story short, client has not paid but I bought and registered with my account. Client has expressed they have no intention to ever pay for serial as agreed, I would like to use this for another client instead so I'm not out $300!

Can I regenerate the license number for this particular copy?


texts: Discussion Module emails only going to last person to comment

texts:
I have a strange problem. We are using EE2.5.3 and Discussion Forum3.1.9. I also have Forum Subscribe2.3.2 installed. On our forums, if someone enters a new reply to a topic which has several people subscribed, the module will send an email only to the last person who replied to that thread. I have tested by changing the email protocol and uninstalling Forum Subscribe. I am currently using SMTP as the email protocol.

Any help or other ways to troubleshoot would be appreciated.

Edit:
After further trouble shooting, it appears that the issue is with the thread subscription mechanism in EE. If a new thread is started, everyone subscribed to that forum with Forum Subscribe receives an email as they should. However, if all of those people then subscribe to the thread in EE, when anyone responds, the response only goes to the last person that responded (if they have left selected the "Notify me via email..." checkbox). Any ideas?

Thanks,
   Steve


texts: DevDemon Subscriptions - Your card was declined

texts:
I'm using DevDemon Subscriptions 1.5.3 and EE 2.9.2.  I've installed the demo templates, set up some subscriptions and added the Stripe details.  When I try and make a payment using the Stripe test cards, it comes back saying Your card was declined.

Is there anything else I need to do to put through some test payments?


texts:
We are running a high traffic site in expression engine 2.10.1.This has a page-views of 150k daily.The server is load balanced and is running fine.
Recently we have strange issue of some pages being requested concurrently for more than 50-100 times from an an ip in less than a second.This increases the database connections and database load which brings down the site.Is there anyway to prevent this or reduce the db load on such incidents


texts:
I've been trying to use the sample code from Pixel and Tonic for accessing playa data in a matrix field (ee2.10, playa 4.5.2, matrix 2.6.1). They provide a very clear example which I cannot get to work. Here's their example which is exactly what I want to accomplish:

{my_matrix_field var_prefix="spkr"}
    {spkr:favorite_bands} {!-- a Playa column --}
        {albums var_prefix="albm"} {!-- a Matrix field inside the band channel --}
            {spkr:row_count}.{albm:row_count} - {albm:album_title}
        {/albums}
    {/spkr:favorite_bands}
{/my_matrix_field}

However, using this as I guide I get no results. I've had to modify the above code and instead of accessing the playa column as suggested above, I've had to resort to a playa children tag which seem less efficient. Here's my code using the above as a guide that results in no output from the playa column. I'm wondering if other's have tried using P&Ts example with or without success.

{neighborhood_plans var_prefix="npd" search:neighborhood_plan_availability="not hide"}{!-- Matrix field in neighborhood channel --}
    {neighborhood_plan var_prefix="pd"}{!-- Playa column in matrix field in neighborhood channel --}
        {pd:title}
    {/neighborhood_plan}
{/neighborhood_plans}


texts: Custom plugins vs query tags: advantages and implementation

texts:
An answer to another question touched on the use of writing custom plugins as a more robust alternative to writing a SQL query in a template via the {exp:query} tag.

What are the advantages/pitfalls of using a custom plugin over the {exp:query} tag?
What patterns should be used to maximise reusability (eg multiple plugins vs single plugin with multiple methods etc)
How best should custom plugins of this sort be documented before handing off an EE install?

Extra credit for code examples!


texts: {option_value} how to pull from database

texts:
I am very new to CartThrob and EE so excuse my ignorance.  I am charged with pulling order data from the database so I can write that data in our business system.

In the database we have stored, I believe, in {option_value} the item code for our inventory.  I have looked through all the fields in exp_channel_data for that information but can't seem to find it.

In EE, I go to CartThrob, Products, Store-Products.  Look at one of the products, under size options, there’s a field Option Short Name.  Where is that stored?


texts: Adding freeform PRO to expression engine

texts:
I have had a website built for me using EE and am now needing to add a plugin. I free form lite installed and put in the license key for freeform PRO but cannot access CRM area. (keeps saying to upgrade).

Do I upload the plugin add-on to the general website files for PRO?

I see only a limited view in the back office (I guess the way the CMS was built). and nowhere specific to upload the PRO plugin. Any help would be great.


texts: title_permalink is showing entry number instead of url_title

texts:
Never seen this before so I'm guessing it will probably be something small I missed. I have a title_permalink that is generating a url with the entry_id at the end instead of the url_title. The enewsletter_articles tag is a Playa field...

The generated url is site.com/enewsletter/article/255
it should be site.com/enewseltter/article/article-url-title

{exp:channel:entries channel='enewsletter_issue' disable='categories|member_data|pagination' limit="1" dynamic="no" sort="asc"}

{title}

    {enewsletter_articles}

{title}

        {summary}
        &raquo; Read More
    {/enewsletter_articles}
{/exp:channel:entries}


texts:
Is it possible to create relationships in freeform pro similar to how you can create relationships between channels?

I have two channels, a freeform for each, and a need to relate the information from each using a third form. I know I can do a lot of this using channel forms but I really like some of the functionality that freeform gives me.

I guess a third option is to tie in the freeform into the channel as written in the freeform docs.

If anyone has any suggestions I would certainly welcome your input. Thank you.


texts: P&T List: Information wrapped in quotes dropped on save

texts:
We are using P&T List for one of our channels. On save, all content wrapped in quotes is dropped.

So:

  "I like beautiful melodies telling me terrible things." ― Tom Waits

is saved as:

  — Tom Waits

Of note, placing a space before and after the quote mark keeps the full text, so:

  Clear the thistles and brambles, Whistle " Didn't He Ramble "

...will save as entered.

This is an issue especially since we are looking to enter dimensions in the P&T list field (like 3" x 4.25")

Of note, the issue appears intermittently, deleting content between quotation marks on roughly 80-85% of the saved entries, but leaving a lucky few to survive. As of yet, we haven't been able predict which ones are saved.


texts: user_delete_account_end hook doesn't appear to be working

texts:
Firstly apologies for my explanation and terminology, this is a relatively new area for me.

I've built an extension which uses three hooks:

user_register_end
user_edit_end
user_delete_account_end

The first two are working correctly however the last one doesn't appear to be. The hook is referenced in Solspace User in file mod.user.php as is the user_register_end one.

Here are the two hook initiations:

//Register user hook (working)
if (ee()->extensions->active_hook('user_register_end') === TRUE)
{
    $edata = ee()->extensions->universal_call('user_register_end', $this, $member_id);
    if (ee()->extensions->end_script === TRUE) return;
}

//Delete user hook (not working)
if (ee()->extensions->active_hook('user_delete_account_end') === TRUE)
{
    $edata = ee()->extensions->universal_call('user_delete_account_end', $this);
    if (ee()->extensions->end_script === TRUE) return;
}

And here is my code for both hooks:

//Hook array used to populate the extensions table
$hooks = array(
    'user_register_end' => 'new_client_check',
    'user_edit_end' => 'upd_client_check',
    'user_delete_account_end' => 'del_client_check'
);

function upd_client_check($member_id, $user_object, $cfields) {
    //Function code
}

function del_client_check($member_data) {
    return('working');
    die;
}

During my tests I've been printing out comments or data and killing the function so it stops right away and this has been working fine so far. Now though when I delete a member I'm just shown the successful delete message so the hook isn't being noticed.

I can confirm that all the hooks and methods are in the database correctly.

Can anyone help at all? And if you need to me explain in more detail I'll try my best.

Edit I am using this extension with the Solspace User delete form.

Thank you.


texts:
Is it possible to add custom form fields to the EE comment form? What I would like to do is to require people to be logged in members to post but allow them to comment anonymously.

If I add a checkbox with a "Reply Anonymously" option it doesn't record the checkbox state in the exp_comments table.


texts: How to custom rewrite rule in expression engine?

texts:
I want to make a custom url like this
http://example.com/entertainment/celebrity/call_me_caitlyn_breaks_the_internet

And i wrote the rewrite rule as follows

RewriteRule ^entertainment/celebrity/(.*?)$ index.php?/news_article/$1 [L]

As well as

RewriteRule ^entertainment/celebrity/(.*?)$ index.php?/news_article/celebrity/$1 [L]

Does not work both of them. How to fix this.


texts: Assets Uploads files but says an error occured

texts:
In Assets I can get a response by uploading an image to my 'files' folder, it tells me my thumbs isn't writable but it is.

When I go to upload anything else it just keeps spinning like it's doing something, but when I go to developer tools its hit a 500 error on php upload :

 http://hub/system/index.php?S=b7bf798211af97143dedab31f9b776ae2cb9444b&D=cp&C=content_files_modal&M=upload_file

My other folders I can store images in correctly as they are image only folders, and in my specific folder which is all files I can upload anything, it's just this one file.

I did have another folder pointing to the same location but deleted this, its got full access as I gave iis_usrs full access on all webserver as its an internal intranet only.
I've disabled XSS filtering. Everything is saying it should work but it isn't please help.


texts: Blog posts have 2 urls... /site and /blog. How can I remove /site and redirect to /blog

texts:
Google is indexing 2 different urls for the same blog posts, one has /site the other correctly has /blog. Example...
www.domain.com/site/blog-post-title
www.domain.com/blog/blog-post-title

How can I get rid of /site and redirect to the respective url containing /blog?


texts: Using years as facets in Low Search faceted search

texts:
I am creating a faceted search using Low Search with the help of this post. I would like to include a list of years as a facet, too, but I only want years listed where there is an entry. For example, if I had an entries in 2004, 2005, 2007, 2010 and 2014, I'd want those to be what displays, but not 2006, 2008, 2009, etc. I'm stumped.

UPDATE APRIL 10:
I've made some headway! Using Low's "Ranges" examples (scroll down to "Show entries for a given month"), I created my list of years. I'd really like to be able to generate the range dynamically so that I don't have to manually change the range every year. I created a low variable that outputs the year, but when I use it as the parameter value it creates a list of numbers starting from zero.

Here's my search code with the manual range that works:

{exp:low_search:form form_id="search" result_page="docs/index" query="{segment_2}"}

…other facets…

<fieldset>
    <legend>Year</legend>
    {exp:low_list:each items="2014|2003" as="year" range="yes"}
        <label>
        <input type="checkbox" name="year" value="{year}"{if low_search_year == year} checked{/if} />
            {year}
        </label>
    {/exp:low_list:each}
</fieldset>
<input type="submit" class="btn btn-small" value="Filter" />
{/exp:low_search:form}

And here's my search code with the low variable used in the range, which outputs a list of numbers starting at 0 (the variable when not used as a parameter value outputs just fine):

{exp:low_search:form form_id="search" result_page="docs/index" query="{segment_2}"}

…other facets…

<fieldset>
    <legend>Year</legend>
    {exp:low_list:each items="{exp:low_variables:single var='lv_var_doc_library_published_year' preparse:var_doc_library_sort='desc'}|2003" as="year" range="yes"}
        <label>
        <input type="checkbox" name="year" value="{year}"{if low_search_year == year} checked{/if} />
            {year}
        </label>
    {/exp:low_list:each}
</fieldset>
<input type="submit" class="btn btn-small" value="Filter" />
{/exp:low_search:form}

Does anybody have any ideas about how I can dynamically populate the parameter value?


texts: Only show future entries for specific channel in multi-channel entry loop

texts: I have a channel entries loop where I am pulling data from multiple channels. These entries are then mixed together in the sort order they are returned in. With all but one channel I'd like to restrict it to not show future entries. However, I do need to show future entries for that one remaining channel. What are my options.


texts:
I'm using low:events:entries. I have a page that shows the next upcoming featured event as a picture, then underneath it a list of events, both featured and non-featured. My next upcoming featured event is showing up both in the picture and in the list, and I'd like it to not show up in the list since that looks like a duplicate.

It's under "Upcoming Events" at www.fcs.uga.edu.

I've tried using the entry_id="not {lv_exclude_id}" parameter when making the list, defining lv_exclude_id, an early-parsed Low Variable, as:

{exp:low_events:entries channel="events" show_passed="no" search:events_front_page_feature="Yes" limit="1"}
{entry_id}
{/exp:low_events:entries}

(The same tag that brings up my one featured event.)

But that's not working. Maybe seeding one low:events:entries with another isn't the way to do this. Any ideas?


texts:
I am writing a plugin, and everything is working fine so far. Some of my source data includes booleans. So I want to be able to test for true or false.

{if show_data}

This is some data

{/if}

But it won't work. Are booleans not supported or am I doing something wrong?

EDIT:

Here is a sample of how I would like to assign a boolean.

$array = array('show_data' => true);
$str = $this->EE->TMPL->parse_variables($this->EE->TMPL->tagdata, $array);

return $str;


texts:
Is it possible to limit an entry to just one category in the EE3 CP?
Seems that the only option is to have checkboxes so an entry can be signed to multiple categories.

Is there no way to have it set as a bulleted list? Im sure this was the case with EE2.

Very frustrating that such simple functionality is missing from EE3.


texts: Where are the demo template files stored after installing them?

texts:
I am using the solspace user addon to handle webfacing member login stuff. The installation guide says to install the demo templates in order to see how the addon works. So i install them and they are displayed nicely when i click the link that is provided after i clicked the install demo template button.

How do i get to these files that are being generated? I would like to change where they are located on my server as well as style them differently to match my website. Is this possible?


texts:
It seems many users have issues with Stash and no_results, but as far as I can tell, nobody is trying to do this scenario. Please forgive me if I missed something.

I would like to redirect users to a page if they stumble on the URL for a specific entry for which they do not have permissions, determined by some custom fields specified in {lv_permissions}. To make permissions work, I needed to wrap the entries block in exp:stash:parse process="end", but that seems to have killed my {if no_results}{redirect="site/1"}{/if} line. No redirect occurs, though the content also does not show up, which is good.

Does anyone have an explanation for this behavior and some proper syntax?

{lv_permissions}
{exp:stash:parse process="end"}
  {exp:channel:entries
    channel="my_channel"
    require_entry="yes"
    limit="1"
    {stash:permissions}
  }
    {if no_results}{redirect="site/1"}{/if}
  {/exp:channel:entries}
{/exp:stash:parse}

I tried the no_results_prefix concept, but that doesn’t seem to work for exp:stash:parse.


texts:
EE 5.2.2

I'm using the channel form tag to update a channel from the frontend. It works when I am logged in as my admin user but if another user is logged in the form doesn't even render.

I'm just using a basic form to test the functionality:

    {exp:channel:form channel="{my_channel}" return="/{my_page_index}"}
        <input type="text" name="title">
        <input type="submit" value="Submit">
    {/exp:channel:form}

When logged in as my admin user, the form shows and works just fine. But when another user is logged in the form doesn't render for them.

I was looking for a parameter that is possibly not being applied that would prevent the form from showing to non-admin users in the documentation (https://docs.expressionengine.com/latest/channels/channel-form/overview.html) but didn't find anything that seemed to apply.

What could be the reason why my channel form tag isn't rendering for everyone?


texts: Tracking entry views by logged in member

texts:
I've looked through the questions and responses here in EESE and I've looked at the couple of add-ons that were mentioned. Tracker by Solspace seems close to what I want, but but not quite.

I'm looking to track views of entries - but not just raw numbers as the native entry tracking will allow.  I would like to track, at an entry level, which logged-in members have viewed a given entry.  Then create a reports template that displays this information.  So essentially I want to capture the member ID of the logged in user whenever a specific entry from a given channel is loaded.  Is that possible?

I thought of having each link to a single entry template in fact be a channel form submission of entry ID and member ID.  But that may be more work than it's worth if there is already a simpler way to achieve this. And it doesn't help me with pages that contain multiple entries (list-view templates).  This is a site that is entirely member based

I would appreciate any advice the community can provide.


texts: $db['expressionengine']['cachedir'] - what does it do?

texts:
I have searched Ellis Labs docs, but I can't find any details about the $db['expressionengine']['cachedir'] setting in the database.php config file.

I recently 'fixed' this value (it was pointing to a non-existent directory) as an EE 2.8 site was running very slowly, but this caused problems for a custom plugin that inserts new channel entries by duplicating an existing entry and adding some new field values to the new entry, I'd like to understand how correcting this value caused this.

Also what effects will it actually have on a site if this value is incorrect?

Presumably it's related to $db['expressionengine']['cache_on'] (also in the database.php config file)?

Is it related to $config['enable_db_caching'] in config.php?


texts: Can I use Free form to submit a calendar event in the front and post it the backend for all the events?

texts: Im trying to built a event calendar that uses free form to submit the event home page and then use the calendar. So, if any wants to submit an event they can do so and then someone can go on the backed and approve the event.


texts: Structure Module breaks after 1000 entries

texts:
I cannot reorder pages after reaching 1000 entries in Structure. I get the following error:

"Reordering Failed\n\nYour Structure Tree appears to be out of date.\n\nSomeone else may be editing or you may have another tab with a newer Structure tree.\n\nPlease refresh and try reordering again"

If I delete #1000 and get to 999 it works fine. Why would there be a limit? I can't get EEHarbor to respond to me. Any ideas? Thanks!


texts:
I'm using Expresso Store and having problems with store.js. It loads but returns an error:

  Uncaught TypeError: undefined is not a function

On line 142.

I've built my store locally using Expresso Store and all is working with store.js loading and functioning correctly. I've then made a complete export of all files and DB to a remote staging server as a complete replica and everything is working apart from store.js. It is returning the above error and I can't add any items to my cart.

Any ideas what the problem could be?


texts: Low Seg2Cat not working with category groups

texts:
Am using Low Seg2Cat. Great utility. But having problems now using it with categories in a second category group.

For categories in the initial category group it works fine.
For categories in the second category group I created it generates no responses.

The behavior can be tested on a url generated by this code:

Segment 3 - {segment_3}

Segment 3 Group ID - {segment_3_category_group_id}

Segment 3 Category Name - {segment_3_category_name}

Segment 3 Description - {segment_3_category_description}

category source information

{exp:channel:categories}
    {category_name} (Category ID/url: {category_id}/{category_url_title})
    {if category_description}{category_description}{/if}
{/exp:channel:categories}

In my dataset, categories 1-10 are in Group 1, Categories 11 and up are in Group 2.

Here is a URL generated by the above code for a category in the first group:
http://2gc.eu/pages/_categorytest/presentations

Here is a URL generated by the above code for a category in the second group:
http://2gc.eu/pages/_categorytest/balanced-scorecard

You will see that the Low Seg2Cat tags generate no data for the second example, even though there is data available.

Any idea why this is happening?  I'm sure I'm doing something silly - but documentation for Low Seg2Cat implies that if you don't specify Group-ID in the tag parameters, the results are for all categories.

Grateful for whatever guidance you can offer on this.  Thanks!


texts: I'm working on a site on EE 1, and need to update an old (2.0.4) version to a newer version, b/c theres some problem in IE. Is there anyway I can access EE 1 versions of Wygwam?


texts:
I'm in the process of migrating my sites to Media Temple.

I need to change the htaccess file and add a '?' to successfully remove the 'index.php' from the URL. Without it I get "No input file specified"

This works.

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

But i'm also running CE Cache, static caching.

How would I edit the static cache handler to do the same?

#------------------- remove trailing slash -------------------
RewriteCond %{REQUEST_URI} !^/system [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)/$ /$1 [R=301,L,QSA]

#------------------- index.php -------------------
#strip index.php from the URL if that is all that is given
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php\ HTTP/
RewriteRule ^(([^/]+/)*)index\.php$ http://%{HTTP_HOST}/ [R=301,NS,L,QSA]
#strip index.php/* from the URL
RewriteCond %{THE_REQUEST} ^[^/]*/index\.php/ [NC]
RewriteRule ^index\.php/(.+) http://%{HTTP_HOST}/$1 [R=301,L,QSA]

#------------------- CE Cache Static Driver -------------------
RewriteCond %{REQUEST_URI} !^/system [NC]
RewriteCond %{QUERY_STRING} !ACT|URL [NC]
RewriteCond %{REQUEST_METHOD} !=POST [NC]
RewriteCond %{DOCUMENT_ROOT}/static/ce_cache/242d7a/static%{REQUEST_URI}/index\.html -f [NC]
RewriteRule (.*) /_static_cache_handler.php%{REQUEST_URI}/index\.html [L,QSA]

#------------------- EE -------------------
#rewrite all non-image/js/css urls back to index.php if they are not files or directories
RewriteCond $1 !\.(css|js|gif|jpe?g|png) [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L,QSA]


texts: What's the Fastest Way to Download/Upload a Site During Updating?

texts:
Every time I have to update a site, I need to download it so I can back it up and to place it in a dev environment. But a site with a lot of add-ons/themes/images/media can take forever to download and subsequently re-upload when updates are complete.

What's the fastest way to handle this file transfer process? I've heard of "persistent connections" like with Git, but I don't know how to implement that on my computer, if that's even the best route to take.

Also, do you download the entire site before backup, or just the critical files like templates and config?


texts: We need some functionality to be done using solspace Favorites

texts:
We don't found below thing's. Please let me know weather this think are possible

1) Does we can add single file from grid in favorite?

2) We need collection date of particular user. can it be possible?

3) Can we delete more than one favorite from list at a time?


texts: If we have someone using promotional codes in the checkout tag, is there any way to pull out and display what promo code has been used, once applied? I am thinking in the notes section of the promo code area, I could put something informative in there, and once a promo code is used, push this out to the checkout code


texts: Playa field search feature displaying entries from all channels

texts:
I have a Matrix field with a Playa field inside it, listing entries limited to the "Biographies" channel. The issue I'm seeing is that when editors search for a title, the resulting list contains entries from ALL channels.

Is this intended behaviour or is there something I am missing? Ultimately, searching the entries should respect the settings for that field and only list our "Biographies" channel's entry titles.

EE 2.8.1
Playa 4.5.1
Matrix 2.6

edit: to clarify, the field is in the CP, as shown below. If I search for "Pinchas Zukerman", all matching entry titles in the system are displayed


texts: How to use an SQL query to display entries from last 45 days

texts:
I'm using the following SQL query to populate a filter form for a jobs site. The query displays all locations used in the jobs listed on the site.

I'm only displaying jobs up to 45 days old on the site BUT the query is showing locations for ALL jobs, even those over 45 days old.

Does anyone know how I could amend this query to only show job locations from jobs that are 45 days old or less?

{exp:query sql='
    SELECT DISTINCT field_id_19
    AS job_location
    FROM exp_channel_data
    WHERE field_id_19 <> ""
    ORDER BY job_location
'}
    <option value="{job_location}" {if super_search_job_location == "{job_location}"}selected="selected"{/if}>{job_location}</option>
{/exp:query}

Thanks in advance,

Tom


texts:
The default file name separator for Expression Engine is an underscore. And this cannot be changed. But the url title word separator is.

For seo purposes, our client asked if it is possible to use dashes instead of underscores in (image) filenames. (source)

So I had a look into it. We're using assets and ce_image for this project. And I found a lot of php code replacing special characters and spaces with underscores. Seems like it is hardcoded in many of the add-ons. And that concerns me.

So I'm wondering if anyone has tried to do the same? For example. There's a clean_filename function in the Assets_lib.php. Is just rewriting that function enough to replace all underscores with dashes for new uploads. Or is it more complex than that?


texts:
Would there be any reason why my 3 Freeform forms wouldn't do the following:

Notify Admin
Save submission at all
fields in submission are empty

Below is my Freeform code:

{exp:freeform:form
    form_id="4"
    form:class="contact-form"
    form:id="contact-form"
    required="full_name|email"
    return="focusform3/results/%%entry_id%%"
    notify_admin="yes"
    admin_notify="ADMINS EMAIL ADDRESS"
    admin_notification_template="focus_form_3"
    notify_user="yes"
    user_email_field="email"
    user_notification_template="focus_form_3"
}

Each of the 3 forms has 11 fields and are exactly the same just the form and admin email is different per form.  Each form has the same notification template layout.

I tested each form twice.  Each time with a different email address for admin.  made sure this email was also updated in the form, form notification and the form code in the template.  Each time it worked as it should.  Client however tested each form and either her submission didnt save, was incomplete with empty fields when she filled out all fields and at times didnt receive an admin email.

My EE install is the following:

EE 2.5.5
MSM 2.1.3
Freeform 4.0.10

Thanks


texts: Assets Module only grants Super Admin access

texts:
Assets v2.1.4
ExpressionEngine v2.5.5

I'm experiencing issues when trying to access the assets module when logged in as any user other than Super Admin. The other member group's privileges and preferences have all been set to yes so they are allowed access to the module. However, accessing Assets from Modules or an entry, none of the images are displayed. When logged in as a Super Admin, these images are available. Thanks in advance for the help.


texts: Blank Screen After Migration to New Server

texts:
I have just migrated my site to the live server and I have a blank screen for both the site and the control panel.

I have added the dbtest.php file to my root and there is no error.

I have turned on debugging and I am getting the following error:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/33/d79609761/htdocs/gaelic_teachers/bord-na-gaidhlig/expressionengine/core/EE_Config.php on line 40

Can anyone advise on what the issue may be?

Thanks.
Stephen.


texts:
I I use this syntax, stash work well

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

{/exp:stash:get}

if I omit {/exp:stash:get}, I receive an error from expression engine.

I didn't found examples with name= and the closing tag.

I'm right in my syntax?


texts:
I'm new to EE and I'm having problems using the Pagination Class. I've created a custom module and have the following method in my mod file. The pagination is rendering on the template fine and the URLs look fine (mydomain/series/pagination_test/P24) but the results are not changing as I navigate the pagination.

public function pagination_test() {

    $this->EE->load->library('pagination');
    $pagination = $this->EE->pagination->create();
    $this->EE->TMPL->tagdata = $pagination->prepare(ee()->TMPL->tagdata);
    $tagdata = $this->EE->TMPL->tagdata;
    $results = $this->EE->gt_model->pagination_test_data();

    foreach($results as $row)
    {
        $variables[] = array(
          'alt_title' => $row['alt_title']
          );
    }

    if ($pagination->paginate === TRUE)
    {
        $total_items = count($results);
        $per_page = ee()->TMPL->fetch_param('limit');
        $status = $pagination->build($total_items, $per_page);
    }

    $this->return_data = $this->EE->TMPL->parse_variables( $tagdata, $variables );
    $this->return_data = $pagination->render($this->return_data);

    return $this->return_data;
}


texts:
Calendar: 1.8.5 & EE 2.7.3

Calendar dates are not saving in channel ( calendar : events )

I tried this so far:

uninstalled and re-installed the module but it did not help
I tried downgrading to calendar: 1.6.4 also did not work, I think because calender 1.8.5 might have changed the DB in some way. Going back was giving me some errors, and saving was still not working.

When you hit "save" no calendar data is saved in the control panel. Unable to change dates on existing entries that used to work under solspace calendar: 1.6.4

setup used to work good under: EE 2.5.3 & Calendar 1.6.4

any one else have this happen?


texts:
Is it possible to use Category links that don't link to a different URL, but instead to a different part of a page.  So for example, I want the Category link that is generated to produce:

Section 1

instead of:

Section 1

The "#" sign disappears when I try to change the "Category URL Title" field.


texts: {url_title} In URL, and Edit Form on Next Page

texts:
having a bit of trouble getting the url_title from the filled out safecracker form to appear correctly, here is what i have:

{exp:safecracker
channel="personal_trainer_directory"
entry_id=""
safecracker_head="no"
use_live_url="no"
url_title=""
}
{exp:membrr:subscriptions}

    Update Personal Trainer Page

{/exp:membrr:subscriptions}
{/exp:safecracker}

im trying to get the name to appear in the segment and then on the next page will be the safecracker where i can put {segment_4} for the url_title so the form will be able to edit the entry.. but with the way it is now, nothing is showing up for {url_title}.