texts: How Does ExpressionEngine Handle Outside Directories?

texts:
I have a directory in my web root (let's call it microsite) that is not managed by my main ExpressionEngine site, but people still need to access it. So, naturally, I just navigate to http://mysite.com/microsite and I'm good to go.

What I'm wondering is what is ExpressionEngine's process when it encounters a URL segment that isn't a template, but isn't a 404 either? What are the steps it/the server takes for me to ultimately arrive at my non-EE destination?


texts:
When expression engine is creating a small file it is putting them in a folder call "thumb". How do I call that file from a template to render on the finished page?

{m_topic_img} calls my full image but how do i customize {small_file_url} from the EE docs to call the correct file? I am using GD2 to generate the thumbs.

Thanks


texts: Subscribing Expresso Store customers to Mailchimp with SL MailChimp Subscribe

texts:
We've installed both Store and Mailchimp subscribe however seem to have run into a few issues:

If a user registers via the default register screen, the form works and they get subscribed to mailchimp if they select Yes to subscribe, yay!
If a user registers via our store checkout form their choice is saved in their expressionengine profile, however it won't add them to the mailchimp list, booo!

We've basically setup a custom field with the options yes and no, if they select yes it should subscribe them to the mailing list.

We've then mapped this custom field to a store custom field (order_custom2) and used the following code in the checkout form:

    Newsletter

      <select name="order_custom2" id="order_custom2" >
        <option value="Yes">Subscribe</option>
        <option value="No">Don't Subscribe</option>
      </select>
      {error:order_custom2}

We're struggling to see why this isn't working and any ideas would be much appreciated!


texts: Creating rows with ExpressionEngine and a Grid using Switch

texts:
So far I was able to create rows with EE and a Grida data based on a solution from that article, but new template is not able to create rows (code below)

{exp:channel:entries channel="media" url_title="{segment_2}" limit="1" dynamic="no"}
...

        {press_releases}

        {switch='|||

'}
        {/press_releases}

....
{/exp:channel:entries}

any clue what is missing?

Thanks


texts: Assets date modal closes info screen w/o saving

texts:
This is specifically with the Date modal: when I (or the client) go to edit the file information date, we select a day -- and the moment the day selection happens, the file information popup closes without saving the information we'd typed in.

This behaviour seemed to start when we began creating sub-folders for our files, but I don't think that should have affected anything.

Using Assets 2.0.3 on EE 2.5.5

This behaviour shows up both in my Mac Chrome browser and my client's PC (didn't ask her what browser, but I'm going to say she's using IE).


texts: Looping through channel entries with categories

texts: For a given channel, is it possible to loop through the categories associated with its entries in alphabetical order, then nested-loop through the entries under that category? I'm trying to build a tree-view like template.


texts: git , bitbucket and multi environment (subdomain > same server)

texts:
So, this is my actual workflow:

With my IDE (Webstorm or Aptana, I'm on windows) I create a project and I synchronize remotely via (s)ftp
I then create a git repository and push it on bitbucket
Everytime i upgrade the project in local , it syncs with the production version on the server. I then commit and push the changes
therefore, my actual environment is local > production

I would like to switch to multiple environments (local > development > production), where local is my pc and development/production are on the same server (dev in a subdomain), using ee master config

I read a bit and I found two solutions:

1) git/bitbucket + ftp + deployhq

In practice: local version synchronized remotely (dev.mysite.com pointing to a subfolder), then push in the repository on bitbucket and finally deployed into production via deployhq

pro: maybe the simplest solution

cons: deployhq or beanstalk are payments services (free version of deployhq has 1 repository and limited deploy)

2) git and ssh installed on the server

I copy these steps from another discussion:

  do a git init in production server (is this safe?)
  clone the repo from production to staging server
  developers clone the repo from the staging to their local machine
  push files to the staging server after finish changing
  when staging is ready, push everything to the production

Are these steps correct? I'm not very familiar with git, so can you give me an example of the commands to use? I would use this solution. Also, can I still use bitbucket?

Are there better solutions? Thanks in advance


texts:
I have set the system to offline and double checked this in my config file, yet it doesn't work, I can still view the site when logged out. I have tried on different browsers and devices but the site still shows.

EE version v2.5.3 with MSM installed. Have tried this on 2 of the sites on this install with the same results.

Thanks in advance.
Ben


texts:
I'm getting a PHP error when generating reports. Any idea what this means?

EE 2.5.3 w/ Expresso Store 1.6.2 / IIS 7 / PHP 5.3.6

Severity: Warning
Message: Invalid CRT parameters detected
Filename: store/mcp.store.php
Line Number: 2248


texts: Solspace Importer - How to update playa field without overwriting

texts:
I'm trying to update lots of parent entries in channel with new zoo visitor members using Importer.

I've finally worked out how to import the members using Solspace Importer, then used Datagrab to populate the Zoo visitor channel and create the entries.

Now I want to use Importer to link them to the correct Playa parent categories. However, I can't seem to do this without overwriting (and hence erasing) the original playa field content...

So basically what's happening is any new entry (member) I try and add to the parent channel entry, just overwrites all the existing members that are children of that entry. I just want to add them to the parent as another child entry as opposed to overwrite the whole lot.

How can I go about doing this?

Any help would be much appreciated.

Thanks


texts:
Is there any way of forcing EE to remove 'dots' from the url title? As in an entry called "thiscompany.com" I want the url title to be thiscompanycom because other things depend on not having dots and it generally is bad practice to have it in the url (browser gets confused)

I tried this in the config file:

$config['permitted_uri_chars'] = 'a-z 0-9~%:_\-';

but the system won't override what seems to be a code ignitor default.

So my question is, where do I override this in the CI core if necessary, or some other way of doing it?


texts: Complete website duplication with EE v2.9.2 and MSM v2.1.7?

texts:
Am I able to safely duplicate an entire website (ie; with entries) with the above versions of EE & MSM?

The documentation seems to say ‘yes’! But I’ve read that there were problems and so the functionality was discontinued in v3.0.

I’m a bit nervous for 2 reasons:

1.) Due to the crazy timeline, we’re thinking of doing it directly on the production/live server (eeek).

2.) It’s a reasonably large website (30+pages, 100’s of videos). So my cost estimate would be wildly different if I had to copy all the content entries manually.

Has anyone had any experience with this? Any advice would be welcome.

Cheers,

CJ


texts: Allowing script/form tags in RTE (WysiHat)

texts:
I was wondering if there was any way of being able to edit the WysiHat settings to allow script/form tags to be entered into them. We have a client who has a third party widget which require JS, and a PayPal form which he wants to be able to put on his site, and move around using the default RTE. However whenever he pastes them in code view and returns to content view, they get stripped.

I've added textarea and rte to skip_xss_fieldtypes in Channel_form_lib (line 3155) but it's still doing it when swapping between code and content view. If anyone could give me a hand on how to fix this without resorting in switching to a third party WYSIWYG, that would be great.

Thanks,
Jon

EDIT: Just did some further investigation, when pasting a script tag in code view and then submitting (without switching it back to content) it comes through fine. However when you then go to edit the entry again, it initialises as content view and the script tag disappears, could this be because the script tag isn't a visible element by default?

Also when pasting a form in and switching back to content view, the form tags get stripped. I thought this might have something to do with the fact that you're already inside a form tag so it's stripping the tags it sees as being unnecessary. Then when you hit submit it's trying to validate the fields that're pasted in (if they have required set, it won't let you submit).

Seems like this might be a bigger issue than just switching a setting over, but I appreciate any useful comments that are left.


texts: Display Description in Nested exp:file:entries Tag

texts:
Here is my template simplified for brevity

{exp:structure:entries channel="iconGroup" limit="1" sort="asc" paginate="bottom"}

{title}

    {exp:file:entries directory_id="{file_upload_id}" dynamic="no" disable="categories" orderby="date"}
         {filename}
         {description}
 {/exp:file:entries}

{/exp:structure:entries}

The issue i am having is that the description does not show up when it is nested in the entries template. If i move it out of that it shows fine. Is there a way i can make it show up?

Alternatively The main reason i need it nested is to get the file_upload_id from the channel above. Maybe there is a way to get that single entry?

Thanks!


texts: Can't move an entry to another channel in EE5

texts: It used to be in EE2 you could move an entry to another channel that shared the same fieldset. I can't seem to do that anymore in EE5 (Options tab > Channel). Does anyone know how I can change an entry's channel definition in EE5? I can go into exp_channel_titles I suppose if I need to, but maybe there's a more intuitive way?


texts: Validation in the save_settings method of a custom fieldtype?

texts:
How does one go about including validation code associated to the save_settings() method in a custom fieldtype?

Basically I want to check the posted values of the fieldtype's settings before saving them and if the validation fails, I want to send the user back to the settings page again with an error message.

The post_save_settings() method wouldn't be of use as it is run after the settings have already been saved, or am I wrong? Returning false or an error string from save_settings() also does not prevent the data from being saved.


texts: Orders tag error: order_status parameter

texts:
I've just updated to Store 2.0.4 and have come across the following error on a page using the orders tag with "order_status" parameter:

Error Number: 1054

Unknown column 'order_status' in 'where clause'

select * from `exp_store_orders` where `site_id` = '1' and `order_completed_date` > 0 and `order_status` = 'new' and `member_id` = '1' order by `id` asc limit 100 offset 0

Filename: third_party/store/src/Store/Illuminate/CodeIgniterConnection.php

Line Number: 100

My orders tag looks like this:

{exp:store:orders member_id="CURRENT_USER" order_status="new" secure="yes"}

Has the parameter name changed in 2.0.4, or is this a bug? The documentation still shows the parameter as "order_status".

https://exp-resso.com/docs/orders_tag.html

Many thanks for any help.


texts: Have to resave all entries after playa converts

texts: After convertis my channel relationship to playa I have to resave all my entries in order for it to work. On the dev site it seemed to work correctly.


texts: Access tags/variables in email notifications

texts:
I am looking at Design -> Message Pages -> Email Notifications templates.

It seems to me that the variables available in the templates are very limited.

Is there a way to introduce more variables or even tags in the template?

I wanted to use a custom field in a channel to be the sender name instead of {sender_name}. Ditto for {receiver_name}


texts:
On the page that I display the details of a single Channel entry, I have the following:

{exp:channel:entries
    channel="blogs"
    disable="categories|category_fields|pagination"
    dynamic="no"
    track_views="one"
    url_title="{segment_3}"
}

The URL where this page is displayed looks like this: www.domain.com/blogs/post/hello-world. Because I am not using the second segment to contain the entry id or URL title (I reserve that for the pagination and Low Search hash), I have to set dynamic="no" and url_title="{segment_3}".

The EE documentation says:

  Single entry pages are ones that show only a single entry, specified
  dynamically by the ID number or URL Title in the URL, such as comment
  or permalink pages.

I have gone to "Tracking Preferences" and all tracking options are enabled. I have also set "Enable Caching?" to "No" for the template file containing my loop.

Does my setup mean I can't track views? Currently, I do not think it is working.

UPDATE 1:

In my page that lists all the blog entries, I create links using {url_title_path='blog/post'}. On my single entry page, I thought I had to set dynamic="no", but it doesn't seem that I need to. The following works:

{exp:channel:entries
    channel="blogs"
    disable="categories|category_fields|pagination"
    track_views="one"
    url_title="{segment_3}"
}

Have I met all the requirements to enable entry tracking? It's still not working for me, though. I am able to make comments work -- doesn't that have similar requirements as entry tracking?

EDIT 2:

Here's my entire template file (which is being embedded in another template):

{exp:low_replace find="\r|\n|\t" replace="" regex="yes"}
    {exp:channel:entries
        channel="blogs"
        disable="categories|category_fields|pagination"
        track_views="one"
        url_title="{segment_3}"
    }

{title}

                By {author}

                {exp:nice_time date="{entry_date}" format="{format.date.international}"}

                {comment_total} Comments

                {view_count_one} Views

        {blog}
    {/exp:channel:entries}
    {embed="common/.comments"}
{/exp:low_replace}


texts:
I am trying to use a template that I have custom Gateway fields in and I am using the following code

{exp:cartthrob:checkout_form return=""}
{gateway_fields}
<button class="checkout">Check Out</button>
{/exp:cartthrob:checkout_form}

But when the page renders there is just the EE embed tag instead of the fields.

I am using Stash variables to embed this form in the main page wrapper. I think it has something to do with the parsing order but I am not able to figure it out. Any help would be great.

Thanks


texts: Solspace Freeform Error with repeated domain in Action URL

texts:
Solspace Freeform is generating a form tag with the domain repeated multiple times and is causing an error:

<form action="DOMAIN.com/DOMAIN.com/DOMAIN.com/?ACT=28" accept-charset="utf-8" method="post">

The following errors were encountered:
Missing required valid POST variable - params_id

Any ideas on the cause?

{exp:freeform:form
   form_name="web-inquiry"
   required="first_name|last_name|email|issue"
   form:class="form-stacked"
   }
<fieldset>
    <legend>Contact Us</legend>

            First Name:

                <input class="form-control required" id="first_name" name="first_name" size="30" type="text">

            Last Name:

                <input class="form-control required" id="last_name" name="last_name" size="30" type="text">

            Email:

                <input class="form-control required email" id="email" name="email" size="30" type="text">

    Issue:
        <textarea class="form-control required" id="issue" name="issue" rows="5"></textarea>

        <button type="submit" class="btn btn-primary">Submit</button>&nbsp;<button type="reset" class="btn btn-default">Cancel</button>

</fieldset>
{/exp:freeform:form}


texts: Link rel="next" and rel="previous" pagination in header

texts:
how can i apply pagination-with-relnext-and-relprev to pagination in the header?

i want to add

<link rel="next" href="http://www.example.com/article?story=abc&page=3" />

and

<link rel="prev" href="http://www.example.com/article?story=abc&page=1" />

on pagination page 2, and so on. with an exception for the first and last page.
last page should only contain the rel="prev" and the first page should only contain rel="next"

this would not be too hard to get in the body within the current {paginate} tags,
as i see in many other solutions, but i want it in the header as stated in the article above by Google.

anyone has an idea how to approach this problem?


texts: Does Exp:resso Store have Google Analytics Ecommerce tracking ability built in?

texts:
Does Exp:resso Store have out of the box support for Google analytics ecommerce tracking (like Magento)?

More details: https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingEcommerce


texts:
The documentation on this plugin is lacking, and I was wondering how to utilize it:

Source: https://github.com/EllisLab/Cron/blob/master/cron/pi.cron.php

Devot-ee: http://devot-ee.com/add-ons/expressionengine-cron

My end goal:

To check against the expiration_date on certain entries and notify that a template is about to expire.

The CRON would ideally run only once per day. I have little idea as to how to make it work, but what I've been trying simply to ensure that it's working is a plugin with a function:

public function check()
{
    return 'test';
}

and then call this function in a template by:

{exp:cron minute="*" hour="*" day="*" month="*" plugin="<plugin name>:check"}{/exp:cron}

even something like this:

{exp:cron minute="*" hour="*" day="*" month="*" plugin="<plugin name>:check"}{<plugin name>:check}{/exp:cron}

fails to return the string.


texts: Expresso Store: Search by SKU in control panel

texts: My client would like to be able to search products by entering it's SKU, however this doesn't seem to be supported in the search in Content > Edit or Store > Inventory. Is there any way to search for a SKU in the control panel? If not how would I go about adding this functionality?


texts: MSM - Template on site 1 and I want different url on site 2 to goto that template

texts:
I need help with Multi Site Manager - running on EE2:

All templates are on on Site 1.
So for example one template is
"promotions/index" -> showing as "/promotions" naturally.

On Site 2 I want the url be different e.g.
/aktionen but use this same template.

How do I link up/map this different name to go to /promotions/index in Site 1?

Thank you in advance.


texts:
Am using EE 2.10.2 and NavEE 2.2.10

Whenever am assigning target blank or parent or any target to manual links it is not working. Probably a bug, not sure.

Did anyone encounter this?


texts: Matrix display_cell() encoding entities when returning json string

texts:
I've come across an issue where I've got a celltype which contains array data stored as a JSON string.

When I json_encode the array and return it on save_cell(), display_cell() then returns the JSON quote wrappers as entities?

What I expect:

[{"first_name":"Garret","last_name":"Winder"},{"first_name":"Jeff","last_name":"Claeson"},{"first_name":"Paul","last_name":"Burton"}]

What I get:

[{&quot;first_name&quot;:&quot;Garret&quot;,&quot;last_name&quot;:&quot;Winder&quot;},{&quot;first_name&quot;:&quot;Jeff&quot;,&quot;last_name&quot;:&quot;Claeson&quot;},{&quot;first_name&quot;:&quot;Paul&quot;,&quot;last_name&quot;:&quot;Burton&quot;}]

Is there any way I can disable this in Matrix? Presumably if I set the column formatting to 'none' somehow in the cell settings it'll resolve it - I couldn't see how to do that in the docs?

For now I'm just finding and replacing the " entities before decoding...

Thanks
Iain


texts: Can I upload a file and assign a category without going to File Manager?

texts:
I'd like to be able to be in an entry text area and make a link to a file I upload. Once uploaded, I see a button to "Edit File" but that only lets you define the meta fields, it doesn't contain the "Categories" tab, like what you'd see if you went to edit the file from File Manager.

Do I need to go to File Manager to specify categories, or is there an easy way to do it from the Upload File/Browse Server dialog that I don't know about?

Thanks for your time.


texts: Expresso Store - Go straight to checkout when adding item to cart

texts: Is it possible to go straight to the checkout page when the user adds an item to the cart?


texts: Does Assets support the category image field

texts:
I'm trying to attach category images from the edit category function in EE. I noticed that while adding an image category images only displays the EE file manager. I'm using Assets (S3) however as the main image source.

Does Assets support category images or is there any other way to achieve this?


texts:
I want to display up to  200 words of the related results just in the next line to title
But i am not getting the text that {excerpt} should Display

My code is written below

{exp:search:search_results switch="resultRowOne|resultRowTwo"}

{exp:search:search_results switch="resultRowOne|resultRowTwo"}

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

{excerpt}

    {if count == total_results}

    {/if}

    {paginate}

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

    {/paginate}

{/exp:search:search_results}


texts: how to not show product if inventory is out in every option?

texts:
I'm having a problem with the inventory field in a product in cartthrob. For my product, there are color variations for each product and the inventory is assigned accordingly.

When displaying the products on the "add to cart" page, the cartthrob options tag will check for inventory and only display the color if it's in stock.

The problem is that if the inventory reaches 0 on both color variations, the options will still show the product (with an empty select tag).

How can I have this product not show up in my template logic if there is no inventory left for any of the variations?

{options}
{if inventory !=0 }

<select>
<option name="item_options[product_color]" value="{option_value}">{option_name}</option>
</select>
{/if}

{/options}

Ideally, if all inventory is at 0 in these product fields, I'd like a message to show the product is out of stock and not allow the add to cart functionality.


texts: Idle message when logged in to control panel

texts:
I get this message at the bottom of the page of the control panel:
"You've gone idle, please enter your password to continue."

I just updated to ExpressionEngine to 2.7.3


texts: Stash + Matrix slugs for multiple entries

texts:
I'm trying to use Stash to replace {image_n} tags in the content fields, like also mentioned on:

using Stash to replace Matrix image slugs

http://devot-ee.com/add-ons/support/stash/viewthread/3013

I get that working just fine but when I try this on a page with multiple entries, the images simply show the same matrix images (of the first entry) and not different images per entry.
I'm assuming this is due to the images being saved as snippets, so I figured instead of that, adding a context to the stashed data would do the trick, but I just can't get it to work. Can anyone help me out? Here's what I have now:

{exp:stash:set_list name="bloglist" parse_tags="yes" parse_depth="2"}
    {exp:channel:entries channel="blog" limit="5"}

        {stash:item_title}{title}{/stash:item_title}
        {stash:item_entry_id}{entry_id}{/stash:item_entry_id}{!-- For potential use as context --}
        {blog_images}
            {exp:stash:set name="image_{row_count}" type="snippet"}

            {/exp:stash:set}
        {/blog_images}
        {stash:item_body}{blog_body}{/stash:item_body}

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

{exp:stash:get_list name="bloglist" parse_vars="yes"}

{item_title}

    {item_body}

{/exp:stash:get_list}


texts: Find consecutive empty cells in Matrix field

texts:
I'm trying to build a seat reservation system for a small cultural venue. I will be using a matrix field mimicing all the seats (rows for seat rows, colums for seat numbers). If someone makes a reservation for 3 seats, I would like to go through the Matrix field (in the template, not in de CP) and find 3 consecutive empty fields.
Would this be possible purely with EE code? Or should I dive into php, and if so, what would be the best solutions for this?


texts:
I know this is a simple answer, but I can't remember the exact way to write an SQL query to use in a custom field for displaying a list of channels currently on the site. A Google search on the topic wasn't much help. Thank you!

(I am using Query Field to create a dropdown list of channel names, if that changes anything.)


texts: How can I display user's total Friend invites without looping through each one?

texts:
I'm using the Solspace Friends module, and I'm trying to figure out an easy way to set a badge displaying the users' total friend invites.

The documentation lists a tag: {friends_total_results}, but this tag only works inside the {exp:friends:invites} loop, which means it gets repeated for every instance of an invite that the loop returns.

Am I missing something here, or is this just simply not possible in this current veriosn?


texts: Query exp_channel_data but exclude expired entries

texts:
I'm on EE2.10.1, and trying to grab unique countries from a channel that has one field for "country name" and one field for "country code". So I've got the following query:

{exp:query sql="SELECT DISTINCT field_id_47 AS country_code, field_id_46 AS country FROM exp_channel_data WHERE channel_id='4' ORDER BY field_id_46 ASC"}
    <option value="{country_code}">{country}</option>
{/exp:query}

... which works great, except: I need to exclude expired entries (but include future entries). I think it probably involves doing a JOIN on exp_channel_titles, but my SQL isn't really up to it!

Anyone know what the correct query should be? Thanks loads!


texts:
At the moment I just want to display some data stored in a matrix field in the Zoo Visitor channel, but no data is shown. I am able to update native member data via Zoo Visitor.

My code at the moment (reduced template code):

# {billing_info} = Matrix field
# {billing_company_name} = text field within matrix
# {billing_reference} = text field within matrix
# {billing_company_vat} = text field within matrix

{exp:zoo_visitor:update_form
    return='/account/edit/address/success'
    role='form'
    include_jquery='no'
    datepicker='no'
    include_assets='no'
    secure_action='yes'
    secure_return='yes'
    class='form-horizontal'
}
    {billing_info}
    <input type="text" class="form-control" id="billing_company_name" name="billing_info[billing_company_name]" placeholder="Company Name" value="{billing_company_name}">
    <input type="text" class="form-control" id="billing_reference" name="billing_info[billing_reference]" placeholder="Reference" value="{billing_reference}">
    <input type="text" class="form-control" id="billing_company_vat" name="billing_info[billing_company_vat]" placeholder="VAT No." value="{billing_company_vat}">
    {/billing_info}
{/exp:zoo_visitor:update_form}

What am I doing wrong?
I am logged in on the page.

Tags like the ones below are working fine.

{exp:zoo_visitor:details}
    {visitor:member_firstname}
{/exp:zoo_visitor:details}

Currently running EE 2.9 + Zoo Visitor 1.3.32 + Matrix 2.6


texts: Detecting Server Environment in Template - {site_url} Conditional Fails

texts:
Problem: Include analytic JS code in production, but not in staging or development.

Attempted to detect production environment with:

{if "{site_url}" == "http://www.example.com/"}

... but that's not evaluating as true; attempted to debug to get correct value of {site_url}, but, the value I'm using looks to be correct (copied/pasted to be sure).

<!-- {site_url} --> outputs <!-- http://www.example.com/ -->

Is this a parse order issue, or is there sometime obvious I'm missing in my pre-coffee state this morning?

If it's parse order, how do you go about doing conditionals on the environment within your templates if not with {site_url}?

Note: I'll actually respond if you take the time to assist, and, I'll mark the correct answer as answered ;-)


texts: how to show parent and children categories

texts:
I am trying to display the parent category as a heading and then display the children with links to a template that will display the entries form the child category.  This is where I have started and I cannot get the children to display based on the dynamic segment 5 even using low's seg to cat.

    {exp:channel:categories channel="work" show_empty="yes" style="linear" parent_only="no" show="{last_segment_category_id}"}

PARENT CATEGORY as a heading.

Child Category

             Child {category_name}

        {/exp:channel:categories}


texts: Simplest/Most Efficient Way to create a Definition List in channel fields

texts:
I want to create a definition list and it's overkill to create a whole separate channel for this.

Ideally in my channel entry there would be a field to create a definition list.

What's the best way to input the data?

Client:

Company name

Creative Director:

Team Member

Developers:

Company


texts: Comment form throwing "this field required" on submit

texts:
I'm not sure how long this has been happening, but I realized today that the comment form on a site of mine is throwing this error:

  The form you submitted contained the following errors

  The name field is required
  The email field is required

This is happening even when both fields are filled out.

My template code is here: http://pastie.org/6168028

Any idea why this would be happening?


texts: Issues searching for '7A' or '6A' with Solspace Supersearch

texts:
I'm building a search form using Solspace's Super Search but I'm getting some strange results on one of the fields.

It's a field that searches cable categories. The available options are:

<label for="cable_category">Category:</label>
<select name="cable_category">
    <option value="">-</option>
    <option value="8.2" {if super_search_cable_category_82}selected="selected"{/if}>8.2</option>
    <option value="7A" {if super_search_cable_category_7A}selected="selected"{/if}>7A</option>
    <option value="7" {if super_search_cable_category_7}selected="selected"{/if}>7</option>
    <option value="6A" {if super_search_cable_category_6A}selected="selected"{/if}>6A</option>
    <option value="6" {if super_search_cable_category_6}selected="selected"{/if}>6</option>
    <option value="5e" {if super_search_cable_category_5e}selected="selected"{/if}>5e</option>
</select>

The form's working perfectly for other fields but if I try to search for '7A' or '6A' it just displays all results. The URL changes but the search doesn't work. If I search for '5e' it works as it should.

I've tried setting the search to use 'exact' searching but that made no difference. I've also tried using lowercase (i.e. 7a) but that made no difference either.

The really strange thing is that if I search for '5e' that works perfectly?

Any ideas to what's going on would be very gratefully received.

Thanks in advance,

Tom

Versions: EE version 2.9.2, Super Search version 2.2.3


texts:
I've seen this question in Google but the link ended up dead on the Ellislab page.

I have a not too big site which resides all in one template group.

Is it possible to remove the template group from the url so instead of  http://domain.com/site/contact
it should be http://domain.com/contact

I already stripped the index.php via .htaccess

I once removed the template folder by linking to subpages with: {path='contact'} instead of {path='site/contact'} but I'm not sure if this is a good practice and doesn't mess up the site in one way or another.


texts:
I am running a site on EE 3.5.17 and I am trying to determine which version of PHP I can use without causing issue or conflicts with existing plugins, which includes CartThrob 3.2. The EE documentation says the following is required for EE 3.x:

PHP 5.3.10 can also be read as five-point-three-point-ten. That means
5.3.10 is greater than 5.3.1, 5.3.2, 5.3.3, and all the way up to 5.3.9.

I am currently running PHP 5.4 for the site but would like to move to 5.6.4 or greater given the EOL issues.
I would appreciate perspective from the community. Thanks.


texts:
Apologies... I am more end user than developer so I understand just enough coding to be dangerous!  :)

I found a question and answer about redirecting an expired URL to another page, and using that code worked... sort of. Navigating to an expired entry's URL did take me to the index page I wanted it to redirect me to while unexpired entries loaded normally, but my problem is with entries that have no expiration date entered because they are open indefinitely.  How do I fix it so that entries with no exp. date set still load while being able to redirect expired ones?

Here's what I have...

{exp:channel:entries channel="{channel_name}" status="open"}

    {if expiration_date < current_time}{redirect="/resources/jobs"}{/if}

    {!-- page content --}

    ...

{/exp:channel:entries}


texts: Expresso Store - Search on Sale w/ Entry Count

texts:
Is there a way to incorporate the search:on_sale and entries_entries number to display the total number of entries that are on sale?

{exp:store:search channel="products" search_id="{segment_3}" search:on_sale="yes"}
{exp:entries_number channel="products"}
{entries_number} Item(s)
{/exp:entries_number}
{/exp:store:search}


texts: Insert Code into Middle of Channel Entry Post

texts:
I have a channel that stores ads (HTML ads I created and the Google Adsense Code block), and  displays either my html or Google's JS to allow a random ad on each page load. I want to insert that channel entry code from my Ad Channel in the middle of every post from my Article Channel – say after the 6th paragraph.

I could split the post entry field into two fields and do something like: " {postHalfOne}{adCodeSnippet}{postHalfTwo} ", but that doesn't allow for changing the breakpoint in the future.

Basic HTML can be inserted after a certain number of paragraphs via javascript, but it is my understanding that javascript can not be used to pass ExpressionEngine code. My test code works to insert HTML (fiddle), just not with my exp:channel:entries code. Can I change my code to work with EE or is JS the wrong solution here?


texts:
I'm trying to put together a search form with Low Search a few 1 to 1 form inputs with the idea of being able to search by Last Name, State, etc etc...

For some reason though, Low Search appears to ignore all form inputs and returns all results. Here's the form example:

{exp:low_search:form
    collection="member_profiles"
    search_mode="exact"
    result_page="search/members_results"
    form_class="form"
    exact="last_name|city|state"
    min_score="1"
    require_all="search:last_name|search:city"
}

<fieldset>

        <input type="text" name="search:last_name" id="last_name" placeholder="Smith" value="" />
        <input type="text" name="search:city" id="city" placeholder="City" value="" />

        {exp:reegion_select:states name="search:state"}

            <input type="text" placeholder="Zip Code" name="search:postalcode" id="postalcode" class="code" />

        <input type="submit" value="search" class="btn">

</fieldset>
{/exp:low_search:form}

Now, when I check the Search Logs I do get confirmation that the search has no keywords recorded though I had thought that's what the search: inputs would do.

For extra info, here's the results tag set I'm using (using _GET param passing):

{exp:low_search:results query="" status="not closed" limit="10" disable="member_data"}

But, as mentioned, that just loops over all the entries regardless of filter.

Anyone have any ideas?


texts: How do handle menu organization (taxonomy) in EE4?

texts:
I've been using EE2 + Taxonomy for years. Great combo. But Taxonomy might not be available for EE4. I've been spoiled for so many years, I've never thought of how to organize my menus without it.

How do you guys handle menu organization?

For example, I have channel Cars. In Cars I have entries Civic, Versa, Versa (Sedan), Mustang. I want a Cars local menu with items: Mustang, Civic, Versa, and Versa (Sedan) as a child under Versa.

Sorry if ignorant, but I've done this so many years with Taxonomy, and now I'm not sure of EE4's ideal native solutions, or whether there are other good addon solutions.


texts: How can I download and archive my entire EE website?

texts:
My client is moving to a different platform and they want me to "download" their current EE site so they can have an archive of it.

Does anyone know how to do this?  Thanks!


texts: EE 3.3.3 Error "Cannot modify header information"

texts:
Installed EE 3.3.3 with the default theme to start learning it, and got the error.

Notice Undefined offset: 2

ee/legacy/database/DB_active_rec.php, line 1876 show details

Severity: E_NOTICE
Warning

Cannot modify header information - headers already sent by (output started at /Users/jbreen/Sites/ee-3.02-dev-site/system/ee/legacy/core/Exceptions.php:112)

ee/EllisLab/ExpressionEngine/Boot/boot.common.php, line 463 hide details

Its a local install with MAMP Pro.Reinstalled again same error on homepage only. Checked DB Privileges and are OK. I am Stuck.


texts: Error: Unable to load the requested class: functions when uploading from localhost to server

texts:
EDIT 10/21/2016 - the original question is right below this edit.

User Anna_MediaGirl suggested that I reuploaded the files to make sure none was missing. Sadly, it didn't worked out and the error is the same. I double checked the config.php to make sure I was addressing the database correctly. The same info was used on ee_wizard, and the result is positive even on the suggested and optional requirements, so I believe everything is OK with my hosting service.

I'm sure I'm missing something here. Could it be the fact that it is running on a subfolder from my domain? The system path in admin.php is set as './system', is this ok? Or do I need to change it since I'm not in my public_html's root?

Important to notice, this is running perfectly on localhost. The only changes in the install I did was a .htaccess with the following lines to remove the index.php from the URLs. The problem continues if I remove the htaccess file.

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

I'm sorry if some of my questions sounds dumb. Like I said, I'm not exactly a developer, but very interested in EE.

ORIGINAL QUESTION

I asked this question on EllisLabs' forum but am asking here as well, hope you don't mind.

Fact is I'm new to ExpressionEngine. My first run on EE was a freelance job, and apparently everything is fine. The install on my computer works fine (using Wampserver64) and the agency that hired me for the job had no problems uploading the site to the client's server.

Now I'm working solo on a new project, and trying to upload it by myself on my shared hosting. I followed all of the User's Guide direction to upload it, except for moving the system folder, for the sake of simplicity. The EE Wizard tells me my host is ok. I imported the database, did change the parameters on config.php to match the original database settings, granted all the permissions to files and folders.

However, when I try to access the admin.php I get the following message:

Error: Unable to load the requested class: functions

Since my client haven't decided on the domain yet, i'm running it on a subfolder of my portfolio, that is:

http://iconoclasta.com.br/heloee/

Please note that I'm not a developer. I work as a webdesigner for almost 10 years mostly with HTML and Bootstrap, so my skills on database management and back end development are inexistent.

Hopefully some one can help me with this? I'm pretty sure there's a begginer's mistake somewhere. I've been trying to find out the problem in the last 3 days and decided to call for help.

I'm using core 3.4.3 and no plugins or modules, only the vanilla core install. Any other information I need to provide?

Thank you very much!


texts: Fatal error: Call to undefined method CI_Typography error on line 315

texts:
I'm getting this error on the front-end, although the back-end/CP seems to be working correctly:

Fatal error: Call to undefined method CI_Typography::initialize()
in /my_path/system/expressionengine/modules/channel/mod.channel.php on line 315

The server wizard works fine, and 1.x that was running on the same server/directory was functioning as well.

Where should I start to look? Thanks all!


texts: Low Search / Channel Entries Search running very slow in EE2 after move to MySQL 5.7

texts:
I've got an old website that's running EE 2.11.2 and Low Search 4.4.4.

I'm trying to move the site from a cPanel VPS that runs MySQL 5.6, to a new cPanel VPS (with more RAM so it should be faster) that runs MySQL 5.7.

Everything is setup the same on each of the VPS's, and this is using PHP 5.4. I've been testing the site and noticed that everything seems okay, except that performing a search with a Low Search form is taking about 7 seconds on this new VPS, but it was only taking about 1 second on the old VPS.

The only difference I can see is that this new VPS is using MySQL 5.7 instead of 5.6.

Looking at the template debugging, it seems to slow down a lot after the 'Low Search: Calling the channel module' line. If I disable whatever extensions are listed after that, it doesn't really make any difference and whatever follows 'Low Search: Calling the channel module' is taking over 3 seconds (which is a large chunk of this extra time).

(0.221607 / 23.93MB) Low Search: Pre-applying search vars to tagdata
(0.231355 / 24.14MB) Low Search: Calling the channel module
(3.521634 / 26.05MB) Calling Extension Class/Method: Low_reorder_ext/channel_entries_query_result

I asked this question to Low on his support forums but he replied with this:

  It might look like a LS issue, but the time gap between those to log
  entries is practically all native workings. Low Search uses the native
  Channel Entries tag to generate the search results. When LS says
  'Calling the channel module', it has done most of the work, set the
  fixed_order or entry_id parameters, and calls channel:entries to let
  it parse the entries. That's where it takes a lot of time, but LS is
  pretty much done by then (apart from some minor post-processing). So,
  not a lot LS can do here.

Does anyone have any idea why using Low Search might seem to work a lot slower in MySQL 5.7 and if there's any fixes for this? Thanks.


texts: How does CartThrob limit coupon code usage?

texts: When you set up a coupon code, you can specify how many times it can be used per customer (via the "Per User Limit" field). However, how does CartThrob keep track of this? I assume by member ID, if the user is logged in. But what if they're not logged in? Is it by IP address, by the billing/shipping info they enter for their order, or some other method?


texts: ExpressionEngine 1 - Fieldtype to select members

texts:
My client has an old site that is using EE 1.6.8. They need to be able to select multiple members from a list to display member field information about them. Before I went and created something using queries, I thought I would ask and see if anyone knew of an existing fieldtype of such thing.

The entry template would be pretty simple. Just a simple copy field with a gallery of employee photos. Only some of the employees will be listed though.

Thanks in advance.


texts:
I'm trying to process a payment with Stripe, but am getting an error after the form submits and reloads.  The error is

"Sorry, there was an unexpected error communicating with the payment gateway."

I did a little digging and dumped out the exception being throw inside OrdersService.php file. The exception message says "The number parameter is required"

Any thoughts what the issue may be?

Thanks!

UPDATE: Here is the code

Checkout Page: https://gist.github.com/bryantAXS/6989698

JS: https://gist.github.com/bryantAXS/6989724 (Token created at line 315)

I can confirm the token is being created and added to the payment[token] field correctly before the page has submitted.

UPDATE 2: I've written a new answer below that is a temporary fix until more clarification or the source is updated.


texts: First Visit Alert And Latest Updates For Non Members

texts:
EE 5.2.6

I'd like to be able to display messages to first time visitors and also show update messages to returning visitors but only show once. They don't have to be registered members.

the Show Once and First Timer plugins are not up to date with EE 5 and the non-plugin option suggested here only works for members who are registered.

Is there any good way that you know to do this or a plugin that handles such things?


texts: Problems with {low_search_search:channel_field} tag

texts:
I have this form

{exp:low_search:form collection="test" secure="no" search_mode="any" loose_ends="yes" result_page="test/"}
    <fieldset>

{low_search_search:region}

{low_search_search_mode}

        Region:
        <select class="span12" name="search:region" id="region">
            <option></option>
            {exp:channel:entries channel="regions" orderby="region_name" sort="asc"}
                <option value="{region_name}">{region_name}</option>
            {/exp:channel:entries}
        </select>

    <button type="submit" class="btn btn-primary">Search</button>
    </fieldset>
{/exp:low_search:form}

I tried choosing a region and then submit it. This form submits it to itself.

But after submission, the content of the first h2 tag above(low_search_search:region) is empty while the second one(low_search_search_mode) is showing "any".

Why isn't "low_search_search:channel_field" working? Is there something wrong that I am doing?


texts: "Word Separator for URL Titles" hidden config variable

texts: Is there a hidden config variable for the "Word Separator for URL Titles" setting? What other hidden config variables remain undocumented in the ExpressionEngine User Guide?


texts: Getting error when inserting details from the event registration page

texts:
{exp:proform:form} could not insert into form: event_registration. After clicking on event registration after entering the details, when I click on "Submit" it is giving error.

URL :

http://www.bethesomebody.org/calendar/primary-families


texts: If I have entry versioning turned on is there any way that I can show details of previous entry versions on the front end?


texts: Expresso Store checkout: How to display custom field if checkout contains a particular category of product

texts:
I need to show a text area custom field inside the checkout>details just if the order contains a product with a certain category ID. How to do it?

this is the scenario:
for example, in my store i sell prints and illustrations.
(prints are shipped by post and illustrations are downlodable only)
if the details page (next step after checkout) contains an illustration (category_id XX) I want to show a text area where customer write down all specs, instructions and comments.

for other products, prints and other common items i don't want to show this custom field inside the checkout page

Please advice me! thank you ;)


texts:
Working with CartThrob and SagePay on a site and get the following error at checkout (after submitting card details):

  HTTP Status Code:  500
  HTTP Status Message:   The request was unsuccessful due to an unexpected condition encountered by the server.
  Error Code :   5006
  Error Description :    Unable to redirect to Vendor's web site. The Vendor failed to provide a RedirectionURL.

Have set up a Valid IP with SagePay. Note this is for dealing with token payments (in recurring subscriptions) and is checking against a test gateway.


texts: Search channel from non 'channel_data' database table in low search

texts:
We are building a plugin that uploads content via a cron and updates the database. However because of the volume of data involved we decided against using the channel data tables, where we have quite a lot of valuable data and created a unique table for it instead.

Does anyone know if it is possible to create a low search collection from data other than that in the channel data table?

Thanks


texts: Using a custom field with the month_links tag

texts:
Does anybody have a way of using the channel:month_links tag (to create a list of links to monthly archive pages) that takes it's date point from a custom date field rather than the entry_date field? I have a channel where the user can enter details of journalistic articles that they have written; one of the channel fields is {publication_date}. I want my month_links to be in the vein of:

Articles published in...

June 2013
July 2013
August 2013
etc

so I need the tag to hook into the publication_date not the entry_date. So far I can't find a way.

I realise that I could insist that users use the entry date field as the publication date, but the downside of that is that I can't change the field name (and 'entry date' is not a good label for the field, it's misleading), nor can I add field instructions.

Any ideas?


texts: Is there a way to block access to member profile pages so only logged in members can see them?

texts:
I've had a few run-ins with that spam attack that is often used against Exp Eng sites which creates endless member accounts for the sole purpose of adding links back to whatever the spammers are trying to promote. The Member's URL in the member profile is used for this.

I'm working on a site that basically locks down everything so that comments and other content are only available to logged in members. Since search engines would not be logged in they wouldn't see any comments and wouldn't see any spam link backs in the comments. Not that this would really dissuade spammers.

I wanted to do the same for Member Profiles so that they can only be seen by other members who are logged in. As far as I know there doesn't seem to be a preference for this. Any ideas on preventing public access to member profile pages?


texts: EE 2.73 Channel Forms and Grid - no documentation

texts:
I'm trying to figure out how to add an editable grid field to my channel form - there is very sparse (i.e. none) documentation for this at the moment.

Basically I just need a logged in user to edit the existing grid field and also to add new rows. However, I don't want all fields to be display, so I need to use a custom_fields type of loop rather than just {field:grid_field_name}.

Even using {field:grid_field} in the form doesn't seem to work very well - I get the 'Add Row' button, but clicking it does nothing at all.

Anyone got this working yet?


texts: Freeform Pro - add required checkbox field to edit form

texts:
Now that I thin k of it, is it possible to add attributes (functions or required classes) to the submit button in a freeform:edit form?
...................

I'm using Freeform Pro's both form and edit forms and need a required checkbox field on the edit form.  Unfortunately I am not having any success.

The architecture is as follows:

user fills in fields and submits form (button is labelled continue)
user is taken to a review form (freeform:edit) where they can update their information.  On this page I have added an additional required checkbox field that needs to be checked  prior to submit.

The problem with freeform is that this field already has a value (n).
What I need to do is remove this value on load of the edit form page and make this field required.

It seems as though the only attr available to add a function is onclick.  Unfortunately, nothing will be clicked.  I need the chaeckbox to be required without anything being clicked.

The reason I set up the form this way is because I want the user to be able to edit their info before the confirmation email is sent.  The confirm email is sent once the edit form is sent.

Is this possible?  I'm assuming it is and that I'm missing something

Thanks

Peter T


texts:
have an MSM site that I’ve just moved from test to production and we’re white screening on the front-end.
I suspected CE Image straight off - commented out my tags and sure enough, the site loaded sans images.
I’ve set 128M for CE Image via the config file and then inside index.php we’ve got

$assign_to_config['global_vars'] = array(); // This array must be associative
$assign_to_config['global_vars']['ce_image_document_root'] = '/home/user/public_html/msm-site/';
$assign_to_config['global_vars']['ce_image_src_regex'] = array();
$assign_to_config['global_vars']['ce_image_made_regex'] = array();
$assign_to_config['global_vars']['ce_image_encode_urls'] = 'no';
$assign_to_config['global_vars']['ce_image_disable_xss_check'] = 'yes';

This works fine on the test server (although we didn’t set the memory limit on test).
Interestingly though, the config file editor in the CP is showing ce_image_memory_limit set at 64 and even changing it there isn’t allowed.
Where’s it going wrong?


texts: Is there any way to add 'save cart for later' functionality to CartThrob?

texts:
I would like to offer customers (who may have complex orders, with cart contents gathered over several weeks) the opportunity to save their cart for later, in order to complete their order on a subsequent visit, or visits. Is there any way to achieve this functionality with CartThrob?

I understand that the wishlist addon allows customers to assemble a list of products which can later be added to a cart, but the likely scenario is that customers have already started adding products to their order, and then realise that they will need to complete it later.

EDIT: it seems that CartThrob actually stores cart data in the DB and sets a cookie to associate user with cart. So perhaps it would just be necessary to modify Cartthrob_session.php to extend the length of the session cookie?

Can anyone confirm?


texts:
I have Channel Images 7.0.0 installed on EE 3.5.16 (MSM). If I go to Channel Images settings I get the following error:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'database-name.exp_channels_channel_fields' doesn't exist:
  SELECT cf.field_id, cf.field_label, ff.group_name FROM (exp_channel_fields cf) LEFT JOIN exp_channels_channel_fields ct ON ct.field_id = cf.field_id LEFT JOIN exp_channels_channel_field_groups fg ON fg.channel_id = ct.channel_id LEFT JOIN exp_field_groups ff ON ff.group_id = fg.group_id WHERE cf.site_id = 1 AND cf.field_type = 'channel_images'

  ee/legacy/database/drivers/mysqli/mysqli_connection.php:122

I have tried contacting EEHarbor (aquired DevDemon), but I'm getting no response. Can anyone shed some light on the cause / solution to this error?


texts: Importing Fields into Field Editor - how?

texts:
I've got Field Editor installed on a new site that I would like to copy/clone fields from an existing site I've built. In the Field Editor CP there's an option to import a field group with a file. This is fantastic, but I can't for the life of me find where to export a field group from an existing site.

The docs for field editor are rather sparse and not helpful in this case.

So is there a way to export field groups from one site to a file and then use field editor to import them into a new site?

New site EE 2.5.3 existing site EE 2.2.2 but scheduled for upgrade to 2.5.3 in the next day or two.


texts: After Upgrade, Matrix Not Displaying Content

texts:
I have a fairly simple site set-up for a client and we're using Matrix to display images like a photo gallery. It's always been fine, but after upgrading her to EE 2.6.0, and Matrix 2.5.4, as well as CE Image 1.4.3 (all the latest versions), the content is no longer displaying. It just shows... nothing. Well, it shows the body field and the title, but it doesn't display the Matrix portion.

To troubleshoot, I've reinstalled the add-ons more than once, I've checked the code (it's been unchanged), I've checked the post that calls the images, everything is just as it has always been. I've gone into the Fieldtype to activate the upgrade, I've checked the channel field to ensure everything is kosher. All seems to be just as it should be. But still... nothing.

Here is the code:

{exp:channel:entries channel="photos" rdf="off" disable="paginate|trackbacks|member_data"}

{title}

{body}

    {gallery}

{exp:ce_img:pair src="{photo}" max="500" height="100" width="100" crop="yes|top,center|0,0" allow_scale_larger="yes"}

{/exp:ce_img:pair}

    {/gallery}

{/exp:channel:entries}

I'm not sure what else to check? Any thoughts?  Thank you in advance!

UPDATE!  So, the trouble seems to be with the image, specifically. I was able to get other fields in the matrix to display, just not the "file", which is how the image is added. All the folders are set to 777 and they have a folder assigned to it in the channel fields settings.


texts: Expresso:Store - Undefined Property on checkout

texts:
I've just doing some final tests before go live and when I complete at the checkout I receive the following error:

A PHP Error was encountered
Severity: Notice
Message: Undefined property: EE::$template
Filename: libraries/store_emails.php
Line Number: 68
Fatal error: Call to a member function parse_variables() on a non-object in ~/expressionengine/third_party/store/libraries/store_emails.php on line 68

The order completes - as far as to say it's in the CP orders page, but clearly the email function is failing and preventing usual redirect.

All other emails (HTML / Plain Text) work fine, the email debug passes.

I've replaced the default email template with simply {order_id} and again with just 'test' to rule out any conditions - and I still get the same error.

EE - 2.5.5 / Store -  1.6.2 / Payment Gateway - None


texts: Use WYGWAM "site page" links in a multilanguage environment

texts:
I have a multilanguage site with wygwam and the client is making extensive use of the "site page" links. for the multilanguage part i use "multi language support" by biber ltd.

Now i have a bodytext-field setup for every language and the switch is working just fine but the links generated inside wygwam do not consider the currently selected language.

In order for this to work i would have to somehow squeeze in the {language_code} into the by wygwam generated urls. is there any way?

[EDIT]

My initial idea to setup a specific baseHref for each language doesn't work. Maybe there is a way to do a find and replace over the whole bodytext? I'll get back to you.

[EDIT 2]

I endet up using "replace plus" to find the page-links and insert the language_code to the url. Quite simple and works fast.


texts: Is there a good eCard/eVite Solution available?

texts:
For several years I have been using this simplEcard solution for a site and this year it appears that the gap between the last update to the solution and the 5.2x version of PHP has grown too wide and generates a number of PHP error.

Is anyone aware of a good eCard solution that could be integrated with EE?

Thanks.


texts: Using switchee to redirect to 404 if no category exists

texts:
I'm interested in redirecting to a 404 if no category exists at the URL, for example if category xyz doesn't exist at; mydomain.tld/shop/category/xyz

I'm using Switchee and a case value for category as follows;

{exp:switchee variable="{segment_2}" parse="inward"}
    {case value="category"}
        {!-- Redirect to 404 if no category exists here --}
    {/case}
{/exp:switchee}

Wondering if anyone knows how to do a redirect here if a matching category is not found?

Thanks.


texts: EE 1.7.0 cookie and login issue (disallowed key characters)

texts:
Quite out of the blue on a client site running 1.7.0, all pages loaded after the initial visit rendered the dreaded "Disallowed Key Characters" message.

Upon some investigation, I determined it was the exp_tracker cookie that was triggering this. Its value is being set to a%3A1%3A%7Bi%3A0%3Bs%3A5%3A%22index%22%3B%7D (as an example), which is not passing the Input class' clean_input_keys() function, triggering the error.

So, why this crazy value for the exp_tracker cookie, and why all-of-a-sudden? It continues to get set like this. For now my fix is to comment-out the filtering of the $_COOKIE array.

But, possibly related, I can also no longer login to the control panel - with or without the cookie filtering removed. I log-in, my session ID is set, but I just immediately return to the login screen, no error.

Are these related? Anyone seen this before?


texts: Is this a good use for the redirect tag?

texts:
How does Google view the redirect tag, e.g:

   {if segment_4 == ""}
        {exp:channel:entries limit="1" entry_id="{segment_3}" disable="categories|category_fields|custom_fields|member_data|pagination"}
            {redirect='forum/answers/{entry_id}/{url_title}'}
        {/exp:channel:entries}
   {/if}

For example I could redirect:
site.com/forum/answers/123 to site.com/forum/answers/123/what-is-a-dog and have link rel="canonical" href="{path='{segment_1}/{segment_2}/{segment_3}/{segment_4}'}" on the template.

What will Google make of site.com/forum/answers/123, or will it never see it?

Perplexing...

Thanks.


texts: Settings in Admin get dropped, will save temporarily, hours later are reset/gone

texts:
I have a situation on my development site, where all of a sudden lately, some things I save in the admin, aren't "sticking" around.

Some of the settings that won't stay:

Template routes: I will set up some routes, they'll work for a while, hours... and then I'll start getting 404's when trying to access these routes. I go back into the admin and my routes are suddenly gone.

Structure settings in entries: I'll assign a template to an entry, again this will work fine for a while, hours etc, and then suddenly I'll start getting 404's for these entries. I go back to the entry and the template is no longer assigned to the entry.

Template settings: I'll set php settings to "Yes" and parsing to "input" - php will be working fine in my template, and then a few hours later, BOOM the settings are back to the default.

I have verified with our sysadmin that the DB looks in good shape, and we're not seeing any php or other errors. I have debugging on etc.


texts: Embed variable as from or to date. Should this work

texts:
EE2.9.2, Low Nice Date 2.2.1

Main template:

{exp:zoo_visitor:details}
{embed="applications/_author-application-list"
    memberDob="{cf_stual_date_of_birth timezone='Europe/London'}"
    courseStartDateUnix="{exp:low_variables:single var="lv_course_start_ba_mt" format='%U'}"
    minimumAge="{lv_course_min_age_ba_mt}"
    }
{/exp:zoo_visitor:details}

{cf_stual_date_of_birth} is a DropDate custom field - Value: 5th March 1998
{lv_course_start_ba_mt} is a Low variable Time Date field - Value: 30th September 2015
{lv_course_min_age_ba_mt} is a Low variable text field - Value: 21

I'm using an embed for other reasons. I've stripped lots of stuff out for this example.

Embedded Template: applications/_author_application_list

{exp:low_nice_date:range from="{embed:memberDob}" to="{embed:courseStartDateUnix}"}

{years} / {embed:minimumAge}

    {if "{years}" >= "{embed:minimumAge}"}

YES

    {if:else}

NO

    {/if}
{/exp:low_nice_date:range}

This returns:

17 / 21

YES

So it seems like the embed variables are working as the to and from values in the Low Nice Date tag but not in the conditional. Should this work? Is this a parse order issue? Any idea for a workaround?

I have tried using the CC Time Difference add-on as well but I ran into some other issues with that. This is the closest I've got to a working solution.


texts: How can I tell if Cartthrob's extload.php is being invoked (and what it outputs)?

texts:
I'm having terrible trouble getting an updated EE2.7.2 / CartThrob 2.4 MSM site to integrate with Sagepay (Europe Offsite). Every time I try to go out to sagepay from the checkout page, I'm returned to my order_complete template with an error:

  3011 : The NotificationURL format is incorrect

I think I've configured extload.php correctly (when I request it in the browser, I don't get any errors, and I've set the system path absolutely).

I really need to see what notification url is being generated (if any) so that I can debug from there, but I don't know if the payment gateway plugin is invoking even extload.php or not. The payment notification function references it (function extload($post)), so I was working on the assumption that it was using it, but I don't know how to confirm.

I've tried using LiveHTTPHeaders to watch what goes out, but it's not very helpful. I can't see any mention of notificationurl.

So my question is in the title - how can I tell if extload is being invoked or not (is it simply that I'm getting an error from sage and so it must be?) and if it is being invoked, why is my notificationURL malformed/incorrect?

In my cartthrob form I have return="customer/checkout/order_complete" - which is where I'm taken to straight after submitting my checkout form. This is where the error is displayed - so I must be sending something out to sage?

EDIT! One MSM site (site_id 1) is going through to sage
The primary site goes through to the sage server, the second site gives the error. They both use the same payment gateway plugin, the checkout and extload.php code is identical for both (aside from the msm settings in each extload.php, which is all good). Even the POST data that goes out is the same (as far as I can see - it's all structured in the same way and all of the fields are present). So now I'm really wondering what it can be! It's got to be something simple that I've missed, but everything looks right...


texts:
Recent conundrum. Building a site that will only ever show 1 entry at a time on the homepage. I want to be able to show prev/next entry links but can only do that on an entry level template (site/my-url-title).

I know I could probably use Structure but would rather not.

Here's a good example of what I'm trying to achieve http://thegreatdiscontent.com/


texts: EE 2.2.0 | Entry page layout is messed up for one specific channel

texts:
This is totally weird to me but a new channel I made last week now looks all messed up when you go to make an entry with the channel:

Basically, the toolbar is destroying the page.  I click show toolbar, and an empty space slides in on the right, where it should be.

What causes this to happen?
How is this fixed?
How is this prevented?

Thanks!


texts: Cartthrob: {item_subtotal:plus_tax} rounding problem / CT calculating wrong

texts:
I know, this topic or related problems have been covered a lot in the past.

We are having problems with {item_subtotal:plus_tax} calculations in the case of having a quantity greater than 1. We are having those problems for a quite some time and I always shyed away from trying to fix it (made a couple of attempts but could never find a way through).

Now we had an order where the discrepancy between what should be calculated and what has been calculated is 2 cents (Euro). It's not much but the accountant has to make an extra step and the invoice we send the customer just doesn't fit his order.

So, we are runnning EE 2.7.3, CT 2.5 and I have these settings:

Tab Global:
Decimal Precision: 2
Round Decimals to Nearest: .01 (standard)

Tab Taxes:
Tax plugin: Tax by location - Percentage
Tax 19% - Country Germany - Tax Shipping: Yes

Tab Shipping:
Shipping plugin: By Location - Price Threshold
Location: DEU - Rate: 4.12 - Threshold: 74.78

Generally we enter all prices net (without tax) and let the software do the tax calculations.

The order in question contains this product:

 product A
 net price: 22,65

The cart looks like this:

 Product A | Quantity 3 | {item_subtotal} = 67,95 | {item_subtotal:plus_tax} = 80,85

In my opinion this is where the problems stem from: the item_subtotal:plus_tax calculation.

CartThrob calculates like so:

26,95 * 3 = 80,85

where it should calculate:

22,65 * 3 * tax (in our case 1,19) = 80,86

I believe the calculation is done in 2 steps or something because I don't know where or how CT gets the 26,95 from because even if I calculate like this:

 (22,65 * 1,19) * 3 = 80,86

I am not sure why nobody else has had this problem or if taxes are being calculated differently in other countries or not. For us at least it's wrong and I would like to fix this without hacking the core.

I am still hoping to have somehow overlooked something, so I'd be happy for any head-ups.

Thanks and Cheers.


texts: I updated Wygwam to the most recent version (3.3.3) and now the icons in the toolbar all got messed up. I tried re-uploading the themes folder, and emptying the cache, but no luck so far.


texts: Updating Freeform Pro to 4.1.7 gives undefined property error

texts:
I just performed an update to Freeform Pro going from version 4.1.3 to 4.1.7. After the update all pages where I've embedded a form I'm getting the following PHP Error:

Message: Undefined property: stdClass::$csrf_name

Rolling back to the previous version fixes the issue. Is there something I need to change in how I add composer templates? Below is an example of one I use:

{exp:freeform:composer
    form_name="contact_us"
    composer_template_name="default_calvary_forms"
    return="new/contact_us?return=success"
    inline_error_return="new/contact_us"
    inline_errors="yes"
}

I'm running this on EE version 2.7.3.


texts: PHP string fun does not evaluate unless var is used elsewhere in template

texts:
I'm trying to use the PHP String fun plug-in to evaluate whether a current entry belongs to a specific channel and then show/hide a register prompt depending upon that. So I have a snippet:

{sn_content_channels_closed} = "content_guides|content_videos|content_white-papers"

Then the channel in question is "content_white-papers", however the template code below fails to return TRUE 'unless' I place the {channel_name} variable somewhere else in the template in addition to here:

{if '{exp:phpstringfun function="substr_count" par1="{channel_name}"}{sn_content_channels_closed}{/exp:phpstringfun}'=='1'}

Of course I could do that but I'd like to understand why this doesn't work, Parse order... EE WTF... something else?


texts:
We're using User to manage member profiles for a training academy. Members update their profiles in templates utilizing the user:edit tag.

The client would like to receive notifications whenever a member updates their profile.

I see Profile Update Admin Notification Template in the User settings, but I'm not sure how it's supposed to work. I've added an email address in the field above it, and I've placed this code in the field, but am not receiving any notifications (I've confirmed that other email notifications are being sent):

Date updated: {update_date}
{changed}
   {award_name} // I also tried {name} per the instructions
   {value}
{/changed}


texts: Matrix - how to "Populate the menu from another channel field"?

texts: EE's native Select Dropdown field has the option to "Populate the menu from another channel field". I'm using Matrix and the P&T Dropdown field. It doesn't have the option to "Populate the menu from another channel field". I want to populate the list from another channel field. How can I do this?


texts: Expresso Store: Add a custom weight to a Product Modifier

texts:
My client sells Small, Medium, and Large sizes of many products that vary dramatically in weight, and can make a significant difference in shipping cost.

CartThrob Price modifiers allowed me to add columns for things such as "Weight", which I could then pass along as a hidden field when adding the product to the cart. Do Expresso Product Modifiers allow anything similar?


texts: Channel Entries - Structure / Categories / URLs

texts:
I've spent so many hours trying to work this issue out. Aggravating. I have a channel "Baler", this channel has various categories and these categories have sub categories. eg:

Balers
 - Parent Category
   -  Sub Category
   -  Sub Category

I would like to display the content for each page based on the last segment of the url. In order to do this do I need to create a structure page for each category(even though when I create a category it is assigned a URL)

Right now my code looks like this:

{if freebie_2 != "" && freebie_3 == ""}

    {exp:channel:categories
        channel="{freebie_1}"
        style="linear"
        category="{last_segment_category_id}"}

        {if {parent_id} != 0}

{category_name}

        {/if}

    {/exp:channel:categories}

{/if}

{if freebie_2 != "" && freebie_3 != ""}

    {exp:channel:entries
        channel="{freebie_1}"
        category="{last_segment_category_id}"
        paginate="bottom" limit="20" dynamic="no"}

{title}

    {/exp:channel:entries}

{/if}

The main issue is, that if I have to add in 500 categories and sub categories, do I need to create all of these as structure pages also? Any help or guidance would be really appreciated.


texts: Expression Engine 2.7 FreeForm Hidden Captcha

texts:
My client has just come back to be with a new requirement to not use the EE captcha functionality and instead implement a hidden captcha.

Is this possible with freeform, if not how would you tackle it?

I have done some research but I cannot find anythign with regards to a hidden captcha and freeform.

Thanks in advance


texts:
I have recently starting having an issue in which the submit entry has begun to take between 10-20 secs to publish.This has happened over the last few weeks and Im no sure whats going on .Looking at it in firebug the post element seems to wait for the period of time before it completes. I recently upgraded to EE2.8.1 but this problem existed before and still happens now the upgrade is complete.

This seems to happen across all channels no matter what fields exist in them .I setup a test channel with a field set with just a text box but the same issue occurred so it doesn't seem to be a issue with an individual plugin.

Thanks for any help

Brian


texts:
I continue to get a search path error when using Simple Search. Yes, I have a search/results template, and I have tried hard coding the search/results path into Simple Search.

I've checked the Add-On Manager and I do not see that the Search Module is installed. I can't tell from the documentation whether this module is something that would be displayed in the Add-On Manager, although I would imagine it would be.

Basically two problems:

Search path error when using Simple Search
No evidence the Search module is properly installed

These things suggest the module is not properly installed. Can someone yield some insight?


texts: Set item pricing based on incoming (referer) URL

texts:
I am working on a site that sells books. There is one book that should be discounted for students of an affiliated college program. However only active students in the class can have access to the pricing. The desired scenario is:

website someclass.edu has a page someclass.edu/getbookcheap
this page is limited to current students only (behind a log in)
that page has a URL to a landing page examplebookstore.com/getbookcheap
that page will show the reduced price for the book
users who try to access example bookstore.com/getbookcheap from anywhere but someclass.edu/getbookcheap will get redirected to the page for the book where it is listed at full price

my questions:

what is the best way to implement this using CartTHrob (shopping cart used)? I could use a coupon code, but those are global and not item/page specific. We could list the book twice, the second being only listed on this special landing page.
are there any EECMS methods of limiting traffic based on referer? Would we have to use htaccess?

It must work if the buyer is not logged in or logged in. Limiting access based on member group is not an option at this point.


texts:
I am trying to check if a variable exists, and render it only if it does.  Using the code below, the "{if facebook_content..." etc renders to the screen, curley braces and all, rather than actually checking for this conditional.  Its like it doesn't get processed at all.  Why is this happening and how can I actually do this?

    {exp:stash:get_list name="st_facebook_feed_list" parse_tags="yes" process="end"}

                        {if facebook_content != ''}
                            {facebook_content}
                        {/if}

    {/exp:stash:get_list}


texts:
We are using Freeform to allow users to apply for jobs, and we want to be able to allow them to send attachments (restricted to pdf or docs only).

How does Freeform handle multiple files with the same file name? If more than one person uploads a file called "resume.pdf", for example, does the newer one overwrite the old? Or are the files sorted in such a way as to prevent this type of situation?


texts: Closing relationship tag displays when no relationship found

texts:
I have the following code in my template, which displays articles that have been tagged as 'related' through a relationship to the current article being viewed:

{exp:channel:entries channel="blog_entries" require_entry="yes" url_title="{segment_3}"}
{related_articles}

   {if related_articles:count == 1}

Related Articles

   {/if}

{related_articles:title}

   {if related_articles:count == related_articles:total_count}

   {/if}

{/related_articles}
{/exp:channel:entries}

This works fine for articles that have a relationship set up. My problem is that on articles that do not have any related articles set up via a relationship, the closing {/related_articles} tag is displayed in the page render. What am I doing wrong here?

EDIT: Here are some screenshots indicating the results I am getting.

Here is a test blog post that has a related article:
http://i.imgur.com/AuEh1TG.png

And here is a test blog post that does not have a related article:
http://i.imgur.com/sZ87zf8.png


texts:
I have multiple channels with different field groups, but several duplicate fields. For example:

Channels:

products_bikes
products_skateboards
products_trikes

Fields:

bikes_summary
skateboards_summary
trikes_summary

I use the same detail template to output info for all of the channels, but with the duplicate fields, I have to repeat the "summary" field 3 times:

{exp:channel:entries
    channel='products_bikes|products_skateboards|products_trikes'
}
    <h1>{title}</h1>

    {bikes_summary}
    {skateboards_summary}
    {trikes_summary}

{/exp:channel:entries}

And this isn't the only field that's repeated. So that can get pretty hairy, especially if I need to check if a field is empty or not, or if I want to add another product type in the future.

So ideally I'd be able to set a channel prefix, and use it in a single field tag:

{{channel_prefix}_summary}

I can't use the channel_short_name because it doesn't match up, so I figured Stash might be able to do it. I tried:

{exp:stash:channel_prefix}
    {if channel_short_name == 'products_bikes'}
        bikes
    {/if}
    {if channel_short_name == 'products_skateboards'}
        skateboards
    {/if}
    {if channel_short_name == 'products_trikes'}
        trikes
    {/if}
{/exp:stash:channel_prefix}

{{exp:stash:channel_prefix}_summary}

But that output the text "{bikes_summary}" rather than parsed the field tag. I figure parse order has to do with it, but I'm not sure how to fix it - or if it's possible.

Thanks for any help!


texts: Problems with SafeCracker File field within Matrix

texts:
I am using EE 2.5.3 with Safecracker File fieldtype 2.1 and Matrix 2.5

I am having problems with a Safecracker form which has a matrix field containing a safecracker file upload field. I am using display inline for error messages.

1) If I upload an invalid file, no error message is triggered and the form submits.
e.g. When I upload a non image file to an image only location, the form submits without error but the non image file is not uploaded.
e.g. When I upload an image larger than the max dimensions set, the form submits without error and the image is actually uploaded despite being larger than allowed.

2) If the form is submit with an error with another field in the form, the inline errors display and the other field values persist as expected but the safecracker file fields in the matrix just say Array and the files are lost.

If I just use a single Safecracker file field outside of Matrix, I do not have either of these problems, so it definitely seems to be Matrix related.
I am posting here because I understand this is now the primary support channel for Pixel and Tonic.


texts: Exp-resso Store: how to display items with no price? How to set price on the fly?

texts:
I have a channel for my products (items) and I want some of the entries there to not specify a price (meaning, leave the price field blank). When I loop through my items entries, it doesn't display those items where the price field is left blank:

{exp:channel:entries
    channel="items"
}
    {exp:store:product
        entry_id="{entry_id}"
    }
        {if '{price}' == ''}
            nothing
        {if:else}
            {price}
        {/if}

        <h1>{price}: {length}x{width}x{height}</h1>
    {/exp:store:product}

{/exp:channel:entries}

The reason I want to leave the price field blank is because I want to set the price of some items in the template. A lot of the items for sale won't have a set selling price. Rather, there will be a set profit margin added on top of the item's cost based on the item's category (and these profit margins per category will change from time to time).

So, the questions:

How do I display items that have a NULL price? If this is not possible, I guess I can just set it to any number less than 0 and consider that the case when I should set the selling price on the fly.
How do I set the price of an item on the fly?


texts: Multi Language - Transcribe channel entries page URI

texts:
How to set same page URI on page channel entries but shown in different language?

For example i have a 'contact' page entry which will shown as:

http://mysite.com/en/contact

and

http://mysite.com/nl/contact

how to set 'contact' page URI? because i've tried and EE mark it as error, i think because it should be unique.

but i know some site using EE transcribe and they can do it

currently i don't use channel entries for this page, but using template group

but then i wonder if my site will available in many languages, i have to create many template group and i am afraid if this page will not manageable easily

thanks,


texts:
I am thinking of using EE to create a client portal site.  Each client will have access to documents and information (such as contracts and expiry dates etc).  Obviously there is a key desire to have permissions in place that only allow logged in users from the specific client to have access to the documents.  This would extend to not having a link to the documents for download that can be used shared / discovered by an external party but can only be accessed by logged-in users with that level of permission (so it might be that within a given client we need different levels of permission - you might not want a support person to see a pricing document for example, but they may need to see a support agreement).

My question is whether or not there is a well established design pattern for EE that would allow this type of portal to be easily created using pretty much "off the shelf" EE and add-ons?

Thanks in advance!


texts: Champagne 2 - Fatal error: Call to a member function was_successful() on a non-object

texts:
Recently I've installed and configured the champagne 2 module from Chris Newton(http://devot-ee.com/add-ons/champagne-2) everything worked fine but when I wanted to send my new campaign I did get a PHP error.

  Fatal error: Call to a member function was_successful() on a non-object in ..\system\expressionengine\third_party\champagne\mcp.champagne.php on line 461

When I var dump the $result var from line 461 it will say it's a (boolean)FALSE

Does someone has a solution?


texts: Country Code Not Being Saved in Orders Channel

texts: I'm trying to get the country code for for an order to be saved in the orders channel. Currently, I have a step in the checkout process which uses the {exp:cartthrob:save_customer_info_form} tags to collect the customer's shipping info. Most of this information is somehow, in a way I don't understand, getting saved for each order (in the orders channel). That's exactly what I want but unfortunately the country code is not being saved with the rest of the address. How would the country code typically be saved to the orders channel and is there anything that I should check to see why it hasn't?


texts: CartThrob {exp:cartthrob:cart_items_info} extremely slow

texts:
I have a new CartThrob installation on EE 2.9, everything seems to be working just fine
apart from when I use {exp:cartthrob:cart_items_info} in my cart template.

Without that tag the page loads in 1/2 seconds, but with the tag in place the page loads after about 20-30 seconds. This delay gets worse if there are more items in the cart.

I have taken a look in mod.cartthrob.php that holds the cart_item_info function in order to try and pinpoint some way of improving the speed.

Surely these load times aren't to be expected?

Here's the snippet from the Template Debugger which shows the time jump...

(0.271300 / 2.43MB) -> Class Called: Cartthrob
(0.276118 / 2.44MB) -> Method Called: cart_items_info
(11.682038 / 3.55MB) -> Data Returned
(11.682083 / 3.53MB) - End Tag Processing

Any help anyone could give me would be greatly appreciated.

Edit:

I have stripped out everything else in the template, leaving just the following:

{exp:cartthrob:cart_items_info}

{/exp:cartthrob:cart_items_info}

Even with just this code the problem still persists.

Debugging the call stack a little more the cart_item_info() function in mod.cartthrob.php appears to run relatively quickly until line 3402: $return_data = $this->EE->template_helper->parse_variables($data);

This is where the delay seems to be.

Edit 2:

Just to ensure nothing had gone wrong with the original installation and setup, I have just done another fresh install of both EE and CartThrob. The cart still loads just as slowly using the default sample templates provided by CartThrob.


texts: Possible to compress images to be not larger than certain size?

texts:
That title might be a little confusing (sorry) but I'm using Channel Images to run some galleries; the client is giving me jpegs that were saved at highest quality, so they are too large (about 1-1.5MB each). CI can compress all the images at a specified rate, but what I'm looking for instead is a variable compression rate, so that images will be saved at the highest quality that keeps them under 200kb (for example).

In other words, I want the images compressed to the point that they reach 200kb, and not more: highly saturated images would therefore be more compressed than simple images.

Any ideas on how to achieve this? I'm trying to make things a little simpler for one of my clients.


texts: Source image upload location for Krea Content Elements

texts: I'm using Content Elements and would like to have some control over the file upload folder which a content elements gallery field is associated with. Is this even possible? Seems like a bit of an oversight if not... :/


texts: Viewing a published post in which its status is not open

texts:
I have created a custom status which is titled "Completed". The application I am building allows for users to view courses they have attended or our attending in the future. All upcoming courses have a status of open and all courses that have been attended have a status of Completed.

I can only view posts that have a status of open, I am getting a white screen each time I try and view a post with the Completed status. If I change the status to open the post displays. Can anyone tell me if this is normal and is there a resolve for this?

Thanks


texts: Navigation: A channel per section, a template group per section, or both?

texts: What is the best practice for creating a site that will have a number of main nav sections along with sub-sections? Do you create a channel per section, a template group per section, or both? If it helps, I'm planning to use Taxonomy--I don't know if this would change the answer.


texts:
Maybe I'm overseeing this, but I can't see to work it out.
Customer asks me if it's possible to add items to the cart even if there's no stock.

At the moment an error is generated, saying out of stock.

Any idea if this is somehow possible?


texts:
I'm troubleshooting a problem with an older, rarely updated site, so I'm not sure how recently this issue cropped up, though I'm fairly certain it worked when I handed it off. We have a Low Variable set as a Wygwam field using Assets for images. When we use Asssets to insert images into the field, we get an img tag with an src like this.

{assets_795:http://domain.com{filedir_5}1382581981.jpg}

Any idea what's going on there?

EE 2.7.2
Wygwam 3.2.2
Assets 2.2.2
Low Variable 2.4.0

UPDATE: It just occurred to me that the EE server this site lives on (which is multi-site) has had these add ons updated since I built the site, though I'm not sure how relevant that is to this particular issue.


texts: Can't edit entry created by another user after update to EE 2.7.3

texts: After updating to ExpressionEngine 2.7.3 from ExpressionEngine 2.5.5 I get a "You are not authorized to perform this action" form error when attempting to update an entry created by another author. After turning on every option available in the member group that is attempting to make the edit I then get another error when attempting to edit the same entry "The selected author is invalid".


texts: Low Yearly Archives - Select year from a drop-down menu

texts:
I would like to create a yearly archives for my blog in this format:

A drop-down menu with all the years, with the current year selected. When a year is selected, it show up a list with all the months that have entries in that year. When another year is selected, the months list change automatically, and so on.

I used Low Yearly Archives with this format:

<select name="year">
{exp:low_yearly_archives channel="blog" start_month="1" status="not closed" sort="desc"}
<option value="{year}">{year}</option>
{/exp:low_yearly_archives}
</select>
{exp:low_yearly_archives channel="blog" start_month="1" status="not closed" sort="desc"}

{months}

{month_short}

{/months}

{/exp:low_yearly_archives}

How can I show only the months related to the year selected?

I thank all those who can help me.


texts: FIlter entries by category without refreshing the page

texts:
I have a page that displays all entries in a "stories" channel. Each story is categorised and I need there to be an option to filter by these categories. Here is the code I currently have:

    Filter stories by:
    {exp:channel:categories channel="stories" style="linear" show_empty="no"}
        {category_name}
    {/exp:channel:categories}

{exp:channel:entries channel="stories" dynamic="off"}
    <aricle class="story{switch='|| end'}" style="border:1px solid #000;width: 32%; float: left;">

{categories}{category_name}{/categories}

{title}

        {story-text-1}
        read more
    </aricle>
{/exp:channel:entries}

Currently the list shows all the stories - which is how I want it to be by default, but how would I go about making the filter work. Ideally I want to click one of the category name links and it will only show the stories in that category without refreshing the page (using AJAX I assume?).

I've never used AJAX in ExpressionEngine, can I add to the channel entries tag with it or is there a different way to achieve this?

Thanks in advance.


texts: Change status of an exp-resso store entry using safecracker

texts:
On a website/webshop running EE 2.5.5, and Exp-resso store 1.6.2 i'm trying to simplify the stock keeping process. I'd like to close an entry with a safecracker form.

For test purposes i created a new, blank template with only the following code:

{exp:safecracker channel="products" return="" entry_id="{segment_2}" }

<select name="status" id="status">
    {statuses}
            <option value="{status}"{selected}>{status}</option>
    {/statuses}
</select>

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

{/exp:safecracker}

I change the status, press "submit" and get an error:

  A Database Error Occurred

  You must use the "set" method to update an entry.

  Filename: third_party/store/models/store_products_model.php

  Line Number: 315

  « Back

The strange thing is: the status does change, so i'm not sure why i'm getting this error.

Inside the store_products_model.php the lines around 315 look like this:

I want to change the status on the front end using safecracker, error free. What should I do?

A workaround question might be:

How can i change the status without triggering the store_products_model?


texts: Editing entries with Channel Form not working

texts:
I've created a bunch of simple entries for a channel, and I'd like guest users to be able to edit the entries.  The entries are all on the index page, since this is a one-page site.  No matter what I try, my Channel Form will not update the entries.  This is basically straight from the docs, but submitting the form doesn't change any of the fields.  Here's my code:

{exp:channel:entries
 channel="products"
 disable="categories|member_data|pagination|trackbacks"
 dynamic="no"
}

<img src="{product_image}" class="pure-img">
    {exp:channel:form channel="products" return="product/index" url_title="{url_title}"}
 <input name="title" type="text" value="{title}">
 {field:product_description}
 <input type="submit" value="Submit">
{/exp:channel:form}

        {/exp:channel:entries}

Thanks for any help!


texts: How to link JS in template files ala CSS?

texts:
I like this feature for linking CSS within the templates:

<link href="{stylesheet='styles/main'}" rel="stylesheet">

The great thing about this is that it does versioning automatically, which means I don't have to worry about old styles being cached, or trying to rename my CSS files, etc.

Is there a way to do the same for JS files? Right now, I do this:

<script src="{path="scripts/main"}"></script>

It doesn't do the versioning thing.


texts:
I'm updating an EE1 site to v2, but first I need to get it set up on my local server. The homepage and control panel are working great, but every URL on the site displays the homepage template.

Not sure what additional information would be useful here, please let me know and I'll post it, thanks!

EE 1.6.8
Structure 1.3.1


texts: Render/Submit multiple channel entries on one page

texts:
I'm looking to render a list of channel forms of the same page.
So something like this:

{exp:channel:entries
    channel="my_channel"
    limit="5"
}
    {exp:channel:form
        entry_id="{entry_id}"
    }
        <input type="text" name="custom_field" value="{my_value}">
        <button type="submit">GO!</button>
    {/exp:channel:form}
{/exp:channel:entries}

This does show the forms but I can only submit the first one because all the form tokens are the same and as soon as it has been used, it can't be used again.

Also, it's very heavy to load.

Even more ideal would be to have one submit button and one form wrapping all entries.


texts:
Weird one - haven't seen this before. Just launched a newly upgraded from ee1 to ee2 site at www.bankofmarin.com. Everything works fine. This is a Structure site and I have strict URLs on to enforce 404 with bad URLs. Works fine.

We need to place some non-ee php files in the root, and they just aren't working. This one https://www.bankofmarin.com/t.php should show the date. Instead I get the 404 page.

Here is my htaccess:

# Enable Rewrite Engine
# ------------------------------
RewriteEngine On
RewriteBase /

# Use Dynamic robots.txt file
# ------------------------------
RewriteRule robots\.txt /robots.php [L]

# Force the www - this version will not force www on subdomains, only http://bankofmarin.com
# ------------------------------
RewriteCond %{HTTP_HOST} ^bankofmarin.com [NC]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

# Force https - this will only force https on the www site
# ------------------------------
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} !^dev\.
RewriteCond %{HTTP_HOST} !^staging\.
RewriteRule ^(.*)$ https://www.bankofmarin.com/$1 [R=301,L]

# Redirect index.php Requests
# ------------------------------
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{THE_REQUEST} !/admin/.*
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,L]

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

I thought it might be something in there but its all pretty straightforward. Any ideas?