texts: Update page content via ssh rather than web interface

texts:
Im attempting to update page content (template content more specifically) in vim over ssh and have experienced trouble with the changes being committed.

For example:

I have a common footer template where I am changing some information. Through ssh, I navigate to the file, open in vim, and write the changes. everything is ok to this point

I go to the website and the change has not been committed… even with hard refresh.

Then, if I navigate to the same footer file in the web interface, the change still isn't present. If I go ahead and make the change there, as you would imagine, it works just fine.

So my question is:

Is there some cache setting or configuration option that makes editing the template files directly on the server as functional as committing changes through the gui?


texts:
I'm using stash to fuel many parts of a site I am building. I successfully have it working to print certain parts of the page title to the  tag of the page, but I want to include entry titles on pages where that is applicable. Here is my code setup for a given scenario:
This is my "main" template

    {embed="_layout/events"}
{preload_replace:the_channel="events"}
{exp:stash:set_value name="title" value="Events"}

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

Events

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

    {exp:channel:entries
        channel="{the_channel}"
        disable="categories|category_fields|member_data|pagination"
        limit="3"
        show_future_entries="yes"
        sort="desc"
        status="Open|Home"
        }

{title}

            {exp:channel_images:images entry_id="{entry_id}"}

            {/exp:channel_images:images}
            {exp:chopper}{summary}{/exp:chopper}

    {/exp:channel:entries}

{/exp:stash:set}

{exp:stash:set name="entry-content" parse_tags="yes"}
{exp:channel:entries
    channel="{the_channel}"
    disable="categories|category_fields|member_data|pagination"
    limit="1"
    show_future_entries="yes"
    status="Open|Home"
    url_title="{last_segment}"
    }
{exp:stash:set_value name="page_title" parse_tags="yes" parse_depth="2" name="page_title"}

{title}

{summary}

    {/exp:channel:entries}

{/exp:stash:set}

This is my {embed="_layout/events"} template

{p_head}

    {exp:switchee variable='{segment_1}/{segment_2}' parse='inward'}

    {case value='{segment_1}/'}
    {exp:stash:get name='listing-content'}
    {/case}

    {case default='Yes'}
    {exp:stash:get name='entry-content'}
    {exp:stash:get name='sidebar'}
    {/case}

    {/exp:switchee}

{p_footer}

And finally, here is my {p_head} file which is trying to reference the stashed element called "page_title" which is in the entry section of the main template:

    <!DOCTYPE html>

<meta charset="utf-8">
<title>{exp:stash:get name="title"}{exp:stash:get name="page_title" proces="end"} | {site_name}</title>

The stash:get for title works just fine, but the stash:get for page_title comes up blank. Any suggestions? Thanks!!!


texts: I have about 500 entries in a channel, and I need to show them on Google Map. When I try to read data with {exp:channel:entries} pair, it takes long to load the pages. Is there any way to load the data and start showing them as soon as they are ready on the map? Is it possible to read, for example 50 entries a time show them, then read next 50 entries, etc.? Maybe using a plugin or Ajax? Any idea?


texts: WYGWAM 4 is throwing PHP and Fatal errors on 2.10.3

texts:
Today I updated an old site from 2.2.1 to 2.10.3. I attempted to update some Add-Ons but ran into an issue with Wygwam. I downloaded Wygwam 4 from Devotee. Follow the update instructions but ran into errors. The first one below was easily solved as the add-on didn't have this define properly in the package.
This is how the file looks:

'wygwam_module_name' => WYGWAM_NAME,
'wygwam_module_description' => WYGWAM_DESC,

I got rid of that error.
Next I went to update the module and came down with this error:

Fatal error: Class 'PT\Wygwam\Helper' not found in /home/xxx/xxx.com/system/expressionengine/third_party/wygwam/upd.wygwam.php on line 27

Any tips on what might be going wrong here? Thanks!


texts: Template embedded in channel entry loop returns same data in each loop

texts:
I am having a strange issue in my product listing template. Basically I have 2 channels. First channel say items stores the product information like product name, sku, company id etc and other channel say images stores the images information like sku, company id image URL for the products. Please note that sku and company id also exists in images channel which relates both items and images channel.

So I create a product listing page which have a channel entry loop like this

{exp:channel:entries channel="items" orderby="date" limit="15" paginate="bottom" sort="DESC"}

        {title}

{/exp:channel:entries}

I need to show related image of this channel entry i.e. image which have same company id and sku as this entry. So I added an embed template to it so my working code snippet is this

{exp:channel:entries channel="items" orderby="date" limit="15" paginate="bottom" sort="DESC"}

     {embed="path/item-image" company_id="{company_id}" sku="{stock_keeping_unit}"}

{/exp:channel:entries}

Here is how embed template looks :

{exp:channel:entries channel="images" dynamic="no" limit="1" orderby="random" search:image_company_id="={embed:company_id}" search:image_stock_keeping_unit="={embed:sku}"
}

 {if no_results}

 {/if}

{/exp:channel:entries}

Now the issue is embed template keeps adding the same image with every loop. I have verified that company id and sku is different for each entry but it show the first image for all the items.

I have searched on Google where people having similar issue fixed it by adding random but random does not have any effect on my code. I can only think that EE is not calling the identical template more than once for optimization. I have also tried stash with snippet as I need to pass variables to the embedded code but it also returns the same image over and over.

Has anyone had this issue before, and if so, let me know how can I avoid it.


texts: Keeping a sub site running after switching the main site off

texts:
I have 2 websites, I'll call them website mainsite.com & website subsite.com to help illustrate what I'm trying to do.

subsite.com is a subsite of mainsite.com (durr), and mainsite.com is currently being rebuilt in a completely separate CMS but subsite.com needs to stay as it is.

Currently, the only way to edit subsite.com is through mainsite.com/system.

What I'm trying to work out, is when the new mainsite.com site goes live, what can I do about keeping subsite.com running and while keeping access to editing it etc.

The site is running Expression Engine 2.5.2 (an old legacy site I was handed over).

Any pointers would be appreciated, thanks!


texts: How to use negation with a boolean in a tag?

texts:
I am writing a plugin, and everything is working fine so far. Some of my source data includes booleans. So I want to be able to test for a value of false. This is the plugin code.

$array = array('show_data' => 'FALSE');
$str = $this->EE->TMPL->parse_variables($this->EE->TMPL->tagdata, $array);

return $str;

and this is the template code:

{if not show_data}

This is some data

{/if}

or

{if !show_data}

This is some data

{/if}

But it won't work. Is this not supported or am I doing something wrong?

Currently I have this workaround

{if show_data}{if:else}

This is some data

{/if}


texts:
I'm still quite new to ExpressionEngine

Been messing around with using JohnDWells' Minimee extention to serve minified .css and .js files from cloudfront rather than the site itself (Base URL) using cloudfronts custom origin feature.

It seems to work quite well. Expect Minimee is not detecting changes made to .css and .js files in the Base Path, and doesn't produce an updated combined .css or .js file.

Has andbody else tried this method (I searched, but didn't find anything specific)?

Any sugesstions on what I may (surely) be missing?


texts: no_results not working when moved to snippet

texts:
I have moved embed code to be a snippet. After that move no_results stopped to work (part of the code below)

{exp:channel:entries channel="products" category="{segment_2_category_id}" orderby="title" sort="asc" limit="8" paginate="bottom" dynamic="no"}

            {if no_results}

No entries yet.

                {/if}

{/exp:channel:entries}

Any clue why it has stopped?


texts: Cannot retrieve custom fields inside exp:store:checkout tag

texts:
Following Store official documentation I'm trying to include the content of some custom fields inside my {exp:store:checkout}{/exp:store:checkout} tags.
According to the docs:

  Inside the {items} loop, you can use the following variables.

  entry_id

  The entry id of this item. If you need to access other custom fields associated with this item, you can feed the entry id into a channel entries loop:

  {items}
    {exp:channel:entries entry_id="{entry_id}"}
      {my_custom_field}
    {/exp:channel:entries}
  {/items}

So I tried to use the following code:

{items}

                {exp:channel:entries channel='books' entry_id='{entry_id}'}

                {book_author}

                {/exp:channel:entries}

{title}

                {price}
                <input name="items[{key}][item_qty]" value="{item_qty}" class="input-mini" />
                {item_subtotal}

        {/items}

but the content of the {book_author} custom field doesn't show up.
Switching the template debug on I can see that the entry_id is retrieved:

 `{exp:channel:entries channel='books' entry_id='30'}
(0.075356 / 7.57MB) Closing Tag Found
(0.075517 / 7.59MB) Tag: {exp:channel:entries channel='books' entry_id='35'}
(0.075568 / 7.57MB) Closing Tag Found`

so everything looks ok, but a few lines below I read:

(0.093014 / 9.06MB) Calling Class/Method: Channel/entries
(0.093276 / 9.06MB) -> Class Called: Channel
(0.095509 / 9.22MB) -> Method Called: entries
(0.116360 / 10.72MB) Returning No Results Content
(0.116438 / 10.72MB) -> Data Returned

I also tried to use CE_image plug-in to put a tumbnail inside the checkout page, but the plug-in tag is not processed, and the plugin's own debug details don't show-up either.

All the other product details show-up so the {exp:store:checkout} tag seems to work, that is all the details that are not called inside the exp:channel:entries loop.

Is there a reason why the code above doesn't work?


texts: Stored module version number fails to update after upgrade successfully runs

texts:
We have a custom module which has successfully used the update method in upd.addon-name.php to apply database changes. We are attempting to use it again for another version update (from 1.4.0 to 1.5.0). This time however, ExpressionEngine says it successfully runs the module update (no error is thrown), but fails to update the version number in exp_modules. It does this whether or not you update via the "run module updates" button or by visiting the settings for the add-on.

This leads to an attempt to run the upgrade again whenever you visit the settings page for the module, which throws mysql errors complaining about duplicate columns (because it already added them).

Has anyone ever encountered this before? Is it safe to update the version in that table ourselves in the update function as a workaround?

I should mention this has occurred on ExpressionEngine version 2.7.3 on two separate installations.


texts: Expresso Store - PHP Error - store/mcp.store.php

texts:
I just moved a site to a new server and everything is working beautifully except for Store. In CP, I see this PHP errors.

A PHP Error was encountered
Severity: Notice
Message: Constant STORE_CP already defined
Filename: store/mcp.store.php
Line Number: 9

The front-end has this error.

Fatal error: Call to undefined method Store_cart::count_contents()
in /public_html/manager/expressionengine/third_party/store/mod.store.php
on line 55

Store 1.6.3, EE 2.5.3

Thanks.


texts: Toggle Editor not working after upgrade to EE 2.9.2

texts: I just updated a site to EE 2.9.2 and the Template Editor is exhibiting funny behavior. If I click Toggle Editor, the row numbers truncate and the template text disappears. If I click it again, the template text is there but without the color coded text. See attachment. Has anyone else experienced this and is there a solution?


texts:
What's the correct way to pull multiple rates from multiple shipping plugins? I tried using the below but it generates errors:

<select name="shipping_option">
{exp:cartthrob:get_shipping_options shipping_plugin="shipping_ups|shipping_usps"}
    <option value="{rate_short_name}" data-price="{price}" {selected}>{rate_title} - {price}</option>
{/exp:cartthrob:get_shipping_options}
</select>

Am I using the shipping_plugin parameter incorrectly?


texts: Rich Text Editor image tool not showing up

texts: I'm trying to figure out why the Tool 'Image' function under the RTE module isn't showing up on our front end dashboard. I can easily remove/add other Tools such as 'Underline' or 'Link' and the changes do take place. However, 'Image' will not. I do have it enabled. Am I missing something? Hopefully the images help show you where I am. I appreciate any insight. Thank you.


texts:
I'm looking to require the first forum post of a member to be moderated before it goes live but then allow all subsequent posts to post automatically.
Is this possible?


texts: Anyone recommend a replacement for Postmaster addon?

texts:
For v5? I think the addon is not developed anymore and stopped at v2. Basic functions needed are: mailout confirmation on signup/registration specific to different groups.

Anything out there?


texts: rawurlencode not rendering correctly in anchor tag?

texts:
EE Version. 2.7.3

I am running rawurlencode on a field in a channel called description to encode it to pass on correctly to twitters sharing url string inside my template.

Example input: Check Out Company Names Latest Post!

so the result should be

 Check%20Out%20Company%20Names%20Latest%20Post!

When I echo it outside of the anchor tag it renders correctly with the proper encoding, but as soon as I echo out the variable inside the anchor tag, the %20 encoding is not rendered and regular spaces are in the URL again.

PHP

<?php
    $description =  rawurlencode('{description}');
?>

Output:

 <a href="http://twitter.com/home?status=<?php echo $description; ?> {site_url}" class="popup">

Any ideas what's wrong?


texts:
I am using the store finder module, and am trying to insert a "title" for each "state". If I have 20 stores in a certain state, I would only like to display the "title" once. Is there any way this could be done with an if statement? to kind of break the loop?

{exp:store_locator:stores}

{name}

            {if address_line1 !=""}
            {address_line1}

            {/if}

            {city}, {state}
            {postal_code}

            {if phone != ""}
            Phone: {phone}

            {/if}

            {if url != ""}
            Website: {url}

            {/if}

    {/exp:store_locator:stores}


texts: If I add a plugin like Widon't to nearly every content field on a page, will performance be impacted?

texts: I have a tempermental layout (and client) that seems to cause many widows in my content blocks. I'm planning to make use of Low Widon't to correct this programmatically but before I do, wanted to ensure there wouldn't be a performance hit by running that plugin upwards of 30 times per pageview.


texts: How do I use notifications in Solspace Rating?

texts:
I'm using Rating and I'd like to receive a notification email whenever a review is placed. It seems that there already is such a thing, but I don't know how to configure it.
How do I select the email to which the email needs to be send?
And how do I specify which templates needs to be used?


texts: Listing grid fields as a relationship choice

texts:
I'm building a site for a legal firm and I'd like to have each practice area display the lawyers that handle that type of law.

For example, if you went to the page that dealt with business law, it would list the 2-3 attorneys that specialize in that area of law.

Currently, I have a channel that handles the list of legal staff. This channel has a channel entry that has a Grid field with three columns... name, headshot and bio.

On the entry pages for the "practice area" pages, I have a Wygwam field for content and a Relationship field I'd like to connect to the channel entry that contains the staff Grid field.

Right now, when I connect the relationship field to the channel entry (staff listing), all I see in the select box for the Relationship field is the name of the channel entry.

Is it possible to have a relationship that lists the individual grid rows?


texts: CP redirecting to invalid login URL after upgrade to 2.8.1

texts:
I've just run the installer to upgrade from 2.3.1 to 2.8.1

Now when I try to go to the Control Panel (admin.php), I am redirected to

admin.php?/cp/login?return=

Which gives the "Disallowed Key Characters" error.


texts: Cartthrob Error after Update 4.2 and EE 5

texts:
Updated EE 3 to EE 5 and Cartthrob to 4.2.

Now we get this error message

    Warning
A non-numeric value encountered
user/addons/cartthrob/cartthrob/core/Cartthrob_product.php, line 151

Severity: E_WARNING`

Any ideas where to fix this?

EDIT:

After the fix from Harsh Barach we have this error message left

Warning
A non-numeric value encountered
user/addons/cartthrob/libraries/Cartthrob_variables.php, line 625

Severity: E_WARNING

Appreciate some help here.


texts: Expresso Store: Pre-populate a cart with a members last order

texts: Basically I'm looking for a way to allow logged in users to re-order their last order. Has anyone ever tried this before in Expresso Store?


texts:
I have this code to see if member_order_comments is blank or not.

{if '{member_order_comments}' != ''}

It works fine, unless there is a ' in the middle of member_order_comments, in which case I get a php error. I understand why the php error. I don't know the right way to check for an empty string when the string can have any format.


texts:
I've added a Relationships field to a Channel, which allows the current entry to be related to another Channel that contains events, however events that are going to take place in the future do not appear in the list of events that are available to link to.

So I can't relate to future dated entries.

Is there any way around this?


texts:
Just a quick post to find out if something is possible or not within EE.

We have been looking at the easiest way of trying to make certain blocks of code within our sites global. What we are doing is setting up the right column  to show all the components that would be available across the site i.e. Twitter, Social Media, Relationships etc so the user can choose what they want in each page. Sort of similar way as Drupal works if you see where I am coming from.

I can set up checkboxes for Twitter and Social Media as they are not connected to channel fields but with Relationships you have to set up a channel field (generic-events or news-events etc) in each channel.

Is there anyway of not having to set up a channel field in every channel or maybe there is a module that is out there?

Hope this is clear enough.

Thanks in advance

Dave


texts:
Trying to have a style sheet only used when the user is not on the home screen.  This code in my head section should work, correct?

{if embed:loc != "home"}
<style> body {background:url(images/interface/header_bg_slice3.png) repeat-x,
url(images/interface/texture_bg.png) top left, repeat;}</style>
{/if}

here is the corresponding code I'm using in the page template:

{embed="embeds/html_header" page_title="About Us" loc="about-us"}

what am I missing?


texts: Changing languages in sessions_start hook

texts:
I am trying to implement a multilanguage site.

I have a hook handler for the hook sessions_start that is supposed to set the language for a page. Here are the lines of code from the hook to change the language that I have tried.

$this->EE->config->_global_vars['language'] = 'xxxxx';

$this->EE->config->_global_vars['default_language'] = 'xxxxx';

$this->user_lang = "xxxxx";

But none of them worked.

Any idea how to change the language in a hook?

P.S. Tried this

public function do_sessions_start($session_object)
{
 ....
 $session_object->userdata['language'] = "xxxxx";
}

But it seems it only works if the user is logged out. If logged in, the preference in the localization settings seems to overwrite.

We want to overwrite that.


texts: How to add/display/manage private videos that only a specific member group can access?

texts:
I've used DevDemon Channel Videos plugin successful in the past, but this time the videos will need to be "private" so I can't host them on Youtube or Vimeo. I'm trying to brainstorm the best way to set this section up so it's easy for the client to add videos. The videos need to only be accessible to a certain member group.

I know if I want to host the videos on the site server that I need like 3 different video file types in order to display the video on different browsers (how annoying!). This doesn't sound very client friendly. Not as friendly as using a video service like Youtube that automatically converts video and works in all browsers. Any ideas?


texts: Mystery {filedir_N} appearing in closing HTML tags

texts:
I have been tasked with upgrading EE for a new client. Upon viewing the content directly in the database - I am seeing, within each closing html tag {filedir_15}.

For example:

<h3>This is some content<{filedir_15}h3>

It would appear, that at some point - someone created a File Upload Directory with a "URL of Upload Directory" of /. Sigh.

It would APPEAR that EE has replaced all forward slashes in the content with {filedir_15}.

Has anyone seen this before? Is there any recourse? I'm afraid to simply delete the upload directory, because currently the forward facing site is not BROKEN because those forward slashes in the HTML are being added in (i'm assuming) through the standard replacement of the {filedir_15} variable. If I remove that reference, the code will likely simply render with the filedir variable in place.

Any help would be greatly appreciated.


texts: How to handle ampersands in URL segments

texts:
I'm using the channel entries search parameter to filter entries based on the value in a segment. However, I've just spotted that some of these segments contain ampersands, and these don't work correctly when filtering channel entries in this way. Is there a way around this?

Here's an example URL that I'm having issues with: mywebsite.com/regions/Yorkshire & Humberside

The spaces work fine as they are automatically converted into %20, like this: mywebsite.com/regions/Yorkshire%20&%20Humberside, which seems to work fine in EE. But the ampersand doesn't get converted into anything, so my segment is being ignored after the ampersand, so my filtering isn't working correctly.

I've tried changing the ampersand to %26, like this: mywebsite.com/regions/Yorkshire%20%26%20Humberside but that doesn't make any difference. I've also tried changing the ampersand to & amp; (I've added a space here as EESE keeps converting this into an ampersand if I write it out correctly) like this: mywebsite.com/regions/Yorkshire%20& amp;%20Humberside, but that just gave me the following error: The URI you submitted has disallowed characters.

Here's what my channel entries tag looks like:

{exp:channel:entries channel="location" status="open" limit="1000" dynamic="no" search:cf_location_region="{segment_2}"}

Can anyone think of any workarounds to this? I can't use categories due to the way in which I'm getting the data from an external data source. Thanks.


texts: Store that sells video packages with access

texts:
I have a client that wants to add video subscriptions to their offering. They want people to be able to download as well as view on-site. I browsed around for something I thought might work that was already in use, but didn't see anything out there.

Is there something I have missed or is this something that will need to be built from scratch? I just didn't want to re-invent the wheel.  ;)

They will be able to purchase individual videos as well as packages or bricks.

Thanks.


texts: Anyone know of a replacement for simplepagination?

texts:
On our site we've been using simplepagination (http://www.vayadesign.net/software/simple-pagination/release-notes) which lets us specify a page break by merely inserting {pagebreak} into the body of a post.

However this plug-in seems to have stopped working in the EE 2.7.x and the developer is no longer working on it.

Has anyone found an alertnative?


texts: Need to create a very simple grid/gallery/css "table" layout inside channel:entries... without plugins

texts:
Trying to make some quick fixes for a client, despite being more or less a total EE n00b (I typically do more home-rolled CMS stuff).

I'm trying to do a very simple grid layout, x rows by 3 columns, inside a channel entries block. This mostly works:

{exp:channel:entries [...]}
    <div style="{switch='float:left;|float:right;|overflow:auto;'} width:33%;">
        [...]
    </div>
{/exp:channel:entries}

except where count mod 3 is 2, in which case my last row of divs has one float left & the other float right, so a big ugly gap in the middle.

I understand I'd need a plugin to have the modulo operator that I would usually use to write logic a little smarter than this switch. I also understand there are some plugins designed to generate layouts like this for me. However, I'm in a situation where I have no choice but to work on a production site, and like I said, I'm an EE n00b, so I absolutely want to avoid plugins.

Anyone have a solution? Other than going all web 1.0 on it and using table cells instead of divs? :D

Thanks in advance.


texts:
Sometimes when I view my EE site on a local server, and less so on my live environments, I receive a 200 response which is looks like this:

{c1a3de9f993f7deec04da3d5075ac7f9948848712}

The next time I refresh the error goes away.

Does anyone have ideas of what causes this, or how to prevent it.

I use Stash, which may be related to the issue.


texts: 2.9.2 CP Session Timeout - Is there no solution?

texts:
I’ve found many threads both here and elsewhere on session timeout in the CP, however I’ve yet to see a solution that works.

One of my clients is complaining that the timeout is too short, and so far I haven’t been able to extend (preferably indefinitely) it.

I’ve also tried with both session and cookies, session only, cookies only.

Any help with this issue on 2.9.2?

Thanks!


texts:
I have found that when using the sample templates that come with the Exp-resso Store and Zoo Visitor add-ons on EE 2.7.2, I get the following PHP error:

A PHP Error was encountered
Severity: Notice
Message: Undefined property: EE::$typography
Filename: core/EE_Output.php
Line Number: 308
Fatal error: Call to a member function parse_type() on a non-object in [MYPATH_SYSTEM_PATH]/expressionengine/core/EE_Output.php on line 308

Commenting out line 308 of that file:
$data['content'] = $EE->typography->parse_type(stripslashes($data['content']), array('text_format' => 'xhtml'));

Then produces a handled error:

The model name you are loading is the name of a resource that is already being used: addons_model

The error is thrown from CodeIgniter's Loader on line 194:
if (isset($CI->$name))
{
    show_error('The model name you are loading is the name of a resource that is already being used: '.$name);
}

Commenting that line out makes everything run fine.
I've searched for uses of addons_model and the only reference I can see to it are either in third party addons (neither of which are enabled and neither of which are Store or Visitor), or EE's core. Obviously I don't want to be hacking at the core of EE or CI but this seems like an EE bug to me.
Has anybody else seen this problem or have a resolution?


texts: How do I create a static page with Structure?

texts:
Let me start off by saying I am completely new to EE (I have mostly worked with WP before). I have watched several tutorials, but I have yet to get the hang of it.

Can anyone advise me on where to start to make some static pages that are available through the top nav (like most websites). I have the Structure plugin downloaded. Here is my site as it stands: www.smplouisiana.org.

I'd like to make the site deeper than a 1 page, dynamic, channel. If someone could give me some starting points on this I would greatly appreciate it. I'll be happy to provide any other information requested.

Thanks so much!


texts: Highlight days with events on solspace calendar

texts:
I am using your the solspace calendar extension. I need to be able to highlight by adding a class to the td

I googled the request and I came across a few results but your archived  forum seems to be not working any more

Is there a tag I can use  {if event has results} etc

Thanks

{display_each_day}
 {day format="%j"}
 {/display_each_day}


texts:
Just downloaded EE. Looking to use it for a project. I'm confused on there default file structure, I've found where my template lives... I'm just confused on all the other junk in the way.

I would like to have just an assets folder etc. Below is what I have now. Is there a way I can reorganize this but still keep all the necessary EE files in place?


texts: Expresso Store, using quantity with if/else

texts:
Simple question, but I can't seem to find the documentation to do this properly.

Currently using the following: {order_qty} ITEMS IN BAG

How would I go about replacing "ITEMS" with "ITEM" when the quantity equals 1?


texts: Cartthrob MSM site adding products from site 1 in site 2 = £0.00

texts:
This one is causing me a headache and I am pulling my hair out! Anyone done this before?

I have MSM set up and want to keep site 1 managing all the products. I am then using categories to only show the desired products on each site.

• Products are showing up fine on both sites.
• On site 1, everything is working ok. Products are adding to cart.
• Site 2 adds the product to cart, but it has a zero value.

I have tried:
• If I hard code a price="" in, it works and adds that value to cart.
• I have set up cookies properly for each site and there is no cross contamination there.
• on_the_fly on site 2 has the same £0.00 effect - also the entry ID is being picked out
• Check to see if global prices are zero
• plus everything I can think of.

I am presuming that because I have no product mapping in site 2, that it is breaking there. Does anyone know of a way to maybe manipulate the db to show one channel in both sites?

Any guidance would be greatly appreciated as I am now bald.

Thanks in advance.


texts:
I have this code

{if {embed="common/.get-gender-url-title" chosen_gender_id="{exp:stash:get name='chosen_gender_id'}"} != 'male'}

I get this error

Parse error: syntax error, unexpected '{' in .../system/expressionengine/libraries/Functions.php(679) : eval()'d code on line 138

So I tried this

{if "{embed="common/.get-gender-url-title" chosen_gender_id="{exp:stash:get name='chosen_gender_id'}"}" != 'male'}

But I get this error

A PHP Error was encountered
Severity: User Warning
Message: Invalid EE Conditional Variable: {if "embed="common/.get-gender-url-title" chosen_gender_id="2"}
Filename: libraries/Functions.php
Line Number: 2761

What do I need to do to make these code block work?

UPDATE: This is the contents of the embed file

{exp:low_replace find="\r|\n|\t" replace="" regex="yes"}
    {exp:channel:entries
        channel="genders"
        disable="categories|category_fields|member_data|pagination"
        dynamic="no"
        orderby="entry_id"
        sort="asc"
    }
        {if '{embed:chosen_gender_id}' == entry_id}
            {url_title}
        {/if}
    {/exp:channel:entries}
{/exp:low_replace}


texts: Expresso Store UPS plugin in production environment

texts:
I'm attempting to implement the UPS plugin in a production environment and running into a problem. On both my local environment and a staging environment at another live domain, the plugin returns applicable and valid shipping methods + amounts as expected, but on the production domain, no methods are returned. The access key I'm using is approved for production access on all UPS API services except for those related to ground freight, which are unrelated. Any ideas what could be going on? Is there anywhere that the UPS plugin might be throwing any helpful errors?

EDIT:
Managed to pull out a PHP error for the request.

Fatal error: Uncaught exception 'Guzzle\Http\Exception\CurlException' with message '[curl] 59: Unknown cipher in list: TLSv1 [url] https://onlinetools.ups.com/ups.app/xml/Rate' in [PATH]/html/assets/third_party/store/vendor/guzzle/http/Guzzle/Http/Curl/CurlMulti.php:338 Stack trace: #0 [PATH]/html/assets/third_party/store/vendor/guzzle/http/Guzzle/Http/Curl/CurlMulti.php(279): Guzzle\Http\Curl\CurlMulti->isCurlException(Object(Guzzle\Http\Message\EntityEnclosingRequest), Object(Guzzle\Http\Curl\CurlHandle), Array) #1 [PATH]/html/assets/third_party/store/vendor/guzzle/http/Guzzle/Http/Curl/CurlMulti.php(244): Guzzle\Http\Curl\CurlMulti->processResponse(Object(Guzzle\Http\Message\EntityEnclosingRequest), Object(Guzzle\Http\Curl\CurlHandle), Array) #2 [PATH]/html/assets/third_party/store/vendor/guzzle/http/Guzzle/Http/Curl/CurlMulti.php(227): Guzzle\Http\Curl\CurlMulti->processMessages() #3 [PATH] in [PATH]/html/assets/third_party/store/vendor/guzzle/http/Guzzle/Http/Curl/CurlMulti.php on line 338


texts:
So, been using EE for some time but now want to push the limits and write some extensions and or plugin.

The extension needs to write the entry_id of the entry just published by any user OR the entry_id of the entry if posting a comment - to every members profile (or separate table).

When a member visits the entry, it would remove the entry_id from their list.

EG:

--Install "extension"

----Extension creates new table - exp_member_read_unread (User ID, list of entry_ids)

--User creates a new post or comments on entry

----On save, extension kicks in and records the entries entry_id to each members exp_members_read_unread column. (eg: entry_id column = 1,2,4,99,6)

Background: I'll be creating a server side read/unread visited/not visited since new stuff added - list for each member.

Second to this, I will need another plugin/extension to modify the users read/unread list once visited. That'll be another post I expect.

I can pound away at creating an SQL query but no solid idea on where to start or if an extension is the right approach. The docs are somehwat overwhelming to a N00b and cannot find simple starter examples - so looking to tap the brightest minds where possible :)


texts: Wygwam fields disappeared from entry screen

texts:
I am using Wygwam 3.2.1 and it has been working fine, but now the field titles are showing on the entry screens but the field and text that had been previously entered is not visible. (it is still showing on the actual rendered website) It almost looks like it's minimised on the entry screen.

I have tried to overwrite the themes and system folders for Wygwam and run the module update, but still no go.

Could anyone help??


texts: Solspace Freeform Pro Notification Hook Bug?

texts:
I am using the freeform_module_admin_notification hook and the documentation indicates that the field contents should be available:

$this->fields (array) - output data of fields by fieldname

But the fields array contains the 'Field Label' of the field keyed by the Field Name.Not the value entered in the form by the user.

For example I have defined a text field in the admin panel for the module,
 it is called 'name' and the Field Label is 'Name'
I have included it on a form:

<input type="text" id="name" name="name" class="input-1" />

But the value I get within the extension is 'Name' not the value entered in the field.

$fields['name'] has a value of Name

Anyone any idea if this is a bug or I am just doing something wrong?

Thanks

Andrew


texts: Magento/ExpressionEngine Integration - getting special characters

texts:
I have started integrating an EE cms into Magento using the following tutorial: http://www.magentocommerce.com/knowledge-base/entry/tutorial-integrating-3rd-party-cms-content-within-magento

It looks like there's EE content populating in Magento, however, it's outputting a ton of special characters. I attached a screenshot of the content area. Any idea what the issue is?


texts: Why is the word "random" treated differently in the template parser?

texts:
We are experiencing some PHP errors due to a "too large" regular expression that is taking place during template parsing in Template.php. We noticed it was only occurring on templates that load an entry based on URL title and the URL title contains the word "random". The regular expression that is failing can be found in Template.php in the early 800 lines:

// Strip the "chunk" from the template, replacing it with a unique marker.
if (stristr($raw_tag, 'random'))
{
    $this->template = preg_replace("|".preg_quote($chunk)."|s", 'M'.$this->loop_count.$this->marker, $this->template, 1);
}
else
{
    $this->template = str_replace($chunk, 'M'.$this->loop_count.$this->marker, $this->template);
}

We're not sure how to go about fixing this issue.


texts: Expresso Store - limit number of items in a cart

texts:
Is there any way to limit only one item in a cart overall?

I want to give the client the ability to add one thing and one thing only to the cart, effectively disabling anything else unless they remove the item they have in cart itself?

{exp:store:cart limit='1'} seems too easy...?


texts: Expresso Store Custom Message to customers per product

texts:
I need to provide a custom message when someone buys a specific product in their email confirmation.  I have a field in the product channel called {Message_to_Customer}
How do I include this field in the email customer email template?


texts: Include Issue Calling an External PHP Script from Expression Engine

texts:
I'm trying to call an external PHP script from an Expression Engine form response template that sends emails using Mandrill API.  The script I have works on regular PHP, I have tested it, but there is some sort of issue with the path for the includes.  I've double checked the absolute paths and they are correct.  Anyone see an issue?

require_once '/www/host/public_html/mandrill-api-php/Mandrill.php';
require_once '/www/host/public_html/mandrill-api-php/madrillSend.php';

$msg = "TEST MESSAGE";

$location = "{location}";
$ebrochure = "{ebrochure}";

$output = SendMandrill($location, $msg, $ebrochure);

echo $output;

=================================================

function SendMandrill($location, $msg, $ebrochure) {

    $mandrill = new Mandrill('xxx');
    $message = array(
        'html' => null,
        'text' => $msg,
        'subject' => $subj,
        'from_email' => 'leads@yourdomain.com',
        'from_name' => 'Leads Account',
        'to' => array('email' => 'jon@otherdomain.com', 'type' => 'to),
        'headers' => array('Reply-To' => 'leads@yourdomain.com'),
        'important' => false,
    );

    $async = false;
    $ip_pool = 'Main Pool';
    $send_at = '';
    $result = $mandrill->messages->send($message, $async, $ip_pool, $send_at);
    return $result;

}

==================================================

Warning: require_once(/www/host/public_html/mandrill-api-php/madrillSend.php) [function.require-once]: failed to open stream: No such file or directory in /www/host/public_html/system/core/core.functions.php(634) : eval()'d code on line 15

Fatal error: require_once() [function.require]: Failed opening required '/www/host/public_html/mandrill-api-php/madrillSend.php' (include_path='.:/usr/share/pear:/usr/share/phpz     ) in /www/host/public_html/system/core/core.functions.php(634) : eval()'d code on line 15


texts: Remove add_to_cart_form button after a fixed quantity of a certain product added to cart

texts:
I need to be able to limit how many of a certain product can be added to the cart.

I thought I could use {cart_items_info} with an {entry_id} parameter to limit to the product I'm targeting and then use a conditional based on {total_items}, e.g.

{exp:cartthrob:cart_items_info entry_id="XXX"}
{total_items} {!-- returns the total of other items in the cart too, not just the entry_id specified --}
{if total_items <=5} … {/if}
{/exp:cartthrob:cart_items_info}

but the tag seems to return the whole cart total items regardless of whether I use the entry_id param or not.

Is this a bug with cart_items_info or is there another way I should be going about this?


texts: Only the first upload directory shows in assets when used with wygwam

texts:
When using the main assets window, all of the available upload directories are available to choose from in the left hand navigation. (See Screenshot 1)

When using the popup generated by wygwam when adding a link or inserting an image only the first upload directory defined is available (See screenshot 2)

Is it possible to list all upload directories in the wygwam popup?

Thanks,

Colin


texts: How to properly implement Jquery within EE

texts:
So I've been using EE for some time now (since 1.6) and have been using 2.x for the past few months. I know that Ellis added the Jquery module, but I've seen absolutely no useful tutorials or information on how to properly use it.

For instance, I require a jquery slider. Before I simply got by with vanilla javascript but for this particular project that's simply not practical.

So how would I go about utilizing a jquery slider (from an external third party, like Craftyslide) within EE itself?

Here's what I have right now (which isn't working):

        <meta charset="UTF-8">

        <link href='http://fonts.googleapis.com/css?family=Muli' rel='stylesheet' type='text/css'>
        <link href='http://fonts.googleapis.com/css?family=Raleway:500' rel='stylesheet' type='text/css'>
        <link rel="stylesheet" type="text/css" href="{stylesheet='site/stratagon.css'}">
        <link rel="stylesheet" type="text/css" href="{stylesheet='site/style.css'}">
        <link href="{stylesheet='site/SpryTabbedPanels.css'}" rel="stylesheet" type="text/css">
        <link href="{stylesheet='site/craftyslide.css'}" rel="stylesheet" type="text/css" />

        <title>{site_name}</title>

....

             {if segment_1 == ''}

                {/if}

^This is a snippet, not the complete template obviously (it's pretty meaty). But it contains all the important bits concerning the slider.

I have the appropriate jquery linked and working, I have the js file on the server in the right location and the code is all right as its taken directly from the provided demo file. But nothing works whatsoever.

Definitely need help here.

Edit: May have gotten it working. Apparently it didn't like the jquery version I was linking too via Google.

It -may- be fully working with this:

Edit: Well it's getting closer. Images are displaying and transitions work. It will now progress to the second slide and then stop..


texts: Problems with Visitor 3.01 and The update form tag

texts:
On a simple page with no embeds, the registration tag works well and the form is displayed on the webpage:

  {exp:visitor:registration_form error_handling="inline" return='conta'}

                Email*: <input id="email" name="email" type="text" value="" />
                {error:email}

                Password*: <input id="password" name="membro_senha" type="password" value="" />
                {error:password}

                Confirm password*: <input id="password_confirm" name="membro_senha" type="password" value="" />

                Member firstname: <input id="mbr_membro_nome" name="mbr_membro_nome" type="text" value="" />
                {error:mbr_membro_nome}

                Member lastname: <input id="mbr_membro_sobrenome" name="mbr_membro_sobrenome" type="text" value="" />
                {error:mbr_membro_sobrenome}

                Gender (radiobuttons): {options:membro_sexo} <input id="membro_sexo" name="membro_sexo" type="radio" value="{option_value}" />{option_value} {/options:membro_sexo}

                Birthday (datepicker): <input id="membro_aniversario" maxlength="23" name="membro_aniversario" size="25" type="date" value="" />

                <input class="form-submit" type="submit" value="Register" />

    {/exp:visitor:registration_form}

But there is a problem with the update form tag, nothings is displayed, a blank page is displayed with absolutely no code, it seems EE doesn't recognise this tag:

{exp:visitor:update_form return='account/update_profile/success'}
        Member firstname: <input id="member_firstname" name="member_firstname" type="text" value="" />
        Member lastname: <input id="member_lastname" name="member_lastname" type="text" value="" />
        Gender (radiobuttons): {options:member_gender} <input id="member_gender" name="member_gender" type="radio" value="{option_value}" />{option_value} {/options:member_gender}
        Birthday (datepicker): <input id="member_birthday" maxlength="23" name="member_birthday" size="25" type="text" value="" />
        <input class="form-submit" type="submit" value="Update profile" />
{/exp:visitor:update_form}

Did-someone has already encountered this problem?
I tried under PHP 5.6, PHP 7.0, 7.1, the problem still the same. I tested on Wamp 3.0.9 on Windows 10, and on and on a physical Apache server. On local with wamp and in the Apache server, the exp:visitor:update_form  doesn't work at all. I tried with EE 3.5.10 and EE 3.5.7.

What could be the problem ??? My Visitor 3.0.1 installation is ok.

If Someone encountered the same problem, I will relate it to DevDemon.


texts: low events conditional to show event date that lasts for more than one day

texts:
I am using low events for my calendar.
I am trying to find conditional that will allow me to show both my event start date and event closing date when my event lasts more than one day and just the start date when the event is only on one day.

So in the code below showing the start and end_date means if the event is only on one day we see that date twice.I need an conditional to apply to the end_date code section which is based on the event being more than one day.

Thanks for any help

                <time itemprop="startDate" content="{event_date:start_date format='%Y-%m-%d'}" datetime="{event_date:start_date format='%Y-%m-%d'}">
                    {event_date:start_date format="%d"}
                    {event_date:start_date format="%F"}
                      {event_date:end_date format="%d" }
                     {event_date:end_date format="%F"}
                     </time>


texts: I have a client who would like an entire EE site to be archived and delivered to them in it's current state. What would be the appropriate steps to complete this?


texts: Solution to PHP error Undefined property: EE::$cache

texts:
We are now preparing to upgrade to Expression Engine 3.5.4 from EE version 2.5.5.

We are implementing up-gradation on local test server before implementing it on live server to make sure that we do not run into any issues.

Currently running structure Version 3.3.9 in EE 2.5.5 website is incompatible to EE version 3.5.4.

So we recently purchased structure version 4.1.12 from https://eeharbor.com/structure.

But when we  are upgrading( as per the instruction from http://buildwithstructure.com/documentation/upgrading/) structure version 3.3.9 to 4.1.12   from  EE2.5.5 website running in local test server  shows the PHP Error.(Screenshot Attached).

Actually it is upgraded to 4.1.12 as per the screenshot1. But when click on module settings (screenshot2) shows this error and the same error occurred in the front end when we try to access the index.php.

SERVER DETAILS

Test Sever- XAMPP

Server API -Apache 2.0 Handler.

Apache Version - Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30

PHP Version 5.6.30

EE Version - 2.5.5

Current structure Version 3.3.9

Upgrading to  structure Version 4.1.12

ERROR IN FRONT END -
A PHP Error was encountered
Severity: Notice
Message: Undefined property: EE::$cache
Filename: helpers/eeharbor_ee2_helper.php
Line Number: 229

Fatal error: Call to a member function get() on null in C:\xampp\htdocs\intranet-backup\system\expressionengine\third_party\structure\helpers\eeharbor_ee2_helper.php on line 229

ERROR IN BACK END-

A PHP Error was encountered
Severity: Notice
Message: Undefined property: Addons_modules::$cache
Filename: helpers/eeharbor_ee2_helper.php
Line Number: 229

Fatal error: Call to a member function get() on null in C:\xampp\htdocs\intranet-backup\system\expressionengine\third_party\structure\helpers\eeharbor_ee2_helper.php on line 229

Kindly send the solution as early as possible.

Thanks in advance.......

Shiny muhammed.


texts: Help with replacing image placeholders in matrix rows -- using Stash?

texts:
I have some legacy code that was using mx_jumper successfully. On updating to EE 2.11.2 the code no longer works.

The context is a Matrix field with rows including:

A text field called {item_desc}
An Assets field called {item_img}, containing 0, one or more images

Each Matrix row instance of {item_desc} may include placeholder text referring to an image in {item_img}. For example, in a placeholder such as {img_3_1}, 3 is the row count and 1 is the image count within the Assets field.

My legacy snippet, running within each Matrix row, has code including this…

{item_img}
    {exp:mx_jumper:put name="img_{row_count}_{count}"}

      {if caption}
{caption}
{/if}

    {/exp:mx_jumper:put}
{/item_img}

{exp:mx_jumper:out_global}
    {item_desc}
{/exp:mx_jumper:out_global}

But on EE 2.11.2 this no longer works.

I can't figure a way to use quotes or wrapping {} within the mx_jumper name parameter to get it to play ball.

But I'm sure there's a better way to do this using Stash.

I've had a look at Mark Croxton's Replacing matrix image slugs into another field but I can't figure how to adapt it for my above context.

I'm aware of inefficiencies within my old approach, but at this point I just need to get it working again without having to change content.

Any help much appreciated.

My above code has been updated to correct errors made when originally posted.


texts: In expression engine 2 how is content exported for translation?

texts:
I have some old EE2 sites and would like to figure out a good way to translate their content. Is it possible to export the content from the database so that it can be translated using a separate tool, then reimported?

Thanks,

Alejandro


texts: Weird issue with 404 redirect and no results

texts:
I'm having a strange issue (possible bug?) with the following (simplified) code

{if segment_1 == ""}

//Do Stuff//

{if:else}

{exp:channel:entries limit="1" status="Open" url_title="{segment_1}" dynamic="no" parse="inward"}

    {!-- If no results then paramater must be a category for product listing --}
    {if no_results}
        {exp:gwcode_categories cat_url_title="{segment_1}" parse="inward"}

            //Do Stuff//

            {if no_results}
                {redirect="404"}
            {/if}

        {/exp:gwcode_categories}

    {/if}

    ///Do Stuff///

{/exp:channel:entries}

{/if}

The problem is with the 404 redirect. If I set 404 page to none in the backend it correctly redirects to a default page saying: "Status: 404 Page Not Found"

However when I change the 404 setting in the backend to show a custom template, it redirects to the 404 page, regardless of whether a category is found by gwcategories or not, ie no results always ends up being true, or is not correctly parsed.

I've tried a number of permutations of the no results conditional, eg: using

{if {results_total} != 1}{redirect="404"}{/if},

which doesn't work either. Even though testing the output of {results_total} outputs 1, it still redirects.

Anyone got any ideas?


texts: Wygwam 'read more' option without new paragraph tags

texts:
I am using the wygwam add on, and clicking the "read more" icon to create an excerpt. However, whenever I do this, it creates a paragraph tag around the text before the read more and starts a paragraph tag for the text after the read more. For instance, when I click view source, I see this:

some text

some more text

I can view source and remove that /p before and p after, and that works fine. But if I wanted to stick to WYSIWYG, how do I eliminate those paragraph breaks. What I essentially want is a solid block of text without paragraph breaks when the extended portion is showing.


texts: SSL certificate on https://secure.domainname.com

texts:
my problem: If I attempt to access a https template through expression engine, I get a blank screen:

https://secure.domainname.com/anyTemplateGroup/anyTemplate

Solved by host (finally found this on their website, their support desk never mentioned it!)

  https://secure.domainname.com
  You can use a different prefix, eg "www." or "store."

Solution: I will get host to change prefix to www.

Thanks everyone!

Just in case anyone comes across this problem, here are some details of what was going on:

FACT 1: The EE site url is as follows, and I can access all my templates like a normal site.

http://www.domainname.com

FACT 2: I have an SSL certificate installed and my host provides access using https and a prefix, but 'secure' is not a subdomain, it just points to files in the same path as http://www.domainname.com:

https://secure.domainname.com

FACT 3: Within the site I have a few forms that I'd like to make secure using SSL such as:

http://www.domainname.com/login

FACT 4: But with my host the above URL needs to be:

https://secure.domainname.com/login

FACT 5: Im using Focus Lab, LLC Master Config, so my config file reads as:

$protocol = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://';
$base_url = $protocol . $_SERVER['HTTP_HOST'];
$env_config['base_url'] = $base_url . '/';
$env_config['site_url'] = $env_config['base_url'];

FACT/CLUE 6: If I disable EE's htaccess in the root off the www folder, I can launch a test file located at www/test/phpinfo.php as, but this is not what I want, as this is not an EE page, just something created in dreamweaver:

https://secure.domainname.com.au/test/phpinfo.php

FACT/CLUE 7: With htaccess enabled again I cannot access the above file (I get blank screen), but I can access it via:

http://www.domainname.com/test/phpinfo.php

POSSIBLE CAUSE OF ISSUE I looked at changing values in the config and htaccess, but nothing has given me access to the EE template via https. The main problem appears to be with the prefix secure Other users of EE + https do not appear to have the 'secure' prefix as part of URL, but someone must know how to overcome.

Thanks, Lloyd


texts: Error in Control Panel Channel Entries Pages: "EE.grid is not a function"

texts:
Using EE 5.2.1

I've been working with a custom module for the last few days and haven't been in the control panel so I'm not sure when this problem started but I think it has to do with me making a mistake in another module as I was working on this custom module.

The Problem: When I'm in the entry page in the control panel I'm getting a JS error that says "EE.grid is not a function".

Here's the console:

Or

  Uncaught TypeError: EE.grid is not a function
      at HTMLDocument. (admin.php?/cp/publish/edit/entry/13:890)
      at l (jquery.js?v=1552599112:3)
      at Object.fireWith [as resolveWith] (jquery.js?v=1552599112:3)
      at Function.ready (jquery.js?v=1552599112:3)
      at HTMLDocument.s (jquery.js?v=1552599112:2)

Here's the error:

That script line is saying:

Failed to load resource: the server responded with a status of 406 (Not Acceptable)

This hasn't been a problem before so I'm assume I've done something with a module somewhere to screw it up. When I was setting up my new module I was working off several core modules as examples and it's possible I did something with one of them.

Also, I can successfully save/edit entries but things related to files seem messed up. For instance, anything related to a file has a perpetual loading function running:

And if I try to add a new row

(since the JS isn't loading) I just get the hash link and sent back to the top of the page:

I haven't gotten very far in this project and I can save the code I have done so it wouldn't be the end of the world to start over, but if it's possible to just reload some core module or something that could possibly fix this that would obviously be better.


texts: How to disallow characters in URL titles

texts:
We recently ran into an issue with some of our auto-generated URL title on channel entries. It seems that EE will happily allow characters like periods in URL titles. For example if I had a tile like U.S. Tops in EE Installs then the generated URL title is u.s.-tops-in-ee-installs. The periods can become an issue in some cases. Specifically they seem to throw off the EE Session Tracker Array, causing it to be NULL which is what caused our problem. So my questions are:

Why does EE even allow these kinds of characters in URL titles?
Is there a setting or way to define a list of disallowed characters to be stripped from URL titles?


texts:
I am trying to build out a list of categories that I need to include in the nav as well as other sections of a site. I had it done with embeds and {exp:category} loops, but I would rather be able to pull what I need using stash if possible.

I want to create two separate lists. One will be the locations (or parent categories. The second will be the category children. I need to be able to relate the category children. This is why I have the kid's list being created using the  parent category name.

I am getting what I need by doing the following:

{!-- LOCATIONS --}
{exp:stash:set_list name="locations" parse_tags="yes"}
    {exp:channel:categories
        category_group='2'
        style='linear'
        parent_only='yes'
    }
        {stash:location}{category_name}{/stash:location}
        {stash:url}{category_url_title}{/stash:url}
    {/exp:channel:categories}
{/exp:stash:set_list}

{!-- LOCATIONS KIDS --}
{exp:stash:parse}
    {exp:channel:categories
        category_group='2'
        style='linear'
    }
        {if parent_id == '0'}
            {if count > '1'}
                {/exp:stash:set_list}
            {/if}
            {exp:stash:set_list name="{category_name}_kids" parse_tags="yes"}
        {if:else}
            {if count == total_results}
                    {stash:kid}{category_name}{/stash:kid}
                    {stash:kid_url}{category_url_title}{/stash:kid_url}
                {/exp:stash:set_list}
            {if:else}
                {stash:kid}{category_name}{/stash:kid}
                {stash:kid_url}{category_url_title}{/stash:kid_url}
            {/if}
        {/if}
    {/exp:channel:categories}
{/exp:stash:parse}

I can pull the locations manually, and I can pull the kids manually. What I NEED to be able to do is pull them dynamically by relationship. I tried this, but it doesn't render the kids.

{exp:stash:get_list name='locations'}

        {location}

            {exp:stash:get_list name='{location}_kids'}

                    {kid}

            {/exp:stash:get_list}

{/exp:stash:get_list}

Is there something I am missing or can I not build out a dynamic list call?


texts: I've just started using Expression Engine 3, but it looks like my favourite "Structure" module isn't compatible with EE3. Does anyone know of a decent alternative that I can use?


texts: Enter prices tax-inclusive, and reverse engineer the tax?

texts:
I have a client who very much want to be able to enter the prices in Exp-resso Store tax-inclusive, and then calculate how much the tax will be on the order confirmation page.

I know it's not built in, but has anyone done anything like this, or do anyone have any ideas if it'd be plausible in any way?

I'd prefer to not have to hard code any values, I want the client to be able to update tax rates by product groups.

Any advice would be appreciated!


texts: Promo code not working on mobile device for Expresso Store

texts:
I've set up a basic promo code for all users to be able to use once. The promo code works fine on a desktop browser. When I try the promo code on a mobile browser, I can't access the 2nd page of my checkout process. After I've entered the promo code and selected continue, the same page reloads. I don't get any errors or anything. If I remove the promo code and select continue, the 2nd page loads fine.

I'm using EE 2.8.1 and Expresso Store 2.5.1


texts:
Hi trying to make an API call that triggers a postmaster update parcel

looked at this post

I'm called my plugin from at jquery ajax call , all working fine can update the entry with the db class

$updateQuery = ee()->db->
            update('exp_channel_data',
                array(
                    'field_id_85' => "tester"
                ),
                array(
                    'field_id_73' => $user['userdata'][0]['field_id_73']
                )
        );

But I would like to trigger postmaster (entry updated)

$this->EE->api_channel_entries->save_entry($data, (int)$user['userdata'][0]['channel_id'], (int)$user['userdata'][0]['entry_id']);

Like descibed in the post link above - but getting an error - do I need to login or is there another way to trigger a postmaster parcel ?

any help would be appreciated :)


texts:
I am trying to figure out how to split channel entries evenly into 3 columns.

The result should look as follows:

    Entry 1
    Entry 2
    Entry 3
    Entry 4

    Entry 5
    Entry 6
    Entry 7
    Entry 8

    Entry 9
    Entry 10

I tried the following using modulus but it gave me 3 entries per column and keeps creating more columns.

{if count == 1 || count % 3 == 1}

{/if}
{title}

{if count == total_results || count % 3 == 0}

{/if}

I'm using EE3 so none of the existing plugins will work.

Any help is appreciated.


texts:
I'm seeing a strange behavior in the Customer Reports screen where none of the customer names are showing. We're seeing the customer totals and also the ability to export to CSV, and even more interesting, the pagination; none of the customers are listed in the table though. The rest of the CT reports are all working properly, but this specific report is showing blank.

Using EE 2.9.2 and CT 2.61


texts: Sending freeform submissions to multiple recipients

texts:
We need to send to three email addresses when a particular select option is selected. I've tried setting the value of that field (called recipient_email) to foo@bar.com,baz@bar.com and setting recipients=yes and recipient_limit=3 on the form, but the form just comes through to the default admin notification email.

Any suggestions? This in on EE 2.6.1 and Freeform 4.0.12.

Here's a cut down version of the template code:

{exp:freeform:form
collection="General Contact Form"
return="{embed:return}/category/submitted"
form:id="form-general-contact"
form:class="validate no-print"
required="first_name|surname|email|recipient_email|user_message"
recipients="yes"
recipient_limit="3"
}

<fieldset>

        Enquiry Type *

            <select id="sel-general-type" name="recipient_email">
                <option value="foo@bar.com,baz@bar.com">Foo</option>
                <option value="bar@foo.com">Bar</option>
            </select>


texts: How do I limit data returned by Solspace Freeform User Notification Template?

texts:
I am running Solspace Freeform 4.x for a fairly lengthy volunteer signup form. I would like to provide a record back to the user for those items they sign up up for. However by using the {all_form_fields_string} in the notification template I get all fields returned in the email notification whether it has a value associated with it or not. Is there a way to return only those fields that have a value? If so how?

Thanks.


texts:
I'm working on a site that's going to list events. These events will have the following data:

Title
Type
Date
Location

I'd like to give the user the ability to filter by any one (or combination) of these fields.

I'd also like to give the user the ability to order the remaining results by any one of these fields.

Any thoughts on a good solution to do this? I'm thinking there must be a good plugin that does this?

Any thoughts are appreciated!


texts:
Having an issue logging back into the control panel after having been logged out. When attempting to login, I am returned to the login screen with no error messages or other notices. The only way I am able to log in is using an Incognito browser window.

I am using EE v2.5.2 with MSM installed.

UPDATE: I know this typically resolves itself after some time, but is there a known workaround so clients don't have to wait hours before being able to edit their content? Is this just an EE bug?


texts:
When the status is set on the form as "Pending" does this mean that it will not go to the email for that form until Approved? Im new to this plugin.

Also When I submit the form it goes through but says URI invalid?
Any suggestions on what this could be? Thank you!


texts: Error when creating new channel: Unknown field ChannelField.group_id

texts:
I have this nagging issue on a site and I can't track down the cause..

When I attempt to create a new channel, I get: Unknown field ChannelField.group_id

This site has been updated over time and never got an error while updating.. now it's at 5.3.1.

I have compared the tables with a fresh install and cant find any missing fields...

Anyone else had this?

ee/EllisLab/ExpressionEngine/Service/Model/Query/Select.php:776

Stack Trace: Please include when reporting this error

#0 ee/EllisLab/ExpressionEngine/Service/Model/Query/Select.php(633): EllisLab\ExpressionEngine\Service\Model\Query\Select->translateProperty('group_id')
#1 ee/EllisLab/ExpressionEngine/Service/Model/Query/Select.php(620): EllisLab\ExpressionEngine\Service\Model\Query\Select->applyFilter(Object(EllisLab\ExpressionEngine\Service\Database\Query), Array)
#2 ee/EllisLab/ExpressionEngine/Service/Model/Query/Select.php(116): EllisLab\ExpressionEngine\Service\Model\Query\Select->applyFilters(Object(EllisLab\ExpressionEngine\Service\Database\Query), Array)
#3 ee/EllisLab/ExpressionEngine/Service/Model/Query/Select.php(48): EllisLab\ExpressionEngine\Service\Model\Query\Select->buildQuery()
#4 ee/EllisLab/ExpressionEngine/Service/Model/DataStore.php(282): EllisLab\ExpressionEngine\Service\Model\Query\Select->run()
#5 ee/EllisLab/ExpressionEngine/Service/Model/DataStore.php(228): EllisLab\ExpressionEngine\Service\Model\DataStore->runQuery('Select', Object(EllisLab\ExpressionEngine\Service\Model\Query\Builder))
#6 ee/EllisLab/ExpressionEngine/Service/Model/Query/Builder.php(144): EllisLab\ExpressionEngine\Service\Model\DataStore->selectQuery(Object(EllisLab\ExpressionEngine\Service\Model\Query\Builder))
#7 ee/EllisLab/ExpressionEngine/Service/Model/Query/Builder.php(63): EllisLab\ExpressionEngine\Service\Model\Query\Builder->fetch()
#8 user/addons/calendar/ft.calendar.php(494): EllisLab\ExpressionEngine\Service\Model\Query\Builder->all()
#9 ee/legacy/libraries/api/Api_channel_fields.php(410): Calendar_ft->display_settings(Array)
#10 ee/EllisLab/ExpressionEngine/Model/Content/FieldFacade.php(226): Api_channel_fields->apply('display_setting...', Array)
#11 ee/EllisLab/ExpressionEngine/Model/Content/FieldModel.php(72): EllisLab\ExpressionEngine\Model\Content\FieldFacade->getSettingsForm()
#12 ee/EllisLab/ExpressionEngine/Controller/Channels/Channels.php(320): EllisLab\ExpressionEngine\Model\Content\FieldModel->getSettingsForm()
#13 ee/EllisLab/ExpressionEngine/Controller/Channels/Channels.php(166): EllisLab\ExpressionEngine\Controller\Channels\Channels->form()
#14 [internal function]: EllisLab\ExpressionEngine\Controller\Channels\Channels->create()
#15 ee/EllisLab/ExpressionEngine/Core/Core.php(241): call_user_func_array(Array, Array)
#16 ee/EllisLab/ExpressionEngine/Core/Core.php(110): EllisLab\ExpressionEngine\Core\Core->runController(Array)
#17 ee/EllisLab/ExpressionEngine/Boot/boot.php(151): EllisLab\ExpressionEngine\Core\Core->run(Object(EllisLab\ExpressionEngine\Core\Request))
#18 html/beheer.php(157): require_once('...')
#18 html/beheer.php(157): require_once('...')


texts: How do I pass a variable to mySQL without using the query module?

texts:
I can echo the current entry_id but when I try to pass that variable to a mySQL statement, it doesn't work.

{exp:channel:entries channel="test" entry_id="20"}
  <?php
  $entry_id = '{entry_id}';
  echo $entry_id; // returns 20

  $sql_query = "SELECT col1 FROM table WHERE entry_id = $entry_id"; // doesn't work
  $sql_query = "SELECT col1 FROM table WHERE entry_id = 20"; // this works

  // rest of code
  ?>
{/exp:channel:entries}


texts:
Has anyone seen this error while going to browse their EE forum.  I just downloaded the latest EE Forum 3.1.19 and I am running EE 2.9.3.  The issue is this message.

Fatal error: Call to undefined method EE_Messages::can_send_pm() in /home/mysite/public_html/system/expressionengine/modules/forum/mod.forum.php on line 1215

Is this a known bug? How to work around it.


texts: Running EE from two locations: A Dev and Live environment

texts:
Due to tight security restrictions we can't host the admin.php file on our live server. As a result I need to be able to run EE from two locations: One from a dev server (where we include the admin.php file for access to the EE panel) and another from our live server, where we will not include the admin.php file. We only need to serve content there, not manipulate it.

Both the live and dev servers have access to the same DB.

Has anyone done something like this before? Is it possible? If so, what are the details for making this work?


texts: Produce a list of entries that have no relationship parents

texts:
I've got an EE 2.6 site that has pages (no duh) as entries, and some of those pages have children (i.e. via a relationship field).

Now, what I'd like to do is generate a list of the pages that do not have parents. But I don't see any way to do this.  I would prefer native related entries, but would be fine with using Playa... but it doesn't seem to offer this functionality either. Am I stuck with using a query?

Thanks!


texts:
Is there a way within core EE or a third party add-on that can link members and channels?

Am building functionality where a member can upload personal files that will be stored as channel entries. The files will be accessed from the member home area by another member type.

Any help appreciated on how to tackle!


texts: Matrix field within safecracker form : new row opening blank page

texts:
EE 2.5.2
Matrix 2.5.5

When you hit the add new row + button in the Matrix field within a safecracker form it opens a new blank page. The new row is added successfully but I can't work out why it is opening a blank page as well.


texts:
I want to include certain field values in my URL's first segment. Since the first segment is the template file's name, I'm not sure how to do this. For example, say I have a template products. If the template is showing a "new" product, I'd like like the first segment to be new-products. And if the product is "old", then old-products. Assume there is no different in the output of the new and old products; I just wan the URL to be different. I don't want to do something like this products/new/ because I "think" (I don't know for a fact) that is not as effective in SEO terms.

Is there a way to make segment one dynamic?


texts: Cookie Plus reading cookies on first page load

texts:
I'm using Mo'Variables and Cookie Plus to read the current query string on a url. The cookie value doesn't update until a second page load occurs. I can see the cookie value is set correctly in the browser - but Cookie Plus just isn't outputting the current value. Here is the code I'm using:

{if query_string != ""}
{exp:cookie_plus:set name="cookie" value="{query_string}" seconds="86400" parse="inward"}
{/if}

and {exp:cookie_plus:get name="cookie"} to read the cookie.

Is there any workaround to instantly output the current cookie value? Using EE 2.8 currently.


texts: Is there an alternative to using file manager for this scenario?

texts:
Here is the scenario:

I want to store files (PDFs, DOCX, etc.) using Amazon S3 or similar
I want members to login to my site and download these files via a url
The link needs to be scrambled ie. www.mydomain.com/fdsfjksdksdasd
The site runs on HTTPs / SSL
The URLs can NOT be shareable i.e. members must be logged in (so deny
hotlinks)
There are multiple files per entry

I currently have a version of this using the file manager, the files stored behind the root and Intoeetive's Protected Links to manage the urls (which prevents hotlinking). The problem I have is that the file manager is awkward for the users of the site.

Ideally, the users would be able to search for a document in Amazon S3 or similar and attach it to an entry.

At the moment, we're FTPing documents to the server, running the sync in EE file manager 9slow when you have a lot of files), then attaching the file to the entry (we're using Matrix to handle multiple files) and a few other admin tasks to satisfy Protected Links. It is also difficult when we want to move files into different folders (as that breaks the links).

I've looked at Assets, as the interface for the users will be easy to adopt, but has limitations.

Is there an alternative to using file manager that would handle what I am looking for a bit more out of the box?

Note: I understand this is more of a subjective question, but I was pointed here form Pixel & Tonic and I also posted on the forums but got no responses.


texts:
The problem I'm having is that I can't log in to the control panel. When I enter my login details, the page just refreshes. No error message, just a page reload. It does this repeatedly, so can't get in at all at the moment. This happened after upgrading from 2.5.5 to 2.6.1, but also happens on a fresh install of 2.6.1, so I don't think it's down to my particular installation.

I have been getting this error intermittently on EE 2.5.5. Today I upgraded to 2.6.1, which meant I couldn’t login 100% of the time, so I’ve rolled back to 2.5.5 for the time being until this is fixed

EE Version: 2.6.1
Browsers tried: Chrome, Firefox, Safari, all most recent versions
Development Environment: localhost apache 2.2

Any ideas? I've tried changing the session & cache variables, clearing the cache, running in incognito mode... No idea what's going on.

Thanks

Update - Top of my config file looks like this:

$config['app_version'] = "261";
$config['install_lock'] = "";
$config['license_number'] = '';
$config['debug'] = "0";
$config['cp_url'] = 'http://local.sitename.com/admin.php';
$config['doc_url'] = "http://ellislab.com/expressionengine/user-guide/";
$config['is_system_on'] = "y";
$config['allow_extensions'] = 'y';
$config['site_label'] = '****';
$config['cookie_prefix'] = 'sitename';
$config['cookie_domain'] = '';
$config['cookie_path'] = '';

I am using an NSM config bootstrap file though, let me know if any of those settings could be breaking it too...


texts:
On a Website i use two category groups: Wine (White, Red, Rose etc) and Food (Burgers, Fish, Seafood etc)
First page has a dropdown with categories of Wine
<form>
    <select>
    <option value="">Wine</option>
    {exp:channel:categories
        channel="product"
        category_group="1"
        show_empty="no"
        style="linear"}
        <option value="{path='pages/vintyp'}">{category_name}</option>
    {/exp:channel:categories}
    </select>
</form>

Linking to second page with categories of Food
<form>
    <select>
    <option value="">Food</option>
    {exp:channel:categories
        channel="product"
        category_group="2"
        show_empty="no"
        style="linear"}
        <option value="{path='pages/vintyp'}">{category_name}</option>
    {/exp:channel:categories}
    </select>
</form>

{exp:channel:entries channel="product" orderby="post_date" sort="desc"}
{/exp:channel:entries}

This will show all the used categories from the category group, but how do i filter out to only show those that correspond the selection of the previous category group?
If select “White” on the first page only “Seafood and Fish” should be in the dropdown on the second page If i select “Red” on the first page only “Burgers” should be in the dropdown.
Any help would be appreciated.


texts: Email Notifcations, characters replaced by equals sign

texts:
I've an issue with email notifications sent from the server in that the content has some characters replace by '=' if the email client used is Microsoft based, e.g. Outlook, Hotmail. The following approaches have not helped solve the issue

Setting newline in the tools_communicate.php file

$this->email->set_newline( "\r\n" );

updating config.php to include

$config['email_newline'] = "\r\n";

defining different charsets in the head meta tags

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

Any suggestions appreciated,
Thanks!


texts:
I am looking to create a list page which will output all entries for a single year, but have them grouped by month. So for example i will have:

January
   entry A
   entry b
   entry c
February
   entry d
   entry e
   entry f

etc... The perfect solution would be like Lows Alphabet, but working on dates as opposed to starting letters... http://devot-ee.com/add-ons/low-alphabet

I cannot find any addons, or default functionality for this - and want to avoid running 12 entry queries! Therefore, i either have to code an addon, or php in the template to store and then output them how i want...

Does anyone know of an existing, elegant solution?
Or can give me guidance here - it would be very much appreciated.


texts: Exception Caught: 1615 Prepared statement needs to be re-prepared

texts:
Running ExpressionEngine 5.1.3, php 7.2 on Dreamhost shared server.

This error has brought our site down repeatedly for hours at a time over the last few days. We cannot access the site backend or any front end pages - just see the error. We made no recent configuration changes to the site. The complete error is like so:

Exception Caught
SQLSTATE[HY000]: General error: 1615 Prepared statement needs to be re-prepared: SELECT LOWER(module_name) AS module_name, module_version, has_cp_backend, module_id FROM (`exp_modules`)

mysqli_connection.php:117

Thanks for any suggestions!


texts: Images: wrong permissions and owner is 99 - no thumbnail

texts:
All of my images have no thumbnail preview in the CP.

All images uploaded are automatically set to:
666
Owner: 99
Group: 99

I can't change it through ftp or the the Media Temple file manager

EE: v 2.92
Media Temple DV server

I do have assets installed but I'm not sure if that matters


texts:
I'm building a member/ecommerce site with CartThrob and Zoo Visitor.

I have a multi-page checkout.
From looking around for solutions on how to do this, people have said to use the Zoo Visitor update profile tags on the shipping/billing pages, and use hidden ZV fields inside the Cartthrob checkout tag on the payment page.

This works fine except for a few cases:

If you want guests to checkout, this approach won't work.
Calculating tax and/or shipping won't work until submitting the final checkout form.

I've solved the first issue by conditionally showing a CT save_member_info form if they are logged out and a ZV profile form if they are logged in.

I can probably save the address to session by posting to CT's save_member_info using AJAX when submitting a ZV form, but that feels clunky.

Cartthrob usually calculates tax/shipping by the member data in the session. It doesn't get saved to session when using ZV forms.

Is it possible to map the ZV fields to the CT session data when saving the ZV profile form? I'm sure you need to use an extension but that's beyond me. Does anything like this already exist?

Thanks


texts: Conditional for empty relationships field

texts: I’ve run into an issue where I need to conditionally show content if an EE relationship field is empty. However the {if relationship-field} conditional is not working. Nor is any variation of that such as {if relationship-field == ""} or {if "{relationship-field}" == ""} or {if "{relationship-field}" != ""}. No dice on any of these.


texts:
I'm having trouble making an Expresso Store multi-step checkout process work via AJAX. I have the checkout steps working as individual pages, and have attempted to AJAXify the submission of each step via the following pattern of jQuery (replacing "form" below with the correct checkout form):

$('form').on('submit', function(e) {

e.preventDefault();
$.ajax({
    type: "POST",
    url: $(this).attr('action'),
    data: $(this).serialize(),
    success: function(data) { console.log(data); }
});

});

This AJAX query correctly submits the form variables of the checkout step, however the "data" variable returned is a JavaScript object containing all checkout variables (correctly updated).

What I want is for "data" to return the HTML of the next checkout step page, like what happens when pressing the "Next" button of the un-AJAXified form.

I think the issue is that the AJAX above doesn't tell the server it was the Next button (with name="next" attribute) pressed, and the server bases its response on which form button was pressed… but I'm how sure how I would tell the server which button was "pressed" via AJAX.

Any ideas how I can get this working?


texts:
Does the inbuilt search search through the relationship fields?

I am using simple_form


texts:
How can i find or get an PHP Error Log? Not server-side, only on Expression Engine Level.

On my server i can see an error log but to fix a problem with assets, i need a EE-side php error log.


texts: Additional parameters while using Freeform Pro Fieldtype

texts:
I'm trying to use the Freefrom Pro Fieldtype in a channel to select the correct form within an entry. I'd like to add form:class="well" and inline_errors="yes" for all the forms rendered with that Freeform fieldtype short name in the channel:entries tag.

How can I achieve this?


texts:
I could really use some help here. Might have promised something that cannot be done.

I am creating a simple doc repository for a client. The idea is for each of their "jobs", they create a unique asset folder. They upload a bunch of assets to it and then create a "review" entry that shows particular assets to be reviewed by their client. Sometimes these are html emails, or banner images, or even videos they create.

Anyway, each asset needs a "view" link {url} and then a "download link". The download is always a zip file which might contain more files than just the {url} file. My current code is:

{asset_files}

{title}

{if desc}{desc}
{/if}
view | download

{/asset_files}

How would you go about making the download link point to the zip asset without actually making a new entire asset entry out of it?

I am at a loss here and could really use some ideas.

Thanks

Mike

Hi again,

I changed the links to:

view | download

But this requires the zip file be named exactly the same as the asset and also, I am not including the zip files in the entry itself. It works but is really funky and not really an ideal solution.


texts:
EE 2.10.1
Uploading a pdf with file field in Grid renames the file field but not the file when using non-standard characters, resulting in this error when trying to edit the entry:

  An Error Was Encountered
  File /www/…/test%2B.jpg does not exist.

ex. uploading test+.pdf gets renamed to test%2B.pdf in grid but is still called test+.pdf on the server

Am i missing a setting somewhere?


texts: Is there a way to completely remove the breadcrumbs in the Control Panel?

texts: I'm trying to make the Control Panel as stripped down as possible for clients who get confused easily. Is there a way to completely remove the breadcrumbs from the Control Panel? I see various add-ons to manage breadcrumbs, but I don't see a way to completely remove them. I'm using Zoo Admin for my custom menu, but one of my clients gets confused when they see the breadcrumbs below the menu.


texts: Testing Wygwam 2.7 with a Youtube video uploaded via the Embed Media button, but the embed needs to be removed when an excerpt of the entry appears on the home page. Can this be done with Wygwam natively?


texts:
I have a channel that uses a Bloqs fieldtype in ee3. One of the defined blocks has a native relationship in it. I can output all the content from the related entries without a problem, but was wondering if anyone else had a problem with the total_results variable.

{exp:channel:entries}
{bloqs_field}
  {block_type}
    total: {relationfield:total_results}
    {relationfield}
        {relationfield:title} ({relationfield:count})
    {/relationfield}
  {/block_type}
{/bloqs_field}
{/exp:channel:entries}

Everything above works as expected - except the output of {relationfield:total_results} which is always "1" regardless of the number of items selected > 0.

Has anyone else run across this problem?


texts:
I can't seem to figure out why the no_results tag isn't working for the Who's Attending page I'm working on. I have one page that lists all of the current events. You can click on any of the event titles to bring up a page that lists all attendees (entries with approved status). This is working very well but whenever you click on an event that doesn't contain entries with an approved status the no_results tag doesn't work. Below is the code I'm using:

You have selected {last_segment}

Please find below the list of attendees for this event:

   {exp:channel:entries channel="event_registration" status="Approved"
    limit="300" search:event="{last_segment}"}

{registrant}

   {if no_results}
No one has registered for this event yet.
{/if}
   {/exp:channel:entries}

I have tried the adding 'require_entry="yes"', adding dynamic="yes" and dynamic="no" to no avail. I've also tried using the three methods below:

{if total_results == "0"}No one has registered for this event yet.{/if}
{if count < 1}
No one has registered for this event yet.
{/if}
{if count == 0}
No one has registered for this event yet.
{/if}

I'm still unable to get the no results message to display. It should also be noted that if I add a {count} tag to my template it will output the total number of entries if there is at least one entry. The {count} tag doesn't output 0 or anything at all if there aren't any entries. Any tips or suggestions for getting this working would be greatly appreciated, Thanks!


texts:
I have deployed pagination to one of templates which should to display only 4 products on a page. Index for that template looks like:

{embed="includes/.header-product" body_color="#FFFFFF"}

        {if segment_3}{embed="includes/.nav-main"}{product}{/if}
        {if segment_2 && segment_3==""}{embed="includes/.nav-main-subcategory"}{subcategory}{/if}
        {if segment_1 && segment_2==""}{embed="includes/.nav-main"}{category}{/if}

{embed="includes/.footer"}

Switchee version of code above:

{embed="includes/.header-product" body_color="#FFFFFF"}

    {!-- Category view --}
    {if segment_1 && segment_2==""}{embed="includes/.nav-main"}{category}
        {!-- /Category view --}
    {if:else}

        {exp:switchee variable="{segment_3}" parse="inward"}

        {case value="#^P(\d+)$#|''"}
                {embed="includes/.nav-main-subcategory"}{embed="furniture/.subcategory"}
        {/case}

        {!-- Subcategory view --}
            {case value=""}
                {embed="includes/.nav-main-subcategory"}{embed="furniture/.subcategory"}
            {/case}
            {!-- /Subcategory view --}

            {!-- Single product view --}
            {case default="Yes"}
                {embed="includes/.nav-main"}{product}
            {/case}
            {!-- /Single product view --}

        {/exp:switchee}
    {/if}

{embed="includes/.footer"}

and subcategory snippet code looks like:

    {exp:channel:entries channel="products" category="{segment_2_category_id}" orderby="title" sort="asc" limit="4" paginate="bottom" dynamic="no"}

        {if no_results}

No entries yet.

            {/if}

        {product_image limit="1"}

        {/product_image}

{title}

    {switch='|||

'}

    {paginate}

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

    {/paginate}

    {/exp:channel:entries}

First page is OK but other pages comes blank. I think I have done something wrong within index or template structure for furniture group but no clue what can be wrong.

Thanks


texts: Freemember reset password email link missing hash/session

texts:
We have an EE 2.5.5 installation using Freemember 2.2.2.

On the password reset, the email sent is missing the hash/session gobblety goop. Looks like this:

http://domain.com/home/password_reset

instead of this

http://domain.com/home/password_reset/sir9vcplhnex

We have several sites with this functioning perfectly, so I'm sort of at a loss.


texts: Allow members to set their own localization preferences? NO - date shows hour

texts:
After setting Allow members to set their own localization preferences? NO in Member > Preferences the member_birthday in a zoo visitors edit form shows hours:

BEFORE: 30/11/2000
AFTER: 30/11/2000 00:00

I'm using excelent low nice date to format the date in the form like this:
{exp:low_nice_date date="{member_birthday}" localize="no" format="%d/%m/%Y"}
(even tried localize="yes")

but 00:00 are still there?

Any help on this?


texts: Store: Member has ability to download order information

texts:
Question has nothing to do with the product download tag.

How do I enable a member to download their order information without access to the CP? Just like the report generation in the Store CP, but I want to do this on a member level on a per order basis on the front-end of the website when the member is logged in.


texts:
It's probably a dumb question, but it doesn't matter what browser I open my podcast rss feed in it doesn't show any content. The feed validates in a validator, but I just want to be able to see the code without have to go to a validator to get it.

The link is: http://dev.ncctk.com/feeds/lynden-sermon-audio


texts: Expresso Store: Grab the shipping rule description based on chosen shipping method

texts:
In Store, when you set up a Shipping Rule, there's a Description field that our client would like to take advantage of. However, I'm not seeing a tag (or some other way) to display the text that is in that description field.

Screenshot:

Basically, we want to show the contents of the Description field based on what the user has chosen for their Shipping Method.

Not sure how to do that. Could use another set of eyes on this. Thanks!

Using Store 2.5.1, EE 2.10.1.


texts: Super Search - {super_search_keywords} Not Parsing

texts:
I have an instance where {super_search_keywords} wont parse. Everything else Parses fine and checking the documentation it is possible to use the tag outside of {super_search:results} - anyone have any ideas?

{super_search_total_results} Results found for {super_search_keywords}
{exp:super_search:results limit="50"}
    {title}
{/exp:super_search:results}


texts: Admin two site with Multiple Site Manager

texts:
Is possible to publish an entry belong to domain1 in domain2 simply adding a channel field to that entry?
Something like:

Publish on

domain1
domain2
both domain1 and domain2

I short can I have only one entries' database and choose where to publish them?

Thanks


texts: LayerSlider Responsive Slider for ExpressionEngine

texts: Does exists something similar to LayerSlider Responsive WordPress Slider Plugi for EE?


texts: Moved website to another server, now the File Uploader (assets plugin) doesn't work.

texts:
I'm new to ExpressionEngine. I just moved a ExpressionEngine website to another server, got everything to work except for the images uploaded with assets (file uploader manager)... I checked the HTML and the images doesn't actually gets put into the website. It's just empty. I've tried to make all permission to 777 but nothing works. I can see the images if I go to the direct URL but the images never gets insertet into the website...

Anyone has a idea?


texts:
this is the first time i’m using grid lite (i need it for a gallery)

I’ve the following code

          {!-- Grid Lite --}
          {exp:channel:entries channel="galleria"}
            {immagini}

            {/immagini}
          {/exp:channel:entries}

where {immagini} is the grid lite’s fieldtype , and {immagine} is the grid lite’s column
but the content not shown

I’m doing something wrong? Thanks


texts: jQuery tabs and each tab as a content post

texts:
I have a site built on EE2 where one page has used jQuery tabs (example: http://childrensmedgroup.com/index.php/meet_us/). Main problem is with updating that page because within WYSIWYG editor user can see only first tab.

My idea it to make a separate channel for that particular page and create content post for each tab so user can populate it in a very easy way and I will just add EE tags to display each tab/post on that page template.

Does it will work? Or maybe there are extensions which will provide similar functionality?

Thanks


texts: After upgrading an EE1 site to EE2, should you delete any unused database tables?

texts: For example, exp_weblog_ or exp_trackbacks?  Any others? Is this something that you normally do?


texts: Freeform Multiselect populated by relationship field

texts:
I am using the latest version of Freeform and trying to populate a multi-select with a relationship field of entries. Here is the code, at the moment it is only outputting the first result and not looping properly. Has anyone tried this before and can therefore advise?

{related_documents_for_request}
            <select id="{selected_documents:title}" name="{selected_documents:title}" multiple="multiple">
                  {options}
                      <option value="{related_documents_for_request:selected_documents:title}"{selected}>{related_documents_for_request:selected_documents:title}</option>
                  {/options}
             </select>
{/related_documents_for_request}


texts: Has conditional logic changed in ExpressionEngine 2.5.5?

texts:
Although I can no longer find the reference on the ExpressionEngine forums, I was advised several years ago by Ellislab staff to use:

{if my_custom_field != ""}{/if}

rather than:

{if my_custom_field}{/if}

This has worked well up until now.

After upgrading to ExpressionEngine 2.5.5 from 2.5.2, some of my conditional logic now does not work as expected.

Specifically, results that used to correctly return nothing, now return '0' (zero).

For example, either of the following would return nothing in 2.5.2:

{if my_custom_field != ""}
    {my_custom_field}
{/if}
{if "{my_custom_field}" != ""}
    {my_custom_field}
{/if}

However, now they return '0', which obviously breaks things.

In order to return nothing in ExpressionEngine 2.5.5, I need to do this instead:

{if my_custom_field}
    {my_custom_field}
{/if}

If this behaviour is the new norm, I will need to change all my templates, which will suck.

Can anyone confirm this behaviour on their 2.5.5 install, and know if this is the new norm?

Thanks.


texts:
i was recently informed that a user who has access to the CP cannot edit any entries that were created by a Super Admin past a certain date.  The site is running EE 2.11.3.

In testing, they are able to create entries but any time they edit they get an error that "You are not authorized to access this page."  If I move them to the Super Admin group, they are fine.  I created a new group based on the Super Admin group (with all permissions selected and access to all modules) and moved the user to that group, and they get the error again.  This happen on all channels.

Any thoughts?

** EDIT **
Here is a screenshot of the settings for this group.


texts: ExpressionEngine Expresso Store Super Slow Filtering Categories

texts:
Good Morning,

I'm curious on how we can speed up the search results.  This website is very slow on the filtering of the category results, but the individual entry works great.

Any thoughts on what would be slowing the results?

Cache
http://www.heartlandclassics.com/breeds-available-now/section/category/soft-coated-wheaten-terrier

Without Cache
http://www.heartlandclassics.com/breeds-available-now/section-ee-no-cache/category/soft-coated-wheaten-terrier

{exp:channel:entries channel="store" limit="6" dynamic="yes" paginate="both"}
    {exp:store:product entry_id="{entry_id}" form_class="form-horizontal"}
        {if total_stock > 0}
              <input type="text" value="1" size="3" name="item_qty" style="visibility:hidden; display:none;">
                {modifiers}
                    <select name="{modifier_input_name}" style="visibility:hidden; display:none;">
                    {modifier_options}
                          <option value="{option_id}" title="{if price_mod_val} ({price_mod}) {/if}" {if option_first} selected {/if}>
                          {option_name}
                          {if price_mod_val} ({price_mod}) {/if}
                          </option>
                    {/modifier_options}
                    </select>
                {/modifiers}

                {exp:channel_images:images entry_id="{entry_id}" limit="1" dynamic="yes"}

                {/exp:channel_images:images}

{title}

{price}

                  [ Read More ]

                  <input id="related-item-{entry_id}" type="submit" style="display:none;" name="submit" value="1">
                  <input type="hidden" name="XID" value="{XID_HASH}">

                  [ Add to Cart ]

              {paginate}

                {pagination_links}

                    {first_page}

First Page

                    {/first_page}

                    {previous_page}

Previous Page

                    {/previous_page}

                    {page}

{pagination_page_number}

                    {/page}

                    {next_page}

Next Page

                    {/next_page}

                    {last_page}

Last Page

                    {/last_page}

                {/pagination_links}

              {/paginate}

        {/if}
    {/exp:store:product}
{/exp:channel:entries}