texts: Tracking Video Plays in Google Analytics

texts:
So I have a rescue client running EE 2.10.1  where the client has a number of videos across the site that he wants to track plays. Can anyone provide pointers on how I can achieve this? I'm not very familiar with GA, usually just drop the code into the site and I'm done with it. Here is a quote from my client

  On my Vendor Entry Form Page I have a Vendor Tracking Code at the
  bottom. I then use this code on my Article Pages, Manufacture Pages,
  Redirect Pages. This allow me to run my GA Report using that code and
  all the activity show up on one report per client. This is what I use
  to charge my clients.

  On the Vendor Entry Form, I can add Video. However when the video is
  watched, it doesn't get tracked. No Video is being tracked on my site.
  I would like to add the vendor code somehow so that when the Video is
  clicked on and watch, that activity url shows up on my report also.

Looking at the current GA code I see a bit of custom code being sent that looks similar to this: https://developers.google.com/analytics/devguides/collection/analyticsjs/events

specifically:

ga('send', {
  hitType: 'event',
  eventCategory: 'Videos',
  eventAction: 'play',
  eventLabel: 'Fall Campaign'
});

Would I be able to add that into this bit of the GA code and not break anything?

<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-*******', 'auto');
  ga('set', 'dimension1', '{exp:stash:client_code}');
  ga('send', 'pageview');

</script>


texts:
I'm working on an XML template for a site and need to output a series of listings where URLs look like:

/store/#type#/#brand#/#collection#/

My entries are set up so that there's an entry for each brand with a matrix row for each collection (type is a category of the entry).

So I need to loop through the entries in the channel and then loop through the matrix rows for each entry and output a <url> pair for all of them.

With the code below I get output if I don't have the exp:stash:get_list:nested tag (but with incorrect URLs), but with it, I get nothing.

{exp:stash:set_list
    name="collections"
    parse_depth="2"
    parse_tags="yes"
}
    {exp:channel:entries
        channel="brands"
        disable="member_data|pagination|trackbacks"
        dynamic="no"
    }
        {stash:collection_url_title}{url_title}{/stash:collection_url_title}

        {stash:collection_entry_id}{entry_id}{/stash:collection_entry_id}

        {stash:collection_type}{categories}{category_url_title}{/categories}{/stash:collection_type}

        {exp:stash:set_list:nested name="collection_{collection_entry_id}" parse_tags="yes"}
            {cat_images}
                {stash:collection_cat}{exp:cat2:url_title category_id='{cat}'}{/stash:collection_cat}
            {/cat_images}
        {/exp:stash:set_list:nested}

    {/exp:channel:entries}

{/exp:stash:set_list}

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

    {exp:stash:get_list:nested name="collection_{collection_entry_id}"}
        <url>
            <loc>http://www.domain.com.au/store/{collection_type}/{collection_url_title}/{collection_cat}/</loc>
        </url>
    {/exp:stash:get_list:nested}

{/exp:stash:get_list}

Anyone see where I'm going wrong?


texts: Prefilling state and country fields on checkout from users account

texts:
It seems when a customer checks out using Store after having created their account, the state and country drop-downs default to what we've told them to in the Story settings and not pulling from the user's account info. We've mapped those fields to the member fields.

I'm sure it's a coding thing but I could use some help in figuring this out. What I have now for those drop-downs:

State/Region <select name="billing_state" class="store_select" style="width:230px;">{billing_state_options}</select>

Country <select name="billing_country" class="store_select" style="width:230px;">{billing_country_options}</select>

Thanks!


texts: Advanced Search Form Multi-select on Categories for one Channel

texts:
I am currently switching my site from the Simple Search Form to the Advanced Search Form. I would like to allow my users to search on the Categories for one channel. I used the example code provided in the documentation. I would really like to remove the "Channels" section on the search. I know I want to search one Channel (News). With the built Search module is there a way to do the multi-select on the category without the multi-select on the Channel?

I included a screenshot of what my search currently looks like and the code of the search template.

Thanks for your help!!!

{exp:search:advanced_form channel="news" search_in="entries" form_class="search-form" result_page="newsroom/results" results="12"}

<fieldset>
 <legend>{lang:search_by_keyword}</legend>

     Keywords
     <input type="text" name="keywords" id="advancedKeywords" value="">

     {lang:channels}
     <select id="channel_id" size="2" name="channel_id[]" onchange="changemenu(this.selectedIndex);">
         {channel_names}
     </select>

     {lang:categories}
         <select id="categories_id" name="cat_id[]" size="4"  multiple="multiple" style="width:154px;">
             <option value='all' selected="selected">{lang:any_category}</option>
     </select>

</fieldset>
<fieldset>
 <legend >Dates and sorting</legend>

   <select name="date">
     <option value="0" selected="selected">{lang:any_date}</option>
     <option value="7">{lang:this_week_and}</option>
     <option value="30">{lang:one_month_ago_and}</option>
     <option value="90">{lang:three_months_ago_and}</option>
     <option value="180">{lang:six_months_ago_and}</option>
     <option value="365">{lang:one_year_ago_and}</option>
   </select>

     <input type="radio" name="date_order" value="newer" id="newer" class="radio" checked="checked">
     {lang:newer}
     <input type="radio" name="date_order" value="older" id="older" class="radio">
     {lang:older}

</fieldset>
<input type="submit" value="Search" class="button news-button">
{/exp:search:advanced_form}


texts: How do I troubleshoot a member who is unable to log in?

texts:
I have a member who can't log into my site via a log in form in a template (not accessing the control panel). He has tried two accounts off the same computer, I can access the site using his account. He doesn't get any feedback after logging in like he's using the wrong password, etc. The page just reloads like he did nothing. I'm not sure how to figure out what the problem is.

I've asked him to clear his cache and cookies and restart, which he has done. I've asked him to download and try using Firefox or Chrome instead of Safari to see if it's a problem with his browser, which I'm getting the feeling is asking too much of him. I have had no problems with the other 25 members who have accessed the site.

A little bit about the set up. I have all the access settings for most of the site set to "no access" for guests with my login page as the template that loads if the person is not logged in. So I think it's not finding anything wrong with his login credentials, hence no errors, but hitting some issue to logging him in and then loads the login page again.

Thanks for any suggestions.


texts: Undefined property: Wizard::$cache during upgrade from 2.3.1 to 2.8.1

texts:
I am upgrading from 2.3.1 to 2.8.1. I have gone through all the initial documented upgrade steps. I am also running MSM, and I have upgraded these files as well.

The installer loads correctly, then when I click the "Go ahead and upgrade" link (I forget the exact wording) I get a blank page. With debug = 1 I get the following error details:

A PHP Error was encountered
Severity: Notice
Message: Undefined property: Wizard::$cache
Filename: database/DB_cache.php
Line Number: 49

( ! ) Fatal error: Call to a member function get() on a non-object in (...)/admin/codeigniter/system/database/DB_cache.php on line 49
Call Stack

1   {main}( )   ../index.php:0

2   require_once( '..../admin/codeigniter/system/core/CodeIgniter.php' )    ../index.php:235

3   Wizard->_remap( )   ../CodeIgniter.php:306

4   Wizard->_license( ) ../wizard.php:266

5   CI_DB_active_record->count_all_results( )   ../wizard.php:642

6   CI_DB_driver->query( )  ../DB_active_rec.php:1023

7   CI_DB_Cache->read( )    ../DB_driver.php:276


texts: Renaming image files upon upload.. Channel Images?

texts:
I have a gallery on each of my single entry pages, that includes image files uploaded by my users.

Is there a way to automatically change the filenames of these images upon upload? Something like IMG1074.jpg to entry_title_001.jpg?

I'm outputting the images via CE image, and I have tried the filename= parameter, but that renames all the images within the gallery to the same filename.


texts: How to show entry modified date in CP entry listings?

texts:
With the Control Panel, is there a way to show an entries modified date within the entry listings rather than the creation date?

I believe it's possible with Zenbu but since that's all I would need it for purchasing that add-on would seem a little over the top.


texts: Looking for a way for clients to upload files, need obfuscated links on front-end and need to group files with headings

texts:
I've used Channel Files(DevDemon) field to upload files and list them with obfuscated links on the front end successfully. But on a new site I need to group files and give them headings. Channel Files allows grouping by category, but the client can't add categories on the fly.

I need to display the files on the front end similar to this...

Any ideas on how I can do this? Will the Assets plugin allow me to do this? Thanks for any ideas.


texts:
Just upgraded from 2.5.5 to 2.7
Not a smooth upgrade as it whitescreened - when I turned errors on it gave me this:

Fatal error: Class PT_Fieldtype contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (EE_Fieldtype::display_field) in /home/foobar/public_html/foobar/system/expressionengine/third_party/pt_field_pack/pt_fieldtype.php on line 148

Yes it was still running the old field pack but by then I'd not upgraded any third party modules yet.

I'm still running PHP 5.2.15 incase that matters here.
Clues?

Thanks
John

edit: I've just rolled back to 2.5.5 (and 2.7 failed again) but I can report that my P&T fieldtypes are 1.0.3


texts: How to get customer shipping country code to generate shipping rates in Cartthrob for that specific country?

texts:
Presently I only ship within the UK and now wish to extend this to Europe. Shipping is by location and weight thresholds, and I have configured the requisite shipping prices. I have entered the country codes into my_locales and the payment gateway. How do I capture the customer's shipping county at the point of purchase so the shipping calculations will be accurate when they view basket?
Using Cartthrob 3.01


texts: Renaming System Folder - Creates reload loop

texts:
I wanted to rename my system folder. But when I do so and point my browser to the new cp url I create a infinite reload loop and chrome goes nuts.

Renamed system folder Check
Renamed system url in admin.php and index.php Check

I've done it x times on the same environment and suddenly this loop error appears.

In my .htaccess I have the new remove index.php directives from the ellislab blog

<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]
</IfModule>

First I thought this could be the error but it also doesn't work with the old index.php removal code.

Anybody experienced the same behavior?

EE v 2.72
PHP : 5.5.3


texts:
Is anyone able to provide some advice on how these guys might have achieved their URL structure/naming? Is it done with template group names, plugins, both?

They are listed in the CartThrob gallery: http://www.chicathome.co.uk/

Looks like they get http://www.chicathome.co.uk/category/sub-category/product-name

Even their checkout pages have super simple URLs

PART A:
We currently have for categories: http://www.domain.co.uk/template_group/template_name/
Be nicer to have http://www.domain.co.uk/category

And for products we currently have:
http://www.domain.co.uk/template_group/template_name/url_title
Be nicer to have http://www.domain.co.uk/category/url_title
(and to have breadcrumbs of home > category > product title)

Plus they have products grouped into categories rather than all lumped in together. We have a playa field {product_category} for each product that says which categories the product needs to appear in - they can appear in more than one. Which also throws up how do you handle breadcrumbs for products that can appear in multiple areas?

PART B:
Products can also be shopped for: by colour {by_colour}, and by occasion {by_occasion} - which are a playa field each in the product entry page of the EE CP.

So you'd want the following URL structure (and breadcrumbs of home > red > product title):
http://www.domain.co.uk/red/url_title

I know this is probably EE related more than CT related. This is only my third EE site and first store. I just can’t get my head around how to get it all to work… wish we could take a peak under the hood of Chic at Home!

Does anyone have an example template group setup or similar that would demonstrate how I should be going about this?

Thanks for your time.


texts: Issuing Partial Refunds in Expresso Store

texts:
I need to be able to refund single items from orders containing multiple items. Currently, I can delete a unwanted item from an order, but my only option for returning funds to the customer appears to be refunding the entire order and then creating a new payment for the new amount owing.

Is there another way to accomplish this?


texts: store checkout tag does not display order_email error

texts:
This is all done as a guest user, I am not logged in when I go thru the checkout process and the store setting allows for guest customers.

I have the create an account form on the order checkout page, it asks the user for their password and to confirm it, once they complete the order, it will create an account using their email address they typed in from the previous screen, just to make sure it is being included, I display it on the same page {field:order_email} and it is populated with the correct email.

Then I fill out the rest of the form and click submit, it returns to the same page with no error about the email I used already being registered which is what I expected to see, as the email is being used by a customer who had already been registered but it does not output that.

I then submitted the form and made sure the password and confirm password fields did not match, it returned the error messages as expected using: {error:password} and {error:password_confirm}

Then I went into CheckoutAction.php line 208 and did a var_dump of the form errors and it returned:

array(3) {
    ["order_email"] => string(36) "The email you chose is not available"
    ["password"] => string(61) "The password you submitted must be at least 5 characters long"
    ["password_confirm"] => string(53) "The Password field does not match the Password field."
}

It returns the error but I do not know what I am doing wrong.

This just shows the opening checkout tag, the part of the form that a user can select the checkout ({field:register_member}) to create a new account.

{exp:store:checkout
    return="shop/receipt/ORDER_HASH"
    error_handling="inline"
    error_delimiters='|'
    form_class="validate"
    form_id="payment-form"
    html:data-abide="ajax"
}

            {field:register_member} Create An Account? howdy
            {field:order_email}
            {error:order_email}

            Set your password
            {field:password}
            {error:password}

            Type your password again
            {field:password_confirm}
            {error:password_confirm}

{/exp:store:checkout}

It works fine if the order email I supplied is not of an existing registered user but I expect it to return an error when the email is already registered.

UPDATE: I removed error_handling="inline" from the checkout opening tag and it displays as expected now, but I need to use error_handling="inline"

I read in the docs:

  you should try is removing the error_handling="inline" parameter from
  your template, as often this is caused by validation errors which you
  have forgotten to display error messages for.

The template I have the checkout form tag on contains the create account form (password, password_confirm fields and error messages as you can see above in the code example) and it also creates fields for the customer to enter their payment information. We use stripe for payment and have js code to validate that, so that does not have any {error:field_name} tags near it. We need it use inline error handling.


texts: Adding trailing slashes and redirecting to www in .htaccess

texts:
I'm using the following code in my .htaccess in order to redirect to the www version of the website and also to add a trailing slash by default. It all seems to work, but I wondered is this the most efficient way of doing it. I'm no expert on this side of things, so I've bolted this lot together from the official EE docs and a couple of separate articles I found on the subject.

RewriteEngine On

RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+[^/])$ /$1/ [R=301,L]

RewriteCond $1 !^(admin|assets|uploads|favicon\.ico|robots\.txt|index\.php) [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

AddHandler php5-script .php

Should I (if possible) combine the rules? At the minute you can end up with two 301 redirects if you go to the non www version of the website without the trailing slash.

My motivation for making these changes is to improve the general SEO of the site, so any tips are most welcome.


texts: Having payment fail issues with CartThrob

texts:
Seem to be having issues with CartThrob and Discount codes that is leaving me with the error

Your payment failed: Failed: The totals of the cart item amounts do not match order amounts. 10413

I see the error has cropped up before, but doesn't seem to have been fixed from what i can gather. Its only when using a discount code that the error is cropping up. Everything is fine on the basket but when its sent to PayPal Express then its not matching up or been handled correctly.

Have tried reinstalling CT 2.5 but no joy...

B.


texts: I have several channels of content and wish to flag selected entries to display on a section in the homepage. I know Joomla has this built into each article, and wondered how I would achieve this with EE?


texts: Multiple Sites, Selling The Same Inventory Items

texts:
I need to build a network of online stores that all have access to the same inventory items (which will contain stock levels, purchase cost to the store, etc.). The individual stores must have access to this centralized inventory and opt to either sell or not sell the inventory items. They should be able to also see the purchase cost of the inventory items, set their own pricing for the inventory items (ability to do this via bulk would be great, like "20% profit for all items in category x"), etc.

Additionally, it is necessary for the individual stores to be able to add their own inventory items to the their stores. Meaning, they are not limited to just selling the items from the centralized inventory.

The inventory would ideally be stored in a single repository so that adds/edits/deletes can be done centrally.

Also, there needs to be a way to categorize the inventory items in a hierarchical manner.

Is there an addon I can use for this? I have never used Expr-esso or Cathrob -- and I'm not sure if those are the only options I should be looking at.


texts: Using embedded templates with plugin that doesn't parse them

texts:
We're using an EE (2.6.1) plug-in that doesn't process embedded templates, which we would like to use.

When we embed a template inside of the code below the embeded code displays exactly as is, non-parsed static text.

We've tried adjusting the PHP parsing order, since some of the embedded templates use PHP. We've tried parse="inward" on the channel tag, switching tag orders and even snippets to no avail.

Any help pointing me in the right direction would be greatly appreciated.

Code excerpt from top of template:

{exp:channel:entries channel="people" limit="1"}
{exp:shine_pdf:make
    format="letter"
    default_font_size="11"
    default_font="Helvetica"
    margin_left="0"
    margin_right="0"
    margin_top="0"
    margin_bottom="0"
    margin_header="0"
    margin_footer="0"
    orientation="p"
    margin_top_auto="no"
    margin_bottom_auto="no"

channel="people"

limit="1"
}


texts: Displaying a single entry by status but having a fallback order in place

texts:
Hopefully this will just be a quick one and it maybe staring me in the face but what I want to be able to display a related testimonial of an entry.

If the testimonial has a custom status of Featured, then this will be displayed. If no testimonials have this status set, then it will revert to the latest testimonial added, presumably with a status of Open.

Can anyone help me out on how I can do this. Below is what I thought may do the trick

{if page_related_testimonials}

{page_related_testimonials
 channel="testimonials"
 status="Featured"
 orderby="date"
 sort="desc"
 limit="2"}

    {if status=="Featured"}
    {title}
    {if:elseif status=="open"}
    {title}
    {/if}

{/page_related_testimonials}

 {/if}


texts:
I am using EE 2.8.1 and was wondering if it is possible to get entries from a certain year and further back in time. For example, this is for an archive page. There are pages for each of the last 5 years and that is all working fine, but for anything beyond 5 years I just want a generic archive page.

In short I can't seem to figure out a channel entries tag to say: Get me every entry from this channel that was entered on or before 2010. So I would get all entries from 2010, 2009, 2008, etc.

My first attempt was with a search field, something like this:

{exp:channel:entries channel="press_releases" dynamic="no" search:entry_date="2010-01-01 00:00:00"}

But that just returns every entry. I tried using > signs in the search and still no luck. I'm sure others have had to do this in the past (and I'm surprised I haven't done it before myself), but was drawing a blank and no luck googling.

Thanks!


texts: Redirected to homepage when adding/editing custom fields

texts: After updating the system to 2.7.2 I am no longer able to add or edit channel fields. I just get redirected to my default homepage and the form doesn't submit.


texts: I'm looking for a way to use exp:query in entries. So far I haven't been able to find this. I know it's not recommended but for what I'm trying to build it's most feasible to do so. That way I'll be able to get data from other datatables.


texts:
I imported content from an old CMS system into EE, 2600 entries. In one field I imported yuotube url.

Is there any way that this same URL will be automatically inserted into the chanel videos of that entry?


texts: Is it possible to set up a custom date range for a Low Entries tag that looks for events in the current school year?

texts: I'm having trouble figuring out how to do this - I have a Low Events template tag that I'd like to set up with a custom date range that searches for events within the current year, BUT that current year is based on a Jul-Aug span instead of a Jan-Dec span.  Any guidance or examples would be hugely appreciated!


texts:
My organization has a site built on ASP.NET. It uses ASP.NET to manage the users (students, class coordinators, and finances). However there is a small 'content' component of the site: about the class, about the organization, and some other content that will need to change and grow over time. However that part of the site is currently managed by Kintera which is $$. We want to get everything out of Kintera and into a CMS. ExpressionEngine is one being considered.

The site uses some iFrame's to pull content from the ASP.NET site into the Kintera managed content. This will likely be needed in an ExpressionEngine managed site.

These iFrames use content that is dynamically created from the ASP.NET site. The user's session will then need to be shared between ExpressionEngine and ASP.NET.

I am not involved in the ASP.NET site so can't say too much more than this. I will see if the developer of that site can provide any additional information or respond to your comments/answers.


texts:
I've just updated my version of Primary Category from Solspace from version 2.0.2 to 2.2.1 in my EE 2.5.2 install and run into what I think is a bug. A BIG change in the update is that you now need to wrap your primary category variables inside a {primary_categories} tag pair inside the channel entries tag (in the past you could just use the primary category variables inside channel entries without the wrapper). So I updated my templates, but when I put in the wrapper tags I had some channel entries that suddenly were displaying duplicate and broken content. After investigating I found the common thread for the broken entries was that they had channel field content that contained the '$' symbol. So for example a reference to a price, like $1,099.00, in the title or body. This appears to be a bug in Primary Category.

Has anyone run across this same issue and if so do you have a fix or work around?

Thanks.


texts:
I've looked at a bunch of posts on here but nothing specifically helps with this issue.

Background: I like to offer users rich content choices and have achieved this in the past with a mixture of Matrix and Wygwam, with Assets for images and file downloads, and text areas for embed code. I then build templates and use Template Snippet Select to provide alternate ways of laying out the content page interface (tabs, accordions, page view, etc). Its ok, but with the Blocks module Im hoping to be able to offer this in a much more streamlined way. I'd really like to move to Channel Images because of their in-form image editing and tidy way of organising where images appear in the file manager. So, I contacted Bryan Burgers who built Blocks to ask how CI might integrate - he said it would only work through Wygwam. So, I'm testing a configuration of using Blocks with Wygwam and Channel Images.

My trouble here is that the Channel Images icon does not appear in the Wygwam CK Editor panel in the publish form, either with or without Blocks. It shows in the config area for Wygwam, but not in the channel field.

Ive made sure all upload file permissions and urls are correct. What is going on?

NB Im working in localhost EE 2.9 with CI 5.4 and Wygwam 3.3 (on PC) but am now trying in a EE2.7 remote environment to run a test there.


texts:
i was searching for a while, but my Google-fu probably isn't strong enough to find out, how to create a CKEditor Fieldtype, or find any plugin, that will do that for me. So what am i asking for? Does anybody know any EE2 compatible plugin, that will give me a CKEditor Fieldtype (Preferably free one)?

And additional question, is there any possibility to create new content and edit it using frontend forms (so moderators don't need to go to CP)?


texts: Transcribe replace returning weird string

texts:
It's my first time with EE and I'm modifying the template of an existing blog. It's multilingual so it uses code like {exp:transcribe:replace name='written_by'} to display different texts, in this case, Written by.

On some pages, for example on an article single, this line of code returns Written by as it should.

However, on some pages, for example on the index, it returns M10O93H7PQ09L8X1T49CHY01Z5J4TT91FGFR...

Sample returned HTML code:

Article title

    M10o93H7pQ09L8X1t49cHY01Z5j4TT91fGfr Jhon Doe
    M20o93H7pQ09L8X1t49cHY01Z5j4TT91fGfr Feb 25, 2015

Template code:

{exp:channel:categories show_empty="yes" channel="my_channel" id="categorylist" category_group="11" style="linear"}

{category_name}

    {exp:channel:entries channel="my_channel" category="{category_id}" limit="3" paginate="bottom"}

            {blog_post_main_image}

            {/blog_post_main_image}

{title}

            {exp:transcribe:replace name='written_by'} {author}
            {exp:transcribe:replace name='on_date'} {entry_date format="%M %d, %Y"}

    {/exp:channel:entries}

{/exp:channel:categories}

Any idea why it does that? I tried to search a lot on Google and found nothing that could help me.

Thanks!


texts:
The Solspace Freeform CSV export function currently shows the ID number for any file uploads.
Is there any way to show the filename instead of the ID in the export?


texts: Solspace Super Search - random results for the title field

texts:
I'm getting some weird search results with Super Search in relation to the title field.

Channel Videos: I have 3 entries called Video Gallery 1, Video Gallery 2 & Video Gallery 3

Channel Images: I have 3 entries called Image Gallery 1, Image Gallery 2 & Image Gallery 3

Please note the capitalization of the search terms.

If I search for the term "gallery" I get 6 results.

If I search for the term "Gallery" I get 6 results.

If I search for the term "image" I get 3 results.

If I search for the term "Image" I get 3 results.

If I search for the term "Image Gallery" I get 3 results.

If I search for the term "image gallery" I get 0 results.

Why on earth does the search appear to be case sensitive on the last one? It makes no sense.

Here's the code that fixed my issue:

            Search Media

            <form class="col-xs-12" action="{path='media-gallery/jim-sol'}/" method="post">
                <input type="hidden" name="XID" value="{XID_HASH}" />
                <input
                    type="text"
                    name="keywords"
                    id="keywords"
                    placeholder="Search Media">
                <input type="submit" value="" class="serch-butt" >
            </form>

Video Results super_search_total_results = {super_search_total_results}

            {exp:super_search:results
               channel="media_videos"
                status="open|featured"
            }
    {if super_search_no_results}

Sorry, no results were found.

            {/if}

{title}

    {/exp:super_search:results}

Image Results super_search_total_results = {super_search_total_results}

            {exp:super_search:results
               channel="media_images"
                status="open|featured"
            }
    {if super_search_no_results}

Sorry, no results were found.

            {/if}

{title}

    {/exp:super_search:results}


texts:
Does anyone know if/how I can create a "yearly" archives list with Solspace Calendar? I've tried searching the web and can't find anything that works. I want to only display the years where there are events in the year.

Theoretically, this code should work:

{exp:calendar:cal event_id="{embed:ids}" date_range_end="today" show_years="30" dynamic="off"}
  {display_each_year}
    <li>{date format="%Y"} - {year_event_total}</li>
  {/display_each_year}
{/exp:calendar:cal}

But when I use this on my page, it only shows a single year (with the year of the show_years param), and the {year_event_total} tag doesn't seem to be populating correctly.

So for my local test, I have 3 events in my system. One from last year, another coming up next week and another even dated out 1 year in the future. I expect to see:

2013 - 1
2014 - 1
2015 - 1

But I am only getting:

1985 - 1

Even though no events are in the system beyond the scope of what I mentioned earlier.

Also, the {embed:ids} in my code above is a piped list of ID's related to an entry in another channel using Playa. You can remove that code because it doesn't seem make any difference in the results. But my plan is to use it as a filter.

Any help would be appreciated!


texts: Solspace's user add-on, allow for custom fields in the registration form?

texts:
The user add-on, does that allow us to set up custom fields to be used in the new member registration form?

Fields such as: twitter username, favorite color, etc?

Or is that something we can't do during the new member registration form and that would have to be done when the user edits their profile?

I know you can set custom fields for a user's profile, but I am wondering about custom fields in the registration form.

Thanks!


texts:
I'm updating to EE Maps from the older version of the plugin and I'm trying to figure out the comparable replacement for the {exp:gmap:search} tag. Does the update require me to use the JS API search? or is there another way to do it?

The current code looks like the following:

{exp:gmap:search
                        channel="distributors"
                        geocode_field="location"
                        latitude_field="latitude"
                        longitude_field="longitude"
                        distance_field="distance_max"
                        cache_post="false"
                        return="/page"}
                    <input id="h-dist" type="hidden" name="distance_max" value="500"/>
                    <input id="h-search" type="search" name="location" placeholder="Search"/>
                    <input type="hidden" name="status[]" value="open" />
                        <input type="submit" value="Find X">
                    {/exp:gmap:search}

The new code doesn't allow for just switching out the tags.


texts:
Just upgraded to 2.6 and know my file upload window comes up blank. There’s no errors and everything seems in order. Currently at a loss on how to trouble shoot it.

Basically, when you click the “upload file” button in file manager it comes up blank

Here’s a screen shot from trying to edit or add new content:
http://cl.ly/image/433j413a2F2q

Here’s how it looks if i were to just go to content > files > file manager and try to upload from there:

http://cl.ly/image/1c151v2Q2U0Y

Really stuck on this one.

Thanks,
Jamie


texts: How to use global variables in if-condition?

texts:
Say I have a global variable foo. To output it in the templates, all I have to do is:

{foo}

However, I can't seem to use it in an if-condition. For example:

{if foo == 'bar'}
Hello, world
{/if}
{if {foo} == 'bar'}
Hello, world
{/if}
{if '{foo}' == 'bar'}
Hello, world
{/if}

How do I use a global variable in an if-condition?


texts:
I'd like to see what capabilities EE has for making a quiz with 10 questions, all of which have answers:

Not At All (0)
Not Really (1)
Undecided (2)
Somewhat (3)
Very Much (4)

If the sum of points (in parenthesis) exceeds 20, I want to display some custom message. I'd use Javascript, except I want to also store the results. Any recommendations on the best approach to this? Thank you.


texts: CartThrob automatic price calculated by VOLUME (or WEIGHT) and modifiers value

texts:
Here is what i'm gonna do with CartTrhob.

I want to sell a product that can be sold in different material. Every product has it's own volume in cm3, and every material has a Price per cm3.

So for example:

PRODUCT_A has a VOLUME of 10 cm3

In a channel called "MATERIAL" i have saved all the available material that can be applied to every PRODUCT.
Every material has this fixed values:

MATERIAL_A - PRICE/CM3=2 - PRODUCTION_FEE=3;
MATERIAL_B - PRICE/CM3=8 - PRODUCTION_FEE=2;
MATERIAL_C - PRICE/CM3=6 - PRODUCTION_FEE=5;

The price is made by this formula:

MATERIAL_PRICE = (PRODUCT_VOLUME * MATERIAL_PRICE/CM3) + MATERIAL_PRODUCTION_FEE

So in this case i'll have:

PRODUCT_A:

MATERIA_A_PRICE = (10 * 2) + 3 = 23$
MATERIA_B_PRICE = (10 * 8) + 2 = 82$
MATERIA_C_PRICE = (10 * 6) + 5 = 65$

I would that every single material price for every single product is automatically calculated by the above formula. So every time i'll add new product i have to add only the VOLUME variable and EE does the rest.

At the end, after all material prices are calculated, i would that MATERIAL_A_PRICE is shown by default, as it is the default PRODUCT PRICE.

I think that the matrix price modifiers is the solution but i can't find the solution to make this MAGIC and store all that value in entries.

Some brave man can help me?

--- ADDED LATER ---

I found that question here:

Pre-fill matrix field when creating new entry?

and the script to add in the instruction is this:

<script>
$(function() {

// Make sure that this is the publish form
if (!EE.publish)
return;

// Only proceed when creating a new entry
var entryId = $('#publishForm').find('input[name="entry_id"]').val();
if (entryId != 0)
return;

function initLabels(id, labels) {
var addEntryButton = $('#sub_hold_field_' + id + ' .matrix-btn.matrix-add');
if (!addEntryButton.length)
    return;

// Need to wait after `document.ready` has finished executing!
setTimeout(function() {
    var field = $('#sub_hold_field_' + id);

    // Only proceed if matrix is empty
    // Note: This is not the case if a validation error occurs!
    if (!field.find('.matrix-norows').is(':visible'))
        return;

    // Create one row for each label
    for (var i = 0; i < labels.length; ++i)
        addEntryButton.click();

    // Skip the placeholder row for "No rows have been added yet..."
    field.find('tbody tr:not(.matrix-norows)').each(function(i) {
        $(this).find('.matrix-firstcell textarea').val(labels[i]);
    });
}, 0);
}

// Check that this is an entry of the expected channel field group
if (EE.publish.field_group == 2) {
// "Custom Parameters"
initLabels('23', [
    'Lens Type',
    'Focal Length',
    'Manufacturer',
    'Model',
    'Serial Number'
]);

// "Track Information"
initLabels('17', [
    'Artist',
    'Title',
    'Label',
    'Artwork'
]);
}

})
</script>

But i have no idea on how to customize for me.
How i can auto-fill with material name, price/cm3 and commission_fee hidden value in script to make the operations?


texts: I've added the exp:calendar:ics_export code found here (https://solspace.com/expressionengine/calendar/docs/ics-export/), set my date parameters, and tried to add category="34" to only export items from that category, but all calendar items are still exporting. Is there another way to only e?


texts: fetch_param when you only know a portion of the param name

texts:
I'm working on extending the external_entries plugin to support a SQL LIKE clause, using the "searchlike" param that was mentioned here:

As and example if I wanted to find all rows of an external table in that had a date of 2013 I would use the param searchlike:date="2013%".

Is there a way to use fetch_param (or something akin to it) with a param name that you only know the beginning of?


texts:
I'm new to Cartthrob and feel embarrassed to ask this, but for the life of me I just can't figure out how to get it to generate CSV reports. Under "Order Report" I fill in the fields and click the "Generate Report" or the "Export CSV" and each time the page just refreshes and all my selections and data are gone. What am I doing wrong? What should happen? Are the CSVs getting dumbed somewhere? If I try to enter a title it doesn't save either.

Any help would be very much appreciated!

Thanks!


texts: how to get EE3 Grid data filled out on frontend

texts:
I have a grid with 4 columns that i'm trying to get before they click submit.  Each time they add a row (non member player) in this grid I need to grab that rows data and use it with PHP to show information based off their gender and expected ranking.

When I inspect the input box in dev tools, it doesn't seem to spit out that data so i'm having trouble triggering as I don't know how it stores that data.  I would've thought it would've changed the "value" of that input.  A columns input looks something like this after I enter "testname":

<input type="text" name="non_member_players[rows][new_row_1][col_id_9]" value="" dir="ltr" field_content_type="all" maxlength="256">


texts: My template files are not in system > expressionengine > templates. How can I figure out where they are?

texts:
My template files are not in system > expressionengine > templates. There's only a single index.html file in that folder.

I visited Design ‣ Templates ‣ Global Preferences. Basepath to Template File Directory is set to a single slash.

How can I figure out where they are?


texts: Freeform: Custom field value not showing up in subject

texts:
I've read a lot about this online and I'm not sure what I'm doing wrong.

I have created a custom field.
In my form I set that custom field to a variable. I've confirmed in
the Chrome Dev Console that the field (a hidden text box) is showing
up and has a value of the variable.
The notifications panel says that I can use custom variables for the
subject. However, it doesn't seem to matter it continues to display
the variable tags and name e.g. {my_custom_variable}.

Any idea what I could be doing wrong?


texts: Can I display select array data in a Freeform notification template?

texts: I have a form that contains an array field, e.g. name="product_list[]". Is there anyway to access specific values within this array in the notification template? All I'm currently doing is adding {product_list} which barfs them all out in a line. Is there a way to print only value 1, only value 2, etc?


texts: 3D Secure Payments With PayU Payment Gateway Using Expresso Store/Omnipay

texts:
I am integrating the PayU payment gateway into EE2 by using store and Omnipay. The on-page payment gateway allows the user to pay via credit card, but with 3DSecure enabled to provide an extra layer of security. Hoe would I go about displaying the OTP pin page to the user so he can enter the pin received via SMS, submit this and get on with the transaction?

I got the testing payment to go through successfully, but just need to cater for this 3dsecure feature.


texts:
I have a channel where I would like admin to be able to create entries and then anonymous users would be able to add rows to a grid field. I do not want the users to be able to see existing rows(if they exist), just add.

I thought I would be able to get the total rows, and with the Simple Math plugin, make Channel Form ready to add a new row.

<input class="input-block-level" type="text" name="field_id_44[rows][new_row_{exp:simple_math calculate="{shipping_quotes:total_rows} + 1" decimal_places="0"}][col_id_6]" value="">

Which actually works as expected

<input class="input-block-level" type="text" name="field_id_44[rows][new_row_2][col_id_6]" value=""

So [new_row_2] outputs as "2" because in this case there is already an existing row. This works no matter how many rows I add. If the entry has 3 rows in this grid field, it outputs [new_row_4]... as expected.

But this unfortunately doesn't translate when submitting the form. Submitting just replaces the existing row(#1), so I think I am misunderstanding how to add new rows via Channel Form.

So long story short, how do I add rows to a grid field via channel form.


texts:
I'm trying to get a multi-entry relationship field to render in a template using EE 2.6.0, however I'm getting "Unmatched Relationship Tag: "{impact_stats}"" with template debugging enabled, with it disabled I get nothing with the conditional, without the conditional it just outputs the actual tags and not their contents.

This is the code I'm using, it's contained within a exp:channel:entries loop and all of the entry's tags other than the impact_stats one is working.

{if impact_stats}

        {impact_stats}

{impact_stats:headline}

{impact_stats:description}

        {/impact_stats}

{/if}

Any ideas?


texts: Solspace Calendar and Channel Form - dates not saving

texts:
I'm using the latest builds of Calendar and EE (1.8.5 and 2.7.2 respectively) and am having problems getting the calendar to save the dates when creating or editing through Channel Form (Safecracker).

All works fine if saved in EE itself so it seems to be an issue with compatibility with Channel Form. The entry also saves without any other issues. I've tried a 'vanilla' form with only the title and the Calendar widget with no success. I wondered if you might have any suggestions for troubleshooting?

The field appears to be working fine (no javascript errors, datepicker appearing, etc) and my code is as follows (simplified)

      {exp:channel:form
           channel="channel_events"
           return="registration/listing/event_location/ENTRY_ID"
           include_jquery="no"
           include_assets="yes"
           datepicker="yes"
           error_delimiters='
* |
'
           preserve_checkboxes="yes"
           id="event_form"
           error_handling="inline"
           class="sc_form"
         }
             <input type="text" class="i_text" name="title" id="title" value="{title}" maxlength="75"  />
             {error:title}
             {exp:calendar:date_widget}
             <input class="submit_btn" id="event_submit" type="submit" name="submit_listing" value="Save" />
         {/exp:channel:form}

I'd be grateful of ANY thoughts/suggestions you might have!

Thanks
Tim


texts: ExpressionEngine 1.6.8 Contact Form or just upgrade?

texts:
I originally posted this on stackoverflow before discovering this specific forum...

I've been asked to make some changes to a site that was built with Expression Engine 1.6.8. Even though I'm not familiar with this CMS, I can find my way around to make the updates, except I'm not sure about adding a contact form. I'm guessing that ultimately I'll have to upgrade this version to the newest (2.7, I believe?) in order to get the tags found on this page to work: http://ellislab.com/expressionengine/user-guide/modules/email/contact_form.html?

My only hesitation in making the upgrade is my unfamiliarity with EE, and the fact that someone else is probably creating a brand new website for the one I'm working on, and very likely without EE (so I'm learning something that I may not need again).  Are there any major issues that I'll run into making this jump from 1.6.8 to 2.7?  I wish the previous person maintaining the site had kept up with the upgrades.

Any suggestions for a quick fix, or should I just bite the bullet, upgrade, and use what I've found? **HOWEVER, I've now realized that I'm probably running core, in which the email module isn't even offered, so I'm sure my options are really limited...


texts: Is there any out of the box way to change error language for the front end of Store, i.e. "expiry" to "expiration"?


texts:
I have a channel for "projects", and each project has multiple before and after images associated with it. What would be the best way of organizing this in terms of channel fields? I'm currently using the Channel Images (CI) addon to manage images.

I thought using EE's Grid or P&T's Matrix would be ideal, but CI doesn't seem to be compatible with either. I could technically use Grid with the File fieldtype, but it obviously wouldn't have the adaptive capabilities of CI.

The only thing I could think of was to create two separate CI fields, one for before and one for after, but how would I link each image to its counterpart?


texts: Updating Order status from "Processing" to "Completed" in Cartthrob

texts:
I have a client who wants customers' credit cards authorized but not charged until they have manually verified that the product is available and ready to be shipped.

We're using Cartthrob and Authorize.net and we have a CIM account.

I have followed Cartthrob's instructions on this page:
http://cartthrob.com/docs/tutorials/authorize_later_with_vaults/index.html

That page includes this sample template code:

{exp:cartthrob:checkout_form
    force_vault="yes"
    force_processing="yes"
}
 {gateway_fields}
 <input type="submit" value="Checkout">
{/exp:cartthrob:checkout_form}

*An admin interface might then look like this:*

            Order
            Date

     {exp:channel:entries channel="orders" status="Processing"}

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

            {exp:cartthrob:checkout_form
                vault_id="{order_vault_id}"
                order_id="{entry_id}"
            }
            <input type="submit" value="Process Order">
            {/exp:cartthrob:checkout_form}

    {/exp:channel:entries}

With a few tweaks (no tables, I use Stash DRY templating, and so on), I used that code. The orders are being entered with a "processing" status just fine. The sample admin interface code produces the list of entries that were marked "processing" just fine as well but clicking on the "Process Order" button for any of the entries returns this error message:

 Error Number: 1062
Duplicate entry '499' for key 'PRIMARY'
INSERT INTO exp_channel_titles (entry_id, site_id, channel_id, author_id, forum_topic_id, ip_address, title, status, versioning_enabled, entry_date, edit_date, year, month, day) VALUES ('499', '1', '22', '1', 0, '127.0.0.1', 0, 'processing', 'y', 1391499771, '20140204024352', '2014', '02', '04')
Filename: third_party/cartthrob/models/cartthrob_entries_model.php
Line Number: 261

I'm pretty sure this is MySQL telling me that I'm trying to insert a duplicate entry id in the table that keeps the list of ordered products.

Reading Cartthrob's suggested template code, I can see why I'm getting this error message. The checkout_form tag creates an entry in the orders channel as well as sending the capture request off to Authorize.net. Since that entry already exists, I'm getting the "duplicate entry for primary key" error message from MySQL. What I need to have happen is an update to the particular order in the orders channel that also sends off the "capture" request to Authorize.net.

I'd call Cartthrob for support but I'm currently still working on my local machine (yes, it does talk to Authorize.net) so I'd have to upload it all to a staging site in order for Cartthrob to look at it. I'm also using V2.4 which I know is one version behind but I searched the changelog carefully and none of the fixes seemed to apply here. I'd be happy to be wrong about that but before I go through all the work of updating and uploading, I'd like to know if there's something simpler I could do or if there's no way at all to do this.

Thanks in advance,

Jeanne


texts: Bulk delete of images & folders in P&T Assets

texts:
I want to clear out all of the files and folders in Assets.  We have been testing and am now ready to start using in anger.  Is there a way to do this without deleting directly in the DB?

Many thanks

Pete


texts:
We can download an image off our EE site, but the image doesn't display on the site itself. Any idea what could cause this?

We're using EE 2.6.1.


texts: Updated to latest Wygwam, Icons are all messed up

texts:
I'm using EE 2.8.1 and I just updated Wygwam from 3.3.1 to 3.3.3 by copying over system/expressionengine/third_party/wygwam and theme/third_party/wygwam folder contents over, then running "run module updates"

Everything seems to work, but my icons are all messed up. For example, the icon that is clearly for unlinking (the chain with the x on it) is now the icon for linking. And the one for unlinking looks like bullet points. And the one for inserting a "read more" break in the text looks like the text unformatting icon (the T with an x at the bottom).

I didn't know what to do so I restored my OLD themes/third_party/wygwam folder from a backup, and now everything looks okay. But I kept the changes I had made on the system/ folder. Ideally I wouldn't want to keep it this way, since the themes folder is the old version... but it seems to be working... but maybe there are some undetected problems from doing it this way. Any help or suggestions?


texts:
I have created an extension to manipulate saved data when an entry is saved. I can't get this to work using entry_submission hooks, I cannot find that much information about this online. I believe I need to use entry_submission_ready.

Does anyone know why this does not work when I save an entry?

function entry_submission_ready($entry_id, $meta, $data)
{
    $data['field_id_123'] = 'Test';

    if(isset($this->EE->api_sc_channel_entries))
    {
        $this->EE->api_sc_channel_entries->data = $data;
    }
    else
    {
        $this->EE->api_channel_entries->data = $data;
    }
}

The hook IS being called because I can output $data to the screen (print_r) and can see the value of the field I have set in the $data array. But this is not saved to the entry.

I have also tried $this->EE->api_channel_entries->data['revision_post'] and entry_submission_ready. None work.

EE 2.7.2

Thanks


texts: Are .htaccess files required for EE install?

texts:
I'm discussing with my sysadmin about whether to allow .htaccess files. I noticed all over the EE file tree there are .htaccess files to prohibit access to files, such as to system/user/config/config.php. But they also appear to have built-in direct-access controls, such as:

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

So, .htaccess files a good idea to have on? Using EE 4.3.6.


texts: Get Matrix {field_row_count} when using the search parameter.

texts:
I have a Matrix field that I'm using the search parameter on. Within the output I need to grab the actual {row_count} associated with each row based on the order the row appears within the CP-based entry and not the order associated with the filtered results. It seems like the {field_row_count} variable should give me exactly what I need, but it's not working as expected.

Here's a simplified sample of the code:

{cf_project_images search:categories="{segment_category_ids_piped}" }

{title}

{/cf_project_images}

As an example: The sample I'm testing has 4 rows within the Matrix field. Using the search parameter I'm only returning 1 of those 4 rows. If the row that is returned is the 4th row I would expect the value of {field_row_count} to be 4, but it's returning as 1.

Am I misinterpreting the way the {field_row_count} variable works?


texts: Is it possible to use freeform like channel form to add events to calendar? My goal is to include in my freeform form to allow clients to request an appt on the calendar ?


texts: CSV format file generated from a template, how to prevent Safari on Mac downloading as html file?

texts:
I have an Exp Eng template that generate a .csv format file using a channel tag. I also insert the headers of the file using php, as shown below (those are the fist lines of the template). In Firefox the file downloads with a simple click on a link to the template and everything seems fine.

<?php
header("content-type: text/csv");
header("content-disposition: attachment; filename=filename.csv");
header("Pragma: no-cache");
header("Cache-Control: private");
header("Expires: 0");

It all seems to be working but Safari on the Mac will insist on downloading it with an .html extension as in 'filename.csv.html'. I've researched this on the Internet at many say it is just a peculiarity with Safari. But another person accessing the file says it happens no matter what browser they are using.

In Exp Eng I have the template settings as an "html" template. The other choices don't seem to work, like RSS/feed, and static would disable the channel tag. Any ideas on how to get around this problem?

Thanks,
Bob.


texts:
I've created a Google Cloud Storage Bucket and enabled what I believe to be the right place for the Secret and Access ID - however, I'm getting the following error whenever I try to save and the location doesn't appear in my assets folder for view:

A PHP Error was encountered
Severity: Notice
Message: Undefined property: stdClass::$body
Filename: lib/Assets_GC.php
Line Number: 1993

I can't actually find any instructions on how to configure/setup google cloud hosting, so I'm a little stuck as to whether I've done the right thing or not.


texts: Possible to access templates from plugin?

texts: From within a plugin, is it possible to access a template? I need to do some processing on the resulting output of a template from within the plugin.


texts: Expresso FreeMember - reset password form email

texts:
I'm testing the reset password form for FreeMember and emails are not arriving. Here's the code (same as here).

{exp:freemember:forgot_password return="/account/forgot_sent" }

                Email

                {field:email}

                {error:email}

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

      {/exp:freemember:forgot_password}

No errors appear. No emails arrive. I've tested EE's native emailer and the emails arrive, so that's not the issue. Any thoughts?


texts:
I am using Channel Images and obfuscating the links so a user cannot see the path, but I want to protect the full link using htaccess well. The user will be able to see the images, zips, or files in an EE template, but can direct link DL the source as well.

What is the nest way to check if user is logged into EE as a certain membership group before being able to access via a direct link? I have searched and saw that it can be done via an ACT url or a php script, but I have no idea how to write it.

Any existing modules or scripts out there?

Thanks!


texts: htaccess redirect to url without www with site in a sub-directory

texts:
I have a site running in a sub-directory and I'm using this htaccess:

<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/*(.*) helpdeskzorgaanbieders/$1$2 [R=301,NE,L]

        # Removes redirect to url without www
    RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
    RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

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

</IfModule>

It's conform the Ellilad user guide, i just put some extra code for redirect url with www to a url without www:

    # Removes redirect to url without www
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

I don't know why but if I test and add www. to the URL it send me back to the root directory (where an other EE site is also running).

Something must be wrong in my code but I can't find it.


texts: I am building an html5 theme into expression engine. The theme came with a lot of JS that wasnt needed and it slows the pages down. When initially building the theme into expression engine i broke the site up into snippets and templates as expected. I have now cleaned up the code and removed all unnecessary js. The issue is that my html-header with the JS links in it wont sync. The snippet is still showing the old code and not the updated version. ANy ideas?


texts: What is the URL to link to (paginate-able) single entry from channel index or category

texts:
I have an index page showing channel entries and also working as the category view.

I want to link to a single entry from either of the above states and then be able to paginate to the next / previous entry within context.

E.g. there are 400 entries. On the main index they show in groups of 20. A category view might show a subset of 70 entries, category 'foo'. I know how to paginate either of these index views. The URLs looks like:

/archive/P40 or

/archive/category/foo/P20

If I want to view a single entry in each state (and paginate) the URL's look like:

/archive/single/P40 or

/archive/single/category/foo/P20

What I can't figure out is how to code the links from the index page to the single entry versions.

Hope that makes sense. Can anyone help?
Cheers


texts:
Can you please help. Matrix isn't displaying information on the front end.
http://www.ledgrouprobus.com/robus

What am I doing wrong?

Thanks


texts: Change file field to assets field without losing the selected image

texts:
Does Assets keep the same content when changing from a file field?
I just wanted to be sure on this.

Thanks,
Diederik


texts: How to notify new members of their login details via email

texts:
When registering a new member in EE (either in the CP or via the front-end using an add-on such as Profile:Edit), the password fields are required. So how do I go about emailing the login details to a new member if I can't (and shouldn't) include the password itself in the new member registration email?

I feel like there should be a way (unless there's something I'm missing) to include an activation link in the email that would allow the user to activate their account and immediately set their password on the first login.

Is this possible, or has anyone got any tips on the best way of emailing new users with their login details?


texts:
I am pretty confused about this, since I upgraded Expression Engine to 2.5.5 all the searches from the simple search form are going to the 404 page. Here is the search form

    {exp:search:simple_form channel="bike_families|blog|faq|features|support_resources|team_member|bikes" no_result_page="search/noresults" result_page="search/index"}
         <input type="search" name="keywords" placeholder="Search" id="keywords" value="" size="18" maxlength="100">
         <input type="submit" value="Search" class="submit small"
{/exp:search:simple_form}

I have checked all my log files and there are no error messages being reported, simplifying the form by removing the channel definition also does not help. I made sure both the result page and the no result page exist and even tried changing the url.

I also dugg into the search a bit to see what was being constructed from the search module, it seems to be creating a proper sql query and and not returning 0 results. So something seems to be incorrect in the redirect logic.

EDIT:

Ok I have some more information. If I take a clean setup of the same site, upgrade everything along the same path then search works on that new site with different data. However if I take the code base where it is working and point it at the database of the site with the broken search then the search stops working there. So it seems to be related to the database. Also of note when I do a search it shows in the search logs, and shows that there are x results but then I get a 404 page on the front end.

Thanks,
Cory


texts: Freeform Pro - General error at top of page as well as inline errors?

texts:
I'm using freeform pro and I have a functioning form, built using the form tags. I have the inline errors working as hoped, but what doesn't work from a UX perspective is lack of a general error at the top of the page as well as the inline errors.

If the inline error is visible to the user as the page reloads, then it is fine. If the error is below the fold, there is nothing telling the user why their form didn't successfully submit until they scroll down and notice the inline error.

Is it possible to get a general error at the top as well as the inline errors, so the user knows to scroll down to find the specific error? The general_errors tag pair seems to be place  that errors will be displayed if they are not picked up by a specific inline error. If an inline error shows and that is the only error, then nothing is output by the general_errors tag pair.

I want something at the top of the form like "There were some problems with your form. Please scroll down to view the errors". I would want something like:

{if freeform:error:any}
 Error Message
{/if}

Any thoughts? Thank you.


texts:
The below code works just fine on it’s own, however as soon as I drop it into a stash list and call it later in my template no results are shown. Is this a parse issue?

{exp:channel:entries channel="brand" entry_id="108"}
         {exp:playa:children field="brand-category"}
             <p>{count} - Category Name: {title} | Category URL: /products/brand/microsoft/{url_title}</p>
         {/exp:playa:children}
  {/exp:channel:entries}

This is how it looks when stashed up:

Call Embed and Display Data:

{!-- Set Stash List --}
 {stash:embed name="_common:_data/test-category-list" stash:id="108" process="inline" parse="inwards"}

{!-- Get Stash List --}
 {exp:stash:get_list name="related-category-list"}
 {brand-name}
 {/exp:stash:get_list}

Embed File:

{exp:stash:set_list name="related-category-list" parse_tags="yes"}

 {exp:channel:entries channel="brand" entry_id="{stash:id}"}
  {exp:playa:children field="brand-category" parse="inward"}
            {stash:brand-name}{title}{/stash:brand-name}
        {/exp:playa:children}
 {/exp:channel:entries}

{/exp:stash:set_list}


texts: What happens when an IP address isn't found in the IP to Nation database?

texts:
I have a site where a few people are reporting that all they get is a blank page when they visit it. This started happening after we put some country detection code on there that showed tweaked content depending on the country that you were viewing from. We're using the IP to Nation module in EE to handle this and have kept the database up to date.

I'm wondering whether it is possible that the blank pages could be a result of their IP address not being found in the database? Could this happen?

I'm using the MC Country plugin in conjunction with the IP to Nation module (MC Country requires this). Here's a snippet of code that I'm using on all pages:

{if "{exp:mc_country default='gb'}" =="gb"}Call us <i>free</i> on +44 (0)800 014 8201 from 8am to 8pm{/if}
{if "{exp:mc_country default='gb'}" !="gb"}Call our offices in Portugal on (+351) 308 800 878{/if}

Any insight greatly appreciated.

Jim


texts:
EE v2.5.0

Matrix 2.2.2.1

When I select ‘Add Image’ in a Matrix field, in the File Browser popup the navigation links are not correctly created and return a ‘404’, and the ‘Show files as’ select has no effect.

I'm not sure that this is a matrix problem as File Manager is a core component.

Any ideas?


texts:
I have Derek Hogue's solution to infinite scroll working, with magicspon's fix for the issue of preventDefault being ignored:
Infinite scroll and pagination on ee?? Anyone has this working?

This works great until I encapsulate the markup in IF conditionals, whereby the results don't update. I have tried early parsing using IfElse, but this has no effect. Why might this be?

Here's the full working test template:

{embed="embeds/index"}

{if "{segment_2}"==""}

            {exp:channel:entries
               channel="vacancies"
                dynamic="no"
              orderby="date"
              limit="2"

        }

    {if no_results}

No Results

                Check back soon for more blog posts.

    {/if}

                {title}

           {vacancy_details}

    {paginate}

        {if next_page}See More Posts{/if}

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

{/if}

<link href="{site_url}css/styles.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="{site_url}bootstrapvalidator/css/bootstrapValidator.min.css"/>


texts: PHP 5.4 upgrade broke matrix 2.4.1 9 (EE 2.5.4)

texts:
I have recently been asked to look at an EE-based site which is currently broken.

The issue is that where matrix fields occur in the template, it appears they are not parsed and instead are just echoed back, for example:

{main_image}
    {matrix_image_title}
{/main_image}

It seems this happened when the host upgraded to PHP 5.4.

I have creating a staging version of the site and have managed to resolve the issue by switching the PHP version to 5.3.28 from 5.4.28.  However it is not an option to do this on the live site.

Having consulted documentation it seems that the version of expression engine (2.5.4) and the version of matrix (2.4.1) should fully support PHP 5.4 so I'm a little at a loss as to how to further investigate this issue.

So, aside from changing hosts to one that supports PHP 5.3, can anyone else suggest routes of investigation, solutions or explanations as to why this might be happening?

Many thanks,

John


texts:
Given a Playa field in Low Variables called widgets, how would I output the title of each widget? Below is what I'd expect, but it outputs nothing.

      {exp:low_variables:parse var="widgets"}
        {title}
      {/exp:low_variables:parse}


texts: Google crawling Solspace Rating Vote Links

texts:
I have an issue on a site I maintain where we use the Solspace Rating module. We have added up/down vote links on ratings and are triggering the click with a JavaScript event, however Google (and other search engine bots) appear to be crawling the target URLs and as a result generating thousands of up/down votes during the crawl.

We have tried adding rel="nofollow" and removing the URL from the href and placing it inside a custom data attribute instead but still no joy...

Our markup:

{exp:rating:rating_vote_stats rating_id="{rating_id}"}
Yes
No
{/exp:rating:rating_vote_stats}

and our JavaScript/jQuery:

$(".vote") .click (function(e) {
    e.preventDefault();
    var link = $(this).data("vote-path");
    $.ajax({
        url: link
    });
});

Any suggestions as to how we can resolve this issue without requiring log-in to up/down vote?


texts: Change Product Price based on Membership?

texts:
I am using Exp:resso Store 1.6.4. We developed stuff so that when a user purchases a product they will, as Zoo Visitor members, acquire the categories associated with that product. We now want to apply a discount to a product provided they have a certain category. Right now I'm looking for the simplest way to do this that remains secure, i.e. the user cannot change anything around.

Currently our purchase process is a price/description page with a register button (this is the Product Tag/form with a specified entry_id and empty_cart (is there any way to lock empty_cart, i.e. prevent it from being changed?)). Clicking the register button takes them to the checkout page which shows their member registration (if a guest) details, billing details, order details, and payment method.

If I create a product modifier that affects the price, anyone can add that modifier to the Product Tag's form. If I create another product anyone can change the hidden input's entry id to that of the new product. How can we securely lock down a price? Is there a way to, e.g. enable/use Sale Price while it's not enabled?

actually while writing this I realized at least for now I can attempt to check the details on the membership details on the Checkout page for this one specific product... but that's not really going to be feasible down the line.

Anyone have ideas for a quick fix? Don't have time to build add-ons for this kind of feature at the moment (and won't have time probably up until next year). But if you have an idea how to take that route I'm all ears, too.


texts: How can I get the length (duration) of an audio file?

texts:
I'm pulling media files (audio and video) into a template with Assets add-on. It doesn't appear to have the ability to grab the length (duration) of the media being uploaded. Is there a quick and easy way to get it?

Edit: MX GetID3 does the trick but not for remote files. If your files are on another subdomain (as mine were), use {server_path} instead of {url} to grab the file path.


texts:
My client is asking me to show a custom field in the Inventory report (see attached screenshot).

As you can see I managed to add the field to the rendered table (InventoryReport.php) but I have little clue as to how I can query and pull the custom field's data (it's a simple text field).

Anyone tried doing this before? Or could you point me in the right direction?


texts:
Pagination is not working in my search result page.
Below is my code.
can anyone correct this??

{exp:search:search_results backspace="5" limit="2" paginate="both"}

    {title}

    {excerpt}

    {paginate}

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

    {/paginate}

{/exp:search:search_results}


texts: How to make a Freeform text field required

texts: I must be missing something, but I can't figure out how to make a text field required using Freeform Pro. Thanks in advance for any help!


texts: Matrix multi upload - cells not appearing

texts:
im running expression engine 2.7, matrix 2.5.6 with matrix multi upload 1.1.1

matrix fields can upload images no problem, but matrix multi upload doesnt create new cells once the images upload. I don't get any errors, the upload files show images are uploaded but the cells do not appear.

Please help, thanks in advance.


texts: Where can I find the cookie_consent_module. If I google it and follow the link, it get a 404.


texts: Can variables be used in Freeform notification template settings?

texts: I've set up a notification template to notify the site owner when a form submission is received. I'd like to have the email notification be from the person who filled out the form and the from email to be their email, not the site owner's. Can I use form field variables in the notification template options to do this? If so, how should they be entered there (e.g., in brackets, just the field name, etc.)?


texts: After installation of the Calendar Module all pages with calendar tags are blank

texts:
After installation of the Calendar EE extension, all the pages as blank, where I try to use Calendar tags, for example {exp:calendar:calendars}. Can you help me to resolve this situation?
Thanks


texts:
I am using EE v2.5.5 and the control panel doesn't work properly in IE 9 and 10. The issue seems to be that EE doesn't know you are logged in when a script is requested and so instead of returning the JS you just get the login screen instead. SO the URL below for example:

http://www.showsec.co.uk/admin.php?S=24384227da408225ee16a159edfba4966ac36622&D=cp&C=javascript&M=load&file=css&theme=default&v=1369159495

Just returns the login page even though I am logged in

In fact if I login to the control panel in IE 9 or 10 and then open a new tab and go to the control panel URL I just get the login screen again. The browser has forgotten I am logged in already!


texts: At the moment I can only set this to 'all file types' or 'images only' but would like to specify a small list (.doc, .docx, .pdf) for some documents, is this possible?


texts: Can't get Grid conditionals to work in 2.10.3

texts:
I've been trying to get a Grid conditional to work (using EE2.10.3) and no matter what I try, it's not working and the page crashes. My grid field is called "projects_video" and I want to output something if it's not empty. Here's what I've been trying so far:

{exp:channel:entries channel="projects"}
     {if projects_video:total_rows >= 1}
          SOME DATA
     {/if}
{/exp:channel:entries}

Also I've tried:

{exp:channel:entries channel="projects"}
     {if "{projects_video:total_rows}" >= 1}
          SOME DATA
     {/if}
{/exp:channel:entries}

And:

{exp:channel:entries channel="projects"}
     {if {projects_video:total_rows} >= 1}
          SOME DATA
     {/if}
{/exp:channel:entries}

And:

{exp:channel:entries channel="projects"}
     {if projects_video}
          SOME DATA
     {/if}
{/exp:channel:entries}

Any ideas?


texts: Automatic formatting of URLs in text input

texts:
I would like to validate links inputted by the client, so that if they enter www.somesite.com it needs to convert it to http://www.somesite.com

I know that there is an option in the channel preferences to "Automatically turn URLs and email addresses into links". However, I need to be able to add class names and attributes to the anchor tags which I don't think is possible if I use this option?

How to achieve this?

(there should really be a new type of field just for URLs..)

Thanks in advance.


texts:
I guess I'm missing something obvious since I haven't found any question on this subject… I'm trying to paginate results from exp:playa:parents tags to no avail… That's what I got:

{exp:playa:parents parent_id="{low_events:entry_ids}" disable="categories|category_fields" limit="5" paginate="bottom"}
  HTML…
  {paginate}
    {pagination_links}

      {page}

{pagination_page_number}

      {/page}

    {/pagination_links}
  {/paginate}
{/exp:playa:parents}

From the Playa docs, it sounds like I'm supposed to override disable="pagination" which i set to true by default. That's what I'm going for with disable="categories|category_fields" and that's the only thing I can think of that might be the problem… (I don't actually know if that's how you're supposed to override the default).

Any idea? Thanks!


texts:
I am using Solspace month calendar. The calendar is embeded in another template. when I click on the next/prev month links it takes me to different page. I would like it to change the month but stay in the same page. It seems that there is problem with the path but I don't know how to fix it. I am using the following path:
Previous Month


texts: Looking for an ExpressionEngine addon like this

texts:
I'm looking for an ExpressionEngine addon that can do the following:

have a short form that allows a file to be uploaded, form will include date, etc.
based on the template the file should automatically be tagged for easy retrieval

Sounds rather simple, but I'm not sure if I'll need a combination of addons or if I'm missing built in features.

Edited to better state my question. See below.

Basically a document retrieval system with tags so that it makes it easier to find and retrieve given documents.

Thanks.


texts: Solspace Tag - display entries from particular tag

texts:
I have a snippet which displays all entries within a channel and I want to have displayed entries only from a particular tag, but I'm not able to display tagged entries. Then I have decided to display all tagged entries without limitation (code below) but this is not working either.

{exp:channel:entries channel="products" orderby="title" sort="asc" limit="8" status="open" paginate="bottom" dynamic="no"}
{exp:tag:related_entries}
    {if switchee_no_results}

No entries yet.

        {/if}

    {product_image limit="1"}

    {/product_image}

{title}

{switch='|||

'}

    {paginate}
    {exp:stash:set}

      {stash:pagination_links}{pagination_links}{/stash:pagination_links}

    {/exp:stash:set}
    {/paginate}

{/exp:tag:related_entries}
{/exp:channel:entries}

Even switching code to

{exp:tag:related_entries channel="products" orderby="title" sort="asc" limit="8" paginate="bottom"}

{title}

{tag_paginate}

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

{/tag_paginate}
{/exp:tag:related_entries}

doesn't do anything.

Another simple test - template below

   1.
        {exp:tag:entries tag="test"}
    2.
        {if switchee_no_results}

No entries yet.

            {/if}

{title}

    3.
    {/exp:tag:entries}

is displaying only 1. for me, so it looks like tag tag is not working withing templates.

Any clue why is not working? I'm running EE 2.7.3 and Tag 4.2.5

Thanks


texts:
I have a question about saving website coding data.

We want to save the data and html page coding of the pages we've created; so if I wanted to use that data to recreate the page, I could do so easily. The only way I know now is to go to each page and copy the html data from each page.

Is there a better and more efficient way to save the data, like a feature in the admin panel or something? I would appreciate any answers you can give me.

Thanks.


texts: FreeForm Pro iOs file size too large, how to allow larger images or constrain/resize

texts:
EE 5.3.0
FreeForm 1.8.1

I am using FreeForm Pro to handle forms. I have users saying they are unable to upload images from their iPhone because they keep getting errors that say

* File size too large
* Could not upload file

I get the same result from my iPhone.

I have tried increasing the max file size in the field settings in FreeForm to 10,000 KB and have also tried to apply an image manipulation in the directory like so

Neither of these seem to be working and I keep getting the same error.

Is there something I'm missing?


texts: Stash Snippets not rendering within CE Cache for some content

texts:
This is a strange one, so I'll have to give a little history.

To allow ad-hoc image galleries to be placed within the body content of pages on the site I'm using a matrix that holds "galleries" while using an Assets field set to "multiple" for the images in each gallery. A CopeePastee field is used to allow the content editor to easily copy the {gallery_x} tag so they can place it wherever they need to within the main body content field.

The templates use the template partials technique. My view-model template renders the gallery content into the gallery_{row_count} stash variables with the type="snippet" parameter. On the view template, I use parse_vars="yes" to render those galleries within the body content.

This has been working fine since launch. Today I noticed a live page that had {gallery_1}, {gallery_2} tags, etc displayed as a tag instead of rendered.

I immediately thought something was wrong with the Cache so I flushed the cache entry for this specific page. When logged into the CP, the templates do not run through CE Cache and this page rendered fine, although slow due to the 185 queries required to render this many (7) galleries.

I hit the page via a Chrome Incognito browsing session and the galleries display as expected. When I hit refresh to get the newly cached version (and to check speed) it's back to showing the unrendered gallery_x tags.

Memory utilization for this page is under half of what's available.

Other pages in the site that also use this identical template and identical gallery feature work fine as well. With CE Cache disabled, it renders fine too.

Any ideas?

Gists

detail template view/model
detail template wrapper

Example URLs:

page that uses this template and works fine
page not working

Versions

EE: 2.5.3
CE Cache: 1.9.5
Matrix: 2.5.5
Assets: 2.0.4
Stash: 2.3.9 beta


texts:
this may be a bit confusing to explain but I'll do my best.

I have products in Store which have a base price and price modifiers which so far works as expected. However I also need to update the price based on user input via a text input field.

Basically the user enters some text, and Javascript counts the characters, which then needs to adjust the price, the original price times the number of characters.

I can't use the item quantity field because of the other price modifiers, these do not change based on the number of letters but are set for each individual product.

I have also been told to use input:custom_modifier_name (https://www.exp-resso.com/docs/store/product_tag.html#inputcustom_modifier_name), and this does seem to work according to the documentation. However it is not obvious to me how this could be used to update the price.

Can anyone help me out? I've went round in a circle a few times.

Thanks, Laura


texts: automatically linking to the first entry in a channel using a category tag

texts:
I have a template that displays the categories in a channel.  I want the link to direct to the first entry in that category and the link should include the url_title in the last segment as I will be needing it.

here is my code for the categories but how do I include the link to the first entry?

{exp:channel:categories channel="portfolio" show_empty="yes" style="linear"}

{category_name}
{/exp:channel:categories}

So rather than the first link going to: http://domain.com/showroom/category/category_name

I would like it to go to: http://domain.com/showroom/category/category_name/url_title (this would be the first entry in the chosen category)


texts: How can I control the filenames of files uploaded via SAEF/Safecracker using Safecracker File in a Matrix?

texts:
Firstly, I think the files should have unique names by default - nevertheless a problem came up yesterday in which one member's images were being displayed in place of another member's images because they had the same file names (it could possibly be a case sensitivity issue come to think of it).

I have a Matrix cell that contains a Safecracker file field. The purpose of this is to allow members to upload a series of photos, captions etc to an entry they are creating via the Safecracker form.

The problem I have is that it appears some of the images being uploaded have the same filenames. In my tests it appears that the files are appended with a number if there is a duplicate so I'm a little confused as to how this happened in the first place.

My 'solution' would be to prefix the filenames with the member ID. This should ensure that even if an image is overwritten it will be by the same member.

I found this extension https://github.com/rsanchez/safecracker_file_add_prefix which could do the trick but I am having trouble getting it to work in a Matrix - I think it may be a step too far.

So I'm looking for ideas and/or a solution!

Maybe the answer is to somehow convert the filenames to lowercase?

UPDATE: The issue was definitely caused by case insensitivity.
The image pool.jpg was being displayed in place of Pool.jpg
The server allows for the difference between upper and lowercase but it appears that ExpressionEngine or Matrix does not.


texts: Selecting Channel data within a custom Addon

texts:
I'm going to be inserting some data into a channel via a custom Add-on. It looks as thought I should be using the Channel Entries API in order to do this, which is fine.

What I need to do first though is select some supporting data from some existing Channels. There doesn't seem to be anything in the above API to fetch existing data unless I missed it. What's the best way to accomplish this? I'm happy to use the DB Class, if that's the only way of doing it. I just wanted to check there wasn't a preferred method of doing this before I go re-inventing the wheel!

Any help, gratefully received.


texts: FreeMember Update Profile only updating screen_name and email, not any other custom fields

texts:
I'm having a lingering FreeMember issue where regardless of what I include in the form it will only update the screen_name and the email address. It will not update the street_address, city, state, or zipcode

EE 2.7.2

Freemember 2.3.0

{exp:freemember:update_profile form_class="form" return="member"}

 Email
 <input class="form-control" type="text" name="email" value="{email}" />
 {error:email}

 Screen Name

 <input class="form-control" type="text" name="screen_name" value="{screen_name}" />
 {error:screen_name}

 Address

 <input class="form-control" type="text" name="street_address" value="{street_address}" />
 {error:street_address}

  City

  <input class="form-control" type="text" name="city" value="{city}" />
  {error:city}

  State

  <input class="form-control" type="text" name="state" value="{state}" />
  {error:state}

  Zip Code

  <input class="form-control" type="text" name="zipcode" value="{zipcode}" />
  {error:zipcode}

 <input class="btn" type="submit" value="Update Profile" class="btn" />

{/exp:freemember:update_profile}


texts: Attempting to use plugin to addslashes in a template not working

texts:
I am fairly new to EE so please bare with me. I have an issue where I want to use addslashes() on a template tag that is in an array.

$product_array["{ProductEntryID}"][] = array(
    'CustomizationNotes' => "{CustomizationNotes}",
);

I've used two different plugins with success on my local development environment Format Characters and
PHPStringFun. However when I attempt to use them on the production site nothing is output.

Not sure where to go from here any help will be appreciated.

Thanks,
Dan


texts:
I used this technique on a site I just built with EE 2.7.0 and Stash 2.3.9. Now I'm trying the same technique on EE 2.7.2 and Stash 2.4.7, and it's not working! This is a simplified version just to show what's going on. Note: I'm using stash:get instead of stash:get_list just to dump out the data.

index.html

{exp:channel:entries
    channel="white_paper|c_study|video|webinar|data_sheet"
    limit="8"
}
    {stash:embed
        name="item"
        process="start"
    }
{/exp:channel:entries}

{exp:stash:get name="resources" process="end"}

item.html

{exp:stash:append_list
    name="resources"
    parse_tags="yes"
}
    {stash:item_title}{title}{/stash:item_title}
    {stash:item_date}{entry_date format="{gv_date_format_short}"}{/stash:item_date}
    {stash:item_url}/resources/{url_title}{/stash:item_url}
    {stash:item_type}{channel}{/stash:item_type}
{/exp:stash:append_list}

Instead of outputting content from the channel:entries loop, it is just outputting the unparsed tags:

item_title|=|{title}|&|item_date|=|{entry_date format="%M %j, %Y"}|&|item_url|=|/resources/{url_title}|&|item_type|=|{channel}

So it's clearly a parse order issue, and it seems like something has changed either in EE or Stash.


texts: Solspace User - Can registration form have group specified w/email activation?

texts:
I'm using exp:user:register, the group_id parameter (https://www.solspace.com/docs/user/register/#group_id), but it's being ignored. I see in the documentation that "This parameter respects native EE account activation settings," so does this mean I can't set group_id as long as I have email activation set?

In EE Member Preferences, there's "Default Member Group Assigned to New Members" that is being used instead. But I'd like to override this using exp:user:register. Possible?


texts: {exp:assets:files} does not output anything

texts:
Since I updated my EE installation from 2.5.5 to 2.6.0 the {exp:assets:files}-tag pair does not output anything anymore. I have also updated Assets to 2.1.1. Also {exp:assets:total_files} returns zero. The {exp:assets:folders}-tag pair works fine. I have also reindexed all files.

My template code looks like this:

    {exp:assets:folders parent_folder="{filedir_5}"}

 {folder_name}
            {if total_subfolders}

                    {subfolders}

            {/if}

                {exp:assets:files folder_id="{folder_id}"}

 {if title != ""}{title}{if:else}{filename}{/if} ({size})

                {/exp:assets:files}

    {/exp:assets:folders}

I am showing a whole file hierarchy of a file directory above the web root (therefore link-vault-addon usage). The folder are outputted correctly but no files are shown. I have also tried your example usage from the docs:

{exp:assets:folders recursive="yes"}

{folder_name}

    {exp:assets:files folder_id="{folder_id}"}

{if title != ""}{title}{if:else}{filename}{/if}

    {/exp:assets:files}

{/exp:assets:folders}

But this also only outputs all folders but no files.

Any help is appreciated.
Thanks!


texts:
I just realized that when I go to website.com/faljalsdfkj, it should cause a 404 and take me to the 404 page. I have this same setup on ann older site and it seems to be working correctly, but Can't figure out what's different. I don't have strict urls turned on because I need this setting for a feature.

After viewing this thread:

404 ErrorDocument returns home page incorrectly

it seems that perhaps its my apache configuration? Or is there another setting im missing?

Any ideas would be huge. Thanks!


texts: Safe to cache Expresso Store "exp:store:product" tag?

texts: I am wanting to cache the output of the exp:store:product tag. This seems like a safe thing to do, with one possible exception. The generated form contains a hidden _params field, the value of which changes with every request. Is it safe to cache this? Or is there something I'm not considering?


texts: freeform:entries to display "File Upload" field

texts:
I'm using this basic code to output form results:

{exp:freeform:entries form_name="{segment_3}"}
 {freeform:all_form_fields}

   {freeform:field_label}:
   {freeform:field_output}

 {/freeform:all_form_fields}
{/exp:freeform:entries}

It works great for all of my forms, except for when I encounter a File Upload field: it just outputs the filename (without a link to the file). Is there a better way write this code for possible File fields?


texts: Exp-Resso Store Shipping Rates & Calculator

texts: We're integrating exp-resso store with a new e-commerce site. Ideally, we want to be very clear about the shipping charges for an order on the cart page before we have a lot of information from the customer (where they live, for example). I understand that some of this is required to determine the rate. With other e-commerce packages we've worked with there is a Shipping Calculator feature which prompts the visitor for their city, state, and zip and then presents them with the shipping rates that apply to their order. Can we do this with exp-resso store?


texts: Can author's edit each others entries within Membergroup

texts:
I've got a couple of channels. One is a Standard channel. There are multiple Member groups. Each with their own part they can edit, but most entries belong to the Standard channel.
Members can now edit all entries under Standard. Als the entries not belonging to them.
Is it possible for members to edit the entries belonging to one of their Member's?

Thanks,


texts: Conditionals: Use relationship fields within a grid field as variables?

texts:
I have a grid field that contains a relationship field. I want to alter the output according to whether or not a particular field in the related entry contains data or not. For instance:

{if grid_field:relationship_field:related_entry_content_field != ""}Do this{if:else}Do something else{/if}

Instead of the expected results, it prints "{if" then seems to evaluate both conditions as true.

Any ideas on how to make this work?

Edit: Here are some examples of what works and what doesn't work:

{exp:channel:entries channel="channel_name" search:search_field="={segment_x}" dynamic="no"}
    {grid_field}
            {!-- Grid field, then relationship field, then field from the related entry - no tag pair. This works: --}

{grid_field:relationship_field:title}

            {!-- Same syntax as above but used in a conditional. Does not work: --}

{if grid_field:relationship_field:title == "foo"}Foo{if:else}Not foo{/if}

            {!-- Using tag pair for the relationship field as suggested below. This works: --}
            {grid_field:relationship_field}

{if grid_field:relationship_field:title == "foo"}Foo{if:else}Not foo{/if}

            {/grid_field:relationship_field}
    {/grid_field}
{/exp:channel:entries}

Here is the output from the above code:

Title of Related Entry (Desired result from Line 4)
{ifFooNot foo (Weird result from Line 6)
Not foo (Desired result from Lines 8 - 10)

Hopefully this helps someone else!


texts: User Input Price within product form tag

texts:
I've got the following product form tag for adding multiple items (Donations) to a cart but can't figure out how to allow the user to input the price.

    {exp:store:product_form}
    {exp:channel:entries channel="{donation_channel}" dynamic="no"}
        {exp:store:product entry_id="{entry_id}" disable_form="yes" }

            <input type="hidden" name="items[{count}][entry_id]" value="{entry_id}" />

            <label class="field_label" for="price">{donation-description}
            <input type="text" name="items[{count}][item_qty]" value="" />
            </label>

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

           <input type="submit" name="submit" value="Make Donation" class="button expand" />

{/exp:store:product_form}


texts: Multisite - channel fields do not work in child template pages

texts:
Using expression engine multi-site.

we have a master site "master-site" & a slave/child site "slave-site".

I am creating a new channel "blogs" & it's channel fields.

1) Create "blogs" channel & channel fields from "slave-site" admin panel.

Issue: Only default channel tags "{title}", "{entry_id}" etc are working in templates. If we create a new channel fields then tags for these channel fields do not work in template and shows tags as it is in browser.

Eg: If we create a channel field "blog_description" and using "{blog_description}" tag in template but in browser tag not fetching it's value and showing tag "{blog_description}".

2) Create "blogs" channel & channel fields from "master-site" admin panel.

Issue: "blogs" channel & channel fields are not appearing at "slave-site" admin panel.


texts:
I am trying to display images tagged with a specific Keyword, however I also appear to be getting images that have my keywords in the images filename. Is this correct behaviour or am I just not getting my tags right? Code below..

{exp:assets:folders recursive="yes"}

{folder_name}

        {exp:assets:files folder_id="{folder_id}" keywords="London"}

{if title != ""}{title}{if:else}{filename}{/if}

        {/exp:assets:files}

{/exp:assets:folders}


texts: 403 error when moving a site from production to localhost

texts:
My question is very similar to this one.

I am new to Expression Engine and CMS in general. I'm trying to change an existing live site using EE2. So I copied all the files to my local machine (WAMP) and imported the database. I added config/config.local.php with my database credentials. When I try to access the site I get a 403 Forbidden error page saying:

  You don't have permission to access / on this server.
  Apache/2.4.17 (Win64) PHP/5.6.16 Server at localhost Port 8080

I have tried removing the .htaccess file from the root, but I get the same error.

What additional configuration do I have to add to move a site from production to localhost?