texts: Disaster trying to upgrade EE1 to EE2 - need help!

texts:
I need some serious help guys!

I am running a large and popular website on ee 1.70. I want to upgrade to version 2 so this is what I did:

copied all files and folders, and made a backup sql file of the database
created a new database
created a new folder on the server called /test/
imported the sql file into the new database
copied all folders and files into /test/ folder and changed permissions where necessary.
Changed the config file to show the new database location

When I tried to log on to the control panel from here, I got a table error, and the advice found online was to start the ee2 upgrade. I'm sure this is where things went wonky.

I followed the upgrade instructions by renaming index.php and system and theme folders to _old. I uploaded the ee2 files. I restored some 1.x files. I ran the upgrade and it stopped part way through and gave me an ugly, non-css version of my site. I tried the upgrade again and had the same result.

Then when I went to my normal, live site, I got nothing but "Site Error: Unable to Load Site Preferences; Invalid Preference Data"! My site is gone! The real one! How did that happen?

I restored my original files and folders onto the server and am still getting the site error message. How do I get my site back? And how to I continue to upgrade in the /test/ folder if it won't complete?

I'm panicking :(


texts: Relationship field lookup in an EE plugin?

texts:
I'm in the unfortunate position of needing to fix a third-party plugin that was created under contract; the original developers are not available to fix it.

From within the plugin, I'll need to look up field data from a relationships field. e.g.: "shirts" has a relationship field that points to the "vendors" channel, which contains a field "email", so in php using the EE classes or raw SQL, I'd need to look up:

shirts->vendors->email

After a bit of Google'ing, I didn't find anything documenting the internal structure of relationship fields, or how this might be accomplished.

Any help would be appreciated!


texts: Solspace User: submit name with registration

texts: Can't find this anywhere, but can you let the user submit their first and last name when registering for membership using Solspace User?


texts: Check if category is assigned in channel entry conditional

texts:
I am trying to use templates in embeds depending on the users' category selection but I don't know how to check if a category has been assigned or not.

{categories}
    {if category_url_title=="full-page-review"}
        {embed="temp-group/.full_page_review" entry_id="{entry_id}"}
    {if:elseif category_url_title=="standard"}
        {embed="temp-group/.standard" entry_id="{entry_id}"}
    {/if}
{/categories}

This works fine as long as a category has been assigned in the entry, but nothing happens if the author forgot to assign a category. Is there a way to see if there is a category assigned or not while using a conditional like this?


texts: Make Matrix NOT display as a table in the backend

texts:
is there a way to make Matrix not display as a table in the backend, but simply as a group of stacked fields?

Both WordPress and Drupal have "field collection" modules/plug-ins where each item is presented as a mini-form instead of in table format. Assuming Matrix is the only way to achieve a similar field collection in EE, I'd prefer the mini-form format. Otherwise, when a Matrix field collection has a lot of fields, you end up with a very wide table.

Any way to do this? Thanks!


texts:
Seems a a beginner question, but what it is the Form Layouts inside the Manage Channels?

After creating a form layouts, what is its use? How to use it ??
I didn't remenber at all what it is a form layouts....

Thanks.


texts: How to create an email notification (incl email/password) for new members registered via CartThrob checkout process?

texts:
I have been building a new e-commerce site using CartThrob2, which is a great add-on I have to say.

However, one last issue is leaving me a little frustrated. I need to be able to automatically send out an email notification to newly registered members (which includes their email and password for logging in) once they have been through the checkout process and CartThrob adds them to the members section.

It's all working fine otherwise, but there isn't an event for new member registration or similar in the notifications settings of CartThrob.

I have read about and tried to use MX Notify Control, but that doesn't seem to work with CartThrob very well as no email comes through to the new member.

I have also read about Postmaster add-on, but after trying MX Notify Control and having no success I'm a little skeptical about paying for it unless I know for sure it will work. Plus it seems a bit overkill for what I need here.

Does anyone know of another way to do it?

Maybe creating a custom email notification withing the Design > Message Pages section on the CP?

Any ideas would be gratefully received.

Thanks.


texts: How To Call A Image Manipulation With Grid

texts:
I am trying to simply create a slider using Grid. The 'small' images would be the thumbs etc.

Have to say, I have worked on this for more then 2 hours trying to see what is up...but I am obviously hitting a block and missing something...maybe fresh eyes from someone else could help - thanks

Upload Directory: video_images
Image Manipulation: small
Grid Field Name: project_slideshow

Here is what I have but I cannot get this to load the 'small' image

            {project_slideshow}

            {/project_slideshow}

Here is the test page:

http://yourfishingbiz.com/index.php/main/video/this-is-a-test-video


texts:
I just updated all of my add-ons. I came up with an error during the update relating to Blueprints. Now, when I try to visit the Extensions page in the CP, I get this error. Any ideas?

Fatal error: Cannot redeclare class RJS_Hooks in /home/user/subdomains/dev/system/expressionengine/third_party/requirejs/core/RJS_Hooks.php on line 109

Thanks for your help!


texts: Freeform Pro : Where do I set the file size limit for a file upload field

texts:
I keep getting this error message:

The file you are attempting to upload is larger than the permitted size.

I can't find where I can set the limit in Freeform.

My PHP upload_max_filesize is set to 2M and the file I am trying to upload is less than 100K.


texts:
So I've been a bad web master and have been using EE 1.7.3 since 1.7.3 was the new hotness. I never upgraded to 2 once it became paid, nor did I update to Core. As can be expected, this is now causing problems with PHP versions and so on. So I backed up my entire website and grabbed the latest version of EE, only to find that if you're upgrading pre-3 you need to do it manually from 2.

The problem is, I cannot find a version of EE 2 anywhere to download. My original plan was to try and go from version to version so I could do a steady upgrade, but that doesn't seem to be a viable option. Are there any instructions out there on how I should go about this upgrade? I know I can't hold off forever, but I really don't want to have to start over, either.


texts: Is it possible to use EE, Structure and Playa to create multiple related listings and detail pages?

texts:
We have a single channel that holds all the information for one dataset, in our case, Producers.

We have multiple Event type channels, for each of the Events that our client holds every year.

We then add an entry which holds a relationship field to the Producer channel, so that we can show a list of Producers attending that particular Event.

This works fine, but can be labour intensive if for example 200 Producers attend an Event, as we would have to create 200 new entries in that particular Event type channel.

We thought Playa might make this a better admin process, as it allows you to multiple select relationships within one Playa field. Therefore, each Event type channel would have just one entry, that had a Playa field holding all the Producer relationships.

Trouble is, we can't get this to work with Structure, as Structure does not seem to recognise the individual relationships. The following code lists the Producers for an Event, but does not link through to the detail page as the {page_uri} variable for each listing is empty (this is why we presume the relationship is not recognised):

{exp:structure:entries}

    {exp:playa:children field="producers" limit="5"}

{page_uri}

    {/exp:playa:children}

{/exp:structure:entries}

Can Expression Engine, Structure and Playa work in this way, and if so, how do we correct the above template code?


texts:
Assets isn't resizing my too-large files as it should per the Upload Destination's maximum dimensions (reference here). I have this for an upload destination:

Upload Destination: General Images
Maximum Image Width (in pixels): 1600
Maximum Image Height (in pixels): 1600

Yet I am able to upload an image with the dimensions 3264 x 2448 and it does not resize it. This used to work just fine, and I've left it alone for a while, so it was a surprise that it's now not working.

(Incidentally, the reason I noticed it is because it caused a CE Image error. But that's a topic for another post.)

Anyone have any ideas?

Update: I am using ExpressionEngine 2.5.3, Assets 2.1, and CE Image 2.4.3. Local image storage (not S3). Also, my intention with the image resizing on upload was only to shrink files that are way too large to a manageable size (1600 px max in either dimension). Then the actual page-by-page image sizing would be handled by CE Image.

Update 2: I made a standalone phpinfo file and checked it. GD Support is "enabled", and GD Version is "bundled (2.0.34 compatible)".


texts: User registration and profile changes do not work on site with Expresso Store

texts:
I'm working on a site that uses Expresso Store for e-commerce. The store itself seems to work fine, however there are templates that use exp:user to register and update a user's profile that are not working as intended - upon submitting the register or update form, the page redirects to a blank page and does not register the user or update profiles of existing users. It seems at this point to be some conflict with Expresso Store, but I'm not sure where...

The site uses an SSL certificate for all sections, and both register and edit profile forms have secure_action="yes".

Expression Engine build is 2.5.5, Store is 1.6.4, and User is 3.3.9. Any help would be greatly appreciated!

Edit: The .htaccess file:

Solspace Static Page Caching: Site #1

RewriteEngine On
RewriteBase //www.vandykblueberries.ca/

RULE #1 - gzip

## Accepts GZ output
RewriteCond %{HTTP:Accept-Encoding} gzip

## Ignore POST requests
RewriteCond %{REQUEST_METHOD} !=POST

## Ignore EE Query requests
RewriteCond %{QUERY_STRING} !^(css|ACT)

## Override Cookie That Disables Caching
RewriteCond %{HTTP:Cookie} !^.*(static_page_caching_override).*$

## Override Segment for ToolBar
RewriteCond $1 !spc_override/*$

## Remove the index.php from the next conditional check, neutralize slashes
RewriteCond $1 ^(index.php/)*(.*)(/*)$

## Cache File Exists?
RewriteCond /home/vandykbl/www/manage/expressionengine/cache/1/$2/index.html.gz -f

## Redirect to Cache File
RewriteRule ^(index.php/*)*(.*)(/*) //www.vandykblueberries.ca/cache/1/$2/index.html.gz [L]

RULE #2 - normal

## Ignore POST requests
RewriteCond %{REQUEST_METHOD} !=POST

## Ignore EE Query requests
RewriteCond %{QUERY_STRING} !^(css|ACT)

## Override Cookie That Disables Caching
RewriteCond %{HTTP:Cookie} !^.*(static_page_caching_override).*$

## Override Segment for ToolBar
RewriteCond $1 !spc_override/*$

## Remove the index.php from the next conditional check, neutralize slashes
RewriteCond $1 ^(index.php/)*(.*)(/*)$

## Cache File Exists?
RewriteCond /home/vandykbl/www/manage/expressionengine/cache/1/$2/index.html -f

## Redirect to Cache File
RewriteRule ^(index.php/*)*(.*)(/*) //www.vandykblueberries.ca/cache/1/$2/index.html [L]

RULE #3 - Remove SPC Override Segment from URI

RewriteRule ^(.+)/spc_override$ //www.vandykblueberries.ca/$1 [L]

END Solspace Static Page Caching: Site #1

        RewriteEngine On

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


texts: How i can display article filter by age in ee2?

texts:
I am displaying age range by using following code.

{exp:channel:entries channel="article" search:age="1-20|21-40|41-60|61-80|81-100" limit="3" dynamic="off" sort="desc"}

{age}

{/exp:channel:entries}

so according to above code i am getting following result

41-60
1-20
21-40

now i want to get all article of age range ="41-60" as result when i click on range 41-60 how can i get this result ?

i am useing following sturcture for article entry


texts: Search Field Displaying Random Characters

texts:
I am having an issue with displaying the Simple Form Search field. I am getting a random string of characters. No form field appears too. Here's an example:

Any thoughts or ideas on how to resolve this?


texts: Searching multiple channels with Low Search, how do I direct the permalink to the correct template?

texts:
Might be having a brain fart on this one, but I'm using Low Search to search two channels and I cannot figure out how to direct them to the right templates. The results display, but I need the link to the entry to go to the correct page...

In Low's example they use this:

{comment_url_title_auto_path}

which is essentially replicating the permalink feature but without the option to direct it to a certain template. My if statements also don't seem to be working with {if collection=='xx'} either.


texts:
Using GWCode Categories for the first time and it doesn't seem to be working at all. I've installed the plugin (can see it in add-ons / plugins) and running {exp:gwcode_categories}{/exp:gwcode_categories} or any other tag doesn't do anything.

I'm running EE 2.7.3 and 1.8.9 for GWCode Categories.

Any ideas?

Thanks


texts: How to make EE ignore database table prefix when writing your own queries

texts:
I'm working on an ExpressionEngine 3.5.10 website. All my tables are prefixed with exp_

I've added 3 tables to my database to store some data relating to a custom written PHP ecommerce module. These tables do not use the prefix, and are called: ecom_orders, ecom_attendees and ecom_products.

In one of my EE templates - with PHP set on output - I've written the following to try and insert data in one of my tables:

 ee()->db->insert(
        'ecom_orders',
        array(
            'billing_title'  => $_SESSION['basket']['billing']['title'],
            'billing_firstName' => $_SESSION['basket']['billing']['firstName'],
            'billing_surname' => $_SESSION['basket']['billing']['surname'],
    // ...
    ) );

The trouble with this is that I get an SQL error because instead of using the table name ecom_orders, it's changing it to exp_ecom_orders.

How can I reference the table by the name I want (ecom_orders) and get it to ignore the prefix?

I checked the database class docs https://docs.expressionengine.com/latest/development/legacy/libraries/database.html but there's nothing in it about that.


texts: Show a channel field based on whether it has a value or not?

texts:
More questions I'm afraid!

Hopefully this will be an easy one.

I have a variety of customs fields, not all required. I want to show a block of code, based on whether or not that field has any information in it.

Now if i wanted to just show the field, I can just include it in my template, and if theres no information, it wont show. Fine.

However I want to do something like:

{if custom_field has a value}

blah blah {custom_field} blah blah

</div
{/if}

Hope that makes sense!

EDIT: Sorry, still not quite sure.
As an example, lets say I have a custom field called "twitter_handle" and that users can input their twitter usernames into it. They don't have to, so it could be left blank, or they could fill it in but I'd have no way of knowing what the value would be.

If I then wanted to show it in my template like so...

{if twitter_handle}

  Add me on Twitter
</div
{/if}

Is that right? So i would only get the code wrapped within the if's, provided twitter_username has a value?


texts:
I have a client which would like to be able to add Arabic, Russian and Japanese into EE fields.

I have never worked with foreign languages other than French so am wondering if EE works with foreign characters in fieldtypes?


texts: data-label not displaying with {grid_field:table}

texts:
data-label="{table:column_name}" and scope="col" disappears when loaded into template.

{table:table cellspacing="0" cellpadding="0"}

      {table:column_name}
      {table:column_name}
      {table:column_name}

      {table:grid_field_1}
      {table:grid_field_2}
      {table:grid_field_3}

{/table:table}


texts:
I'm using a playa tag pair to display some related information. But would like to include a field from a different channel entry in the middle of the tag pair. I tried closing the play tag par before the field and then opening it up afterwards and continuing the loop, but this didn't work.

Could anyone offer any advice?
Thanks

Here's my code, (the {tour_director_tour_specific_text} field is from the 'tour' channel not the playa related fields)

{exp:channel:entries channel='tour' disable="category_fields|member_data|pagination" dynamic="yes"}
                       {tour_to_tour_personnel}

{tour_director_name_first} {tour_director_name_last}{if tour_director_name_qualification}, {/if}{tour_director_name_qualification}.

{tour_director_tour_specific_text}

full biography and other tours

                        {/tour_to_tour_personnel}
{/exp:channel:entries}


texts:
Using MX Cloner (v 1.2.4) with EE 2.9.2 I get this error when saving a "cloned" entry:

"You are not authorized to perform this action"

From what I can tell, this only happens when the entry has a "Grid" element in it.  The entry looks good, but just won't save.  I'm logged in as the admin user.

Any ideas?


texts: Assets and Low Variables not compatible?

texts:
When I add an assets field to a Low Variable, it reports that it's added it correctly, however I then get a fatal error whenever I try to load the LV dashboard:

Unable to load the requested file: field/field.php

If I manually delete the row in the table, LV returns to normal operating status and all is fine.

Similarly, if I add an Assets field to a grid Low Variable, I don't get the above fatal error, however I get the following PHP errors:

A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: libraries/Core.php
Line Number: 409

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/--REDACTED--/system/codeigniter/system/core/Exceptions.php:170)
Filename: core/EE_Security.php
Line Number: 88

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/--REDACTED--/system/codeigniter/system/core/Exceptions.php:170)
Filename: core/EE_Security.php
Line Number: 89

Has anyone else seen these problems and is there a hotfix available to resolve it?

I'm running ExpressionEngine 2.9.2 and Assets 2.5

Assets in a channel entry works fine, so the bug seems to be with the compatibility with Low Variables.

UPDATE: The second error reported now appears to be happening on ALL assets modal windows within channels and with Low Variables.


texts:
We have a BrilliantRetail cart and I'm adding JSON data into an attribute named itemJSON.
In the cart template, we loop through the items in the cart using the {items}{/items} tag and I need to show certain values from the JSON stored in the attribute.

Using the

{itemJSON}

tag shows the full JSON. I only want some of the values stored there without having to use PHP in my template. Is this doable? Doing it like either of these fails, it shows the tag, instead:

{itemJSON->SP->FN}
{itemJSON.SP.FN}

Would there be a way to use preload_replace to do this?

Edited->showing code:
This doesn't seem to be working correctly:

$json = json_decode($this->EE->TMPL->fetch_param("json"), true);
$values["StudentName"]    = $json["ShortParticipants"][0]["FirstName"];
$values["CEState"]        = $json["ShortParticipants"][0]["CEInfo"]["CEState"];
$values["CENameOnLic"]    = $json["ShortParticipants"][0]["CEInfo"]["CEFirstName"]." ".$json["ShortParticipants"][0]["CEInfo"]["CELastName"];
$values["CELicencelabel"] = $json["ShortParticipants"][0]["CEInfo"]["CELicenseText"];
$values["CELicenseNum"]   = $json["ShortParticipants"][0]["CEInfo"]["CELicense"];
$values["CEHours"]        = $json["ShortParticipants"][0]["CEInfo"]["Hours"];
$values["course_text"]    = file_get_contents("http://".$_SERVER["HTTP_HOST"]."/files/getCourseText.php?EventCode=".$json["eventcode"]."&Cart=yes");

$vars = array((array) $values);

$this->return_data = $this->EE->TMPL->parse_variables($this->EE->TMPL->tagdata, $vars);

Also, in using the tag like you show:

{exp:tnajson json="{itemJSON}"}
    {if sku == "CE_FEE"}
    CE For Student: {StudentName}

    Course: {course_text}

    CE State: {CEState}

    Name On License: {CENameOnLic}

    {CELicencelabel}: {CELicenseNum}

    Hours: {CEHours}

    {if:else}
    For Student: {StudentName}

    {course_text}
    {/if}
{/exp:tnajson}

It shows this:

}}"}

And then none of the values.


texts: Can anyone explain what the cart field is on this table - looks like some sort of either serialized or encrypted field.


texts: Safecracker New Entry already filled out?

texts:
On my safecracker form I'm trying to allow each user to add 1 entry to be listed in a directory.  I just created a new account, trying to test the form, but it has the values from the previous account for some reason.  Heres the form

What did I do wrong?


texts: Is there an 'order_save' variable in exp:resso Store?

texts:
I'm trying to return the total saving for a basket, based on items bought that are on sale. Is this possible?

There's a {you_save} variable per line, but I'd like a total value including quantities to be displayed as "total saving" in the basket - 'order_save' or 'order_saving' would be ideal.


texts: Solspace Freeform : error notice in control panel

texts:
I've just installed the free version of Solspace Freeform 5.1.1 in ExpressionEngine 3.4.5. When I go to Add-On Manager > Freeform > Forms and go to edit my form I see this notification:

...this appears to be preventing me from editing the form fields.

Can anyone point me in the direction of how to fix this error please? Thanks!


texts: Pre-Sales: multiple content moderators and security

texts:
I'm trying to check if Expression engine is the correct product for a new project. I received the request from a customer to build a portal for a sporting association. This company organizes activities for a lot of different sports. Each of these sports have their dedicated content page(s) (with submenu). Each of these sports also has dedicated content editor(s) meaning which don't have access to the other sports. Each sports section should also have a dedicated agenda.

The main site will also have content moderators and a dedicated agenda for overall activities.

Could you advice me if Expression Engine is the correct product. Are their other alternatives? I need to be able to manage the security vary granular, common components in templates should not be modified by lower level moderators, etc...

Thanks, Eric


texts: Publish Channel Form entry with current zoo visitor account set in relationship

texts:
I have a Product channel for eCommerce that members can add entries to for sale on the website.

When a member creates the product, I want the Channel Form to set the value of the "Product Member" relationship field equal to the member who created it.

I am imagining a syntax similar to how I set the URL Title of a Channel Form entry.

<input type="hidden" name="product_member" value="{visitor:global:url_title}" />

Does anyone have any suggestions?

EDIT I found a solution before the answer posted. But Blatant's troubleshooting steps are correct nevertheless. After outputting the field using {field:product_farmer}, I was able to construct my hidden field to publish the new entry with the currently logged in user.

The end result is this syntax:

I noticed that relationship fields, whether they are one-to-many or many-to-many, use the same syntax (i.e. input type="hidden" name="custom_field_name[data][]" value="{entry_id}"). Zoo Visitor ID returns the channel entry ID of the currently logged in member.


texts: Specific Questions about Member Groups in ExpressoStore

texts: We have two products, and want people added to one member group or the other when purchasing.  If they purchase both products we want them added to a third member group.  Will this be possible with Store?


texts: Upgraded site from EE1 to EE2 but data in exp_matrix_data missing

texts:
As the title says, I've upgraded a site from EE1 to EE2 but data that I can see exists for entries in exp_matrix_data table is missing from the publish page, i.e. there's rows in exp_matrix_data whose entry_id column matches up with entries that should have matrix data, but when viewing the entry in the CP, Matrix says there's no rows yet.

Anyone come across that before?


texts: Two fields in Solspace Freeform - either one or the other must be filled out. Is it possible?

texts:
I am building a form using Solspace Freeform, and we have two fields for telephone numbers - one for landline and one for mobile/cell.

Is it possible for me to make one or other of these fields required? I.E. If the user fills out landline but not mobile the form will submit, if the user fills out mobile but not landline the form will submit, but if the user doesn't fill out either then the form will return an error?

Thanks in advance!


texts: How to Tell Difference Between status="closed" and {if no_results}?

texts:
I have a safecracker form I just converted to channel:form and I just changed it so when an entry is created it's automatically set to status="closed"

What I'm trying to do is display a message if the created entry is still being moderated (status is closed), display a message if there is NO entry created, or display a msg if there IS an entry created.. How do I tell the difference?

{exp:channel:entries
channel="personal_trainer_directory"
limit="1"
dynamic="no"
author_id="CURRENT_USER"
status="closed"
}
    ***DISPLAY IF STATUS IS CLOSED***
{/exp:channel:entries}

{exp:channel:entries
channel="personal_trainer_directory"
limit="1"
dynamic="no"
author_id="CURRENT_USER"
}
    {if  no_results}
    ***DISPLAY IF NO RESULTS***
    {/if}
    ***DISPLAY IF THERE IS A RESULT***
{/exp:channel:entries}


texts: Repeating layout blocks within and across pages without a bunch of embeds?

texts:
I've currently got a project on my plate where content is presented in blocks of a few different styles, for instance:

A: Introduction area with large graphic, headline, and copy
B: Carousel/slider with headline, slides, and copy
C: Testimonial block with headline, photo, quote
... and so on.

One page might might call for a layout combination of ABBCBA, another CBBA, and so on. There are a finite number of predetermined combinations.

I'm currently planning on using Blueprints to select the template and manage the publish layouts; the vast majority of pages will live in a single channel. A page with an ABA layout (selected with Blueprints) would utilize the following fields:

Pages Channel

Block A1 - Headline (Text)
Block A1 - Graphic (Assets)
Block A1 - Copy (Wysiwyg)
Block B1 - Headline (Text)
Block B1 - Slides (Matrix)
Block B1 - Copy (Wysiwyg)
Block A2 - Headline (Text)
Block A2 - Graphic (Assets)
Block A2 - Copy (Wysiwyg)

For a page with an ABA layout, I could setup an ABA template, like this:

{embed='blocks/block_a' headline='{block_a1_headline}' graphic='{block_a1_graphic}'}
{embed='blocks/block_b' headline='{block_b1_headline'}' ...}
{embed='blocks/block_a' headline='{block_a5_headline}' graphic='{block_a5_graphic}'}

I've been paying enough attention to chattering within the community to know that including a huge pile of embeds like this is bad news for performance; I'm starting to wrap my head around Stash, but, I haven't seen any examples that appear to relate to the problem I'm trying to solve here.

Bottom line: is there another approach that will work with less overhead, or, is this acceptable, assuming there's adequate caching in place to keep load times snappy?

Could I use a snippet for each block type, and somehow pass the different entry fields to them?

Why not Playa with a channel for each block type? This site will have 150+ pages, each with several blocks that are unique to that page. Managing that many entries would be a huge hassle for content editors.

Why not Content Elements + Mason? We're concerned about multi-lingual and workflow compatibility with Publisher, and possible issues with search.

Your help, suggestions, and feedback will be greatly appreciated. Thank you!


texts:
Is it possible to assign a group of members some permissions based on channel?

For example, assume that I have channel_1 and channel_2, and group_1. Can I give group_1 edit permission to all entries in channel_1 but not allow them to edit entries in channel_2? How? The documentation is not clear on that.


texts:
I am trying to get the current entry's related entries by using stash
main article full view:
{exp:channel:entries channel="blog" dynamic="yes"}
{exp:stash:get name="my_custom_field"}
{/exp:channel:entries}

Related article list:
{exp:channel:entries dynamic="no" search:my_custom_field="{exp:stash:get name="my_custom_field"}"}
<li>{title}</li>
{/exp:channel:entries}


texts: Is there a way to make Postmaster receiver email dynamic?

texts:
I have a channel called foo which is tied up to a member via Safecracker Registration.

The foo channel has a field for an email.

When someone edits a foo channel entry, I want to send an email to the owner of the channel entry.

Is there way to in the Parcels/Hooks so that the email can be sent to the user via the email field?


texts: Conditionals in Low Seach examples giving php errors

texts:
I'm having two PHP Errors while testing a basic Low Search example. The code can be found here.

The errors shows only while logged in (afaik as super-admin). I'm using EE 2.8.1. Results are working fine.

  A PHP Error was encountered

  Severity: User Warning

  Message: Invalid EE Conditional Variable: {if low_search_category ~ '/\b'.category_id.'\b/'}

  Filename: libraries/Functions.php

  Line Number: 2640

  A PHP Error was encountered

  Severity: Warning

  Message: Cannot modify header information - headers already sent by (output started at /home/colegios/public_html/system/codeigniter/system/core/Exceptions.php:170)

  Filename: core/Common.php

  Line Number: 442

Found this at EE bug; but I don't know how to solve it? Should I upgrade to a newer EE2 version? 2.8.1 is stable for me and I want to avoid problems with others addons.


texts: I want to delete an empty upload destination in ExpressionEngine, but can't find the appropriate option. Would be grateful if someone knowledgeable could point out the button I should click to get rid of the upload destination I don't need.


texts: How can I collect order delivery date/time in Store?

texts:
Any ideas on how I could collect order delivery date/time in Store.

Best wishes
Lee


texts: EE2 Control Panel Error: Unable to load the following extension file: ext.rte.php

texts:
I am trying to migrate EE2 application to a new server. There are a bunch of errors. When I try to open the CP(EE system folder), it shows up without loading CSS correctly. After I login, it gives error message below:

Error
Unable to load the following extension file:
ext.rte.php

Does anyone have an idea how to solve that error? Thanks.


texts:
Looking for a Freeform replacement for EE5 - as I understand it Freeform (my usual go-to) is now a commercial add-on so looking for a replacement/equivalent solution. Does not need tons of complex functionality - just basic fields and an anti-Spam Captcha capability.

What is the - free - add-on of choice here?


texts: Solspace User forgot_password return link broken

texts:
EE 2.11.5

User 3.5.3

Everything about my Reset Password chain of templates works, except for the return link in the forgot_password form.

{exp:user:forgot_password
    secure_action="yes"
    secure_return="yes"
    secure_reset_link="yes"
    return="members/forgot-sent"
    password_reset_template="members/reset-password/%id%"
    password_reset_email_subject="Password Reset Request"
    password_reset_email_template="members/_password_reset_email_template"
}

After the form is submitted, instead of getting redirected to:
https://domain.com/members/forgot-sent, I get redirected to: https://domain.com/https://domain.com/members/forgot-sent

Which brings me to a blank page with just the following error: The URI you submitted is not allowed.

I've tried adding a beginning slash and putting in the full URL in the return parameter, but no matter what, that return parameter is not working.

I go back to the email that was sent, click on the link to the reset page, and using the create new password form, everything works fine. I even have on my reset form a return parameter that DOES work fine.

{exp:user:reset_password
    reset_code="{segment_3}"
    return="members/login/success"
}

So only the return parameter on my forgot_password template code is not working properly. Any ideas?


texts: How do you remove a page from the website?


texts: How can I make dynamic Grid (or Matrix) fields in the control panel?

texts:
I have two Grid fields, the first of which is a Relationship field.
I need the second Grid field's format to change based on the selection made in the first field.

For exmample:

If Grid Field 1 = A then Grid Field 2 = Text Input
If Grid Field 1 = B then Grid Field 2 = Time
If Grid Field 1 = C then Grid Field 2 = Date

...and so on.

Is this possible?


texts: How do I create a select on a frontend template from custom member data?

texts:
So, in a member profile, I have created a custom field for company_state as a select and its populated with the US States. I cannot for the life of me figure out how to render out a select with those options for selection in a frontend form (I am using Solspace User's user:edit if it matters.)

Anybody know how to do this? Would be much appreciated.


texts: CE Cache not working with ExpressionEngine v2.8 Template Layouts - any workarounds?

texts:
Just starting to setup a new project, and using ExpressionEngine v2.8.x with its new Template Layouts functions. Problem is that if I have the CE Cache tags in the setup, and have set to dummy while I'm developing, it will break the Template {layout} tags.

Here's the template code with CE Cache that breaks:

{layout="_layouts/base" title="The Title"}

{exp:ce_cache:it id="page-home" tag="home" seconds="14400"}

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

{title}

    {cf_content_body}

    {layout:set name="page_title"}
        {title}
    {/layout:set}
    {layout:set name="page_description"}
        {cf_content_summary}
    {/layout:set}

{/exp:channel:entries}

{/exp:ce_cache:it}

And here's the same code without CE Cache that does work:
    {layout="_layouts/base" title="The Title"}

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

{title}

    {cf_content_body}

    {layout:set name="page_title"}
        {title}
    {/layout:set}
    {layout:set name="page_description"}
        {cf_content_summary}
    {/layout:set}

{/exp:channel:entries}

If anyone has any kind of solution, I'm up for it or at the least some acknowledgement that it's a known problem and it's being worked on in the devotee thread that starting back in March 2014 (http://devot-ee.com/add-ons/support/ce-cache/viewthread/12978).

Thanks
Brendan


texts: Matrix and Solspace Importer issue with saving properly

texts:
I'm not sure which plugin is at fault here, but here goes. Using the latest version of all plugins, and EE.

I have an Importer task to create entries, from a feed of about 20. One field in this feed is an of images and alt text. This is mapped correctly to a Matrix field, and seemingly importing fine for all entries. See below.

However, for some entries, when attempting to output in templates, these rows in the Matrix field aren't being displayed.

{if '{images:total_rows}'}
    {images}
        {image_src}
    {/images}
{if:else}
    no img
{/if}

What's more, using the above code, you'd expect even if there was a problem with mapping, that {images:total_rows} would return false, and print no img. This isn't the case, and the whole code is seemingly skipped over.

What makes me think this is an issue with Importer, is if I go to the offending entry, where I can see the rows in the Matrix as above, and re-save that entry (without changing anything) the templating works as expected. Is it somehow possible Importer isn't saving the Matrix field properly after importing?


texts: How to fix EE 500 error, cannot use 'Bool' in Lexer.php?

texts:
One of our websites http://mooseheadlakeedc.com is down, here's what our server technicians said about it:

  It appears that there is an issue with Expression Engine that is
  causing a 500 error when loading the page. The error is:

  PHP Fatal error:  Cannot use
  EllisLab\ExpressionEngine\Library\Parser\Conditional\Token\Bool as
  Bool because 'Bool' is a special class name in
  /home/mooseheadlakeedc/public_html/system/EllisLab/ExpressionEngine/Library/Parser/Conditional/Lexer.php
  on line 9

  Based on some Googling of the issue, it appears that this issue has
  been resolved in newer versions of Expression Engine and updating it
  should resolve the problem.

I'm new to expression engine and haven't developed on it before, and due to the error am unable to log into the back-end to perform the update. I also couldn't find the info on google he appears to have found. Does anyone have any idea how to fix this issue?

Thanks for your help.


texts:
I got a weird one here, so I don't expect an exact answer, but more of a pointer in the right direction:

I'm working on a site and everything works as expected on my local server, but when I move it to staging server, images in a file Matrix column don't "stick" so to speak. When I create the entry, everything is normal, it actually seems to populate the DB since the entry appears on the site just fine, including the images, but when I go back and try to edit that same entry, the images are gone from the Matrix field (and not from plain old file fields). If I save the entry again, the images don't show up anymore on the site so it's not a problem of thumbnails not showing up on the publish page… Matrix seems to not be able to tell that images are in that field and they show up as empty on the publish page even though the images show up on the site.

The only difference I can think of is the server's setup. My local MAMP which works fine runs PHP 5.3.14. The server where Matrix doesn't work runs PHP 5.4.8.

The site runs on EE v2.3.1 + Matrix 2.2.2.1

As I mentioned before, any pointer in the right direction would be more than enough. I just don't even know where to start to troubleshoot… Thanks!


texts:
Updating a site I want to get rid of Structure and move to NavEE. I have set all channels to 'unmanaged' and than disabled and removed Structure.
Now I'm getting an error after editing and submitting an existing entry:

The requested module is not installed: structure

Any ideas what to do about this?
I can go back to a earlier version and do things different. But how?


texts: How do I include a Grid field in Channel Form

texts:
I have a channel form with a lot of fields, so many in fact, I am about to max out the field group's limit. I would like to use the Grid field to reduce the actual number of custom fields in the group.

Here is the current code I am using to capture input on the form:

{exp:channel:form channel="name" class="order" return="liners/confirmation" }

        Azalea Native
        $2.25
        $2.00
        $1.75
        $1.50
        $0.70
        $0.85
        $1.00
        <input type="text" name="az_native_1g_spr" value=""/>
        <input type="text" name="az_native_2g_spr" value=""/>
        <input type="text" name="az_native_series_3g_spr" value=""/>
        <input type="text" name="az_native_series_1g_fall" value=""/>
        <input type="text" name="az_native_series_2g_fall" value=""/>
        <input type="text" name="az_native_series_3g_fall" value=""/>

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

I just need some guidance on how to integrate the Grid field values which are like this:

Grid field name: grid_name

Grid column names: 1_gal_spr, 2_gal_spr, 3_gal_spr, 1_gal_fall, 2_gal_fall, 3_gal_fall

I would normally use {grid_name:1_gal_spr} to reference that information, but when I include the curly brackets in the form it throws an error.

What is the correct way to do this?


texts:
OK, I had a site working and today when I went back to it some strange issues are happening.  I'm not sure what I did, if anything.  But more importantly, I can't figure out what to do!

Originally I had my .htaccess file set to remove the index.php from the URL.  In the CP, under General Settings, I had the "Name of your site's index page" as blank (per a recommendation).  Everything seemed to be working.

Today, any of my page links (ie mysite.com/page) simply show the home page (I've tested by adding and removing text from the home page template).  I thought it was my .htaccess file so I replaced it with the one that Ellislab has in their documents.  If I add the index.php back (ie. mysite.com/index.php/page), it works.  However, the index.php is still showing up in the URL even though my .htaccess file is supposed to be removing it!

When I put my .htaccess file back, it removes the index.php, but then just shows the home page content again!

I don't know if I've inadvertently changed a setting or something, so any help or advice is greatly appreciated.

Todd

PS - This is an MSM site, and this is "Site 2" in the group.  Again, it has been working the past few days while I was working on setting up the custom fields, etc....


texts: CartThrob 'Gift Certificates Applied' Shows Wrong Amount

texts:
I'm running into an odd issue with CartThrob's gift certificates that doesn't seem to be turning up any google results, so I'm hoping someone can help point out what I'm doing wrong or share if they've run into the same issue.

In my shopping cart (and my checkout page, but they're both displaying the same chunk of code so we'll stick with this one) I have the following chunk of code showing order totals & associated information:

{exp:cartthrob:cart_info}
    Subtotal:
    {cart_subtotal}
    {if "{cart_shipping}" != "$0.00"}
        Standard Shipping:
        {cart_shipping}
    {/if}
    {if "{cart_discount}" != "$0.00"}
        Discounts:
        -{cart_discount}
    {/if}
    {if "{exp:cartthrob_gift_certificates:applied}" != "$0.00"}
        Gift Certificates:
        -{exp:cartthrob_gift_certificates:applied}
    {/if}
    {if "{cart_tax}" != "$0.00"}
        Estimated Tax:
        {cart_tax}
    {/if}
    Total:
    {exp:cartthrob_gift_certificates:cart_total_minus_gift_certificates}
{/exp:cartthrob:cart_info}

For my example cart, which has no tax and no discounts, and for which I have not applied a gift certificate (No gift certificates have been applied in this session at all), I see the following:

http://cl.ly/image/060u1n182I2D

  Subtotal:
  $5.00
  Standard Shipping:
  $6.00
  Gift Certificates:
  -$2.00
  Total:
  $11.00

Which shows the correct subtotal, shipping and total, but shows a phantom $2 discount that's not actually applied to the total.

Has anyone seen anything like this happen with CT gift certificates?  Any thoughts about how to fix the issue?  It seems like the total behavior is correct (no gift certificate applied) but the number output by cartthrob_gift_certificates:applied is incorrect.


texts: Why is timezone_menu returning a PHP formatted timezone instead CodeIgniter formatting (e.g. 'UP10') after upgrade to 2.6.1?

texts:
After upgrading ExpressionEngine from 2.5.2 to 2.6.1, the Member module now sets the member's localization to PHP format eg. 'Australia/Sydney' in the exp_members table.  So, when my site calls EEs Localize class it returns the PHP format instead of the CI format, that is it should return 'UP10' instead of 'Australia/Sydney', generating this error:

Severity: Notice
Message: Undefined index: Australia/Sydney
Filename: libraries/Localize.php
Line Number: 735

It may be that there is a bug in the javascript generated by the CI Date Helper function timezone_menu(), because the  tag should be generated with the latter time zone codes (i.e. Sydney).

The code for the localization_form view is generated on line 1563 of mod.member_settings.php:

'form:localization' =>  ee()->localize->timezone_menu(($query-  >row('timezone')  ==     '')
? 'UTC' : $query->row('timezone'))

The javascript function that is generated is called 'ee_tz_change' (why the 'ee_' prefix in a CI generated function?).

The mod.member_settings module generates the localization form for the user using the Localize class in the edit_localization() function.

The Localize class uses the CI Date helper timezone_menu() function to generate a localization menu, but this provides the string 'Sydney/Australia' in the  tag, which means this is what is passed back to the update_localization() function in mod.member_settings.php.

See line 1593 in mod.member_settings.php:

$data['timezone'] = $_POST['server_timezone'];

Am I missing something really obvious here?  Where is this ee_tz_change js function coming from???


texts: Number of questions about Expresso Store

texts:
I am almost done with this site, but the client has a number of requests that I don't really know how to address within this specific plugin. Most of the issues involve the form fields. Since you guys don't actually have HTML form fields in the template code, it makes it a bit difficult to apply normal parameters that would normally take care of these issues.

I haven't found the answer to my questions elsewhere in stack exchange, so I'll ask here…

As you know, when logged in, the checkout form changes, to no longer contain the username/password registration fields.  However, it does have them refill in their contact info, and when the user uses their registered email it says that "that email is not available" - meaning it's still running the email validation check as though they are registering.  Meaning a customer making a subsequent purchase would need to use a new email every time. Is there some parameter I'm not seeing?  We do want people to put in their email for the order, and it is autofilling that, if they're a registered, logged in member, but how can I stop it from requiring a new email and running that registration?  Seems like a bug.
For new users, the client wants the customers to use their email address as their username (for ease of remembering it later).  Is there some way to have the field capture its contents from the email address entered above, when they tab to that field?
Is there some way to add a mask to fields like phone number - (000) 000-0000, and zip code?  You guys don't use regular HTML form fields in your template code, so it's not really as simple as adding the mask to the form field parameters.

Thanks!
Brooke


texts:
Is it possible to use the EE Classes within a template?

Are they only available for add-on development?

Thanks,
Patrick


texts:
{exp:channel:categories channel="News" style="nested"}

    {category_name}

{/exp:channel:categories}

This code generates a nav unordered list of all the categories.

The categories are: News, Video, Press Releases. When users are on the 'news' page how do I give that category  an 'active' class in the nav so user understand they are on that page.


texts:
I am trying to show an active class if an entry is being viewed but my conditional's are not working:

{if last_segment == '{url_title'}  class="active"  {/if}

I am using an embed of a list of entries on a product detail page.  I want the active entry to have a class of active

This is not working even though last_segment and url_title are the same

this is my embeded template:

{exp:channel:entries channel="products" category="{segment_3_category_id}"}

{title} &raquo;

    {/exp:channel:entries}


texts: Basic conditionals not working after update

texts:
I just did some really really basic updates to my site, and now I'm having some extremely weird behavior. Take this conditional for example:

{if '{expiration_date format="%U"}' <= '{current_time format="%U"}'}

Despite outputting both these variables between comment-statements and actually seeing that expiration_date is higher then current_time (i.e. 1358865518 / 1358336648) the result is still being output.

Now in another template I'm using MX Calculcator in a conditional to check for certain entry-counts ({exp:mx_calc expression="mod(({count}-10),19)"}), which was working just dandy til 5 minutes ago, and now always resolves....

Has anyone ever had this before? The only changes I've done are to templates...


texts: Has anyone saved JSON in a custom member field? I have a big array I'd like to tie to member registration. I'm using the User module to register. Thoughts?


texts: Categories - Hiding Children based on login

texts:
Lets say I have The Parent Category which is GEORGE. George has 2 child categories Susie and Mike.  If the user is on the website and is not logged in, they should only see Susie. If they are logged in they should see Mike and Susie. Problem.

GEORGE has to be selected to see Mike and Susie inside the same channel, how do we exclude Mike if the user is not logged in.

What I have tried.

{if member_group == "10"}
  {exp:channel:entries channel="products" dynamic="yes"}
    {if last_segment == "Mike" }
      {redirect="products"}
    {if:else}

Which works, but if im not logged in and are on Susies directory I see the product from Mike, I realize segmenting will not work for this particular issue.  That the content needs to be filtered.  Any suggestions.


texts: Sessions getting killed by IE9 (user-agent mismatch?)

texts:
I have a customer who is losing their session. They are on Windows 7 and using Internet Explorer 9. I think I've widdled it down the user agent changing when compatibility mode or chrome frame kicks in, but I wanted to see if anyone else had an opinion.

If it does in fact have to do with a user-agent mismatch, is there a way, and would it even be acceptable to disable user-agent matching on sessions?

Thanks for your help!


texts: Is there a way to specify where store.js is added to the page?

texts:
Working on a product page using Expresso Store and I'm encountering an intermittent javascript  error:

Uncaught TypeError: undefined is not a function - store.js:142

It looks like a dependency problem (store.js depends on jQuery). The store.js is being added to the page asynchronously in the footer of the {exp:store:product} tag whereas jQuery is added to the page at the bottom of the page, just before the </body>. Depending on network performance and what is cached in the browser, occasionally the store.js loads before jQuery has loaded.

I dont want to move jQuery to the page header, so is there a way to specify where Expresso injects its JS (eg: a special JS template tag) or is there a way to force the store.js script tag to be synchronous and hence enforce the script loading order?


texts:
Here is the situation. I have two channels; one is "calendar_events" and the other one is "projects" and there is a relationship field, "event_related_project" to relate that particular event to a specific project.

{title}

{project_tagline}

        {project_description}

Related Events

            {parents field="event_related_project" orderby="date" }
                {if parents:no_results}

No related events are found.

                {/if}

{parents:title} / {event_start_date format="%F %d, %Y"}

            {/parents}

Related News

            {parents field="news_related_project" orderby="date" limit="3"}
            {if parents:no_results}

No related news are found.

            {/if}

{parents:title} / {parents:entry_date format="%F %d, %Y"}

            {/parents}

It can display all the related events under a specific project but I cannot display the "event_start_date". I also tried to make the list wrapped by the {exp:calendar:events} pair tag but the result does not show correctly. May someone help?
Thanks,
Chris


texts:
I have a store on EE 2.9.0 with Store UPS shipping.

But I cannot reach Domestic Ground when the user has to choose his shipping mode.
I'm in Canada and need to ship in Canada but it looks like the extension is created for USA.

In the file on the extension I had:

    '03' => 'Domestic Ground',
    '12' => 'Domestic 3 Day Select',
    '01' => 'Domestic Next Day Air',
    '14' => 'Domestic Next Day Air Early AM',
    '13' => 'Domestic Next Day Air Saver',
    '02' => 'Domestic Second Day Air',
    '59' => 'Domestic Second Day Air AM',
    '11' => 'International Standard',
    '65' => 'International Saver',
    '07' => 'International Worldwide Express',
    '54' => 'International Worldwide Express Plus',
    '08' => 'International Worldwide Expedited',

But I talked with UPS Canada and they said Domestic Ground number 20

Has anybody the same problem before?


texts: save_entry or submit_new_entry Channel API Methods: How do you store module field data?

texts:
I am working on an add-on solution where I would like to create a channel entry and set a value to a module custom tab field for that entry.

Here's some code to share what I am up to:

$this->EE->load->library('api');
$this->EE->api->instantiate('channel_entries');

// Build data array
$data = array(
    'author_id' => $member_id, // Member ID
    'title' => $title,
    'entry_date' => $date,
    'modl_giving_impact_member_opportunities__opportunity_id_token' => $opportunity_id_token, // Giving Opportunity token
    );

// Add new entry into channel
$this->EE->api_channel_entries->submit_new_entry($channel_id, $data);

Here's how I am attempting to target the module field:

modl_giving_impact_member_opportunities__opportunity_id_token

[module class name]__[field name]

Entry is being created but no luck with module field data being stored.

Anyway know how to properly include module data field data in my $data array?


texts: Assets problem uploading large files to Amazon S3

texts:
I am having an issue with Assets when trying to upload large-ish .mp3 files to an Amazon S3 bucket.

Here is my setup:

ExpressionEngine v2.5.5
Assets v2.1.2
PHP v5.4.10 (via MAMP)
Dedicated Amazon bucket (tested with smaller image files and is confirmed to be working and accepting uploads)

I have adjusted my php.ini settings to the following values:

post_max_size = 500M
upload_max_filesize = 500M
max_execution_time = 600
max_input_time = 600
memory_limit = 128M

While trying to upload a .mp3 file that is 120MB in size (it's a podcast), I get the following error in Assets:

  Could not upload the file - server returned an unexpected response. Please check the server settings.

Checking the PHP error log, this is the message I see:

  [05-May-2013 14:19:33 America/New_York] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 80987568 bytes) in Unknown on line 0

That's a lot of memory Assets is trying to use. I'm not sure how Assets deals with big files – does it try to load the entire contents in memory and then upload? Any other settings I could try?

A quick note – I did try uploading a 15MB .mp3 and that worked without problem.


texts: Cartthrob abandoned carts for non-logged in users

texts:
Has anyone been able to get the Cartthrob abandoned cart plugin to work for "guest" shoppers (i.e. they aren't logged in with an account)?

The checkout process is a single form to enter address details which then goes to an offsite payment gateway. I was hoping that once the address details were completed the user's email would be logged against their cart.

I thought that the plugin would do this out of the box but it doesn't appear to be the case. It will only store the email address if the user is logged in (the abandoned cart email function worked perfectly in this case).

Am I just doing something wrong, is this a bug, or is it just something that the plugin doesn't do?

I've also tried creating an account on checkout but this doesn't seem to happen until after the checkout process is complete.

The documentation isn't amazing and doesn't really clarify how the plugin should work. However it does mention guest checkouts which indicates that this should work as I expected. Do I have unrealistic expectations of this $500 plugin!

I have a support request in with Cartthrob/Vector but haven't heard anything back yet and I'm keen to try and resolve the issue one way or the other.

UPDATE
I've hacked around this problem for now by modifying Cartthrob's checkout method to add the customer's email address to the cart when they checkout.

It looks like the plugin only adds the email when the add to cart method is called. So obviously if they haven't entered an email at that time it will never work.

If the behaviour could be triggered on other actions that would make it much easier to log the email address and make this plugin more useful.


texts: Advice with Cartthrob product variation when product is tax exempt

texts:
Looking for some advice with Cartthrob product variation when product is tax exempt.  The checkout only applies the tax exempt to the first item in the product variation row.
If I have 3 product variations with 3 different prices, only row one is tax exempt
{if tax_exempt == 'Yes'}<input type="hidden" name="tax_exempt[{count}]" value="{tax_exempt}" />{/if}


texts: Getting count to work for playa field within Matrix

texts:
I've got a page which is displaying information based on a playa entry within a matrix field, when using the matrix :search parameter, this works as intended. But I need to be able to use the {count} tag. The problem is that the image thumbnails and information for each matching entry are simply looping, so the {count} just displays 1 for each of the returned results. I would like them to be 1, 2, 3, 4 etc. I have tried all the other Matrix tags, such as {row_count}, {total_rows}, {field_row_index} etc. but none of these do the job.

If any one could offer any guidance, or other ways round this, I'd be grateful. Thanks.

{exp:channel:entries channel='profile-entry' disable="member_data|pagination|categories" orderby="surname" sort="asc" dynamic="no"}
{services_new search:parent="{segment_3}"}

{title}

{profile-position}

{/services_new}
{/exp:channel:entries}


texts: Two registration forms with two different member groups

texts:
Is it possible, maybe with Freemember or another free module, to choose the member group a member is assigned during registration?

I need two forms, each one assigning a different member group .

Can I do this without an add-on like Zoo Visitor or User by solspace?

Thanks in advance for your help.


texts:
My client is forever concerned with making big changes in EE. For instance, using Structure to reorder pages, or renaming entire sections of the site.

I'm wondering: Are there any add-ons that can essentially take a snapshot of the current state of the site, then allow you to roll back to that state if you make a destructive or unwieldy change, or just plain break something?

ideally this would be something that works in the EE system and won't require any manual DB backups or anything.


texts: Freeform - required fields blank after errors

texts:
I'm using Freeform 4.2.0 and EE 2.8.1 .  I've got the form below, with required fields. Freeform does recognise that the fields are required and returns the error messages, but any correctly filled out fields are blank.  Is there a way to make freeform remember the correctly filled out fields when returning errors?

  {exp:freeform:form
    form_id="3"
    form_name="student_bookings"
    return="/student-accommodation/thank-you"
    notify_admin="yes"
    admin_notify="email@email.com"
    notify_user="yes"
    user_email_field="student_email"
    user_notification_template="student_user"
    inline_errors="yes" required="property_details|rent_agreed|deposit_agreed|room_type|student_name|student_address|student_tel_number|student_email
}


texts: Can I use a 'Select' Statement in my EE 2.5 template

texts:
I am trying to use a SELECT statement to call in some information.

CODE:
$qry = $this->EE->db->query('SELECT col_id_1, col_id_2, col_id_3 FROM exp_matrix_data');

I get this error when I try to use the data:

A PHP Error was encountered
  Severity: Warning
  Message: mysql_num_rows() expects parameter 1 to be resource, string given
  Filename: libraries/Functions.php(680) : eval()'d code
  Line Number: 1552

So... my question is, Can I not use the 'SELECT Statement' like this in EE ?


texts: How to get {channel_short_name} from Solspace Rating {exp:rating:entries}?

texts:
I'm using Solspace Rating to let users rate and review entries. I have many different channels and each channel has their own rating sub-category names saved as global variables. For example, for the channel "Venues" I have global variables like {venue_1label}, {venue_2label}, {venue_3label}, {venue_4label} for the names of the 4 rating subcategories. You can see an example of this here: http://www.weddingwise.co.nz/vendor/kumeu-valley-estate#h1-reviews. On the right side of each review there are 4 sub-ratings below the overall rating. Every channel has a different set of sub-rating labels.

These global variables use the {channel_short_name} of the rated entry as part of the variable name, so when I'm displaying the ratings on a single entry page I pass the {channel_short_name} through an embed and then use it to assemble the global variable tag name like this:

{exp:channel:entries status="Open|Featured"}
{embed="includes/review" entry_id="{entry_id}" channel_short_name="{channel_short_name}"}
{/exp:channel:entries}

And then the embed template "includes/reviews" includes pieces like this:

{{embed:channel_short_name}_1label}

Which parses to {venue_1label} and then is replaced by the corresponding global variable by the same name.

This all works fine. My problem is now displaying the same information on a different page.

I'm listing all Ratings by the logged in user on a user profile page. For this page the {exp:rating:entries} tag is not on a single entry page and not inside {exp:channel:entries}. So I need to use the {rating_id} to find the matching {entry_id} of the associated rated entry, and then use that {entry_id} to pull {channel_short_name}, and then use that {channel_short_name} to build the global variable tag like I did above through an embed.

I can't get this to work!

I've tried using 2 levels deep of embedded templates combined with an SQL query to grab the {entry_id}. First get {entry_id} and pass as embed variable to first embed template. Inside first embed template use {exp:channel:entries} to get {channel_short_name} from {entry_id}, then pass {channel_short_name} to another embed template. That second level embed template then uses {channel_short_name} embed variable to assemble the final global variable tag.

This works for some channel names, but for some reason other channels are not working. I can't find any different between the channels that would cause one to work and not another.

There must be a much less convoluted way to achieve this?


texts: Performance with Store variables and Low Search

texts:
I'm looking at performance for a few list pages, and finding that low search is being called to find some Store variables within a channel entries tag. For example, getting {product_details:price} in a channel entries tag results in Low_search_ext/custom_field_modify_data being called 2x for each entry.

So getting 4 Store tags in a channel entries list of 24 products ends up having a bit of overhead (relatively):

(abbreviated from the graph example below)
    {exp:channel:entries
        channel="products"
        limit="24"
    }
        {product_details:price}
        {product_details:regular_price}
        {product_details:sale_price}
        {product_details:on_sale}
    {/exp:channel:entries}

Template debug (called 190+ times):

begin: (0.145485/13.82MB) - Calling Extension Class/Method: Low_search_ext/custom_field_modify_data
...
end: (0.351349/14.96MB) - Calling Extension Class/Method: Low_search_ext/custom_field_modify_data

Graph view (courtesy of EE Debug Toolbar):

I am using caching so once it's cached it's not a big deal, but am trying to find ways to speed this up for the pre-cached page load.


texts: Replacement for reverse_related_entries in 2.x

texts:
This code comes from 1.6 days.

{exp:weblog:entries weblog="static" sort="asc" offset="1" dynamic="off"}
     {if static_parent_page=="0"}

       {title}
       {reverse_related_entries weblog="static"}
        {if count==1}
{/if}

{title}

        {if count==total_results}
{/if}
       {/reverse_related_entries}

     {/if}
    {/exp:weblog:entries}

Since relationships was overhauled in 2.x, the reverse_related_entries tag in the above doesn't work. I need help to re-code it for EE 2.6

Full page code is at:
http://www.train-ee.com/images/weblog/static_content_approach_d_activeclass.txt
The result of the code is this page:
http://www.train-ee.com/courseware/static/three_tier_d/

In a nutshell, the snippet does the following...
Each entry has a special field called static_parent_page. If it isn't set, then the field is 0 and thus a top level navigation link. If the field is set to another entry, then we assume it is a child entry. So the code will display every child entry of a parent entry.

A 1000 thanks for helping with this!


texts:
How do you make the files of a specific file manager downloadable? For example, lets say you have a file manager which is just for PDFs. What tag do you use for making the PDFs downloadable? I feel like this is basic, but the documentation for EE3 shows nothing of the sort and I'm not sure how to use Google search for something this specific.

See this site for specific details Here

Code for that notes & questions section is as follows, the '???' denote where I have no clue what to put in order to make the PDFs/files downloadable:

Sermon Notes

    {exp:channel:entries channel="sermon_details" dynamic="no"}

        Part {sermon_part}

    {/exp:channel:entries}

Study Questions

    {exp:channel:entries channel="sermon_details" dynamic="no"}

        Part {sermon_part}

    {/exp:channel:entries}


texts: EE3 Control Panel entry form page layout - 2 columns gone?

texts:
I've just set up my first EE3 site after having produced many sites using EE2. Aside from the learning curve of a new control panel, a feature clients used to love was the ability to 'design' their entry forms (i.e. layout, ordering, columns). I've found the ability to 'order' fields, but it seems you can no longer 'shorten' the fields to enable the page to have 2 columns?

ie. I used to have a half / half split column with 'title' on the left and then 'url title' beside it on the right. Likewise for setting 3 images I'd have 3 smaller columns for them rather than 3 single full-width 'rows'.

Am I missing something or is that no longer possible?

Christiaan


texts: How can we include multiple images on a page?

texts: I want to add several images to one page, but I only see the space to upload one image. Is it possible to add more?


texts: Update failure: "Webmaster name or email missing from Email Configuration settings."

texts:
In the process of updating a site from from EE v2.6.1 to EE 2.7.3, the update stops partway through with this error:

  Webmaster name or email missing from Email Configuration settings.

Has anyone else encountered this error? Does anyone have any advice on how to work around it?


texts:
As the title says, looking for the best way to integrate a cdn with EE.

I currently have a cdn account with MaxCDN and my solutions was to change the site_url within the configuration site to my cname address http://cdn.mysite.com.

From there I added a global variable and named it {root_url} that was my sites original address http://www.mysite.com.

Then just went and changed all menu links and such to use the global variable instead of the {site_url}.

This does work, however where I'm running into problems is the pagination. The pagination uses the site_url, which is now the cdn.

How are other people using a cdn with their EE install? Is there a better solution? Although this works, it seems clunky to me. Would really like to get some others advice/perspective.

I've been able to relate previous and next entries as well when viewing a blog post for example using this:

  {exp:channel:prev_entry channel="blog"}

    &larr; {title}

  {/exp:channel:prev_entry}
  {exp:channel:next_entry channel="blog"}

    {title} &rarr;

  {/exp:channel:next_entry}

But I've not been able to figure out how to change the pagination links to use the same {root_url} prefix. It seems you can completely customize the output and look of the pagination but not the links?


texts: advantage of using Stash with LVs or Low Variables by itself

texts:
Can someone comment on if there is an advantage over Option 1 vs Option 2 or vice-versa.

Option 1 - Stash with LVs

{exp:stash:set name="product_description"}
{if segment_3 == 'content-management'}{lv_cm}{/if}
{if segment_3 == 'crm'}{lv_crm}{/if}
{if segment_3 == 'project-management'}{lv_pjm}{/if}
{if segment_3 == 'business-intelligence'}{lv_bi}{/if}
{if segment_3 == 'marketing-automation'}{lv_ma}{/if}
{/exp:stash:set}

{exp:stash:parse}
<p>{stash:product_description}</p>
{/exp:stash:parse}

Option 2 - Low Variables only

{if segment_3 == 'content-management'}{lv_cm}{/if}
{if segment_3 == 'crm'}{lv_crm}{/if}
{if segment_3 == 'project-management'}{lv_pjm}{/if}
{if segment_3 == 'business-intelligence'}{lv_bi}{/if}
{if segment_3 == 'marketing-automation'}{lv_ma}{/if}

Any advice is appreciated!!


texts: custom fields in e-mail module's contact form

texts: I'm using EE's built in e-mail module for a contact form on my site.   I'd like to add additional fields to the form that it doesn't have out of the box.  I know freeform by solspace will do this, but I was hoping there is a way without spending $100 on a plugin.


texts: List of Resources for EE developers and users?

texts:
I got this idea from the Russian Language and Usage site. Since "lists of links" are discouraged by the StackOverflow rules, this is a single question with a list of relevant resources for folks using EE.

I am answering my own question with a couple of initial resources, and setting that answer to Community Wiki mode. Please add resources to the single answer rather than creating separate answers; that way the resources can stay nicely categorized.


texts:
In Assets 1 you could select several images and then click add to add them all at once. This is still possible in Assets 2, but the button has been removed from the interface. When you select several images and double-click the selection the images will be added. But this requires precise timing.
Please consider bringing back the add button.

Before:

After:


texts: Calendar throws an error when using validation callbacks in Resource router

texts:
I'm using Rob's great Resource router and Solspace Calendar, everything works fine until I try to do a validation in Resource router, then Calendar gives a huge error when trying to user {exp:calendar:events} tag:

Fatal error: Uncaught exception 'Exception' with message 'Serialization of 'Closure'
 is not allowed' in /Applications/XAMPP/xamppfiles/htdocs/domain/third_party/calendar/addon_builder/
addon_builder.php:3073 Stack trace: #0
/Applications/XAMPP/xamppfiles/htdocs/domain/third_party/calendar/addon_builder/addon_builder.php(3073): serialize(Array) #1 [internal function]: Addon_builder_calendar->_imploder(Array) #2
/Applications/XAMPP/xamppfiles/htdocs/domain/third_party/calendar/addon_builder/data.addon_builder.php(180): call_user_func_array(Array, Array) #3 [internal function]: Addon_builder_data_calendar->__call('_imploder', Array) #4 /Applications/XAMPP/xamppfiles/htdocs/domain/third_party/calendar/data.calendar.php(2843): Calendar_data->_imploder(Array) #5 /Applications/XAMPP/xamppfiles/htdocs/domain/third_party/calendar/mod.calendar.php(736): Calendar_data->fetch_event_ids(Object(Calendar_parameters)) #6 /Applications/XAMPP/xamppfiles/htdocs/domain/ee-admin/expressionengine/libraries/Template.php(1308): in /Applications/XAMPP/xamppfiles/htdocs/domain/third_party/calendar/addon_builder/addon_builder.php on line 3073

This happens when I use this rule in Router:

':category_url_title' => function($router, $wildcard) {
        if ($wildcard->isValidCategoryUrlTitle()) {
            $router->setTemplate('router/home');
        } else {
            $router->set404();
        }
    }

but without callbacks it works just fine:

':category_url_title' => 'router/home',

I could find some other way to validate it, but Router has so many usefull callbacks that its a shame not to use them. I also opened  ticket on Rob's Router github just to cross reference https://github.com/rsanchez/resource_router/issues/3

EE 2.7.3.
Calendar 1.8.5

thanks


texts: Using Grid with File Fields to get thumbnail

texts:
I'm using the new Grid system in EE 2.7.3 and trying to create an image gallery with it. Typically I'd use the normal file upload format as a normal file:

{image}

{/image}

But with the grid system I have to use

{gallery_images}

{/gallery_images}

How can I get that to go to the path for the thumbnails?


texts: Possible to spoof last page, or end early in multi-page form?

texts:
I have a form with a number of pages and radio buttons, each one has a score attached. If the score is lower than 5 by the 5th page I need to end the form and display the results, else carry on with the rest of the questions.

I've managed to hook into the form with freeform_module_insert_begin and inject a bit of code at the correct point but I'm not sure how to 'finish' the multi-page form. The below code fires at the correct point.

//$step variable grabs the page number from the URL
if ( $step == 5 AND $inputs['total'] < 5 ) {
    //End form
    $obj->last_page = true;
}

I tried adding the $obj->last_page = true; line to trick the form into thinking it's at the end but unfortunately it didn't work and carried onto the next page.

I also tried playing with $obj->params['multipage_next_page']; and $obj->params['multipage_previous_page'] however if I unset the next_page (or direct it elsewhere) I'm getting taken to the home page.

In my freeform_module_insert_end hook:

I've tried using ee()->functions->redirect($return); where $return equals the result URL but it doesn't appear to submit properly.


texts: Control panel submenus not expanding and 503 service unavailable error

texts:
Sometimes the top submenus are not showing . Same time when we check the browser console we can see '503 Service unavailable' .

<script type="text/javascript" charset="utf-8" src="secure_access.php?S=0c587174500c93563f4efd82b4275a3984fb1c87&amp;D=cp&amp;C=javascript&amp;M=combo_load&amp;ui=core,widget,mouse,position,sortable,dialog&amp;plugin=ee_focus,ee_interact.event,ee_notice,ee_txtarea,tablesorter,ee_toggle_all,ee_navigation&amp;file=cp/global_start&amp;effect=core&amp;v=1359470773"></script><script type="text/javascript" charset="utf-8" src="secure_access.php?S=0c587174500c93563f4efd82b4275a3984fb1c87&amp;D=cp&amp;C=javascript&amp;M=combo_load&amp;file=cp/global_end&amp;v=1359470108"></script><script type="text/javascript" charset="utf-8">

GET secure_access.php?S=0c587174500c93563f4efd82b4275a398…,ee_toggle_all,ee_navigation&file=cp/global_start&effect=core&v=1359470773 503 (Service Unavailable)

This submenu issue is not happening always. At the same time, one admin user sees the issue, but another admin user don't have this issue.

Can anyone advise whats the issue and how to be sorted. I'm using ExpressionEngine 2.6.1.


texts:
I'm using DevDemon Tagger to output a list of categories. Everything is working fine but I am acing trouble getting categories to out put. Other items output no problem.

My code is below:

{exp:tagger:entries tag="{get:tag}" custom_fields="categories|dl_authors"}

{tagger:entry_title}
{tagger:categories}{tagger:category_url_title} {/tagger:categories}

{/exp:tagger:entries}

Does anyone have any ideas?


texts: Member group can´t edit comments in CP, but has rights to do so in EE 2.7.0

texts:
I set up a member group called editors.
Editors can

log in to the CP
See the link "Pending comments" in the box "Modify or delete".

When an Editor clicks on this link he´ll get a message, saying, that he has no rights to visit the comments section in order to moderate comments. But they should have those rights and I have set up the member group to refelct that.

I set the member group permissions as such:

Comment Posting Privileges

Can submit comments Yes
Exclude member from comment moderation No

Control Panel Access Preferences

Can access the control panel?    Yes
Can access CONTENT section   Yes
Can access CONTENT: Publish  Yes
Can access CONTENT: Edit     Yes
Can access CONTENT: File Manager Yes

Comment Administration

Can Moderate Comments   Yes
Can view comments in channel entries authored by others Yes
Can edit comments in their own channel entries  Yes
Can delete comments in their own channel entries    Yes
Can edit comments in ANY channel entries    Yes
Can delete comments in ANY channel entries  Yes

Module Access Privileges Preferences

Can access module:  Comment Yes

To me this looks all good. I also included the Editors in the PUBLISH page multi-author list?

What did I miss?


texts: Solspace User "remove_photo" with link instead of input button?

texts:
Using Solspace User and the {exp:user:edit} form, is it possible to to create an HTML links that has the same function as the button:

<input type="submit" name="remove_photo" value="Remove Current Photo?" />

I can't achieve the styling I want using an input button element.


texts: Set new Matrix entry datepicker value to the current date

texts:
I would like to set the value of the date picker field to be the current date by default.  So every time I add a new row, i want that row to show the current date in the datepicker input field.

Thanks and let me know if you need any other information. I have the following code in my instructions field per this post:

<script>
   document.getElementsByClassName('hasDatepicker').value = (new Date()).format("m/dd/yy");
</script>

But that doesn't seem to be working.

/* EDIT */
I tried to adjust my code a bit to see if that worked, but it didn't. I am trying to avoid JQuery just in case ther is a loading issue.

<script>
    document.getElementsByClassName(''matrix-add").addEventListener('click', function() {
        document.getElementsByClassName('event_helper_date').value = (new Date()).format("m/dd/yy");
    });
</script>


texts: Is there a way to create "peers," as opposed to child/parent relationships?

texts:
I'm working on a site that has a workflow in which you might approach the system with one thing (say: an article) or another (say: a person). Articles can have relationships with people, and vice versa.

Normally I would say "make one content type the parent and be done with it," but the required workflow demands that users be able to create the relationship from either direction — a user may want to add a person to the system and relate that person with an existing article, and I don't want them to have to edit every relevant article to create that relationship.

So, you might say, ok: allow either to be the parent — have two relationship fields, and whenever you have to display those relationships, use PHP to filter out any duplicates that might exist.

BUT: what happens when I want to destroy that relationship — not the entries, just the relationship(s)?

I now have to track down every article/person manually, and remove those relationships from each.

It feels like I'm over-thinking this, but I thought I'd ask: Is there a way to create "peer" relationships, one that can be created only once from either peer?

Would this be better handled by something else, like say Categories?

(Now that I'm thinking about it, no categories won't work, because I'd have to go back and add that category to every relevant sibling entry.)


texts: Stash Channel Entries Loop -> Replacing a part of Tag Pair field name?

texts:
Stash 2.6.7
EE 2.10.1

I've been stumped on this one for over 8 hours and feel like I'm overlooking something so simple.  I've reviewed the Low parse order guide but still can't get it to work.  I've tried different routes with using get_list, setting exp:stash:set to snippet type, etc.

{!-- LIMIT & GRAB ONLY FIRST CATEGORY NAME OF ENTRY (Entry can have multiple categories) --}
{exp:channel:entries channel="resources" dynamic="no" limit="6" disable="member_data|pagination"}
    {exp:stash:set name="entry_{entry_id}_category" trim="yes" parse_tags="yes" parse_depth="2"}
            {exp:gwcode_categories entry_id="{entry_id}" depth="1" limit="1" style="linear"}
                {cat_url_title}
            {/exp:gwcode_categories}
    {/exp:stash:set}
{/exp:channel:entries}

{!-- DROP IN STASH VARIABLE FOR FLEXIBLE TAG PAIR --}
{exp:stash:parse process="end"}
{exp:channel:entries channel="resources" dynamic="no" limit="6" disable="member_data|pagination" parse="inward"}

            {{stash:entry_{entry_id}_category}_resource_images}

            {/{stash:entry_{entry_id}_category}_resource_images}

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

--------

{!-- WORKS IF I SIMPLY DROP IN SEGMENT_2 (which is "print" category) --}
{exp:stash:parse process="end"}
{exp:channel:entries channel="resources" dynamic="no" limit="6" disable="member_data|pagination" parse="inward"}

            {{segment_2}_resource_images}

            {/{segment_2}_resource_images}

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

As you see in the third block above, replacing the Stash variable with segment_2 which translates to "print" works and pulls in the image.  So it's definitely a parse order issue.  How can I get Stash to parse '{stash:entry_{entry_id}_category}' first before parsing the outer tag pair?

Thanks!


texts: Exp:resso's Store apply coupon to category only

texts:
Does anyone know if it is possible to set up a promo code in Store that only applies to products in a certain category?

I am happy to use an extension (if one exists) to fill the gap if this isn't supported natively.


texts: CAPTCHA not registering as on/Image not appearing

texts:
I have three sites that I'm adding CAPTCHAs to (www.hoekstratruck.com/index.php/contact, www.hoekstratransportation.com/index.php/contact, and www.hoekstraspecialty.com/index.php/contact/ctest).  On the first two, the captcha works fine.  It shows up and says that it is required to submit the form.  On the third site, however, when I include the {if captcha} tag, nothing shows up.  If I leave that tag out, just having

Please enter the word you see in the image below:

    {captcha}
 <input type="text" name="captcha" value="" size="20" maxlength="20" style="width:140px;" />

it displays the prompt and the text box, but not the image (and it doesn't print "{captcha}" either).  I have double checked that the server path and image html path are both correct.

All three sites are running off EE v1.7.1 and I don't see any difference in how the first two sites are set up compared to the third site.

Please help!


texts:
I have a stash list of different plans that I need to break based on whether the word light is in the title or not.

So here is what I'd like:

One list of plans whose title contains the word light. If it doesn't contain light then I don't want it.
Complete opposite to above. List of plans without light in the title.

I believe this possible using the match and against params in stash but I can't work out what the regex would be.

Code:

{exp:stash:set_list
name="digismart_plans"
save="yes"
scope="site"
parse_tags="yes"
}

{exp:channel:entries
    channel="plan_digismart"
    disable="categories|category_fields|member_data|pagination|trackbacks"
    dynamic="no"
}
    {stash:plan_title}{title}{/stash:plan_title}
    {stash:plan_entry_id}{entry_id}{/stash:plan_entry_id}

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

Then later in the template

{exp:stash:get_list
name="digismart_plans"
parse_vars="yes"
parse_tags="yes"
match="[#Light#]"
against="plan_title"
}
    {plan_title}
{/exp:stash:get_list}

Not sure on the regex required for not Light. Would be as simple as match="{#!Light#]"?


texts: Low variable as channel entry_id parameter across MSM sites

texts:
I'm trying to access the entry_id of an entry (one only) selected with Low Variables, to use as a parameter in a channel entries tag.

The entries are stored in site A. The template is in site B.

Other SE solutions involve using the variable syntax instead of the tag syntax, however, that syntax only works with the Low Variables 'select' variable type, which does not allow selections across MSM sites.

The Playa variable type does allow selections across MSM sites but I can't figure out how to use that to output the entry id's as an early-parsed parameter in the channel entries tag. Whatever I try produces nothing.
I have tried setting up the variable in site A using the select variable type and then using the variable syntax in Site B template, but it doesn't allow me to pull info from site A using that syntax.
I have tried using the :parse syntax with site A selected. If I use this outside the channel:entries tag it works and outputs the correct entry_id, but using it inside the entries tag:

{exp:channel:entries site="default_site" channel="project_news|projects" limit="1" entry_id="{exp:low_variables:parse var='default_site:gv_ft-featured-stories'}" orderby="date" sort="desc" dynamic="no" disable="category_fields|member_data|pagination"}

Doesn't work - it just produces: entry_id="M10o93H7pQ09L8X1t49cHY01Z5j4TT91fGfr"

I have enabled early parsing in the variable settings.

Any advice appreciated.


texts: Does EE not like includes, requires and classes?

texts:
So i wrote a few simple classes to handle login, password hashing and query handling.
They've all been tested and work... HOWEVER!

I placed these classes inside a template, let's call it /classes

When i used php's include "" and require "" it caused server errors.

I then resorted to using EE syntax to embed the classes template

{embed="/path_to/classes"}

So that only worked half way. The code below will work fine in classes template alone, but NOT if classes is embedded and the code below is ran on the parent template.

 $createPassword = new protectPassword;
 $securePassword = $createPassword->makePassword($passwrd);

So i guess my questions are, am i doing something wrong in EE, or does EE just not like / allow such things?

Any help is much appreciated! Thanks!


texts: Relationship Field Dropdown Values more than {title} in Backend

texts:
I have a relationship Field. I would like to show the category in front of the title within the Dropdown-List. Any plugin? Other Solution? Or do I have to alter the core of EE relationship field?

I'd like to see this in the dropdown list:

Category A -> {title_1}
Category A -> {title_2}
Category A -> {title_3}
Category B -> {title_4}
Category B -> {title_5}

Any Hints?


texts:
Will Assets be updated to work with EE 3.x?

We're developing a website for a client that will be load balanced and using S3 for files and would like to use Assets for the S3 integration, however, the site will be using EE 3.1 and assets only suports 2.x currently.

What is the timeframe for a 3.x Assets compatible update?


texts:
The html

Rechtsgebied: {categories}{if "{parent_id}"=="10"}{category_name} {/if}{/categories}

When I publish a new article, is it possible for me to hide the category on the website (so this piece of html) when all the categories are unchecked? Is this being done easily with an if statement?

I hope I'm being clear, if not, please ask

thanks :)


texts: include_once from codeigniter in EE template

texts:
i'm finishing an EE website that contains a codeigniter intranet part. two setups, two databases. runs smooth.
now i want to include some codeigniter php files into EE.
was thinking to do so via php include, but now it seems that including codeigniter doesn't work for some reason.

i have this:

<?php
include_once './photogallery/index.php'; // works perfect
include_once './CodeigniterIntranet/photogallery/show'; // failed to open stream: No such file or directory
?>

any advice?


texts:
On the backend administration area, I am unable to go to any of the pages of articles via the page number links naturally.

The Page links go to:  http://mydomain.com/C=content_edit&tbl_offset=50

But should be going to this:  http://mydomain.com/manager.php?D=cp&channel_id=1&C=content_edit&tbl_offset=50

How can this be fixed?  Is there a file that needs an edit to it someplace?  For some reason it is not picking up the beginning of the URL after the mydomain.com part.

I found a topic that is somewhat similar to mine ( http://ellislab.com/forums/viewthread/217792/ ), but the fix was specific for Member Sorting, this is not the case in my situation.


texts: Character encoding issues when upgrading EE 1.7.3 to EE 2.5.5

texts:
I have an EE 1.7.3 with charset iso-8859-1. If i do the update all the umlauts in the browser show up as ?.

So I converted the data from the database (the whole database) 1.7.3 before the update to utf8. Now EE 2.5.5 cuts every string after an umlaut after the update.

I find no way to change the contents of 1.7.3 showing up correctly without typing all the content new.

Anybody had this problem before?
Thanks!


texts:
I am using ExpressionEngine 2.5.2 and am unable to get my entries to sort by a custom date field. I have two sites through the Multisite Manager that I am pulling entries from. On both sites, the custom date field short name is the same - "event_date". Here's the code:

{exp:channel:entries  site="site1|site2" channel="events" orderby="event_date" sort="asc" status="next event|open"  limit="7"}

    {title}
    {event_date format="%d %M %Y"}

{/exp:channel:entries}

Here is the result in the browser:

Berlin 2013 ... 05 Mar 2013

Tokyo 2013 ... 13 Feb 2013

London 2013 ... 17 Apr 2013

Los Angeles 2013 ... 16 May 2013

Berlin is a part of Site2, and its status is "Next Event". Los Angeles, London, and Tokyo are a part of Site1, and their statuses are all set to "open". Anyone know what's wrong?


texts: How do I reference a sub-category using {categories} tag pair?

texts:
I am using the {categories} tag pair to link entries to their relevant section, however, when I use the following code it does not display child categories.

{exp:channel:entries channel="section" category="{section_category_num}"}

{title}

{intro_text}

{sub_section}

{sub_section:categories limit="1"}{sub_section:title}{/sub_section:categories}

{sub_section:product_description}

{/sub_section}

{/exp:channel:entries}

Since this is a section page, what I want to be able to do is to reference the related entries child category url to link to the relevant sub section.

Any guidance will be appreciated.

Thanks.

P.S. I did attempt to use GWCode Categories but without success.


texts:
I have both Solspace calendar & tag plugin and I trying to create a page that lists all calendar entries that have a particular tag. I have the calendar event with a tag field but when i try and search for them i get everything.

any pointers would be greatly appreciated


texts:
I have a "featured item" part on my site that is controlled with a new status i created called "featured". I have 8 parent categories, and would like to have 8 different featured items, 1 unique for each category parent.

I am trying to make this dynamic so when I click on my category "central vacuum", then the item that is under the category central vacuums and has a status of featured to show.

I have come across a solution, which is to create 8 different statuses and then write 8 if statements, but I know theres another way around it I just can't seem to find one.

{exp:channel:entries channel="products" status="featured" limit="1" category_id="{segment_3}"}
     <img src="{feature_image}"/>
{/exp:channel:entries}


texts: About to go ape - Changing email/username in Profile:Edit

texts:
I don't know what is going on with the guys over at MightyBigRobot, but I am getting extremely frustrated that I can't get an answer to this issue. I have a client withholding payment until this basic feature is working.

I have "Email as Username" enabled in Profile:Edit, but when a user updates their email address, it does not carry over to the native EE Member Username field so they cannot log in using their new email address, they have to continue to log in using their old one.

Can anyone give me some direction on how to get this working? I've emailed them, posted on their support forums and get nothing in return.

Thanks in advance for any help you can provide! :-)

{exp:profile:edit return="account/profile/updated" class="validate"}

       E-Mail Address *
       <input type="text" class="span12" name="email" value="{email}" required />

Click here to change your password

     First Name *
     <input type="text" name="member_first_name" value="{member_first_name}" class="span12" required />

     Last Name *
       <input type="text" name="member_last_name" value="{member_last_name}" class="span12" required />

       Company *
       <input type="text" name="member_company" value="{member_company}" class="span12" required />

       Address *
       <input type="text" name="member_address" value="{member_address}" class="span12" required />

       City *
       <input type="text" name="member_city" value="{member_city}" class="span12" required />

       State *
       {exp:cartthrob:state_select name="member_state" selected="{member_state}" class="span12"}

       Zip *
       <input type="text" name="member_zip" value="{member_zip}" class="span12" required />

       Phone Number *
       <input type="text" name="member_phone" value="{member_phone}" class="span12 phone" required />

   <input type="submit" value="Update" class="btn btn-success" />
{/exp:profile:edit}


texts: add new channel fields for existing site

texts:
I´ve a site with a channel, this channel has a channel field group with 2 fields. So far, so standard.
My problem:
I know exactly, that after some time when the site evolves I´ll ned more channel fields.
But I don´t know exactly what kind of fields I will need to add. I can be a text field or a textarea or even a file upload field or a matrix. As a startup there will be some pivoting.

My question: If I add a new field, will it be available for all entries in this channel (new and existing) and can users update their entry accordingly. I would send my members a mail saying "we now offer the feature X, go ahead and update your entry".

Will adding channel fields to a channel that has already entries corrupt the database?


texts:
Setup:  We have a call that pulls 50 entires from channel entries.

{exp:channel:entries channel="posts"  orderby="entry_id" limit="50" dynamic="no" disable="categories|category_fields"}

This call takes on avg 700ms. When our traffic has around 50 users concurrent (from a load test), these calls can take upwards of 10 seconds each.  It used to take up to 150 seconds but we picked up the if else plugin to bypass how ee deals with your advanced conditionals.

When we switch our call to a sql it takes on avg .1ms. And stays under 1sec during high load.

{exp:query sql="SELECT field_id_35, field_id_39, field_id_40, field_id_41 field_id_ FROM exp_channel_data WHERE channel_id = '9'  ORDER BY entry_id DESC LIMIT 50"}

Is there a way to use channel entires but completely bypass all of
the parsing? Like a parsing off switch/hook?
Does anyone know of a way to completely bypass ee/ci's channel entries parsing?

Possibly a plugin to completely replace channel entires?

Thanks everyone


texts:
I created 3 subsites each with different language. Now i find out the same language is loaded for file upload notice "geen bestand".

Where can i change this?

Cant find this string in forms_lang.php

The html the form outputs:

Anyway if im to use forms/language how can i set language for the forms in the subsites?


texts: Overriding ORDERBY and SORT on channel:entries and output entries in order given by embedded entry_id list

texts:
Is it possible to ignore the ORDERBY/SORT parameters in an exp:channel:entry tag and display the entries as given in a list of IDs?

I have a embedded template where I pass down a list of entry IDs to render out. I would like to output the entries in the order they are passed down as entry_ids. Is this possible?

Here's my current loop:

{exp:channel:entries channel="events" entry_id="{embed:ids}" sort="asc"  orderby="status" limit="5"}

Where {embed:ids} is the list of entries I would like displayed, in the order I would like. I.e. 5|1|3|7. But there is no parameter which will not re-arrange the output order (by date, author, etc..).

Do I need to use the query module to achieve what I want here? It seems EE will try to arrange by date whenever possible.

For full clarity's sake. This is part of a ChannelForm Newsletter creator that selects events and then submits a list of entries as bar | separated entry_is into a input for a given issue. This is then renderd into an email template to be used later.


texts:
With Exp-resso Store, can I update a custom member field on checkout?

I'm working on an site for an academic society and I'm hoping to use Store and Freemember to manage membership dues. Suppose I set up a custom member field called Paid Through Date (YYYY-MM-DD). Assuming I require customer registration, can I sell a "2 year subscription" product and have that Paid Through Date get calculated and updated? Would I just do the date calculations in PHP and put submit a hidden input form input on checkout? Is <input type="hidden"> even secure for POSTed data? If not, is there another way to track this "Paid Through" info for each member?

Adrian implies here that custom member fields (not just the mapped name/email/address info) can be updated at checkout when a product is purchased.