texts:
I’ve got the following site structure, but I’m not sure how to manage the grouping/categories.

I know that the articles are my only channel, and categories would normally be easy to work out, but I can’t figure out how to make it work with markets and languages.

Any advice would be appreciated!


texts: Member Categories Check and "Stashing" the Results for Later

texts:
I’ve got a page where I’m posting links to the groups that a user has access to based on Member Categories.  Before, I just used the {exp:member_categories:categories} loop and it worked fine, but there was no organization to the way the list was displayed and it was just a long random list of links.  So I’m trying something different and running a separate {exp:member_categories:check} for each of the categories, broken down into logical groups.  Not the most efficient, I know, but it’s only on one page (and I can technically cache it when it’s done).

Anyway, the only problem is that I can’t give a single “you do not belong to any groups” if they don’t belong to any groups.  If I do a {if no_results}, then I get that for each category that it checks.  And I don’t really want that.

I was going to try to use Stash to set some sort of value to an append_list, then check that at the end.  However, it’s not working.  I have tried both of the following, setting a value of “1” so that I could check for “is_empty” later.

{exp:stash:append_list name="group_list" process="end"}
    {exp:member_categories:check category_id="113"}

Sample Group

        {stash:item_link}1{/stash:item_link}
    {/exp:member_categories:check}
{/exp:stash:append_list}

and

{exp:member_categories:check category_id="113"}
    {exp:stash:append_list name="group_list" process="end"}

Sample Group

        {stash:item_link}1{/stash:item_link}
    {/exp:stash:append_list}
{/exp:member_categories:check}

I’m not sure if this is even possible?  Or are there any other options?


texts:
I'm using preload replace to show a specific entry for a user, but the variable always displays the first option in the list. What am I doing wrong?

{exp:user:profile} {categories group_id="5"} {category_body}

{if {category_id} =="10"}{preload_replace:entryId="10"}
{if:elseif {category_id} =="11"}{preload_replace:entryId="9"}
{if:elseif {category_id} =="8"}{preload_replace:entryId="8"}
{if:else}{preload_replace:entryId="7"}{/if}

{/category_body} {/categories} {/exp:user:profile}


texts:
Is there a reason the edit_date in exp_channel_titles isn't in Unix time format?

I need to display the last edit date of a section of a website so I'm doing a simple query

{exp:query sql="SELECT title, edit_date FROM exp_channel_titles
                 INNER JOIN exp_structure using(entry_id)
                 WHERE (exp_structure.channel_id ='4' OR parent_id ='13')
                 ORDER BY edit_date DESC LIMIT 1"}
       {edit_date format="%d%S %F %Y"}
{/exp:query}

However the edit date seems to be formatted in a non unix timestamp. Is there a specific reason for this?

/system/expressionengine/libraries/api/Api_channel_entries.php is set to

'edit_date' => $this->EE->localize->decode_date('%Y%m%d%H%i%s', $this->EE->localize->now, FALSE),

Should this be

'edit_date' => $this->EE->localize->decode_date('%U', $this->EE->localize->now, FALSE),

?

Using EE 2.5.5

EDIT - reason for asking

I ask because my outputs do not format correctly:

Eg; edit_Date of 20130111181835

Last Updated - {edit_date format="%F %d, %Y"}

outputs -

  Last Updated - October 30, 639867

I've since tried priting the edit date of a normal post and it still it not formatted correctly. I will go check my settings...


texts: Cartthrob no longer sending email notifications after EE/CT upgrade

texts:
I've recently upgraded EE from version 2.7.3 to the latest 2.9.2, and CartThrob similarly from 2.3.6 to the latest 2.6.1.

All functionality seemed to be fine, aside from my SagePay checkout, which initially fired a 5006 error. I narrowed this down to an issue with extload.php (commonplace!) which I amended by utilising my old extload.php.

There are no obvious errors logged, but I noted pretty instantly that the email notifications (for admin and customer) are no longer being sent; the database does not even log attempts to send the emails. I've confirmed that the backend still has the same email details present, and even tried adding a new, standalone rule that used a non-domain email, in case of any block from that point of view.

On investigation, I've also noticed that after Sage redirects back to site (order complete), the basket retains the items from the order - it previously did not. This even skips the first layer of out of stock warning, allowing items in the basket that are OOS until the point of checkout (where it does then catch them).

Any advice would be greatly appreciated - I've read on similar errors, but not a concrete solution as such. Thanks!


texts:
Am I using no_results properly? Even when the grid doesn't have any data, I cannot get the "N/A" to output in the templates:

{store_telephone_data limit="1" offset="0"}
    {if store_telephone_data:no_results}
        N/A
        N/A
    {/if}
    {if store_telephone_data:count == 1}

            {store_telephone_data:store_telephone_number}

            {store_telephone_data:store_telephone_type limit="1" offset="0"}
                {store_telephone_data:store_telephone_type:title}
            {/store_telephone_data:store_telephone_type}

    {/if}
{/store_telephone_data}


texts: SQL query issue while trying to count the entry (row)

texts:
Trying to produce a current entry count / total entries within a channel_entry tag by using a SQL query.

{exp:channel:entries
  channel="{channel}"
  limit="1"
  require_entry="yes"
  status="open"
  disable="{disable_default}"
  orderby="title"
  sort="asc"
  }

    <!-- entry number (row number) -->
    {exp:query sql="
        SET @row_number:=0;
        SELECT @row_number:=@row_number+1 AS row_number,title FROM exp_channel_titles
        WHERE channel_id = 10 AND status ="open"
        ORDER BY title;
        "}
        {row_number}
    {/exp:query}

    /

    <!-- total entries -->
    {exp:stats channel="{channel"}{total_results}{/exp:stats}

{/exp:channel:entries}

The Query works perfect while running it directly on the DB in the Navicat query editor. However it doesn't run (outputs nada) from within the template.


texts:
Is it possible using Freeform for users to log in and edit their form submission in multiple visits, and only send an email notification once they have finished with the form and change its status to eg ‘completed’, (meaning they can then no longer edit it)?

(Using EE5 and assume that Freeform Next would be the way to go, unless Classic is the only way to handle it.)


texts:
I have just sent this to the CT team but am open to as much advice as possible so thought id put it out here too. Is this type of Q even allowed on here?

Q:
I am just reading the docs trying to decide which route to go down for a online food delivery system.

It needs to integrate with a POS (Revel Systems). In the docs it says to contact CT as may be able to offer with information on integrating with POS's

  "If you would like to integrate CartThrob with a Warehouse system,
  Point of Sale system, ERP, or other post-order process, please contact
  us for a consultation and we can give you an overview of what is
  possible. Though every ERP system requires a unique integration, we
  have a set of scaffolding for creating ERP integrations that offers a
  push-pull API for sending and receiving data in a secure manner using
  ExpressionEngine's built in user authentication. Our scaffolding
  system offers you local integration using command line applications or
  via publicly accessible web services."

The API that Revel Systems (POS) uses is Django Tasty Pie (REST) (https://django-tastypie.readthedocs.org/en/latest/).

SO, I will need to using a webservice to sync inventory, order history and mainly to push orders to their system.

Without going into too much detail could you answer the below Q's?

Do you know if the synchronisation will be possible with CT/webservice?
They are accepting Cash on Delivery ONLY (Its a food delivery service), would I be able to push new website orders to their POS?
What would be the best method to keep the inventory up-to-date on a regular basis whilst being linked to their POS?
What format would CT need to receive the data to keep it synced? CSV/Webservice?

Thanks!!


texts:
I'm a software developer but I don't specialise in PHP and have had no real prior experience with Expression Engine. A friend of mine who runs an estate agents has had a new website built in EE, but the people doing it are more front-end/graphic design experienced and were unable to implement one bit of much-needed functionality - automatically importing properties to the site.

Specifically, they have some property management software that will export a file in RightMove BLM (v3) format containing details of all the properties, along with associated images for each property, to an FTP server. There is a CodeIgniter module available to parse this format (http://biostall.com/codeigniter-rightmove-blm-parser-library), and it is also specified on the RightMove website. They would want some process to look at these files and do a full refresh of their Lettings channel within EE.

Is it possible to achieve this with EE? My initial thought was to write a standalone script to do the importing, but I don't know how to use the EE API from 'outside' EE.

Any help or pointers would be greatly appreciated.

Many thanks


texts:
I just upgraded one of my sites from EE 2.5.2 to 2.7.3 and everything seemed to go fine, but now on the front end when a user attempts to log out they get this error:

**The following errors were encountered**

You are not authorized to perform this action
Return to Previous Page

Anyone know why this is or how to fix it?


texts: Editing custom fields for multiple entries at once

texts:
Is there any way to edit the same custom field for multiple entries at once?

Something like an entry equivalent of the field editor add-on.

I know Zenbu has title/url editing available, just wondered if it was possible with custom fields?


texts: Using conditional for displaying special content to specific entry

texts:
Trying to display different link for one entry (thing1) inside channel entries loop.

{exp:channel:entries channel=“things”}

{title}

{description}

     {if url_title == ’thing1’}
     Read more
     {if:else}
     Read more
     {/if}

{/exp:channel:entries}

Problem is, that EE uses to compare {url_title} with current template, not with “things” channel entrie's.

How to write this conditional?


texts: How do I show how many members are in a member group?

texts:
I am creating a summary page that shows the number of members in each member group.

I tried the following but it only displays 1 as the result and there are 25 members in this group:

{exp:query sql="SELECT count(*) as active_members from exp_members where group_id=9 "}
    {count}
{/exp:query}

What is the correct syntax for this?

Thanks.


texts: Using Stash conditional to interrogate Solspace Tag Related Entries count

texts:
I'm using a Solspace Tag - Related Entries to show tagged entries. On the page, I show the first 3 channel entries and then wish to show a link to view more entries, but only if there are more than 3 entries to show.

I'm struggling to get a conditional working to show/hide the link based on the count of items in the results, while using Stash.

Here's my template;

{exp:stash:set name="itinerary_events"}
    {exp:tag:related_entries
        channel="event"
        orderby="event_date"
        sort="asc"
        limit="3"
        paginate="bottom"
    }
    {title}
    {/exp:tag:related_entries}
{/exp:stash:set}

{exp:stash:set name="itinerary_events_more"}
    {exp:tag:related_entries
        channel="event"
        orderby="event_date"
        sort="asc"
        limit="15"
        paginate="bottom"
        offset="3"
    }
    {stash:count}{count}{/stash:count}
    {title}
    {/exp:tag:related_entries}
{/exp:stash:set}

{exp:stash:set_list name="itinerary-vars" parse_tags="yes" parse_depth="2"}
    {exp:channel:entries
        channel="{channel}"
        status="open"
        limit="1"
    }
        {stash:tag}{exp:tag:tags entry_id="{entry_id}" limit="1" websafe_separator="-"}{tag}{/exp:tag:tags}{/stash:tag}
    {/exp:channel:entries}
{/exp:stash:set_list}

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

    {exp:stash:get_list name="itinerary-vars"}

    {if "{exp:stash:get name='count'}" > "3"}View all{/if}

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

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

    {/exp:stash:get_list}

{/exp:stash:set}

I would be grateful if anyone might be able to help. Thank you.


texts: using GWCode Categories, trying to exclude a category group and only show cats assigned to entry_id

texts:
I'm using the tag below to display the categories of an entry using the entry_id. I'm using those categories to generate a form. I want to exclude specific category groups as they aren't needed in the form. When I use the tag below, the excl_group_id parameter doesn't work if the entry_id parameter is included. if I remove the entry_id parameter, the excl_group_id parameter works, but it then lists all categories for that channel and not just the selected categories from that entry...Is it possible to get that excl_group_id to work along with the entry_id parameter?

{exp:channel:entries channel="products_beds" disable="categories|member_data|category_fields|pagination" url_title="{segment_4}" sort="asc" dynamic="yes"}

{exp:gwcode_categories entry_id="{entry_id}" channel="products_beds" style="linear" excl_group_id="4"}
    {!— code to generate form based on categories —}
{/exp:gwcode_categories}

{/exp:channel:entries}


texts: How do I get list content to display across multiple columns?

texts: I am running EE 3.5.7 and Bootstrap 4. I have list content that I would like to display evenly across multiple columns. In EE2 there was a very useful add-on: https://devot-ee.com/add-ons/splitter, however I have not been able to find anything that is compatible with EE 3+. Does anyone have any recommended solutions for this kind of challenge?


texts: Can channels be loaded dynamically based on url segments

texts:
Im constructing a website with four 'microsites' that have roughly identical page structures. Another relevant point here is that while the content and page structures will be effectively identical, the visual aesthetic (colors, textures, type) will be substantially different.

For example, each microsite will contain:
-home
-about
-services
-etc

These pages will occur on all of the 'microsites', hence the desire to make a template that will structure all the 'about' pages. Ideally this would then grab the appropriate style/content information based on a url segment. There may instances where one microsite will contain a page that another does not.

In response to comment, for clarity
urls would occur something like this:

site.com/tour/home
site.com/tour/about
site.com/tour/services
site.com/tour/rfp

site.com/play/home
site.com/play/about
site.com/play/services
site.com/play/rfp

The vital bit to this is that the structure is identical.
The aesthetic and content are specific to each microsite and page thereof.

I would like to use the same template for each page so in the event the layout changes im only updating the 'home' template in one location rather than for each 'microsite'. Im really not sure how to best approach this using standard channel/template/entry setup.

My initial theory was to setup channels for each of the repeated pages. For example, I would have a channel dedicated to 'home' pages, a channel dedicated to 'services', etc. This would only seem to work if I was able to load channels dynamically based on url segments. I fully admit that this maybe a flawed approach that may not even work, but I can't think of a better solution.

Im totally open to any ideas (unorthodox or not).
Thanks in advance.


texts: DevDemon Subscriptions CARD_CREATE: User authentication failed

texts:
No matter what I do I keep getting the following error when trying to subscribe to a plan:

CARD_CREATE: User authentication failed due to invalid authentication values.

I'm logged in as a user I have set up as "Test" account in the settings.

I have regenerated a brand new Authorize.net transaction key with no affect. I know for sure my login id is correct as I'm using it on multiple other sites/systems.

Is there something I need to enable for Subscriptions to work!?

*EDIT: As it stands I've created a Sandbox Authorize.net account and all systems are a go with it. So I'm assuming I need to set something up in my actuall Authorize account. I did notice Subscriptios is using CIM and all my other systems use AIM. Is there something there I need to do?


texts:
I'm using DevDemon Forms module and want to map entries to MailChimp.  I inserted my API key into the Settings panel and have added a Subscribe to Mailing field type in form.  But there are no available options within mailing services to choose from -- where I would expect to see my Mailchimp account lists.

Any advice?

Thanks,

Colin


texts: Search on Assets (pixel & tonic) Meta Data

texts:
Hi I need help with searching assets image data via the front end of my site. I have a single entry for a page with an assets field powered gallery on it.

The multiple images for the gallery are added via an assets field and pulled into my template with an assets tag pair e.g.

{page-gallery}
content
{/page-gallery}

Is it possible to do a search on assets meta for the content within the tag pair ?

My goal is to create a simple image library that can searched on assets meta content.

e.g. {page-gallery:title}

Is this possible ?


texts:
I've created a plugin for a client that has two methods, the first of which is called from within the home template:

{exp:kapitex:get_products_carousel products="111, 113, 38"}

... which creates a carousel based on 3 entries, one of Google's structured data types, which you'll see if you visit the website, view source, and do a search for: "ItemList".

while the second should create a breadcrumb element, and is placed in the products template:

{exp:kapitex:get_products_breadcrumb product="{entry_id}"}

During testing, the {entry_id} sent the correct value, as did sending a raw value (which is to be expected). However, because I'm having problems with the ".htaccess" file with the local development machine, I wasn't able to test the method within the products template, and instead had to use the home template.

We've published the plugin on the client website and the get_products_breadcrumb appears not to get called.

I replaced the code with:

public function get_products_breadcrumb () {
    echo "XXXXXXXX";
}

... cleared the caches and still nothing, so it's not the code in the method.

Any ideas what I've done wrong?


texts: We're using Store 2.3.1 for a company based outside the US, but who sells to the US market.  They've asked if we can reduce the price of the product by 18.7% if the customer is from the US.  Is this possible?


texts: Pagination links appear as expected and urls are fine, however the results dont change depending on which pagination page you are on.


texts: Cart Total no longer working on DevDemon forms for EE2

texts:
We just updated a client to EE2.11.6 and DevDemon Forms 3.5.3, and they're seeing issues with the product total no longer working. Before, you would add a product field and a total field. When you added or removed items, the total updated automatically. But this stopped working after the update.

Is there a script that is required in later iterations of Forms to get the total working?


texts:
Current page is with subdomain.(bla.examplewebsite.com)
I trying to remove the index.php with official document(http://ellislab.com/expressionengine/user-guide/urls/remove_index.php.html) way, but it seem like doesn't work. Can anyone help?


texts:
I'm trying to pre-fetch the number of results available per year for a specific category of articles.

The loopee module allows me to loop from current year back to 1999.
I would like to show a filter available (possibly with the number of entries available) only if there are results for that specific year and that specific category.

Example:

Sports

2016(5) | 2015(4) …

{exp:channel:categories channel="articles" style="linear"}

{category_name}

    {exp:loopee forint="{current_time format="%Y"}" to="1999" by="-1" parse="inward}
        {exp:low_search:filters query="{segment_3}"}
(IF) ONLY SHOW FOLLOWING CODE IF THERE ARE ENTRIES AVAILABLE

                {loopee_value}(X) |

(/END IF)
       {/exp:low_search:filters}
    {/exp:loopee}
{/exp:channel:categories}


texts: Does Assets inherit the EE file upload settings?

texts:
Assets doesn't seem to use the same settings for file uploads as what is set in the default file manager of Expression Engine.

I've made an upload location, only for images not larger than 4M and with a resolution lower than 2600x2600.

Images should only be gif, png and j(e)pg.
http://ellislab.com/expressionengine/user-guide/cp/content/files/file_upload_preferences.html#allowed-file-types

But in Assets I am able to upload images with a greater resolution.
I am also able to upload tif and bmp files. (But only those.)
Only the 4M max upload size setting is working.

Is this normal behavior, and if so, is it possible to change that?
Otherwise, what is going wrong?

Thanks in advance.


texts: EE 5.2: Parse error: unexpected '/' in … ee/legacy/libraries/Functions.php(627) : eval()'d code on line 27

texts:
I just have been noticed by Google Search Console that there are two pages with Soft 404 errors. So I cannot be sure when the error appeared first.

When calling the URL I get a blank page with the error:

  Parse error: syntax error, unexpected '/' in
  /var/www/…/system/ee/legacy/libraries/Functions.php(627) : eval()'d
  code on line 27

The strange thing is that only 2 (of about 1.500 pages with the same template) are concerned - the other ones work correct. As far as I can see in those pages there is nothing special (like php-code or using snippets).

When I close the entry I get a 404; when I reopen it the error appears again.

Already tried to clear caches (EE-caches as well as local browser-caches).

Anyone with any idea about this?
Thanks in advance!

Edit 17/03/2019

As @jelle-dijkstra suggested I tried to recreate the entry. Something strange happens:
1) I delete the old entry.
2) I create a new one (just with blablabla-text). The new one is visible in the frontend without errors (URL like template/group/entryid or also template/group/urltitle/entryid)
3) I change the entry-id in the database (via phpmyadmin in the tables exp_channel_data and exp_channel_titles). If I set it to the "old" entry-id I get the error in the frontend; if I set it to any other entry-id (like 9999) the entry is shown correctly in the frontend.

Also strange is that in the last two days 3 new Soft-404-errors for new entries occurred.

Any idea?!?


texts: Adding a .htaccess redirect to https that plays nicely with existing EE .htaccess rules

texts:
I've got an extranet (mywebsite.com/extranet) and would like to make sure that just this section is always under https, even if the user types the URL without https in it. Likewise (as a bonus, if possible, and if it doesn't add an unnecessary overhead), I'd like to make sure that the rest of the website is always http, even the user types https.

How would I go about doing this in the following .htaccess file (I'd rather not change the existing rules if possible as they seem to work well on my existing servers)? I've tried various pieces of code after searching around, but I can't get anything to play nicely with the existing rules. Also, I'd rather not use any third party add-ons as I'd like to keep my EE install as lightweight as possible, thanks.

Here's my existing .htaccess code:

RewriteEngine On

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

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

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


texts: Error Number: 1153, Exrpression Engine 2.7.3

texts:
We're having an issues on "Importer". While we're importing data to our site we encounter this error. The site is on shared-hosting. Please we need help on this.

UPDATE: Here is the error message:
A Database Error Occurred
Error Number: 1153
Got a packet bigger than 'max_allowed_packet' bytes
Filename: third_party/importer/mod.importer.php
Line Number: 327

Note: I can't post the SQL query because it's too long but the query is trying to UPDATE the "exp_importer_batches" table.


texts: Upgrading an EE1 site to EE2 with nGen File field

texts: What is the best way to upgrade a site from EE1 to EE2 that is using nGen file field with no EE2 equivalent. This site is also using nGen file inside of Matrix Fields.


texts: Site response is very slow for some areas. Any suggestion to speed up ExpressionEngine?

texts:
Recently I’ve build a site with protected area. The template of this area is a single file that first check if a visitor in logged or not and that show entry basing on url segments (use a lot of if_segment tag).
The entries that is showing is only one and contains a very big Matrix field with images ad some other columns.
The site has installed Trascribe too.

Every time this page is request it take about 16 sec to be ready… I haven’t any idea of the cause!

Can someone help me?

Debugging the page EE tells me:

Loading Time: Base Classes   0.0143
Controller Execution Time ( Ee / Index )   19.0798
Total Execution Time   19.0944

(0.319188 / 16.42MB) Calling Extension Class/Method: Transcribe_ext/transcribe_matrix_data_query
(5.559691 / 16.95MB) Calling Extension Class/Method: Transcribe_ext/transcribe_matrix_data_query


texts: CK Finder Upload Plugin not loading in Opera

texts: Just back to work from the Christmas break and for some reason when I try to upload images in the CK Finder File Manager I get a message saying "Couldn't load plugin", this only seems to be in Opera though, when I try in Firefox it works fine. Has Opera stopped being supported or something like that?


texts: Is there a good control panel add-on that provides more robust member search functionality?

texts: We have a client's site that has a handful of custom member profile fields, one of them being used for a street address. This particular client would like to perform a keyword search on that address but there's no way to do that from EE. I know we can build a custom search form on the front-end using Solspace User but I was hoping for a control panel add-on that would provide similar functionality.


texts: Exp:resso Store - Add Shipping Cost after checkout

texts:
I'm currently in the midst of a Store development for a wholesale site that cannot use automated shipping due to the nature of the product (jewels / gem stones).

The client has to manually work out the shipping cost after the purchase order has been placed.

Is there a way to edit the order / add shipping after the end user has placed their order? This is so that the shipping / insurance costs can be manually calculated and then added to the invoice retrospectively.

There is no payment gateway on this site - it's 30 day invoicing to payment gateway is set to manual.

Thanks,

Jamie


texts: Expression Engine Categories And Safecracker

texts:
I am using EE Core and have set-up a site so that when a new entry is published, you also select a category for it, and on the front end this simply outputs the category name. This works perfectly when you publish an entry from the back end, but I also have a safecracker form and when you post a new entry from that, the category name doesn't get outputted - but the drop down of categories is there and correct. Any ideas what could be causing this?

This is is outputting the name;

<h1>{categories}{category_name} {/categories}</h1>

And the safecracker form with just the category code;

{exp:safecracker channel="new_property" return="property/property-index" }
   <select name="my_custom_field">
{exp:channel:categories style="linear"}
<option value="{category_name}">{category_name}</option>
{/exp:channel:categories}
</select>
 {custom_fields}
{/exp:safecracker}


texts: I'm planning a site that will have approximately 10,000 categories in the installation.Does ExpressionEngine allow this? Is there a maximum number of categories allowed?


texts:
I have 6 entries which should show up, but when i use the code below it gives as return just three results. I think the problem is the category="not 3", does anybody has some experience with the category parameter?

{exp:low_yearly_archives
       channel="agenda"
       start_month="1"
       category="not 3"
       show_expired="yes"
       show_future_entries="yes"
       sort="asc" dynamic="off"}

{year}
    {entries_in_year}

{/exp:low_yearly_archives}


texts: Coupon code does not exist in DevDemon Subscription

texts:
I added a coupon to the DevDemon subscription Coupon dashboard in the Control Panel.

I tried the coupon code within the subscribe tag.

{exp:subs:subscribe
    payment_method="authorizenet_cim"
    plan="pro"
    return="/join/create/%SUBS_HASH%"
}

<input name="coupon" type="text" value="{subs:coupon}">

It returns this error message:

  The submitted coupon code does not exist or is malformated.

The code does exist, I must be missing a small detail.

Any help is appreciated.


texts: How can I add an ampersand (or similar) following all but the final entry in a Matrix loop?

texts:
I have a series of entries coming from a Matrix field on a page. If there is more than one entry I would like a "+" to follow each entry, except for the final entry. I've tried using backspace, but that removes the "+" from all entries.

{artists}
{if performance_type == "Performance"}
{artist}{title}
{if total_results >= "1"}&nbsp;+&nbsp;{/if}
{/artist}
{/if}
{/artists}

Any ideas at all would be greatly appreciated. Thank you!


texts: Using structure global variables in embeds

texts:
I'm trying to create a navigation menu inside an embed, I have the following code in my main template:

{exp:structure:entries parent_id="{structure:page:entry_id}"}
  {if channel_short_name == "accordion"}
  {embed="site/template_accordian"}
  {/if}
  {if channel_short_name == "album"}
  {embed="site/template_album"}
  {/if}
{/exp:structure:entries}

This works great, however I then have the following inside template_accordian:

    {exp:structure:entries parent_id="{structure:parent:entry_id}"}

{title}

    {/exp:structure:entries}

{structure:parent:entry_id} doesn't seem to output anything, I'm guessing this is due to parsing order or something but can't work out how to achieve what I want to achieve, any ideas?


texts: Using Channel Field to populate an individual page

texts:
Less of a question or more of an opportunity to see what other EE devs think.

The site I'm working on has a list of different City Markets and each Market has the same core pages like Directions & Parking, Admission & Policies, and Seating Policy.

Currently we're using Structure to create each one of the core pages under the specific City Market. As we continue to expand though I think it's going to be a bit unwieldy to have all these pages on the backend especially when there's an edit that needs to happen across all the City Markets.

My thought is that I create a Channel Field for each core page in the City Market Channel Entry. So Directions & Parking would be a field, Admissions & Policies would be a field, etc. Then I would use URL segment variables to designate which City Market Channel and which Channel Field to pull from to populate a core page in a City Market. So /austin/admissions would pull from the Admissions & Policies Channel Field in the Austin entry for City Markets.

Does that make sense and if it does what do you think about the solution?


texts: How do I order simple:Search results by channel?

texts:
I am using a simple:search form in the site footer to search specific channels and display results in search/results, but have not successfully been able to organize them per channel as of yet. Here is my search form:

{exp:search:simple_form channel="careers|leadership|news|product_entries|partner_entries|video|case_studies" search_in="entries" where="all" name="footer_search" result_page="search/results" no_result_page="search/no-results" status="not closed"}
        <input type="text" name="keywords" value="KEYWORDS" onclick="this.select()" id="search" />
        <input type="submit" class="button" value="Search &raquo;" />
{/exp:search:simple_form}

Here is my results code in search/results:

        {exp:search:search_results orderby="channel_short_name" sort="asc"}

{if "{channel_short_name}" == "news"}News & Press{if:else}{channel}{/if}

{title}&nbsp;&raquo;

        {/exp:search:search_results}

This produces results that don't actually order by the channel name, because partner_entries and products will randomly display in the middle of a chunk of news results. This was the only way of ordering search results that I could find, and would like to be able to produce an organized outcome similar to the following example:

Results for {exp:search:keywords}:

News & Press
------------
- {title}
- {title}
- {title}
- {title}
- {title}

Products
--------
- {title}
- {title}
- {title}
- {title}


texts:
I am using version 2.9.2 EE and Matrix 2.6.1 (both the latest versions of each software). Each time I try to publish a channel entry that has a Matrix fieldtype I am getting the following error message. Can anyone assist me with why I am getting this error.

A Database Error Occurred
Error Number: 1054

Unknown column 'is_draft' in 'where clause'

SELECT row_id, col_id_1, col_id_2, col_id_3, col_id_4, col_id_5 FROM exp_matrix_data WHERE field_id = 105 AND entry_id = 937 AND is_draft = 0 ORDER BY row_order ASC

Filename: third_party/matrix/ft.matrix.php

Line Number: 3044
Thanks


texts:
I need to enable cross-domain AJAX requests on my site, while limiting the cross-domain access to a particular template.

This template is in its own template group, so the requests from the script would look something like this:

domain.com/embeddable-content

I have this in my .htaccess file:

<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>

But this grants access across the entire domain. How would I go about restricting access to the single template?

I've googled around, but this is slightly out of my bailiwick, and I figure there my be complications because of EE's file structure (or lack thereof).


texts: I need to show channel entries in four columns and multiple rows ordered by latest entry first

texts: I need to show channel entries in the form of a grid. The grid has four columns and five rows. Therefore I show the first 20 entries. I need to use pagination to show the next 20 entries. I am not able to think of how to accomplish this. Any help would be much appreciated.


texts: Why are certain indexed entries being excluded from results? Could it be the special Status?

texts:
It seems I can't access certain indexed entries in a collection.
Here are my form and results tags:

{exp:low_search:form channel="exposiciones|eventos|talleres|publicaciones" query="{segment_3}" result_page="search/results" no_result_page="search/noresults" search_in="everywhere" show_expired="yes" show_future_entries="yes" status="not closed" where="all" form_class="search_form" form_id="my_search_form" secure="no" loose_ends="yes"}

{exp:low_search:results
      query="{segment_3}"
      status="not draft"
      collection="exposiciones"
    }

I use Low Search to divide my results sets into different collections. But even if I use  collection="all" and keyword ="" I get all results but the ones I cant access.

NOTE: The missing entries have a a custom Status, which is NOT part of the default "Statuses" group! Could this be the reason I cannot access them?


texts: Conditional with Low Variables, Matrix and Playa

texts:
I've gone every which way to get the following conditional to work, but it never renders the if:else variable:

<!-- matrix field -->
{show_override_age_policy}
  <!-- loop through Playa column and collect entry_ids of entries, if entry_id in Playa column matches the entry_id of current entry then display Low Variable from related Playa column -->
  {if "{override_market:child_ids}" == "{exp:stash:get name='market_entry_id'}"}
    {override_age_policy:var}
  <!-- if no matched entry_id than display default Low Variable -->
  {if:else}
    {show_age_policy:var}
  {/if}
{/show_override_age_policy}

The first part of the conditional when it matches displays both the matched and non-matched results. And when I'm on an entry that does not have a matching entry_id it should display whatever is in if:else. Instead it displays the if:else conditional twice. Any thoughts on how I might approach this?


texts: Client instructions on Control Panel home?

texts:
I'm trying to find an easy way to have basic instructions displayed when the client opens the CP (I'm using NSM Publish Hints for detailed instructions on entry windows).

I was using DashEE, which was great, but since EE2.9, it hasn't been functioning properly so that I can't update anything.

How do you all provide basic on-screen instructions to the client so that when they open the Control Panel it's obvious how they should proceed?

Thanks in advance.


texts: ExpressionEngine CMS 3.4.4 - Why am I unable to edit from the structure page?

texts: Our digital agency said that we need some special plug in...I'm not sure I believe that.  Any thoughts why I wouldn't be able to edit the site from here?


texts: Channel:categories of entries that have category from different category group

texts:
What we are trying to do:
I am using three category-groups, "product category", brands and country of origin, to create a navigation in a shop with the ability to filter the content of each product category with a specific brand or country.

The product category group is used to generate the main navigation and when a category is selected a listing-page is displayed with the entries of that category.

The display page in turn shows a "sub-nav" of the different brands and countries of origins.

Structure of the product category group:

Main category 1
    sub-category 1
    sub-category 2
Main category 2
    sub-category 3

When i pick a sub-category my url looks like this:

domain.com/products/[sub-category]

This page should show all products in this category and possible 3rd levels of product groups in the top and then brands and countries in a sub-nav.

It should look a little like this:

3rd lvl sub-category
-
Brands
    Brand 2
    Brand 5
Countries of origin
    Country 1
    Country 3

Where Brand 1/3/4 and Country 2 are not shown since no product with the [sub-category] has them selected.

When i select a brand or country that segment is added to the url and {segment_category_ids} gives me all the matched categories for use in the {exp:channel:entries} tag.

This is where i am having some problems..
I cant get my head around how to display only the brands and countries that have entries in the already selected [sub-category].

By default it displays every category that is used by any entry in the products channel. We haven't used categories all that much so i am not sure that i am going at it the right way.

I have tried to create a list of all the entry_id's from the subset and use those pipe-separated in the show-parameter of the {exp:channel:categories} tag-pair but i haven't gotten it to work yet.

We have mostly been using Playa for relations between different entries and "pages" before but i thought i could be good to get a grip on how to do it natively.

Does anyone have a better approach or any ideas on what i should do?


texts: I'm looking to auto-generate a title, for instance {firstname} {lastname}, like what you do in MX Title Control or Title Master for EE2. Anyone know if this is possible?


texts: Editing categories with Solspace Primary Category

texts: We're using the Solspace Primary Category add-on for a site and was wondering if it is possible with this add-on to let users add/edit categories via the Categories tab when publishing an entry, as per the default categories behaviour?


texts:
We have a site where some entry titles are company names including a German umlaut. When we perform a search using Low Search and type in the name 'without' the umlaut (as you would be most likely to do if you have a english language keyboard) then no results are returned.

However when performing the same search from 'within' the ExpressionEngine control panel channel entries listing screen searching without the umlaut does return results.

Is there some fundamental difference between how internal entry searches are performed in EE and how Low Search works and is there any workaround we can implement to enable the return of results when we do perform a search on the front end minus the umlaut?


texts: grid_display_settings issues with a single row

texts:
I've had reported a problem with an add-on that settings for other fieldtypes aren't working when my fieldtype is enabled in a grid.

I've spent some time on this, and can only assume the problem is related to the grid_display_settings() function which I'm using to display add-on settings:

function grid_display_settings($data)
{

    return array(
        $this->grid_dropdown_row(
            "Load....",
            $this->field_name,
            $this->_get_grid_dropdown($data),
            array_get($data, 'list_type', null)
        )
    );

}

It all appears to be fine, in that I get no errors - however, on my grid field settings options, none of the other fieldtypes display their settings - I get a 'typeError: e.html(...) is null'. However, selecting my own field works as expected.

I've spent far too long on this bug already, so just putting this out there to see if anyone has come across this before?


texts: Workflows for developing with a team regarding the database

texts:
Short story:
What are some of workflows regarding the database teams are using to develop locally and then push to a central dev site.  When each dev is creating their own templates and variables (not to mention content), how is that database being merged with others without erasing the work one or the other has done?  I've seen at least one attempt at a mysql-query recorder, that I could then use to insert into the parent database instead of trying to merge it.  I've used those for WordPress and know those aren't always 100%.  Are there any other workflows?

Long story:
I'm new to developing with a team.  The team I'm working with is new to best practices and really working together.  In the past it's been pretty much every for themselves, a lot of cowboy coding through FTP on live sites, and more.  However they brought me on because we are now getting larger projects.  Great.

First I introduce them to git.  Everything is great. They understand the benefits, they get use to develop locally, push to staging, then push to master. We use dploy.io to actually make the deployments from our git branches.  Again, great.

Now we have a few sites that several devs are working on.  Git merges, pull requests, conflicts, no problem.  However seeing that ExpressionEngine's core is the database, we start to see issues.  Dev A has a copy of the database and so does Dev B.  Both are making content changes as well as creating new templates and variables.  Both databases can't make it to the staging deployment.  We tried some database merging (I come from a back-end world and have no problem getting dirty with databases), however that can be so time intensive.

So we have a (almost) great current solution, using an online IDE.  Through Cloud9 (c9.io) we are connecting via ssh to a VPS we have set up for Dev work.  This way we are collaboratively working on the same files at the same time, as well as sharing the same database.  There are no more git conflicts with each other, no more separate branches for each dev, no more database conflicts, etc.  Life is grand.  Until Cloud9 goes out for an hour one day.  Then we see the error of our ways.  What would we do if there was a serious deadline to meet tomorrow and we are left twiddling our thumbs because we can't connect?  We could go back to an FTP workflow, but would seriously slow things down.

So this leads to my question: What are some of workflows regarding the database teams are using to develop locally and then push to a central dev site.  When each dev is creating their own templates and variables (not to mention content), how is that database being merged with others without erasing the work one or the other has done?  I've seen at least one attempt at a mysql-query recorder, that I could then use to insert into the parent database instead of trying to merge it.  I've used those for WordPress and know those aren't always 100%.  Are there any other workflows?


texts: Filtering Member List from Multiple Member Groups?

texts:
On a site I took over from another developer, I need to output a list of members from multiple member groups (Staff, Editors, Super Admins) but only one Super Admin member needs to show in it.

The current implementation uses an obscure plugin — it might be a custom add-on as I can't find it via Google — to list members in the Staff and Editors groups. The need to show a single member of the Super Admin member is a new requirement.

If possible, I would like to avoid using an exclude by member_id approach — that is filtering by a list of member_ids that I do not want to show. Instead, I would like to include by member_id, so only that one specified member is listed. So more {if member_id == ""} and not {if member_id != "}, but with the need to show all members in the other two groups.

Going that route, as new Super Admins are added (which is very infrequently) I won't have to revisit the project to add yet another member_id exclusion.

but an include by member_id, so only a specific Super Admin will show in the list. That way, as new Super Admins are added (which is very infrequently) I won't have to revisit the project to add another exclusion.

Any thoughts?


texts: Is it possible to clean up the database tables?

texts:
I recently inherited an EE site that the previous developer kind of put together while learning how to program. It works, and honestly for never having done it before he did a pretty good job of getting it up and running, but while he was doing that, he made lots of fields, left some data in them, deleted them, and so on.

It doesn't bother me that much, but it got me wondering if there's a way to 'refresh' the database tables to get rid of entries that no longer have channels, field data that no longer has fields, etc...?

Or is there something going on automatically that is taking care of this for me?


texts:
Our site was working just fine yesterday. And when we go to it today it is blank on the homepage and CP.

I turned debugging on in index.php and admin.php and it returned:

Warning: require(/var/www/vhosts/domain.com.au/httpdocs/system-46cjg2378sW/codeigniter/system/core/Exceptions.php): failed to open stream:
Too many open files in /var/www/vhosts/domain.com.au/httpdocs/system-46cjg2378sW/codeigniter/system/core/Common.php on line 137 Fatal error: require():
Failed opening required '/var/www/vhosts/domain.com.au/httpdocs/system-46cjg2378sW/codeigniter/system/core/Exceptions.php' (include_path='.:') in /var/www/vhosts/domain.com.au/httpdocs/system-46cjg2378sW/codeigniter/system/core/Common.php on line 137

What on earth could have happened overnight? We haven't made any updates.


texts: I'm using Tagger from devdemon and I wonder if it is possible to ordeby a customfield. It seems to me that the entries are orderby entry_date and I can't find a way to change it.


texts: Sub-folder naming convention in Assets 2

texts: If I create a sub-folder with more than a one-word title using Assets, the name is joined with an underscore i.e. 'Technical_Manuals'. Is there any way around this as obviously this wont be suitable front-end?


texts: In Structure you can get the parent entry_id using {structure:parent:entry_id} but is there any way to get the grandparent entry_id?


texts:
I have moved a website that uses ExpressionEngine to a different server, however all the images appear to be missing and if I go to update something it says the path is invalid.

I just spotted another error as I was going through the migration documentation.

Can anyone advise on how do I fix this, I am new to ExpressionEngine and CodeIgniter


texts: MSM and EE question (subdomain using main domain's templates)

texts:
I have recently installed MSM on my EE build. Both are the very latest. I followed the tutorial all the way through: http://ellislab.com/expressionengine/user-guide/cp/sites/install.html

When i visit the subdomain on my local host it shows up fine in terms of the styles being there however when I make an edit to a template via the control panel/or text editor it does not show up on the subdomain. I have all my templates saved out as files. If i edit the index page for the main site, it shows up on both the main and subdomain.

my main site is located in a public_html folder on my computer and at the same level is the subdomain folder named appropriately.  I am sorry my question is so high level. I bet I am just missing something obvious.

PS I have added an htaccess file to my subdomain folder with no success. This is all on apache on my local computer.


texts: Playa Coparents: Getting just the matrix row I want

texts:
This is what I want to do: Show data just from  a Matrix row whose Playa column is the child that 2 channels (coparents) share.

I have 3 channels: Sizes, Colors, and Price Groups. Sizes has a playa field "cf_price_group_playa" which references Price Group, and Colors has a Matrix field, cf_size_price, with a playa column, that references the channel Price Group as well. I want to pull only the price for this size in the price group that the color I'm currently looking at is in; if I don't search explicitly on that playa column, I get all the matrix rows:

{exp:channel:entries channel="colors"}
    {exp:playa:coparents channel="sizes"  field="cf_price_group_playa"}
        {cf_size_price search:price_group="THE_SHARED_PRICE_GROUP"}
        {price}
        {/cf_size_price}
    {/exp:playa:coparents}
{/exp:channel:entries}

I'm clearly doing something wrong and am tripping myself up figuring it out. It seems so clear, the relationship among these channels, but I'm not getting the front-end bit right. I appreciate insight from the Playa gurus here!


texts:
Has anyone used the following add-on 'Export it' : https://mithra62.com/projects/feature/export-it/

I am looking to export all Zoo visitor members from the database and I've had no joy with "AJW_Export". Anyone any advice if this add-on does the job?

Thanks


texts: Why am I getting this error and what do I need to do: "Error You have tried to access a weblog that does not exist."?

texts:
I have created a 'staging' version of my site on a new server.

When I am in the admin area I can see the list of weblog entries just fine, but when I click on one of them to edit it, I receive this error:

"Error
You have tried to access a weblog that does not exist."

Is this a config or permissions problem? What should I do to fix the issue?


texts:
If I add this code using WYGWAM source

SomeTitle

and publish, it works fine.

But if I go back and edit the entry and click source again all the classes are removed.

How do I keep WYGWAM from removing all my classes?


texts:
Is it possible to create an RSS feed with Solspace Calendar.  The RSS sample in EE used channels entries.  Wondering if I can pull in events from a calendar into an rss feed.

This feed needs to also show all repeating events.  I got it started but it only shows one event for a repeating event in my rss reader.

{exp:rss:feed channel="calendar_events"}

<?xml version="1.0" encoding="{encoding}"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/">

    <title>{exp:xml_encode}{channel_name}{/exp:xml_encode}</title>
    <link>{channel_url}</link>
    <description>{channel_description}</description>
    <dc:language>{channel_language}</dc:language>
    <dc:creator>{email}</dc:creator>
    <dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
    <dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
    <admin:generatorAgent rdf:resource="http://ellislab.com/" />

  {exp:calendar:cal calendar_id="22" event_limit="24" date_range_start="today" show_months="6" pad_short_weeks="n" dynamic="off"}
<item>
      <title>{exp:xml_encode}{event_title}{/exp:xml_encode}</title>
      <link>{path='events'}/{event_id}/</link>
      <guid>{path='events'}/{event_id}/#When:{event_start_date format="%H:%i:%sZ"}</guid>
      <description><![CDATA[{event_summary}]]></description>
      <dc:subject>{exp:xml_encode}{categories backspace="1"}{category_name}, {/categories}{/exp:xml_encode}</dc:subject>
      <dc:date>{event_start_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
    </item>
{/exp:calendar:cal}

</rss>

{/exp:rss:feed}

This code displays 3 out of 4 events (only one of the repeating events in Chrome RSS reader, it doesn't work at all in Firefox.  Only shows the feed title and no events. Firefox says the rss feed is empty)


texts: Setting a Stash variable within an old style EE conditional

texts:
I'm working on an old EE site (v2.5.2) which for reasons I won't go into I cannot update to a newer version.

I am trying to set a Stash variable based on whether or not a condition evaluates to true. But, because of the way this version of EE handles conditionals the Stash variable is always being set regardless of the actual condition.

Simplified code snippet:

{exp:stash:set_value name="sample" value="no"}

-- loop starts here --
{if entry_id==''}
    {exp:stash:set_value name="sample" value="yes"}
    Other stuff here
{if:else}
    Other stuff here
{/if}
-- loop ends here --

No matter whether entry_id is empty or not, the Stash variable always shows as "yes".

I've tried using Switchee and If:else but have had absolutely no luck getting this apparently simple thing to work.

How can I get around this? It's driving me nuts.

Real code snippet (using Cartthrob's cart_items_info loop) and following information found at https://devot-ee.com/add-ons/support/switchee/viewthread/6566

{exp:stash:set parse_conditionals="true" parse_tags="yes" process="start"}
    {exp:cartthrob:cart_items_info}
        {exp:switchee variable="{item_options:sample}" parse="inward"}
            {case value="true"}
                {stash:sample}yes{/stash:sample}
            {/case}

            {case default="yes"}
                {!-- nothing going on here --}
            {/case}
        {/exp:switchee}
    {/exp:cartthrob:cart_items_info}
{/exp:stash:set}

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

That loop will output the correct information based on the value of {item_options:sample}. But the Stash variable is ALWAYS set to "yes" no matter what.


texts: Channel forms {error:my_field_name} with parameter error_handling="inline" doesn't display errors

texts:
I cannot make {error:my_field_name} to work.  It is like it doesn't parse.
Here is my code :

{exp:channel:form channel="mychannel" return="test/index" error_handling="inline"}

        Concerne *

{instructions:concerne}

{error:concerne}

        {field:concerne}

{/exp:channel:form}

If I use

{custom_fields}
{if error}
{error}
{/if}
{/custom_fields}

it gives me error validation messages but I need manually constructed fields so I can't use {custom_fields} loop.

Is this happening to someone else (and I have to report the bug) or just me? If so, what am I doing wrong?

EE version : 3.3.2


texts: PHP Fatal error: Allowed memory exausted

texts:
i ran into an HTTP Error 500(internal server error) when i tried to edit one of my page. it was working fine up until last week. i tried to to increased the Memory limit in to 256M, didn't help.

my error log says this: "PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 43504 bytes) in *path/to/my/websit"/system/extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 1074"


texts:
I am trying to learn how exactly hooks and extensions are used. I am using expresso-store and have a function I need to call when the order is complete and gets to the success page (on hook 'store_order_complete_end') and two other functions that I need to call on events, both on a button click.

Could I include all three of these functions in one extension or does each function needs its own extension?


texts:
Wondering if anyone has had success running EE2 and Low Variables on PHP 7?  I saw that Low made LV3 compatible with PHP 7.  (http://gotolow.com/addons/low-variables/changelog).  But it seems LV2 is still stuck on PHP 5.

What has to happen to make it all work?


texts: Display Data on Screen after Form Submission using Solspace Freeform Pro

texts:
With Freeform, I know that when the user submits a form entry, you can set up an email notification that sends all the data they entered to them in an email message. Is it possible to also have their information display on screen after they submit?

Email is just not as dependable as it once was, so I'm trying to have a backup "Print this page now for your records" type of option - just in case the notification email gets lost.


texts:
i'm using the wygwam editor and i'd like to use the source button/option with my admin account. but the source button should not be visible/usable for other members.

any idea how to do that?

thanks!


texts: P&T Assets not functioning correctly after migrating to new server environment

texts:
After moving my site to a staging environment I'm no longer able to view any images within the Assets portion of the CP or upload files to any Assets related fields. I'm also unable to update the indexes within Assets (it just appears to freeze).

I've double checked the following:

That the Assets and EE cache folder have proper permissions.
That the paths are correct in the upload destination's File Upload Preferences.
That I'm able to successfully upload to the folder via EE's native File Manager.

I started poking around in the DB and noticed that in the exp_assets_index_data table all of the uri fields had the incorrect file path in them (they're all showing the path from my local environment). I ran a REPLACE query in MySQL and fixed the paths, but still am still experiencing the same issues.

The site is running EE 2.7.2 (build 20131008) and the latest version of Assets 2.5.

Any thoughts on what might be happening or tips on how to get things back up and running would be much appreciated.


texts:
I'm trying to allow SVG uploads via the file fieldtype (EE 2.9.2), but it gives me an error:

  The file type you are attempting to upload is not allowed.

I have updated mimes.php with the following additions:

'svgz' => 'image/svg+xml',
'svg' => 'image/svg+xml'

but this has made no difference. I have also tried disabling XSS filtering in the EE CP - also does not work.

Finally, I added the following to config.php:

$config['allowed_types'] = 'svg';

And this does not work either. How can I get this working?


texts: Is there a quick way to disable all plugins?

texts: Installed a new module and now the site is insanely slow - stylesheets in the CP aren't loading even, 5-10 minute wait per page load. Is there any way to disable all the plugins at once? Deleting them from the third_party folder didn't help.


texts: Freeform Pro showing error when uploading File of 9MB. How can I increase the upload file in freeform?

texts:
When I upload file to expression engine Freeform Pro 4.2.5. It shows me error.

How can I increase the size of the file? Or what can occur


texts: Using a related entry inside a reverse related entry?

texts:
I have a channel 'user' with a detail page about them.

I then use a

{reverse_related_entries channel="post"} tag to pull in entries that user created and list them on that page. This all works great.

The entry in the post channel also has a related entry, so I am trying to call it but am not having any luck. Can I call a related entry inside a reverse related entry?

Heres an example with just EE tags:

{exp:channel:entries channel="user"}
    {title}
    {reverse_related_entries channel="posts"}
        {title}
        {related_entries id="myfield"}
            {title}
        {/related_entries}
    {/reverse_related_entries}
{/exp:channel:entries}

but the nested related entry returns {REL[myfield]UyOu51DdREL}.

Any idea how I can get this to work?

Thanks!


texts: Refreshing on checkout page empties cart and redirects

texts: I know why it's redirecting (b/c the cart is empty) but I'm not sure why refreshing on the checkout page is causing the cart to be emptied. Any idea? Latest install of all of the above, just upgraded.


texts:
Having a issue trying to figure out how I can cache the majority of a site page but keep the opening/closing tag of a module uncached? (ie. add_to_cart_form) Once the page is cached, the add to cart doesn't work as the forms XID hash value has to be dynamic every page load. I'm sure it has something to do with the parse stage, but I have had no luck thus far.

The basics of what I'm trying to do:

{exp:stash:cache name="builder" context="@URI" parse_stage="both"}
    {exp:channel:entries
        channel="sheds"
        disable="categories|category_fields|member_data|pagination|trackbacks"
        dynamic="no"
        url_title="{segment_2}"
    }

    ...

    {stash:nocache}
        {exp:cartthrob:add_to_cart_form
            id="atc-form"
            allow_user_shipping="yes"
            entry_id="{exp:entry_data:entry_id url_title="{segment_2}" channel="sheds" site_id="1"}"
            return="cart/index"
            secure_action="yes"
            secure_return="yes"
        }
    {/stash:nocache}

    ...

    {stash:nocache}
        {/exp:cartthrob:add_to_cart_form}
    {/stash:nocache}

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


texts: Postmaster Expiration_Date In "Post Date Specific" Field

texts:
I'm currently looking to send out an email using Postmaster when an entry expires. My entry will be assigned a expiration date, so im curious if I can use this variable in the "Post Date Specific" field. Currently the field states that you can put a dynamic date.

Will it work with the {parcel:expiration_date format="%d/%m/%Y-%g:%i:%s"}? If it does, its not working for me.. Maybe its my formatting?


texts: Does CartThrob 2 use SSLv3 in it's Authorize.net payment gateway?

texts:
Due to the POODLE vulnerability in SSLv3, Authorize.net is shutting down their support for SSLv3 on Nov 4, 2014. Here's a excerpt from the notice:

  To that end, on November 4, 2014, we will be disabling the use of SSLv3 within our systems. This means that if your website or shopping cart solution uses SSLv3 to send transactions to Authorize.Net, you will no longer be able to process transactions. You will also no longer be able to access any secure Authorize.Net pages from IE6.

http://www.authorize.net/blog/?page_id=5561617

Do the Authorize.net payment gateway plugins in CartThrob 1 or 2 use SSLv3? How can I check to make sure?


texts:
sligtly duplicating the following question (Store - The Issuer field is required) but i really need someone to pick this one up.

Using the MOLLIE gateway on a project. Problem is i keep getting the "The issuer parameter is required" error. Mollie is an intermediate gateway for providing iDeal payment solutions.

It requires the client to make a selection via what bank they want to make their payment. So on my site i need to populate a dropdown with the banknames Mollie's got on file (they change this list when a bank goes offline). The gateway files already contains a method for doing this gateway.php function fetchIssuers.

I can't seem to be able to print this list out in the templates however. The documentation does refer to an simular issue with a direct iDeal implementatie

< select id="payment_issuer" name="payment[issuer]" >
    {ideal_issuer_options}
< /select >

Rewriting this to {mollie_issuer_options) etc doens't result in the desired effect or producing a list of banks in the select.

More troubling however is that when I populate the list manually it also doens't seem to take effect. I've tried it with different names/id's on the select but no joy on any of them. The one's ive tried are "issuer", "bank_id", "payment_issuer" and "payment[issuer]".

So let's try and attack these problems as methodical as possible.

What would the correct syntax be for printing the list of banks that's being mentioned in the gateway.php function fetchIssuers?
What would the correct naming convenstion be for this field so it can be processed in the class PurchaseRequest contained in the Mollie/Messages/PurchaseRequest.php file?

With these answers i'll check the system will start working and if not report back here for additional information.

With kind regard,
Bas van Ginkel


texts: URL Segments Keep Building Up (Using Navee)

texts:
URL segments keep building up with each link I click -- Never had this issue occur before.

Navee include:

{exp:navee:nav nav_title="main"}

The first time I click the link, it works fine:

When I click another link, it adds the previous link to the new click link:


texts: How to create 170 entries with only one word changing?

texts:
I'm working on a large site and one of the sections I'm about to develop has 170 entries, all of them use the same long copy, except for one single word. For example:

Entry 1:
All of our experts are native Afar speakers and professionally qualified bla, bla, bla.

Entry 2:
All of our experts are native Afrikaans speakers and professionally qualified bla, bla, bla.

Every entry has to be dynamically created because at some point they will be translated into another language (using Publisher for this).

Is there a way to setup a system without having the client to enter manually every entry in the ExpressionEngine publish window?

It is the same text always with only one word changing and it feels like too much work copying and pasting 170 times.

What would be the best approach to develop this?


texts: Stash: How can I preset a channel var in the right stage of the parse order?

texts:
I'm trying to use Stash embeds on a pretty complex site and can 'see' a way to make things more DRY but can't actually figure out how to 'do'.

I have a collection of viewModal templates, that handle the various channels, and a lot of these channels share a naming convention for their right column meta data. In a perfect world, I would've shared these fieldgroups across the channels, but as that's not possible, I had to repeat myself a lot in the fields.

An example (stripped down slightly):

/editorial.html (viewModal template)

{!-- Set the page layout --}
{stash:embed:layouts:standard}

{!-- Right side area [inject the rightcol_meta partial into the {stash:page_meta} region] --}
{exp:stash:set_value name="st_page_meta" value="{exp:stash:embed:partials:rightcol_meta}"}

{!-- Main content area --}
{exp:channel:entries limit="1" channel="editorial|structure_editorial" disable="member_data|pagination|categories" require_entry="yes"}
    {exp:stash:st_page_title}{title}{/exp:stash:st_page_title}
    {exp:stash:st_page_body}{cf_editorial_body}{/exp:stash:st_page_body}

    {!-- (make all the meta fields snippets) --}
    {!-- Related links --}
    {exp:stash:set_list name="st_rel_links" parse_tags="yes"}
        **{cf_editorial_rel_links}**
            {stash:st_rel_link_title}{title}{/stash:st_rel_link_title}
            {stash:st_rel_link_url}{page_url}{/stash:st_rel_link_url}
        **{/cf_editorial_rel_links}**
    {/exp:stash:set_list}

    {!-- Related publications --}
    {exp:stash:set_list name="st_rel_pubs" parse_tags="yes"}
        **{cf_editorial_rel_publication}**
            {stash:st_rel_link_title}{title}{/stash:st_rel_link_title}
            {stash:st_rel_link_url}{page_url}{/stash:st_rel_link_url}
        **{/cf_editorial_rel_publication}**
    {/exp:stash:set_list}

    {!-- featureboxes (make all the meta fields snippets --}
    {exp:stash:set_list name="st_fbox_list" parse_tags="yes"}
        **{cf_editorial_fbox}**
            {stash:st_fbox_type}{cf_fbox_type}{/stash:st_fbox_type}
        {!-- Heading style --}
            {stash:st_fbox_heading}{cf_fbox_heading}{/stash:st_fbox_heading}
            {stash:st_fbox_heading_body}{cf_fbox_body}{/stash:st_fbox_heading_body}
        {!-- Image --}
            {cf_fbox_img}
                {stash:st_fbox_img_src}{url}{/stash:st_fbox_img_src}
                {stash:st_fbox_img_alt}{alt_text}{/stash:st_fbox_img_alt}
            {/cf_fbox_img}
            {stash:st_fbox_img_link}{cf_fbox_img_link}{/stash:st_fbox_img_link}
        **{/cf_editorial_fbox}**
    {/exp:stash:set_list}

{/exp:channel:entries}

I've surrounded the parts I'm talking about in *s (turns out I can't bold inside a code snippet). I want to be able to change these sections into snippets, and instead of {cf_editorial_rel_links} etc I would like to use {cf_{channel_short_name}_rel_links} so that in each viewModal I could just include 1 snippet. Even if I had to use {cf_{exp:stash:get name="channel_name"}_rel_links} it would be fine.

Is this possible? I think it is, but can't seem to get it to parse the channel short name (with stash or otherwise) in time for it to be processed correctly.

Thanks in advance for any help!

Rob


texts:
Is there a way to paginate a list of categories? For example, I have 9 categories and would like to display 3 categories with their description on each page. It seems like it should be as easy as the following, but no luck.
{exp:channel:categories limit="3" paginate="bottom"}
    {category_name}
    {if category_description}{category_description}{/if}
 {paginate}
        {if previous_page}
            Previous Page &nbsp;
        {/if}
        {if next_page}
            Next Page
        {/if}
    {/paginate}
{/exp:channel:categories}


texts: Log in member based on custom field, without password

texts:
We have a project where our client would like to display different prices for promotions, based on a member's group. The client would like the member to login by entering their current customer account number, which is allocated to them though our client's Point-Of-Sale. Our client would like the member to be able to do this without a password, as the data to be displayed is not particularly sensitive, but is tailored to their members.

Is this possible? We are planning on using Zoo Visitor to manage members elsewhere on the site.

Thanks for your help.


texts:
I have always displayed a channel entry's title like so:

{exp:channel:entries channel="news"}{embed="partials/.header" page_title="{title}"}{/exp:channel:entries}
  Body
{embed="partials/.footer"}

What is the best way of including the entry's title in the header partial template of the html?

// .header
<head>
 <title>{embed:page_title}</title>
</head>


texts:
I have main installation of EE3 (test.example.com) and subdomain (m-test.example.com) for mobile version. Also I use detectmobilebrowser.com for detecting the device. Everything work well despite images. Mobile version will have the same content, images etc. as main version.

So this URL works: test.example.com/images/upload/folder/image.jpg but this one unfortunately not: m-test.example.com/images/upload/folder/image.jpg. Templates are loading properly but without images.

I found out the problem has been created by detectmobilebrowser.com because without this the images work properly on subdomain (m-test.example.com). So the problem is starting when someone go to test.example.com by mobile and will be redirected to m-test.example.com. Then images not working. When you go to m-test.example.com by desktop, everything will be fine.

What is the reason of that and how to deal with it?

Thanks for help!


texts: Error 404 with structure after the 2nd segment

texts:
I am using structure, and therefore, sometimes I have more than the standard 2 segements (template_group/template).

the error page get's triggered whenever the first or the second segment is incorrect, but it's not triggered as soon as there is a third segment.

I've tried this on several structure sites and seems to be consistent.

I also used libraree on these sites.

are you experiencing the same thing?
is there any way to overcome this?

cheers
stefan


texts: How to pass form data to external php script

texts:
I need to pass a value from a form to an external php script via a url, but my code isn't working. When I submit my form, I'm expecting the url to look like this: example.com/script.php?zip=12345 but what I'm getting is this: example.com/script.php? with nothing after the ?.
My form code is below. Am I doing something wrong, or do I need to change a setting somewhere?

        <form id="map" method="get" action="script.php">
            <input type="text" class="inline" id="zip" />
            <input type="submit" class="button" value="Go" />
        </form>


texts:
I'm having trouble importing a db locally. So I'm doing a reduction test by importing batches of tables at a time, until I meet the offender.

exp_super_search_terms looks suspiciously offensive. It's weighing in at nearly 60MB and contains what looks like random spammy entries. There are over 1.2million entries in it. Yup, you read correctly. So, I'd like to empty it of it's gunk and possibly disable any future entries being recorded in it.

But the exp_super_search_terms "does not contain a unique column. Grid edit, checkbox, Edit, Copy and Delete features are not available."

So how do I go about flushing it?

And how do I not make it writable anymore, until we sort out the spam barrage?

Much appreciated

UPDATE
I've emptied the table. But I'd still be interested in knowing how to keep the table in check from further assaults.


texts: Expresso Store : Add customer member fields to checkout process

texts:
Is it possible to have custom member fields added to the checkout process so when the customer is registered during checkout the custom member fields are saved?

I've tried adding the fields to my form (I copied the HTML from the /members/register page), but the values I enter are not saved during registration.

Thanks in advance for any help.


texts: Low Search - Can you search multiple collections in one search?

texts: Assuming that some collection fields are the same, can you search multiple collections in one search/search form?


texts: EE3 DevDemon Editor not inserting images

texts:
I have checked and double checked my settings. I don't see anything wrong in them.

I have established a file upload location and verified it is working correctly with a Channel Images field. When I set the same location for the images in the Editor image upload location it is not working.

I can click the 'Image' button in the toolbar and the insert window opens. I can then either drag/drop or click insert and select the image I would like to insert. The title shows up and appears to be ready to insert, but the window then closes and drops a blank space in the copy section. When you look at the source, you can see an empty image 'figure' block.

See images for visual.


texts: Can I cache a exp:cartthrob:add_to_cart_form?

texts:
I'm working on a wholesale site that means I have at least 15 unique add_to_cart forms on a product listing page. This slows the page down considerably as each form is dynamically generated. I've been experimenting with ce_cache and if I cache the whole listing the site is so much faster - the only thing I'm concerned about is what I'm sacrificing in terms of dynamic information, and any risks I might incur by caching these listings.

The speed improvement is so significant that it would be great to be able to do this.

Also, the actual site is pretty straightforward - there are no inventory counts to look up, so it won't make any difference there. It seems to work for me, but I don't want to push it to production if I run the risk of anything happening to customer orders as a result of the caching.

If anyone has any experience of this, or knows more about what impact this may or may not have I'd love to hear about it!


texts: Updated from 3. to 5.3.0, site gets fatal error

texts:
Admin pages work fine, but the site is giving me:

Fatal error: Trait 'EllisLab\ExpressionEngine\Service\Template\Variables\ModifiableTrait' not found in /home/myuser/public_html/addons/mydomain/system/ee/legacy/libraries/Template.php on line 19

Line 19 there looks like:

 16   class EE_Template {
 17
 18     // bring in the :modifier methods
 19     use Template\Variables\ModifiableTrait;

Any idea what might be causing it? I don't understand what path that is pointing to or how it's being used.


texts: Relationship nested in Grid - how to get content

texts:
I've got a grid where one of the cells is a relationship field. I'm unable to get the relationship to output any content.

My grid field is {related_quote} the cell with the relationship is "quote_entry" and the content field inside the related entry is "quote_copy"

My code as it stands now.

{related_quote}
<div class="quote_bubble_text">
    {related_quote:quote_entry}
        {related_quote:quote_entry:quote_copy} Yo something here
    {related_quote:quote_entry}
    {!--yo yo yo--}
</div>
{/related_quote}

The only thing I can see is "Yo something here" which indicates taht I've got the relationship working as it's processing copy inside. But can't figure out how to get the actual quote_copy field to render.


texts: Can we use member_group instead of logged_in/out?

texts:
I am creating a members only section and I am wondering if I can use the member_group variable, on its own, to check if a user is logged in or not. My assumption is that using both the logged_in variable and member_group variables at once creates a more resource heavy advanced conditional.

Basic example here:

{if logged_in AND member_group == "5"}
    logged in content (member group 5 view)
{if:else}
    logged out content (public view)
{/if}

However, if users are not a part of any member group I create, or they are not a super admin, then they default to the Guest member group 3. This represents anyone not logged in. At least that is how I understand it.

But if EE identifies a user as belonging to any member group other than Guest, doesn't that mean they are logged in? If this is the case, then I should be able to use simple member group conditionals to check logged in status.

Does this sound right or am I missing something?


texts: DevDemon Updater not reading config overrides

texts:
Updater doesn't seem to be reading the Configuration File overrides that I'm setting in config.php.

Here's part of my config.php:

// $base_path and other variables defined above this
$config['updater_module_defaults']['path_map']['root'] = $base_path . '/';
$config['updater_module_defaults']['path_map']['backup'] = $base_path . '/updater_backup/';
$config['updater_module_defaults']['path_map']['system'] = $base_path . '/' . $system_folder . '/';
$config['updater_module_defaults']['path_map']['system_third_party'] = $config['third_party_path'];
$config['updater_module_defaults']['path_map']['themes'] = $config['theme_folder_path'];
$config['updater_module_defaults']['path_map']['themes_third_party'] = $config['theme_folder_path'] . 'third_party/';

And the Settings don't change as I update this file, nor are the input fields disabled. Updater appears to only use the settings in the database.

I'm using Updater 3.2.17 on EE 2.7.2


texts: ExpressionEngine with Publisher and NavEE

texts:
Recently, I upgraded EE v2.9 website to EE v5.3.2 which is multi-language website managed with Publisher. I am facing problem after upgrade. None of custom fields like Textarea, RTE etc populating content.
Another problem is that NavEE is being used to managed navigation and I can't find EE5 ported version for add-on Publisher NavEE Support


texts:
I am looking to show the total number of channel entries which do not have and empty matrix field.

For example I have entries which have a matrix field with customer information. I would like, if possible, to show all the channel entries which have no customer information added.

Any advice appreciated.

Thanks
Ben


texts: Solspace importer how to tell it which channel to import to?

texts:
I'm trying to set up an import profile with with Solspace Importer to upload CSV files with channel entries but I don't see any way of telling it which channel I want to import to.

Am I missing something fundamental here?

Thanks,
Alex


texts: How do I get error stack trace information for custom module

texts:
I am writing an module for EE 3 and when I am displaying data from a search I am getting this error but I am having trouble tracking down the root cause since it is not displaying an trace information and there does not seem to be an details in the apache log files, How do I go about about getting full trace information for this error?

Warning

htmlentities() expects parameter 1 to be string, array given

ee/EllisLab/ExpressionEngine/Controller/Addons/Addons.php, line 72


texts: How do I decode columns in the exp_sites table?

texts: I need to look at the contents of the site_system_preferences column in the exp_sites table. How do I decode this data?


texts:
I was wondering.. there is a plugin that provides the Safari push notifications for our ExpressionEngine websities?
there are a couple of plugins for wordpress, drupal and joomla


texts: How can I manually parse template code from PHP?

texts:
Is there a way to evaluate an ExpressionEngine template using PHP in a custom plugin?

I am using the Widgets plugin and want to create a custom widget type. I would like to define the widget output using an ExpressionEngine template.

So something like:

<?php
    echo evaluateExpressionEngineTemplate('{exp:navee:nav nav_title="main-nav"}');
?>


texts: Expresso Store 1.5.3, not submitting in IE

texts:
A site i'm looking after is using expresso store version 1.5.3 and recently they've been having problems in IE. The checkout form just refreshes the page instead of submitting the form, the order isn't processed when this happens.

The site does have a https error, it mentions that the Identity isn't verified, could this be causing the form to not submit or does the module just need updating?


texts:
I am using Store 2 as my e-commerce module, with the AJAX Form plugin to submit products to the cart.

My question is: Is there a way to detect if the item was added successfully and update the CSRF token?

I thought the below would work, but unfortunately not:

$(document).on('click', '.add-basket', function() {
    $('.add-basket-form').ajaxForm({
        success: updateCart,
        dataType: 'json'
    });
});

function updateCart(data, statusText, xhr) {

    if (data.success) {
        $("input[name=csrf_token]").val(data.csrf_token);

        var url = 'http://www.domain.net/site/embed-mini-basket';

        $('#masthead-mini-basket').load(url, function() {
            alert('success');
        });

    } else {

        alert('Failed');

    }
}

Thanks.


texts:
I was using view count on one of my templates, and recently I noticed it had stopped working. The only thing which is different about my set-up since the last time i noticed it was working was

I am now using Focus Lab's Master Config instead of the regular config file
I have set up both APC and Memcache, to speed up the site.

Will any of these things stop view count from working and if so, is there a way around it?

I have added $env_config['relaxed_track_views'] = 'y'; to the master config file but no success so far.


texts: I have an EE site configured via WAMP on my local computer-- that pretty much mirrors the site's production environment-- and I'm about to perform a clean OS install and am wondering what might be the easiest way to recover/restore my current EE site configuration to a clean WAMP install? I plan to copy entire WAMP directory, with all my sites in the "www" directory, and presumably any related configuration files. Has anyone performed this sort of migration before who could offer some guidance? Thanks in advance.


texts: I updated my installation of EE to 5.2.3 and now my file fields say "...loading" but do not load. Other fields work. I tried a fresh install but the same thing happens. I am wondering if someone might be able to offer me some advice.  Thanks.


texts:
I've got a cartthrob site where I have two product channels and then an "on_the_fly" product, where a user will enter their data for account number, price and client fields. Here is my add_to_cart code:

    {exp:cartthrob:add_to_cart_form
    allow_user_price="yes"
    entry_id="{entry_id}"
    on_the_fly="y"
    return="cart"
    tax_exempt="yes"
    title="Online Bill Pay"
    }
    <input type="text" name="item_options[account_number]" value="" placeholder="Account Number">
    <input type="text" name="price" value="" placeholder="Dollar Amount Owed">
    <input type="text" name="item_options[client]" value="" placeholder="Person Being Served">
    <input type="submit" value="Add to Cart">
{/exp:cartthrob:add_to_cart_form}

I would assume that would put an item in my cart titled: "Online Bill Pay" with the three options of account_number, price and client appearing in the cart. Only thing that appears in the cart is the title (obviously, its hard-coded) and the price.

And here is my cart template (the switchee conditional is hopefully used to help decipher between my two product channels and the one that I'm adding on the fly) which has no channel name. Perhaps there is a better way to detecting this -- if so I'm open to suggestions.

    {exp:cartthrob:cart_items_info}
    {if no_items}There's nothing in your cart{/if}
    {if first_row}
        {exp:cartthrob:update_cart_form return="/cart/"}
    {/if}
    {exp:switchee variable='{channel_short_name}' parse='inward'}
    {case value='events|workshops'}
        {exp:channel_images:images entry_id="{entry_id}"}

        {/exp:channel_images:images}
    {/case}
    {case value=''}

    {/case}
    {/exp:switchee}
    {title}
        {if dynamic}
            {exp:cartthrob:item_options row_id="{row_id}"}
                {options}
                    {option_value}
                {/options}
            {/exp:cartthrob:item_options}
        {if:else}
            {summary}
        {/if}
    Quantity: {quantity} @ {item_price}/ea
    Remove Item

{cart_total}

{/exp:cartthrob:cart_items_info}

To recap: I'm not getting the item options for account number or client in the add to cart form to show in the cart. In the cart, I'm unable to detect if this is an existing product channel or my on the fly, user-populated product. Can anyone please advise where I'm going wrong? TIA.


texts: mx notifier email link/path to image broken

texts:
when my email notification is sent when I create and entry using mx_notifier any images that are from an entry's text area field do not have the full path.

ie: they display as src="/images/uploads/pic.jpg"

instead of http://www.domain.com/images/uploads/pic.jpg

any way to change the src link to an image easily?


texts:
Just jumping into Resource Router by Rob Sanchez and hit a wall already. I've forgone the category URL indicator as I believe it works without it. I'm attempting to achieve the following URL structure:

/posts/ -Display a list of ALL categories

/posts/category_url -Display a list of entries belonging to the category

/posts/category_url/entry_url -Display an entry that has the category

I currently have:

$env_config['resource_router'] = array(
        'posts/:category/:any' => function($router, $wildcard_1, $wildcard_2) {
                // is segment_3 a valid URL title?
                if ($wildcard_2->isValidUrlTitle()) {
                    $router->setTemplate('templates/view');
                }   //is segment_2 a valid category URL title?
                elseif ($wildcard_1->isValidCategoryUrlTitle()) {
                    $router->setTemplate('templates/cat_entries');
                }
                else { //We're at the root - show category list
                    $router->setTemplate('templates/cat_overview');
                }
         }
);

The Valid URL title portion works but stumped on what I require to get the other 2 working. Any insight gratefully accepted.


texts: DB error when trying to update Stash to 2.5.7

texts:
This is on an EE2.5.5 install. After uploading Stash 2.5.7 and running module updates I get the following DB error:

A Database Error Occurred

Error Number: 1062

Duplicate entry '_last_activity-1-1-435704d2c60667f0c19a4f01903c2b85cd745d51' for key 'cache_key'

ALTER TABLE `exp_stash` DROP INDEX `key_session`, DROP INDEX `key_name`, ADD UNIQUE `cache_key` (`key_name`, `bundle_id`, `site_id`, `session_id`), ADD INDEX `expire` (`expire`)

Filename: third_party/stash/upd.stash.php

Line Number: 186

Any ideas? The rest of the install and the site appear unaffected by this.


texts: Default Value Radio Button and Form Question

texts:
I am new to EE and am faced with an issue on a clients site. They have two radio buttons that are in their code like this:

<script>
$('#shippingAdd').hide();
$("input[name=use_billing_info]:radio").change(function() {
    if ($(this).val() === 'y') {
        $('#shippingAdd').hide();
    } else {
        $('#shippingAdd').show();
    }
});
</script>

Is it possible to set the radio button to default to 'y' being selected? How do I change this? If setting a default value is not a viable option is it possible to change this to a pulldown menu?

I'm not sure exactly how the above code works. Any feedback/advice would be greatly appreciated.

Thanks in advance!


texts: Templates not being processed - tags are displayed

texts:
I've recently moved several ExpressionEngine sites from one server to another. Most are fine but one is now displaying template tags on the site itself. I don't really know where to start with this as I don't often work with EE. I've tried clearing the cache and making sure the file paths are correct. There are no errors in the server's error log.

I am looking for some help to diagnose this problem and find out what might need to be changed.


texts: What is best practice for protecting templates saved as files?

texts:
I've just discovered that all of the templates I'm saving to the filesystem are accessible through the browser if the name is known, and now I've got a case of the screamin' heebie jeebies.
For example, if I have a template-group/template arrangement such that the URL http://mysite.tld/news/recent delivers content, then when I point my browser at
http://mysite.tld/templates/default_site/news.group/recent.html
I'm then presented with all my raw template code.
Is this expected behaviour and if so why? Is there a native EE way to stop this from happening, or is it best practice to use rewrite rules at the web server?

I'd really like to hear from some of you on how you've dealt with this problem in your own sites.

Many thanks in advance,

Andy


texts: Limit the amount of entries a user can post?

texts: Is it possible to limit the amount of entries that a user can post. For example, if users are posting entries to a channel via a safecracker form, can I limit them to a single entry?


texts: Possible to remove p tags from a table cell in Wygwam

texts:
I have a problem that occasionally a <p> tag is being added to a table cell, usually when someone pastes something into it.

Is there a way to remove that <p> and just have the cell be an empty <td> or <th>, ideally without editing the source?

Is there an option that could be added through the advanced settings?


texts: Display the number of entries in a channel

texts:
I would like to display the total number of entries for a channel and nothing else is required to be displayed.

Is there a more efficient way to do this than the following?

{exp:channel:entries channel="products"}
  {if count == total_results}
    {count}
  {/if}
{/exp:channel:entries}


texts:
This is on EE 2.10.1.

Website Sessions are set to Cookie Only.

$config['sess_expiration']  = 1440;
$config['sess_expire_on_close'] = TRUE;

phpinfo() reports session.gc_maxlifetime of 1440;

User logs in, cookie is set. User closes browser and opens again and finds that the cookie has not been cleared and so they are still logged in.

How can we enforce session cookies to expire when the session ends?


texts:
{exp:ce_img:single} or the like outputs <img> tags.

Is there a way in CE to make it only output the @src value only?


texts: Add to Cart with Ajax loading entire page

texts:
<script type="text/javascript">
    $(document).ready(function() {
        $('#considerthis').click(function() {
            var url = $(this.form).attr('action');
            var data = $(this.form).serialize();
            $.post(url, data, function() {
                $('#ycgroup').load('/shop/_cart');
            });
            return false;
        });
    });
</script>

With this script its accessing url of GET http://localhost/shop/_cart 404 (Not Found) error.

by changing load('./shop/_cart') like this updating entire page.

anyway inputs an what i am missing here...

Thanks,

sus


texts: Is it possible to reset super admin access if all current listed super admin'ers no longer work for the organisation?

texts: We need to be able to edit those areas of the website which has super admin access only.  The current listed members of super admin'ers who were from our previous hosting company no longer support us as the hosting company closed down and we moved to a new hosting company.  We can only edit to 'staff' level of approval which for 90% of the content is fine but ultimately limiting.  How can we regain full control of the website?


texts: Low Search: not showing results from custom status

texts:
Search results are not showing from entries with a custom status. This is the code I'm using:

{exp:low_search:results query="{segment_2}" status="open|Home" disable="member_data|category_fields" channel="news-post" orderby_sort="entry_date|desc"}

If I change the status of the entry from 'Home' to 'open' it appears in results.


texts: Buy 2 get 1 free across all products in Expresso Store

texts:
I'd like to offer "buy 2 get 1 free" on my site which sells CDs. So if people put more than two items in their cart, the cheapest is free.

Using the "Buy X get Y" discount type, I can only seem to get this to work if they buy three of the same product, but if they buy three different ones.

Is there a way to do this in Expresso? Thanks for your help!


texts: Return tag name from a segment in Tagger

texts:
I'm pulling tagged entries via segment_3. When I'm showing this page, I'd like to have it titled "SEARCH FOR: {TAG}". Problem is that nowhere in the documentation can I tell where you can pull the tag name out from a segment....

Tried getting complex with this but it pulled all tags:

   <h1>SEARCH FOR:
    {exp:tagger:entries tag="{segment_3}" limit="1"}
      {exp:tagger:tags entry_id="{tagger:entry_id}"}
        {tagger:tag_name}
      {/exp:tagger:tags}
    {/exp:tagger:entries}
  </h1>


texts: 404 not working; bad URLs show only blank page

texts:
My website is displaying a blank page when incorrect/absent URLs are used. But I would like it to show a 404 page such as this template I've created.

I have tried to set my global template preferences, as recommended here, but each time I hit save it reverts back to "none" for the 404 template preference.

I have attempted to use codes such as:
{if no_results}
{redirect="404"}
{/if}

and

{if no_results OR segment_2!=""}
{redirect="404"}
{/if}

and have even changed "404" to a full URL ... All to no avail.

Oh, and I also created a global variable, {404} using
{if no_results}
{redirect="404"}
{/if}
as the content. (Grasping at all straws here!)

My EE and other coding knowledge is very basic, but I can generally understand basic instructions. I've tried searching online for the answer and am coming up blank.

Any advice?


texts:
I am working on a site that is on a subdomain with a structure that looks like this:

http://dev.domain.co/sites/project/

I would also like to remove the index.php. I looked at THIS THREAD to see if it would apply but the client has the additional /sites/project in the URL. Does anyone know how I would set up the htaccess to remove the index.php within this environment? I can't get my navigation to resolve correctly and the CSS doesn't show. Thanks in advance.


texts: How to get channel field data from a given entry id?

texts:
I want to get the channel field data from entry id in my custom module.
Is there any way to get the field data.
If anyone knows, please help


texts:
We run a really old website on EE2.... we're not in a position to upgrade for various reasons.
I've just come to hookup s3 with the Assets module and when putting the secret id and access key and searching for the bucket it gives me a php error. It does find the bucket name etc.

Can anyone identify how I can overcome this?


texts: How can I display sales tax in order confirmation email

texts:
I am trying to display sales tax in the order confirmation email but it does not appear to be available. Can I add my own variables that I want to make available in the email? If so, how and where would I do that?

thanks!

Update specifics

ah, well.. I thought that this was the support forum for the actual module but wasn't paying attention that it only said ExpressionEngine and not the actual module.

Anyway EE  v2.4.0 - Build: date  20120123 and it is the Store module by Exp-resso 1.5.3


texts: google calendar integration displaying upcoming events

texts:
We have a public google calendar and would like to make the upcoming events display on a page.

Is there a way to do this through EE?