texts:
Having a bit of trouble getting my head round something in Playa...

I have code which is a bit like this to deal with multiple channels from a single Playa field:

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

{title}

    {exp:playa:children field="my_playa_field"}
        {if '{channel_short_name}' == 'channel_one'}

{title}

            {channel_one_specific_field}

        {if:elseif '{channel_short_name}' == 'channel_two'}

            {title}
            {channel_two_specific_field}

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

There are more than two channels, and each has a number of custom fields, but the basic idea is the same. It works, but what I'd like to do to make maintenance a bit easier is take all the code between the if statements and call them as embeds instead:

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

{title}

    {exp:playa:children field="my_playa_field"}
        {if '{channel_short_name}' == 'channel_one'}
            {embed="templates/template_one"}
        {if:elseif '{channel_short_name}' == 'channel_two'}
            {embed="templates/template_two"}
        {/if}
    {/exp:playa:children}
{/exp:channel:entries}

I've tried this, and it doesn't work. The right templates are being called, but the tags aren't being parsed as I would like, e.g. {title} echoes '{title}' rather than 'Entry title.'

So really I have three questions:

Is this a sensible approach to take to using Playa fields?
What am I missing with the embed template code?
Will calling embedded templates harm performance, or would I be better keeping all the code in one template (which is what I'm doing now)?


texts: Error While Updating 3.0.6 to 3.5.17 Stopped | Step 2 of 3

texts:
During the update from 2.0 to 3.5.17 the update keeps stopping at this point:

Oops, there was an error
An unexpected error occurred while performing the update
Please correct the avatar path in your config file. Please see 3.1.0 version notes.
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-Mijheer.png' for key 'unq_folder_id__file_name':
ALTER TABLE exp_assets_files CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci

I have added the path to the avatar, but I can't solve the other lines.
Hope someone can help me.


texts: Substituting EE4 layout tag append, with Stash

texts:
DRY: Template Layouts is nice because of the single layout tag.

{layout:set:append name='url'}{path='page1'}{/layout:set:append}
{layout:set:append name='url'}{path='page1/page2'}{/layout:set:append}

{layout:set:append name="title"}test1{/layout:set:append}
{layout:set:append name="title"}test2{/layout:set:append}

    {layout:url}

{layout:title index='{index}'}

    {/layout:url}

The result will be:

test1

test2

It is possible to obtain the same result using Stash (if I'm not using yet EE4) ?


texts:
I have this code:

{if segment_1 != "slug1" || segment_1 != "slug2"}
Text
{/if}

For some reason this does not work with the second instruction after the OR operator. If I remove the OR operator and the following code it is fine ie.

{if segment_1 != "slug1"}
Text
{/if}

The OR operator seems to be the problem here. Can anyone shed some light on this?


texts: Login Loop when trying to make Hello World Example

texts:
Just downloaded the free version of EE and I already hate using it. I can log into EE successfully but every time I hit "view rendered template" it sends me to another login screen and if I go back in that tab and hit "View rendered template" it takes me yet again to another log in screen and the url shows me this admin/index.php?/cp/login&return= Needless to say this is annoying beyond belief. I've looked at these answers (Q1,Q2,Q3) but with no success on my end. Any and all help is appreciated.

Below is my config.php file

$config['app_version'] = '292';
$config['license_contact'] = '';
$config['license_number'] = 'CORE LICENSE';
$config['debug'] = '1';
$config['cp_url'] = 'http://example.com/ee/admin/index.php';
$config['doc_url'] = 'http://ellislab.com/expressionengine/user-guide/';
$config['is_system_on'] = 'y';
$config['allow_extensions'] = 'n';
$config['cookie_httponly'] = 'y';
$config['cp_session_type'] = 's';
$config['index_page'] = 'index.php';
$config['cookie_domain'] = "";
$config['cookie_path'] = "";
$config['cookie_prefix'] = "n";
$config['require_ip_for_login'] = "n";
$config['require_ip_for_posting'] = "n";
$config['secure_forms'] = "n";

I've tried it mainly in Chrome but also tried it in FF with no success

If any more info is required i'd be more than happy to provide it.


texts: Changing or adding existing members to another member group

texts:
Is there a way to move an existing member from one member group to another? If so, how can this be done?

Also, is it possible to have one member belong to multiple groups?

Thanks!


texts: Get custom field entry data on before_channel_entry_delete hook

texts:
I'm using the hook before_channel_entry_delete
to get custom fields of the deleted entry and use that in another context.
But, when I add the hook method and try to get data, all the the custom field values are empty.
For example, the hook method I'm using:
public function hook_before_channel_entry_delete($entry, $values) {

    // Trying to get custom field from $entry
    $field = $entry->getCustomField('field_id_325');
    $value = $field->getData();
    echo 'value field_id_325 - ' . $value;

    // Trying to get custom field from $entry
    echo '<pre>';
    print_r($values);
    echo '</pre>';

    die('TESTING');
}

Everything is empty.

I was able to use a workaround by commenting the line:
https://github.com/ExpressionEngine/ExpressionEngine/blob/ea47b5f94d4b8e6b2c898af1a856a278c03fc807/system/ee/EllisLab/ExpressionEngine/Model/Content/ContentModel.php#L107
and in the hook method I added:
$entry_tmp = ee('Model')->get('ChannelEntry', $entry->entry_id)->first();
$field = $entry_tmp->getCustomField('field_id_325');
$value = $field->getData();
echo 'value entry_tmp - ' . $value;

In this way I was able to see the value correctly.
But I feel that this is not the best, also I don't want to edit core code.
Do you have any suggestions?


texts: Load entries with Ajax and offset existing entries

texts:
So, i've got a page where it shows 2 news entries. Then there is a link that when clicked, loads in via ajax more entries until they run out.

My template that gets pulled in via ajax looks like this:

    {exp:channel:entries
      channel="news"
      disable="categories|category_fields|member_data|trackbacks"
      dynamic="no"
      limit="2"
      paginate="bottom"
      orderby="date"
      sort="desc"
    }

{title}

{content}
          {paginate}
            {pagination_links}
                {next_page}

More news &rarr;

                    {/next_page}
            {/pagination_links}
        {/paginate}

      {/exp:channel:entries}

Which works and is fine, but, how do i get it to not pull in the first two articles (as they are already on the original page) but still be able to keep calling that page to load in more entries normally?


texts: Selecting images to represent category *combinations*

texts:
I have a challenge that I'm struggling to figure out a good solution for. I have a client that sells jewellery & gifts. They are categorised into brands and types, so I might have:

Brand A Rings
Brand A Pendants
Brand B Rings
Brand B Pendants
Brand C Rings
... etc

They have brand pages where every relevant type is listed under each brand, and want to be able to select a representative image for each brand type (so, two combined categories):

Brand A Rings [manually selected image]
Brand A Pendants [manually selected image]
Brand B Rings [manually selected image]

At the moment I've come up with a 'showcase' category so I look for products categorised as 'showcase', and then use them within the brand page. However, this isn't that satisfactory as it's a clunky process to add the category, and there's no management of old showcase products etc.

I'm trying to think of a more visual way to handle this that won't also introduce too much of a performance impact in terms of queries when I come to pull it all back together in the UI. Because I'm working with category combinations, I'm finding it quite tricky... I'm just wondering if anyone else out there has tackled a similar problem, or if there's a 3rd party add-on that I don't know about. I thought about Low Variables, or Channel Images, but I don't think either of them will help.


texts:
We've got a site which is in 10 or so languages, each of them being contained in a template group, en, es, de etc - so essentially the index page of each of these template groups is the homepage of that language and usually, clients from that region don't go to any other language.

However, when they first login they go to the default template group - English - which is the site main template group. From there they choose the language they require.

Is there any way to skip this and have the user redirected to their own language page on login?

Anyone done something like this?


texts: I currently have a subscribe section on the website I manage. If I want to access my this information I have to go through campign monitor, manually transfer the emails and manually send out content. Is there a way, if people have subscribed, that they will can automatically receive an email when any new content is published?


texts: Error with SEO Lite Fatal error: Call to undefined method Cp::set_variable() in

texts:
Runnng EE version 2.11 and SEO Lite 1.3.5
Fatal error: Call to undefined method Cp::set_variable() in /xxxxx/expressionengine/third_party/seo_lite/mcp.seo_lite.php on line 97

This occurs when accessing the default module page to input the default data for SEO Lite.
Line 97 is the one in the middle
$vars['_form_base'] = $this->form_base;
        $this->EE->cp->set_variable('cp_page_title', lang($lang_key));
        $this->EE->cp->set_breadcrumb($this->base, lang('seo_lite_module_name'));


texts: Assets field inside of a grid inside of a low variable -- Asset not saving

texts:
Having an issue with a low variable of the "Grid" persuasion.
I have an assets field inside the grid, and I can upload and add the asset just fine, but when I save the Low Variable, the CP never shows the image inside the field, but only an "Add file" button. I checked the database, and the image name is in the field in the low_variables_grid_field_12 table.

Assets work in normal entry fields.

Running EE v.2.7.2 Low Variables v.2.4.0 and Assets 2.2.1

Anyone have any wisdom on this issue?


texts: This is a basic general question, but my site always redirects to the home landing page even when I click the links it redirects.  So thissite.com/link1 shows in the URL input, but the home page still shows.


texts: File manager navigation/pagination doesn't work

texts:
I have a wierd problem with my 2.4.0 install. After I moved servers my file manager navigation/pagination (1,2,3) and the "thumbnail" option in the dropdown selection stopped working.

Clicking a navigation item just send the user to the site homepage. The URL it's trying to load is this (on hover): http://domain.com/system/C=content_publish&M=filemanager_actions&action=directory_contents&tbl_offset=15

I've tried re-uploing the entire /themes/ folder but that didn't do it. Everything else on the site is also working like it should.

I should also note that the file-uploading etc. within the window works - it's just the navigationi/pagination and "thumbnails" view that isn't.

Thanks


texts:
Can't seem to edit another member using 'User' by solspace using {exp:user:edit}.

I can edit as a super admin, but not when logged in as custom member group.

When logged in as the custom member group i get a no results instead of my templated edit form.

Is it possible to edit other members not using a super admin account?

{exp:user:edit
    password_required="yes"
    screen_name_password_required="yes"
    return="account/profile/{segment_3}/success"
    username="{segment_3}"
    username_override="yes
}


texts:
I've tried to upgrade EE 2.8.2 to a 2.9.2 in the dev environment but it semes to keep on failing.
i looked it up and seen some suggestions saying disable javascript and others to disable third party addons. tried them all and no luck.

As a test, i've made a clean install of EE 2.8.2 and tried to upgrade it to 2.9.2 get the same problem!

I follow all the steps of the upgrade documentation here until step 6: https://ellislab.com/expressionengine/user-guide/installation/update.html
I reach to the "agreement" button i click "I agree"
i get to the page index.php?C=wizard&M=do_update&language=english&ajax_progress=yes
and then nothing anymore

Is there a setting i'm missing?

PHP and MYSQL version both meet the ee requirment.
Is there something else i could be missing?


texts: Calendar doesn't show up in add-on modules

texts:
I've had no luck installing the Calendar.

After uploading the calendar folder to  /system/expressionengine/third_party/  and to ./themes/third_party/  - the calendar doesn't appear on the modules page.

I'm running EE v2.7.2 - Build Date: 20131008


texts: Get recipient email address within the notification specific for each recipient

texts:
Update, summarised the question

I am trying to send multiple notification emails, each with unique content, to a list of user-defined recipients using a single FreeForm form.

I have a Freeform enquiry form on a property web site. The form is to allow visitors to enquire about multiple properties from a single form. They fill in their details and the enquirer's details are sent to each property owner.

The properties are entries with the owner as the entry author.

I am looping through the selected property entries and add each recipient to the form using recipient_email_user[]. This bit is working fine.

At the moment I have a single textarea which contains the names of all the properties that are being enquired about. This means that each owner receives an email that contains the names of their property AND the other owners.

I really need to  have each notification show the details for the property belonging only to that particular owner.

Is there a way I can get the recipients email address within each notification or can anyone suggest a better way to do this?


texts:
I have just installed EE 3.4.5 for a new site and have added two modules: Structure and Wygwam. When I try and go to the Add-ons folder to activate and manage them, I get the following error:

  No such property: 'assigned_modules' on
  EllisLab\ExpressionEngine\Legacy\Facade
  ee/EllisLab/ExpressionEngine/Legacy/Facade.php:107

Has anyone else had this problem and if so, what is the solution?


texts: How to get the url_title of parent using Playa?

texts:
I need to generate a unique id for Playa child element so that an accordion works properly. For example:

{exp:playa:children field="doctors_locations"}
    {locations_displayed_name}

...

{/exp:playa:children}

The {count} tag gives me the row count of the Playa object. This results in:

My Hospital Name

...

This Playa relationship is Doctors > Locations - a one-to-many relationship. So, if the same location belongs to multiple doctors, I get duplicate ids on a list page.

In order to get a unique ID for each entry on this page, what I really need is the url_title of the parent in this relationship. This is what I'm looking for:

My Hospital Name

...

Again, this is a one-to-many (one doctor works at many locations), so I will get a unique ID for each if I can figure this out.


texts:
I uploaded my site to a remote server but the links to the image are still pointing to the local version. I have synced the file folders.

What do I need to update to get this to work.


texts: Assets Image Path Issue with Wygwam on Front-end/View Entry Page

texts:
EE 2.6.1
Assets 2.3.1
Wygwam 3.3

We are having an issue where images from Assets are added to a Wygwam field, but do not display on the front-end or view entry page after save. They do appear fine within the Wygwam field on the Publish/Edit page.

A screenshot and corresponding HTML output looks like the following:

<img alt="" src="{assets_32:http://mydomain.com/uploads/myimagename.png}" style="width: 491px; height: 208px;">

I tried implementing the fix found here, but it did not resolve the issue. The assets tag is still not parsing.


texts: Advantage of ActiveRecord over plain sql query

texts: Can someone tell me the advantage of using ActiveRecord vs writing a plain sql query?


texts: How to keep paragraphs intact and not converted to line breaks when text pasting from Word in Wygwam

texts:
How can I keep paragraphs intact and not converted to line breaks when text pasted from Word in Wygwam?

I am copying and pasting from Word in Wygwam. The text in Word has paragraphs but when pasted into Wygwam field it's converted to line breaks (br tags).

Is there a setting or configuration to allow me keep the return carriages?

Thanks


texts:
Wondering if anyone can help me out with this issue I've got.
Apologies if my terminology is wrong with any of this - It's landed in my lap and I'm trying to get the issues solved without any prior EE or cartthrob knowledge.

We're using CartThrob with SagePay payment gateway on our website.

When a customer goes onto our site and makes a purchase, all the information seems to be displayed correctly in the cart (both on cartthrob and sagepay), However once the purchase is completed and the order details are downloaded to Sage 50 Accounts 2014, all of the item details are missing and instead we get just one line item "Purchase from Website".

I spoke to the chaps at SagePay who have told me that we need to add a product code to our line items which will pair up with our product codes in Sage Accounts and then the data will pass through correctly.

I found the following info in some of the SagePay documentation...

  In order for the download of transactions within Sage 50 to update a
  product record the first entry in a basket line needs to be the
  product code of the item within square brackets.

So seemingly I need to simply add the product code in square brackets to each of the 'items' being purchased, only problem is that I have no idea how to go about doing this.

I've had a good root around ExpressionEngine, specifically in the cartthrob settings.
I can see our products there, but cant see where I would add the product code info.

Can anyone explain how I would go about doing this, or even just point me in the right direction?

Thanks in advance!


texts: I want to apply a snazzymap to MX Google Maps.


texts: Get matrix row/cell data in entry_submission_end hook?

texts: Anyone know the proper way to get data stored in a matrix row from the entry_submission_end hook for use in an addon?


texts: Code hints/Autocomplete - Aptana Studio/Eclipse

texts: Working with Aptana Studio 3 (Windows & Mac). Does anyone know of a code hint bundle for EE? I know Coda has one and I like using it, but I am trying to get something that will work well for both environments, Mac/PC, for team use. Eclipse/Aptana Studio are pretty impressive, but would be great to have that for those not as familiar with commands. Would also make coding templates and add-ons quicker.


texts:
Wondering if there is a way to use transcribe add on for expression engine in another add on.

So ideally I would want to use the command that I would use in a template {exp:transcribe:replace name="variable"} in a library page of a custom add on that I developed.

The reason is I am building a single page app that gets all of it's content from ajax calls.  So the page will call an add on I built that does the api call and returns the content in json format.  Ideally I would make the translation in that add on so it is already translated once the json is returned to the page.  From there Handlebars is building the page with the json object.

I am hoping there is a fairly straight forward way of doing this as I am fairly new to expression engine.

My alternative plan is to make a call and grab all variables for a given language and create an object or array out of it and then cycle through it when I need to translate something.  This is not ideally how I would want to do it though as it feels like a hack.


texts: EE3 Title url generates differently with Structure when using dot in it

texts:
When typing title EE3 generates url title automatically but it doesnt generate same as on sturcture url, so post links goes wrong. Had to do manually every time.

Example if I type:

My.Title

EE3 url generates:

my.title

but structure url generates:

my_title

Any fixes?


texts:
I am trying to grab the category ID from the last segment to use in a redirect back to that category page but nothing is showing up.

My main page is http://domain.com/store/shop/C28, then you click to view a single entry.

the entry is http://domain.com/store/product_detail/158

where 158 is the entry_id to display a dynamic entry showing one product.

In my redirect (after adding the product to a cart) I want to go back to http://domain.com/store/shop/C28

I have tried to use this in my add to cart but nothing is parsing for the seg2cat

return="http://hookingrugs.com/store/shop/C{last_segment_category_id}"}

When I view source I just see http://hookingrugs.com/store/shop/C"

with no ID.

Even if I just place {last_segment_category_id} on the page outside of any other tags I still get nothing.  Why does low seg2cat not pick up on the last entry ID.


texts: List of Online Users and Their Current Page?

texts: Is it possible to get a list of logged in members along with the page that they are currently on? If possible, I'd like to filter this by page (meaning, I pass the URL of the page and I get back a list of users currently on that page). I need to display this information in the frontend.


texts: Matrix Playa MSM limit playa children to once per loop

texts:
I am running

EE 2.5.2
Playa 4.3.3
Matrix 2.4.3

I have a matrix field inside channel entries pair tag. The first column in that matrix is a playa field type. That playa field relates to a matrix on another site that is run by MSM.

This is all generating a table in my template.

what i have so far

I have successfully pulled the playa children using the following:

{matrix_field}

   {if plhotel}

      {exp:playa:children site="mysite" field="hotels" limit="1"}
        {hotel-name}
      {/exp:playa:children}

   {/if}
    {other matrix value}
    {other matrix value}

{/matrix_field}

my issue

I need for the playa tag to pull one child per row.
This is almost certainly an issue with how I've constructed the loop, I'm openly admitting this. I can't seem to prevent the playa loop from displaying all children in the first row. As you'll see I've even tried setting limit="1" in the tag which I almost knew would fail. This produced the same child in all rows of the table (still not correct).

Any advice is appreciated.


texts: Is there a way to populate the menu for a Select dropdown from another channel field, but limit it to that entry

texts: Is there a way (most likely with a plugin) to populate a select dropdown channel field from another field within the same entry? What I'd like is to be able to add links and relate them to another field within the same entry.


texts: Edit Categories On Entry With Channel Forms

texts:
Is it possible to edit categories against an entry using ExpressionEngine Channel Forms?

The {selected} variable doesn't seem to be getting set, so it's always resetting back to the first category in the select drop down.

<select name="category[]" id="categories">
   {exp:channel:categories category_group="3"}
   <option value="{category_id}" {selected}>{category_name}</option>
   {/exp:channel:categories}
</select>

I'm using EE2.9.0, and no upgrading is not an option. Also, yes I've used Channel Forms before and it's all working aside from this. Thanks!


texts: ExpressionEngine Stash Replacing rather than appending

texts:
I'd massively appreciate a bit of help with the Stash ExpressionEngine plugin...
I think it must be quite simple but feel like I've tried everything...

The {expertise} tag is an ExpressionEngine grid field and contains multiple grid rows. I want to store these in stash - it's working to store them once but is always replaced when I run it again... I want what's stored in stash to constantly append rather than blanking the variable and starting again each time is is run...

Any ideas?

Many thanks in advance for any help!

{exp:channel:entries channel="barristers" url_title="{segment_3}" status="open" sort="asc" disable="pagination"}

Adding {title}'s full CV (all the skills)...

{expertise}

{exp:stash:append scope="user" save="yes" name="skills" output="yes" replace="no"}
{expertise:row_id},
{/exp:stash:append}

{/expertise}

IN SESSION: {exp:stash:get name="skills"}

{/exp:channel:entries}


texts: Why doesn't navigation conditional work?

texts:
I am working on a sidebar navigation here. The navigation works correctly but I am trying to highlight the active entry.

In the past I have been able to use a segment_3 conditional to tag the active entry with a class="active", however, something is missing in my approach this time.

I have tested for segment_3 and I have tested for {url_title} but when I put them together like this, I don't get any results:

 {exp:channel:entries channel="services" sort="asc" dynamic="no" }

{title}

 {/exp:channel:entries}

I would appreciate some guidance on how to resolve this.


texts:
When attempting to publish entries as a super admin, I receive the "You are not authorized to access this page" error. It only happens on specific channels, but these channels don't all share the same field/category groups. Any suggestions/slight inklings greatly appreciated.

EE 2.9.2 / PHP 5.5.9


texts: White Screen When Adding New Field in Freeform Pro

texts: I am running EE 2.7.2 on a GoDaddy server and I'm attempting to create a new field in Solspace Freeform Pro 4.1.3. I get a white screen after clicking the New Field button. I believe I recall a comment in the Solspace weekly chat that there may be some issues with this combination...GoDaddy being the main issue. Has anyone run into this or aware of any fixes? Thanks!


texts:
When creating Addons should we utilise the underlying database structure provided by ExpressionEngine for storing large numbers of items / information. For instance use channel entries? Or should you keep it all separate and craft your own tables / relationships etc?

If I were to take a stab at answering this myself, I'd probably say use as much of existing expressionengine tables infrastructure as possible as there isn't any great reason to re-invent the wheel. My only concern is how you might limit access to say channel entries (if you've used them) for your addon. Say if you want the user to edit information in a particular way (and it's not the standard EE way of doing it). Or is this the problem, should they be doing it the EE Way?

Is it / should it be handled differently if it's a custom Addon for one site you are working on, as apposed to creating a commercial addon?


texts: Advanced Search Not Filtering by Category

texts:
We just upgraded from EE2 to EE5.1.3 and our advanced search is no longer filtering by category. It is filtering by channel and keyword correctly, but the total is also wrong for the results displayed. For debug purposes I tried limiting it to a single category and channel with this code:

<input type="hidden" id="cat_id" value="4" name="cat_id[]" />
<input type="hidden" id="channel" value="2" name="channel_id[]" />

This code limits by channel id correctly, but not by cat_id[]. It displays everything in the channel, regardless of category, with the matching keyword. I have triple checked the documentation, and I can't see anything that I am doing wrong. My opening search tag is:

{exp:search:advanced_form result_page="search/results" no_result_page="search/no-results" form_class="advanced-search"  results="10" search_in="everywhere"}

I have also stripped away the results page to the bare minimum, and it doesn't look like anything there is causing issues. I am using the {exp:search:total_results} tag, and in one particular search it says there is a total of 4 results, but it displays two pages of results (which is everything with that keyword in the specified channel). The actual total should be 7 for that particular search with the category filter working. However, I think if the problem with the category filtering is corrected, then the root of this may be fixed too.


texts:
I wonder how you guys do tables in ExpressionEngine? Sometimes there's a clear need for tables - semantically.

Matrix is not an option since it can only have a predefined amount of columns.

I used markdown tables, but most of the time I don't need a header. The only usable thing I found was textile tables, but I want to get rid of textile and use markdown wherever I can.

Any ideas?
cheers
stefan


texts: Can't log in to Admin CP after updating from 2.6.1 to 2.7.3

texts:
I've just finished updating my EE installation from 2.6.1 to 2.7.3 but now that the update is complete I cannot log in. I can access the login page but when I enter my credentials it tries to load http://mysite.com/admin.php?S=0&D=cp&C=login&M=authenticate but it just hangs there forever.

Some things I have tried based on similar issues I found on the EE forum:

Tried using a different browser
Tried clearing browser cache and deleting EE cache folder
Tried adding $config[‘admin_session_type’] = “c” to config.php
Tried adding $assign_to_config[‘cookie_prefix’] = “site_name” to index.php and admin.php
Tried enabling debug mode in index.php and admin.php(did not get any errors when trying to load the Admin CP but when I try to load the homepage I am getting the following error:

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

Any ideas? Thanks in advance!


texts: Why don't the Comments field display in the Admin Notification Template?

texts:
I am using freeform 4.0.12 on EE 2.6.1. Everything works except the comments textarea field contents are not displaying in the Admin Notification.

Here is the form:

{exp:freeform:form
form_id="1"
form:id="contact"
required="name|email"
return="contact/thank-you"
notify_admin="yes"
notify_admin_template="contact"
}

First Name:
<input type="text" name="first_name" id="first_name" value="" />

Last Name:
<input type="text" name="last_name" id="last_name" value="" />

Email:
<input type="text" name="email" id="email" value="" />

Phone:
<input type="text" name="phone" id="phone" value="" />

Comments:
<textarea name="textarea" name="comments" id="comments" rows="10" cols="50"></textarea>

Enter this value:

{freeform:captcha}

Here:
<input class="captcha" type="text" name="captcha" value="" />

<input checked="submit_button" type="image" src="/photos/btn_submit.png" alt="submit form" />
{/exp:freeform:form}

Here is the code in the notification form:

{first_name} {last_name} submitted the following information from the website contact page:

{all_form_fields}
    {field_label}
    {field_data}
{/all_form_fields}

When I get the response back it looks like this:

  Mark Twain submitted the following information from the website
  contact page:

  First Name  Mark

  Last Name   Twain

  Email   markt@macx.com

  Phone   919-000-0000

  Comments

Note: The comments are blank. So sad.

Any ideas?

Thanks.


texts: Taxonomy nav for levels 1 through 3, while current page is level 4?

texts:
My multi-level menu works fine for pages at levels 1, 2 and 3.

{exp:taxonomy:nav
 tree_id="1"
 display_root="no"
 active_branch_start_level="1"
 depth="3"
    {if {embed:entry_id} }
        entry_id="{embed:entry_id}"
    {/if}
    {if {embed:node_id} }
        node_id="{embed:node_id}"
    {/if}
 }

However, when I reach a URL at level 4, the menu disappears. This is to be expected, because of the depth="3" parameter. If I change it to "4", then my menu expands to show all four levels, but that's not what I want. I want the menu to show only three levels, even if the current URL is in level 4.

How can I show the same 3-level menu at all times, even when I'm on a level 4 page?


texts: Ampersand with certain spacing not allowed in Category name

texts:
When I use an ampersand (&) in a Category name with spaces in a certain order I get an error that does not allow me to submit the change. Using EE v.2.9.2.

Error: "The data you submitted did not pass our security check."
This seems to be the "invalid_xss_check" error.

I have tried to change the Category group to "Allow all HTML" and to also encode all HTML but I get the same results.

Here is what works and what doesn't work (screenshot below).

Works:

  "One[space]&[space]Two"
  "One&[space]Two"

Does Not Work:

  "One&Two"   ( <--- This is the one I want )
  "One[space]&Two"
  "One[space]&amp[space]Two" - (going insane...)

Screenshot:


texts: Is Field Pack v2.x compatible with EE v2.5.x?

texts:
Pixel and Tonic, could one of you please confirm whether or not Field Pack is compatible with EE v2.5.x?

Thanks
Brendan


texts:
I installed a new custom gateway I use via omnipay into EE2 backend, but when I go to 'Expresso Store' and click on 'Payment Gateways' to see if my payment gateway displays in the list, it gives me the following error:

Fatal error: Uncaught exception 'Omnipay\Common\Exception\RuntimeException' with message 'Class '\Omnipay\PayU\Gateway' not found' in C:\wamp\www\flook\trunk\backend\expressionengine\third_party\store\vendor\omnipay\common\src\Omnipay\Common\GatewayFactory.php

What could the problem be?


texts: Multiple comment forms on single page/template

texts:
I keep reading everywhere that the actual comment:entries tag and comment:form tag should be used on a single entry view template.

https://ellislab.com/expressionengine/user-guide/comment/#id38

Anyone had experience in developing something like a facebook feed where multiple comment forms are to be made available along with the users comments for multiple entries?

UPDATE

As also suggested by Derek I've tried to do this…

This is the parent

{exp:channel:entries channel="posts" status="open|featured"}
            {embed="site/comment" entry_id="{entry_id}"}
{/exp:channel:entries}`

This is the embed being called

{embed:entry_id} --THIS GETS PARSED AND I GET THE ID ON FRONTEND
{exp:comment:entries limit="20" entry_id="{embed:entry_id}"} --THIS ONE DOESN'T

{name}

    {comment}
{/exp:comment:entries}

I just can't get the entry_id from the parent. It seems to not populate the comments tag.
If I hardcode the value in the embed call (eg. {embed="site/comment" entry_id="3"}) it works as expected. I suspect is a parsing order issue.

UPDATE2

adding a parse="inward" parameter to the {exp:comment:entries} tag seems to to the trick, but the {avatar_url} (i'd love to integrate commenter avatar) seems to point to the avatar of the entry author which is not what i want.


texts: Update to v2.10.1 causing layout to be messed up

texts:
I updated EE to the latest version including all add-ons (Wygwam, Navee, Channel Images). For some reason the layout of most pages is messed up.
There must obviously be some code update in this version that is preventing something from displaying correctly.
I notice any page that only has one segment in the url appears fine. All multi-segment url's have messed up layouts (98% of the site).

Update: It appears to have something to do with the Navee crumbs. This is the code i am using.
{exp:navee:custom_crumbs wrap_type="none" backspace="2" spacer="&nbsp; > " no_last_spacer="true"}{if link != ""}{text}{if:else}{text}{/if} {spacer}
{/exp:navee:custom_crumbs}

Is there something not right about this? It was previously working fine!


texts: Adding channel entries to a specific group in Friends

texts:
Is it possible to add channel entries to a group and let it respect the privacy settings of that group?

In other words: Allow the group creator to create content (channel entry) for a group.
If the group is private, then those channel entries respect that
If not private, then users can read/comment/interact with that channel entry.

Thanks!


texts:
I notice Cartthrob has a message up on the site about putting Subscriptions on hold. But the site still has a Buy Now feature on the subscriptions page... Is Subscriptions up and running again?

I want to use Cartthrob for both shop, but very importantly annual subscriptions. Is this not possible currently? (It is a project that needs completed in Aug, so a bit of a rush)

There is no automatic billing or the likes, simple the user subscribes for a year, and is notified when the subscription expires. There will also be products for sale separate to this, hence why I am interested in using Cartthrob.


texts: Prevent duplicate rows with matrix when using ajax submit?

texts:
I'm having some trouble determining a good solution to save a Matrix field using Safecracker and AJAX.

From what I see matrix creates new rows by using field_name[row_new_0][col_id_xxx] or field_name[row_id_xxxx][col_id_xxx] when editing an existing row. I would have hoped that the row_id_xxxx was just an increment and would be replaced but that's not the case, instead it's a unique id.

The form I am creating allows the user to save a form before they submit it completely and what happens is it will continue to create "new" rows once it is saved.

Any ideas on how to prevent this?


texts: Is this possible? ee5 / tab / custom view

texts:
Before i dive in too deep, i just wanted to ask the community here if what i'm trying to achieve is possible.

Essentially, i want to create a tab on the entry PUBLISH page let's call it Extra. Then i want to take complete ownership of the contents of that tab and place a bunch of php code in there for some non-EE related functionality. I simply need to do this within a publish tab in EE to grab the entry_id while a user is editing it. I did this in EE2 via Accessories, but those have been deprecated since and i'm assuming this is an option.

Is this doable? OR can you suggest a way of doing this another way?


texts: Matrix in Safecracker form displaying a row even though min row setting is set to zero

texts:
I have a Safecracker form with several matrix fields. All are currently configured with minimum rows set at zero, however a couple of fields used to have their minimum row setting set to one. Now those fields show one row even though the setting has been changed to zero. The other rows properly show the "No rows exist yet" message with the link to add a row.

How can I 'reset' the offending fields such that they display no rows?


texts: Solspace Calendar embed range not registering

texts:
For some reason we're getting a null set of data when the {if segment_3 == "week"} evaluates to true and its code is run:

// Base template

{if segment_3 == "day"} {!-- This works. --}
    {embed="calendar/event_landing" range_start="{segment_4}/{segment_5}/{segment_6}" range_end="{segment_4}/{segment_5}/{segment_6}"}
{/if}

{if segment_3 == "week"} {!-- This DOES NOT work. --}
    {embed="calendar/event_landing" range_start="{segment_4}/{segment_5}/{segment_6}" range_end="+1 week"}
{/if}

{if segment_3 == "month"} {!-- This works. --}
    {embed="calendar/event_landing" range_start="{segment_4}/{segment_5}/{segment_6}" range_end="+1 month"}
{/if}

// event_landing template

{exp:calendar:cal date_range_start="{embed:range_start}" date_range_end="{embed:range_end}" pad_short_weeks="n"}
    ...show events...
{/exp:calendar:cal}

In our ajax call, we're changing the segments before we send them so all single digits receive preceeding 0s.

// JS

var s_2 = {segment_2} + "", // M
    s_3 = {segment_3} + "", // D
    s_4 = {segment_4} + ""; // Y

if (s_2.length == 1) { s_2 = "0" + s_2; }
if (s_3.length == 1) { s_3 = "0" + s_3; }

// Render the AJAX url before calling it
ajaxTarget = "/calendar/ajax/" + selectedRange + "/" + s_2 + "/" + s_3 + "/" + s_4 + "/";

For an example, when the value of our ajaxTarget var is

/calendar/ajax/week/01/02/2014/

the event data for the next 7 days is returned just fine, but if we change the value of 02 to 27, resulting in

/calendar/ajax/week/01/27/2014/

no data is returned!

Please note that we've also tried using +7 days with the same results.

Any help on this would be appreciated~

EDIT 1:

I think I figured out the reason, but I don't know how to fix it:

I added this little bit of debug to the event_landing page:

<script type="text/javascript">
    var s4 = {segment_4} + "",
        s5 = {segment_5} + "",
        s6 = {segment_6} + "";

    console.log("/" + s4 + "/" + s5 + "/" + s6);
</script>

It's showing that the data is /1/20/2014, but this shouldn't be happening because we're adding (and checking) preceeding zeros before this is reached; they're just not showing up. Right  before the $.ajax(...) call, the the log shows the ajaxTarget as /calendar/ajax/week/01/20/2014/, so it's being changed during the request somehow :(


texts: parsing public_custom_profile_fields in discussion forum

texts:
Expressionengine 2.5.5 and Discussion Forums 3.1.10

How do i pass public_custom_profile_fields in forum_thread.html section of the forum.

i have tried placing  {custom_profile_fields} in forum_thread.html section but nothing gets displayed.

i am trying to display field name  in forum section so that i can create a custom label to a specific member and display it in forum section.

thanks


texts:
I'm trying to create a module tag but it just isn't working, I'm following the Hello World tutorial at Ellis Lab. My module is installed and the MCP part is working. Here is my mod file:
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Facebook_Photos {

    public $return_data = "";

    // Constructor
    public function __construct()
    {
        $this->EE =& get_instance();
        $this->return_data = 'Hello World';
        return $this->return_data;
    }

    public function get_photos()
    {
        $this->return_data = 'Hello World';
    }
}

?>

Just in case here is my tag pair in my template (it's the only template that exists):
{exp:facebook_photos:get_photos}

I’m getting the following error from EE:

The following tag cannot be processed:
{exp:facebook_photos:get_photos}
Please check that the ‘facebook_photos’ module is installed and that ‘get_photos’ is an available method of the module


texts:
I want to make a new field "untick box if you do not want to receive the e-newsletter' I am using Freeform Pro

Is this possible?

Thank you


texts: EE3.0 - custom member field not showing up in registration form in CP

texts:
I have created a custom member field in the CP and set it to "required", "show in registration" and "show in profile". However, it doesn't show up in the form when I register a new member in the CP and it doesn't show up in their profile when I go to edit a member.

I can see that the field was created correctly because it is in the exp_member_fields table. Am I doing something wrong that it is not in the form to register anyone and that I can create a new member without filling out that field? I am not using any plugins currently (developing a new site).

Thanks for any help anyone can give!


texts:
I have a client who wants to create an alphabetical listing of his categories, broken out by letter.  The only way I can think to do this is by restricting each list by the first letter of the category name, but I'm not sure how to accomplish that with expression engine parameters.

This is what I am trying to use, and it is not giving me any entries, even though I have entries whose category name starts with that letter.

A

    {exp:channel:categories channel="products" style="linear" category_group="not 4"}
            {if category_name ^= 'a'}

{category_name}

            {/if}
    {/exp:channel:categories}

Can someone tell me what I'm doing wrong?


texts: Can I relate entries AND assign extra data to those entries with P&T Playa, Matrix, or anything else?

texts:
This is my first EE build. I'm building a system that allows users to create content entries to be displayed anywhere on the site and in various different display formats (eg: featured, compact, thumbnail etc.). One entry could appear on several different pages and look different depending what display type it was given for that page.

Here's what I have already set up:

Create entries in a "Content" channel with various fields like rich text, images, links etc.

I know EE Relationships will do this:

Assign any number of those entries in any order to an entry in the "Pages" channel

I NEED to do this:

Associate a "Display Type" with each of those entries at the time of relating them to a page

This would allow me to share those entries across the site, but separate their display types from the data without that being done in templates.

If a combination of Playa, Matrix, Low Variables or any other add-on will help, I'd love to know!

I have to get purchase orders every time I spend an tiny amount of money so it's difficult to purchase add-ons unless I really know I can use it. :(

Thanks!

Mat


texts:
Need to add to comments selection of Like/Dislike. The form of adding text requires a mandatory choice of one of two options. In the form of a radio button. And, accordingly, display this field for published comments. Sorting no need.
Any ideas?


texts: Is there a shortcut/variable tag for an Assets field’s ‘parent’ entry title?

texts:
I have an Assets field in a Matrix field. When I'm inside the Assets field's loop, is there a shortcut tag to output the 'parent' entry's Title field (1.1 in the hierarchy below)?

Entry

Title
Matrix field

Assets field

Or do I have to use an embed?

I ask because I recall Pixel & Tonic used to document all kinds of variable tags for Playa such as {parent:title}, that still work but are now undocumented.

I've tried a few such ideas in my Assets loop to see if I could get lucky but no joy so far.


texts:
I want to give my form a name but it's not appearing

something like

{exp:freeform:form

   name='myform'

   collection=""
   required="
   return=""
   template=""
   send_user_email="no"

}

gives

but not a string with name='myform'


texts: Matrix images that are being pulled in via a Playa (Related Products) field

texts:
I have a product section. When I create a product entry, I select related product entries via a Playa field. I can get this to display as expected.

I have now added a matrix field on the product entry page that allows me to upload multiple product images for a specific entry.

When I view a product entry on the front end, the related products display as expected except for the images. All related products show the image from the main entry page they are currently visiting. Not the image for the entry that is related.

So I end up with a number of related products all sharing the same image.

I'm not sure where to go from here. Any help would be greatly appreciated.

Here's the code

{exp:channel:entries channel="products"}
                            {related_products}

                                                    {product_image limit="1"}

                                                    {/product_image}

                                                {sizes_available}

{title}

                                                {paint_type}

                            {/related_products}
                        {/exp:channel:entries}


texts: Wyvern and CKEditor - tags within custom styles not working

texts:
I've got a Wyvern field using Typekit, custom CSS and JS. I have a style called 'callout-right' that is applied to divs. It looks like this:

The problem: when I try to change text within the styled div, Wyvern applies the div style to h2, h3, etc.

Here's the HTML it generates. You can see Wyvern is applying the callout-right class to my h2 tag.

I want it to leave my text elements alone.

My JS file is:

CKEDITOR.addStylesSet('wyvern', [
{name:'Image on Left',element:'img',attributes:{'class': 'left'}},
{name:'Image on Right',element:'img',attributes:{'class': 'right'}},
{name:'Callout Right',element:'div',attributes:{'class': 'callout-right'}},
{name:'Callout Left',element:'div',attributes:{'class': 'callout-left'}},
]);


texts: How can I use the current logged in member ID in a custom query using the query module?

texts:
I have a query that I need to do that involves using the logged in member ID to limit the results.  The following does not work, because the {member_id} variable is not parsed early enough.

{exp:query sql="SELECT ct.title AS title
            FROM exp_channel_titles AS ct
            WHERE ct.member_id = {member_id};"
                }

I've tried to pass {member_id} as an embed as well, but it outputs the actual curly braces again and does not work either:

{embed="members/.favorite-query" member_id="{member_id}"}

{exp:query sql="SELECT ct.title AS title
            FROM exp_channel_titles AS ct
            WHERE ct.member_id = {embed:member_id};"
                }

I then tried to create a global variable using the session_end hook.  If I hard code the global variable, the query works, but it turns out that the $this->EE->session array is not available yet when using the session end hook, so I cannot use that method dynamically.

There is a thread on this topic here:
http://ellislab.com/forums/viewthread/168569/#804745

I also tried creating a member_id value using a module tag, but again, the parse order is against me.

Am I overlooking any other options available here?


texts:
Is it possible to set a from name to system generated emails - at the moment the from field is just the email address. Would be nice to be able to tidy that up if at all possible.

The control panel setting page at Admin > Email Configuration doesn't seem to allow this, but you can change the from address in the field titled 'Return email address for auto-generated emails'

Many thanks in advance for your help.


texts: Problem parsing deep arrays with parse_variables()

texts:
I have a problem with the parse_variables() method once my data contains an array at a certain depth:
foreach ($cvs->result_array() as $id => $row)
{
    $variables[] = array(
        'id' => $row['id'],
        'name' => $row['name'],
        'template_id' => $row['template_id'],
        'template_purchases' => $this->cv_model->template_purchases($row['template_id']),
        'pages' => array(
            array(
                'page_count' => 1,
                'regions' => array(
                    'region_count' => 1,
                    'region_data' => 'something here'
                )
            )
        )
    );
}

return $this->EE->TMPL->parse_variables($tagdata, $variables);

What I'm finding is that it's fine if region_data is NOT an array. But the minute I make that an associative array I get an error:

A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 1
Filename: libraries/Template.php
Line Number: 3716

And

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

Is there a limit to the number of levels you can nest here? I'm trying to achieve something like this in the template:
{exp:blah:cvs
    id="{segment_3}"
    }

    {pages}

            {regions}

                    {region_content}

            {/regions}

    {/pages}

{/exp:blah:cvs}


texts:
Using the login_form tag, is there a way to specify a secure return address, without entering a full domain name? Only the 'intranet' part of the site should be under https.

For example, I can do this:

{exp:member:login_form return="https://www.mywebsite.com/intranet/"}

But I can't do something like this:

{exp:member:login_form return="intranet/index" secure="yes"}

With the first method, it seems a bit naff how you see a 'You are now logged in' page that's http rather than https after logging in. Also, using a full domain name doesn't play nicely with version control and multi-server environments.


texts:
I am currently working on a big project for a client where we are importing all of their content into ExpressionEngine. I written a script to do this which is fine, however, all of the URLS are going to be different for the new pages.

I have created an extra field in the channel for these pages which contains the pages old URL, could someone suggest a way to, when the old url is hit, to find that in the channel entries and redirect (301) to the new url?

Cheers.


texts: Subscribing the current member via Postmaster

texts:
I have a template that is called when a user wants to subscribe to the newsletter. It is formatted like this...

  {exp:postmaster:campaign:subscribe
    service="MailChimp"
    api_key="XXXXX"
    list="XXXXX"
    email="{email}"
  }

However the email part doesn't seem to load. How can you make it subscribe using the current member's email address?


texts: Solspace user password reset form - styling?

texts:
The link generated when i complete the forgotten password form sends me to EE member area password reset form.

How do i create my own password reset form so i dont have to style EE profile templates?


texts: Appending more data to a layout variable

texts:
I'm using template layouts, and setting variables with the {layout:set} tag.
Is there a way to append data to an already set variable?


texts: Clicking Update Button Wipes Out the Code

texts:
Has anyone encountered that? When I click "Update" button on "Edit Template" page, all the code that the template contained is mysteriously gone. The browser shows blank page.

What happens? How to prevent that?


texts:
I'm building an event schedule and I'm trying to conceptually figure out how to relate speaker information (name, title, bio) to times lots that the client will define.

Example:

9-10am Session I
 - Link to Speaker 1
 - Link to Speaker 2
 - Link to Speaker 3

I've done this type of relation with other channels simply through using categories, but in this case I do not know what the time slots will be to set up the categories and template code in advance.

Is the solution as simple as giving the client access to the category group and have them add custom categories that correspond with the time slot?

Sorry if my questions are very basic. This is my first EE site.

Thanks.


texts:
I am wondering if there is some sort of "data collision control" system available for EE. I am talking about a warning if a dataset is (about) being changed by two (or more users) at the same time, resulting in a potential dataloss.

EllisLab itself claims that EE is "a true content management system" and has an extensive User and Member Management Module. Even more I am baffled that this is not a core functionalty apparently. In the days of EE 1.x at least there was "Currently logged in Users" info near the footer of the CP.

There is an Extension "Lock Entry" on devotee but it looks like it is abandoned and the last time I tried it it seemed buggy.

Has anybody an idea on how to achieve this or how to maybe continue the work on Lock Entry?

Thanks and Cheers!


texts: Can't Change Root Directory of Site using MSM

texts:
I have just gotten MSM installed and now I'm going through the necessary steps to setup the new site on the current server. I've uploaded a new index.php and a new admin.php file to the new directory. If I type in the URL to the admin.php it opens up the Control Panel for the new site. However if I use the URL to the directory of new sites index.php all I get is a white screen. Below are my index.php and admin.php files (I renamed the admin.php file)

**index.php**

$system_path = '../../system';

$assign_to_config['site_name']  = 'VOT';
$assign_to_config['cp_url'] = 'http://artisanscenterofvirginia.org/VOT/votadmin.php';
$assign_to_config['site_url'] = 'http://artisanscenterofvirginia.org/VOT/';

votadmin.php

$system_path = '../../system';

 $assign_to_config['site_name']  = 'VOT';
 $assign_to_config['cp_url'] = 'http://artisanscenterofvirginia.org/VOT/votadmin.php';


texts: I can't seem to find a hook for when a member updates their password.  I am using EE v3.5.4 and just using the built in member templates.  I am sure on existing but I can't seem to find it.  Anyone know what it is?


texts: Updating to EE 2.9.2 on WAMP, blank screen after terms & conditions

texts:
I've upgraded EE our production and QA environments with no problem (both IIS), but when I tried to upgrade EE on my local environment (WAMP 2.2), I get stuck with this screen after accepting the terms and conditions:

Anyone else encounter this? How did you get around this?


texts: How to template a relationship field with multiple relations

texts:
I'm trying to build a channel form for updating channel entry data. In this scenario, I'm relating a farmer to multiple butchers.

{exp:zoo_visitor:update_form}
    ...

            {f_butchers:title}
            <input type="checkbox" name="f_butchers[data][]" value="{f_butchers:entry_id}" checked/>

    ...
{/exp:zoo_visitor:update_form}

This entry currently has 2 selected butcher entries selected. But only one is rendered on the template. I've tried wrapping the
 element in {f_butchers} pair tags to no avail.

In fact, wrapping them in f_butcher pair tags breaks the template parser and I get {f_butchers:title} instead of the actual butcher title. But once I wrap those pair tags in the {exp:zoo_visitor:details} pair tag, I get the one entry again. Still doesn't output the second entry.

The default {field:f_butchers} won't be enough since I need to do custom styling.

Does anyone know how to correctly template this field data?


texts:
Weird one, Expresso+Stripe usually works but in this one case it won't!

The payment_token is being generated (after 1-2 second delay) but the form isn't submitting after that.

Jquery is included ok, here's my template (just the important bits, all else is generic stuff)

<select name="payment_method">
<option value="">Please select</option>
<option value="Stripe">Credit/Debit card</option>
<option value="PayPal_Express">Paypal</option>
</select>

{!-- STRIPE FORM --}
<input type="text" id="payment_token" name="payment[token]" value="">

Name on card

<input type="text" id="s1" data-stripe="name">

Card number

<input type="text" id="s2" data-stripe="number">

Expiration month

    <select id="s3" data-stripe="exp-month">
    <option value=""></option>
    {exp_month_options}
    </select>

Expiration year

    <select id="s4" data-stripe="exp-year">
    <option value=""></option>
    {exp_year_options}
    </select>

CVV

<input type="text" id="s6" size="4" data-stripe="cvc" />

    <input type="submit" id="checkout_submit" name="submit" class="btn btn-pri btn-m" value="Place order">

Can't for the life of me see where its failing, no JS errors. Anyone have any idea?s


texts: Channel Fields Error After Updating to 2.7

texts:
I just updated to 2.7 and I was in the backend.. When I clicked on the name on one of the channel fields I got:

  Fatal error: Declaration of Safecracker_file_ft::display_field() must becompatible with that of EE_Fieldtype::display_field() in /home/site/public_html/dev/system/expressionengine/third_party/safecracker_file/ft.safecracker_file.php on line 5

This happens when I click any of the channel fields.. whats happening here?


texts: Proper way to output AJAX response in module?

texts:
What's the proper way to return an AJAX response within an ExpressionEngine module?

Good ole' echo "foo"; die(); seems to work but there must be a better way!

I tried the CodeIgniter approach $this->EE->output->set_output(json_encode($array));

Thanks for the help!


texts:
I need to send a soap requests to an external website but keep on getting
“Failed to load resource: Origin xxx is not allowed by Access-Control-Allow-Origin”
and
“XMLHttpRequest cannot load https://...?wsdl. Origin xxx is not allowed by Access-Control-Allow-Origin.

I have no control over the responding server.

Is there a way to send the request without the browser preflighting the request?
Another way of sending soap requests?

I am using EE 2.9.3 and JQuerySoap

<script>
$( document ).ready(function() {
var $_POST = <?php echo json_encode($_POST); ?>;
var $entry_date = $_POST["entry_date"];
var $billingFirstName = $_POST["billingFirstName"];
var $billingLastName = $_POST["billingLastName"];
var $eMail = $_POST["eMail"];
var $special = $_POST["special"];
var $howoften = $_POST["howoften"];
var $billingaddress = $_POST["billingaddress"];
var $billingaddress2 = $_POST["billingaddress2"];
var $billingzipcode = $_POST["billingzipcode"];
var $billingcity = $_POST["billingcity"];
var $doorcode = $_POST["doorcode"];
var $instructions = $_POST["instructions"];
var $telephone = $_POST["telephone"];
var $produktnamn = $_POST["produktnamn"];
var $produktpris = $_POST["produktpris"];
var $dibsrefno = $_POST["dibsrefno"];
var $billingdate = $_POST["billingdate"];

var xml =
    ['<soap:Envelope xmlns:soap="http://xxx" xmlns:v2="https://xxx">',
        '<soap:Header/>',
            '<soap:Body>',
                  '<v2:subscribeAndSettle>',
                     '<v2:shopName>xxx</v2:shopName>',
                     '<v2:userName>xxx</v2:userName>',
                     '<v2:password>xxx</v2:password>',
                     '<v2:verifyID>'+$dibsrefno+'</v2:verifyID>',
                     '<v2:data>1:'+$produktnamn+':1:'+$produktpris+'00:</v2:data>',
                     '<v2:ip>xxx</v2:ip>',
                     '<v2:currency>SEK</v2:currency>',
                     '<v2:extra>&amp;entry_date='+$entry_date+'&amp;billingFirstName='+$billingFirstName+'&amp;billingLastName='+$billingLastName+'&amp;eMail='+$eMail+'&amp;special='+$special+'&amp;howoften='+$howoften+'&amp;billingaddress='+$billingaddress+'&amp;billingaddress2='+$billingaddress2+'&amp;billingcity='+$billingcity+'&amp;doorcode='+$doorcode+'&amp;instructions='+$instructions+'&amp;billingdate='+$billingdate+'</v2:extra>',
                  '</v2:subscribeAndSettle>',
               '</soap:Body>',
    '</soap:Envelope>'];
$.soap({
    url: 'https://xxx?wsdl',
    data: xml.join(''),
});

});
</script>


texts: DateTimeZone error when trying to set up Importer

texts:
Importer 2.2.2 seems to have installed correctly on EE 2.7, then receiving the below error when entering setup for the Module.  Any thoughts on why the error is being thrown and how to fix it?

Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone ()' in D:\Inetpub\CBLink1\system\expressionengine\third_party\importer\addon_builder\addon_builder.php:4097 Stack trace: #0 D:\Inetpub\CBLink1\system\expressionengine\third_party\importer\addon_builder\addon_builder.php(4097): DateTimeZone->__construct('') #1 D:\Inetpub\CBLink1\system\expressionengine\third_party\importer\act.importer.php(65): Addon_builder_importer->timezone_offset() #2 D:\Inetpub\CBLink1\system\expressionengine\third_party\importer\addon_builder\addon_builder.php(702): Importer_actions->__construct() #3 D:\Inetpub\CBLink1\system\expressionengine\third_party\importer\mcp.importer.php(139): Addon_builder_importer->actions() #4 D:\Inetpub\CBLink1\system\expressionengine\controllers\cp\addons_modules.php(357): Importer_mcp->index() #5 [internal function]: Addons_modules->show_module_cp() #6 D:\Inetpub\CBLink1\system\codeigniter\system\core\CodeIgniter.php(319): call_user_func_array(Array, Array) #7 in D:\Inetpub\CBLink1\system\expressionengine\third_party\importer\addon_builder\addon_builder.php on line 4097


texts: Not able to add matrix rows after 99 rows

texts:
I am not able to add more than 99 rows in my matrix field though I have already set Maximum rows to 1000, not sure whats happening.
 Is it a BUG or LIMIT of matrix field type?

EE version : 2.6.1
Matrix version : 2.5.6

Note : Its an old project so cant take risk of upgrading EE or matrix


texts:
My client wants to control the member accounts (username/email/password etc) by their own API.  So essentially when they update their own database the EE database would update automatically.

Any way this can be achieved?  If so what does their API have to include?


texts: Solspace Calendar: Color Code events by Category

texts:
I would like to color code the day cell according to the event category. I have 4 categories Islamic, TRA, Global and UAE.Following is a screenshot of the calendar I would like to have.

Can anyone help me with an example code that does this.


texts: Problems overriding mod.member_settings.php email_prefs_form and update_un_pw_form

texts:
I have an extension and module that handles authentication for EE. I'm having some troubles understanding how to go about over-riding the handling in mod.member_settings.php. There is a hook for update|edit_user_preferences but it looks like it used to be that everything was under that hook. Sometime later they split things out but didn't add any additional hooks.

What I need to do is handle the email_prefs_form and update_un_pw_form. Ive thought of some ways I can think of doing this with the caveat that I don't how or if any of these are EE ways of doing things. One is to have the actions of the forms handled by my module/extension. Another is to trap sessions_end and try and return a view from my module's view directory (mod.member_settings seems to override any attempt to do this). Another might be to get hooks in mod.member_settings.php somehow to handle the submits.

Does anyone have any specific suggestions? I'm fairly new to EE so I don't really know what questions to ask.


texts: Values on Multiple custom fields in Solspace Super Search

texts:
According to the documentation here: https://solspace.com/docs/super_search/search_syntax/#custom_fields

I should be able to pass values from multiple custom fields into my search query. For example, I want to pass the following:

doctors_services-exact=Surgery&doctors_locations-exact=My%20Medical%Center

These custom fields are relationship fields, where I'm trying to filter on the exact title of each relationship. So, I have a service named "Surgery" and a location named "My Medical Center". Trying each one of these individually works - I get the expected results.

Both of these queries work:

doctors_services-exact=Surgery

OR

doctors_locations-exact=My%20Medical%Center

But in combination, it does not work. Any help on this would be great!

UPDATE:

I'm using SuperSearch 2.2.3 and EE 2.10.1. I'm trying to pass two values in the search string - these are the only two search criteria I'm passing - there are no keywords or any other parameters.

This search string is intended to find all doctors with a relationship to a "Generic Hospital Name". It works correctly - the search results show only doctors with a relationship to "Generic Hospital Name":

search&channel=doctors&doctors_locations-exact=Generic%Hospital%Name

This search string is intended to find all doctors with a relationship to "Primary Care". It works correctly - the search results show only doctors with a relationship to "Primary Care":

search&channel=doctors&doctors_services-exact=Primary%20Care

I need to combine these in the event that someone needs to find a doctor specializing in "Primary Care" at "Generic Hospital Name". So, this is my search string for that:

search&channel=doctors&doctors_services-exact=Primary%20Care&doctors_locations-exact=Generic%20Hospital%20Name

This does not work. I get ALL doctors who work at "Generic Hospital Name", however, they are NOT ALL "Primary Care" doctors.

If I remove exact on doctors_services like this:

search&channel=doctors&doctors_services=Primary%20Care&doctors_locations-exact=Generic%20Hospital%20Name

The results for this returns a mixed bag of doctors. The -exact on doctors_locations doesn't limit the doctors from "Generic Hospital Name" nor does it return accurate results for doctors_services. I'd expect to see doctors with services that include the words "Primary" or "Care", but the first doctor in the list specializes in "Lung Transplants" and "Abdominal Surgery".

If I remove -exact from doctors_locations like this:

search&channel=doctors&doctors_services-exact=Primary%20Care&doctors_locations=Generic%20Hospital%20Name

I also get a mixed bag of the results that does not seem to obey either doctors_services or doctors_locations.

Removing exact from both doctors_services and doctors_locations does not produce a comprehensible list of search results either.

So I can pass -exact on doctors_locations OR doctors_services just as long as they do not exist in the same query. doctors_locations-exact works by itself, doctors_services-exact works by itself, but not together.


texts:
I'm confused, is there any way to do this?
{if relationship_field:file_grid:field_total_rows != '0'}
    {relationship_field:file_grid limit='1'}
        {relationship_field:file_grid:file:thumbnail}
    {/relationship_field:file_grid}
{if:else}
    No picture, sorry
{/if}

UPDATE
This work:
{if {relationship_field:file_grid:total_rows} != '0'}
    {relationship_field:file_grid limit='1'}
        {relationship_field:file_grid:file:thumbnail}
    {/relationship_field:file_grid}
{if:else}
    No picture, sorry
{/if}


texts: How to do inclusive range in Low Search?

texts:
I have this field

{!-- Age Range --}
<fieldset>
    <label>Age:</label>
    <input type="text" name="range-from:age"/> to <input type="text" name="range-to:age"/>
</fieldset>

In Low Search, when I do a range search, it seems to be exclusive. Meaning, if I search for 25 to 35, search results do not include 25 and 35 (but will return 26 to 34). How to make this inclusive?


texts: Choosing user_notification_template based on selection made in form

texts:
Is there a way to specify a user_notification_template based on a select made in the form?

I have three options:

Red
Green
Blue

If the user chooses red then the red notification is sent upon form submit, green for green and blue for blue. Is this at all possible? (Just using colours for simplicity)

I did see How to set "Admin Notify" preference based on form input value? question/answer however I'm not sure how to use this in my case?

Thank you.


texts: Larger thumbnails in Channel Images Tile view?

texts:
I did a CSS hack (that Brad recommended) to make the thumbnails in the entry screen larger. I'm wondering if there's a similar hack I can make to make the thumbs in the Tile view larger?

Thanks!


texts: Can I use the SEO Lite title field as a Structure custom title?

texts:
In some cases I need to use custom page titles while using Structure. I know you can set up a custom field and use that, but I am also wondering if there is a way to use the Title field within the SEO Lite module?

If not, I think I could always hide the SEO Lite Title field and replace it with my own custom field, but I am hoping there is a simple way to accomplish it natively?

Thanks for your help!


texts: Does anyone know if there is an issue with this plugin for v 2.10.1 of EE? I've installed the plugin, created a rule for Entry Added, but I'm not receiving any notifications. I don't receive an error or anything, but nothing happens. I feel like I'm missing something really simple as the plugin seems very straightforward. My goal is for the super admin to be notified when a new entry has been added because the entry is closed and they have to know so they can change the status to open. I'm using it to moderate content.


texts: Pre-fill matrix field when creating new entry?

texts:
How can I pre-fill a matrix field when creating a new channel entry.

The reason to do this (and why a matrix field is needed) is:

Data is best entered and represented using a table.
Unwanted rows can be removed.
Additional rows can be added.
To avoid having to re-enter row descriptions that are frequently used.


texts:
I am building a web portal to display a list of servers and their designated applications in an HTML table. The channel I am using for the parent is called 'servers'. Inside this channel, I have a field called 'server_application' with a type Relationship that is pulling the options from another channel called 'system'. The field in that channel I am looking to grab is called 'system_short_name' and will be ultimately what I want to show on the webpage. How do I query for this? Are there parent IDs that I need to match in a SELECT statement? Below is a snippet of the HTML I am using to display the data. The table row that reads {server_application} is where the issue is. It does not know where I am trying to grab that field entry from.

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

      {title}
       {server_ip_address}
       {server_application}
       {server_environment}
       {server_deployment_date format="%M %j %Y"}

{/exp:channel:entries}


texts: Expresso Store - field:register_member default to checked

texts:
I don't want to force my customers to register as members (by using the register_member parameter on the checkout tag, but I would like to assume they'd like to by defaulting the checkbox created by the {field:register_member} tag to checked.

I can't find any documentation on wether this is possible. I don't want to have to use JS to do this if possible.

Any guidance much appreciated.

T


texts:
I'm looking at a way to change the author of a channel entry through a Safecracker form, in same style as used in the CP with a drop down select.

From what I can see it needs some sort of query, I've tried all sorts with variables member_id and author_id within tag pairs, without any results writing back to db.

Anyone done this?


texts: Low Variable and Matrix count not showing

texts:
I have a matrix field in a low variable and I would like to access the loop value (count) of the row. The loop runs throug without any problem and the values are shown on only the count isn't working

This is the code:

{exp:low_variables:parse var="lv_Form" multiple="yes"}

            {lv_Form:count}
            {count}
            {lv_Form:row_count}
            <input type="radio" id="dest_0{lf_Form:count}" name="destination" value="0{lv_Form:count}" />{lvFormDest_{user_language}} {lvFormStartDate format="%m/%Y"}

{/exp:low_variables:parse}

This is the result:

                        {var:count}
                        {count}
                        count
                        {lv_Form:row_count}
                            <input type="radio" id="dest_0{count}" name="destination" value="0{lv_Form:count}" />Tenerife 12/2015

                        {var:count}
                        {count}
                        count
                        {lv_Form:row_count}
                            <input type="radio" id="dest_0{count}" name="destination" value="0{lv_Form:count}" />Nicaragua 12/2015

                        {var:count}
                        {count}
                        count
                        {lv_Form:row_count}
                            <input type="radio" id="dest_0{count}" name="destination" value="0{lv_Form:count}" />Nicaragua 02/2016

So you see that the loop works well except for the count value and as you can see I tryed all options.

Cheers


texts: zoo visitor tags being wrapped in p tags

texts:
I am using Zoo Visitor and when I try and display my members the visitor:member_firstname and visitor:member_lastname have mysterious
 tags around them.  Based on my code below they should be on a singel line in a h2 tag, but instead they are on 2 lines each wrapped with a paragraph tag

{exp:zoo_visitor:members limit="99"}

 {visitor:member_firstname} {visitor:member_lastname}

{/exp:zoo_visitor:members}


texts:
I have an article page and at the bottom I'd like to show a list of related articles. I'm using Solspace's Tag add-on to generate the list. In order to generate the list I've created a Low Variables snippet called lv_sn_related_articles where I pass in the entry id of the entry:

{exp:low_variables:parse var='lv_sn_related_articles' preparse:entry_id='{entry_id}'}

I then use this variable within the Low Variable snippet along with the Tag tags:

{exp:tag:related_entries channel="articles" entry_id="{entry_id}" orderby="relevance" status="open|featured" limit="3" sort="asc" rank_limit="5" rank_method="total_entries"}

{exp:low_variables:single var="lv_sn_article_block"}

{/exp:tag:related_entries}

Within this snippet I have another Low Variables snippet called lv_sn_article_block which is an article block style I will use in various other parts of the site:

      {categories limit="1"}{category_name}{/categories}

          {article_hero_image}{/article_hero_image}

{title}

            By {author}, {entry_date format="%M %d, %Y"}

{article_lead}

The problem I'm getting is that this article block does not parse. I just get the bare template tags. If I take the article block code and put it directly into the lv_sn_related_articles the tags render normally. So something is happening with the nested lv_article_block that is causing it to not parse. How can I make this work or can it?


texts:
i ask for suggestions about running multilanguage on EE. fyi, i use transcribe.
i need to know what type is the most suitable url structure for multilanguage site.
for example my site will be available in english and french.
there is 2 options,
1. http://mysite.com/en/about-us
2. http://mysite.com/en/a-propos-de-nous

Which one of these options i should use?

The easiest one is the first, but i think the second one is more accepted. But i don't know, what do you think?

The second option challenge is that i have to enter the page url more specific and it cost time. Then in the transcribe module, i have to match if the translation is about hyperlink.
Also is it good if then maybe in search engine result there will be duplicate result but with different language?

What do you think?

Thanks,
.mafaik


texts: Can you remove the timestamp from the value generated by the EE date fieldtype?

texts: I'm trying to remove the timestamp from the EE date fieldtype since for my application it isn't necessary. I need to be able to select two dates a start and end date that should be formatted like like this "%F %d %Y" and without any time stamping. I do need to also have a start and end time but they are not going to be the same as the current time the form is filled out as inserted by the date fieldtype. I plan on using dropdate for my start and end times but I first need to get these time stamps removed. I thought about having users just type the date in but the calendar selector is a nice feature to just ignore because of this time stamp. Is there anyway to accomplish the removal of the time stamp from the EE date fieldtype on EE 2.5.2? I'd rather not modify the core but willing to do so if I can achieve what I need, thanks in advance for any tips or suggestions!


texts: Getting an 1054 Error with new EE Twitter Plugin

texts:
I recently added the EE Twitter Plug found on github to replace the Twitter Timeline plugin that stopped working.

I followed all the steps as instructed on the github page. But for some reason when I go to get the pin number, I get an Error message. I have uploaded this plugin to other sites and everything worked fine. I'm not sure what happen.

Has anyone else experienced this, if so what did you do to solve this issue? Here is what the Error Message reads:

A Database Error Occurred Error Number: 1054

Unknown column 'Array' in 'field list'

INSERT INTO `exp_twitter_settings` (`var`, `var_value`, `site_id`) VALUES ('nsm_twitter', Array, '1')

Filename: third_party/twitter/models/twitter_model.php

Line Number: 103


texts:
I'm finding a few add-ons/modules that are loading on every page/template even if they are not being called in that template.

For example, the Solspace Favorites module seems to constantly be coming up on every page of the site even though it is only being called with tags and used in only 2 pages/templates.

The issue is that it's also causing increases in memory usage (not crazy amounts but still). Is this normal and is there any way to avoid this?

Thanks!
Dan


texts: Solspace Calendar - Display next 4 events in order of occurence (date/time)

texts:
I am replacing an existing channel:entries tag pair which was displaying upcoming events, to now use the Solspace Calendar plugin (previous post here)

All I want to do is display the next 4 upcoming events.

(In order of occurrence - date/time.)(Any event that has a category checkbox selected will not display.)(The second/fourth div has a different style class)

{exp:calendar:events channel="event" category="not 15" sort="asc" date_range_end="12 months"}

{calendar:event_start_date format="%l"}

{calendar:event_start_date format="%j"}

{calendar:event_start_date format="%M %Y"}

{calendar:title}

{calendar:e_summary}

{calendar:event_start_date_timestamp_utc format="%g:%i%a"} to {calendar:event_end_date_timestamp_utc format="%g:%i%a"}

{calendar:e_location}

{exp:calendar:events}

Using Calendar 2.3.2

It appears that 'event_limit' no longer works?
Also unless I add "date_range_end="12 months", then NO results appear, even though the docs note that "If this parameter is not specified, then the default limit of 12 results will kick in".

What am I missing? ANY HELP is appreciated.


texts: Matrix, user global variables in basic text input breaking in simple if conditional

texts:
We have a Matrix that has a simple text input in the first column, and another text input in the second column. First column is for a link title, second column is for a URL. This is the stripped down code we're using to display this information on the template, showing the title if there is one:

{if "{link_field:total_rows}" >= 1}

{title} Links

{link_field}

      {if link_title}{link_title}{if:else}{link_url}{/if}

  {/link_field}

{/if}

Very simple: if there are any rows, output the h4, open a UL, loop through the rows (outputting a title if there is one, otherwise outputting the URL), close the UL, done.

The issue is that the simple "if" conditional is breaking things, especially if there is any text in the first column that resembles user-related global variables (email, screen_name, username). Those are actually getting parsed - even though there are no braces.

For example, a link title might read "Send email to user-selected recipient". The 'email' there is getting parsed (and getting double quotes added) so the field reads (using my email address): "Send "ryan@masugadesign.com" to user-selected recipient". That being the case, it's going into the {if link_title} conditional statement and breaking, so that the template returns a parse error:

Parse error: syntax error, unexpected T_STRING in /.../system/expressionengine/libraries/Functions.php(680) : eval()'d code on line 649

If we just output {link_title} outside of a conditional, it outputs the text in the field as I'd expect. Another odd thing we notice is that if we put a plus sign "+" in the first column, the template breaks as well.

Doesn't seem to make a difference how we do that conditional:

{if link_title}
{if link_title != ''}
{if "{link_title}"}
{if "{link_title}" != ''}

Has anyone run into this? This site is on EE 2.5.2. We just updated and tested with latest version of Matrix (2.5.3), so the add-on version doesn't seem to matter.


texts:
I’m creating an extension that on installation, programmatically creates a channel and fields for that channel.

One of the fields I’d like to create is a Grid field to store PDF documents against an entry. But reading through ExpressionEngine’s documentation on the channel fields API there’s no mention of Grid, and I can’t find anywhere that specifies the options for creating a Grid field.

What options do I need to specify? So far I have this:

array(
    'field_name' => 'floor_plans',
    'field_label' => 'Floor Plans',
    'field_type' => 'grid',
    'field_order' => 30,
    'field_instructions' => 'The floor plans for the property',
    'field_required' => 'n',
    'field_search' => 'n',
    'field_is_hidden' => 'n',
),

This creates the Grid field, but there are no inputs to enter data.


texts: Fluid Content repeating after 4.3.4 update

texts:
Working on a client site (local MAMP), after updating to EE 4.3.4 fluid fields are repeating.

At the present I am using WYGWAM for RTE and the template allows for several types of fields, I have seen this behavior with both WYGWAM and standard textarea fields (have not tried others). Here is a excerpt of my template;

{fluid_content}
    {if content_rte}{content_rte}{/if}
    {if content_code}{content_code}{/if}
    {if figure}

        {figure}

{figcaption}

    {/if}
    {if youtube_video_id}

    {/if}
    {if embed_code}{embed_code}{/if}
{/fluid_content}

Once I load the page however, the content is displayed twice. This started happening this morning after updating EE.

Is this happening to anyone else?

Thanks


texts: Playa - multiple selections - limit to 4

texts:
EE 2.5.5
PLaya 4.4.1
Zoo Visitor 1.3.23

On this site I have members who can edit their profile and select divisions that they belong to (playa). On the front end I can easily limit the display of their profile to only 4 divisions - :)

However on the divisions section of the site - Each division lists all members of that division using exp:playa:parents. The issue is how do I limit it so that a member only appears in the first 4 divisions that they have selected? As it stands I have a test member who is in 10 divisions and they appear in all divisions, however on their member profile only the first 4 divisions are displayed.

Ideally when setting up the playa field and selecting Allow multiple selections I could limit the number of selections but that doesn't appear to be possible.


texts: Automatically add rel="noopener" to hyperlinks set to open in a new window

texts: Is there an easy fix that will append rel='noopener' to every link that’s set to open in a new window when using the hyperlink button in a text area field?


texts: Expresso-store checkout update return url wrong

texts:
I'm using Expresso-store and on the checkout page I want to update the cart with the modified quanty. But when I hit the update button, I'm redirected to the wrong page.

I'm on: http://www.myurl.com/en/cart

And I'm redirected to: http://www.myurl.com/http://www.myurl.com/en/cart

The hidden fields contain:

<input type="hidden" name="return_url" value="en/cart">
<input type="hidden" name="RET" value="http://www.myurl.com/en/cart">

I have no idea why it's redirecting wrong. The update however is done correctly!

Edit:
I'm using this Publisher plugin for multi language.

Edit:

The next button is working now and redirecting correctly with the following next parameter.

{exp:store:checkout next="{publisher:current_language_code}/winkelmand/gegevens"}

Edit:

I found out that it has something to do with publisher. When I  enable Add URL prefix the full URL is returned in the hidden RET field. Disabling this setting will put a relative URL in the hidden RET field.


texts: Password reset link taking me to homepage

texts:
When I request the password reset, it generates a URL:

http://mywebsite.com?S=0&D=cp&C=login&M=reset_password&resetcode=rt4RTVHl

However, this takes me to the homepage of the site, not the password reset page.

Any ideas why this might be. Using the native members module 2.1

EE version 2.9.3

Thanks


texts:
On the last couple of EE upgrades I've received a PHP error regarding MB_ENABLED:

  A PHP Error was encountered Severity: Notice

  Message: Use of undefined constant MB_ENABLED - assumed 'MB_ENABLED'

  Filename: libraries/Encrypt.php

  Line Number: 367

This is repeated for each instance of MB_ENABLED in the system/codeigniter/system/libraries/Encrypt.php file.

If I wrap each instance of MB_ENABLED in single quotes then it resolves the issue but having to do this on each upgrade is a little annoying.

It seems to be mentioned on the EllisLab forums also but the solution is again to modify core files. Is this a bug? Has anyone encountered this issue in upgrading recently?


texts: Expresso Store: Shipping Confirmation email template - tracking number

texts: Is there any way to pass to shipping confirmation email template a tracking number from the order? I have try to use order custom field but it comes as not editable at the store back end so when order is shipped then tracking number can be pasted.


texts: How to capture EE embed output with Stash variable?

texts:
I have an EE embed that processes PHP code. I would like to capture that output with a Stash variable.

I'm using a model/view approach, ie. have one template to retrieve the data and another to output the page.

I have this code working correctly in my model:

{exp:stash:set name="my_var"}
    {embed="resources/store-post-data"}
{/exp:stash:set}

Test

{exp:stash:my_var}

and get results as expected:

Test
MyPostParameterValueHere

But when I use the exact same code

{exp:stash:my_var}

in my view I get the string

{embed="resources/store-post-data"}

and not the output of the embed.

What am I missing?


texts: Error when with referrer/upd.referrer.php when updating to 2.5.5

texts:
I was doing an update from 2.4 to 2.5.5 using Updater, it seemed to install EE but when it got to updating the modules it gave an error about the Referrer module and seemed to stop. It looks like the EE update worked fine, but if i try access the Referrer module it get this error

A PHP Error was encountered

Severity: Notice

Message: Undefined property: Addons_modules::$dbforge

Filename: referrer/upd.referrer.php

Line Number: 156

Fatal error: Call to a member function modify_column() on a non-object in /system/expressionengine/modules/referrer/upd.referrer.php on line 156

Any ideas what's up?


texts: Automatically creating an alphanumeric number for each new entry

texts:
I have setup a JSON feed to allow single sign-on to another system. Currently the entry_id and email are used as part of the URL string to access the 3rd party system, but this number could be guessed. I would like to provide some security by outputting an alphanumeric string as one of the fields, and using this in the URL instead.

Is it possible to have such a string created automatically in a new field when an entry is created? Are there other options for implementing this type of security?

So currently the single sign-on URL looks something like:

http://example.com/SingleSignOn/Microsite?externalId=123_someemail@foo.com

Where externalId is a combination of the entry_id and email address of the user.

I want it to be more like:

http://example.com/SingleSignOn/Microsite?externalId=983FFC60-90DB-4527-81FD-831F4C4AD5B3

I'm not sure where to start - any advice or suggestions welcome.


texts:
I'm trying to add a different title to inside pages of a specific channel. I have the logic down (I think), but am not quite sure how to determine if I'm getting served a single entry page:

<title>
{if embed:channel =='news'}
    {if [test for single page]}
        {embed:title}
    {if:else}
        News Index Page Title
    {/if}
{if:else}
    {embed:title}
{/if}
</title>

Is this possible?


texts:
I'm new to EE, and I'm not a web programmer, although I can understand some very basic things, and I used to use Wordpress which is very different. So my question may sounds trivial.

How can I update Modules in EE?

Do I need to only upload the new folder, or do I need to do something else?
I couldn't find any tutorial about this.
I have a website with EE 2.5.3 and I would like to update the Transcribe module to take advantage of only one option in the new version.


texts: Parse custom field data in entry_submission_end_hook

texts:
What I'm trying to do is parse the custom field data sent to the entry_submission_end hook.

Here's what I was able to dissect out of the channel entries module, but what I'm confused is how to instantiate an instance of Channel for use by the template parser library.

public function entry_submission_end_hook($entry_id, $entry_metadata, $entry_data)
{
    $tag_to_parse = "{page_uri}";
    $channel = new Channel; // do I include mod.channel.php and instantiate this, if so how?

    $this->EE->load->library('channel_entries_parser');
    $parser = $this->EE->channel_entries_parser->create($tag_to_parse);
    return $parser->parse($channel, $entry_data);
}

Ideally this should return the URI of the page for the entry saved via entry_submission_end.

Alternatively if there is another way to run logic on parsed tag data from a given entry upon saving or creating said entry I'm all ears.


texts: Check if product(s) are in cart of a specific category

texts:
I am looking for a way to check if certain products of a specific category are in cart and then based on that hide a specific payment method.

I have found this thread which deals with basically the same problem but checks if a certain product is in cart.

I'd like to tackle this with a broader approach, thus aiming for categories since products can be added all the time.


texts: Display a custom field with Rich Text Area fieldtype

texts:
In the documentation, I don't see anything here on how to display a field with fieldtype of textarea(richtext)

How do I display that field?


texts: Are there any plugins that make it possible to have yearly archives in EE? I'm talking about something like the current archives-by-month (January, February, etc. with the ability to paginate), but listing all entries posted in a full calendar year. I'm looking at moving to a responsive design, and want the date-based archives in the top menu like they are now...but I would love the option to link to a paginated template that lists all entries in a given calendar year (all entries in 2011, all entries in 2012, all entries in 2013...and so forth.) That would really shorten the top nav a LOT.


texts: Assets thumbnails: The action you have requested is invalid

texts:
Thumbnails for Assets are not working for me in the admin cp, I just see the checkers background.
When I try to directly access a url that's being requested for an image, I get the message "The action you have requested is invalid".

The url looks like this:

domain.com/?ACT=133&file_id=92&size=134x134&hash=1346394892

I have tried setting the assets_site_url config value, but that gave me the same result, only with index.php in the url:

domain.com/index.php?ACT=133&file_id=92&size=134x134&hash=1346394892

Strange thing is, I see the thumbnails in the list view (with the tiny images), just not the thumbnail views.
An example list view thumbnail url:

domain.com/?ACT=133&file_id=92&size=28x28&hash=1384331736

I'm using EE 2.7.1 and Assets 2.2.2.

Any help is appreciated.

Edit: since updating assets to the latest version, the "The action you have requested is invalid" error comes up inside the drop down when browsing for a file to add.


texts: Expresso Store with Stripe final checkout page reloads instead of submitting

texts:
I'm having a problem getting Stripe to successfully submit orders. I had it working at one point, but when we switched to live mode it stopped submitting and orders won't complete even if I switch back to test mode. The form just recycles and nothing gets posted to Stripe or EE. Things I've checked:

I don't have inline error handling on.
Token gets set correctly.
JSON formats and appears to be submitted in network tab of webkit inspector
Running Store 2.1 and EE 2.7.1
Submit button name is "submit"
If I switch to "manual" for my payment gateway it works great, so it's gotta be something in between Store & Stripe

Here's the checkout code:

{exp:store:checkout return="shop/thanks"}
<input type="hidden" name="payment_method" value="stripe">
<input type="hidden" id="payment_token" name="payment[token]" value="" />

Card Number
<input type="text" value="" data-stripe="number" />

Your Name
<input type="text" value="" data-stripe="name" />

<select data-stripe="exp-month">
    <option value=""></option>
    {exp_month_options}
</select>
<select data-stripe="exp-year">
    <option value=""></option>
    {exp_year_options}
</select>

CVC<input type="text" size="4" value="" data-stripe="cvc" />

    <input type="submit" name="submit" id="checkout_submit" value="Place Order" class="button" />
{/exp:store:checkout}

And the JS:

What am I missing?


texts: If Logged In Member ID Working Except for One Member

texts:
Good Afternoon, I ran into a strange issue this morning. I have a page setup that contains a special link that I only want five specific members to have access too. I setup a conditional using the 'if logged_in_member_id' method for this link. It's working great except for the member with the ID of 10. My code is below. Any ideas why this would not work for just one of the members?

{if logged_in_member_id == "13" OR logged_in_member_id == "4" OR logged_in_member_id == "7" OR logged_in_member_id == "10" OR logged_in_member_id == "13"}link{/if}

Thanks in advance for any tips or suggestions that will help me get to the bottom of this and get it resolved!


texts: Restrict Category Assignment To A Single Leaf Node

texts: Is it possible in CPanel to restrict the assignment of a channel entry to a single leaf node category? My categories are hierarchical and only a single, bottom-most category is valid per channel entry.


texts: super_search_total_results off when using search: parameter

texts:
I'm using Super Search (2.1.2) as a channel:entries replacement. I'm finding that super_search_total_results is wrong when I use search: parameters. A stripped down example:

{exp:super_search:results
  channel="files"
  search:files_area="=schedules"
  search:files_type="not digital"
}

I should have 5 results, but super_search_total_results give me a result of 8, which is the count of all items in the files channel, including the digital items. I am seeing only five files (which is right), but the total results result is incorrect.

If I use a query string instead:

search&files_area=schedules&files_type=-digital

I get 5 items showing and the correct count of 5. I don't always want to put a monstrous query string in the URL if I don't have to, because I don't want someone trying to manipulate it. Also, I don't think I can do an "if empty OR a specific value" in the query string like I can do with this (and will need to do on this site as well):

search:files_company="IS_EMPTY|{member_company}"

Is there something I'm missing as far as getting the correct total results count when using those search: parameters?

For anyone coming here with the same issue: I downvoted the initial answer because it doesn't actually answer the question(s).

I just found this comment in mod.super_search.php on line 1261 (SS v2.1.2):

//  If someone uses the search:body="something" template param, the counts
    can be thrown off. This conditional is a patch that will catch some of the cases.

Someone there knows about using the "search:" parameter style, and knows that the counts can be off. I don't think the patch is working, obviously.