texts: insert paragraph tag in exp_channel_data field?

texts:
I am inserting a para in one of the fields in table exp_channel_data.

The problem i am facing while retrieving that data.

Suppose if the inserted para is like :

Kawhi Leonard had 22 points and seven rebounds as the San Antonio Spurs advanced to the Western Conference final with a dominant 104-82 win over Portland to give them a 4-1 series victory.
Danny Green scored 22 points and Tim Duncan added 16 points with eight rebounds as the Spurs ensured a third straight conference final.
Duncan said the Spurs are starting to come together at the right time.
"We got to the point now where we understand how we need to play for a longer period of time," Duncan said.

Please notice the br tag.

When I retrieve it back on my page,I get the br tags inside the decription..Is there any way i can make the br or p tag work?


texts: How do I use Stash Get in exp:channel:entries?

texts:
I've got this code on a single entry template - it grabs the entry_id of the entry each time the template is loaded.

{exp:stash:set scope="user" save="yes" name="recently-viewed" replace="yes" parse_tags="yes"}{exp:stash:get name name="recently-viewed" scope="user"}{entry_id}|{/exp:stash:set}

In a another template I'm trying to use exp:channel:entries like this:

{exp:channel:entries entry_id="{exp:stash:get name='recently-viewed'}"}{title}{/exp:channel:entries}

I'm doing something wrong because no entries are being output by exp:channel:entries. If I use {exp:stash:get name="recently-viewed"} outside exp:channel:entries, I'm getting the expected output, e.g. 2883|7365|3837.

I've tried all day to figure it out - can anyone pleaseee point me in the right direction?

Best wishes
Lee


texts: Incomplete orders - they add to order ID?

texts:
I see that Store adds the order ID to incomplete orders.

So there is no accumulative counting of proper orders (orders miss IDS). Is there a way to change this so only actual orders receive an order ID?

Thanks.


texts: Related entries: Auto-complete input instead of select/option?

texts:
The relationship feature in ExpressionEngine is fantastic, but quite difficult to manage if a relation points to a channel with hundreds of entries. In said case, the control panel's select/option form element is inadequate.

Is there a add-on that allows to set up a relation through an auto-complete text input field, while honoring the ee-native relation fieldtype?

Would the Playa plugin address this issue?


texts:
Experiencing a very strange error at the moment that I can't put my finger on.

Running EE 2.7.0 and any time I try to sync a file from the CP to file system (using something like Libraree, Snippet Sync, Low Variables etc), I get the dreaded WSOD.

Despite having all debug options turned on, I get crickets in output.


texts:
A client's site using the Calendar add-on is generating loads of date urls, apparently infinite. Here's a sample taken from a Screaming Frog crawl:

/calendar/month/2081/05/
/calendar/month/1899/02/
/calendar/month/2121/10/
/calendar/month/1764/05/
/calendar/month/2637/03/
/calendar/month/1676/09/
/calendar/month/2308/06/
/calendar/month/1658/01/
/calendar/month/2549/08/
/calendar/month/1852/01/
/calendar/month/2362/12/
/calendar/month/1870/09/
/calendar/month/2502/06/
/calendar/month/2168/12/
/calendar/month/2081/06/
/calendar/month/1899/01/
/calendar/month/1764/04/
/calendar/month/2637/02/

I've been poking around in the code to try to figure out where this is coming from and my best guess is here (excerpt from the index template). Can you see anything here that looks like it would be creating the error, or could you point me in the right direction if you have other ideas where it might be coming from? Thank you!

 {exp:calendar:cal
        {if segment_3 == ''}
            date_range_start="year-month-01"
            date_range_end="year-month-last"
        {/if}
        {if segment_3 != ''}
            date_range_start="{segment_3}-{segment_4}-01"
            date_range_end="{segment_3}-{segment_4}-last"
        {/if}
    first_day_of_week="1" first_day_of_week="0"}

            {display_each_month}

                            &laquo;

                                {date format="%F %Y"}

                                &raquo;

                    {display_each_day_of_week}

                            {day_of_week_short}

                    {/display_each_day_of_week}

                {display_each_week}

                    {display_each_day}
                     0}has_events{/if}{if count == 7}selected{/if} {if day_is_today}today{/if}">
{if day_in_current_month}

                    {if day_event_total}{/if}
                    {day}
                    {if day_event_total}{/if}
                    {if:else}
                       {day}
                    {/if}

                    {/display_each_day}

                {/display_each_week}

        {/display_each_month}

    {/exp:calendar:cal}


texts: Freeform Contact form disallowed key characters

texts:
first time using the Solspace freeform add on. When i test out the contact form i get a "disallowed key characters"

here is my code..

    {exp:freeform:form form_name="contact" required="first_name|user_message" return="contact|contact_us" admin_notify="pete@pbwebdeisngs.co.uk"}

Email me here!

            Name
            <input type="text" id="name" name="{first_name}"/>

            Email
            <input type="text" id="email" name="{email}"/>

            Message
            <textarea name="{user_message}"></textarea>

            <input id="submit" type="submit" value="Comment" name="submit"/>

{/exp:freeform:form}

probably something stupid as usual but help would be appreciated

Thanks Peterp205


texts:
I'm using Matrix to list my clients services. I've added a 'Promoted Service' category to allow them to filter the services which get shown on the home page.

How can I set each Matrix row with an option to choose that category?

I thought this plug-in was perfect but it actually adds the category to the whole entry as well as the individual row which defeats my initial purpose as it then just shows every category on the home page.

http://devot-ee.com/add-ons/matrix-cat-col

Is there an easier way to do this?


texts: Adding new functionality to Live site while keep members

texts:
I have a live(Production) site, in which new users are signing up every day.

Meanwhile, I have a local version of this site on which I've built lots of new functionality. If I were to push the local DB live, then the newer members would be deleted.

Is there a way to import the new members into my Local site and then deploy?

Or would it be easier to migrate the new features into my Live site.  I am trying to avoid doing this manually.


texts:
Has anyone got a way to create a "repeating" field without using Matrix?

I kind of need Matrix's ability to create new "rows" but since each row would just have a single bit of text using Matrix seems like overkill.

The data will just be text and I could simply let the user add a comma delimited list of items but for the sake of neatness I would prefer them to enter each item in its own textbox then click to add another.


texts: Issue displaying specific category entries

texts:
I'm trying to create a native EE blog to move away from wordpress but the native categories are proving to be quite difficult. I've got the listing of categories showing, but directing them to their category template shows all channel entries and not just the category specified in the url. Code is below.

{exp:channel:categories channel="blog" style="nested" class="categories"}
    {category_name}
{/exp:channel:categories}

The click action works as desired and brings you to a url string

domain.com/blog/category/category_name

Category headings work fine

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

{category_name}

{/exp:channel:category_heading}

Displays "Category Name"

But then the actual categories do not display. It's as if there's simply no entries matching this category.

{exp:channel:entries channel="blog" disable="members|pagination" related_categories="yes" custom_fields="yes" dynamic="no" status="Open" sort="desc"}

By: {author}

  {entry_date format='%F %d, %Y'}

  {comment_total} Comments

{title}

            {intro_text}
            Read More

{/exp:channel:entries}


texts:
We're developing a form where the user submits a large form - 40 fields plus - which needs to get mailed to two different admins (one with the actual content and one with some other information) but which ALSO needs to post to a channel.

As of now we're looking at using Channel:Form and a Postmaster/Notification add on. But am wondering if this is actually the best way. Is there perhaps a more efficient approach using a form-submission module - one that submits the form and also posts to a channel?

Is there such a module? Any tips on how others might approach this?


texts: How do I italicize words in the title? The title field does not have a formatting panel under it like the body field.


texts: Freeform Pro checkbox group displaying checkbox above label

texts:
I'm having a problem with checkboxes displaying above their label when using {freeform:field:FIELD_NAME} for checkbox_group field types.

I've tried applying classes by using attr:NAME as well as wrapper_open/close and row_wrapper_open/close options, but nothing is working.

Is there some way to make my checkboxes display inline with their labels that I'm overlooking?


texts: MX Google Maps Search using GPS coordinates sometimes produces wrong result

texts:
MX Google Maps Version 1.5.3

Search for these decimal GPS coordinates 52.202191,0.128201 produces
a good result
Search for these decimal GPS coordinates 52.217026,0.055114 produces a bad result which is 52.212924, 0.065532 (rounded to 6 places)

These two locations are very close to each other in and around Cambridge, UK.

I have searched for these two GPS coordinates in Google Maps and get the right results. It seems that somehow MX Google Maps is either sending the wrong request to Google Maps, or it is misinterpreting the results.

I was suspicious of the "0.0" part of the latitude so tried searching for 52.217026,0.155114 etc but that still produced invalid results in MX Google Maps, and good results in Google Maps.

Any help appreciated.


texts: Update Quantity In Cart Using Dropdown List

texts:
I need to display my cart when the cart button is clicked, allowing the user to update the quantity of the items in his cart using a dropdown list. I can get the amount of items he chose to add to his cart using the {item_qty} tag, but how do I display this in a dropdownlist (with the maximum number as the total in stock)?

i.e. if the re are 4 items in stock, the dropdownlist should display options 1 - 4.

My code so far:

<select name="items[{key}][item_qty]">
    <option value="{item_qty}">{item_qty}</option>
</select>

This displays a dropdownlist with one value (1), but need to display the total in stock.


texts: Mulit Site Mananager for development sites

texts: Is is possible to make use of EE MSM for development sites? So one site in the installation would be the live site, and the other the development site.


texts:
Trying to get my online store up & running, but I'm having issues with the stock aspect of Store.

I'm using the default code that came with Store for individual products, aside from having removed the SKU section. When I create a product entry, I'm selecting "Limit Stock", then selecting the checkbox under that & inputting the qty. of product I have. (Let's say 8.) I go about the rest of my business, creating the product post - publish it, refresh the page, and where Stock is located in the form, it's outputting absolutely nothing. Should there not be "8" next to "Stock"?

Here's the snippet of code for that particular area, as well as the URL where you can see what I'm talking about:

Stock Qty:

Product Dev

(That commented out part that says "automatically set" was there when the module propagated the templates.)

I've tried putting the following in it's place, but I still get an empty result.

{if total_stock > 5}
In Stock
{if:elseif total_stock <= 5 && total_stock != 0}
Low Stock
{if:else}
Out of Stock
{/if}

I suppose I really don't understand how it's supposed to work, and your help would be greatly appreciated. Thank you! :)


texts: Help with ChannelEntry Model Service to get/set data directly in the database

texts:
To retrieve data from a specific custom_field in a channel entry I used to do the following:

$data = ee()->db->select('field_id_2')
    ->from('exp_channel_data')
    ->where(array(
        'entry_id' => $entry_id
    ))
    ->get();

$field_value = $data->row('field_id_2');

How would I do that now ?
Is there somewhere I can I find examples  for getting and setting data in channel entries using the ChannelEntry model ?

(examples in the docs are for members and templates and I don't get how it relates to entries)


texts: Display other entries from same category on single-entry page

texts:
I have a single-entry page with no category information in the URL. Each entry is only assigned to one category (or, if multiple, I only need one).

The goal is to display a list of up to 5 other entries from the same channel and category.

I've been around and around this but can't figure it out. Any ideas?


texts: has anyone done a plugin for an automatic magazine layout?

texts:
before I get my hands dirty, I wanted to ask if someone in the community has done an automatic layout tool for expressionengine?

I am talking about the method here:
http://alistapart.com/article/magazinelayout

the php code is available, but I think it has no caching and I don't speak php...

any hints welcome!


texts:
I am trying to set up a form on the front-end with channel:form but it doesnt behave.

channel-form-file-upload http://supinum.com/bilder/channel-form-file-upload.png

Clicking the 'Undo Remove'-link or the 'close-x' on the thumbnail does nothing but add a # to url.

What is this form lacking? Javascript? css? query? ACTurl-something?

This works perfectly on a simple local install. There I can reproduce this error by unchecking 'Generate HTTP Page Headers?' in 'Output and Debugging Preferences' But doing this backwards doesnt help me on the more complex live site.

What should I look for?

/thanks, David

<!doctype html>

    <meta charset="UTF-8">
    <title>upload files</title>

{exp:channel:form channel="formchannel" return="thank/you"}

        Title
<input name="title" type="text">
        Photo
{field:photo}

{/exp:channel:form}

Screendump of error message in Safari:

Screendump of error message in Safari http://supinum.com/bilder/channel_form_error_log.png


texts: Problem with phpstringfun and substr_count function

texts:
I'm using phpstringfun plugin to check a comma-delimited list for the presence of a single number.

{exp:phpstringfun function="substr_count" par1="{member_group}"}
{member-groups}
{/exp:phpstringfun}

member_group is the member group of the current user. member-groups is a category custom field. I've confirmed they're both working with

 member-groups: {member-groups} member_group = {member_group}<br>

For example, I'll see the values "6,7" and "6", so 6 should be found in list.
When I run the function, it always returns 0.

I've tried @dom-stubbs

{exp:channel:categories category_group="1" channel="pm" style="linear"}

{exp:switchee variable="{member_group}" parse="inward"}
  member-groups is: {member-groups}
  {case value="{member-groups}"}
    We have a match.
  {/case}
{/exp:switchee}

{/exp:channel:categories}

And no luck. I've confirmed that the member-groups and member_group variables are available. Nothing is output.


texts:
In a template I was working on recently, I started to get PHP Notices about undefined constants FALSEOR and FALFALSEORFALSE:

A PHP Error was encountered
Severity: Notice
Message: Use of undefined constant FALSEOR - assumed 'FALSEOR'
Filename: libraries/Functions.php(683) : eval()'d code
Line Number: 205

[and]

A PHP Error was encountered
Severity: Notice
Message: Use of undefined constant FALFALSEEORFALSE - assumed 'FALFALSEEORFALSE'
Filename: libraries/Functions.php(683) : eval()'d code
Line Number: 260

The template code that generated these messages was:

{if STYLE}

        Style
        {STYLE}

{/if}

{if YEARBUILT}

        Year Built
        {YEARBUILT} {if YEARBUILTSRC}({YEARBUILTSRC}){/if}

{/if}

The variable names in all caps are variables provided by a plug-in. It is possible that they may have empty values, but I haven't been able to produce a case where any would be undefined [in the array consumed by TMPL->parse_variables() in the plugin].

I'm stumped as to why they're being parsed as PHP constants... And even so, I don't see where the strings 'FALSEOR' or 'FALFALSEORFALSE' are being created. Those strings don't appear anywhere in the EE source [that I can find], and none of the template variables are so named.

Should I report this as a bug? Has anybody seen something like this before?


texts:
One of my category groups is rather big ( 100+ categories ) and the tree-structure to show categories just doesn't cut it anymore. It's too long and confusing.

So I would like to display my categories in a dropdown on the publish page.
Something very similar to this: WB Category Select, but without having to use a custom field to display and store the categories.

I really want to use the native categories because of 2 reasons:

All of my entries are allready assigned to their categories, and I don't want to redo this for 1000+ entries in 100+ different categories
I'm working with GWCode categories to display everything on the front-end, and that add-on only works with the native categories

That's why WB category select is out of the question.

So how do I do this, can I build an add-on to affect the way categories are being outputted in the back-end ?

Also, the categories have multiple levels of subcategories, but they don't require multiple selections, so a drop-down should be sufficient ( doesn't have to be a multi-select )


texts: EE code in WYGWAM being wrapped in a paragraph tag

texts:
I'm using MX-Jumper to replace EE style code in a WYGWAM field with images. The WYGWAM content will look something like this:

{image_1}

Climb leg rub face on everything give attitude nap all day for under the bed. Chase mice attack feet but rub face on everything hopped up on goofballs.

Using MX-Jumper I'm replacing {image_1} with images from a Matrix field. Thing is when putting {image_1} in the WYGWAM field it’s getting wrapped in a

 tag.

Is there any way to strip or even disallow a

 tag around these shortcodes?


texts:
More specifically, when opening the modules>assets screen I get a whitescreen in both the site and the CP with the following:

Parse error: syntax error, unexpected T_STATIC in /home/ingedingen/domains/ingedingen.be/public_html/cmssystem/expressionengine/third_party/assets/helper.php on line 205

I've rolled back to assets1 in the mean time. This is on EE2.5.5.
Any suggestions?


texts: creating dynamic pages with Low Variables

texts:
I am trying to use low variables and the grid together to allow the client to create dynamic pages. I have the grid set up to create a title and then another field for the page content. I want to list the page titles on the side and when clicked shows the corresponding page content.

Is this possible? I have it currently populating the side column with the page titles with this code:

{exp:low_variables:pair var="lv_patient"}
{lv_patient:page_title}
{/exp:low_variables:pair}

I am then pulling in the page content with:

{exp:low_variables:pair var="lv_patient"}{lv_patient:page_content}{/exp:low_variables:pair}

Which just pulls in all the content not the stuff specific to the corresponding title.


texts: current_time and edit_date are 5 hours off, PHP date() is correct

texts:
We built a site for a hospital and they can login to a special admin page where they can update location wait times using exp:channel:form

When they first login, we show the last updated time and the last wait time updated. When I output {current_time} and the entry's {edit_date} inside the channel loop, it's 5 hours off.

When I echo the current time using the PHP date() function, it outputs the current time in the client's time zone (PT).

Running EE v2.7.3

What could be causing the offset in the {current_time} and {edit_date} EE tags? I'm pulling my hair out!


texts:
If I have an item (for instance, a concert VIP Package, that includes a T-Shirt.. ) that is single SKU with a modifier (T-Shirt Size..), is there any straightforward way to generate a report with a count of the number of each modifier sold?

I tried using a SQL COUNT that joined exp_store_orders to exp_store_order_items but modifiers ia base64 encoded JSON string...


texts: In function display_field(), if a fieldtype needs to use ee()->cp->add_to_head('/path/to/foo.css') and ee()->cp->add_to_foot('/path/to/bar.js'), how can I get it to do so only once, even when the Publish page may have multiple instances of that field?


texts: Solspace User 3.4.6 Registration error on dev server - EE 2.7.3

texts:
I am using Solspace User for new member registration. I've installed the demo templates and attempting to register a new user. Submission of the registration form throws the following errors:

Message: Undefined property: stdClass::$csrf_hidden_name  Filename: user/mod.user.php  Line Number: 5955

This is followed by a series of "headers already sent" errors.

Oddly, the new user is successfully saved to the members table, and can subsequently login successfully.

Using EE 2.7.3 and Solspace User 3.4.6

Update: I then regressed back to User 3.4.5, and it works successfully w/ EE 2.7.3


texts: An Error Was Encountered Site Error: Unable to Load Site Preferences; No Preferences Found

texts:
Besides database issues what causes this?????

I have not upgraded or moved the site.

I have set the permissions, checked my config.php file and so forth.

Are there any other solutions?


texts: Using Playa field to order channel entries list

texts:
I tried ordering a channel entries tag pair by a playa field (that is single entry relationship), like so:

{exp:channel:entries channel="channel_name" orderby="playa_field_name" sort="asc"}
looped stuff goes here
{/exp:channel:entries}

What I got was in some sort of order, but it wasn't alphabetical according to the titles of the related entry. I think it's sorting according to the information hardcoded into the database for that playa field, which would sort it according to the entry_id of the related field because the text in the database starts with the entry id in brackets. This is my theory anyway.

Surely I can't be the first person to run across this problem. Any thoughts?


texts: ExpressionEngine 404 Not found - /index.php/products was not found

texts:
I have just begun working with ExpressionEngine. The production site is working just fine and I wanted to create a local version for dev purposes.

I am receiving 404 not found errors on my localhost pages such as localhost:8888/example.com/products or localhost:8888/example.com/aboutus, but the index or home page comes up just fine - localhost:8888/example.com/

I have followed the steps for migration from this link - http://ellislab.com/expressionengine/user-guide/operations/moving.html

1) Downloaded flat files via ftp
2) Used a backup .sql to load the local mysql
3) Able to login to system - localhost:8888/dev.example.com/system - all usernames & passwords work
4) Setup all the URLs within Admin> General Configuration - so on and so forth

I was able to fix my template synch issue by going into the Design> Templates> Global Preferences and change the path to the templates' path on my computer - they were still set to the template’s path in production.

/Applications/MAMP/htdocs/dev.example.com/templates

Both the localhost:8888/example.com/system and the initial index page - localhost:8888/example.com/ - function exactly as they would be expected to do.

I have created an htaccess file and placed it within /Applications/MAMP/htdocs/dev.example.com/:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    # Removes index.php from ExpressionEngine URLs
    RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
    RewriteCond %{REQUEST_URI} !/system/.* [NC]
    RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]

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

But I am still receiving a 404 not found error whenever I try to go to localhost:8888/example.com/products then it thinks that /index.php/products was not found, why does it not say products/index.php?

BTW, is the path to the templates supposed to be this:
/Applications/MAMP/htdocs/dev.genesistoday.com/templates

or this:
/Applications/MAMP/htdocs/dev.genesistoday.com/templates/default_site/


texts: PHP Error on Structure manage entries page

texts:
I'm experiencing the following PHP error on a site running Structure (3.3.6), and am having some trouble debugging it.
The text of the error is:

A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 106
Filename: views/index.php
Line Number: 45

It is being output inline in my entry tree like so:

The code on line 45 of structure's views/index.php is:
$add_url  = BASE.AMP.'C=content_publish'.AMP.'M=entry_form'.AMP.'channel_id='.$page['channel_id']
.AMP.'parent_id='.$eid.AMP.'template_id='.$site_pages['templates'][$eid];

(Line break added for readability)
I can't see anything unique/wrong with the entry that is triggering this notice, and Structure is otherwise working fine. The only real reason I want to clean it up is that it's visible to the client in the CP (not my server and I can't edit PHP error prefs unfortunately).
Has anyone seen this before/know how to fix this?


texts: How to create a link to my C: drive in ExpressionEngine 1.6.4

texts:
I'm trying to create a link on my webpage to a file on my C: drive, but for some reason ExpressionEngine switches my backslashes into forward slashes.

For example < a href="file:\\C\data\text.doc" > will be turned into < a href="file://C/data/text.doc" >

And therefore the link doesn't work. What to to?


texts: How to redirect from front end to expression engine Admin panel

texts:
I tried login from front end and redirect it to adminpanel but it doesnot logged in  to it. This is the code i tried.

{exp:member:login_form return="www.sample.com/admin.php?/cp/homepage"}

    Username

    Password

{/exp:member:login_form}


texts: BrilliantRetail: Stripe gateway is not working

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

Fatal error: Call to a member function retrieve() on a non-object in /home/redchair/ee/expressionengine/third_party/brilliant_retail/core/gateway/gateway.stripe.php on line 406

Any thoughts what the issue may be?

Thanks!

p.s. BrilliantRetail 1.8.0


texts: How to exclude a category from a Playa field?

texts:
Im trying to exclude a specific category from a playa loop.
As the doc says, most of the exp:channel:entries parameters are available so I've added the category parameter to the playa field.

If i declare a category inside the paya tag as below:

{my_playa_field category="16"}
...
{/my_playa_field}

all works like a charm.

But if I try this:

{my_playa_field category="not 16"}
...
{/my_playa_field}

it simply doesn't work.

Where am I wrong?


texts: Which version of MSM is compatible with EE 2.8.1?

texts:
I recently updated my EE installation to EE 2.8.1. All is well except I cannot get Multi Site Manager to work. I'm currently using MSM Version: 2.1.7 Build: 20140715 and when attempting to switch to a different site's control panel using the site dropdown within the control panel, I'm presented with the following error:

Fatal error: Call to undefined method Cp::switch_site() in /system/expressionengine/controllers/cp/sites.php on line 57.

Within each of my site's main admin.php file, I've set site_name and cp_url within the $assign_to_config array but the settings are not working.

I'm wondering if the version of MSM that I have is not usable with EE 2.8.1. Can anyone confirm this or does anyone have any insight as to why I'm receiving this error?


texts: I’m not using the add-on, but the error is “Unable to load requested field type file: ft.wygwam.php.”

texts:
I updated EE from 2.2.2 to 2.7 core and moved the site to a subdomain called ee.mydomain.com. I changed the URL in config.php and in Admin/General Configuration, and admin works fine.

But when I try to view a page in the template editor or the site as a whole, all I get is the error

"Unable to load requested field type file: ft.wygwam.php.

Confirm the fieldtype file is located in the expressionengine/third_party/ directory"

I'm not using the Wygwam add-on and never have. The system/expressionengine/third_party folder is empty except for an index.html file.

Setting the debug flag in main site index.php shows no errors.

If it matters, I have this in .htaccess, but it makes no difference with it or without it when viewing the site:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>

Any ideas? How can I delete references to the ft.wygwam.php file? Are they in the database?


texts: I'm having trouble getting simple IF statements within a Playa tag to evaluate properly

texts:
Channels and Fields Summary:

Tours channel - stores a list of all Vacations the site offers

tour_specials field - a Playa field, linked to the Specials channel indicating which Special Offers apply to this tour

tour_show_specials_banner field - a Switch to determine whether to show a special offer banner against this entry, if the tour_specials field has any entries

Specials channel - list of Special Offers that can apply to multiple tours
Promotions channel - stores lists of tours our partners want to promote. Though it sounds similar to Specials, it is distinct from a business perspective.

promotion_tours field - a Playa field that stores multiple tours channel entries, indicating which tours are linked to a promotion

The Problem:

I have created a Promotions page that gets a Promotion, and lists all tours associated with the promotion from the promotion_tours Playa field
The listing of tours in the Promotion also needs to check whether a tour has a Special Offer running, by looking at the tour_specials field in the tours entry to see if any Specials apply
However, all the various code blocks below WILL NOT ever evaluate to true, in the event a tour listed has a Special associated with it

The Code:

Here's the master code block that outputs all Playa entries from the promotion_tours field (all tours associated with the promotion):

{promotion_tours dynamic_parameters="orderby|sort|limit" orderby="title" sort="asc" limit="10" disable="categories|category_fields|member_data" var_prefix="promotions" paginate="bottom"}

        {if promotions:tour_show_specials_banner}

            {if {promotions:tour_specials:total_children} > 0}

            {/if}

        {/if}

{/promotion_tours}

I am using a var_prefix to allow my Playa entries to be paginated (see here for an explanation).

You can see where the problem starts is with {if promotions:tour_show_specials_banner}. That statement NEVER evaluates as TRUE, even when I know it should do. The following situations NEVER output anything:

{if promotions:tour_show_specials_banner}
{if tour_show_specials_banner}
{if {promotions:tour_show_specials_banner} == "y"}
{if promotions:tour_show_specials_banner == "y"}
{if {tour_show_specials_banner} == "y"}

I know some are syntactically incorrect but I'm getting to my wits end here...

HOWEVER, if I just output {promotions:tour_show_specials_banner} in my HTML, it outputs y in to the content! Which must evaluate as TRUE!

I'm seriously stumped. Any ideas?


texts:
i am working on a multipage form with FFPro.
It has 4 pages where the user needs to enter data.
At the end ( page 5 ) i would like to offer a summary page, where all data that was entered is shown as a summary.
Here i do not want to show input fields, just the entered value.
I just cant find a way to get the data-value of the field.

Is there no way to access live-data in form-fields?

Thanks 4 any help!

Patrick


texts: Is there way to change a status of a safecracker entry with jquery?

texts: I have a safecracker entry that I would like to change the status via jquery onClick or Submit? For example, I have one button that would be "save and preview" that onClick would change the status to "preview". There would be another button onClick button "Submit for Review" that would change the status of the same form to "pending". Is this possible?


texts: Getting the ID or name of a field on a parent entry that holds a Playa relationship

texts:
Using the parents() method of Playa, is it possible to get the name or ID of the field in the parent that holds the relationship?

{exp:playa:parents entry_id="1" channel="my_channel"}
    parent field name or id = {????}
{/exp:playa:parents}

Thanks


texts: Search on ExpressionEngine 3 giving image/file URL's as the excerpt

texts:
I have a site on EE 3.5.17. I am using the basic search feature provided and have a template which outputs results as follows:

{exp:search:search_results}

{title}

{excerpt}

{/exp:search:search_results}

When I do certain searches I get a URL to images (and sometimes other resources like PDF's) in place of {excerpt}. For example the output might be:

Whitepaper: Foo

https://example.com/pdf/foo.pdf

When I visit these pages there is more on them than just a downloadable PDF. For example the structure of the page above (/whitepaper/foo) contains a
, followed by a couple of paragraphs of text, and finally a downloadable file (/pdf/foo.pdf).

I can't see any way to override what the search facility uses as the {excerpt}. Is this possible?

Furthermore, the search results appear in a seemingly random - and not at all useful - order.

We are not upgrading this particular site to EE 4.x, and I don't know if the search in that is any better?

On a previous version of this site we used Google Site Search (i.e. where you have a form that scrapes results from Google for our domain, search-term site:example.com) but it looks like this has been discontinued.

Please can someone advise on how they've dealt with this situation as I imagine it's quite common.


texts:
I just did an import of members into the EE database, populating exp_members, exp_member_data, and exp_member_data_field_* tables. Seems intuitive and worked.

But on the CP homepage, those members aren't being counted in the "Total Members" label.

Anyone know where this value is pulled from? Not the most important thing in the world, but it would be more elegant.


texts: Displaying multiple/All channel entries on single page

texts:
When I try to set my limit to 3, 4, or anything, my page is simply displaying the same entry over and over, rather than showing all the different entries.  Please help!

{entries_start_1}
{entries_1}

    {exp:channel:entries orderby="date" sort="desc" limit="3" dynamic="no"}
        {entry2_image}
        {title}

        {entry_date format='%F %d %Y'}
        {entry2_intro}
        {entry2_body}
    {/exp:channel:entries}

{entries_column_divider}
Recent Post
{embed="includes/.sub_nav" section_channel="{section_channel}"}
{entries_end}


texts: Submitting data to Channel Images from outside EE

texts:
I run sports leagues, and want to have an interface where my photographers can upload images for a particular game in our system.  I've added some custom fields so that the photos can be tagged with the particular sport, the game ID in the database, and the team IDs of the two teams playing -- but they don't know any of this information, and the only way I'm able to do it is going to change all of the default values first (otherwise, clicking and typing all that data in is a big pain).

What obstacles would I hit if I try to create a form outside of EE that would submit to the same handler, and pass that information along in the form post?   I just want an interface where I can have my photographer click a game, and then drag/drop their photos, hit upload, and that's it.  On the back-end, I'd pass along the sport/game ID/team IDs to fill in the custom data.


texts: Suggestion for add-on for date-triggered emails?

texts:
Thought someone might have a suggestion of an existing add-on or built in EE solution.

What the client needs is a way to trigger a specific 'reminder' email sent out. The date, time, and email template, would be set in fields on the individual members entry (using members as entries).

For example, an entry called "John" could be updated by the client to trigger a reminder email to go out in 30 days, which would only go to him.


texts: CkEditor in Wygwam strips out  tags used in Font Awesome

texts:
When using Wygwam and trying to use an empty <i> tag like Font Awesome requires the tags get stripped every time a user goes back in to edit the entry.

A temporary fix is to do something like <i class="icon-play">&nbsp;</i>, but that's pretty messy. Is there a way to either have Wygwam automatically add the &nbsp; code like it does for <p> tags or a way to make it stop stripping <i> tags that are "empty"?


texts: Comments - Convert HTML to character entities

texts:
I wanted all my private messages and comments HTML text to be converted to character entities.

Fortunately for private messages, I was able to do it by setting a configuration via the Control Panel

Members -> Preferences -> Private Messaging Preferences -> HTML Formatting in Private Messages

Looking for a similar configuration for comments in the Control Panel, I can't seem to find any.

Is there a configuration for this specifically for comments?


texts: Possible to send member account validation notification email via Profile:Edit?

texts:
I've got an EE 2.5.0 site that is using Profile:Edit 1.0.9. I've got member activation set to Manual activation by an Administrator. I can activate the Pending members via the control panel and it sends a default EE email notification fine (the Member Account Validation Notification email, saying that their account has now been activated).

Is it possible to trigger that email notification via the front end using the exp:profile:edit form? I can change a member's group so they change from Pending to another member group, but no emails are sent. Or if not, how else can I trigger an email without going into the backend CMS? Thanks.

Here's my code:

{exp:profile:edit include_jquery="no" datepicker="no" return="/extranet" member_id="{segment_4}"}

First name

<input name="cf_profile_first_name" placeholder="First Name" type="text" value="{cf_profile_first_name}" />

Last name

<input name="cf_profile_last_name" placeholder="Last Name" type="text" value="{cf_profile_last_name}" />

Email

<input name="email" placeholder="Email" type="text" value="{email}" />

Member Group

  {exp:profile:member_group_select}
    <option value="{option_value}"{if selected} selected="selected"{/if}>{option_name}</option>
  {/exp:profile:member_group_select}

  <input type="submit" value="Approve login request &raquo;"  />

{/exp:profile:edit}


texts: Issue with custom fieldtype using shared form field

texts:
I am working on a custom fieldtype which essentially displays a select dropdown with some custom options. To keep in line with EE's styles I'm trying to use their shared form field to get it to display with their rich select dropdown field view.

The issue arises when this is added to a Fluid field. When it's first added to the Fluid field the options are populated, but you're unable to click the dropdown to display them (inspector tools verifies the options actually are there in the .field-drop-choices div. However, you're able to save the channel entry and when you go back to edit it you're then able to click the dropdown to display the option list.

This is my current display_field() method:

public function display_field($data)
{
    ee()->javascript->output('
        FluidField.on("dropdown", "add", function(element){
            Dropdown.renderFields(element);
        });
    ');

    ee()->lang->loadfile('fieldtype_name');

    $forms = $this->get_forms();

    if(empty($forms))
    {
        return '

'.lang('error_message').'

';
    }
    else
    {
        return ee('View')->make('ee:_shared/form/field')->render(array(
            'field_name' => $this->field_name,
            'field' => array(
                'type' => 'dropdown',
                'choices' => $forms,
                'value' => $data
            ),
            'grid' => FALSE
        ));
    }
}

Is there something I'm missing to get this to start working immediately when added?


texts: "Editors" member group is set to allow them to edit other member's entries, but it's not working

texts:
Can view channel entries authored by others Yes
Can delete their own channel entries    Yes
Can edit entries authored by others Yes
Can delete channel entries authored by others Yes

All of these are set to Yes, but when I log in as an Editor and update an entry and click Submit, it gives me a "You are not authorized to perform this action" error in the control panel in the Options tab under Author. I do have the author selector hidden using publish layouts. Any ideas?

EE 2.6.1


texts:
I have some simple conditionals mixed with some advanced conditionals. I've just downloaded Switchee and IfElse and am trying to figure out which plugin is best for each situation. Can someone help shed some light for me by giving me a bit of advice to clarify the best case to use each?

Here is my complete template's code:
http://pastie.org/private/fifymxyldxu01jbex6zbq

I'm having some trouble understanding parsing orders, so any wisdom would be greatly appreciated!


texts: Authenticating to CP 'stuck' on EE 3/4/5

texts: On EE 3/4/5 sites using Chrome, upon submitting for authenticating to the CP, I get infinite "Loading". If I refresh the web page, though, I'm in. Any ideas why this is happening? The fix is easy (refreshing), but this is just sort of annoying, and I hope it's not symptomatic of worse things.


texts: When multiple channel forms present each containing a matrix, the add row button adds multiple rows

texts:
When a page contains multiple channel forms on the same page, each with a matrix field; the Add Row button adds multiple rows (1 per channel form on the page it seems.)

Is there any easy way to work around this?


texts: Relationship field orderby/sort listing lowercase after caps?

texts:
I'm currently running EE 2.9.2 on a site. I have a relationship field that takes all selected entries and sorts them by a custom channel field for the display title.
I've used this specific call:
{relationship orderby="custom_field" sort="asc"}
Only problem is that this field has several instances where it begins with a lowercase letter, due to a company's name being written that way (and thus unable to be capitalized). The returned values will place them outside of all of the entries beginning with capital letters, regardless of the letter they start with.
Example:

Leonardo
Michelangelo
donatello
raphael

Does anyone know of any way to override this specific rule?
Mucho thanks in advance.


texts: Expressionengine - Freemember Email - invalid link sent

texts:
We want the email sent with the reset link, but the link being sent is giving an error: "The form you submitted contained the following errors
The password reset token does not appear to be valid. Please check the link you followed."

Link sent: http://XXXXX?ACT=17&id={resetcode}

EE2.10.1
Email sent using Freemember

There is a row in the "exp_reset_password" table that has the resetcode exactly matching the one in the email.

Thanks for your help in advance.

FORM CODE:

{exp:freemember:forgot_password form:id="forgotPasswordForm" return="profile/forgot_sent"}

LOGIN

            Forgot password?

Tell us your email address and we will send you a temporary password.  You can choose a new password when you login.

                <input type="email" name="email" id="email" placeholder="Email" class="required" value="{email}">

                {if "{error:email}" != ""}
{email} does not exist.
{/if}

              SEND EMAIL

LOGIN

            Forgot password?

Email Sent.

              OK

{/exp:freemember:forgot_password}

Submit listener:

$(".btn-reset-password").live("click",function(e){
        var _form = $(this).closest("form");
        e.preventDefault();
        if (validateForm(_form)) {
            $.ajax({
                url: _form.attr("action"),
                data: _form.serialize(),
                dataType: 'html',
                type: 'POST',
                success: function(resp){
                    console.log(resp);
                    if ($(resp).find("input").length == 0) {
                        //console.log($(resp).find("input"));
                        gotoStep(2);
                    } else {
                        $(".po-popup").html(resp);
                    }
                },
                error: function(){
                    console.log("error submitting");
                }
            });
        } else {
            console.log("error");
        }
    })


texts:
I'm running into an issue with the 'Plates field type. The site is running EE v2.5.5. When I select a layout, the selection doesn't "stick". It appears to when I select it, but when I save the entry, and come back in to edit it, the field appears as though nothing has been selected. Has anyone run into this issue before? If so, were you able to find a fix for it? I would appreciate any ideas you would be willing to share!

What the field looks like when I create an entry

What the field looks like when I select the layout type

What the field looks like when I return to edit the entry


texts: PHP error logging: force to always log errors to an error file

texts:
My ideal situation would be to always log errors to file, but only display errors to logged in Super Admins. This way I'll be able to tell if my users are triggering PHP errors even if they aren't logged in.

However, it appears as if displaying errors on screen is related to logging errors to the php error log (which I have at /var/log/apache2/php_errors.log).

For example, if I have $config['debug'] = 2; it displays errors on screen and they get recorded in the error log.

If I have $config['debug'] = 0;, nothing gets displayed on screen, and nothing gets recorded in the error logs, etc.

Is there a way I can always have PHP errors logged to file, while still maintaining ExpressionEngine's PHP error display preferences?


texts: Expresso Store: Updating product price listing based on current modifier chosen

texts:
I've seen in the documents that you can wrap  around the price to make it dynamic. However, I absolutely cannot get this to work. It will display the starting price but will not update the price after you choose a modifier with a price adjustment.

I've also tested this in the store_example templates by wrapping the same span tag around the price list on the product template.

Is there something I am missing to make this work?


texts: Work out range with Low Nice Date for past Low Events

texts:
I am using Low Nice Date to work out the range between the start date and end date of a Low Event.

I am testing to see if if the start date and end date are the same, if they are the same I want the date format output in a certain way or differently if it is not the same date.

I am not using the 'All Day' option in Low events because these are not all day events.

The issue I have is it works fine for upcoming events, where the date are in the future, but it doesn't work with past events where the date are in the past.

Here is the code I am using:

{exp:low_nice_date:range from="{event_date:start_date}" to="{event_date:end_date}"}
    {if days == 0}
        {event_date:start_date format="%j %F %Y - %H:%i"}
    {if:else}
        {event_date:start_date format="%j %F"} - {event_date:end_date format="%j %F %Y"}
    {/if}
{/exp:low_nice_date:range}

A past example event dates: 22 June 2012 - 21 July 2012

For some reason this returns true for days == 0, although this is not true.

Any help on how I can get this working for past entries would be great.


texts: Expresso Store - possible to add 'OUT OF STOCK' to size drop down?

texts:
I'm building a Store selling garments using Size as the Product Modifier option and variation as the modifier Type so that each size has it's own SKU and Inventory.

My Size drop down looks like this on the product detail page:

Small
Medium
Large

Is it possible to add 'Out of Stock' or 'In Stock' to the select options depending on individual stock levels so the drop down looks like this:

Small - Out of Stock
Medium - In Stock
Large - In Stock

Thanks in advance


texts: Expresso Store Order Submission Validation Error Not Defining Which Field

texts:
EE 5.3.0

I have a cart with a checkout page. When I try to submit a test order using the dummy processor I'm getting this result

The form you submitted contained the following errors
- This field is required.
Return to Previous Page

In other words it's not specifying which field has the error so I don't know how I'm supposed to know what to fix. I previously had error_handling=”inline” in the tag with a series of {error:field_name} tags at the top of the form. That resulted in nothing so I removed the parameter and now it goes to the ugly built-in EE error page.

This is the first expresso store I've set up and I'm sure I'm leaving something out, but if anyone has any advice I would really appreciate it.

Thanks!


texts: Add-on for limiting by paragraph and words/characters?

texts: Are there any add-ons for EE 2 that can handle limiting both by paragraph and number of words (or characters)? With just paragraph I might end up with too much text if the paragraph is long and with just words or characters I end up with several paragraphs if they're shorter. Ideally, I don't want to use multiple add-ons.


texts: Grey Screen on CT Settings > Payments after upgrade to 2.5

texts: I've upgraded to EE2.7.3 and CT 2.5 now when I go to Cartthrob > Settings > Payments I'm getting a grey screen and all navigation is disabled (have to click back button to get out). Is anyone else experiencing this or know of a fix. Display Output Profiler and Template Debug not outputting anything either.


texts:
I moved from EE2 to EE3.

I used to use  BW Category Count by Wouter Vervloet to make several conditionals over content, verifying if a category group has zero, one, x, or more presences in a entry.

That helped me a lot to make custom description texts for our entries.

So, for example, I was able to do this:

    {exp:channel:entries channel='schools'}
    {title} has
    {if "{category_count show_group='7'}" < 1}no teachers. {/if}

    {if "{category_count show_group='7'}" == 1}one teacher named
    {categories show_group='7'}{category_name}{/categories}{/if}

    {if "{category_count show_group='7'}" == 2}two teachers, named
    {categories show_group='7' backspace="2"}{category_name} and {/categories}{/if}

    {if "{category_count show_group='7'}" > 2}several teachers, named
    {categories show_group='7' backspace="2"}{category_name} and {/categories}{/if}

    {/exp:channel:entries}

Explanation: I have a channel named "schools". Have several category groups. One of them (group_id "7") is "Teacher's Names". So, in my school description, I need to show different texts depending on how many teachers a school has.

That's what "BW Category Count" does, it counts categories inside a group so you can use that result... for example, in a conditional.

Is there an alternative to achieve this using EE3, as the plugin will not have a EE3 version?

I know EE3 added "Added {if no_results} to {categories} tag pair in {exp:channel:entries} loop", but that's not enough for our needs.

Edit: It's "BW Category Count" and not "Category Count". Sorry!
Thanks in advance


texts: EE Not Sending Emails to Addresses from Main Domain

texts:
Not sure if this is an EE or server issue, but EE will not send any emails to our company addresses, but it will to outside addresses.

For example, our main site is autouplinktech.com. Emails sent from the EE Control Panel on that site arrive just fine in my personal gmail inbox, but no emails can be sent to our company accounts like name@autouplinktech.com.

I have email debugging turned on, but I see no error messages at all, and in fact I get a success message on the CP after sending an email to one of our company addresses, but nothing ever arrives in the inbox.

Any thoughts?


texts: Stash, Parsingorder (?) and conditionals if content exists

texts:
I am sorry to ask this, but I am stuck here.

I must change (on two places) a css class if a channel entree exists.
If yes, the class must be unit-70, if no, unit-90.
This code below does not work, I do not know why. (when setting stash hardcoded it works as expected)

{exp:stash:set name="content_block_mid" parse_tags="yes" parse_conditionals="yes"}
  {exp:channel:entries
    channel="news_flash"
    disable="categories|category_fields|pagination|member_data"
    dynamic="no"
}
    {if no_results}unit-80{/if}
    {if count >= 1}unit-70{/if}
  {/exp:channel:entries}
{/exp:stash:set}

Can someone please point me in the right direction, obviously I am missing something here. I tried many options, but got lost because nothing works. This seems to me the simpliest of solutions, but I fail even here.
 Thank you!


texts: File field acting like it's required when it's not

texts:
I've got a channel set up that includes a couple of file fields that allow editors to add images to entries. I have these fields set up to accept images only and as not required, but when I try to publish entries, I'm seeing error messages on those fields saying "You did not select a file to upload."

If I choose an image for both fields, I'm able to Submit the entry form and save the entry.

Also, once the entry is saved, If I edit it, I'm able to remove the images from the fields and re-submit and the entry will save.

But if I edit the entry again and try to submit it without re-adding the images, I'm unable to save.

Has anyone else run into this issue? Any ideas?

This site is running EE 2.7.1 and I'm seeing this issue on both production and local environments.


texts: Can I change the appearance of the search box in expression engine?

texts:
Perhaps this is a noobish questions but, I am learning EE so here goes.

This is the code I have for my search box on my website.

{exp:search:simple_form channel="video_tutorials"}

               Search:
             <input type="text" name="keywords" id="keywords" value="" size="18" maxlength="100">

    {/exp:search:simple_form}

I am wondering, is there a way I can change this appearance on my website. For instance I would like to display the word "search" inside of the input area where a user would enter their search text. I would also like to make the white box longer. Can someone point me in the right direction? Thank you so much!


texts: How to show image label when paste it in Wygwam field?

texts: I need to show label (img alt or title property text) under the image when paste this image in Wygwam. Does exists the way to do this?


texts: Expresso Store 2: not mapping to Zoo Visitors fields on checkout

texts:
I'm trying to get this situation working, but I'm not 100% it can actually be done.

I've build a custom checkout process where the customer fills in his shipping info, billing info (if different), chooses a payment method and registers an account or not. All on one single page.

Processing the order goes well - however no entry is added to the Zoo Visitor channel, only a native Member account is created.

UPDATE 2013.12.16

I tried a new setup begin this week. Unfortunately Store is still not mapping correctly to Visitor.

Current setup:
EE 2.7.3
Store 2.1.0
Visitor 1.3.30

One strange thing in the Store Order Fields setup;
The field-groups to choose the mapping-fields from are not rendered correctly (see attached screenshot). Instead of Zoo Visitor it says "optgroup_zoo_fields".
It was a brand new install.

Other insights which could help;

Do I need to alter the checkout fields in templating?
Do I also need to create Member Custom Fields for this to work?

I was assuming 'no' to both, maybe that's my faulty approach...

In short;
- Visitor channel + custom fields are created
- Order Fields are Mapped to Visitor fields
- A normal member is created on order-complete / payment
- No Visitor entry is created


texts: Assign class to First Nolan row of every matrix row

texts:
I tried and was unsuccessful in writing a conditional for assigning a class to first Nolan row of every matrix row.

Any pointers on the conditional?


texts: How can we create custom capability for a member group so that we can check in our module and give access to it

texts:
I am creating a module for a simple form submission. In admin, I am showing a table view of all entries. I have a specific member group "pitch" who can access only that module. In addition they can't access the "Export in CSV" functionality for listing. But super admin can do all things.

How can I create a custom privilege for "pitch" member group so that they can't access "Export" button.
OR hide button if "pitch" member login in CP
How can we do this through module?
Please provide a reference url or a piece of code.


texts: Low Events in a Dynamic Title on a Channel Form

texts:
Can I use a Low Events start date in the dynamic title on my channel form?

{exp:channel:form
    channel="training_sessions"
    return="/mysite/training/announce-training/thank-you"
    error_handling="inline"
    secure_action="yes"
    dynamic_title="Training [training_event_details:start_date format="%Y%m%d"] [training_site_city] [training_site_state]"
}

This isn't working. I also tried removing the format="%Y%m%d" bit and it still doesn't work.

{exp:channel:form
    channel="training_sessions"
    return="/mysite/training/announce-training/thank-you"
    error_handling="inline"
    secure_action="yes"
    dynamic_title="Training [training_event_details:start_date] [training_site_city] [training_site_state]"
}

The generated dynamic title looks like Training [training_event_details:start_date] Minneapolis MN instead of the desired Training 20150131 Minneapolis MN.

Can this be done?


texts:
We are running a membership site using EE v2.5.3 and would like to output a member's latest tweets on their profile page. Could you suggest the best add-on/ solution to achieve this?

Thanks


texts: Select distinct values from a matrix column

texts: I've got a matrix column with 110 rows but only 11 values (each value in 11 times). Is there a way to query the distinct values in that column rather than returning all the results?


texts: Is there a "Select a Category OR Entry" field type? If there isn't, is there a way to toggle fields?

texts:
Basically I want to have entries with field types that provide links to either a category or an entry. I'm guessing such a fieldtype doesn't exist, so...  I can use WB Category Select for selecting the category and whatever native or Playa for selecting an entry, but is there any way to toggle between them?

Like a radio fieldtype or something that will show/hide a set of fields?

E.g.

Choose a type of link and link itself [#n...]

Category (clicking this reveals WB Category Select, hides the other)
Entry (clicking this reveals single Entry selection, hides the other)

The above in repetition. Matrix/Grid isn't necessary, can manually make a bunch of repetitive fieldtypes.

Probably doesn't exist either, so any recommendation for an existing radio/switch/pill type and binding some javascript to it for the toggle functionality?

edit:

Props to Max & Tyler who recommended the Entry Type add-on. That was exactly what I needed. Have implemented it already, it's perfect.


texts:
I have the following search functionality for the channel entries and Iam searching based on their titles like

{exp:channel:entries loose_search='no' orderby='bump_up_date' sort="desc"
<?php if(isset($GLOBALS["search"])) { ?> search:title="<?php echo $GLOBALS["search"];?>" <?php } ?>  }

{/exp:channel_entries}

But it is not returning desired result.If i place title with anyother field like description it is working fine.Can anyone tell me the solution please.Thanks in regards.


texts: Super Search DB error with Matrix fields

texts:
I want to re-hash this issue: http://www.solspace.com/forums/viewthread/17419/

The error is:

Error Number: 1052

Column 'field_id_90' in field list is ambiguous

It seems there was never a proper solution and I'm having the same issue. I can confirm (at least in my testing) that the issue is related to Matrix fields given a relevant value in Super Search.

I’m running EE 2.7.2, SS 2.1.3 and Matrix 2.5.8.

My two matrix fields are: services_about & ct_sub_sections

this works:

relevance=“title=1+services_tags=5+ct_tags=5+page_keywords=5+services_introduction=2+ct_about=1+body=1+count_words_within_words”

this doesn’t:

relevance=“title=1+services_tags=5+ct_tags=5+page_keywords=5+services_introduction=2+services_about =1+ct_about=1+ct_sub_sections=1+body=1+count_words_within_words”


texts: difference date format iPad / Macbook when viewing site from same IP

texts:
Is there someone that can explain this to me. I call exactly the same page from same IP in 2 different devises but the formatting of the date is different.

This is the Template code:

{utstal_datum}
        Utställning pågår från {utstal_datum:begin format="%l %d %F %Y"} till {utstal_datum:end format="%l %d %F %Y"},

        vernissage: {utstal_datum:vernissage format="%l %d %F %Y"} {klockslag}, välkommen!
        {/utstal_datum}

Thanks for looking at this.

Screenshot iPad (Swedish language and region):

screenshot Macbook (Swedish language and region):

To my opinion this is not a duplicate. The locale on the server is correctly set to Swedish. And as you can see from the screenshots, one of the devices shows the right formatting, the other not.


texts:
How do I inject the Return Path into my Freeform Composer template, so it directs people to the specified page, after submitting the form?

{exp:freeform:composer form_id="{form-freeform:form_id}" composer_template_id="{form-freeform:composer_template_id}" return="?????????" form:class="pure-form pure-form-aligned"}
    {composer:page}
        {composer:rows}

                {composer:columns}
                {if composer:field_total == 0}{/if}
                {composer:fields}
                    {if composer:field_label}       {!-- Output field labels --}
                        {if composer:field_type == 'nonfield_captcha'}
                            {if captcha}
{composer:field_label}
{/if}
                        {if:else}
                            {freeform:description:{composer:field_name}}
                        {/if}
                    {/if}
                    {if composer:field_output}      {!-- Output field inputs --}
                        {if composer:field_type == 'nonfield_title'}

                                {if composer:field_name AND composer:field_required}{freeform:field:{composer:field_name} attr:required="required" attr:placeholder="Required"}
                                {if:else}{composer:field_output}
                                {/if}

                        {if:elseif composer:field_type == 'nonfield_captcha'}
                            {if captcha}{captcha}
<input type="text" name="captcha" value="" size="20" maxlength="20" style="width:140px">{/if}
                        {if:elseif composer:field_type == 'nonfield_submit'}

<button type="submit" class="pure-button pure-button-primary">Submit</button>

                        {if:elseif composer:field_type == 'checkbox_group'}

{composer:field_output}

                        {if:elseif composer:field_type == 'radio'}

{composer:field_output}

                        {if:else}
                            {if composer:field_name AND composer:field_required}
                                {freeform:field:{composer:field_name} attr:required="required" attr:placeholder="Required"}
                            {if:else}
                                {composer:field_output}
                            {/if}
                        {/if}
                    {/if}
                {/composer:fields}
                {/composer:columns}

        {/composer:rows}
    {/composer:page}
{/exp:freeform:composer}


texts:
I have a problem in Solspace User: Users can’t change their member group. In my case they should be able to deactivate their account.

I read about a similar problem on Solspaces' forum before:

http://www.solspace.com/forums/viewthread/3057/
http://www.solspace.com/forums/viewthread/13759/

But somehow I can’t solve mine in EE 2.8.

Users of member group 6 should be able to change it to member group 8 (deactivated)

I unlocked member group 8
In group 6 I set “Can change the group that a member is assigned to (Unlocked groups only” to “yes”.

This is my code:

{exp:user:edit allowed_groups="6|7" return="/profiel/"}

        <input type="hidden" name="member_id" value="{member_id}">
        <input type="hidden" value="7" name="group_id"/>
        <input type="submit" value="Ja, deactiveer mijn account" class="button" />

{/exp:user:edit}

What am I doing wrong?

Thanks.
Jef


texts: Exp:resso Store - Single Page Donate Checkout

texts:
I am attempting to use Exp:resso Store to create a donation form on a single page. Ideally, the user will go to /donate and pick from a select-menu the donation cause (a custom order field), the amount they'd like to donate (which updates the quantity field on a product called "Donation" with a min price of $1), and all of the billing and credit card form fields.

Since, the {exp:store:checkout} tag is not available unless there is an item in the cart, I've setup a form button that adds the product "Donation" to the cart when clicked and has a return to /donate.

However, I can't use a form button for every link to /donate (e.g. a link added in a paragraph that's managed via a WYSIWYG editor).

Is there a better way to go about this?

Appreciate the help.


texts:
I am using freemember forms to create my "registration" page. I have two custom member fields "employee last name" and "employee id". I added them in the "custom member fields" section. I need to make these two fields unique and fail the registration process if the values entered in the registration process are duplicates.

I could not find "unique" attribute in the custom member fields. Only "required" attribute. any help in this regards will be much appreciated.


texts: htaccess, https, MSM, and Expresso Store

texts:
I'm running EE multi-site manager (MSM).

My default site's domain (say, www.default.com) is where the /themes folder is housed.
So, for my second site (say, www.site-two.com), all of the EE and third-party theme files (js, css, etc) are being pull from www.default.com/themes/*
Site two is secure, using https (via .htaccess), since it's running Expresso's Store and requires SSL. Default site is not https.

My problem is that the requests to the EE and third-party theme files (from the default site) are not completing because they're being requested as https://www.default.com/themes/* instead of http://...

Here's my current .htaccess mod_rewrite section

RewriteEngine On

## -- force www -- ##
RewriteCond %{HTTP_HOST} ^site-two\.com$ [NC]
RewriteRule ^(.*)$ http://www.site-two.com/$1 [R=301,L]

## -- force https -- ##
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www\.site-two\.com$  [NC]
RewriteRule .* https://www.site-two.com/%1%2  [R=301,L]

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

I've tried endless .htaccess variations with no success. I don't even know if I'm wanting is possible. I'd like to avoid making www.default.com secured (more money), if possible.

NEW INFO PER ADRIAN'S FIRST ANSWER: Using Focus Lab's master config set up, I have this for the production config, which is why it at least pulling from the default site.

$env_config['default_url']      = 'http://www.default.com';
$env_config['theme_folder_url']     = $env_config['default_url'] . '/themes/';

Any help is greatly appreciated.

EDIT: Problem is this auto-generated script from the exp:store:checkout tag. See the script.src

if (!ExpressoStore.scriptElement) {
                var script = ExpressoStore.scriptElement = document.createElement("script");
                script.type = "text/javascript"; script.async = true;
                script.src = "//www.default.com/themes/third_party/store/store.js";
                (document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0]).appendChild(script);
            }


texts: New to Expresso Store, but purchase this for a client who wants to build a pretty complicated store. I'm ready for the challenge, but realized that Expresso isn't compatible with 3.0 yet? Is this something that's in the works, or a hack that I can possibly use. Thanks-


texts: Cartthrob 3 : how to make a custom_data field required in checkout form?

texts:
I created a custom field in Order channel and created an imput named custom_data[nameofmycustomfield] in my checkout form as explained in the docs here.

But I can't make it required (validation sensitive).
When I put his name as parameter 'required' 's value it doesn't work.

How can I do?

Thanks in advance.


texts: Exp-resso store, checkout process and URLs to products in the cart

texts:
Exp:resso Store demo code has that line for a product part (and URL to it) in the checkout process:

{title}

My products are categorized so it requires to obtain primary category and secondary category for a proper product URL. Is there any way to accomplish that? Maybe GWcode Categories can do that?

Thanks!


texts: Can I hide individual elements from Store product details field

texts:
I'd like to hide certain unused fields from the store product details field on the publish page. Is this possible?

Have a product channel with a store product details tag and like to hide the "min. order quantity" field as it is irrelevant in this particular situation and it only confuses the user.


texts: It's been a while since I've developed an EE site, and I'd like to develop an EE4 site soon using modern best practices. Can anyone recommend courses, training, or anything of the sort to prepare me for this? Something like http://www.train-ee.com/ but for EE4.


texts: Membrr - Credit Card Number not required?

texts:
I have a billing form for plans/subscriptions that are not free.

However, when trying to submit the form with empty credit card number, it processes the form as valid and subscribes the user.

Is this the default behaviour? If not, are there options to prevent this? Or do I need to implement my own hook for it?


texts: I'm in the process of upgrading a client's website with EE3 and see that a version of Channel Images is available. However the channel images documentation still references the EE2. If there is a channel images EE3 version, how do I install it and are there other changes I should be aware of and is there any documentation for the EE3? I'm hesitant to upgrade my client's site without further instructions as channel images is an important component.


texts: Issue with comments - "You are not authorized to perform this action"

texts: What could cause commenting to suddenly not work for a particular channel if no changes to the configuration has been made? The person trying to comment gets the message "You are not authorized to perform this action". The EE version is 2.9.0 and there's been no upgrade between now and the last successful comment.


texts: Blank index.php with no errors (EE 2.8.1)

texts:
I am new to EE (but familiar with PHP, SQL, etc.) and am trying to run an EE site locally that was originally made by another developer. It is a large, complex site with numerous plug-ins.

EE verson is 2.8.1. My local setup is Windows 7 64-bit and MAMP with PHP 5.5.38 (the same version the site was built for) and MySQL 5.6.34.

I have imported the db, changed the config file to use my own disk paths etc., and installed further requisites with PHP Composer.

Now, when I visit index.php, I get a completely blank page. I have confirmed that index.php runs to completion (by adding a test 'echo' statement at the end), but it produces no output, even with $debug=1, and I see nothing in the Apache and PHP error logs. (I've also noticed that, when I visit the EE control panel, I can log in, but the CSS styles are all missing.)

I suspect I may have missed something in the config file, problem but am unsure what to try next. Any suggestions? Thanks.


texts: On checkout, customer not directed to receipt page after payment

texts:
On checkout, customers go thru checkout and successfully purchase orders. The purchase is recorded and processed. But after the users hit submit on the payment step, instead of being taken to the receipt page specified in the return parameter, they go to URL of the last checkout step, except this time, the page is completely blank.

ExpressionEngine 2.7.3
Express Store 2.2.0

Here is the next checkout tag:

{exp:store:checkout form_class="checkout-form"
    return="orders/receipt/ORDER_HASH"
    payment_method="AuthorizeNet_AIM"
    error_handling="inline"
    error_delimiters='|'}

Troubleshooting Overview:

Turned on template debugging. No output on erroneous blank screen. Still WSOD.
Increased error threshold to 4.
Receipt page accessible through link in Store page of control panel.
Changed checkout tag to the following:

{exp:store:checkout
    form_class="checkout-form"
    return="orders/receipt/ORDER_HASH"
    payment_method="AuthorizeNet_AIM"
    secure="yes"}

.htaccess rules do not seem to affect this.
Used name="commit" instead of name="submit" for checkout form submission.

ExpressionEngine 2.10.3
Express Store 2.5.1

A similar issue is occurring with the same symptoms on another site. Same troubleshooting steps followed to no avail.

Page 1: {exp:store:checkout form_class="form-inline" next="checkout/2"}
Page 2 {exp:store:checkout require="name|address1|city|country|phone" next="checkout/3"}
Page 3 {exp:store:checkout payment_method="Stripe" return="checkout/receipt/ORDER_HASH"}


texts: Date conditional for over test if over 2 years

texts:
Haven't used EE in a while and having a brain freeze on best way to do a date conditional.

I have a date custom field for a DOB. I want to conditional show items if the person/child is over 2 years old.

I'm thinking something along the line of:

{if ("{current_time format='%U'}" - "{child_dob format='%U'}") > '63113904'  }
    Do this
{if:else}
    Do that
{/if}

Where this would test against the Unix timestamp? Or am I way off?


texts: Client reports errors and/or log-out when uploading a file

texts:
My client is reporting a problem that I am unable to reproduce, either locally or on the live, production server. The issue they are reporting comes when they try to change a file. The site contains a 'Latest events' link, which simply links to a PDF or JPG. There is a channel set up specifically for this link, containing nothing but a single 'file' field type. It is also set up to use the Single Entry add-on, so that the existing entry will always be edited rather than new entries added.

The client reports that when they go to edit this channel, they frequently find that clicking the 'Add File' link  sends them to the CP log-in screen – presumably logging them out, although looking at the CP log shows no formal log-out taking place. On occasions when they have not been kicked out of the CP in this way they have had mixed success with actually uploading a file; some attempts work, whilst others result in the error message "The file could not be written to disk". (They have reported that they have had more success in uploading jpegs than with PDFs).

The perplexing bit is that when I log into the site from my own computer, even if I use the client's own login details, I see none of these problems -- files and images upload without a hitch, both in Safari (Mac) and IE9 (which is the browser that the client uses, AFAIK).

Has anybody here come across anything like this? Without being able to reproduce the problem from my end it's pretty hard to diagnose; I'm thinking that it's maybe something to do with the client's own browser set-up, but that's a pure guess and I haven't a clue regarding where to look for the specific cause. Um... help?


texts: How do I include a Relationship field inside a Grid?

texts:
In an EE 3 site I have a Grid field with four Grid fields, one of which is a relationship field. Content from the first three Grid Fields display properly, the relationship field does not display at all.

Here is my code:

  {content}

{content:title}

{content:summary}

{content:links_to}{content:links_to:title}{/content:links_to}

   {/content}

In the output. The thumbnail, title and summary all display fine, but the relationship field content is blank.

I have confirmed that the relationship field in the grid has content selected.

Any suggestions?


texts:
Justin at ObjectiveHTML has been helping me out here but I think it might be time to see if anyone else has had some experience with this.

My client is selling two items. Item A requires an email be sent to the customer when the purchase is authorized with copies of the email sent to a set of additional recipients, let’s call them Set A. I’ve been using the standard CartThrob Notifications and EE mail and it is working.

Now, Item B is to be sold but, when purchase is authorized, an email is to be sent to the customer and to a different set of additional recipients, Set B.
(Note: both Items can not be purchased in the same order.)

There didn't seem to be anyway to do this in CartThrob so I installed Postmaster. Postmaster has a "cartthrob_on_authorize" hook that will send out an email when a purchase is authorized. I was able to make that work equally well on Item A. (I figured out how to "turn off" the CartThrob Notifications, I'll put that in a note at the bottom.)

Postmaster also has a "Extra Conditionals" feature to do things like not send the email if the customer hasn't entered a full name. Justin thought that it would work to put this in to keep an email from being sent out when the product purchased was not, say, Item A. (Note: each item in the CT orders channel has an order_items CT field which is a matrix that includes an entry_id field which uniquely identifies a product. Item A's entry_id is 213.)

{if hook:entry_id != “213”}FALSE{/if}

Unfortunately, no email got sent out when I tried this. I tried various iterations of it including:

{if hook:item_options:entry_id != "213"}FALSE{/if}

and

{if hook:item_options:item:entry_id != "213"}FALSE{/if}

neither of  which worked.

I'd certainly appreciate hearing from anyone who has successfully used the "Extra Conditionals" feature with the "cartthrob_on_authorize"  hook.

I'm using the latest Postmaster version and 2.3.5 version of CT.

Thanks,

Jeanne

P.S. I tried setting "Log Email" to "No" in CT Notifications but that did not stop the emails. Justin gave me the hint to set up a "dummy" email which just means just leaving the email section as blank as possible.


texts: MX Lone Star not showing in Grid field options

texts:
According to this blog post, MX Lone Star is supposed to work with Grid.

However, when I tried changing a field's fieldtype to Grid and set one of the columns to the fieldtype MX Lone Star, I did not see it in the options.

I have already checked the Fieldtypes page and saw that it was already installed.

Any idea why this is the case?


texts:
I'm trying out Charge for a membership website, and need to change the currency to Singapore Dollar SGD. It is not listed as default currency in settings.

I've tried using {exp:charge:form plan_currency="sgd"} but it throws a "Currency - Not a valid currency" error.

I can't seem to find any other info in the documentation or here.


texts: Freeform Pro 4.0.12 IE8 and IE9 comparability issues

texts:
Using EE v2.6.1 MSM
Freeform Pro v4.0.12

When login EE CP using IE8 or IE9, I'm getting compatibility issue, form listing and entries listing does not show like in Firefox or Chrome.  Also when tried to filter entries by search or by filter selections, it does not filter at all.

Is this an error on FreeForm Pro or FreeForm Pro does not work on IE browsers? Please advise and thank you.


texts:
I've got a situation where I'm pulling a list of channel entries, each of which link to a page with more details.  The channel is called "audio", and it contains a Channel Files field that can hold multiple audio files.

What I would like to do is this:

If the entry contains just one audio file, do ABC.
If the entry contains more than one audio file, do XYZ

Here is my "dumbed-down" code

{exp:channel:entries channel="teleconferences"}
    {exp:channel_files:files entry_id="{entry_id}" limit="1"}

Full Details

    {/exp:channel_files:files}
{/exp:channel_files:files}

If I don't put a limit on the {exp:channel:entries" tag, then it prints a link for the total number of files in the entry.  So if there were 5 files in Entry A, and 1 in Entry B, it would look like this:

Entry A
Entry A
Entry A
Entry A
Entry A
Entry B

If I do put a limit, then I get that number per page, with pagination.

If I add a limit to the {exp:channel_files:files} tag, then I only get one entry, but I'm unable to do ABC or XYZ on it.  Basically, what I'd like to do is put a play button if there is only one audio file, or a link to the page if there are multiple audio files.

Perhaps this isn't doable but I thought I would ask the experts!!


texts: NGen File Image to Assets within Matrix table

texts:
I'm currently in the process of transferring channel entry data from an EEv1 site into a fresh new EEv2 site. My method is to populate XML files with channel data and then, using Importer (or DataGrab), pop the channel data into the waiting channels on the new site.

The problem I'm running into is that as you'd expect, custom fields being used on the old site aren't really what I'd like to use on the new. So the example that's giving me a headache is the following;

Currently Ngen File field being used to handle images/documents on the old site and I'd like to be able to import these images into an Assets field on the new site.

Can anyone give me some steps or advice on how I would achieve this.

In my Exported XML file I have the following

<images>

 <matrix_cell_1>{filedir_1}BREEAM-CTA_1.jpg</matrix_cell_1>
 <matrix_cell_2><![CDATA[no-borders]]></matrix_cell_2>

</images>

It has brought the image path through. This image path (images/uploads/page-images) has been recreated exactly on the new site. But how can I go about taking what is essentially a text string (/images/uploads/page-images/BREEAM-CTA_1.jpg) and convert it into a functioning Assets field image.

I appreciate that it cannot be as easy as importing that image path directly into an Assets Field. I assume a few extra steps have to be taken in order to have Assets recognize that imported field string.

Thank you for any advice/answers


texts: What steps do I need to take to remove borked entry from database (channel_titles: yes, channel_data: no)

texts:
Before I troubleshoot what caused the problem in the first place (entry made using safecracker form), I'd like to know how to remove the bad data.

EE Version v2.5.2 - Build Date: 20120606*
Development Environment: MAMP

(Yes, yes, I know. I was soon going to update it to 2.5.5; Now troubleshooting this issue is at top of list.)

Channel Entry #62, and how it manifests:

In the database:
entry_id 62 does exist in the exp_channel_titles table of the database.
entry_id 62 does not exist in exp_channel_data

In exp_channel_data it goes from 61 to 63. Oh my.

In the control panel:
The entry ID, title, author, date, status all appear in table of entries. Upon clicking the title link to edit entry, this message results:

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

From the template:

On an index page template that lists multiple entries in this channel,
template calls for {title} (and url_title in link to individual page)
{author} And a custom field for a short description: {showcase_txt_short_description}
The rendered index page displays title, author name, but displays {showcase_txt_short_description} as is.
Template for individual entry page has more custom fields in addition to title and author. Similar to rendered index page, the rendered individual entry page displays the title, but passes through {unrendered_custom_fields_enclosed_with_curly_braces}
When I first loaded up that individual page, I got a number of errors. Alas (?) I cannot describe them for you because they magically disappeared when I refreshed the page just now while preparing to compose this question.
Errors were:

3 php warnings
1 error 1064 with a SQL error and details of SQL query, that ended up referencing ft.matrix (yes, there's a matrix field in this particular channel).

Changes I have made since discovering this error

Between the time I first encountered this error and now, I updated addons for the site. Among the addons, I updated to the latest version of Matrix, and also pt fieldpack (source:github)

Another thing I did, in the DB: made minor manual correction to table for entry_id 62 in  exp_channel_titles. Where versioning_enabled, it was set to n, (whereas channel preferences for this channel is y), so I changed it to y. (no, that didn't correct error)

So, the php warnings and SQL errors have gone away, but I have something bad in my database.

Now that you know a ridiculous amount of detail, my question: What is the best way to get rid of the bad entry #62. Should I just remove the row that contains entry_id 62 from the exp_channel_titles table, or are there other places I should go in order to prune this bad entry out and start again to see what caused it?


texts: Clicking on folders in the Assets 2 file manager does not work on IE8

texts:
I'm using Expression Engine v2.5.5 and Assets v2.0.3 with mulitple upload folders.

When using the file manager in IE8 clicking on the folder links does not update the view to show contents of that folder.

Does Assets 2 support IE8?


texts: Assets in Wygwam only inserting {assets_X} on first save

texts:
So, similar to this question when using Assets in a Wygwam field I am having to re-save an entry to get the image to output on the frontend. When I check what is getting saved to the db I get {assets_132:{filedir_5}image.jpg} the first time, and {filedir_5}image.jpg the second time.

It doesn't matter if I make the changes described in the comments of 9631, the problem is exactly the same.

Also, if I save an entry that already has an image in it that uses a {filedir_X}image.jpg type url, it doesn't get converted to the {assets_X) method. So for example if I upgrade Wygwam and Assets from an older version and then go and save the entry to get the image urls to update, they stay in their original states. To get them to change I have to delete the image and re-add it from the file browser, then they will break for the first save as described above.

I am using EE 2.6.1, Assets 2.1.3 and Wygwam 2.7.1 and running this locally with php v 5.4.13.

This is all happened after an upgrade from EE 2.4.0, Assets 1.1.5 and Wygwam 2.5.

EDIT:
I am also unable to move any files around in Assets once they have been added to a Wygwam field in this manner. The Wygwam references don't get updated once the file has been moved.


texts: Assets 2.0: Why do public templates stall while Assets is working in the admin panel?

texts:
I just updated a large EE 2.5.2 install to Assets 2.0 and updated indexes. Everything went smoothly, and I've noticed a strange new behavior: thumbnail generation (any size) in the admin panel will temporarily block the website from loading Assets images.

To reproduce:

Choose a large (100+ item) Assets folder to browse in the admin panel. Any view/thumbnail size will have the same effect.
While the thumbnails are loading, navigate to a page on the public website that uses Assets tags in its template.

The result: the page in #2 will stall until all thumbnails in #1 have finished loading. Immediately after finishing, the public page will load.

This is on a MediaTemple DV4 server with 2048MB RAM and plenty of resources, and several httpd instances. Could the mysql process be the bottleneck? What else might cause this to happen?

Edit: This appears to be limited to the same session. I originally tried this with Chrome 24 (Mac), running both #1 and #2 in different tabs. When I instead tried #2 in Firefox, there was no blocking and everything loaded as expected. Now I'm not sure if I've got a problem worth solving or a minor annoyance to live with.


texts:
i'm quite new to ExpressionEngine so please forgive me if this is a stupid/badly formed question, but i could really use some help on this one.

So my problem is that within my template i have a matrix-loop, and within that loop i have another matrix loop, which depends on the value of the outer loop.

Here's how i would like it to work:

{outer_matrix_field var_prefix="outer"}
    {another_matrix_field var_prefix="inner"}
        {if inner:package_{outer:row_count} == "y"}
            .. do stuff in here ..
        {/if}
    {/another_matrix_field}
{/outer_matrix_field}

The inner:package_{outer:row_count} gets parsed to inner:package_1, but that in turn is not parsed into its value.

It seems to me like it is some problem with the order of how EE parses/executes the tags, and i've tried with parse="inward" everywhere and that seems to do nothing.

Now i know that this could probably be solved using something like Playa, but that is not an option as the client has specifically asked for this solution.

So, what i need to know is if this is even possible.

Thank you


texts:
OK, I've just tried upgrading from 2.5.2 to 2.5.5, and it didn't go well!

I managed to run the installer, and it got me to the confirmation screen, where I deleted the installer, I can access the login page, and enter my details, and it starts to login in then sits on this url

http://mydomain.co.uk/admin.php?S=0&D=cp&C=login&M=authenticate

Nothing happens (in Safari) and in Chrome, it says 500 Internal server error.

As this didn't work, I removed all files and uploaded my backup, and now I'm still getting the same!

Any ideas?

UPDATE

Changed debug $debug = 1; in admin.php, and now get the following error on the admin page.

UPDATE 2

OK, so went into database and had a look at the exp_security_hashes table, and I had a field titles session_id, I changed this to ip_address and it seems as though its now up and working.

Will keep an eye out and see what happens!


texts: How to synchronize Template in Expression engine

texts:
I have three sites working in EE using MSM and I am using subscription addon of http://www.devdemon.com/documentation/subscriptions/#installing-and-updating-subscriptions I have created two templates group subs and subs_emails as described on this link now this two are showing in Template synchronization but how to synchronize them as described on website http://www.devdemon.com/documentation/subscriptions/#installing-and-updating-subscriptions.

Thanks in advance.


texts: How can I retrieve the site name from a channel entry as a query?

texts:
I have a plugin that I am editing at the moment and I am looking to do a query that takes the site_id from a channel(not a channel entry) and then grabs the id and passes that through a function that then gets the site name from it. So far I have got this in my function which basically populates a sub menu in the main nav in the admin backend. The menu spits out the channel name and then lists that in chronological order. The issue here is that every multisite has the same name for each entry as its based on seasons for example: AW14, AW15,AW16, SS14, SS15 and so on. Here is the code:

//Set each channel name and its link
                foreach ($assigned_channels as $key => $channel_id) {

                    //Add the channel to the order sub_nav array
                    $channels['jf_re_order_channel_' . $channel_id] = BASE.AMP.'C=addons_modules'.AMP.'M=show_module_cp'.AMP.'module='.JF_RE_ORDER_PACKAGE.'&channel_to_order='.$channel_id;

                    //Get the cannel name
                    $query = $this->EE->db->get_where('exp_channels', array('channel_id' => $channel_id), 1);
                    $row = $query->row();
                    $channel_name = $row->channel_name;
                    $channel_parent_site = $row->site_id;
                    var_dump($channel_parent_site);

                    //Add a nav_channel_id = channel name to the current lang object
                    $this->EE->lang->language['nav_jf_re_order_channel_' . $channel_id] = $channel_name;

                }

I can var_dump the id and I get the id for each site that channel is located in, what I need to do now is get the site name from that with the id. Is that possible with a query like below or inside this query.

Cheers


texts:
I am currently in the process of trying to create a roadblock that will always run, with the exception of when we have a sponsored roadblock.

We have run into the issue of having a black square pop up when a sponsored roadblock stops serving, we are trying to prevent the black square from popping up when say for instance, someone forgets to delete the roadblock setting in expression engine. Is there a way to have a house roadblock constantly run, but stop running when we have a sponsored roadblock and then have the house roadblock start automatically running again, when the sponsorship roadblock ends?

Any insight is appreciated.

Thanks!


texts: Using plugin results within channel tags

texts:
I use this code using exp:math plugin:

{exp:channel:entries channel="planilla_de_indicadores" limit="10"}

{exp:math formula="([1] / [2]) * 100" parse="inward" params="{ps_talleres2}|{ps_talleres1}" decimals="2" absolute="yes"}

{/exp:channel:entries}

Here are the results:

ps_talleres1: 50 | ps_talleres2: 200 | Result: 25

The problem is i need to use the result in a conditional like this:

{if {exp:math formula="([1] / [2]) * 100" parse="inward" params="{ps_talleres2}|{ps_talleres1}" decimals="2" absolute="yes"} >= "50"}

<span class="badge badge-warning">
{exp:math formula="([1] / [2]) * 100" parse="inward" params="{ps_talleres2}|{ps_talleres1}" decimals="2" absolute="yes"}%
</span>

{/if}

As expected; it doesn't work as plugin and tmp parsing order.
After some google i think maybe "Pre-embed" or "stash" might help... I saw a few answers pointing to "turn plugin into a tag pair" but not sure how.


texts: solsplace calendar gives error "Fatal error: Call to undefined method Pagination_object::get_template()"

texts:
I'm using solspace calendar, but its gives Fatal Error "Call to undefined method Pagination_object::get_template() in /content/system/expressionengine/third_party/calendar/mod.calendar.php on line 5363"

line number 5363 script given below

if ($this->ee_version >= '2.4.0')
{
    $channel->pagination->get_template();
}
else
{
    $channel->fetch_pagination_data();
}

FYI:
EE: 2.8.1

Calendar: 1.8.5

Thanks


texts: Can EE support authentication via a private oauth server?

texts:
I want to use EE to power the editorial portions of a larger commerce application, and I'd lover to offer a single sign-on experience.

There are add-ons allowing 3rd party sign on from Social networks, is there anything that allows support for a private oauth server?


texts: Blog permalink redirects to homepage channel?

texts:
I've been following Andy Johnson's (Shapingthepage.com) tutorial on building a blog using EE and have been running into an incredibly frustrating issue where the permalink redirects to the homepage. Only thing I can see in the template debugging is this and can't really make sense of it:

(0.010170 / 7.26MB) Snippets (Values): FALSE|1|Bio Mechaniks|default_site|blog-test-entry-photo

The blog entry page I'm working with is here: http://biomechaniks.com/blog_entry/
When you click permalink for the non-video entry, you'll see it just sends you back to the home page. Per Andy Johnson's tutorial, I placed the following the index page for the template group:

{if segment_2 == ""}
{embed="blog_entry/.blog.main"}
{if:else}
{embed="blog_entry/.blog.article"}
{/if}

Thoughts?


texts:
User guide states:

Set Template Preferences
From the Control Panel, go to Settings ‣ Template Settings.

Set Save Templates as Files to Yes.

but there is no such setting on the template settings page

whazup?