texts: Solspace Importer not splitting matrix fields from CSV file?

texts:
I'm currently trying to import a CSV file using Solspace Importer, and I've mostly gotten my issues worked out. However, I have a column in my csv that needs to be imported into a Matrix field consisting of two Text fields (one required). According to the Solspace docs here:

http://www.solspace.com/docs/importer/third_party_support/#pt_matrix

I should be able to wrap my values and comma separate them like so:

"Column1Row1","Column1Row2","Column1Row3"

But this just imports one row into the Matrix field with the value "Column1Row","Column1Row2","Column1Row3" for the first column. At first I thought it was a parse issue, so I made sure to have my CSV files enclosed in single quotes and use that as the encloser for the import profile, so this segment of the CSV looks like this:

...,'column before matrix column','"Column1Row1","Column1Row2","Column1Row3"','column after matrix column',...

But that doesn't work either. I've tried a myriad of enclosers and quotation depth, as well as various escapements, but it always takes the entire column in as one row. My data is coming from someone who can't use anything but Excel, and his data already required 100's of lines of macro to get right, so trying to interchange to a different data-type and formatting my columns and... well, this is why we want to use a utility like Importer. Does anyone know what CSV format Importer requires to parse into a Matrix field??


texts:
I need to record some data in the database for a user in the session (a custom add-on) and I'd been using the value returned from PHP's session_id() method, which works well enough.

When the user logs in, I then need to update the data with the logged in member's ID.

However I'm finding that when the user logs in, that session_id() is empty so I lose the link to what was in session for that user prior to login.

I had originally tried using $EE->session->userdata('session_id') but that was zero, which is why I ended up using the native session_id() method.

Does anybody have any suggestions for the best way of achieving this?

Thanks.


texts: Dukt Videos - JS error on load: TypeError: Cannot read property 'length' of undefined

texts:
I've just installed Dukt Videos 1.2.1 (the latest) on EE 2.7.2 and connected it to Vimeo which worked fine. However, when trying to publish an entry to a channel which uses the video field (in Matrix) I get this

TypeError: Cannot read property 'length' of undefined
 at Function.b.extend.each (http://example.com/themes/javascript/compressed/jquery/jquery.js?v=1385992367:36:478)
    at Object.MainCtrl.$scope.providerRouting (http://example.com/themes/third_party/dukt_videos/components/videos-common/js/angular/controllers.js:225:5)
    at http://example.com/themes/third_party/dukt_videos/components/videos-common/js/angular/controllers.js:46:12
    at http://example.com/themes/third_party/dukt_videos/components/bower_components/angular-resource/angular-resource.js:413:30
    at wrappedCallback (http://example.com/themes/third_party/dukt_videos/components/bower_components/angular/angular.js:6995:59)
    at http://example.com/themes/third_party/dukt_videos/components/bower_components/angular/angular.js:7032:26
    at Object.Scope.$eval (http://example.com/themes/third_party/dukt_videos/components/bower_components/angular/angular.js:8218:28)
    at Object.Scope.$digest (http://example.com/themes/third_party/dukt_videos/components/bower_components/angular/angular.js:8077:25)
    at Object.Scope.$apply (http://example.com/themes/third_party/dukt_videos/components/bower_components/angular/angular.js:8304:24)
    at done (http://example.com/themes/third_party/dukt_videos/components/bower_components/angular/angular.js:9357:20)

Anyone know what might be going on?


texts: Conditional with category custom field, transcribe & low variables not working as expected

texts:
I'm building out a multi-language site using Transcribe which is coming along nicely. I'm having one issue with my navigation snippet (using low variables early parsing turned on).
I've got the following conditional working elsewhere in the site (in an embedded template)
{if '{transcribe:language_abbreviation}' =="en"}{category_name}{/if}{if '{transcribe:language_abbreviation}' =="fr"}{category_name_fr}{/if}

However when I use the same conditional inside the lv_nav snippet it fails to render anything. Relevant code below:
{exp:channel:categories channel="people" style="linear"}

{if '{transcribe:language_abbreviation}' =="en"}{category_name}{/if}{if '{transcribe:language_abbreviation}' =="fr"}{category_name_fr}{/if}

{/exp:channel:categories}

If instead of using the conditional I just use {category_name} everything works fine except that on the French pages I've got English displaying and not French.
Any ideas why this is happening? I've also tried replacing {transcribe:language_abbreviation} with {exp:transcribe:language_abbreviation} and there was no change.


texts:
I have run into an issue with the addon Wyvern where the field in the publish/edit pages doesn't display as described in this support ticket: https://boldminded.com/support/ticket/773

I figured my best option to resolve the issue is to follow the first response and reinstall Wyvern:

  You might have to set all your Wyvern fields to textarea, uninstall, then reinstall Wyvern and assign the fields back to Wyvern.

But before I do that I want to be sure that this process is safe. It would mean converting about a dozen fields to Textarea (Rich Text) and back. Would changing the filetype strip out anything that might be unique to Wyvern, or would it just leave the source code intact until Wyvern was reinstalled?


texts: Is there an EE addon for bulk status change from the entry edit screen?

texts:
I'm creating a site with a moderation process that requires all new entries in a certain channel to be saved in draft status, and then an admin or editors will approve those entries and update the status to open.

There could be tens or hundreds of entries to approve at a time. Even with the native batch editing feature you still have a click on the select box for each entry and change the status.

What I really need is something that would allow me to select each draft entry I want to publish and then use a bulk status change action to change them to "open" all at once.

Is there an existing extension that can do this?


texts: Playa and Low Variables for Featured section of Home page

texts:
I am trying to use Low Variables, Playa, and a "Features" channel to allow me to select which (3-4) features will be displayed on the Home page. The intent is that either a News, Project, or (Structure) Page may be selected (but never more than one of those) or some unrelated content (body, url, file) may be entered. This is to allow maximum flexibility. Within the "Features" channel there are these fields:

"Features" Channel

title
feature_body (textarea -- required)
feature_related_news (Playa -- select up to 1 entry from "News" channel)
feature_related_project (Playa -- select up to 1 entry from "Projects" channel)
feature_related_page (Playa -- select up to 1 entry from "Pages" channel)
feature_URL (text input -- optional, only entered if no related item)
feature_image (file)

Low Variables

Variable: lv_settings_home_features_items (Playa -- select up to 4 entries from "Features" channel, drag and drop to reorder)

I can tell that the variable is being populated (example output: [93] [rainfall-news] Rainfall News [94] [check-out-our-work] Check Out Our Work [95] [donate] Donate).

Home Template

Each of the different types of related items (news, project, page, or other) requires slightly different formatting and field names.

I would like to do something like this:

     {exp:playa:children var="lv_settings_home_feature_items" limit="3"}

 {if feature_related_news}
      {related_entries id="feature_related_news"}

{/related_entries}{title}

 {if:elseif feature_related_project}
      {related_entries id="feature_related_project"}

{/related_entries}{title}

 {if:elseif feature_related_page}
      {related_entries id="feature_related_page"}

{/related_entries}{title}

 {if:else}
       {feature_image}
           {if feature_url != ""}{/if}{if feature_url != ""}{/if}
       {/feature_image}

{if feature_url != ""}{/if}{title}{if feature_url != ""}{/if}

 {/if}

{feature_body}

 {/exp:playa:children}

The code above has related_entries instead of the applicable Playa code. I started out with relationship fields in the Features channel but then changed them to Playa fields. The code worked when I used a exp:channel:entries channel="Features" to wrap the entire thing (and just outputted the 3 most recent Features), but once I put the Low Variable in and outer Playa tags on it doesn't work.

The Playa documentation says that to use nested relationships you need to use embeds. How would I structure those to achieve my goal? Or is there some other way? How do I pull the different chunks out of the LV?


texts: Exp:resso Store - skipping payment gateways, free orders

texts:
slightly strange requirement! We have a setup which requires the user to reserve the products they want to buy via an add to cart/checkout system.

So they add what they want to basket, click 'reserve' (checkout, if you like), fill out their name, the date they want to collect it and the store that want to collect it from, then submit it so the site admin can sort it out for collection. No payment involved (though that might come later).

Is this something Exp:resso Store can handle? Effectively skipping the payment bit and submitting a free order, despite the products having prices.


texts: Remove question mark from url after search submit

texts:
I have a multi-language website and my second language goes to a subdirectory mysite.com/en/ Everything is fine but the search functionality. When I submit my search, it prints a question mark right after the subdirectory like this:

mysite.com/en/?/noresult/6bc629a9319d90a1e9703eaf2c00f7cd/

And because of it my site redirects to the homepage. I searched and tried many .htaccess codes but it did not work. The URL without question mark works fine. besides i set the "Force URL query strings" to "No" in admin panel but still not working.
Here is my .htaccess:

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /en/

  # Removes index.php from ExpressionEngine URLs
  RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
  RewriteCond %{REQUEST_URI} !/system/.* [NC]
  RewriteRule (.*?)/index\.php/*(.*) /$1$2 [R=301,NE,L]

  # Directs all EE web requests through the site index file
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
</IfModule>

i don't know what to do


texts: Get Category ID from URL title of URL segment?

texts:
My Url: http://somelink.com/package/view/a-hald-day-trip-to-the-zoo

//my code below... from url above i want to use entry title category id as my category id below, the url above and my code below have below to separate  channels but they share categories groups//

    {exp:channel:entries
        channel="departures"
        category="{last_segment_category_id}"
        limit="10"
        dynamic="no"
    }
       <p>{title}</p>
   {/exp:channel:entries}

//But this code above Does not work!, i tried using cat2seg but i think this works with category url and not url title//


texts:
I must be missing something obvious.

I am trying to add a downloadable product in Expresso Store.

I have a channel with a custom file filed {products_download} as well as the Store Product Details field

I create the entry, upload the file, then after I purchase the product there is no link to download on my order page.

Order Summary / Tax Invoice

{exp:store:orders member_id="CURRENT_USER"}

Thank you for your Order:

Ordered Items:

    {items}

{title} -- {price}

        {exp:channel:entries entry_id="{entry_id}"}
            {exp:store:download url="{products_download}"}
                Download
            {/exp:store:download}
        {/exp:channel:entries}

    {/items}

{/exp:store:orders}

The above outputs the title and price fine, just not the link to download

EE ver 2.4
Store ver 1.6.2


texts:
I'm using EE version 3.0.2. I created a channel but when I try to upload a file it gives the following error:
"Error: The requested module is not installed: filepicker".

I am unable to find any solution to resolve this as I'm very new at using expression engine. Any help would really be appreciated.


texts: Relate EE Entries with Location (Region/City/Place)

texts:
What is best way to relate EE Entries with location (Region/City/Place) example
1. Entry of Simba National Park,
2. Then i choose park category (Game Park, Beach Park, Cultural Park, Mountain Park)
3. Now i Need to have location, or choose where its located, (Region/City/Place), sort of chain select on entry form?
4. I will later filter these parks by location, or search location to display parks etc

Thanks
Paul


texts: Custom AddOn, Using SimplePie to display an enclosure

texts:
I need to display an RSS feed on my site. I could use the built in RSS_Parser add-on, however that add-on does not appear to support adding an item enclosure (image). This is a requirement for this project.

I have elected to write my own. I have loaded the SimplePie library and I have it essentially working, just like the native Add-On, but the enclosure is not working.

I'm trying to put all the attributes into an array, like so:

        $items[] = array(
            'item_title'        => $item->get_title(),
            'item_link'         => $item->get_permalink(),
            'item_date'         => $item->get_date('U'),
            'item_content'      => $item->get_content(),
            'item_img'          =>  $item->get_enclosure(),
            'item_description'  => $item->get_description(),
            'item_categories'   => $categories,
            'item_authors'      => $authors
        );
    }
    return $items;

However, when using the item_img tag in the template, it returns a string of gibberish. Anyone know how to get it to return the url to the enclosure?

The feed i'm trying to parse is here: http://tntoday.utk.edu/feed/

I have done this with straight-up PHP, but having it as an add-on, easily accessible to content editors throughout the site would be greatly preferred.


texts: Is it possible to convert an EE File Upload path to Assets S3?

texts:
I currently have 31 native EE file upload paths all pointing to a location within /images.

I'd like to serve all of my image assets from an S3 bucket, so I've created images.domainname.com. I've also copied the entire image structure to this bucket.

Is it possible to run a query on the existing upload paths and convert them to point to the S3 source instead of the native one?

Other than losing the ability to restrict upload directories, is there a reason to not do this?


texts: Unable to load the following extension file: ext.detour_pro.php

texts:
A friend ask me to do some changes on his site made from EE. I never done any work in EE in my life so my first instinct is to copy all the files and database to my localhost. so that I can play it first in my local server before applying the changes on the live site. I'm using  xammp 1.8.1 (PHP version is 5.2.9).

So basically what i did is put all the files in c:\xammp\htdocs\thesite and the database in "dbee" then apply changes in config.php and database.php under expressionengine folder.

in config.php

$config['app_version'] = "272";
$config['install_lock'] = "";
$config['license_number'] = "";
$config['debug'] = "1";
$config['cp_url'] = 'http://localhost/thesite/admin.php';
$config['doc_url'] = "http://ellislab.com/expressionengine/user-guide/";
$config['is_system_on'] = "y";
$config['allow_extensions'] = "y";
$config['site_label'] = 'sitel label';
$config['cookie_prefix'] = '';
$config['tmpl_file_basepath'] = 'c:\xammp\htdocs\thesite\assets\templates';

// Third Party Prefs
$config['third_party_path'] = 'c:\xammp\htdocs\thesite\assets\add-ons\third_party';
$config['url_third_themes'] = 'http://localhost/thesite/assets/add-ons/themes/';
$config['enable_online_user_tracking'] = "n";
$config['enable_hit_tracking'] = "n";
$config['enable_entry_view_tracking'] = "n";
$config['dynamic_tracking_disabling'] = "";

// END EE config items

in database.php

$db['expressionengine']['hostname'] = 'localhost';
$db['expressionengine']['username'] = 'root';
$db['expressionengine']['password'] = 'pwd';
$db['expressionengine']['database'] = 'dbee';
$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'] = 'c:/xammp/htdocs/thesite/app/expressionengine/cache/db_cache/';

and the results are;

from index.php and admin.php

from index.php
from admin.php
I already look in google can't find a solution.

I am hoping I could get answer from you guys.

Thank you so much in advance!


texts:
Anyone out there use MX Notify Control?  I am using the extension to send an email to a mailing list for a new channel entry.

It uses a standard template as the email, problem is I need to include an unsubscribe link in the template.  Since it is not using a mailing list template I have no way to include a mailing list unsubscribe link.

Anyone know how you can create an unsubscribe link OUTSIDE of a mailing list template?


texts: Automatically set expiration_date to be 24 hours after entry_date in SafeCracker form

texts:
I've got a SafeCracker form that contains (amongst other fields) an entry_date field and an expiration_date field:

<input type="text" name="entry_date" id="entry_date" value="{entry_date}" maxlength="23" size="25">
<input type="text" name="expiration_date" id="expiration_date" value="{expiration_date}" maxlength="23" size="25">

For this particular channel, I always want the expiration date to be exactly 24 hours after the entry date (and the user can change the entry date to be any date/time, not necessarily the current date/time). Is it possible make this happen automatically, without requiring the user to manually add/edit the expiration date?


texts: Is it possible to allow a member group access to view a channel in the control panel but not publish/edit entries in it

texts:
I need to allow a member group to only view some channels (among others) in the control panel but only be able to edit some of those channels.

But as far as I can see there is no way to assign editing permissions per channel, right? I can allow editing for all channels the member group has access to or or nothing.


texts: SQL to get entry_id in exp_channel_data based on member_id

texts:
I have custom channel named foo that is connected to the the members via safecracker and safecracker registration.

In a hook I am making, the member_id of a person is available to me.

Is there a way using SQL to get the entry_id in channel_data table based on the member_id that I have?


texts: Channel Files upload button console error

texts:
I have an issue in Channel Files 5.2.9 in ExpressionEngine 2.8.1.
Please follow my attached screenshot with dev console log which has error.
This issue was found in template in new entry form. In this case the “upload” button in upload form is not active.

Do you have any ideas?
Thank you for help.


texts: (A Different) Channel Entry Data Not Showing in Entry Detail Pages

texts:
EE 5.2.2

I have a site that I'm building for a client. It was my intention to have certain elements in the _html-wrapper layout be dynamic so they could change them as they desired (image, short description, hours of operation, etc). I created a homepage channel with a single entry to handle this content.

The section looks like this

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

{site_name}

{entry_description}

{address}

{hours_of_operation}

{/exp:channel:entries}

It's working just fine until I get into an entry page, at which time it does not render.

So
example.com works,
example.com/product works,
but example.com/product/entry/entry-page does not work.

Is there some sort of conflict with channel entries from different channels rendering on entry pages?

Also, I'm working off of the example site (since I'm still new to EE).

Thanks a lot!


texts: Upgrading Solspace add-ons from EE1 to EE2

texts:
We have an EE 1.7.3 site with these Solspace add-ons:

Static Page Caching
Freeform
Rating
User
Friends

Is there a preferred way to upgrade these items? Based on this post (EE1 to EE2 Upgrade), I'm understanding that I need to upgrade EE first, then upgrade the add-ons.

Backups we have covered and we're running trial upgrades on a dev server first, until we get it right.


texts: Trouble searching Low events date with Low Search

texts:
I'm using the Low Events & Low Search code sample ( https://gotolow.com/addons/low-events/docs/search ) with the latest versions of EE, Low Search and Low events.

My Results tag filters my events by keyword correctly, how do I get it to filter by selected month-year?

http://x.jp/index.php/show?keywords=test&low_events:date=upcoming

http://x.jp/index.php/show?keywords=test&low_events:date=2018-09

{exp:low_search:results
query="{segment_2}"
channel="show"
keywords:lang="en"
keywords:inflect="yes"
low_events:date""
}

Sorry but I am quite new to this.  Hope someone can help.   Thanks!


texts:
So I'm trying to assign a class via {category_url_title} inside of a {exp:geofinder:location_results} tag. The problem is now I have 2 loops. I tried several things like using {categories} tag pair by itself in the geofinder tag as well as a tagpair inside of a channel:entries tag. However, I still get similar, incorrect results. Chris Barrett/Mighty Big Robot doesn't seem to be offering much support on their site lately so I thought I would try here.

{exp:geofinder:location_results
channel="business"
status="not closed"
geoquery="{embed:address}"
radius="{embed:radius}"
latitude="{business_lat}"
longitude="{business_lng}"
distance_mode="miles"
limit="10"
}

    {exp:channel:categories
    entry_id="{entry_id}"
    show_empty="no"
    channel="business"
    status="not closed"
    limit="1"

    }

        {title}

    {/exp:channel:categories}

{/exp:geofinder:location_results}

Result:

NIXONMEDIA

NIXONMEDIA

TJ ROCKWELLS

TJ ROCKWELLS

LUCKY DUCKS

LUCKY DUCKS

Thoughts?


texts: Solspace Freeform 4+ submission per email address

texts:
Possible to submit only one submission per email address?

I am trying to make the form gives an error if someone already has submitted and try submit again.

Thank you


texts:
I have a custom CSV field for coordinates {map_coordinates} (e.g., "47.262223,-122.451725") and would like to loop through each entry and plot those coordinates onto a maps (using the Google Maps A:PI v3) as well as add listeners to each.

function initialize() {

  var map;

  /* this works. It gets the most recent entry and if you use a marker it plots it
     just fine. It's when dealing with multiple markers (vis., no 'limit' on returning
     entries) that it negates to plot anything and breaks (the map doesn't even show). */
  {exp:channel:entries channel="maps_channel" limit="1"}
    /* {map_coordinates} is the custom field */
    var mLatLng = new google.maps.LatLng({map_coordinates});
    map = new google.maps.Map(document.getElementById("map-canvas"), {
      center: mLatLng,
      mapTypeId: google.maps.MapTypeId.ROADMAP,
      zoom: 13
    });
  {/exp:channel:entries}

It's this lower section ( the one to plot all of the coords for the map) that I'm having trouble with. Ideally the upper and lower section should be integrated, but for the time-being I'm just trying to get it to work :p

  /* Create an array with the size of the total entries in the channel */
  var articles = new Array({total_results});
  var marker, i;

  /* add markers for each article
     add listeners for each article */

  for (i = 0; i < articles.length; i++) {
    marker = new google.maps.Marker({
      /* get the {map_coordinates} at the current
         index 'i' and plot them with a new marker.
         the code 'position: articles[i]{map_coordinates} doesn't
          work and I didn't expect it to; I'm including it to show
          exactly what I need done.*/
      position: articles[i]{map_coordinates},
      map: map
    });
  }
}

As you would be well to assume I am new to EE and somewhat new to JS.

I've been using the following resources to try and remedy this:

http://net.tutsplus.com/tutorials/cmss/creating-a-google-map-with-expressionengine/

https://stackoverflow.com/questions/3059044/google-maps-js-api-v3-simple-multiple-marker-example


texts: Addon development - make visible to Member permissions?

texts:
Using EE 3.5.1.
I have made a simple extension to allow a logged in user manage a single settings() text field. However, I cannot grant access to this add-on to other Member Groups because it does not appear in the list of addons in the 'Allowed add-on access' list.

How do I get my addon in this list? I have heard I need to make it into a Module, but Modules don't appear to be able to use the built-in settings() function: I get a 404 if I put it in the MCP file so I'm not sure what I'm meant to do.
If anyone other than a Super Admin tries to access the settings page they just get Error: You are not authorized to access this page


texts: PayPal has several tiers of on-site services listed on their business page. One is "Advanced" and the other is Pro. Does Exp:resso Store play nice with Advanced as well as it does Pro?


texts: How can I get weblog:entries to return all values

texts:
I have this code in a template:

<select id="field_id_43" name="field_id_43">
    <option value="" >No related Listing</option>
    {exp:weblog:entries weblog="listings" dynamic="no" status="not closed" orderby="title" sort="asc"}
        <option value="{entry_id}" >{title}</option>
    {/exp:weblog:entries}
</select>

The number of items returned in the dropdown seems to be limited in some way in that the dropdown is only poputlated with listings from the letter "A" up to the letter "H".

How do I make sure that the dropdown returns ALL listings and not just a certain number of them. Where is this limit set?


texts: Low Search results when not encoding queries

texts:
I've been looking through this site for examples of Low Search results tags not using encoded queries but I can't find any and I think I must be doing something wrong.
By default on my page I have this which displays all results which is what I want:
{exp:low_search:results
    collection="people" {!-- have tried both channel and collection --}
    disable="member_data|relationships|trackbacks"
    orderby="people-lname"
    sort="asc"
    limit="10"
    pagination="bottom"
    {if segment_2}
    query="{segment_2}"
    {/if}
}

I also have a search form on the page:
{exp:low_search:form result_page="people"}
  <input type="text" name="keywords" id="keywords">
  <button>Submit</button>
{/exp:low_search:form}

If I do a search for a person's surname (which is part of the entry title), I end up on a page like domain.com/people?keywords=surname which is again what I want, but I get no results.
Edit: this is the output after turning on template debugging:
0.052283 / 3.2MB Calling Tag: {exp:low_search:form result_page="people"}
0.056505 / 3.4MB -> Data Returned
0.058679 / 3.4MB Calling Tag: {exp:low_search:results   channel="people"   disable="member_data|relationships|trackbacks"   orderby="people-lname"   sort="asc"   limit="10"   pagination="bottom"  }
0.062416 / 3.5MB Low Search: Applying Low_search_filter_keywords
0.063155 / 3.5MB Low Search: Keywords: surname
0.063360 / 3.5MB Low Search: Starting search (fulltext)
0.064107 / 3.5MB Low Search: Searched but found nothing
0.064146 / 3.5MB Low Search: Filters found no matches, returning no results
0.064183 / 3.5MB Returning No Results Content
0.064245 / 3.5MB -> Data Returned


texts:
So I've been using EE for some years but I've never created an add-on before and I was hoping for some guidance on how to approach it and whether it should be an extension or a module.

Requirements:

When a channel entry is created or edited I need to trigger an email send. This email send will be using the Mandrill API ( a service of Mailchimp). Their API includes a PHP codebase option or Javascript / JSON call.
If an entry is created I need to trigger a specific email template and pass in some channel entry data.
If an entry has it's status changed I need to trigger one of two templates - approved or denied, again passing in dynamic data.
A nice to have would also be the ability to trigger an email on member registration but this is less important right now.

So it seems to me my add-on would need to be aware when an entry was created or modified, and I would need to know what the status of that entry is and then retrieve entry data and trigger the API. It would also be nice to be able to handle any API response such as success / failure.

Can anyone advise me on best approach for this?

Thanks.


texts: PHP errors after upgrading Playa and EE, error number 1054

texts:
We migrated our site to a new server and upgraded from EE 2.5.2 to 2.9. Playa and other add-ons were already installed on the site when I inherited it. I updated Playa according to their instructions but I ran into a bunch of problems. First, while Fieldtypes displayed the new version, 4.5 when I went to Modules it was still saying 4.3.3. No matter what I did I couldn't get it to update in both places. Eventually I figured out it was a problem with permissions on the server so I contacted our host and got that resolved, uploaded the files again but that still didn't help. Ultimately I had to uninstall the plugin using the uninstall option on the backend, then I reinstalled it and that finally worked: I saw the current version 4.5 in both places on the backend.

Now the only problem is I got a bunch of PHP errors on the front end whenever I tried to display an article that used the Playa relationships field.

    Error Number: 1054

Unknown column 'rel.parent_is_draft' in 'where clause'

SELECT DISTINCT(rel.child_entry_id) AS entry_id FROM exp_playa_relationships rel WHERE rel.parent_entry_id = 1 AND rel.parent_is_draft = 0 ORDER BY rel.rel_order

Filename: /third_party/playa/mod.playa.php

Line Number: 739

It's identical to the problem mentioned in this thread. The solution there was that the Playa update didn't complete properly. I uploaded the new files several times. And I even reinstalled the plugin and still got the error. The only way I could get the site to function was to comment out several lines of code in that file. Now the site works and no more PHP errors but neither does Playa work and none of our Related Articles are displaying.

Can anyone help? Thanks in advance. :)


texts: How would I go about integrating a jquery slider in EE with CE Img?

texts:
I'm currently trying (without much luck) to properly integrate the  Allinone Thumbnail Banner  into an EE template.  I use CE Img with Matrix to feed the images.

The original Allinone Html looks like the following:

&nbsp;&nbsp;&nbsp;UP TO 4 TYPES OF SLIDERS
&nbsp;&nbsp;&nbsp;Each with multiple SKINS

16 TRANSITION EFFECTS
 FOR IMAGES
optional can set the transition
 for each image

--Where the Images are the thumbs and displayed image.  And the Texts are the subtitles for each image.

This is as far as I could get

            {exp:channel:entries channel="top_photos|gallery|recent" limit="8" offset="1" status="Open|fixed"}

           {article_images}

              {exp:ce_img:single src="{image_matrix_image}" disable_xss_check="yes" width="960" height="500" allow_scale_larger="yes" crop="yes" quality="60"}" alt="" />

                        <div class="allinone_thumbnailsBanner_text_line textElement11_simpleResponsive"  <a href="{site_url}{channel_short_name}/view/{url_title}"  "{image_matrix_cutline}"

                {/article_images}

     {/exp:channel:entries}

But I still can't display the subtexts for the images properly or at all. And I know I've heard something about using the {row_count} variable along with the div classes but I haven't had any luck with that either.    I would appreciate any hints as how to go about EE'ing up jquery Html and the classes.   Thanks in advance.


texts:
I've confirmed the server requirements for the windows server and they match or exceed what is recommended.

I have uploaded the files to a directory on the server and am trying to run the ExpressionEngine installer.

I continue to get a "The page cannot be found" error. This is my first time trying to install on a windows server, so I'm not sure if I'm missing something. Do I need to add a php.ini file, .htaccess, etc.

Thanks in advance.


texts: How to use my custom HTML Button on the rich text editor?

texts:
I made a custom HTML button in System Settings -> HTML Buttons

When going to a channel entry, the rich text editor still only displays the default buttons. I see no way of adding my custom one.

How can I add it?


texts:
I want to display some of my items with an non integer price value in Expresso Store. For instance, display some of the items with the price value of 'Request price'.

Is this possible in Expresso Store, and if so, how?


texts: Expresso store: Fatal error when adding payment

texts:
When I add a payment to an order ("New Payment" button), I'm getting an Fatal Error.

Fatal error: Call to undefined method Localize::convert_human_date_to_gmt() in /var/www/vhosts/domain/httpdocs/system/expressionengine/third_party/store/src/Store/Cp/OrdersController.php on line 342

What is causing this? Already update Expresso store to the latest version 2.3.1.


texts: How to add custom validation in expresssion engine validation

texts:
This is my current code.

$rules = array(
    'label'        => 'required',
    'short_name'   => 'required',
);

$result = ee('Validation')->make($rules)->validate($_POST);

Now I want it like this:

$rules = array(
   'label'        => 'required',
   'short_name'   => 'required|trim|check_name["test_name"]',
);

but I am getting error in trim rule.

  Unknown validation rule trim.

Please help.


texts: Varying image compression by upload destination

texts:
Is there any way to set a specific level of jpeg compression and vary that according to the upload destination? I'm trying to work out how best to integrate EE's native image upload features with the soon-to-be-standard picture element, and in particular to make use of the compressive images technique. This method involves saving retina images at maximum compression/minimum picture quality, generally resulting in smaller file sizes than those of non-retina resolutions saved at a more 'normal' compression level.

The problem comes when EE performs any sort of resizing, because it resaves the jpeg at a fairly high quality (level 9 out of 10, I think), which completely undoes the file size benefits of an image originally saved using the compressive images method. So either the client must create the retina image at a size that requires no resizing by EE (not very end user-friendly, and doubly-unwieldy if you need more than one size of retina image), or one must do away with trying to use the compressive images method.

I know that CE Image can adjust the compression on the fly, but AFAIK it does so on the image tag itself, which won't mesh very well with the picture element syntax (you'd need to apply CE Image's 'quality=""' parameter to the source srcset attribute of the Picture element… I think). So the only way around it would seem to be to establish separate upload destinations (or specific image-manipulation sub-destinations) that have their own specified compression level.

So I upload a big image, say 1700px wide, to the upload destination blog_images. The max width for the destination is set to 1200px and maximum compression (quality = 0) -- this becomes my retina image. There is also an image manipulation set for that destination that resizes the image to a width of 600px and saves it with normal compression (quality = 9). That becomes my non-retina image. Of course I can imagine various further image manipulations with different compression levels -- mobile size retina and non-retina images, for example.

Is this varying of compression levels possible any way?


texts: Wyvern - says system folder path is incorrect

texts: I'm getting this odd message with Wyvern - it won't load the default editor, nor let me save new editor toolbar configurations. Everything else is working in EE, the system path is set correctly.


texts: MX Notify Control not parsing Channel Entries tag

texts:
I'm trying to replicate the example here but Channel Entries tag in the notification email is not rendering at all. I've tried both Plain Text and HTML emails.

Any ideas?


texts:
I have sites A and B
Each site has it's own uploads directory, and I have the upload preferences set dynamically:

$config['upload_preferences'] = array(
        1 => array(                                                            // ID of upload destination
            'name'        => 'A Images',                          // Display name in control panel
            'server_path' => $_SERVER['DOCUMENT_ROOT'] . '/files/uploads/', // Server path to upload directory
            'url'         => '/files/uploads/'      // URL of upload directory
        ),
        2 => array(                                                            // ID of upload destination
            'name'        => 'B Images',                          // Display name in control panel
            'server_path' => $_SERVER['DOCUMENT_ROOT'] . '/files/uploads/', // Server path to upload directory
            'url'         => '/files/uploads/'      // URL of upload directory
        )
    );

so if you are logged into the individual MSM sites control panel (a.com/admin.php), you should be able to upload images to that relative path. I can upload them to the folder via FTP, and then index them via assets and they become available to select, but the thumbnails do not show up.
so 2 issues:

I can't upload on sibling MSM sites using their respective document roots for upload paths
When viewing files that are indexed in assets, no thumbnails appear in file browser


texts: template routes and category groups + categories

texts:
I am in the process of setting up the structure of a new EE site and I've run into questions about routes and if this is possible or if I'm missing something. I apologize if this seems super simple, I've been through the docs and as many "template routes" search results as possible but I'm still not figuring this out.

Here is the current setup. I tried originally to do this originally with one single category group and multiple parent/child categories but it wasn't working. I'm not against that solution if that is what is necessary to achieve the desired results.

One Channel - Directory
4 Category Groups - Cat / Dog / Fish / Reptiles

Listing Page - list of posts with pagination
/directory/

Category Group Page - list of posts in a specific category group with pagination
/directory/cat/
/directory/cat/P1
/directory/dog/
/directory/dog/P1
etc.

Category Pages - list of posts in a specific category with pagination
/directory/cat/food
/directory/cat/food/P1
/directory/dog/food
/directory/dog/food/P1
etc.

Single Page - single entry
/directory/category_group/url_title
/directory/dog/barkbox-dog-review

Template group:
Listing

Templates & Routes:
directory-index | ROUTE: /directory/dog/{page:pagination}
directory-single | ROUTE: /directory/dog/{post:alpha_dash}/
directory-cat | ROUTE: /directory/dog/category/{section:alpha_dash}/{page:pagination}  (I had to add /category/ into this route, which I'd rather not have to do)

After a lot of back and forth, I got the above to work and then of course, I realized I was using a category group name (dog) in each route, which doesn't allow this to be dynamic. I would have to then create 3 templates per category group, which doesn't seem right.  I didn't even want 3 templates let alone 3 per category group.

Thank you for taking the time to read this and offering any help.


texts:
I'm having a hard time figuring out how to re-direct multiple portions of a site to the https:// version.

What I have so far does work, it just randomly throws in an extra '?' sometimes?

<ifmodule mod_rewrite.c>
RewriteEngine On
RewriteBase /

# Removes index.php from ExpressionEngine URLs
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{REQUEST_URI} !/system/.* [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]

# Directs all EE web requests through the site index file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]

# https: redirect to safe CP url
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} system
RewriteRule ^(.*)$ https://www.mysite.com/$1 [R,L]

# https: redirect to safe Product url
RewriteCond %{SERVER_PORT} 80
RewriteCond %{QUERY_STRING} /product/
RewriteRule ^(.*)$ https://www.mysite.com/$1 [R,L]

# https: redirect to safe Checkout url
RewriteCond %{SERVER_PORT} 80
RewriteCond %{QUERY_STRING} /checkout/
RewriteRule ^(.*)$ https://www.mysite.com/$1 [R,L]

# Force www:
RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteCond %{HTTP_HOST} ^(.+)$ [NC]
RewriteRule ^(.*)$ http://www\.%1/$1 [R=301,L]
</ifmodule>

This does work, partially. Like I said, sometimes when a re-drecit happens an extra '?' is thrown in and I can't seem to figure out why.

So if I go to

  http://www.mysite.com/product/some-product

for example, it will re-direct to

  https://www.mysite.com/?/product/some-product

If any additional info is needed let  me know! And thanks for any input in advance!! :)


texts: Change the class of the Assets buttons in a Safecracker form

texts:
I have Assets 2.0.3 as a field in a Safecracker form. The buttons created by Assets have the class "assets-btn", leaving me with pink buttons.

Rather than overriding CSS for these buttons I would rather use a different class to use the styling of Twitter Bootstrap.

Is this possible?

(The styling in Assets 1 was far more generic and preferable for including in  Safecracker form.)


texts: Permissions - Member Group Permissions overridden by Entry Access

texts:
In a complex website I have a Channel which a Member Group (Minutes) has got full access to.
I want the users of that channel to be able to add and edit those entries and those of other Authors in that Entry.
Those permissions are all set for the member group.

But the Entry Access plugin is also installed and the default permissions it adds to each entry if for the Administrators group.

But now if a member in the minutes group adds an entry to the channel, another member in that Minutes group can't edit that entry. under the Entry access Tab it only has the permissions set for the Administrators Group.

It is running ExpressionEngine 2.10.1 with the Structure Add on and Entry Access Add on.


texts: Relationship field & variables outside of product form

texts:
Trying to access price of some store items in a relationship field.
The name of my store field is shop_product_settings

I'm trying to access the price variable without using the form tag, however, it doesn't seem to work when the items are being access through a relationship field.

  {class_recommended_products limit="2" }
    {class_recommended_products:title}"
    {class_recommended_products:shop_product_settings:price}
    {class_recommended_products:shop_main_image}
  {/class_recommended_products}


texts:
After moving my deployment to a VM for development purposes I now am getting  this error on my pages.

Severity: Notice
Message: Array to string conversion
Filename: playa/ext.playa.php
Line Number: 175

and

Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/feeney/webroot/control/codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 409

I am not clear as to why this is occuring, the pages displays most of the data except those relating to playa.


texts:
Is it possible to add a currency drop-down to Expresso Store's front end to change the currency in the back-end?

I understand I can have the values output as integers and provide conversions via JS, but the cart value would still be in the currency set in the cp, and the transaction would also be in that currency, correct?

Thanks for the help!


texts: CE Cache - if page not yet cached, error: Base table or view not found

texts:
If a not cached page  is accessed for the first time, give an error message (EE cache is disabled from the control panel).
When this same page is accessed one more time, the page is well displayed, no error message.
How this problem could be solved ?
Using this CE Cache syntax for the main template:
    {exp:ce_cache:it id="ce_principal" global="no" seconds="604800"}
        {exp:stash:get name='main_content'}
    {/exp:ce_cache:it}

(EE cache is disabled from the control panel)
Inside the CE Cache control panel page, if i want to see a cached page appears this error message:

Fatal error: Uncaught Error: Call to a member function hasModule() on
null in
/home/mysite/system/ee/EllisLab/ExpressionEngine/Controller/Addons/Addons.php:1179
Stack trace: #0
/home/mysite/system/ee/EllisLab/ExpressionEngine/Controller/Addons/Addons.php(943):
EllisLab\ExpressionEngine\Controller\Addons\Addons->getModule('ce_cache&S=1c17...')
1 [internal function]: EllisLab\ExpressionEngine\Controller\Addons\Addons->settings('ce_cache&S=1c17...',
'view_item', 'file&item=ce_ca...', '663b4b', 'global', 'js_main') #2
/home/mysite/system/ee/EllisLab/ExpressionEngine/Core/Core.php(241):
call_user_func_array(Array, Array) #3
/home/mysite/system/ee/EllisLab/ExpressionEngine/Core/Core.php(110):
EllisLab\mysite\Core\Core->runController(Array) #4
/home/mysite/system/ee/EllisLab/ExpressionEngine/Boot/boot.php(151):
EllisLab\ExpressionEngine\Core\Core->run(Object(EllisLab\ExpressionEngine\Core\Request))
5 /home/mysite/www/admin.php(147): require_once('/home/cistosara.. in
/home/mysite/system/ee/EllisLab/ExpressionEngine/Controller/Addons/Addons.php
on line 1179


texts: WCOD in when loging in to Control Panel after moving servers

texts:
I'm out of ideas here, and posting this as a last resort hopping you can give me some ideas where the problem might lie.

I moved servers recently, and I don't know whether this is a problem that might have caused the issue I'm having now is I didn't clear the cache before exporting all the files (forgot).

But the problem is after moving servers Front End works fine, database works fine. But when I try and login to CP I get WCOD :(

I've increase PHP memory to 128MB that did not seem to fix the issue. Cleared the cache/ cookies on my computer, cleared .htaccess file etc.

Link to website

I tried looking up online and reading other questions but that didn't seem to do it for me. This seemed to be most related question

I'm not asking you to fix this for me but maybe to direct me to the right direction here. As I said this is my last resort :)

ALSO:

When using search functionality in banner I get an error "The search path contains an error. Please contact the system administrator."

Here is Search template code:

{exp:search:simple_form channel="blog_post|quotes_article" result_page="search/results" no_result_page="search/no-results" where="all" results="15" search_in="everywhere" status="open"}
                <input type="text" name="keywords" id="search-input" placeholder="I'm looking for...">
                <button type="submit">Search</button>
            {/exp:search:simple_form}

Thanks again,


texts: Listing the channel name with an image in Channel Images?

texts:
I want to have a front page gallery that is comprised of images from  different channels, and I want to have the title of the channel that the image comes from to appear with the image.

My plan was to create an entry called "Front Page Gallery" and load it with stored images.

Additionally, I want to be able to create a link to the gallery section that the image is originally from.

Any ideas?

MORE INFO

Sort of going with parscale's suggestion below, I used instead {image:entry_id} this way, but it didn't solve my issues:

{exp:channel:entries channel="portfolio" entry_id="41" limit="1" disable="categories|member_data|pagination"}
    {exp:channel_images:images entry_id="{entry_id}" exclude_category="closed"}
        From the
            {exp:low_replace find="31|32|33" replace="GallerySPACE1|GallerySPACE2|GallerySPACE3" multiple="yes"}
            {image:entry_id}
            {/exp:low_replace}
            series.
    {/exp:channel_images:images}
{/exp:channel:entries}

So with this, I'm able to generate a caption for each image that gives the name of the entry it is originally from (e.g., "Gallery 1") by manually using Low Replace to convert the entry ID of each image to the name of the entry. But I find this really clunky and not good as new entries are added. So I'm trying to find a more automatic way to get the original entry name of the image.

Next issue is in trying to create a link from the image's entry name to the first image in it's original gallery: right now what I've got (and it's not working) is this link:

href="{title_permalink="portfolio/gallery"}"

But this doesn't work. What I need is this link:

href="{title_permalink="portfolio/gallery/gallery_1"}"

Any thoughts also as how to get the image's original entry short name into the link?


texts: Transcribe language switcher only showing one language

texts:
Transcribe language switcher is only showing English even though I have 2 other languages enabled. I am using this code directly from the docs with minor changes

                        {exp:transcribe:language_links show_all="yes"}

{exp:transcribe:replace name="select_language"}

                        {languages}

{abbreviation}

                        {/languages}

                {/exp:transcribe:language_links}

Only shows EN :( should show EN DE ZH. Anyone ever run into this?


texts: Generic error during install on DB config

texts:
I'm receiving the above error when attempting to install a new EE3 site. This is the first site we are attempting to stand up on a new WHM server running PHP7. Is there a mechanism to try and get a more detailed error message?

I have confirmed via MySQL Workbench that the settings are correct, but given the non-descript error, I'm somewhat at a loss for where to go next.

This is a brand new server so it's possible a PHP module is missing...


texts: mod_fcgid: read data timeout in 45 seconds --> Premature end of script headers: admin.php

texts:
I'm getting a 500 Error when trying to save a rather large entry. (By "rather large" I mean it includes a 4x9 Matrix, 31x4 Matrix, 5x3 Matrix, Tag, and few text fields.) The Publish screen hangs for several seconds after I click Save and then goes to the error, without saving the entry (as far as I can tell).

The error logs include the following messages:

[Mon Mar 18 16:44:18 2013] [warn] [client 75.148.191.126] mod_fcgid: read data timeout in 45 seconds, referer: http://xxx/admin.php?S=dd4fca62fd66ca80ad02acde5f1ae08bb8e947d0&D=cp&C=content_publish&M=entry_form&channel_id=3&entry_id=1512&filter=YToxOntzOjE1OiJyZXR1cm5fdG9femVuYnUiO3M6MToieSI7fQ==
[Mon Mar 18 16:44:18 2013] [error] [client 75.148.191.126] Premature end of script headers: admin.php, referer: http://xxx/admin.php?S=dd4fca62fd66ca80ad02acde5f1ae08bb8e947d0&D=cp&C=content_publish&M=entry_form&channel_id=3&entry_id=1512&filter=YToxOntzOjE1OiJyZXR1cm5fdG9femVuYnUiO3M6MToieSI7fQ==

I Googled around a bit and couldn't find anything very conclusive. Have any of yall seen this before? Is it akin to a MySQL "server has gone away" error?


texts:
I am creating a competition website. For the competition I am creating a custom module.

The module has a cp backend where I want to be able to add some details about the competition. For example, opening date and closing date.

I will need the data saved to be accessible via templates to use in conditionals etc. I can do this by creating a function within the module to query and then output this I think.

My question is, should I save this kind of information in the settings column of the exp_modules table, or should this be saved in a custom table for the module itself? I will only need one value for each field, so I feel as if a separate table may be overkill, but I am also unsure if its easy enough to get the settings from the exp_module table.

Thank you.


texts: How to use an embed in a Postmaster parcel

texts:
Whenever I use an embed in my EE Postmaster parcel the only content that is displayed is the content generated by the embed. My entire template is wiped out and replaced with just the value that is returned from my embed. According to ObjectiveHTML embeds are supported so I'm hoping there is some way I can get my embed working and not breaking the rest of my template. Any tips or suggestions would be greatly appreciated!

Here is my Postmaster parcel below:

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

Gear Invoice

Order Data

Order Date:
{entry_date format="%l - %F %j, %Y"}

  Order ID:
Gear Order #{entry_id}

Ordered By
{member_firstname} {member_lastname}

Email

  {gear_ordered_by_email}

Billing

Employee

Shipping
{gear_ship_to}

    Items Ordered
      {member_firstname} {member_lastname}

    Total
      {gear_order}
      {gear_quantity} - {gear_item}   {embed="embed/.geartotal" gear_product="{gear_item}" gear_quantity="{gear_quantity}"}
{/gear_order}

{/exp:channel:entries}

Here is the content of my .geartotal embed:

{exp:channel:entries channel="gear_products" dynamic="no" search:title="{embed:gear_product}" limit="1"}
            {exp:multiply numbers="{embed:gear_quantity}|{gear_price}"}
{/exp:channel:entries}

This is running on ExpressionEngine 2.5.2 with Postmaster 1.4.3


texts: File Field within Matrix inside a Low Variable fails to update file field on save

texts:
I'm having a similar issue to this one but with a standard File field type instead of Assets. I tried just a File field type inside a Low Variable and it updated properly. This was dated bcd in June and it appears the problem was resolved with an update to Assets. Any ideas why this happens with the File field type? Solutions?

EE 2.7.2, Matrix 2.5.9, Low Variables 2.4.0


texts: Is it possible to get routes for entries within a custom module?

texts:
I can get all my entries, including entry url titles:

    $entries = ee('Model')->get('ChannelEntry')
         ->filter('status', 'IN', array('open'))
         ->order('title', 'ASC')
         ->all();

    foreach ($entries as $key => $entry) {
        $path = ee()->config->item("base_url")
        $path .= $entry->url_title;
    }

But is it possible to get the full url of all entries in a module? for example:

http://ee5-modules.localhost/blog/entry/the-one-where-we-shake-it-ff


texts: Using wygwam with readmore under contentelements

texts:
{content_a}
    {wygwam:excerpt}
        {value}
    {/wygwam}
    {wygwam:extended}
        {value}
    {/wygwam}
{/content_a}

I wanted to have a readmore button instead, The code above outputs everything from the entry id
Can you help me?

Legend:
Content_a = contentelement field
Wygwam = wygwam under contentelement field


texts: Search tag for grid - 'or' condition on two fields/columns

texts:
I have created a channel named as 'XYZ'  and having following channel fields there :

1) user_type : text

2) profile : grid

    a) first_name : text

    b) last_name :  text

    c) user_name : text

    d) age : text

Now i want to show user listing for a entry and i am having a text box in form and i want to search users from first_name or last name.
i have used following code :

{exp:channel:entries channel="xyz" entry_id=1}
    {profile search:first_name="amit" search:last_name="amit"}
        {profile:first_name}

        {profile:last_name}

        {profile:user_name}

        {profile:age}

    {/profile}
{/exp:channel:entries}

But the code

{profile search:first_name="amit" search:last_name="amit"}

it is using 'and' condition but i want to use 'or' condition.


texts: Possible to upgrade from EE1 to EE2 Core?

texts:
Is it possible to upgrade a normal version of EE1 to EE2 core ? Is there a guide?
Thanks


texts: How can I tell NavEE to ignore the category segment?

texts:
I am running into an issue with a custom NavEE, and I am hoping there is a simple fix for this that I am overlooking.

I have dynamic "secondary" navigation in the sidebar of this site. I want it to always show the nav items that are two and three levels deep. The nav for this site does not go deeper than three levels. Here is my code:

{exp:navee:custom
    nav_title="primary"
    wrap_type="ol"
    selected_class="is-current"
    selected_class_on_parents="true"
    parent_selected_class="is-current"
    start_nav_from_parent="true"
    start_nav_from_parent_depth="1"
}

        {text}
        {if has_kids}
{kids}
{/if}

{/exp:navee:custom}

This configuration is working very well form me until I sort the contents of a page by category.

For example, I have a typical page: http://www.example.com/resources/faqs/ that allows users to click a link to sort the entries by categories. Let's say one of the categories is "Overview". The resulting page would be http://www.example.com/resources/faqs/category/overview. On this page, the dynamic navigation in the sidebar disappears, and I am assuming it's because a selected class is not being declared when I click a link to sort by category.

I hope I explained this well enough, and I would appreciate any insight into this issue.

ExpressionEngine v2.5.5
NavEE v2.2.6


texts: DataGrab Error: "Cannot open file/url" only on production server

texts:
I'm having an issue similar to this:
http://brandnewbox.co.uk/forums/viewthread/644/

I'm getting "Error: Cannot open file/url" when I try to configure an XML import. I'm building an XML feed with an EE template and then trying to access it Datagrab via a URL. This works for me locally but not on the production server.

If I save an XML file, upload it to my server and then get Datagrab to access thru the server file path, it works fine. I just can access from a URL.

Andrew Weaver mentions in the thread above that PHP might be configured to not allow files to be read over http. Any idea how I could change this setting? Is this something I could fix in a php.ini or .htaccess file?

Any idea what's going on here? Or if there's a more descriptive error I could find by enabling a debug more or looking in a log file?

The problem started when I upgraded from v1.5.0 to v1.7.5. I'm also on a Media Temple grid server.


texts:
Is it possible to modify a date variable (entry_date in this case) so that you have entry_date plus one year (or any other amount of time)?

For example, if entry_date was 6/4/14 2:59 PM, could I add one year to that date and end up with 6/4/15 2:59 PM, and would I still be able to use that variable in a conditional statement?

EDIT: Essentially what I want is something like this:

{if (entry_date + one_year) > current_time}

New Product

{/if}

SECOND EDIT:

Robson, I tried the code that you added (both the regular and inverted logic) and I'm unfortunately STILL ending up with the same error. However, I continued to play around with the code and found that this does not throw an error:

{if {current_time format="%Y%m%d%H%i"} == {entry_date format="%Y%m%d%H%i"}}
    less than an year
{if:else}
    more than an year
{/if}

But this does throw the same error:

{if {current_time format="%Y%m%d%H%i"} - {entry_date format="%Y%m%d%H%i"} == 1}
    less than an year
{if:else}
    more than an year
{/if}

Do I need to change the comparative number to something more specific? Are we comparing two variables that we can't compare? Or am I just missing some bracket again? I feel like it's almost there...


texts: Multi-site manager MSM or template group

texts:
MSM or not to MSM?

I have a site where a specific member group can only access one area of the website, would I be better to use MSM or just stick with a template group?

www.mysite.com/preciousthings
or
www.preciousthings.com

If the member goes to www.mysite.com they will be redirected to the /preciousthings directory.

So apart from having a neater url is there any reason to use MSM over a template group, for security etc, or is it just a lot of work for not much gain?


texts: Is this loop possible (EE2) ? I have attached an image what i need exactly. Any help is going to be appreciated. :)

texts:
{exp:channel:entries dynamic="no" limit="1" category="2" sort="asc" entry_id="16"}

Show Category title of category2

    {exp:channel:entries dynamic="no" limit="1" category="2" sort="asc" }

Show subactegory title of category2

        {exp:channel:entries dynamic="no" limit="1" category="2" sort="asc"}

 [![Sub category entries][1]][1]

        {/exp:channel:entries}

    {/exp:channel:entries}

{/exp:channel:entries}


texts: How can I convert a text field to either Content Elements or Blocks without losing existing content?

texts:
A site I manage has thousands of entries across dozens of channels where the main textual content is stored in Wygwam fields. I'd like to convert (or perhaps duplicate and convert) those fields over to either Krea's Content Elements, or Bryan Burgers' Blocks, while retaining existing content in a Wygwam element/block inside either of those two add-ons' fields.

Is this possible, and if so, how would I do it?


texts:
Here is my website:
http://reachoutcelebration.com/

I have another webpage here:
http://www.reachoutcelebration.com/pages

When I click on "contact" on the menu of the "pages" page, it should lead you to the main reachoutcelebration.com page with the title Contact section. As you can see, it doesn't. It throws it some place else several hundred pixels above.

Does expression engine have any dandy way to make anchor tags?


texts:
The problem I'm having is that the data in my Grid field is not influencing the search results.

I have two channels, one of which has a grid field. The field and the relevant row are both marked as searchable.

I've created two Collections, one for each channel, where the weight of the grid field is set to 3.

My template code doesn't use a collections parameter, so I believe it should search both channels?

Yes, the entries were there before I marked the fields as searchable, but I've since re-saved one entry so that it would populate the exp_channel_data table, and re-indexed the Collection so that I could test the search, but I'm still not getting that entry in the results.

Have I missed something else?


texts: PCI Compliance Failure, “User specified URL redirection (Open Redirect)”, return value of form

texts:
I’m 1 vulnerability away from achieving PCI compliance per McAfee’s scan. The dubious “open redirect” remains.

My EE/CartThrob add to cart form returns to “/checkout/review”, but McAfee’s scanner sees that as a vulnerability, whereby a nefarious user changes that url to SomeBadURL.com without the user knowing what occurred.

  Medium User specified URL redirection (Open Redirect) 80/tcp Web
  Application Fail ￼￼￼￼￼￼￼￼￼Description A parameter has been identified
  that can be modified to redirect clients to a user controlled page. An
  attacker could potentially construct a URL that will redirect a victim
  to a site that they control. This type of attack is typical seen in
  phishing attacks where the user is presented with a valid link on the
  site (i.e. http://www.mcafeesecure
  .com/main.jsp?state=4&page=http://mcafeesecure-evilsite.com) and
  mcafeesecure.com redirects the user to mcafeesecure-evilsite.com (T he
  site the attacker controls). The fact that the server name in the
  modified link is identical to the original site helps the attacker by
  giving his phishing attempts a more re liable appearance. CVSS Score
  4.3 CVSS Fingerprint AV:N/AC:M/Au:N/C:N/I:P/A:N Solution Remove the parameter that allows redirection from your site. If the parameter is
  required for operation then construct a list of valid links tha t the
  user can be redirected to [White List] and any other links that are
  specified the user will not be redirected to.

Relevant Form Code:

<form method="post" acti  addFormSubmit()" >
<div class='hiddenFields'>
<input type="hidden" name="XID" value="cc7bade5265c13b73a6393f3e0b2db391bd9fdaa" />
<input type="hidden" name="ACT" value="22" />
<input type="hidden" name="RET" value="http://MyDomain.com/MySegment1/MySegment2" />
<input type="hidden" name="URI" value="MySegment1/MySegment2" />
<input type="hidden" name="FRM" value="f9cb7fd2ec650ab25efd8be6e1c59edb" />
<input type="hidden" name="return" value="checkout/review" />
<input type="hidden" name="secure_return" value="yes" />
<input type="hidden" name="AUP" value="WfGXMcTWPOx1XVmFt6LvlI2aYd+YVbZxexIi7hSShFylpXgvWrYjuNLJOB5OY2+BoZWFRV2ZQxxVlW5Ds0pD2g==" />
<input type="hidden" name="AUS" value="fLSHnnXdrpDnGlbvirXr2Z6/4Hg6o/DaSovhbCDs6BK1Me1qV3HHtKD9+DAcDb7RnuEylWkHFN+v0mYiHDoH4w==" />
<input type="hidden" name="AUW" value="FVT0uiqYd/WKlwoJEHb6mvxxD0J8su77K03FcJx8Z49iomBhCmGzlzvplboiFxCXmGIW0oDBXNDWjVTpI/1icQ==" />
<input type="hidden" name="OTF" value="ksN4R7uwmGvsP9G5z+aRoD25vvgiijPjryLML2QAZX8oDM9fpXUrczcqbIMyTY/lWhaui0i7WdF6FrjM5X5qNg==" />
<input type="hidden" name="JSN" value="uYa6FVq5nf8lhBvSBI2gfa4BIw1RJahHoB6xgPGwytgq56MKs9QoRuouIfUYb5jMsXHbiaZftDuJ2DQML7JXtg==" />
<input type="hidden" name="NTX" value="5HSxCqnvnmVKqDz47jAEnMkL06VTktf5VpOzWZ7VOQ2FnGBcm6O+Qmof1a6x7TYmhVKnr9aia7F41IcpQL1d6Q==" />
<input type="hidden" name="NSH" value="4WarxeRUR3TVn1xKBwFgxyWaByb40ZYeMiIx0npn3E+Ng2NEYhkac7r0UNz75+etGeea0iJdBta62f16cWxUXg==" />
<input type="hidden" name="ERR" value="csHkHXrepr1d3tkjOXErV5ovWAU9HjZFWcgVO/Qna4jn/gkb2hCqXiCaOPoR2U+nTJW2MQKhRrqXgbdsSAN0zA==" />
<input type="hidden" name="RLS" value="Kf2tDiVLXg82Dc2z3iQ+IhzTWfltitqVgB7GPCMyh04ytU1DaxkjXxzDY6SA1vD/rPLxTbVYFfpi3SBFIx6p1w==" />
<input type="hidden" name="site_id" value="1" />
</div>

McAfee is hung up on this particular line:

<input type="hidden" name="return" value="checkout/review" />

I can’t see any obvious EE resources (or Cart Throb) that address this issue.

Does anyone know of a workaround?


texts: Alternative to price_inc_tax in expresso store 2

texts:
I need to show product prices including applicable tax in product form. I have tags like {price} {regular_price} but none of them can show price inclusive tax. I see that {price_inc_tax} was available in store 1 but deprecated in store 2. Is there any alternative available for it on store 2.

Thanks for your help.


texts: Force a newline in rendered html markup (source formatting)?

texts:
seems like a silly question but I cannot seem to find an answer and I'm wondering if I'm not just phrasing it incorrectly or using the wrong terms...

I simply want to force a newline within a loop returning content:

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

{title}

  {/exp:channel:entries}

so that the output will change from:

link-1

link-2

link-3
[etc]

to:

link-1

link-2

link-3

    [etc]

it must be something simple that I'm missing, but I cannot find any references to making it happen in the EE docs or various searches here and elsewhere.

I thought it might be something obvious like adding a {\n} or {NEWLINE} into the mix, but no luck as of yet finding something that works.

little help please?


texts: Show a note that comments will be held for moderation after comment expiration

texts:
How can i show a note to users when the commenting period is expired
(but commenting is not disabled)?

Say, i allow 30 days for comments to be posted on an entry.
Instead of disabling comments after this period, i have set the comment module to hold new comments for moderation
user guide - moderate-expired-comments

on the front-end i would like to show a note that commenting has expired and that any new comments will be held for moderation. However, the {if comments_expired} conditional won't work because, as the manual says, it is overriden by the moderate expired comments settings.


texts: For a list of events, get the first occurrence of each event, programmatically

texts:
In an add-on, I'd like to get a list of entries (events) ordered by the first upcoming occurrence of that event. For example:

Event X: 2016-01-05 and 2016-01-08 (2 occurrences)
Event Y: 2016-01-07, 2016-01-08 and 2016-01-09  (3 occurrences)
Event Z: 2016-01-04 and 2016-01-09  (2 occurrences)

On 2016-01-02, I should get a list of Z, X, Y.
On 2016-01-06, I should get a list of Y, X, Z.

I'm not sure where to begin here. Querying the calendar_events_occurrences seems incomplete.


texts: How to add custom field in ExpressionEngine publish entry

texts:
I need to add a custom field in the publish entry area (specifically in the date tab).
Should I use the Control Panel class or is there a preferred method?


texts:
I am using the product_form tag to add multiple items to the cart at one time. I am passing a category per product to a custom_modifier_name but the value is not being carried over into the cart/checkout.

{exp:store:product disable_form="yes" entry_id="{embed:entry_id}" input:finish="Finish"}
{exp:channel:entries parse="inward" entry_id="{embed:entry_id}" dynamic="no"}

{title}

{price}

<input type="hidden" name="items[{entry_id}][entry_id]" value="{entry_id}" />
<input type="text" name="items[{entry_id}][item_qty]" id="textfield" /> Qty
{modifiers}
{if modifier_instructions}
{modifier_instructions}
{/if}
{if modifier_type == 'var' OR modifier_type == 'var_single_sku'}

<select id="{modifier_input_name}" name="items[{entry_id}][{modifier_input_name}]" style="visibility:hidden">
<option value=""></option>
<option value="{option_id}">
{option_name} {if price_mod_val} ({price_mod}) {/if}
</option>
{/modifier_options}
</select>
{if:else}
{modifier_options}
<input type="text" name="items[{entry_id}][{modifier_input_name}]" />
{/modifier_options}
{/if}
{/modifiers}
<input type="hidden" name="items[{entry_id}][finish]" value="{categories}{category_name}{/categories}" />

{/exp:channel:entries}
{/exp:store:product}

Everything else works great except for my custom modifier. I have tried using it in and outside of the {modifiers} tags with no luck either.

Any help would be greatly appreciated! Cheers!

Danielle


texts:
Searching for all items that are on sale, as of Express Store 2.0.4, is currently MIA, despite the presence of the search:on_sale parameter in the docs. That is, this code...

{exp:store:search channel="products" search:on_sale="yes"}
    {title}
{/exp:store:search}

... returns all items in the products channel, not just products on sale.

You can hack around this by using looping through all products and checking each one using the on_sale conditional:

{exp:channel:entries channel="products" orderby="title" sort="asc" disable="member_data|pagination" limit="99"}
    {exp:store:product entry_id="{entry_id}" disable_form="yes" disable_javascript="yes"}
            {if on_sale}
                {title}
            {/if}
    {/exp:store:product}
{/exp:channel:entries}

But has anyone figured out how to display a Sorry, no items are currently on sale message when no items are on sale? I've tried a PHP (input), PHP (output), and a variety of Stash syntax. Something very strange is happening either with parse order or the way that on_sale works. For example, you would think this would work:

{exp:channel:entries channel="products" orderby="title" sort="asc" disable="member_data|pagination" limit="99"}
    {exp:store:product entry_id="{entry_id}" disable_form="yes" disable_javascript="yes"}

            {if on_sale}
                {exp:stash:set_value name="sale_items_exist" value="true"}
                {title}
            {/if}

    {/exp:store:product}
{/exp:channel:entries}

{if "{exp:stash:get name='sale_items_exist' process='end'}" != "true"}

Sorry, no items are currently on sale

{/if}

Debug: the stash variable is {exp:stash:get name='sale_items_exist' process='end'}

When I use that code, if there is an item on sale, that last line outputs nothing (and so my "no items on sale" message shows up even though it shouldn't). Somehow Stash is not setting sale_items_exist to true.

Has anyone solved this problem some other way?


texts: Using selected playa value as SafeCracker dynamic_title

texts:
i have a very advanced question. I'm building a website where multiple administrators need to edit content. Because of the relationships between these content items and the fact that i want the flexibility to add some tricks in the future i'm using safecracker as main means for adding content.

This way the editors have a good overview that the content they add is in te right place (relationship to other items).

I have one channel setup for adding VIDEOS and each video has a relationship with 1 event and 1 speaker (other channels).I want the title of each video to be "NAME EVENT - NAME SPEAKER".

SOLUTION WHEN USING THE RELATIONSHIP FIELD

When i use the relationship field and give SafeCracker the folowing parameter

  dynamic_title="[name_event_field] - [name_speaker_field]"

It stores the video entry with the entry_ids as title. And example title would be "4 - 10" where 4 and 10 are the entry numbers of the selected event and speaker. I solved this by adding a hidden TITLE field and running the following JS.

  $("select[name=video_sui_editie]").change(function () {    var str = $("select[name=video_sui_editie] option:selected").text() + " - " + $("select[name=video_spreker] option:selected").text();
      $("#title").val(str);
  })

Dirty but works like a charm.

PROBLEM

The relationship field isn't as handy to use as playa and since I would really like to use PLAYA while building the site i'm kinda stuck. The JS interface playa creates is pretty complex and i can't seem to find a point i can hook onto like the piece of JS i used before.

When I give SafeCracker the following parameter

  dynamic_title="[name_of_playa_event_field] - [name_of_playa_speaker_field]"

The title of the stored entry gets is "[name_of_playa_event_field] - [name_of_playa_speaker_field]". So playa and the dynamic_title parameter of SafeCracker are not compatible.

Question

Does anyone have a way to use the value of the selected playa field as title when adding an entry to ExpressionEngine via SafeCracker?


texts: Matrix rows out of order when outputting

texts:
I'm outputting some images using a Matrix field, but they are outputting on frontend in a random order.  I'm trying to output according to rows they are currently in.

I tried using sort and orderby Matrix field tags, but no luck.

Here's sample code:

{stash:content}
    {homepage_sliders}

    {/homepage_sliders}
{/stash:content}

Ended up being a js issue with the flexslider script.

This wasn't working:

        $(window).load(function() {
            $('.flexslider').flexslider({
                animation: "slide"
            });
        });

Replaced with this and worked:

        $('.flexslider').flexslider({
            animation: "slide",
            start: function(slider){
              $('body').removeClass('loading');
            }
          });


texts: Expresso Store - White Screen @ checkout

texts:
I updated to EE 2.5.5 & Store 1.6.2 and ever since the {exp:store:checkout} {/exp:store:checkout} tag pair returns the white screen when any action is completed (update / empty / remove / next)

I quickly uploaded the store_example templates to test and the same issue was there.

So I backed up the Database, and then ran an uninstall / reinstall on the Store module - the functionality returns but I obviously lose all of the data - order information / products / etc and there are thousands.

I replaced exp_store_config.store_preferences with the hash from the reinstalled Store but this didn't help - my guess is that it's a bodged upgrade... I'll try manually changing the version numbers to force an update...

Currently the store is offline as it's impossible to make any purchases so any pointers would be greatly appreciated!

As the post data doesn't submit, it's available in the Output Profiler.

thanks,

J


texts: Accessing MSM install without a domain/subdomain

texts:
We're developing the site on a test URL (server IP). Is it possible to access the the MSM site without setting it up as a sub-domain or domain - ie. is there a path I can use while it's in development?

e.g. 000.000.000.000/index.php/msm-site-two/

Hoping it's obvious, it's been a very long day and I've just installed it all... (copied relevant templates/channels...)

Ta.


texts:
I am having trouble finding a way to get the next entry from an article. With the way that my URI is set up.

For example, I have the URL http ://www.*.com/learn/[channel]/[url_title]. I use the exp:channel:entries tag with the channel parameter set to segment_2 and the url_title parameter set to segment_3(I understand that segment_2 is not really needed to get the results I am after). This displays the article I requested. However, the exp:next_entry tag will not work unless the actual channel is in segment_1.

I have tried other plugins such as Advanced Prev Next Entry, but I have requirements that these don't meet, such as compatibility with Channel Images.

My ultimate goal is to be able to reproduce an experience like this.

Any help on how to find the next entry would be fantastic.


texts: Nesting visitor:update_form within visitor:details

texts:
Is there any reason why I shouldn't nest visitor:update_form within visitor:details? The reason I want to do this is because visitor:update_form doesn't seem to work with the native Relationships field (i.e. can't get details from it in the template) and I want to allow / disallow access based on whether a user is related to an entry. Nesting seems to work, but it would be good to know I'm following best practice.

{exp:visitor:details}
    {if '{client_event:url_title}' == '{segment_2}'}
        {exp:visitor:update_form preserve_checkboxes="no" return="{uri_string}"}
            ...allow access, updates etc.
        {/exp:visitor:update_form}
    {if:else}
        ...don't allow access
    {/if}
{/exp:visitor:details}


texts: Call thirdparty module function directly from PHP in template

texts:
I'm in a situation where I need to logout the current logged_in member without him clicking a logout link. (Javascript click trigger is not an option.)

I'm using the great freemember module (https://github.com/devdemon/freemember/)

How can I call the freemember lougout function directly from PHP in a template ?


texts:
I'm relatively new to ExpressionEngine, and apologise if this seems obtuse!

I have channel entries with a lot of fields associated with them (each channel entry will typically have 20+ channel fields), and I wanted to know if there was a way to pass all those fields to my plugin somehow by just sending through the entire entry itself as a parameter?

Currently, I'm trying to avoid something like this:

{exp:channel:entries channel="my_news" limit="10"}
    {exp:my_plugin:process_something field1="" field2="" field3="" ... field40=""}
{/exp:channel:entries}

Is there an easy and efficient way to send through all those field values to my plugin? Or alternatively, get the entry itself in the plugin and just pass the entry ID as the parameter, something like:

{exp:channel:entries channel="my_news" limit="10"}
    {exp:my_plugin:process_something entry_id="{entry_id}"}
{/exp:channel:entries}

...and then in the plugin:

public function process_something()
{
    $entry_id = ee()->TMPL->fetch_param('entry_id');
    $entry = < some function / method to get the entry and its details > ;
}

Is there something to make this possible? I hope this makes sense, and thank you for any help!


texts: Is there a way to automatically attach emails to an entry

texts:
I'm exploring whether it's possible to attach an email that's sent to a specific address to a particular entry.

I use a project management system called Workflow Max and for each project on the system you get a unique email address. If you CC your client emails to that address they get stored on the system.

I'm building a client area for a client and would like a way to create a similar feature for their client area. In other words, somehow create a unique email address for each entry in the system. When an email is CC'd to that address it's stored in a particular field (or even as a new entry) in EE.

Anyone know where to start with this?

Any help appreciated,

Tom


texts: Display different content if the base-domain contains ".uk" or ".co"

texts:
{exp:channel:entries
    channel="homepage_banner"
    orderby="{ban_strt_date}"
    sort="asc"
    status="open"
    limit="5"
    url-title="{site_url}"}

    {if url-title *= ".uk"}

Display this

    {/if}

Looks like I have got the syntax right. But because of this part of code, the entire test site is down and all it displays is just "dd" in entire page body.


texts: Stash and Cartthrob product options = Not added to cart

texts:
I've hit a wall with this one. I using Stash and template partials to set my page. Currently I am NOT caching anything.

I have products that have product options associated with them and I have tried several approaches to try at get this to work. The bottom line is, that if I have the Carthtrob {exp:cartthrob:item_options entry_id="{entry_id}"} tag on the page, the product fails to add to the cart.

I have tried to use this as a standalone and use Stash to pass an entry ID, I've also tried to set it as a stash item {stash:product_opt}code-here{/stash:product_opt}.

Stash is parsing the tags and outputting them. I am presuming it is a delightful parse order issue! Another thing I have tried is to embed it and also use it as a snippet. No cigar sadly.

Has anyone come across this?

{exp:stash:set_list name="{segment_1}-Product" parse_tags="yes" scope="site" save="no" replace="no" refresh="1440"}
{exp:channel:entries channel="products" status="open" url_title="{last_segment}"}

{stash:title}{title}{/stash:title}

{stash:e_id}{entry_id}{/stash:e_id}

{stash:product_options}
{exp:cartthrob:item_options entry_id="{entry_id}" parse="inward"}
{if dynamic}

{option_label}

{input}

{if:else}

{if configuration} config{/if}
{if options_exist}
    {if configuration_label}{if:else}
{option_label}
{/if}

        {select}
        <option {selected} value="{option_value}">
            {option_name}{if option_price_numeric > 0} +{option_price}{/if}
        </option>
        {/select}

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

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

Many thanks


texts: Problems with Assets 2.1.3 when upgrading - throws db error

texts:
I'm trying to upgrade to version 2.1.3 of Assets but during the update process it throws the following error:

A Database Error Occurred
Error Number: 1265

Data truncated for column 'folder_id' at row 330

ALTER TABLE exp_assets_files MODIFY COLUMN folder_id INT(10) NOT NULL AFTER file_id

Filename: third_party/assets/upd.assets.php

Line Number: 549

Once this happens I have to restore the db to get the site running again. Is there a fix for this?

I am using EE2.6.1, PHP 5.4.14 and MySQL 5

Thanks,
Dave.


texts:
This is something I have had no experience with whatsoever, so I am hoping that someone can tell me whether it is possible or not.

I have a site up and running, and I am looking at starting a section for people to find holiday properties.

The information of these properties can be accessed via an XML feed of the details and a separate csv of the prices and photos.

The data is presented like so in the XML..

<tcreated>2013-04-09 22:30:26</tcreated>
<cweblink>http://www.linhere</cweblink>
<nid>55</nid>
<nremoteid>0</nremoteid>
<tupdated>2013-04-09</tupdated>
<cpropname>Brazengate Family Cottage, Long Ashes, Threshfield, Yorkshire Dales (Ref 55)</cpropname>
<ccountry>England</ccountry>
<carea>Yorkshire Dales</carea>
<csubarea>Yorkshire Dales - Wharfedale</csubarea>
<short_name>Brazengate</short_name>
<cvillagename>LONG ASHES, THRESHFIELD</cvillagename>
<nlatitude>54.0789359001</nlatitude>
<nlongitude>-2.0351578974</nlongitude>
<cpriceinfo>All prices are inclusive of the booking fee.&lt;BR&gt;&lt;BR&gt;Winter Short Breaks (WSB) are available at many properties in the "Winter" period - subject to availability. Extra nights are charged pro rata of the weekly rental.&lt;BR&gt;&lt;BR&gt;Off Season Breaks (OSB) are available at many properties in parts of the "Low" and "Mid" periods - subject to availability. The price for a 3 night break is either 75% of the normal weekly rental or, if it is higher, the quoted Winter Short Break price. Extra nights are charged pro rata of the weekly rental. OSBs can be booked within a calendar month of the start date of the holiday.&lt;BR&gt;&lt;BR&gt;"Last Minute Breaks" (LMB) are available at most properties throughout the "LOW", "MID", "HIGH", "PEAK", "XMAS" and "NEW YEAR" periods. The price for a 3 night break is either 65% of the normal weekly rental or, if it is higher, the quoted Winter Short Break price. Extra nights are charged pro rata of the weekly rental. LMBs can be booked within one week of the start date of the holiday. </cpriceinfo>
<nminprice>310</nminprice>
<nmaxprice>575</nmaxprice>
<nbedrooms>2</nbedrooms>
<lkettle>1</lkettle>
<lparkingspace>1</lparkingspace>
<lsmoking>0</lsmoking>
<nsinglebeds>0</nsinglebeds>
<ndoublebeds>1</ndoublebeds>
<ntwinbeds>1</ntwinbeds>
<nbunkbeds>0</nbunkbeds>
<nfamilybeds>0</nfamilybeds>
<nmaxsleeps>4</nmaxsleeps>
<cproppostcode>BD23 5PN</cproppostcode>
</cottage>

Now I've seen that there is an add-on called Datagrab, and I am assuming this will be handle this kind of import?

I can see how I can map most of those fields, so that shouldn't be a problem. Where I am a bit unsure is that the images for each entry are stored as urls in a separate csv feed that looks like this...

nid,cURL,tUpdated,nPosition
10006,http://sc_13279413350143_10006_01.jpg,2012-01-30,2

Now will it be possible to pull those images in the entries that are created via the initial XML import? It would need to match the "nid" custom field (I create) to hold the "nid" value from the XML and match it with the "nid" in the csv image import. Also it would need to order them as per the nPosition value.

I'm hoping this is possible, because there's around 2000 entries that need to be created, and I really do not fancy doing so by hand!

Thanks!


texts: Create a second save button on top of entry page in EE3?

texts:
This answer does almost have what I need.

But it's two years old and nothing in the links provided in the answer points to a solution for EE3.

I want another save / save + close button pair on top of the entry as I am editing very long entries with many fields.

Does anybody have a working solution for EE3?

Can I use i.e. the plugin Publish Bar which has been last updated in 2011? Did the EE plugin API change a lot since then?

I don't want to alter the backend code, as that would be a lot of work for each time I need to update EE3.


texts: Expresso store - adding note after order

texts:
Is it possible to add a note to an order AFTER it is completed.

I'd like the user to add a note AND add data to a hidden field that is added to an order.

This really needs to be done after the order is paid for.


texts:
So Im sticking with EE1 but I wanted to know if anyone has updated or has any information on updating EE1 to nginx from apache?

Thanks


texts:
I'm running an install of EE v3.5.14 and I'm trying to replicate some of the functionality of the old "Title Master" add-on, but I'm hitting a snag.

I've got my extension to hook to the custom_field_modify_data($ft, $method, $data) extension hook, and have it so that when $ft->field_name is 'url_title' and $method is 'validate' it checks for whether the URL title is taken for that channel already, and if so to append an integer increment afterwards.

All looks to be working just fine so far, however I'm hitting a snag with the channel entry form's ajax validation.

When the ajax runs it calls the fieldtype's validation, and this does trigger my hook (I've tested with a dump/die). However if I have it update the $ft object's values it does not update the 'url_title' form input field. I'm guessing I'd need to run some javascript to handle that, but I have no clue how to do that.

Below is my code so far:

function testApi(EE_Fieldtype $ft, $method, $data)
{
    if ($ft->field_name == 'url_title' && $method == 'validate')
    {
        $url_title = $data[0];
        $increment = $this->getIncrement();

        while($this->checkUrlTitle($data[0]))
        {
            $data[0] = $url_title . $increment++;
        }

        ee()->db->update(
            'title_master',
            array(
                'increment' => $increment
            ),
            array(
                'channel_id' => ee()->input->post('channel_id')
            )
        );

        $ft->settings['field_data'] = $data[0];
    }

    return $data;
}

How can I get this to update the form input field for the 'url_title'?


texts: Problem with playa inside url segment conditional

texts:
Having an issue placing playa inside a URL segment conditional. Inside the conditional, playa doesn't return entries, though if I substitute the playa call with simple text, the conditional works. And strangely, if I have a blank {if:else} statement, the playa entries will show.

Any ideas?

Doesn't work:

{exp:channel:entries channel="my-channel" limit="1"}
   {if segment_3 == "{entry_id}" }

        {exp:playa:children field="my-channel-field"}

{title} - {other-field}

        {/exp:playa:children}

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

Works:

{if segment_3 == "{entry_id}" }
  Nice id!
 {if:else}
  Sorry, underage!
{/if}

Also works:

   {if segment_3 == "{entry_id}" }
        {exp:playa:children field="my-channel-field"}

{title} - {other-field}

        {/exp:playa:children}
    {if:else}
   {/if}


texts:
I've a MSM site and I want to create multiple administrator accounts.

Example

Admin1 => subdomain1.msmsite.com

Admin2 => subdomain2.msmsite.com

But the back-end/CP panel is located on subdomain1.msmsite.com/system

Is it possible to reach subdomain2.msmsite/system with Admin2?

subdomain2.msmsite/system has a HTACCESS rewrite condition to subdomain1.msmsite/system


texts: How to redirect specifically dependent on Group ID selected

texts:
I'm new to this forum so hoping you can assist me with something that I've completely hit a dead end with.

I basically need to specify a confirmation page dependent on Group ID selected within a registration form (using the user module).

Below is a link to the thread I have already posted with the module developer but what they have recommended hasnt worked.

http://www.solspace.com/forums/viewthread/14730/#57817

I would've thought something like this would be relatively simple.

Any help would be gratefully appreciated.

Thanks
Scott


texts:
I'm using Exp-resso Store. Is there a way to use the backspace parameter in the {modifiers} tag? For the cart view, I'm hoping to list the modifiers that are being used, something like this:

{modifiers backspace="2"}
    <strong>{modifier_name}:</strong> {modifier_value}
{/modifiers}

That would output something like: Color: Blue, Size: X-Large

Thanks a ton,
Brennan


texts: Is there a way to define snippets in the index.php or config.php file?

texts:
I'd like to define snippets dynamically in the index.php file.

Is there a way to do this?


texts:
I cant seem to get this working on my test but does anyone know if its possible to filter a related list of entrys by author_id using the new standard relationships?  or am I better off using playa?

{exp:channel:entries channel="fairs" entry_id="{active_fair}" dynamic="no"}
  {parents field="application_related_fair" author_id="{member_id}" limit="1"}
    {parents:entry_id}
  {/parents}
{/exp:channel:entries}

Im pretty sure i can do this using playa, but not sure that it works with standard relationships?

UPDATE:  so i got it working when i hard code the author_id so it says something like author_id="1"

my issue now seems to be parse order/stash related

here is the full code... basically trying to set a list but within the stash member_id is coming back blank?

{if logged_in}
    {exp:stash:set_list name="active_application"  parse_tags="yes" parse_vars="yes" scope="user"}
        {exp:channel:entries channel="fairs" entry_id="{active_fair}"  dynamic="no"}
            {parents field="application_related_fair" author_id="{member_id}" limit="1" status="not Closed"}
                {stash:app_id}{parents:entry_id}{/stash:app_id}
                {stash:app_status}{parents:status}{/stash:app_status}
            {/parents}
        {/exp:channel:entries}
    {/exp:stash:set_list}
{/if}

So this full block works perfectly if i set author_id to a specific number... but if i set it to {member_id} it still outputs but its not taking the author_id filter into effect.


texts:
I've set up a form on a site for super-admins to check out as other users, , making use of the member_id parameter found here - http://cartthrob.com/docs/tags_detail/checkout_form/index.html#member_id .  This is being used, essentially, to gift a purchase to these users, who need this purchase to do certain things on the site.

Here's the opening tag I have:

{exp:cartthrob:checkout_form
id="checkout_form"
name="checkout_form"
return="/foo/bar"
gateway="ct_offline_payments"
required="first_name|last_name|phone|address|city|state|zip"
cart_empty_redirect="/foo/bar"
member_id="{segment_3}"
price="0"
}

However, when I use the checkout form, my orders are going in with the user id of the admin checking out.  I also notice that forum topics on the CT support forums with responses as recent as November, like this one - http://cartthrob.com/forums/viewthread/4636/ - reference a separate extension and custom fields to do this.

Does anyone have familiarity with doing this, or has used the parameter above effectively?


texts: Early Parsing with Low Variables and Member Export

texts:
I am using the Add-On ajw_export and Low Variables to export a csv of member details.  When the page loads the member data is exported on page load. I would like to use Low Variables for early parsing, to allow the system to know which member group is trying to access the page.

Im having two issues, either the content is exported regardless of which member group is logged in or else nothing is exported. Im certain I have written the tags incorrectly. Any help would be appreciated

               `{exp:low_variables:parse var="gv_member_export" multiple="yes"}

                    {if logged_in_group_id == 1}

                        {exp:ajw_export sql="SELECT * FROM exp_member_data" format="csv" filename="ascertusers.csv" }

                    {if:else}

                        Theres Nothing here for you to see

                    {/if}

                {/exp:low_variables:parse}`


texts: Assets 2 There was an error uploading your file: Your upload directory isn’t writable

texts:
After deploying my site to a production server I am encountering errors when uploading files in Assets. Uploads in the native File Manager work fine.

Running EE 2.5.5 and Assets 2.0.5 on Windows 2008 IIS.

Error Message: There was an error uploading your file: Your upload directory isn’t writable.

I've checked permissions for the expressionengine/cache folder and they are ok. Thumbnails and such get generated in the assets cache folder.

I was also running into a duplicate folder listing which was resolved by following this thread: https://getsatisfaction.com/pixelandtonic/topics/not_indexing_correctly?utm_content=topic_link&utm_medium=email&utm_source=reply_notification

I have tried with and without the following config overrides without success:

/*-- Assets --*/
//$env_config['assets_site_url'] = '/index.php';
//$env_config['assets_cp_path'] = './';

I'm not sure what else to try here... help!


texts: CartThrob - Send Order ID to gateway instead of Entry ID

texts:
When sending orders through to the payment gateway (Cardsave Worldpay in this case), CartThrob  is sending the order number as per the Entry ID. This then shows the Entry ID in the gateway's control panel, as the order number. This makes cross-referencing very difficult.
Is it possible to send the Order Number instead?


texts: Faceted search with categories using Low Search

texts:
So I am trying to set up a faceted search which is based on categories - but EE's default category parameters aren't clever enough for me with just the & or | separators, so I was wondering if I could do what I need to with Low Search.

I have 5 category groups: Age, Artists, Type, Medium and Topic. In each of these is an unknown number of categories. I am displaying checkboxes on the front end for each category group, and have entries assigned to at least 1 category in each group. Here is my list of filters so you can see the options:

The default view when nothing is ticked is all entries. If I tick 'Multiple' I want all entries categorised with 'Multiple' to show. When I have 'Multiple' and '8-10' ticked I would like everything categorised as both 'Multiple' and '8-10' to show. So far so easy - but here is where EE's default breaks:

I tick 'Multiple', '8-10' and '11-14' I want to show everything that is categorised as 'Multiple' and '8-10' or 'Multiple' and '11-14'.

I hope this makes sense and isn't too long winded - ask if something isn't clear and I'll try to clarify. Does anyone know if this is possible with Low Search, and if not - how might I go about it?

Thanks!


texts: How to download Expression Engine version 3 and 4?

texts: Please guide me how to download Expression Engine version 3 and 4.


texts: pagniation_page_number-variable does not parse in Solspace Tag-Module

texts:
I am using this code inside the exp:tag:entries-loop to generate pagination:

{tag_paginate}
                {tag_pagination_links}

                        {first_page}

Erste Seite

                        {/first_page}

                        {previous_page}

Vorige Seite

                        {/previous_page}

                        {page}

{pagination_page_number}

                        {page}

                        {next_page}

Nächste Seite

                        {/next_page}

                {/tag_pagination_links}
                {/tag_paginate}

The variable pagniation_page_number is not parsed, the same for the variable page - see screenshot attached:

Could you please give me a hint how this could be fixed?
Thanks!