texts:
I have a fairly fresh install of ExpressionEngine 2.7.2 and am having tons of problems with either Assets or Matrix upon saving an entry.  I'm receiving the following error:

A Database Error Occurred
Error Number: 1054
Unknown column 'content_type' in 'where clause'
DELETE FROM `exp_assets_selections` WHERE `col_id` = '1' AND `row_id` = 10 AND `content_type` = 'matrix' AND `entry_id` = '4' AND `field_id` = '6'
Filename: third_party/assets/ft.assets.php
Line Number: 1232

Both add-ons were freshly installed (no upgrades) and we're using EngineHosting if that matters

Any help would be great!
Brian


texts: Ordering events with Low Search Results and Low Events

texts:
I'm using the Low Search Tag extension from Low. He kindly pointed me to it so that I can find upcoming events based on a Solspace Tag.

This is correctly pulling through the events I need using the following code;

{exp:low_search:results tag_name="{segment_4}" websafe_separator="-" low_events:unit="upcoming" low_events:show_passed="no"}
{title}
{/exp:low_search:results}

However, I need to be able to order them by the Event Start Date. It doesn't seemt o be doing this by default. I tried adding 'orderby="low_events:start"' but this didn't make any difference.

Wondering if anyone else had found a solution for this?

Thank you.


texts: What's the difference between {exp:stash:get name="foo"}, {exp:stash:foo} and {stash:foo}?

texts:
Can someone explain to me the difference between {exp:stash:get name="foo"}, {exp:stash:foo} and {stash:foo}?

I'm relatively new to ExpressionEngine, and after discovering Stash, I'm amazed at how powerful of a tool it can be, when used properly.

In reading the documentation and support forums, I've seen reference to all three  tags that, I believe, all serve to retrieve a variable.  However when I try them out, I sometimes find that I get slightly different results when I interchange them.

According to the documentation, {exp:stash:get name="foo"}, {exp:stash:foo} are the same thing, and I've only seen passing references to the third {stash:foo}. Even if they all serve the same purpose, do each have their own particular uses that make them differ from the others?


texts: Synchronize Templates - I've deleted templates, but they're still listed under the "Design" menu

texts:
I have EE configured to save my templates as files.

I had several different template groups that I deleted via FTP. I clicked on "Synchronize Templates" and ticked all the boxes, and hit submit. I no longer see those templates listed under the Synchronize Templates page.

However... The template groups are still listed under the Design --> Templates --> Edit dropdown menu. There doesn't seem to be any way to get rid of them.

I have a feeling it's because I have Save Revisions turned on. I can see old templates that have clearly been deleted, so opening them up in the EE editor will show an empty file - but with several revisions available to restore.

Is this an ExpressionEngine bug, or is there any way around this?

Thanks!


texts: How to add jquery spellchecker plugin to WYGWAM

texts: How I would go about adding the jquery spellcheck plugin to WYGWAM?


texts: Channel Specific Shipping based on Quantity Threshold

texts:
I have a site where I have 2 product channels: one for webinar registrations, the other for physical products to ship (and in the future we will offer digital downloads so I'll be creating a channel for that)

As shipping settings are site-wide, I can't simply enable quantity specific shipping for just the physical products. However I know you can specify Shipping Per Item and I can create a field for that.

However, how would that field be set up if the shipping rules are:

Qty 1-2 $10
Qty 3-5 $20
Qty 6+ $35

I can create a matrix field of 2 columns, I guess, with these details, but how can CartThrob automatically figure out that there's 2 of this particular item and only add shipping for THAT item based on that quantity?

And ONLY for this channel. Other channels are automatically zero shipping because a) registration and b) digital download.

Help!


texts: Using low search to pull up child categories

texts:
I'm setting up a search using nested categories. So in category_grouy 5 I have 5 parent categories and a handful of nested child categories. Using the below returns all categories but parent searches return no results.

<select name="category[]" multiple="multiple">
    {exp:channel:categories channel="attraction" style="linear" category_group="5"}
        <option value="{category_id}"{if category_id IN ({low_search_category})} selected="selected"{/if}>
            {category_name}
        </option>
    {/exp:channel:categories}
</select>

Using this next section gives me the display I want but still the same problem. It's not returning any of the children.

<select name="category[]" multiple="multiple">
    {exp:channel:categories channel="attraction" parent_only="yes" style="linear" category_group="5"}
        <option value="{category_id}"{if category_id IN ({low_search_category})} selected="selected"{/if}>
            {category_name}
        </option>
    {/exp:channel:categories}
</select>

My question: I can display parent categories, so how do I get Low Search to return sub categories when the parent is searched?


texts: Using FreeMember to record interests (categories) to a member profile

texts:
I have a FreeMember based registration form where I want to record a users areas of interest at time of registration and also provide a mechanism to edit those interests after registration through a profile edit screen.

The areas of interest are ExpressionEngine categories so I can easily pull them out and display them as a list of checkboxes on the registration and profile edit screens. My question is two fold...

1) How should I approach storing this data in a custom member profile field? Ideally I want this to remain flexible so I’m envisaging storing the data as a a pipe delimited string of category_ids or a JSONified array.

2) How am I best off processing the data, maybe using a bespoke extension for FreeMember or using jQuery to process the checkbox states on click and process that data and stuff it into a hidden field, then do the reverse on page load.

Thoughts much appreciated!


texts:
In EE 3.5.10 using the Image Upload button in the RTE toolbar, I can only choose existing images. There is no upload button.

Is this the way it is supposed to be?


texts: Creating new channel field error: The page you requested was not found

texts: Adding new channel fields always says "The page you requested was not found." but editing fields works fine. Everything is working until we installed Profile:Edit module and even uninstalling it did not do the trick. Any ideas guys? Thanks in advance.


texts:
We have a need to pull in data from an external source using PHP. I’ve run into this issue before where EE doesn’t like the PHP formatting i’m using, yet it seems to work elsewhere. For example, if i type the same code into phpfiddle it works fine. When i put it into EE i get the error {!– ra:000000007fef5f44000000007fd6e88d –} or something similar. Please see the code below. Any ideas of why this wouldn’t work? I do put the API key in and “URLGOESHERE” is where the actual API URL is.. i just removed for here.Thanks!

<?php

require “util/httpful.phar”;
$API_KEY = “”;
$startAt = 1;
$maxReturn = 20;
$url = “https://URLGOESHERE/sws/v1/offers/cruise?filter=supplier_id=26;searchable_destination_id=2&fields=offer_id,title&start;_at={$startAt}&max;_return={$maxReturn}”;
$response = Httpful\Request::get($url) ->addHeader(‘api_key’, $API_KEY) ->send();
$offers = json_decode($response, true);
$total = $response->body->meta->total;

$returnHtml = “
Top Cruises

”; foreach( $offers[“offers”] as $offer ){
$returnHtml .= “
{$offer['offer_id']} - {$offer['title']}
”;

$returnHtml .= “
”; $returnHtml .= “Showing results {$startAt} - {$maxReturn} of {$total}”;

echo $returnHtml;

?>


texts: Can't Stash global and field errors in Safecracker form

texts:
I'm trying to capture in a variable Safecracker's global and field errors so I can display them outside of my Safecracker form. In my Safecracker form, I have the following:

{if global_errors:count > 0}
    {exp:stash:set
        name="global_errors"
        save="save"
        scope="user"
    }
        {global_errors}

{error}

        {/global_errors}
    {/exp:stash:set}

Global Errors

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

{/if}

{if field_errors:count > 0}
    {exp:stash:set
        name="field_errors"
        save="save"
        scope="user"
    }
        {field_errors}

{error}

        {/field_errors}
    {/exp:stash:set}

Field Errors

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

{/if}

At this point, it's not even able to access the variable value right after I set it. So, my guess I am setting this incorrectly. Any ideas what's going on?


texts: Re-writing Playa tags to disable the Playa extension for better site performance

texts:
With the overall goal of reducing page load time (Memory, Execution Time in template debugging), how can I rework my Playa templates so as to “shut off” the Playa Extension?

Template debugging shows that I have 511 lines like so:

Calling Extension Class/Method: Playa_ext/channel_entries_tagdata

(The largest batch of them, 435 at a stretch, adds 3 seconds and 5MB to page execution time. And of course those 511 lines of calls appear on a section of the site that isn't using Playa. I've already gotten rid of similar calls for Matrix and P&T Field Packs by downloading the latest Field Pack off Github)

In this (old) P&T Support discussion thread, Brandon Kelly mentions that it's possible, by adding A Thing Or Two to your Playa tags, to disable the Playa extension. (I've done that with Matrix and, Field Pack, thanks to the latest version of them)

Brandon:

  You’d just have to remember to set entry_id="{entry_id}" on any Playa
  tags inside {exp:channel:entries}, as well as set the var_prefix=
  param:

{exp:playa:children field="some_field" entry_id="{entry_id}" var_prefix="child"}
  {child:title}
  ...
{/exp:playa:children}

How do I apply that in this situation where I have a matrix tag pair and all that image replacement stuff going on?

{exp:channel:entries
    channel="thankyou"
    orderby="date"
    sort="desc"
    limit="1"
}

Thank you {title}

{thanks_body}

{!-- Playa Field tag pair: --}
{thanks_related_entries limit="8"}

{exp:lg_replace:haystack needles="{mtrx_images backspace="1"}image_{row_count}|{/mtrx_images}"}

{if channel_id=="1"}{/if}
{if channel_id=="4"}{/if}
{title}

    {exp:eehive_hacksaw words="55" append="&#8230;"}
        {exp:smartdown} {summary} {body} {/exp:smartdown}
    {/exp:eehive_hacksaw}

{mtrx_images}
    {exp:lg_replace:replacement needle="image_{row_count}"}
        {exp:ce_img:single src="{img}" width="70" alt="{img-caption}" class="left" title="{img-caption}"}
    {/exp:lg_replace:replacement}
{/mtrx_images}

{if channel_id=="1"}{/if}{if channel_id=="4"}{/if}&raquo; Read This

{/exp:lg_replace:haystack}

{/thanks_related_entries}

Used in a similar manner in another location, I've wrapped the entire playa tags inside an if statement:

{if static_playa_related_posts}
    {static_playa_related_posts limit="15"}
     ...STUFF....
     {/static_playa_related_posts}
{/if}


texts: Why Is It Necessary to tell Expression where it is the file system and why more than once?

texts:
Don't say it's for flexibility!  If flexibility is all that matters, where is software for making a whole website by typing everything freeform all into one field.

So we draw lines, make judgments, to make the system practical.

I AM MOVING AN EE SITE NOW
Right now I am moving an ee site I have moved a few times, and every time, it is a super pain the butt.

I am going to give an example, below, of how EE handles a new path to where it runs, then how another system does it.  I pray no one will defend the dumb way EE has this setup.  I pray also the mastermind of this scheme, come forward, admit the problem, apologize, promise to fix it, and then fix it.

EXPRESSION ENGINE SETUP

ANOTHER SYSTEM


texts:
Does Solspace's Favorites module support custom fields?  Can anyone think of some other add-on or combination of add-ons that might achieve the same functionality?

I'm building a housing directory that allows users to log in and save listings they're interested in.  I've accomplished most of that using Solspace's Favorites module.  The next bit of functionality I'd like to add is for users to be able to track their progress vis a vis the application process.  Ideally, these would simply be checkboxes as custom fields attached to each favorite.  The critical bit is obviously that it's user-specific content.

I've been racking my brain trying to figure out how (or if) I could structure this little bit of functionality.  Any advice is appreciated.


texts: Is it possible to duplicate an EE3 build over to a brand new license/server/database?

texts: Both builds are exactly the same just with different branding. Just looking for the easiest way to set this up.


texts: Pagination outside of channel entries tag? Part 2

texts:
RE: Pagination outside of channel entries tag?

Is this really the best way to place the pagination links outside the Channel entries tag? It seems ugly.

(And out of curiosity: is there a benefit to putting paginate inside the Channel entries tag? I'm wondering why EE was designed this way.)

Also, is there a way to control what is added to the URL segment? Say I wanted to change "P1", "P2", etc. to something else? What if I wanted it to be query string? I will paginating through search results and would like the GET param values in the URL.

UPDATE 1:

Trying the Stash solution, I did this:

// Inside the tag pair
{exp:stash:set name="pagination"}
    {paginate}

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

    {/paginate}
{/exp:stash:set}

And the later on in the same Stash template file:

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

This approach results in two things that I do not want:

The pagination still shows inside the tag pair
The pagination does not show outside the tag pair

EDIT 2:

This solved my Stash problem: https://gist.github.com/1206694


texts: Why settings in my config.php aren't overriding settings in the CP

texts:
It's my understanding that settings in the config.php override any settings in the control panel.

Background:
I have copied a site over so it runs from another domain (with the view of closing down the original site). I want both sites to use the same database so they display the same content but change the site's general configs and paths. If I changed paths (like theme path) in the control panel then that seems to affect the other site as I think these setting are stored in the DB.

Thanks


texts:
I have a landing page with a bunch of entries, displayed from a good ol' channel entries tag pair. Now, I'd like to have a link to another page right in the middle of the entries (after 3 entries). The problem is that I can't just have two different tag sets, because I want the whole thing to be paginated. What can I do?

{exp:channel:entries channel="mychannel" limit="6" paginate="bottom"}

        {photo_matrix}{/photo_matrix}
        {contact}{if name}

Submitted By {name}

{/if}{/contact}

    {my_pagination}{!-- (pagination snippet) --}

{/exp:channel:entries}

This is what I want:

 __________
|          |
|  Image   |
|__________|

 __________
|          |
|  Image   |
|__________|

 __________
|          |
|  Image   |
|__________|

{          }
{   LINK   }
{          }

 __________
|          |
|  Image   |
|__________|

 __________
|          |
|  Image   |
|__________|

 __________
|          |
|  Image   |
|__________|

[PAGE 1 of 5] [<] [1] [2] [3] [>] [LAST]


texts:
Is it possible to create a table that shows a count of the entries made per author and per month. Example would be:

Author | Jan | Feb | Mar

John Doe | 5 | 8 | 4
Mad Man | 6 | 3 | 8

Would be needed for a complete year

Any help greatly appreciated even if an add-On is needed


texts: How do I increase the attachment size limitation and formats in Forums?

texts:
I am working with Forums 3.1.9 on EE 2.5.5 and have run into some limitations that should be modifiable.

Attachment file size: I see this note:

  Attachments Max Size: 75KB

How can I increase this?

Upload file type. If I try to upload a PDF for a Word document I get the following error:

  The filetype you are attempting to upload is not allowed.

I checked /config/mimes.php and both .doc and .pdf files are listed. Do the forums have a difference mimes controller?

Thanks!


texts:
I'm using Safecracker to edit entries for the Channel Books. Suppose I have another Channel Publications.

I am using a Playa field to create relationships.

My understanding is that you can only use Playa to create relationships between existing entries. Is there a way to create a Publication entry and at the same create a relationship to the Book entry we are editing / creating?


texts:
I've got an XML feed set up to import data from one EE install to another. I'm using Datagrab and everything is working correctly except that comments are not being imported.

When I look at the xml feed I can see the comments there and in the Datagrab control panel I've mapped the comment fields to their equivalent xml tags. However comments do not get imported.

Each time I do the import is fresh as I revert to an earlier database which has no entries and no comments in the channel I'm importing to.

Any thoughts?

EE 2.9.3
Datagrab 1.8.0

*****update*****

XML feed

<root>
{exp:channel:entries channel="blog" limit="200" disable="category_fields" status="not foo" orderby="entry_date" sort="desc"}
    <entry>
        <title>{title}</title>
        <url_title>{url_title}</url_title>
        <entry_id>{entry_id}</entry_id>
        <date>{entry_date}</date>
        <status>{status}</status>
        <blog-image>{if blog-image}{filedir_4}{exp:xml_encode}{blog-image}{file_name}{/blog-image}{/exp:xml_encode}{/if}</blog-image>
        <content><![CDATA[{entry}]]></content>

        {code_sample}
        <code_sample>
            <code>{exp:xml_encode}{code}{/exp:xml_encode}</code>
        </code_sample>
        {/code_sample}

        <seo>
             {exp:seo_lite entry_id="{entry_id}"}
        </seo>

        <comments>
            {embed="blog/_export_comments" entry_id="{entry_id}"}
        </comments>

        <categories>
            {categories backspace="1"}{exp:xml_encode}{category_name}{/exp:xml_encode},{/categories}
        </categories>
    </entry>
{/exp:channel:entries}
</root>

FEED Embed:

{exp:comment:entries entry_id="{embed:entry_id}" limit="100" dynamic="no"}
    <comment>
        <comment_author>{name}</comment_author>

        <comment_author_email>{email}</comment_author_email>

        <comment_author_url>{url}</comment_author_url>

        <comment_date>{comment_date}</comment_date>

        <comment_body>{exp:xml_encode}{comment}{/exp:xml_encode}</comment_body>
    </comment>
{/exp:comment:entries}

I just ran the import again and it has 46 new entries, which is correct and showed now errors. However no comments were imported

Here is a screenshot of the comment settings in Datagrab

here is a screenshot of the xml feed showing comments  - it's a local copy of the site.


texts: Which one is best for multilangial site? Using expressionengine 3 multi site manager or transcribe?


texts: Wygwam - adding link cannot close window

texts:
EE 2.7.3
WYGWAM 3.2.2

When using Internet Explorer I try to add a link using WYGWAM and after I enter the URL i click OK and the pop up window will not close.  Is there a fix for this?


texts: Stop EE from obfuscating email address in template

texts: How do I get EE to actually print out the email {apply_email} instead of making a javascript obfuscated email address in the templates? Is there an option I can put on the tag to do this?


texts: Error "The action you have requested is invalid" while fetching data via AJAX in EE 2.7.2

texts:
I try to implement infinite scrolling in EE 2.7.2.

There are 2 templates: "infinite_scrolling_main" and "infinite_scrolling_embed". There are no forms in any of these two templates. AJAX call from the page outputted by template "infinite_scrolling_main" should fetch the data outputted by template "infinite_scrolling_embed".

This setting worked correctly prior to EE 2.7. But after upgrade to 2.7.2 any AJAX call outputs error message "The action you have requested is invalid" instead of proper data.

This issue seems to be related to XID handling. If I set

$config['secure_forms'] = "n";

AJAX works correctly.

What should be done to keep secure forms and to be able to fetch data via AJAX in EE2.7.2?


texts: Post Titles/Post Content Displaying Twice

texts:
We’ve recently had a membership registration spamming, which I believe has caused several issues:

Some post titles are displaying twice on our home page (http://www.ondemandweekly.com) and in the Most Popular Post listings
Content is duplicated within posts themselves
Post author has been reassigned to a bogus spam author

I’ve turned off membership registration and changed my member trigger word, as well as optimized my tables, and it seems to have resolved the member registration spam issue; however, I’m not sure how to repair the double post display issue.

Some posts actually duplicated themselves, and I’ve deleted any duplicates from the admin panel; however, the double title display and duplicate content within posts remain.

We are using EE1.7.1.

Any help is appreciated. I’ve never used SQL, by the way, so please reply at a basic level.

Thank you!

{embed="global/head" loc="home"}

    {exp:weblog:entries weblog="blog" limit="1" orderby="date" paginate="bottom" status="featured" }

{title}more &hellip;

    {/exp:weblog:entries}

        {embed="blog/stories-for-home-page" category_1="38"}

        {embed="blog/stories-for-home-page" category_1="40"}

        {embed="blog/stories-for-home-page" category_1="43"}

        {embed="blog/stories-for-home-page" category_1="36"}

        {embed="blog/stories-for-home-page" category_1="42"}

        {embed="blog/stories-for-home-page" category_1="41"}

{embed="ads/featured_video" loc="home"}

{embed="blog/recent-posts" loc="home"}

        {embed="ads/160x1600" loc="home"}

        {embed="blog/twitter-widget" loc="home"}

{embed="global/footer"}


texts: Memberdata as channel entries, showing amount empty fields in profile

texts:
We are setting up a system for members, and will be using a plugin for storing memberdata in a channel. We did not decide yet for Solspace User, Profile:edit (likely since we'll use Cartthrob) or Zoo-visitor.

One feature would be nice to implement, showing the amount of data in a profile.
With a message: 'you filled in x% of your profile.'
And a congratulation of course the moment they reach 100%.
I am interested in how to implement that, if possible.

Is there anyone that has done this?

Thanks for helping out.


texts: Multi Site Manager - File Upload Preferences - Unique per site

texts:
Apologies if the Title is a bit odd sounding.

Basically, I have MSM with 4 sites. Within each site is a UI file upload preference. Now when I 'Search By Directory' on the File Manager, I get UI, UI, UI and UI. - Can I get it to filter by directories only on that site? Or is the only option to give them Unique names?

Thanks,
Joe


texts: Using math with a channel entries variable to work out the height/width value to pass to CE Image

texts:
I've got a field that editors can add a number to which will make sure that images are all that width or height. The images are resized with CE Image.

I also want to be able to serve up different resolution versions of the image to be handled by srcset.

I thought I could do something like this:

        srcset="{exp:ce_img:single
                src='{url}'
                width='{width}'
                url_only='yes'} 1x,
                {exp:ce_img:single
                src='{url}'
                width='{exp:math formula='{width} * 2'}'
                url_only='yes'
                parse='inward'} 2x"

That does output a resized image, but the values are coming out wrong.

For instance, for a series of images where the width is set to 350, I'd expect the 2x value to be 750. Instead I'm getting:

  data-srcset="/assets/img/sized/assets/img/content/Image1_350_262_85.jpg,
        /assets/img/sized/assets/img/content/Image1_1187_890_85.jpg 2x"

  data-srcset="/assets/img/sized/assets/img/content/Image2_350_262_85.jpg,
        /assets/img/sized/assets/img/content/Image2_1187_890_85.jpg 2x"

  data-srcset="/assets/img/sized/assets/img/content/Image3_350_233_85.jpg,
        /assets/img/sized/assets/img/content/Image3_1335_890_85.jpg 2x"

  data-srcset="/assets/img/sized/assets/img/content/Image4_350_239_85.jpg,
        /assets/img/sized/assets/img/content/Image4_1301_890_85.jpg 2x"

  data-srcset="/assets/img/sized/assets/img/content/Image5_350_233_85.jpg,
        /assets/img/sized/assets/img/content/Image5_1409_939_85.jpg 2x"

i.e. the width values are a bit all over the place.

Anyone have any ideas about what might be going wrong or how to get the correct output?


texts: All Tags not working after FTP my website to the server

texts:
After I have FTP my website to the server, none of the tags is working, another word, there is no content pulled from the CMS to the template. My website is http://www.pwshare.co.uk/.

Please take a look and give some advice!

Thank you!
Michael


texts: remove index.php on Windows 2012 iis 8 using URL Rewrite

texts:
I have the latest version of EE installed on a Windows 2012 Server with the URL Rewrite module installed. I'm migrating over to this server from an older apache installation that used Mod Rewrite successfully.

EE is installed in a subdirectory one level down from root (ee) and each dept's index.php file is in another directory (dept1, dept2, etc).

E:/data/web1/ee
E:/data/web1/dept1
E:/data/web1/dept2

We have a bunch of extra EE 'sites' added for various internal departments so I need the rewrite to handle those as well.

<rule name="EE rewrite" stopProcessing="true">
    <match url="^/(dept1|dept2|dept3|dept4|dept5)/(.*)$" ignoreCase="true" />
    <conditions logicalGrouping="MatchAny">
        <add input="{R:1}" pattern="^(index\\.php|images|css|js|favicon\\.ico)" ignoreCase="false" negate="true" />
        <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
    </conditions>
    <action type="Rewrite" url="/{R:1}/index.php/{R:1}/{R:2}" />
</rule>

I've tried importing the apache conf file and that didn't work so I've been bashing my head over this for a while.

With this current iteration above it loads the admin control panel and loads dept home pages ok but fails to load department subpages and links.  They return 404.

this works:
http://test.example.edu/dept2/
this fails:
http://test.example.edu/dept2/blah/stuff

What am I missing?

After resolving the main issue, what can be improved upon?
Might it be an EE config or IIS config?


texts: Advanced conditionals: {if field1:total_rows == 0 && field2:total_rows == 0} always return TRUE

texts:
I have tried many different variations:

{if field1:total_rows == 0 && field2:total_rows == 0} No rows {/if}

{if field1:total_rows == 0 AND field2:total_rows == 0} No rows {/if}

{if {field1:total_rows} == 0 && {field2:total_rows} == 0} No rows {/if}

{if "{field1:total_rows}" == 0 AND "{field2:total_rows}" == 0} No rows {/if}

They all evaluates TRUE, even though field1 and field2 have matrix rows in the entry.

I finally had to do something like this:
{if field1:total_rows == 0}{field2:total_rows == 0} No rows {/if}{/if}

How do I construct the conditionals without nesting two {if}?

We are on EE 2.9, Matrix 2.6


texts: Using stash to set a variable for use across different templates

texts:
If I understand correctly then I should be able to use Stash to set a variable on Template A and then retrieve it on Template B.

Template A contains

{exp:stash:set name="testvar" scope="site"}foo{/exp:stash:set}

Template B contains

Var= {exp:stash:get name="testvar" scope="site"}

There is nothing else on these templates but I don't get the value for testvar output on Template B.


texts: Postmaster: Can we send HTML & Text in one email using multi-part MIME? If not, how do we line break in plain text?

texts:
I have looked at the Postmaster docs, other questions on ee.stackexchange, and the Postmaster support forums at devot:ee, but have not seen an answer for these two.

Can Postmaster send a multi-part MIME message with HTML and plaintext via the expressionengine mail service?  If so, how?
If it can not send both HTML and plaintext in a single email, when sending in plaintext do I need to specify \r\n in the parcel code for linebreaks?  Is the preview pane supposed to show plaintext linebreaks, or does it only parse html?

My preference settings for sending text email in the parcel editor look like this:

Mail Type: Text
Protocol: Mail
Character Set: UTF-8
CRLF: \r\n
Newline: \r\n

If have tried the following variations in the parcel editor:

Dear {screen_name},
blahblahblah

Dear {screen_name},\r\n
blahblahblah

Dear {screen_name},"\r\n"
blahblahblah

None of the above combinations show a linebreak in the preview window.


texts: Security issues with putting member id in URI segments?

texts: I'm using Safecracker Registration so that I can leverage Channels for my member data. I want to create pages that display member data in the frontend. Is there a security issue with using member ids (or even Channel entry ids) in the URIs? For example, http://domain.com/foo/123/ -- the 123 is the member id or entry id.


texts:
I want to check if there are any channel field entries so something like

{exp:channel:entries channel="vacancies" author_id="{logged_in_member_id}"}

{if count==0}
there are no entries in this channel
{/if}

{/exp:channel:entries}

is there are count, rows or total_rows variables I can use?


texts: Captcha showing in comment form even with captcha off?

texts:
In my comment form I use {if captcha}...{/if} to only show the captcha if it is required. It is showing up for non-logged in users and not for myself, which makes sense.

The question is: How do I turn it off completely? I can not find any setting to turn of captcha's for comment forms in my 2.7.2 install.


texts: No member fields showing from zoovisitor in order fields setting

texts: When viewing Order Fields under settings the select boxes are empty. Fresh install of EE 2.9 latest Expresso Store and Zoo Visitor. Should I not be able to map the ZooVisitor member fields or was that removed from 2.4.0 Store?


texts: Solspace Calendar & Channel Form not showing in Firefox and Date popup not working

texts:
I created a channel form for submitting events here. It shows fine in Safari and Chrome but does not appear in Firefox. I confirmed that the channel permissions are set to allow Guest Publishers, so that is not blocking it.

In addition, the Date selection popup is not working. I added the following required stylesheet link to the template, but it does not make a difference:

<link href="{path=css/_ee_channel_form_css}" type="text/css" rel="stylesheet" media="screen">

I would appreciate another set of eyes to help spot what I may have overlooked. Several other channel forms are working correctly on the site.


texts:
I have a site where all the main navigation links (Top Navigation, footer nav and html sitemap page) link to URLs without a trailing slash, however the canonical tags for all pages end with trailing slash.

Is there a way to change all the links in the main navigation to link to pages with a trailing slash, or failing that change SEO lite to define a canonical without a trialing slash?

This is my first time using ExpressionEngine.


texts: MSM multisite Front End login Site B members not access SITE A any section

texts:
We have Facing Problem While MSM two Different primary & secondary Front End Login .

Problem: We have Created member group for secondary site (site B) members Register SITE B member in that group but When We have same user logged in primary site front end login (Site A) then its logged in successfully and site B member access all SITE A section.

above our Problem , We need to both Site front end login different , it means SITE B member group not access SITE A login after login any section.

let me know if you have any idea for this.

Thanks,
ZW PD


texts: Best way to edit all custom variable values and re-import

texts:
running ExpressionEngine with Cartthrob - we've come up against a situation where the client has requested to remove a global Tax setting, so that they can have all prices on the site already inclusive of VAT.

The price is currently set as a custom variable, alongside some other custom variables for previous price settings and others (we inherited this site from another dev team). Our problem is that we now need to add 20% to all prices, to bring them in line with correct pricing now there is no global tax in effect.

What is the best way of achieving this, in a way that doesn't involve manually changing each product entry? My initial thought was to perform an export of the dataset (CSV or otherwise) for products, create a calculation in the resulting file to generate new prices, and then reimport into EE. I tried exporting by creating a custom export template with download csv headers, but it resulted in an empty export. I also tried looking to the database for manipulating via sql, but of course the custom variables are not stored within a flat table structure.

Any advice would be greatly appreciated - worth noting I do need to be able to import this back in at the end of the process too! Thanks in advance,

Ben


texts: Why is the content showing for all categories except the one named California?

texts:
In eight years of building EE sites I have never encountered this problem before. I am building a photo section on my site that lists photos by category. Only as a category has content does the name of the category display here.

Here is the code that displays the category lists:

{exp:gwcode_categories cat_id="4" show_empty="no"}
{cat_name}
{/exp:gwcode_categories}

{exp:gwcode_categories cat_id="115" show_empty="no"}
{cat_name}
{/exp:gwcode_categories}

{exp:gwcode_categories cat_id="14" show_empty="no"}
{cat_name}
{/exp:gwcode_categories}

{exp:gwcode_categories cat_id="83" show_empty="no"}
{cat_name}
{/exp:gwcode_categories}

On the next page that displays the photo thumbnails, this works fine for all categories unless I spell out California. I currently have the category_url_title for this page truncated to calif because if I spell out california for the Category name no content will show on the page.

Here is the code for displaying the photo thumbnails:

{exp:category_id category_group="2" category_url_title="{segment_3}" parse="inward"}
{exp:channel:entries channel="photos" limit="20" category="{category_id}"  disable="trackbacks" pagination="bottom"}

{paginate}
{if "{total_pages}" != 1}

Page {current_page} of {total_pages}  {pagination_links}

{/if}
{/paginate}
{/exp:channel:entries}
{/exp:category_id}

All other category names work fine. I have names from across the globe and they work without a problem. I tried the following for the category_url_title:

calif
californi
californiaa

They all work. Any ideas why California spelled out will not work?


texts: How to get the parent entry ID while inside relationship loop?

texts:
I need to get the parent entry_id while I'm inside a relationship. This is what I have - doctors_locations is my relationship field name:

{doctors_locations}
    {doctors_locations:locations_city} {!-- outputs related city --}
    {doctors_locations:parents}{entry_id}{/doctors_locations:parents} {!-- I need the entry_id of the parent in this relationship --}
{/doctors_locations}

I've tried different iterations of this to no avail. Everything I've tried seems to cause a memory error -- assuming endless loop?

Is it possible to get the parent entry_id while inside of the relationship loop? I've managed to accomplish the same thing using Playa, but I needed to switch the doctors_locations field type to a Relationship field.

I'm using EE 2.10.1.

UPDATE: Based on the info here: https://ellislab.com/expressionengine/user-guide/add-ons/channel/relationships.html#accessing-parents I should be able to accomplish this. So I updated my code like this (tried it with just the title):

{doctors_locations}
    {doctors_locations:parents field="doctors_locations"}
        {doctors_locations:parents:title}
    {/doctors_locations:parents}
{/doctors_locations}

I get the following error:

Fatal Error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1 bytes) in ../system/codeigniter/system/database/drivers/mysql/mysql_result.php


texts:
I have 2 separate price modifier fields the one is a list of fabric options with images for a product, the other field lists images for different types of options for the first option.

At the moment i have a list of the fabric options displaying on the front end of the site.
Once a user clicks on the fabric option i want it to the display a listing of the fabric color options with images.

Is there a way i can do this?


texts: Separating Matrix Fields for Use with SafeCracker (Wygwam Fields)

texts:
--Update--
Got the loop to work and content pulls in (forgot to put my {exp:channel:entries} tag pair around the safecracker tags). Styling was pretty simple, but I had to change the wygwam field to a text field. Any thoughts on how to accomplish this with a wygwam field?

Also when I update the page, the content is saving as new rows instead of editing the current ones. I think it has something to do with the hidden field (which I thought I needed to include) but when I take that field out, I get an error from Expression Engine telling me that the timeline field is required. Am I missing something?

Link to image of timeline with editable fields: http://madhousedev.com/bgsumicro/images/timeline_edit.png

Here's my current code:

<input type="text" name="section_3_year" id="section_3_year" value="{section_3_year}" class="heading">

    <input type="hidden" name="section_3_timeline[row_order][]" value="row_new_0" />

    {section_3_timeline}

<input type="text" name="section_3_timeline[row_new_0][col_id_23]" id="section_3_timeline[row_new_0][col_id_23]" value="{date}" class="subheading">

            <textarea name="section_3_timeline[row_new_0][col_id_24]" id="section_3_timeline[row_new_0][col_id_24]" style="width:75%;" class="animated {switch=' |padded'}">{description}</textarea>

    {/section_3_timeline}

square

        {section_3_timeline_end}
            <input type="hidden" name="section_3_timeline_end[row_order][]" value="row_new_0" />

<input type="text" name="section_3_timeline_end[row_new_0][col_id_25]" id="section_3_timeline_end[row_new_0][col_id_25]" value="{date}" class="subheading centered">

            <textarea name="section_3_timeline_end[row_new_0][col_id_24]" id="section_3_timeline_end[row_new_0][col_id_26]" style="width:75%;" class="animated centered">{description}</textarea>
        {/section_3_timeline_end}

--Original Question--
I have created a timeline styled matrix with expression engine that consists of a text input (date) and a wygwam field (description). I'm hoping to create a safecracker form that allows users to update the content while maintaining as much of the original formatting as possible.

I've read documentation about how to separate the matrix fields, but can't find anything on how to make it work with wygwam. I'm also having issues pulling in the original content and getting my loop to work.

Any suggestions of what to try next would be greatly appreciated!

Here is a link to what the final output should look like: http://madhousedev.com/bgsumicro/images/timeline.png

Here is the original markup:

{section_3_year}

    {section_3_timeline}

{date}

            {description}

    {/section_3_timeline}

square

        {section_3_timeline_end}

{date}

            {description}
        {/section_3_timeline_end}


texts: How do i pull fields from a channel with a category_group tagged, but only the category tag that is checked

texts:
I've searched for solutions on how to display the selected category, to no avail.
I need to display entries that has that category field selected within that channel
This code just opens the channel needed thats tagged with that category group.
But if i select fields within that channel it gives me all, unchecked and checked category items.
{exp:channel:entries channel="channel_name" dynamic="no" category_group="category_id"} {/exp:channel:entries}


texts: Is there a maximum number of images for Channel Images?

texts:
Is there a maximum number of images which can be uploaded using Channel Images? We did not set a maximum number per user, but somehow when more than 30 images are uploaded, the images above the 30 will not show on the page.

The images ARE uploaded and shown in EE. So, if you move image #32 down, it WILL show.

Any ideas?


texts: ExpressionEngine and Solspace Calendar and Relationship and Custom Event Selection and Grouping by Date

texts:
I made a channel with a relationship with calendar and events channel. The relationship with event is multiselect. I want to select the event manually from the backend(channel).
Now i am failed to show these event in front end with the grouping by date as shown in the image/attachment.

Please tell me; how can i do such functionalities.

http://www.imageurlhost.com/images/7yje2k0ht07jykhqyajm.png
(relationship pic)

http://www.imageurlhost.com/images/c3j2g4poltpz1tv7npi.png
(layout pic)


texts: 404 page as a Page - is this doable/reasonable?

texts: I am a little shaky on how a 404 that returns the proper information should be setup. Right now, I have a 404 template that I note in my .htaccess as my 404 page. I was considering switching this to a page in EE's Pages module. Is this compatible with a proper 404 setup?


texts: Block iframes (e.g. YouTube-embeds) - loading only after click?

texts:
I am looking for a possibility to block YouTube-iframes (and similar embeds) from loading/setting cookies until the user clicks or allows it deliberately. Certainly I would prefer using a native EE functionality, but I also would use an commercial addon.
Thanks for any hints!


texts: Solspace Friends - Status Updates Display

texts: Is there a way to display all status updates from a particular member group in templates irrespective of whether or not they are friends (of the logged-in user)?


texts: Freeform Pro Notify User select menu is blank

texts:
When I check the enable box form my 'Notify User' form preferences, the drop down is blank.   Any idea what I need to check/code wise or other in order to get the list of fiends to appear in this drop down menu?
We're using EE2.9.2 and Freeform Pro v.4.2.2

Also, and I figure the answer is no but will ask anyway.
In either the admin_notify or admin_cc_notify parameters, can you use multiple email addresses, with one being a field/variable from the form itself?

So if the form contained the field email2 which is an email address.  Could the admin_cc_notify field = "email2"?

Thanks

Peter T


texts: Focuslab Multi Environment Config upload preferences issue

texts:
I'm having an issue with my upload directories. I converted an existing site to use the FocusLab config set up and everything is working fine. However I've just noticed that in the CP thumbnails are missing from all entries and on the front end new images are not being displayed.

I ftp'd into the server and in my directories I can see the images but they've all been renamed so that they are directorynamefilenam.jpg

i.e. house.jpg inside directory general is now named generalhouse.jpg.

Not sure why this is happening or how to fix it.

The relevant code from config.master.php is below

/**
 * Custom upload directory paths
 *
 * The array keys must match the ID from exp_upload_prefs
 */
 $env_config['upload_preferences'] = array(
     1 => array(
         'name'        => 'Home Page Slideshow',
         'server_path' => $images_path . '/home_slideshow',
         'url'         => $images_url  . '/home_slideshow/'
     ),
     2 => array(
         'name'        => 'Portfolio Logos',
         'server_path' => $images_path . '/portfolio',
         'url'         => $images_url  . '/portfolio/'
     ),
     3 => array(
         'name'        => 'Team Photos',
         'server_path' => $images_path . '/team',
         'url'         => $images_url  . '/team/'
     ),
     4 => array(
         'name'        => 'News Images',
         'server_path' => $images_path . '/news',
         'url'         => $images_url  . '/news/'
     ),
     4 => array(
         'name'        => 'General',
         'server_path' => $images_path . '/general',
         'url'         => $images_url  . '/general/'
     )
 );

If I synchronize a directory I get the following errors:

  generalColor_Block_Icon_with_i.jpg: invalid_filename

  generalPetArmor-Dog.png: invalid_filename

This is error is on all images on all directories.


texts:
I'm using the structure add-on and want to generate my main menu with it's submenu.
In HTML it should look like this:

Home

item 2

item 3

subitem 3.1

subitem 3.2

subitem 3.3

item 4

item 5

item 6

Using the structure code I should use:

{exp:structure:nav start_from="/" show_depth="2" css_class="toplevel" css_id="navigation"}

But this gives me the following HTML

    item 3

Does anyone know how to fix the menu as I suggested..?


texts:
I have 2 conditionals at the beginning of a template that are supposed to redirect the visitor to a different template if they are hitting the page outside of 2 different time spans, but the redirect is not working.

{if '{current_time format="%U"}' < '{start_date_1}' AND '{current_time format="%U"}' > '{end_date_1}'}{redirect="/closed"}{/if}
{if '{current_time format="%U"}' < '{start_date_2}' AND '{current_time format="%U"}' > '{end_date_2}'}{redirect="/closed"}{/if}

{start_date_1}, {start_date_2}, {end_date_1} & {end_date_2} are global variables.

Any help is appreciated.


texts: In Expression Engine, I can't "open" entries, they only offer "closed" as an option

texts:
I have taken over an old Expression Engine 1.7 site and am trying to create a Member group that offers limited admin privs rather than create a "Superadmin."

The problem is that I want the user to be able to create, edit, publish, unpublish section entries, but when they do, the sections exist only as "closed" (unpublished) and when I try to edit them, "closed" is the only option in the pulldown.  I am assuming there's a setting in the Group preferences that is preventing this, but I don't know what setting.  I've tried a number of them and nothing seems to work.

Any suggestions would be great.  Thank you!


texts: Removing index.php gives *no* 404 errors for wrong template groups

texts:
I have the opposite problem to many: When I use the official method to remove index.php and then enter an invalid url/template group, e.g.

http://www.example.com/blahblah

I do not get a 404 error, instead the most recently added page is shown.

Here's my setup:

EE 2.9.2
Strict URLs are enabled.
The correct 404 template  is set.

Because most have the inverse situation I could not find much to help me debug this issue. If I delete the code that removes index.php I get a 404 as expected.

Any pointers are greatly appreciated. Thank you.


texts: Relationships/Grid Fieldtype can replace Playa/Matrix?

texts:
I am currently using Playa and Matrix to manage multiple relationships and a gallery of images.

I am at 2.5.5 and contemplating upgrading to 2.7. I looked at the changelog and I saw the new Relationship fieldtype that support multiple relationships and the Grid fieldtype.

Are these new fieldtypes robust enough to replace those?

UPDATE: I think I might have been too general/vague in my description. To clear things up, these are 3 features that I need that I am not sure is doable in Relationship/Grid

A radio button that is a "is_default" field. This means that it should be aware of the other radio buttons in other rows in that there should only be one checked radio button at all times
Pagination support for Grid
Multiple relationships field inside Grid. I am aware that the new Relationship fieldtype supports multiple relationships now but the question is if it is available inside Grid


texts:
Working on a plugin integrating with the Active Campaign API.

What I have is a folder inside third_party containing pi.ActiveCampaign.php with a lib folder containing the API. The class describing the plugin is "Active_Campaign" and the function I want to use with it is "insert_contacts." The plugin appears in the add-ons section just fine, with all my documentation, but when I try to use it in a template:

It appears to not be detecting it. I've tried just using "exp:insert_contacts" as well, same result.

Here's the PHP file, as it is now, if needed (bitbucket repo): https: https://goo.gl/Shm4JN

And for reference, here's the doc I'm following: https://ellislab.com/expressionengine/user-guide/development/plugins.html

jic.

Any advice?


texts:
What are some ways to store full SVGs to later embed onto a page?
I'm thinking of setting a multiline plain text field to store the raw SVG.

Maybe save the file and embed it onto the page via javascript or php?


texts: htaccess removing .php ext causes infinite loop on admin login EE 2.10.1

texts:
when I use this htaccess its normal working good but it doesnt redirect .php urls

# 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]

but when I change it to:

# 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]

all .php extensions are redirects but admin login gets infinite loop redirect. it's a siteground hosting

any idea?


texts:
I am trying to upload a 19.3mb pdf file using Channel Files. It does not work for me as I receive the message:

"No file was uploaded or file is not allowed by EE.(See EE Mime-type settings)."

XSS filtering is Off.

All PHP settings have been increased but no luck.

max_execution_time   300
max_input_time       600
memory_limit         1024M
upload_max_filesize  50M

Any help is appreciated.


texts: Is it possible? Have a second reg form with User that goes to a specific group as opposed to main site signup. Is it possible to specify on this reg form alone that an Admin gets a mail on new signups?


texts: Get untranslated {segment_n} from translated URL with publisher

texts:
I'm using Publisher for translations and also use the URL translation. Now I want to show a menu item "active" based on the URL. But when I get {segment_1} it will return the translated template. So the make an if else statement for showing a active class, I need a lot of OR function to check all different languages. That's not how it should work!

So I wont to know, can I get the default untranslated template name? I thought of something like:

{publisher:segment_1}

But this echo's nothing at all..

Is it possible what I want? And how to?


texts: Is there a reason why Exp:resso Store 2 doesn't store the last four digits of the customers credit card number in the order details?


texts:
I know this issue has been mentioned before, but I can't find a solution to the problem anywhere.

I don't understand why when you edit a a form submission, the fields don't appear in the order they have been set in. I know you can edit how they appear in the main entries listings, but this doesn't carry over to the edit page for each individual entry.

I've tried to edit the plugin to do this, but am getting no where.

Has anyone else found a solution to this?

Thanks.

Andrew


texts: I've just discovered that Safecracker isn't in the list of modules for the site I'm working on. How do I install it? I'm using EE v2.1.3


texts: Expresso Store Inventory Control Panel Layout

texts:
I'm sure this is some obvious setting that I cannot find, but I've had no luck after consulting the documentation and settings so here goes.

In the Control Panel for Expresso Store 2.0.6, I do not have any options available to edit the products in 'bulk' via the Inventory tab. Several hundred products are listed and paged correctly, but the table doesn't look like this screenshot from the documentation  - it's missing the 'plus', sale price and sale price enabled columns, and my price column is a fixed value not a form field.

Any ideas why this might be occurring? I'm using Store 2.0.6 as upgraded from 1.X.


texts: Store order_discount Not Showing In Next Step

texts:
Using store, I am creating a multi-step checkout process. The first form is displaying the products in the cart page, second is shipping details form and third is my credit card/payment page.

On my first form the user is allowed to enter a promo code. This refresh the page and displays the order_discount correctly, but when going to the next step, it seems as if the order_discount tag resets to R0.00. what could be the problem?


texts: Can I integrate Paymentsense payment gateway with Carthrob?

texts:
I need to integrate Paymentsense with Carthrob.

Althought in the Cartthrob docs it says Paymentsense is included, I can't find it in the 'Choose your primary payment gateway' drop down list in the 'Payment Gateway Settings' admin.

The statement on the docs it says "The following payment gateways are included with CartThrob (or can be obtained by request)."

Does this mean I need to request Paymentsense integration? Anyone had any experience with this?


texts: Changing Safecracker to Channel Form tag results in no form output

texts:
I recently upgraded from version 2.5.5 to 2.7.0.

To make my forms updated to the current version, I changed forms which uses the {exp:safecracker} tag to {exp:channel:form}.

When I did, however, the markup inside the tags shows does not show at all.

Is there something I am missing here on why they are not showing at all?

I am using Safecracker Registration btw, but I am not sure if that is the factor.


texts:
I am experiencing installtion error for ecommerce module with this below message.

Expresso Store requires the PHP cURL extension to be installed on your server.

Could you please anyone give me some input?

sus


texts: Using Relationships or Grid to structure content of books

texts:
I'm looking to organize and display a library of books.

Within each book are chapters and my plan was to use the new Relationship features within EE to relate the entries made in a separate "chapters" channel to a particular "book".

I'm wondering if the Grid is possibly a better way of entering the chapter listing for each book without creating separate channels or relationships.

I also want to include a link to a file with each chapter.

Any suggestion as to how to best structure this and take advantage of some of the newer EE features in 2.7.2 would be much appreciated.


texts:
I'm looking to build upon a existing Structure built site and integrate another language. It doesn't necessarily need to be built upon using Structure, but as it's already using it and it works ok, then that makes sense.

Preferably i'd have one entry screen with an override if the existing language was entered show that body field, if not show default body. My preference for this data entry design is for client UX.

What the best way these days?

Thanks!


texts: Channel entries tag sort by P&T Field Pack Dropdown values

texts:
I've got a P&T field for US states set up with values and labels like this:

AL : Alabama
AK : Alaska
AZ : Arizona
AR : Arkansas
CA : California
CO : Colorado
etc...

I need to group entries by state, and the groups should be ordered by state name alphabetically.

CHANNEL ENTRIES TAG:

{exp:channel:entries
        channel="resource_links"
        show_future_entries="yes"
        show_expired="yes"
        status="not closed"
        order_by="resource_link_state"
        sort="asc"
        limit="9999"
        dynamic="no"
    }

I'm using some inline PHP to handle the grouping and that seems to be working fine. The problem is that the states are not coming back in ascending alpha order as I've tried to specify in my channel entries tag.

I'm getting: CA, CO, NM, NJ, OH, TX, LA, IL, FL, NY, NM, NY, AL, AK, AZ, AR, CT, DE, etc.

http://poms.mach1media.com/resource/links-by-state/

Anybody else run into this problem and found a solution?


texts:
I wish to show to a logged in member, a list of pages they have recently viewed.

I have looked into the default Tracking module and Solspace tracker, but these all seem to just work to display on a particular entry or in the CP, rather than displaying on say an account page for a member.

Has anyone done this before?

Thanks.


texts: Cartthrob payment gateway (Worldpay) callback gives "the action you have requested invalid post back"

texts:
Using Cartthrob 2.4 and EE 2.7, paying via Worldpay, returns this message:

the action you have requested is invalid

My guess is its the new security introduced for POST requests, that require a new XID set, so does anyone know how to deal with this for external websites like Worldpay submitting call backs?

Thanks


texts: How deep into a Matrix field type can I go with IF statements?

texts:
Bear with me as I explain my setup...

I have a channel called Speaker and a channel field called speaker_media that is a matrix field type. Inside the matrix I have a channel field for speaker_audio, speaker_video, speaker_photos. the Speaker entry is set up with the speaker's name, title, company, bio, and topic and is used in promotional material leading up to the event.

I have another channel called Multimedia. Multimedia entries might be for a speaker event and they might not be. If they are, I have a channel field called speaker_import. It's a Playa field type that allows the user (me) to define a relationship between this Multimedia entry and a single Speaker entry, since the Speaker entry will always come before the Multimedia entry (we don't have multimedia until after the event, duh!). When the speaker_import field is not empty, my template grabs all the relevant info from the Speaker entry and displays it, meaning that I don't have to duplicate a bunch of information like media_description (speaker_bio), media_subtitle (speaker_topic), and more.

So my question...

When I get to the raw source portion of the Multimedia entry, I want to be able to automatically pull the speaker media in if it's defined. But since that media is a couple levels deep on the Speaker entry (speaker_import > speaker_media > speaker_audio), how can I do this with an IF statement? Here is what I have so far. It's wrong and I know that, but hopefully seeing it will assist in making it NOT wrong.

{if speaker_import}
    {speaker_import}
        {if speaker_media}
            {speaker_media}
                {if speaker_video}
                    Video
                {/if}
                {if speaker_audio}
                    Download MP3
                {/if}
            {/speaker_media}
        {/if}
    {/speaker_import}
{if:else}
    {if media_video}
        Video
    {/if}
    {if media_audio}
        Download MP3
    {/if}
{/if}

In case you're wondering why not just put the media files in the Speaker entry and be done... this Multimedia channel also populates our RSS for an iTunes podcast.

So... help?


texts:
So our current setup has a channel with a playa field. This worked well so far BUT now we need to store specific values for each relationship (eg: The related field will need a catalogue number, specific price etc so each child relationship can have unique values as well).

From the top of my head this could be achieved by creating a new matrix/grid field in the same channel with all those unique columns (playa relationship field, catalogue number, price, etc).

My questions is, would that be the best solution for this issue? If so, I'm guessing that a MySQL query with the right format should do the job?

Cheers,
Alberto


texts:
I need a 'location_channel' with location entries.
These entries should have 3 multi-select boxes containing different categories.

Select #1 - Location Type

Education

Academies
Auditoria
...

Religion

Chapels
Temples
...

...

Select #2 - Location Style

Medieval
Gothic
...

Select #3 - Location Era

10th Century
11th Century
...

I tried to do this with native EE categories, but it seems it's not possible to add multiple 'categories'-fields. And it wouldn't be easily selectable when you have 100+ categories.

Also looked at Playa, but it handles entries not categories.

So my question is:
What is the best way/practice to handle this case?
Am I overlooking something to do this with native categories?
Should I make use of a category_channel & add the 'categories' as channel_entries?
Or should I use 'Tags' instead?

Keep in mind:

easily manageable by the admin
only the admin can add/remove categories
on the front we need a 'search/filter' that can handle these categories


texts: Using Expresso store in a responsive design

texts:
I'm looking for an ecommerce solution to use with EE but I need to be able to use it within a responsive design. I don't see anything in the docs as to what markup is output with a cart tag or checkout tag. From the "showcase" sites on the website, it looks like the cart is a table and the checkout is a simple form. Is this the case?

I've built a responsive ecommerce site using Foxycart before and had to override a lot of their CSS, but got it working. How much control does the developer have over the markup and styling of the cart, checkout and other basic templates or tags?

Is there a vanilla install somewhere out there to look at the code?

Thanks.


texts: Why can't I loop through {data} array after API call?

texts:
I'm using the Charge API to get a customer's next invoice date in a template:

{exp:charge:api call="Stripe_Invoice::upcoming" param_name="customer" key="{customer_id}"}
{if has_error}
    {error_message}
{if:else}
    {data}
        {if '{next_payment_attempt}' != ''}
            Your plan will renew automatically on:
            {exp:low_nice_date date="{next_payment_attempt}" format="%n/%j/%Y"}.
        {/if}
    {/data}
{/if}
{/exp:charge:api}

This calls the api() function in the module, and I can clearly see where {data} is being set:

$data = ee()->charge_stripe->api_call($call_name, $call_val, $call_param_name);

if ($data === false) {
    $ret['has_error'] = true;
    $ret['error_message'] = ee()->charge_stripe->api_error_message;
} else {
    $ret['data'] = $data;
    $ret['has_error'] = false;
    $ret['error_message'] = '';
}

If I var_dump($data['next_payment_attempt']) there I get a timestamp, as expected.  But in the template I get an error about Array to String conversion.  I can manually add the line $ret['next_payment_attempt'] = $data['next_payment_attempt']; and then use {next_payment_attempt} in my template.

Why can't I use {data}{next_payment_attempt}{/data} in my template without modifying the PHP directly, when it's clear that $data['next_payment_attempt'] is a timestamp?


texts: If statement on segment eq url_title - strange behavior

texts:
My goal was to mark current/active article on the list. Code looks like:

{exp:channel:entries channel="products" category="{segment_3_category_id}" orderby="title" sort="asc" status="open" paginate="bottom" dynamic="no"}
{if switchee_no_results}

No entries yet.

{/if}

{title}

{/exp:channel:entries}

but no class added to the proper list item.

Then I have decided to check if IF statement works and did simple test run

Seg: {segment_4} - URL: {url_title}
{if segment_4=="{url_title}"}FOUND!{/if}

no result found even there was proper Seg to Url match.

Then I have checked if there is no results

Seg: {segment_4} - URL: {url_title}
{if segment_4=="{url_title}"}FOUND!{if:else}NOT FOUND{/if}

and I have got proper matches.

Any clue what is going on?

Thanks


texts:
Hello ExpressionEngine gurus!

Could someone please show me how to add comments to an ExpressionEngine 2-based site from its control panel, being logged in as a Super Admin (as opposed to entering comments using the front end comment submission form)?

Would be grateful for your help!


texts: Managing file upload locations with http and https

texts:
I've got a file upload location that needs to serve files via http in the public part of the website, and serve files via https in the private part of the website and in the control panel (to avoid getting security warnings).

How can I handle this in EE?

Here's how I'm currently specifying file upload locations in the config.php file:

/* File Upload Preferences
-------------------------------------------------------------------*/
$config['upload_preferences'] = array(
  1 => array(
    'name'        => "Uploads",
    'server_path' => "${_SERVER['DOCUMENT_ROOT']}/uploads/",
    'url'         => "http://${_SERVER['HTTP_HOST']}/uploads/"
  )
);


texts:
I just started getting an internal server error on a site that has been running fine for weeks.

Now when I try to access a page that has a Freeform form on it, I get a server error & I am also no longer able to login to the control panel at all.

I switched debug to 2 in my config file and this is the error I get:

Error Number: 1205

Lock wait timeout exceeded; try restarting transaction

DELETE FROM exp_freeform_params WHERE entry_date < 1450727583

Filename: third_party/freeform/models/freeform_model.php

Line Number: 538

What is going on here? Any help is appreciated.


texts: ExpressionEngine FreeMember conditional return=''

texts:
Attempting to return to different pages based on the success or failure of FreeMember Registration on Expression Engine.

The default attribute for the return URL is return='', however I cannot seem to find any documentation relating to different return locations based on the successful or unsuccessful registering.

Through testing I have found that the URL within return=''will appear only on a successful completion of registration, however should you make an error within any part of the registration form then the URL goes back to index.php without any return path added.

Q. Is there a specific custom attribute whereby you can define the URL for the unsuccessful completion of the register form?


texts: can I put markup inside an iframe tag in a rich text field?

texts:
I need to support embedded tweets in Facebook Instant Articles. Oob the way to do that is to wrap Twitter's embed code blockquote.twitter-tweet in figure.op-interactive iframe (here's a link to Facebook's documentation, for reference) —

    <blockquote class="twitter-tweet"...

I planned to add those wrapping elements via the "source" view of the rich text field, but when I save EE escapes the < and > inside the iframe as &lt; and &gt; —

    &lt;blockquote class="twitter-tweet"...&lt;/blockquote&gt;

Is there a way to include markup inside an iframe in the rich text editor?

Or does anyone have a favorite workaround? Or a plugin that could be added to this large existing site without adding tooo much migration overhead and without significantly changing the client's content entry experience?

This site is on EE 2.9 if that makes a difference.


texts:
I'm new to add-on development and have built a simple plugin to return an integer of the number of entries a user has posted in a certain channel.

I want to call this plugin a few times in an EE template. With the way it is set up now, does that mean the plugin will query the DB every time I call it?

If so, is there a better way to write this?

Thanks,

        <?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

            $plugin_info = array(
                'pi_name'       => 'Camper Count',
                'pi_version'    => '1.0',
                'pi_author'     => '',
                'pi_author_url' => '',
                'pi_description'=> 'Count the number of campers a logged in user has and return an integer.',
                'pi_usage'      => Camper_count::usage()
            );

            class Camper_count {

                /**
                 * Specific Vars for Channel and Status
                 * Since this will only be used to export from one channel
                 *
                 * @var array
                 * @access protected
                 **/
                protected $channel_id = 20; // The ID for the 'Campers' Channel
                protected $channel_entry_status = 'open';

                /**
                 * Return Data
                 **/
                public $return_data;

                /**
                 * Constructor
                 */
                public function __construct()
                {
                    $this->EE =& get_instance();

                    // Make the Query
                    $this->EE->db->from('exp_channel_titles');
                    $this->EE->db->where('channel_id', $this->channel_id);
                    $this->EE->db->where('status', $this->channel_entry_status);
                    $this->EE->db->where('author_id', $this->EE->session->userdata('member_id'));
                    //$this->EE->db->where('exp_channel_titles.entry_date >=', strtotime($config['date_filter_start']));
                    //$this->EE->db->where('exp_channel_titles.entry_date <=', strtotime($config['date_filter_end']));
                    $count = $this->EE->db->count_all_results();

                    /*
                     * Since the user will be registering a new camper, incrememnt the camper count up by 1.
                     * If there are no campers returned, then this is their first camper. Return 1.
                     */
                    if($count > 0)
                    {
                        $this->return_data = $count + 1;
                    }
                    else
                    {
                        $this->return_data = 1;
                    }
                }

                // ----------------------------------------------------------------

                /**
                 * Plugin Usage
                 */
                public static function usage()
                {
                    ob_start();
            ?>

            Returns an integer of the number of campers a logged in user has. {exp:camper_count}
            <?php
                    $buffer = ob_get_contents();
                    ob_end_clean();
                    return $buffer;
                }
            }

            /* End of file pi.camper_count.php */
            /* Location: /system/expressionengine/third_party/camper_count/pi.camper_count.php */


texts:
Is it possible to conditionally show a form field if the member password field is blank. Something along the lines of

{if password == ""}SHOW THESE FIELDS{/if}

I have a Cartthrob shopping cart that auto registers member on purchase and I want to give them the opportunity of setting a password on the cart summary page. I don't want to show the set password form if they are a returning customer/member (ie password field is not blank)

Running
EE 2.7.2
CT 2.5
PE


texts:
I am using the Grid field built into EE, 2.8.1, to display event dates. In the Grid column I have an event date field to let you know when the event starts. What I would like to do is have this date field then somehow have the field no longer display 24 hours after the event start time.

I got this working by setting up an expiration date field but thought it would be easier for the end user not to have to fill that in since it is not the best workflow for the data entry person.

Is there a certain way to automagically do this?

Here is my current template code. I am using the Math Plus plugin to help with math but not sure if I am even approaching this correctly.

{bio_pull_in_tour_dates}

        {bio_pull_in_tour_dates:tour_dates orderby="bio_pull_in_tour_dates:tour_dates:tour_date_of_show" sort="asc"}

        {if {bio_pull_in_tour_dates:tour_dates:tour_date_of_show format="%U"} < {exp:math_plus decimal_places="0" calculate="({var1} + {var2})" var1="{bio_pull_in_tour_dates:tour_dates:tour_date_of_show format="%U"}" var2="86400" }{math_plus_result}{/exp:math_plus}}

                {bio_pull_in_tour_dates:tour_dates:tour_date_of_show format="%n/%j/%y"}
                {bio_pull_in_tour_dates:tour_dates:tour_venue}
                {bio_pull_in_tour_dates:tour_dates:tour_city}, {bio_pull_in_tour_dates:tour_dates:tour_state}

                {bio_pull_in_tour_dates:tour_dates:country}

                    Start Time: {bio_pull_in_tour_dates:tour_dates:tour_date_of_show format="%U"}

                    Current Time: {current_time format="%U"}

                    Expire Time: {exp:math_plus decimal_places="0" calculate="({var1} + {var2})" var1="{bio_pull_in_tour_dates:tour_dates:tour_date_of_show format="%U"}" var2="86400" }{math_plus_result}{/exp:math_plus}

                     {bio_pull_in_tour_dates:tour_dates:tour_additional_info}

Marked Expire

        {/if}
        {/bio_pull_in_tour_dates:tour_dates}

{/bio_pull_in_tour_dates}

So I am taking the date of show field converting it's format to Epoch seconds. Then I am comparing the start time to the sum of the start time plus 86400 since that is how many seconds are in a day. this should work but it does not appear to do so.

I hope this makes sense. If there are better ways to get the row to hide after a certain amount of time please point me in the correct direction,

thanks in advanced.


texts: File Manager change in Wyvern mess up current entries?

texts:
I am wanting to change the file manager from EE File Manager to Assets 2 in Wyvern preferences.  Currently the site has numerous entries with images embedded within the Wyvern custom fields.

Will changing the file manager mess up anything with those images?
Any steps needed before making that switch?

Thanks in advance!


texts: I'm getting this error message after a fresh install update. Any one have any ideas on how to fix it?


texts: How to get a CDN to work with ExpressionEngine

texts:
I've run into this problem before, and took an alternate route.
Basically, I'm using MaxCDN to deliver my images/fonts/js/css. To do this I set a global variable to point to the cname for my cdn url (i.e. http://cdn.mysite.com/). The problem is I'm getting all kinds of

  No 'Access-Control-Allow-Origin' header is present on the requested resource.

Errors? I've tried the various .htaccess methods to alleviate this, but nothing seems to work?

Here's what I currently have, which is just the recommended settings from MaxCDN, with the index.php removal for EE:

<IfModule mod_rewrite.c>
############################################################################################
#Section 1
RewriteEngine On
IndexIgnore *
Options +FollowSymLinks -Multiviews -Indexes
############################################################################################
# ----------------------------------------------------------------------
# CORS-enabled images (@crossorigin)
# ----------------------------------------------------------------------
# Send CORS headers if browsers request them; enabled by default for images.
# developer.mozilla.org/en/CORS_Enabled_Image
# blog.chromium.org/2011/07/using-cross-domain-images-in-webgl-and.html
# hacks.mozilla.org/2011/11/using-cors-to-load-webgl-textures-from-cross-domain-images/
# wiki.mozilla.org/Security/Reviews/crossoriginAttribute
<IfModule mod_setenvif.c>
  <IfModule mod_headers.c>
    # mod_headers, y u no match by Content-Type?!
    <FilesMatch "\.(gif|png|jpe?g|svg|svgz|ico|webp)$">
      SetEnvIf Origin ":" IS_CORS
      Header set Access-Control-Allow-Origin "*" env=IS_CORS
    </FilesMatch>
  </IfModule>
</IfModule>
# ----------------------------------------------------------------------
# Webfont access
# ----------------------------------------------------------------------
# Allow access from all domains for webfonts.
# Alternatively you could only whitelist your
# subdomains like "subdomain.example.com".
<IfModule mod_headers.c>
  <FilesMatch "\.(ttf|ttc|otf|eot|woff|font.css|css)$">
    Header set Access-Control-Allow-Origin "*"
  </FilesMatch>
</IfModule>

# Removes index.php from EE
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L,QSA]
# If 404s, "No Input File" or every URL returns the same thing
# make it /index.php?/$1 above (add the question mark)
</IfModule>

Unfortunately, I'm still receiving the errors? If I change my sites "site_url" within the EE config to point to my CDN, and then use {site_url} it works, but this breaks other things for obvious reasons.

The other thing I found interesting is if I use the Minimee EE module, and set the URL to the cdn, the js and css can be served via the CDN and I don't have problems. However, the caveat here being, any images that point to the cdn within the css files also receive an error.


texts: Wygwam not showing or loading in Channel Entry

texts: Upgraded our EE install to 2.8.1, installed Matrix plugin and also upgraded an older version from Wygwam to the latest version, but Wygwam isn't showing in the Matrix publish field. Any ideas or thoughts where to look?


texts:
I'm updating an EE site from 2.3.x to 2.10.3 and as part of that I'm upgrading mx_google_map from 1.4 to 1.5.3.

Using the field type on the front end I get the following console error:

Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys

I have this in

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="/themes/third_party/mx_google_map/mxgooglemap.js"></script>

On the live site the api key is included but in the updated site it doesn't appear to work.

The test site I'm using is on a sub-domain and I wonder if that's the cause of the problem or is it down to the extension.

Should I specify the API key somewhere, am I missing something obvious?

Thanks.


texts: Using the edit tag, is it possible to show previously attached files?

texts:
I have a multi-part form that is set up with freeform. After submission, I display a confirmation page where the user can view the data they entered, and if they want to make changes there is a link to the 'edit' page that uses the {exp:freeform:edit} tag.

On the edit page, all of the freeform data populates correctly except for the file fields. I have a group of file fields on the 3rd page of the form and they show up as "no file selected" even though there were files uploaded when the form was originally submitted. Is there a way to leave the attached files in place on the edit page so that the user won't have to upload them again when making edits?

Thank you for your help!


texts:
If I wanted to consume API feeds (restful) and import that data into EE as entries, is that possible?

Ideally I would like to import a bulk amount of channels (once only), then a bunch of categories for each channel (once only/or once a blue moon), and then I want ti be able to fetch the JSON and use it with some mapping to entries in EE.

Is Solspace - importer the best tool to do this, or will I be better writing some manual PHP scripts to import them all into EE.

The final site will be thousands of pages, and then I am going to augment them with further data made available over an API.

I am really hoping EE will scale to this, as otherwise I need to write the system from scratch - how large does EE scale to?

Looking at say 500k unique visits a month viewing this imported data.

Or would this; be a better option

http://reinos.nl/expressionengine/webservice/docs

Excuse my long reply! * I am the thread author, just found my proper SE account!

Hello,

How was your experience using DataGrab, so I am correct in thinking if I had an API, I could make it import that into an entry, and also some custom fields?

Could you share with me as much detail as you wish, about how you found that process, and how you did it?

I would have 250 channels to create, with up to 30 categories in each, and each category would have 5-10 pages.

Lastly, is there a way I could make all the channels share the same template, all the categories the same, and all the pages the same? I.E three templates, without me duplicating them numerous times? Is there a way to smooth that flow too, I want to automate much of the entry creation as possible.

Say I had weather data, I want to be able to make a weather page for up to... 500 cities programatically, but I want each one to be a separate page. like

domain.com/channel/category/city

I am very familiar with EE, just never tried to automate content/entry creation and this would be at scale.

With datagrab, I could import the data through the API, but I can still edit it too through the usual edit content pages correct?

If I can't figure out how to do it with DataGrab, then I fear I would have to write an Angular App from scratch, but I love the EE interface and stuff.

Lastly, which plugin do you think is best? Datagrab sounds like it has more features, but I have bought SolSpace plugins before and they have always been good..


texts: 'You do not have access to the directory specified for this field' issue with MSM

texts:
I am using MSM to create multiple sites on an EE project. When I create a new site I copy over all the channels/entries from my default site.

When I go in to add/edit an entry all my file uploads say 'You do not have access to the directory specified for this field'.

To fix this I can go to the field settings and change 'Allowed directory' from 'All > Uploads'.

However this is fairly time consuming as I have lots of file type fields. Is there any other way I can make this work without changing the above? Or when I create the new site have them set to 'uploads' which is how they are on the default site?

Cheers
Darren


texts: redirect request for file download to a template first

texts:
I need to log downloads to the database, to do this I'm trying to redirect requests for downloads to a template where I can call a custom module function and save info to the db, before providing the original download.

I have the following htaccess, but it just keeps appending to the URL and gives a ';Error: The URL contains too many segments.' error:

RewriteRule ^/downloads/files/(.*)\.zip$ /index.php/log/file_downloads/$1 [L]

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

This must be pretty close, any help appreciated!


texts: Site doesn't work with WWW at the start of the address

texts:
We're using EE and I'm also using the Focus Lab Multi Environment Config file on one of our sites and for some reason our site won't work with WWW at the start of the address.

I have confirmed with the hosting provider that everything is correct from their end, but am confused as to where to move from here.

Is there something in the config file that should be modified to make this work again?

Very new to the Focus Lab Config file.


texts: Can't Find Problem Template for Allowed Memory Size Exhausted Error

texts:
My site's server logs show a repeating memory limit error:

  [17-Jan-2013 17:26:01 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 523800 bytes) in /path/to/my/system/expressionengine/libraries/Template.php on line 894

As you can see, the server's memory limit is already set to 128 MB, so whatever template is causing this appears to be massive. Trouble is, I can't locate the problem template. Every page on my site is running well below 128 MB. Also, I haven't seen this PHP error anywhere on the front-end during development, and I assume it would appear if I tried to load the problem template.

Has anyone had this issue before? Is there a quirk or bug I'm not aware of that I should look for?

EE 2.5.5

EDIT
Line 894 in this file is:

$this->process_tags(); // Run the class/method handler


texts: Need to filter Super Search results by relationship in custom field

texts:
We have an EE site for a hospital with two sites, default_site and another_site

Default_site has almost all the unique content, such as:

Physicians

Can have multiple specialties
Custom_field (checkbox) to display on Another_site

Specialties

Another_site pretty much just has custom page content.

We are using Super Search to search both Physicians and Specialties from Default_site and pages from Another_site

The problem is, we only want to show specialties in the search results IF the physicians have the custom field checked to display on Another_site

We can filter the physicians pretty easily, but are having a hard time figuring out how to only show only the specialties in the search results whose physicians have the checkbox checked.

Any thoughts? Ideas?


texts: Is there a way or add-0n to show an image or file is linked from an entry if a user tries to delete it?

texts: A client wants to prevent an editor from renaming or deleting an asset/file/entry that is linked from anywhere on the site.  I cannot find an add-on that does this.  They are requesting a list that shows links to the item they want to rename/delete with an options of actions to take.


texts:
We're finding that on login forms for users who are not super admins we get this response.

Is this a server or config issue maybe?

EE 2.7.3


texts:
I'm trying to get my EE add-on (using Dashee) to get entries from the DB.

So far I have

    $this->_EE->db->select('ct.channel_id, ct.title, ct.entry_date, ct.status, cd.field_id_52, cd.field_id_67, cd.field_id_73');
    $this->_EE->db->from('channel_titles AS ct, channel_data AS cd');
    $this->_EE->db->where('ct.channel_id', $settings->channel_id);
    $this->_EE->db->order_by('entry_date DESC');
    $this->_EE->db->limit($settings->limit);
    $entries = $this->_EE->db->get();

Which works, but when it outputs I get 4 entries, when really there should only be 1. But the overall total of entries on my site is 4.

What I think is happening is

$this->_EE->db->where('ct.channel_id', $settings->channel_id);

Is not selecting the correct channel, but not sure why.

Settings are set like this:

        $this->settings = array(
            'title' => 'Recent Orders',
            'channel_id' => '6',
            'limit' => '10',
            'field_firstname' => 'orders_firstname',
            'field_surname' => 'orders_surname',
            'field_total' => 'orders_total',
            'custom_url' => '10',
            'status' => 'Processing'
            );


texts: MX Cloner : Clone results in undefined URL (404)

texts:
MX Cloner running on EE 2.9.2 with Zenbu installed (also running Zenbu MX Cloner support extension)
When we select the clone option the site gives us a 404 page with the following structure

http://www.domain.com/undefined&clone=y&use_autosave=n

We've got this installed on another 2.9.2 site (also running Zenbu) and it's working fine - any ideas about where to look to resolve?

We've uninstalled and reinstalled both cloner extensions to no avail


texts: Can you completely disable members on the frontend?

texts:
Each time a template is loaded in ExpressionEngine is goes through a couple of member related tasks (as far as I can see):-

Is this user in a blacklist? Addons_model::module_installed()
Grab the current session data EE_Session::fetch_session_data()
Get the information about the current member EE_Session::_do_member_query()
Update the session information with this new visit EE_Session::update_session()
Fetch the CSRF token Csrf_database::fetch_token()

I found the above behaviour in the output, so perhaps they don't even run the above processes for the normal guest user.

But assuming a couple or all of them do - it seems quite heavy handed for a site that doesn't require memberships.

Is there a way to disable this?


texts:
Is there a way to create more dynamic collections?

I am talking about creating collections like

collections that contain channel entries that have X field
collections that contain channel entries who's A field is equal to 1
collections that contain channel entries that are from date X to date Y


texts:
My client wants guest and member pricing for products.

My initial thoughts were to create two sales one restricted to the members group and one restricted to a logged out (guest) group. It looks like sales can only be restricted to member groups.

How would I go about adding a discount to guests?


texts: Database connection issues upgrading to EE5

texts:
I recently upgrade from EE2 to EE5 locally on my laptop before moving to a remote location. When moving to a remote location, I get database errors.

SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)
ee/legacy/database/drivers/mysqli/mysqli_connection.php:78

Has anyone seen this? I need help figuring this out.

Thanks!


texts: Possible to add type attributes when using FreeForm Composer

texts:
Is it possible to add type attributes to inputs when using the FreeForm Composer Templates? If I hard-code a form I can add type="email" or type="tel" but cant see any way to do this when using Composer.

Additionally if I add attr:required="required" to {freeform:field:{composer:field_name} the output is required="required" which although correct for xhtml, is not correct for HTML5 - should simply be 'required'. Is there a way to alter this?


texts:
There used to be all kinds of plugins for EE 2 that let you shorten a variable (or any string, really), some from EllisLab as well as a number of third-party ones. Some let you specify the number of words, some were even HTML aware, etc.

What are my options at this point for working with EE 3? I haven't seen one of them converted. Do I really have to use raw PHP?


texts:
Hi wondering if it's possible to do a conditional on price inside of the product tags.

For example..

{if price > '0.00'} Hello {/if}

I'd like display different formatting if price is more than 0.00


texts:
I am new to expression engine and setup multiple sites using MSM. All the sites having simple search form to search across the channels. When i search with the master site the search working perfectly, But when i search through the sites other than master it redirects me to no result page.

{exp:search:simple_form
    channel="news|business|travel"
    result_page="search/results"
    no_result_page="search/no_results"
    search_in="everywhere"}

    <input type="text" name="keywords" id="search" value="" class="form-control input-sm" placeholder="Search" required />

    <button type="submit" id="submit" name="submit" class="btn btn-default btn-sm">
        <i class="fa fa-search"></i>
    </button>

{/exp:search:simple_form}


texts: Using stash, what's the most efficient way of dealing with long paginated lists

texts:
I have a website with more or less a thousand news items in a channel and was wondering what was the best way to handle this with stash if I want to separate the logic from the HTML code as much as possible.

1. Using set_list / get_list

Wrapping your channel:entries tags in a set_list then using get_list and stash pagination does not look like it is the right approach since getting 1000 items with a channel entry loop is going to be very time consuming. What's nice is that you can cache the list and not hit the channel entries tags on subsequent visits.

2. Using append_list / get_list

The approach I currently favor is to use channel:entries tags on the outside and using an append_list tag pair on the inside and stashing the pagination works fine. But there, we hit the channel:entries tags on every page load and I don't see how stash caching could be useful in that context.

{!-- Build news list --}
{exp:channel:entries disable="categories|category_fields|member_data|trackbacks" channel="news" status="open" orderby="date" sort="desc" limit="10" paginate="bottom"}

    {exp:stash:append_list name="st_news"}
        {stash:st_title}{title}{/stash:st_title}
        {stash:st_date}{entry_date format="%F %d, %Y"}{/stash:st_date}
        {stash:st_machinedate}{entry_date format="%Y-%m-%d"}{/stash:st_machinedate}
        {stash:st_url}{url_title_path="news_press/news"}{/stash:st_url}
        {stash:st_image}{cf_news_img}{/stash:st_image}
        {stash:st_summary}{exp:eehive_hacksaw words="30" append="..."}{cf_news_summary}{/exp:eehive_hacksaw}{/stash:st_summary}
    {/exp:stash:append_list}

    {paginate}
        {exp:stash:set name="st_pagination" parse_tags="yes"}
            {pagination_links}

                    {first_page}
First
{/first_page}
                    {page}
{pagination_page_number}
{/page}
                    {last_page}
Last
{/last_page}

            {/pagination_links}
        {/exp:stash:set}
    {/paginate}

{/exp:channel:entries}

and then in a snippet or in the same template

{exp:stash:get_list name="st_news" prefix="stashprefix"}

    {if count == "1"}
{/if}

{exp:ce_img:pair src="{st_image}" width="680" height="382" crop="yes|center, center" allow_scale_larger="yes"}{/exp:ce_img:pair}

<time datetime="{st_machinedate}" pubdate="pubdate">{st_date}</time>

{st_title}

{st_summary}

    {if count == total_results}
{/if}

    {!-- if no results --}
    {if stashprefix:no_results}
No News Found
{/if}

    {!-- Pagination --}
    {if count == total_results}{exp:stash:get name="st_pagination"}{/if}

{/exp:stash:get_list}

I was just curious to know:

what is the approach stash experts use in such a context
are there stash options/parameters (save/refresh/replace) I could use to have better performance


texts: $_SERVER['HTTP_ACCEPT'] is blank when caching is enabled

texts:
I had some working code within a template making use of the php variable $_SERVER['HTTP_ACCEPT'], to check for webp image format support from the user's browser.  This was working fine, but after turning on template caching, the output for

<?php echo $_SERVER['HTTP_ACCEPT']; ?>

is blank.  Whether the php is processed via output or input doesn't appear to impact its blank value.

I'm using 5.2.4

Has anyone else experienced this?  If so, any ideas on a reason or workaround?


texts: Is there a way to search just a specific channel field without searching the title field?

texts:
Using ExpressionEngine 2's native search module, is there a way to search just a specific channel field  without searching the title field?  From what I can determine from the EE 2 docs, there are only 3 options with no way of keeping the title field from being searched.

quoted from EE docs:

entries: The search will be conducted in the entry fields and titles of your channel. The associated comments will not be included.
everywhere: The search will be conducted in the title, entry fields, and in associated comments.
titles: The search will be conducted in the title of your entries. The channel entry fields and any associated comments will not be included.

My client wants a search to look only within a tag/s entered within a custom channel field, and exclude a keywords from the title tag.


texts:
I want to have  p, h1, h2, h3, h4, h5 Buttons in the Editor by DevDemon.

How do I do this? Do I really need to hack some php or js files?

I enabled "Formating Tags" in Advanced Settings. But these Tag Buttons still don't show up.


texts: LV, Matrix fieldtype with an Assets fieldtype in column

texts:
I have a Low Variable with a Matrix field type. Inside one of the columns I have an Assets field type.

Seems to work on and off. I could load my template, image is displayed. I could refresh the template, I get a 0.

I've tried numerous template tags but I'm not confident its fixed.

{exp:low_variables:parse var="lv_sidebar_adblock_image"}

{/exp:low_variables:parse}

I've also tried this:

{exp:low_variables:parse var="lv_sidebar_adblock_image"}

{/exp:low_variables:parse}

'image' and 'link' are my Matrix column names. 'image' is the Assets field type.


texts: General error when trying to access templates

texts:
Running EE 3.5.12

In the process of creating a number of new templates I suddenly got the following error:

  SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\xD5ve
  fo...' for column 'template_data' at row 1:

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

I checked the template_data column contents of the most recent templates in exp_templates and could not see anything amiss.

I would appreciate any guidance on what might be causing this and how to resolve it.

I've attached an image showing the encoding for the table:


texts: tracking down malware in expression engine

texts:
I am getting a malware warning from google but I can’t track down how to access these files/pages. not in the ftp or in the CMS.  can anyone tell me were I should look?

http://www.tsgw.org/index.php?/member/email_console/191/

http://www.tsgw.org/index.php?/member/icq_console/416/


texts: Trying to use low_replace inside an EE Multi Select field

texts:
I have a channel for scholarships with a a Multi Select field with a list of schools. Each scholarship is available to certain schools, so I want to create a div with a class for each school, so I can use jQuery to hide/show scholarships available for each school using select. The options are hard coded right now.

<select>
<option value="Example1-High-School">Example1 High School</option>
<option value="Example2-High-School">Example2 High School</option>
</select>

What I am getting

 More information about the scholarship

What I want

 More information about the scholarship

Here is my template code:

            {exp:channel:entries channel="scholarships" dynamic="off" sort="asc" orderby="title"}

{title}

Schools:

{schools}

{item}

{/schools}

                {description}

            {/exp:channel:entries}


texts:
Is there a way to only show distinct entries using the channel entries tag?

For example, I want to create a list of channel entries that have a city field. The list would show the city name, but there are several entries that would have the same city name. If I use the channel entries tag to display the cities, their would be duplicates.

How do I avoid the duplicates?

Thanks for any help.