texts: {related_entries} does not work after upgraded from v2.2.2 to 2.11.5

texts:
{if related_blog_post_1 != "0"}

If you enjoyed this post, you may also like:

                    {related_entries id="related_blog_post_1"}

{title}

                    {/related_entries}
                    {if related_blog_post_2 != "0"}
                    {related_entries id="related_blog_post_2"}

{title}

                    {/related_entries}
                    {/if}
                    {if related_blog_post_3 != "0"}
                    {related_entries id="related_blog_post_3"}

{title}

                    {/related_entries}
                    {/if}
                    {if related_blog_post_4 != "0"}
                    {related_entries id="related_blog_post_4"}

{title}

                    {/related_entries}
                    {/if}
                    {if related_blog_post_5 != "0"}
                    {related_entries id="related_blog_post_5"}

{title}

                    {/related_entries}
                    {/if}

{/if}

{if series_blog_post_1 != "0"}

Series Contents:

                {related_entries id="series_blog_post_1"}

{title}

                {/related_entries}
                {if series_blog_post_2 != "0"}
                {related_entries id="series_blog_post_2"}

{title}

                {/related_entries}
                {/if}
                {if series_blog_post_3 != "0"}
                {related_entries id="series_blog_post_3"}

{title}

                {/related_entries}
                {/if}
                {if series_blog_post_4 != "0"}
                {related_entries id="series_blog_post_4"}

{title}

                {/related_entries}
                {/if}
                {if series_blog_post_5 != "0"}
                {related_entries id="series_blog_post_5"}

{title}

                {/related_entries}
                {/if}

            {/if}

Could some please help me fix this code? Or point me to the right reference for this? This {related_entries} does not work anymore. I have tried to look at 2.11.5 docs but have not found anything that could helped me yet.


texts:
I'm in the process of building my 1st extension (oi!) and I need to find a hook that allows me to fire off a routine when a member visits a single entry page.

I have listing pages and single view pages - I only need the routine to fire when viewing single entry pages NOT listing pages.

The list of hooks is extensive but I cannot seem to find one that fits.

The broad picture is:

I have an extension that relies on hooks to update the DB when ever a member adds a reply or adds a new entry. It gets a list of active users in the last 2 weeks, adds their member_id to Solspace 'Favorites' table in the DB in a separate collection.

This is working as expected as I can call the 'fav' module to mark entries on a list view page as 'unread'.

What I now need to do is when a user visits an entry, remove their member_id from the 'fav' table/collection. Someone adds a new comment/entry, it re-adds their member_id and marks the entry as 'unread' once again.

I believe the best approach is to make a module that I can call in the template code within the entry template to remove the user from the 'fav' DB table.


texts: How can I get rid of "call to a member function result() on non-object"

texts:
I'm seeing the following when I try to publish or edit a pages entry :
Fatal error: Call to a member function result_array() on a non-object in ...taxonomy/libraries/Ttree.php on line 1004

    foreach($query->result_array() as $row)

I'm getting a similar error about non-objects (whaaat) when I try to use Field Editor:
Fatal error: Call to a member function result() on a non-object in ...field_editor/mcp.field_editor.php on line 70

line 70 (and context) is as follows:

    foreach ($query->result() as $row)
    {
        $this->EE->table->add_row(
            anchor(BASE.AMP.'C=addons_modules'.AMP.'M=show_module_cp'.AMP.'module=field_editor'.AMP.'method=edit'.AMP.'group_id='.$row->group_id, $row->group_name).sprintf(' (%d)', $row->count),
            anchor(BASE.AMP.'C=addons_modules'.AMP.'M=show_module_cp'.AMP.'module=field_editor'.AMP.'method=delete_confirm'.AMP.'group_id='.$row->group_id, lang('delete')),
            anchor(BASE.AMP.'C=addons_modules'.AMP.'M=show_module_cp'.AMP.'module=field_editor'.AMP.'method=export'.AMP.'group_id='.$row->group_id, lang('field_editor_export')),
            anchor(BASE.AMP.'C=addons_modules'.AMP.'M=show_module_cp'.AMP.'module=field_editor'.AMP.'method=import_upload'.AMP.'group_id='.$row->group_id, lang('field_editor_import')),
            anchor(BASE.AMP.'C=addons_modules'.AMP.'M=show_module_cp'.AMP.'module=field_editor'.AMP.'method=clone_group'.AMP.'group_id='.$row->group_id, lang('field_editor_clone'))
        );
    }

And then again when I try to change fields natively:
Fatal error: Call to a member function num_rows() on a non-object in ...system/expressionengine/views/admin/field_group_management.php on line 28

        if ($field_groups->num_rows() > 0)
        {
            foreach ($field_groups->result() as $field)
            {
                $this->table->add_row(
                    'group_id.'">'.$field->group_name.' ('.$field->count.')',
                    'group_id.'">'.lang('rename').'',
                    'group_id.'">'.lang('delete').''
                );
            }
        }

I can't reproduce on my staging server or locally so I've got a hunch that this is something server-specific, I just have no. clue. what it could be. Googling around, it looks like this sort of error (non-object) is pretty common so that at least gives me some hope.

Anyone have ideas on how I could resolve or could at least point me in the right direction? Trying to debug on a production server isn't ideal so ideally I'd like to have a starting point.

using v2.5.5 of EE
taxonomy v2.3.4


texts: MX google maps loads insecurely over https

texts:
MX Google Maps does not display in a channel form when the page is loaded over HTTPS. I get the error:

The page at 'https://www.fakesite.com/members/manage-listing/474' was loaded over HTTPS, but requested an insecure resource 'http://maps.google.com/maps/api/js?sensor=false'. This request has been blocked; the content must be served over HTTPS.

It also stops all of my other JavaScript from running


texts:
I am currently using freeform version 4.0.6 in EE version 2.5.1

Some of the emails that were send are completely empty (no message body)

Am I the only one that is having this problem? Is there a solution for this problem?


texts: Tags not parsing - showing on front-end like {slideshow}{/slideshow},{path},{slide_show_links},{file} etc

texts:
I am totally new to expression engine.  I inherited a project that is built with expression engine because the last developer disappeared.  The site was working fine for the last two years so i didn't have to really touch it.

A couple of weeks ago, the site started showing problems.  My slideshow galleries and some images aren't showing up anymore.  I can even see tags like {slideshow}{/slideshow},{path},{slide_show_links},{file} etc.. showing right in the webpage.  These tags are supposed to be replaced php code to do things like printing the html mark up of galleries, or printing urls etc...

An example of this problem can be seen at http://hop.ca .


texts: Dynamically setting case value with switchee

texts:
I'm wanting to dynamically populate a switchee value, I've tried using an embed, but it seems the parse order means this won't work so I'm looking for aternative ideas, this is the code we've tried:

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

    {case value="{embed='site/_school-list'}"}
        {redirect="/contribute/school/{segment_1}"}
    {/case}

    {case default="yes"}
        Otherwise go here
    {/case}

{/exp:switchee}

Basically I want to automatically pull out all of the entries from the school channel and get their {url_title}, then check it against {segment_1}.

The code in the embed is:

{exp:channel:entries channel="schools" dynamic="no" limit="99999"}{url_title}|{/exp:channel:entries}

Which is outputting correctly when tested.

Any ideas?


texts: Anyone know of a way to toggle entries or fake it?

texts:
As in there are 4 default entries - call them 1, 2, 3 & 4 they are in fact defined by custom fields - and people can post in one of them making it ‘active’ with some predefined info (via Channel Form).

If this info is not there they see the default entry 1. If Mr Jones posts something to channel field 1 then it shows in the results (1A if you will) and 1 is either closed, filtered or otherwise hidden.

Can’t be done by conditionals (afaik and have tested) and set up precludes actually editing 1. It must continue to exist and reappear if 1A gets deleted by the author.

Any suggestions? Am I missing something obvious?


texts: Pixel & Tonic Field Pack 2.x :all_options and outputting when a checkbox is not selected

texts:
I have a template on a site being updated from EE 2.5.5 to EE 2.7.3 and during the update I've upgraded to the latest Field Pack 2.1.1.

My template includes use of a Field Pack - Checkboxes field and relies on the :all_options capability available in Field Pack 1.

Consequently it now fails because I belatedly see there is no mention of :all_options in the docs for Field Pack 2!

http://docs.pixelandtonic.com/fieldpack/fieldtypes/checkboxes/tags.html

I'm using my checkbox series to output a table so it's critical I can output something for each option regardless of whether it is selected or not.

For example, here's some of the code I had that was working before…

{grade_ff:all_options}
  {if '{selected}' == ""}
  {if:else}Yes	{/if}
{/grade_ff:all_options}

So unless I've missed something I now have to have a line of code for each of my options explicitly…

Yes{if:else}">{/if}
Yes{if:else}">{/if}

Is that right?


texts:
I'm trying to get the current "row_id" of a Playa entry, but it doesn't seem to want to output.

I'm prefixing it because there was another plugin that was conflicting with the {count} and {total_results} variables.

So my code looks like this:

{cf_course_content var_prefix="q" limit="1" offset="{course_progress_id}"}
     {q:count}
     {q:total_results}
     {q:row_id}
     {q:cf_question_type}
{/cf_course_content}

But when this is rendered, it looks like this:

1
15
{row_id}
Drag & Drop

Why would it output like that? When all the other prefixed variables are working. I've pulled this outside of any other plugins / modules just incase anything was clashing and it still does this.

I've also been doing a bit of digging, and i'm not sure if "row_id" is what I need to output anyway.

I'm trying to get the "Row Position" inside the Playa field. But I believe the "row_id" is a unique reference from the DB? Not Unique to that particular entry.

Is there any way to output this, or get around the "row_id" problem?


texts: When using subfolder site is not indexing properly

texts:
Now i indexed my site for testing purpose inside a sub folder like www.example.com/test but it is not working properly. But when i change the url like www.example.com/test/index.php it is working.

This is my .htaccess file

        RewriteEngine On

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

Thanks in advance.


texts: Load EE Field Type in Third Party Module

texts:
I am trying to load wygwam field type into a custom module, on my localhost the following works:

require_once(APPPATH . 'fieldtypes/EE_FieldType.php');
require_once(PATH_THIRD.'wygwam/ft.wygwam.php');
$wyg = new Wygwam_ft();

however when i upload to my server i get the following error:

require_once(../system/expressionengine/fieldtypes/EE_fieldType.php): failed to open stream: No such file or directory

I dont know why thats happening. Is there a better way to load the wygwam Field type? or is there any other way to do this?


texts: SQL help - clear all the values of a specific field

texts:
We ran a batch import to pull in several hundred entries, but some fields got imported incorrectly. For example, all the websites imported as "link", when they should have been blank.

Can someone help me with a command to run in the SQL manager that will clear all the values of a custom field?

EE2.10.1, Channel ID 9, Field ID 60

Thanks!


texts: Problem with pagination links and conditional

texts:
I have a single template I'm using to display a list of audio files.  When the user clicks on the audio they want to listen to, it uses a conditional statement to display the single entry in the same template.  I'm using:

{if segment_2 == ""} then show list of files, and paginate
{if segment_2 != ""} then show single entry

The problem occurs when you click the pagination link to go to the next page in the list and EE adds a segment 2 to the url (i.e. P2, P3, etc.).  Because of that, the conditional is met, and rather than displaying the next page in the list, it displays the next single entry.  I'm looking for a way around this.


texts:
I'm trying to export a CSV of my members using Solspace User.

It works fine, except that when I open the CSV in Excel, it actually shows the quotes around the values. I know that obviously my template has quotes around each value, but some addresses have commas in them - without the quotes, it throws off the CSV.

My template looks like this: (I've added whitespace for readability).

{exp:ifelse parse="inward"}
  {if group_id == 1 OR group_id == 6}

    {exp:http_header content_type="text/csv"}

    email, screen_name, address,
    {exp:user:users limit="100000"}
      "{email}", "{screen_name}", "{address}",
    {/exp:user:users}

  {if:else}
    {redirect="404"}
  {/if}
{/exp:ifelse}

Has anyone tried to do this sort of thing? Am I missing something obvious?

When opening in Excel, it looks like:

email             | screen_name  | address
------------------+--------------+------------------------
name@domain.com   | "John Smith" | "123 Street, Somewhere"

When using Finder's Quick Look, it looks just fine (no quotes).

I'm not sure if this is a general CSV issue, an issue with EE or an Excel thing.
Any help would be appreciated.

Edit
Actually, the first column doesn't show the quotes, but the rest do. Which I really don't understand.


texts:
I've got an old EE1 site that I'm doing some minor updates to but I'm finding that it is very aggressively caching embedded templates.

This means that when I make a change it doesn't appear on the site until I clear the Template (page) Cache in the control panel.

Is there a setting somewhere to restrict this behaviour?


texts:
Just wondering if anyone else has seen lots of error messages appearing at the top of their pages (when logged in) after upgrading to 2.8.1? (I jumped a few versions with this upgrade, so it may affect other versions, too.) Errors such as

A PHP Error was encountered
Severity: User Warning
Message: Invalid EE Conditional Variable: {if ""y"}
Filename: libraries/Functions.php
Line Number: 2640

and

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

and this one multiple times per page:

A PHP Error was encountered
Severity: Notice
Message: Undefined variable: category_name
Filename: helpers/segment_helper.php
Line Number: 98

I don't know what to do about all this, so any suggestions appreciated.


texts: Freeform 3.x and an array causing blank lines in email template

texts:
I'm using freeform 3.x and I have a series of input fields that are like such:

<input type="text" name="order[]" title="Unique Title 1" />
<input type="text" name="order[]" title="Unique Title 2" />
<input type="text" name="order[]" title="Unique Title 3" />
<input type="text" name="order[]" title="Unique Title 4" />
<input type="text" name="order[]" title="Unique Title 5" />

Essentially, this is a long list which is published by a channel, thus why I'm using "order[]" and not creating individual form names in Freeform. I have a bit of jQuery that will grab the title and append it to the value which gives me more information in my email notification along with user input.

However, for every input field that I'm using the email template notification via freeform puts a space in there. Not every input field is filled out. I have a long list. So my email notification looks something like below, which is no good as my list will be hundreds of items, meaning hundreds of empty spaces. Can freeform be modded somehow to ignore line-breaks or anything to prevent this from happening?

Salmon 1 Available - 56

Gummi Fish preorder - 55

shrimp preorder - 65


texts:
I'm building an event registration website at the moment and I'm looking for a way to allow the site owners to modify the content of emails sent by Freeform (v3 free version).

As I'm using Low Variables, I tried just adding the Low var to into the notification template and I also tried embedding a template.

I have considered using MX Notify Control but while that allows for customisation of the email templates, it's limiting in others.


texts: 404 error on all templates but homepage after removing index.php

texts:
I am trying to remove the index.php from my URL, and have gone through the necessary steps, and used the code below in my .htaccess file. When I navigate to the homepage, it works, but clicking on any links, or typing their url in manually results in a 404. Just for poops and giggles, I added the index.php into the url of one of the sub-pages, and it started working fine. I've also tried adding the / before index.php in the code below to no avail, and I've tried with and without the ? after index.php. Any help you can provide would be amazing. Also, my site is in a subdirectory, ie, example.com/site-directory/index.php.

<IfModule mod_rewrite.c>
RewriteEngine On

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


texts: Zoo Visitor - Update profile with new fields

texts:
EE 2.9.2 & Zoo Visitor 1.3.3

I have 20 fields, 10 of which are required for users to fill out when registering. I want the users to be able to then complete the other 10 when they have been registered. The {exp:zoo_visitor:update_form} tag does not seem to work for these fields, I assume because they do not have any data stored in them.

So, I have to use another {exp:zoo_visitor:registration_form}, although submitting that complains that the original 10 fields filled out during registration has not been completed. What's the best way to approach this? Use the current setup and have the required fields hidden?


texts: Firemail delivered html newsletter showing source code to end client

texts: I have firemail installed on the ee with the mailgun to deliver the newsltters. When i send the newsletters using the email templates, all the emails shows the html source code instead of rendering it.


texts: Low search to implement multiple channel entries

texts:
I have a problem in retrieving data from different channel field.

i want to search all enteries of news to check if its matched. Please tell me how i Can do that. I am writing my code below.

Below code is working for a single channel entry and not for multiple

{exp:low_search:form
     collection="news"
     search_mode="any"
     result_page="news/view"}

dqwdqq

     <input type="text" class="search-query input-small" name="search:title"  id="search:title" >
{/exp:low_search:form}

{exp:low_search:results
    query="{segment_3}"
    limit="10"}
    {if count ==  1}
{/if}

{title}

    {if count == total_results}
{/if}
    {if no_results}Geen resultaten gevonden{/if}

{/exp:low_search:results}


texts: If {there is no image} OR {if there is no expert} then use a certain image

texts:
Here in this code I am finding a feed expert and then producing his avatar. Conditions are needed to control the conditions of this avatar output. So this is what must happen:

firstly if there is a expert in the channel entry then use his avatar
BUT (here is where the if statement comes in)
if you choose an expert who does not have an image in the images channel then show this default image OR if you DO NOT choose an expert then also show the default image.

How do I do this? See code:

    {if "{feed_expert:total_children}" > 0}
    {exp:playa:children field="feed_expert" entry_id="{entry_id}"}

    {exp:channel_images:images entry_id="{entry_id}" field_id="185" limit="1"}
    {if image:no_images}{/if}

{/exp:channel_images:images}

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


texts: Remove inline CSS and size attributes from user-inputted iframe?

texts:
I have a channel field that prompts a content editor to copy and paste a Google maps embed code for a specific destination. Using either default EE tag behavior, or jQuery, I'd like to remove certain attributes from the default <iframe> markup-- specifically, the "height", "width" and "style" attributes that Google includes by default in the embed code.

I'm not sure if there's a way to do this via EE, but I tried the following line of jQuery to at least remove the style attribute to no avail:

 $('div.item iframe').removeAttr('style');

Anybody have any ideas as to how I might achieve this? I'm currently overriding the attributes via my stylesheet using important! declarations, but I'd prefer to remove them from the markup entirely, if possible.

Thanks for any insight here.


texts: Adding a CP bar to the front end for logged-in members

texts: is there a way to add the top horizontal CP bar that appears in the back end to the front end as well, for logged in members to see? WordPress and Drupal both have this, trying to figure out how to do it in EE. The idea is to provide a shortcut the the backend and to the Content menu.


texts: Supersearch conditionals on custom fields

texts:
I have a supersearch form with checkbox filters for a custom field. The results are working great and the url looks like this: /search&amenities=dryer&&dvd&&fireplace/

Now I'm trying to set the conditionals to make the active checkbox checked. Following the docs here's what I've tried:

<input
type="checkbox"
name="amenities[]"
value="dvd&&"
{if super_search_amenities_dvd}checked="checked"{/if}/>

The && at the end of the value are made to chain more than one filter (dryer&&dvd). I also tried

{if super_search_amenities_dvd&&}checked="checked"{/if}

but it doesn't work. Any ideas? How can I make this conditional work?

Thanks in advance!
S-


texts: Can Grid be used as a Price Modifier in Cartthrob? I have problems mapping price and inventory

texts:
I am trying to use the Grid fieldtype as a price modifier for Cartthrob. Documentation is lacking on this, it only describes Matrix. I have set it up like Matrix, but obviously change tags to Grid tags.

I am also using the exp:cartthrob:multi_add_to_cart_form so we can add multiple options and quantities at the same time.

I can add multiple product options to the cart, but cannot get the price or the inventory as per the documentation for Matrix.

My product_options fieldnames are options_value, price, inventory, and I have mapped the inventory and price to my product_options field in Cartthrob, but adding to the cart states "Product is out of stock" for all options. If I remove the inventory mapping, I can add them to the cart but then the price is 0.

So it seems I cannot map price and inventory to a grid field, like the docs say you can for Matrix. Does anyone know if this is possible?

Here is exp:cartthrob:multi_add_to_cart_form form:

{exp:cartthrob:multi_add_to_cart_form return="cart" }

{product_options}
<input type="hidden" name="entry_id[{product_options:count}]" value="{entry_id}">
<input type="hidden" name="item_options[{product_options:count}][product_options]" value="{product_options:option_value}">
<input type="text" name="quantity[{product_options:count}]" value="{product_options:count}">
{/product_options}

<input type="submit" value="Add To Cart" />

{/exp:cartthrob:multi_add_to_cart_form}

We are using the latest CT version 2.5 and EE 2.7.2

Thanks


texts: Playa lists own entry as relationship 100 times

texts:
I have some template code that used to work:

{exp:playa:children field="blog_related_entry" limit="5"}
{if count == 1}

Related Entries

{/if}

{title}

{if count == total_results}

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

I'm not sure when it broke, but with EE 2.8.1, Playa 4.5.2 this lists out the parent entry as a relationship 5 times, or 100 if there is no limit set. (I upgraded from Playa 4.1 in an attempt to solve the problem, I can't upgrade EE due to other issues.)

Any idea what's happening here?

--
Andris (accepted answer below) found it was a combination of needing to set var_prefix, entry_id and change the EE template tags - namely enclose the IF conditional fields in quotes and curly braces:

{exp:playa:children field="blog_related_entry" var_prefix="related_blog" entry_id="{entry_id}"}
{if "{related_blog:blog_published}"=="Yes"}
{if "{related_blog:count}" == 1}

Related Entries

{/if}

{related_blog:title}

{if "{related_blog:count}" == "{related_blog:total_results}"}

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


texts: How to load CodeIgniter language file into ExpressionEngine add-on?

texts:
in a custom add-on I am writing I am using Upload library. I cannot use $this->EE->load->library function because I'm rewriting some code, so I'm creating instance using this code:

if ( ! class_exists('CI_Upload'))
{
    require_once BASEPATH.'libraries/Upload.php';
}

if ( ! class_exists('EE_Upload'))
{
    require_once APPPATH.'libraries/EE_Upload.php';
    $UP = new EE_Upload;
}

The error messages that Upload class may return are stored in /codeigniter/system/language/english/upload_lang.php file (so in CodeIgniter folder, not in ExpressionEngine folder)

I added $this->EE->lang->loadfile('upload'); in the beginning of the function that - but that does not help, I still see error message keys, not their language values.

Any help on how to load CodeIgniter's language file into add-on?


texts: Low search not paginating results correctly

texts:
I am getting the correct search results when a user searches for a keyword. I have set the pagination limit to 12 and the first 12 searches results are shown as expected.

If a search has more than 12 results pagination is included. Although when I click a pagination link the next results page is not displaying the correct results. It is displaying 100+ results as the results of the search, regardless.

Below I have included my code:

Search Form

{exp:low_search:form collection="test-collection" search_mode="keywords" result_page="search/index"}

  <input placeholder="Search" type="text" name="keywords">
   <input type="submit">
{/exp:low_search:form}

Search Results

{exp:low_search:results
     query="{segment_2}"
     channel="product_swatches"
     paginate="bottom"
     paginate_base="search"
     limit="12"
}

                        {title}

    {paginate}

            {if previous_page}
                &laquo; Previous
            {/if}

            {pagination_links}
                {page}

                        {pagination_page_number}

                {/page}
            {/pagination_links}

            {if next_page}
                Next &raquo;
            {/if}

  {/paginate}
  {if low_search_no_results}

There were no results for this search

  {/if}
{/exp:low_search:results}


texts: Using item option as the search parameter of an orders tag

texts:
I have a Matrix field set up as a CartThrob options field and would like to list orders based on whether a certain option was part of the order.

Something like this:

    {exp:channel:entries
      channel='orders'
      disable="categories|category_fields|member_data|pagination"
      search:{order_items}{item:entry_id}{/order_items}="1088"
      }

        {order_items}
          {item:entry_id}
          {item:title}
        {/order_items}
        {order_customer_full_name}
        {order_customer_email}

    {/exp:channel:entries}

Is it possible to use options like that in the search parameter? It seems to be ignored.


texts: exp:channel:categories - category_group not working

texts:
I have the following code:

    {exp:channel:categories
    parent_only="no"
    show_empty="no"
    style="linear"
    category_group="{if segment_1 == "cave"}3{/if}{if segment_1 == "clothing"}7{/if}{if segment_1 == "accessories"}8{/if}{if segment_1 == "brands"}2{/if}"}

              {category_image}

{category_name}

    {/exp:channel:categories}

But category_group doesn't seem to be working, I've tried the segment names in both double quotes and single quote and it still doesn't work any ideas?


texts:
I would like to get the total entries per status for each category group.

I have 3 statuses.

the best thing I can come up with is:

{exp:channel:entries channel="any" status="Open"}  {if count == total_results}{count}{/if}{/exp:channel:entries}
{exp:channel:entries channel="any" status="closed"}  {if count == total_results}{count}{/if}{/exp:channel:entries}
{exp:channel:entries channel="any" status="test"}  {if count == total_results}{count}{/if}{/exp:channel:entries}

I think there has to be a smarter way.

Any help would be appreciated.
Thank you


texts: channel:form is deleting data not included in the channel form

texts:
There is an issue with channel:form, it is deleting data it should not. The following channel entry form will delete all grid entries I have for  product_images. The grid_entry field is product_images, and there are two columns called image and image_alt.

Yet using this code (notice I am not editing the grid field product_images that is being deleted), the grid field will be blank after saving, and no other field will be affected, just this grid field used for images.

{exp:channel:form channel="products" return="product" entry_id="801" include_jquery="no" include_assets="no"}

    <input type="submit" name="submit" value="Save">

{/exp:channel:form}

I have other grid fields for the entry that are not deleted, and I have a File field that is not deleted. So its either something to do with this specific field, or to do with the Grid field that has a File field in it.

Using EE 2.7.2


texts:
I'm using EE2's simple search like so.

{exp:search:simple_form result_page="search" search_in="title" status="open" channel="gg_store"}
     <input type="text" id="searchBox" name="keywords" placeholder="Search" />
     <input type="submit" id="searchSubmit" name="searchSubmit" value="GO" />
{/exp:search:simple_form}

and my search results, using {exp:store:product} looks like this...

{exp:search:search_results}
                {exp:store:product entry_id="{entry_id}"}

                        {title}
                        {gallery_image_1}  {/gallery_image_1}

                        <?php echo StringLimiter('{e_comm_body}','160'); ?>

                                Learn More...

                        {if on_sale}
                            {regular_price}
                            {price}
                        {if:else}
                            {price}
                        {/if}

                {/exp:store:product}
        {/exp:search:search_results}

Here's my "issue", this works 90% of the time. I'm building a website that sells only a few items. They are stored in the gg_store channel.

If i search a term like mma, pads, shin, it seems to be working properly. But for whatever reason, certain terms throw a weird EE error.
Terms like Gloves, Gear... and this is the error.

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

I did narrow down, the reason that causes it... it's {e_comm_type}. If i remove that all of a sudden every search term i can think of starts working.
{e_comm_type} is a custom field which stores info like "The Collection", "Victory Athletics", "Apparel".

Any idea's why and how to fix this? I need to use {e_comm_type} to properly set the url destination.


texts: Where do I add the cartThrob License Code?

texts: I may be dense, but I do not see where to add the license number. In the installation instructions it says in the "Global section", I can't find this section. Besides that installation was very simple. a route to the global section or any other hint as to where to add the license key would be helpful. thanks!


texts: How do I prevent encoding of URL in Live Look?

texts:
Something has happened to the Live Look links in the entries within my control panel. After submitting a new article, the Live Link (link to a preview of my article) looks like this:

https://mysite.com/?URL=https%3A%2F%2Fmysite.com%2Ftemplate_group%2Flivelook%2F185

instead of like this:

https://mysite.com/?URL=https://mysite.com/template_group/livelook/185

This is new. I'm not sure why it's now happening. I'm on EE 2.5.3.

Any thoughts on how to get the normal link back?

Additional info:

This problem is not only happening for me with live sites. If I install a completely new EE 2.5.3 in MAMP with no extensions I still see this problem.


texts: using encoding plugin in message template Solspace friends throws error, hope for a solution

texts:
When using this plugin http://devot-ee.com/add-ons/basee64 inside a Solspace Friends Message Template I get PHP errors

A PHP Error was encountered
Severity: Notice

Message: Undefined property: EE::$TMPL

Filename: basee64/pi.basee64.php

Line Number: 36

and

---
Message: Trying to get property of non-object

Filename: basee64/pi.basee64.php
---

What I try to do is to encode the username in the message. So, when clicking the link, the encoded username must be decoded in the redirect/return/ template.
(The plugin works OK in this Template on its own)

The message IS send allright, but the plugin fails. Probably a parse order? I hope someone reacts with an idea how to make this work.

Code in my Solspace friends Message Template where I create the encoded return URL:

{path="redirect/return/"}/{friends_message_id}/{exp:basee64:encode parse="inward"}{friends_recipient_username}{/exp:basee64:encode}


texts: Conditional for stash variable produces 'Something has gone wrong and this URL cannot be processed at this time' error

texts:
I have the following in a globally-included template:

{if segment_3_category_id}
  {exp:switchee variable="{segment_3}" parse="inward"}
    {case value="page-to-match"}
      {exp:stash:set_value
        name="st_surcharge"
        context="@URI"
        save="yes"
        scope="site"
        refresh="1440"
        value="TRUE"
      }
    {/case}
    {case default="Yes"}
      {exp:stash:set_value
        name="st_surcharge"
        context="@URI"
        save="yes"
        scope="site"
        refresh="1440"
        value="FALSE"
      }
    {/case}
  {/exp:switchee}
{/if}

{if segment_3 == "detail"}
  {exp:switchee variable="{segment_4}" parse="inward"}
    {case value="page-to-match"}
      {exp:stash:set_value
        name="st_surcharge"
        context="@URI"
        save="yes"
        scope="site"
        refresh="1440"
        value="TRUE"
      }
    {/case}
    {case default="Yes"}
      {exp:stash:set_value
        name="st_surcharge"
        context="@URI"
        save="yes"
        scope="site"
        refresh="1440"
        value="FALSE"
      }
    {/case}
  {/exp:switchee}
{/if}

In the template that has the segment_3_category_id if I do {if {exp:stash:get name="st_surcharge" context="@URI"} == "TRUE"} it works fine.

But in the template where segment_3=detail if I do the same thing, I get:

  Something has gone wrong and this URL cannot be processed at this time.

A couple of other things I've tried are just outputting {exp:stash:get name="st_surcharge" context="@URI"} which gives me nothing and {exp:stash:get name="st_surcharge" context="@URI" process="end"} which returns either TRUE or FALSE depending on which page I'm on, which is expected.

If I put process="end" on the get statement inside the conditional, it always evaluates to FALSE.

I don't understand why one template is producing an error, but not the other. I can see the values for both templates being stored in the database.


texts:
When I try to import a google generated .ics file I get the following error and no events are imported:

An Error Was Encountered
You are not authorized to access this page

The url I am using is:
http://www.google.com/calendar/ical/sp9rt0e3ikdfelf06mckpfjmhs@group.calendar.google.com/public/basic.ics

Strangely, if I use this one, I still get the error, but events are imported:
https://www.google.com/calendar/ical/canadian__en@holiday.calendar.google.com/public/basic.ics

any ideas?


texts:
I'm transferring my site to a different server.  I'm building out a microsite on Expression Engine 1.6.8.  The issue is the image path is not resolved using the Image Sizer plugin.  Here is an example of a tag:

{title}

What happens is the master_site global variable works, but no path is added for Image Sizer.   So the resulting tag is:


texts: EE v2 to v5 upgrade SQL error when selecting channel for editing an entry

texts:
The upgrade from v2 to v5 working without error as did upgrading several plugins, however when in the control panel I and I select 'Edit' > and a channel I get the following error:
SQLSTATE[23000]: Integrity constraint violation: 1052 Column ‘channel_id’ in where clause is ambiguous:

Code:
SELECT DISTINCT t.author_id, m.screen_name
FROM (exp_channel_titles t)
LEFT JOIN exp_members m ON m.member_id = t.author_id
WHERE channel_id = 83
ORDER BY screen_name asc

Any help identifying the cause of this error and providing a fix would be very much appreciated
Please note: I understand what the error means and how to fix it, what I need to know is what is going wrong and how to fix it in relation to the framework that it's used in Expression Engine.


texts: Stash List Passed to Embed - Adding Blank Items

texts:
Wondering if this is a bug or a parse order issue (probably parse_order).

Code is below, but basically i am trying to work with template partials approach and showing related videos for an article entry.  The related videos field is a relationship and it can accept multiple.

In the main article template i store all related videos in a list.  Then embed a partial below to display the videos.

The using stash:get_list in the embed to loop through the videos.

The issue i am seeing is that in the main template the list has 1 item, but once in the embed, the list has 5 items, 4 of which are blank records.

Working on Stash 2.6.0 and EE 2.9.2

---Main template article/view.html

{!-- Channel Entries --}
{exp:channel:entries channel="article" url_title="{segment_2}" limit="1"}

{!-- RELATED VIDEOS --}
{article_videos status="open|Featured"}
   {exp:stash:append_list name="videos" trim="yes" parse_tags="yes"}
      {stash:video_entry_id}{article_videos:entry_id}{/stash:video_entry_id}
   {/exp:stash:append_list}
{/article_videos}

{!-- DEBUG, OUTPUT = 1 --}
{exp:stash:get_list name="videos" prefix="related_videos"}
   {related_videos:total_results}
{/exp:stash:get_list}

{stash:embed:partials:videos}

{/exp:channel:entries}

---Embedded stash partial stash_embeds/partials/videos.html

{!-- DEBUG, OUTPUT = 5 --}
{exp:stash:get_list name="videos" prefix="related_videos"}
   {related_videos:total_results}
{/exp:stash:get_list}

Odd indeed, but it is messing up our conditionals and showing a bunch of blank images and cells.

Thanks, in advance


texts: A user loaded 7 images in EE 2.5.5. Two images are missing from the front end display

texts: I had been using EE 1.7 and I could always download a loaded image to check for a large size or formatting problem from the backend. Now with 2.5.5, I am not able to download the images  or otherwise see what might be the problem. How do I find out what might be wrong with the images?


texts:
Having a few issues with PayPal Express and CT Pro 2.2.9:

Upon checking out to PayPal and clicking PayPal's "Cancel and Return to Store" link, the user is taken back to the URL in the checkout form's return parameter. Does PayPal Express not make use of the failed_redirect parameter?
Upon a successful PayPal Express transaction, CT's cart isn't emptied? I have tried this method (http://cartthrob.com/forums/viewthread/7557/), however, the clear cart tag, although in the if authorized conditional, empties the cart on payment failure also.

Many thanks


texts: Show child categories without GW Code Categories

texts:
I'm trying to just show child categories of a specific parent and have used GW Code Categories in the past.
I would just pass the category ID to GW Code and voila!
Now that GW Code Categories is not supported in the latest version of EE (5.3.2), how can I replicate the same functionality?


texts: How do I resolve this scope issue with Stash?

texts:
I'm just playing around with implementing Stash on a site, following the Template Partials Using Stash article, but now I seem to be having a scope/execution order issue.

Layout

 ...

    {exp:member:custom_profile_data}
      {exp:stash:member_field_1}Foo{/exp:stash:member_field_1}
      {exp:stash:member_field_2}Bar{/exp:stash:member_field_2}
    {/exp:member:custom_profile_data}

     {exp:stash:content}

Content Partial

{embed="layouts/content"}
{exp:stash:content}

{exp:stash:member_field_1}

{exp:stash:member_field_2}

 ...

{/exp:stash:content}

I have some custom member fields that I need in a few places throughout my content sections, so I'm trying to retrieve them in the layout and assign them to variables, in the hopes that I could save my content from being littered with  {exp:member] tags, but the variables don't seem to be available in my content partials.

I believe that it's not working because my Stash variables are being parsed before the values are assigned, and from what I believe I understand about the order of how EE is parsing the views, it goes something like this:

Partial is retrieved
Content is assigned to {exp:stash:content}
Layout embed is retrieved
Layout is parsed and {exp:stash:content} value injected.

Am I missing a feature/use-case of Stash, or am I simply using the wrong tool for this particular job?

Update:
After racking my brain for days, and then writing this question, I tried saving the variable definitions in a snippet, which is called from my layout and it seems to work. I'd still be interested to know if there is a Stash implementation of this type of case, though.


texts:
I have two channels: Program Areas and Stories. They need to be related in certain ways and I'm trying to figure out the best way to do that.

There are 10 Program Area entries
There are unlimited Story entries, which the user should be able to browse
by category, and the 10 categories correspond to the 10 Program Area entries
On every Program Area entry, a few related Story entries should be listed. For example, the 2 most recent.
The Program Area pages themselves cannot simply be categories, but full-blown entries, with many fields including Matrix fields.

So I seem to have two options:

Create a relationship between Program Areas + Stories. Problem: when the client creates a new Program Area entry, s/he will be confronted with a long list of Stories by title, with no regard to category. If there are 1,000 Stories, the client will have to remember which of those correspond to the new Program Area entry they are creating. There's no way to limit the relationship to a single category ON A PER-ENTRY BASIS. Am I wrong about this?
Other option: create a set of categories with the same names as the Program Area entries, and assign them to both the Program Area entries and the Stories entries. Each category will have only a single Program Area entry assigned to it (and many Story entries). If the client wants to create a new Program Area entry, s/he will have to start be creating a new category, etc.

These seem to be my two options, and neither seems particularly elegant. Is there another way to do this--perhaps a relationships plug-in that allows me to pull, not individual related entries (like Playa and now native EE), but categories of entries? Thanks.


texts: Cartthrob Stripe Gateway Blank Screen after checkout

texts:
I have a weird issue with Stripe and Cartthrob.

Version Info.
EE- 2.5.5
Cartthrob - 2.4

When submitting the checkout form using the stripe gateway. In firefox and safari (some customers have reported chrome as well but it works on my machine) the order gets processed correctly and payment shows up at stripe but the return parameter never runs.

To clarify whats happening the group/template from which the checkout is happening is store/checkout.  Once the checkout is complete the return is supposed to take you to store/thanks.

Instead the the site stays (or reloads not sure) store/checkout but the page is blank.

Customers obviously think there is an error and click the back button.  The cart is not cleared and we have instances where customers have submitted the same order and got a token reference error.

Once again the payment is reaching stripe its just how the order confirmation return is not working that is causing the problems.

I am aware that stripe uses it's own javascript that it embeds into the page.

I have removed all my external javascript from the page. I also made sure the checkout form does not have a custom id and that the required fields do not have  a name value associated with them as per the payment documentation inside the plugin.

My console is showing no javascript errors and all the stripe js files are linking correctly from the source code from what I see.

Please help guys I haven't seen the issue anywhere else and I'm out of ideas.

Thanks for the great plugin.

Ben


texts:
We have the following code in our templates,

 {exp:favorites:info
 entry_id="{embed:entry_id}"
 disable_pagination="yes"
 }
 {exp:favorites:edit
 favorite_id="{favorites:favorite_id}"
 return="{embed:return_url}"
 form:style="display:inline;"
 error_page="favorites/ajax_error"
 }

 {favorites:collection}
 {/exp:favorites:edit}

{/exp:favorites:info}

Which works when we have an add or edit button, but if we want the collection name {favorites:collection} it simply spits out the curly braces:


texts:
The response header for one of my pages is too large, some browsers to throw a 500 error, and preventing me from using W3C HTML validation:
http://example.com/water-softener-reviews

I have a (very long) line for each channel entry beginning (viewing using Web Developer in Firefox):

exp_flash=a%3A2%3A%7Bs%3A17%3A%22%3Aold...

I notice one line says expiry is 1997 - not sure if that's normal:

Expires: Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified: Thu, 05 Feb 2015 17:09:29 GMT
Pragma: no-cache
X-Powered-By: PleskLin
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 11092
Keep-Alive: timeout=100, max=97
Connection: Keep-Alive
Content-Type: text/html; charset=UTF-8

I can't find any information that suggests a solution to this, other than the user needs to increase is header response size limit. The header is so large I don't think increasing the limit is a valid solution.

Any suggestions for a fix?

EE version is 2.7.2.


texts:
I have two channels:

locations
meetup

"meetup" has a playa field called {chapter_affiliation}

I have one entry in "meetup" with the playa field selecting one location.

I'm using EE 2.7.0 and Playa 4.4.5 (fresh install of Playa).

The following templates are copy pasted from the real templates.

My template for "meetup" properly shows the affiliated chapter using this code:

{exp:channel:entries channel='meetup'}
    {exp:playa:children field="chapter_affiliation"}

Affiliated Chapter {title}

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

My template for "locations" will not show the parent "meetup" and I've been staring at it for so long, I can't see why not. The following template will list all the locations, but nothing lists underneath any location, despite the above template properly showing the affiliation.

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

As Seen in {title}

    {exp:playa:parents channel="meetup"}

{title}

    {/exp:playa:parents}

{/exp:channel:entries}

My question is: What have I done wrong and how can I fix it.


texts: Trying to upgrade from EE 2.5.5 to 2.9.90 - the infamous white screen problem

texts:
So Im trying to upgrade an EE site and when I follow the instructions...
All I get is a black white page.  No error messages, nothing.

Interesting when I enable debug=1 in index.php, I do see this error:
Parse error: syntax error, unexpected T_STATIC, expecting T_STRING or T_VARIABLE or '$' in /var/www/vhosts/default/htdocs/run/EllisLab/ExpressionEngine/Core/Autoloader.php on line 46

Any ideas or hints really appreciated.

I dont have any special modules or plugins.

Paul


texts: Can you limit a blog archive to a specific category?

texts:
I am not sure why this doesn't work:

Archives

            {exp:channel:month_links channel="blog" limit="12" category_id="41" show_empty="no"}

{month}, {year}

            {/exp:channel:month_links}

I'm getting archives of months that have no entries from the category show up in the ul, so if you click them, you'd get a blank page.  Why aren't they being filtered out by the 'show_empty="no"' tag?


texts: How can I display entries from a category but hide entries belonging to it's child categories

texts:
I have product categories with 3+ levels, sometimes a product is assigned to the second level, sometimes it's assigned to level 3, so a category may have sub categories with products, and products.

I can't figure out how to display the just products in a category if that category also has child categories with products, EE insists on displaying all the products from the child categories too.

I have tried {if parent_id != {cat_id}}  (cat_id taken from a query using the url to filter), no luck as EE doesn't seem to diffentiate between direct parents and grand-parents or higher.

How can I filter out the products from the child categories?


texts: Display Total_Stock of each item in the cart

texts:
I often have customers try to add a greater amount of inventory than what is available. So, if there is 2 left in stock, they might try to add 10.

I'd like to control this by displaying "amount available" in the cart page, so they can see what's left.

As far as I can tell, {total_stock} is not available to the {items} {/items} loop in the Checkout Tag.

Whats the best way to go about this? Or, better yet, is there error handling for updating quantities?

Thanks.
Lisa


texts:
In this template I display information about characters from a TV show. This includes a season-by-season summary of significant events for a character. I am trying to work out a way where adding each new season is more streamlined. Each character is tagged for each season it appears in, with S1, S2, etc. This is what I've currently got:

{exp:tag:tags entry_id="{entry_id}"}

{if tag == "S1" OR tag == "S2" OR tag == "S3"}
{if segment_4 == ""}

Spoilers

{if tag == "S1"}
Season One
{/if}
{if tag == "S2"}
Season Two
{/if}
{if tag == "S3"}
Season Three
{/if}

{/if}

{if segment_4 == "Season_One" OR segment_4 == "Season_Two" OR segment_4 == "Season_Three"}

Spoilers

{if tag == "S1"}

Season One

{{current_channel_id}_season_one}
{/if}

{if tag == "S2"}

Season Two

{{current_channel_id}_season_two}
{/if}

{if tag == "S3"}

Season Three

{{current_channel_id}_season_three}
{/if}

{/if}

{/if}
{/exp:tag:tags}

At the moment, the default entry page for a character ends up looking like this:

Spoilers

    Season One

Spoilers

    Season Two

Spoilers

    Season Three

I am not sure why the "Spoilers" heading gets repeated for each link.

Additionally, if I click through on  the "Season One" link it ends up displaying season one, season two and season three in one go.

Any suggestions for how I'd need to tweak this template to get the desired result and, preferably, a setup with less duplication of tags needed each time another season is added?


texts: SuperSearch with Keywords and Pagination

texts:
Alright, trying to get SuperSearch with Keywords working with pagination. Having a bit of trouble, as the "autopath" variable isn't turning in to a useful URL.

{exp:super_search:results channel="products" limit="12" sort="desc" paginate="bottom"}
...
{paginate}
{if next_page}Next{/if}
{/paginate}
{/exp:super_search:results}

This works fine without search terms:

Next

However, a soon as I search:

Next

Which doesn't work as a URL, or to get the next page of keyword limited things.


texts:
My client has alerted me that some time in the last 2-3 months, they've lost the ability to upload files directly through WYGWAM. I've updated WYGWAM to its most recent version, and disabled any advanced settings, but I am not seeing the upload options anywhere.

I've asked WYGWAM to use the EE file manager, and I can succesfully upload images via the regular File Manager, but just not via WYGWAM.

Any ideas?

Edit I am running version 2.4.0 of EE, and 3.2.1 of Wygwam. I realize that 2.4 is pretty old, so I am having our systems guy update it this week.


texts: How to delete all member accounts with no channel entries

texts:
Any EE folks know if there is a way to delete all member accounts that have no channel entries assigned to them?

In my case any accounts with 0 entries would be spam.

Thanks for your time.


texts:
I have tried to use Cat2 addon to retrieve category ID based on a category group. Later I want to use stashed category ID to retrieve entries form a channel based on a selected category. Code looks like:

{exp:stash:set name="catid" parse_tags="yes" parse_depth="3"}
{exp:cat2:id category_url_title="{segment_2}" category_group="5" parse="inward"}
{category_id}
{/exp:cat2:id}
{/exp:stash:set}

CatID#: {exp:stash:get name='catid'}

    {exp:channel:entries channel="collection" category="{exp:stash:get name='catid'}" url_title="{segment_3}" status="open"}
        {title}
        {collection_description}
    {/exp:channel:entries}

It displays proper CatID# but I'm not getting any entries. When I "hardcode" that CatID# instead of {exp:stash:get name='catid'} I'm able to retrieve related entries.

Any clue what is going on there?

Thanks


texts: Simplify segment conditional documentation

texts:
Exist an interesting method to simplify a multiple conditional:

If you want to execute the code when url_title not equal to "portfolio" neither equal to "photos" use this condition:

{if segment_2 != "portfolio" && segment_2 != "photos"}

Conditional content.

{/if}

Or as a simple way:

{if ! "portfolio|photos" *= segment_2}
    I am here
{/if}

It works fine, does exist a documentation for this pattern:

segment_2 != "portfolio" && segment_2 != "photos"

to

! "portfolio|photos" *= segment_2  ?

I didn't find it.


texts:
Since updating to v2.6.1 I am no longer able to login as another member.  If I log in as a Super Admin and search for a user I can still click on the "Login as Member" link.  I am taken to the next screen and offered radio buttons, which I select "Control Panel".  It now ask for "You must submit your current Super Admin password to continue" which I provide and then I go to the main login screen.  Anyone else having this issue?  Hard to troubleshoot user issues without being able to login as the user occasionally.

Thanks!

Guy


texts: Focus Lab Bootstrap config for sub directory?

texts:
Ok, I have been using the Focus Lab Bootstrap for a while and its awesome. But I have come across a new problem when trying to use a testing URL that isn't a standard domain/sub.domain.

How would I set up an environment like http://xx.xx.xx.x/test/ ?

Thanks in advance, and let me know if i've left out a pertinent piece of info!


texts: Fatal Error in EE Control Panel after updating Expresso Store PayPal Express code

texts:
I am having some issues trying to pass checkout cart line items to PayPal Express as part of the checkout process. I tried editing the merchant_paypal_base.php file as instructed in the post Expresso Store: List items on PayPal but couldn't get it to work so reverted back to the original php file.

Now, when I enter the Control Panel as administrator and navigate to Store > Settings > Payment Methods the screen refuses to load and instead offers this error message (URL redacted).

"Fatal error: Cannot redeclare class Merchant_paypal_base in /xxxx/system/expressionengine/third_party/store/ci-merchant/libraries/merchant/merchant_paypal_base.php on line 34"

I have tried logging out/in and clearing all caches but to no avail. I was kind of expecting the passing of PayPal item details to be included with Store, so am a little disappointed that it requires some hacking around to pass this information across and it's a little beyond me. Any help much appreciated to either fix the error or get the item information to pass across to PayPal successfully.

Thanks in advance.


texts: Using DataTables to query a set amount of records, not all records

texts:
I have a webpage that utilizes Expression Engine for it's backend. One of the pages is taking 3-5 seconds to load because it is querying for all records in a channel and displaying them in a Datatable (for more info on this JS lib, see: https://datatables.net/).

How would I use Ajax to query for only 50 records at a time instead of having Datatables or EE query ALL of the records? I want to optimize this to bring down the load time and prevent it from getting worse as more records are added to the table.

As of now, this is the JS that creates the Datatable:

$('#server_table').DataTable( {
        "pageLength": 50,
        "lengthMenu": [[10, 50, 100, 500], [10, 50, 100, 500]],
        "order": [[ 0, "asc" ]]
}

Here is how EE constructs the table's body:

   {exp:channel:entries channel="servers" limit="3000" status="Open|Closed"}

   {if status == "closed"}
   {title} (Decomm'd)
   {if:else}
   {title}
   {/if}
   {server_ip_address}

{server_application}
    {server_application:title}{if server_application:total_results > 1}
{/if}
{/server_application}

    {server_environment}
    {server_operating_system}
    {server_data_center}

    {/exp:channel:entries}


texts:
Is it possible to use a variable in my content?  If got my basic pages with a title and body. In the CP I use a WYSIWYG editor for the body.
For example. Now I don't want to put my name or phonenumber on every page. Or I want to put a Username somewhere in the content. Like you do with Emailings.
Could I use something like {username} or {phonenumber} in my editor?

Thx,
Martijn


texts: General SEO page question - dynamic vs static?

texts:
What's better from a SEO perspective?

I normally generate a lot of my page dynamically using only one template and segments. But for SEO purposes is it better (?) to create a static template for each distinct page type?


texts: Zoo Visitor not sending forgot password email

texts:
I have a basic zoo visitor forgot password form and the email's aren't being sent out.

        {exp:zoo_visitor:forgot_password error_handling="inline"}
        {if password_sent}

A password reset email has been sent to the provided email.

        {if:else}
            <fieldset>

                Your email:
                <input type="text" name="email" id="email" class="form-text" value="" />
                <input type="submit" value="Retrieve password" class="button" />

            {error:email}
            </fieldset>
        {/if}
    {/exp:zoo_visitor:forgot_password}

Emails are being sent from the member registration form so i've ruled out server issues. Any ideas?


texts: Insert Low Variables Between Channel Entries

texts:
On the home page of a site I am displaying a series of articles. In between each of these articles I wish to display a banner ad controlled via Low Variables.

At the moment it repeats the first ad between each channel entry instead of correctly looping through the banner ads.

Here is what I have so far:

{exp:channel:entries channel="articles" limit="14" disable="categories|category-fields|member-data"}

{article_subtitle}

{title}

{article_images cover_only="yes"}

{/article_images}

Lorem Ipsum

Further reading +

{exp:low_variables:parse var="banner_ads" multiple="yes" limit="1"}

{/exp:low_variables:parse}

{/exp:channel:entries}

Any thoughts?


texts: Why does {comment_url_title_auto_path} not honor URLs across MSM sites?

texts:
I have a sidebar/latest-news template in siteA containing a few {comment_url_title_auto_path} links, resulting in URLs such as siteA.com/news/article/[url_title_here].

I embed it from a template in siteB like this: {embed="siteA:sidebar/latest-news"}. When I do so, the URLs that are generated by that template are siteB.org/news/article/[url_title_here].

Is there any way to get it to link to the proper URL over on siteA?

  EDIT: Just realized the core of this issue is the fact that the
  Comment Page URL setting in the channel prefs is
  {site_url}/news/article, and that apparently the {site_url} var
  gets parsed by the parent template's site, not by that channel's site (Edit 2: reported this as a bug).

  The site in question has multiple country-code subfolders with
  index.php files in them, each one setting custom global vars
  according to the country. So, going to siteA.com/us/news/ will set a
  global var of {gv_current_country} to "us" and a
  {gv_current_country_category} var to something like "123" - whatever
  the ID is of the "USA" category to which entries are assigned.

  Therefore, using something like /news/articles/ in the channel's "Comment Page URL" setting won't work, since it would be tossing the geolocated visitors out of their siteA.com/[country_code]/ subfolders each time they clicked a link.


texts: Exp:resso Store: Show customers email in template

texts:
My client has requested that a customers email address be placed in an email template. This can obviously be retrieved using the member details if the customer has chosen to be a member, but how do I get the email address if the customer hasn't opted to register as a member please?

Cheers

Tom


texts:
We have an upcoming project coming up which will have two sides, let's call one the marketing site, and the other is an app.

The basic idea is the marketing site will sell access to the app, so the user will sign up through the marketing site to have access to the app.

So basically we need to be able to share members and only the members between both sites. Is MSM suitable for this?

Technically, it could be done through a single site but I don't want to be mixing up the channels and other data between the marketing site and the app.


texts: template_fetch_template hook $row parameter

texts: I'm considering writing an extension that greatly depends on hooks that are available before and during template parsing. I see in the ExpressionEngine hook documentation that there is a hook called 'template_fetch_template' and its parameter is an array of template data called $row. I can't tell from the documentation exactly what data is in that array. What are the array indexes and what kind of content do they possess?


texts: Client moved to new host, admin assets returning 404 error

texts:
Client has moved their site to a new host and now the back-end/control panel assets are throwing a 404 error. For example,

/admin.php?S=ca55e292a4e770d2f3a83253f0027950&D=cp&C=javascript&M=combo_load&ui=core,widget,mouse,position,sortable,dialog&plugin=ee_interact.event,ee_broadcast.event,ee_notice,ee_txtarea,tablesorter,ee_toggle_all,ee_navigation&file=json2,underscore,cp/global_start&v=1463044170,
/admin.php?S=ca55e292a4e770d2f3a83253f0027950&D=cp&C=javascript&M=combo_load&file=cp/global_end&v=1463044000, etc.

I can login to /admin but none of the links, menu etc are navigable due to above issue. Site is fine locally and on previous host but now throwing errors and no idea what is causing this problem. Any suggestions on debugging appreciated.


texts: Customize URLs in With Structure Navigation Tags (or How to Keep Top Level URL Segments Out of Children URLs)?

texts:
First time using Structure on a project...

With the latest versions of Structure and EE, using the {exp:structure:nav} tag, is there a way to keep the parent entry URL segment from appearing?

That is, I have a top-level navigation menu called about which haas things like links to the newsletter and staff. With the code I have in place, the URLs for those pages are along the lines of:

http://example.com/about/newsletters
http://example.com/committees/charity

What I'd like those URLs to be is simply:

http://example.com/newsletters
http://example.com/committees/charity

This would give the client (a large site with hundreds if not thousands of pages) an easy way to self-manage their site navigation by using Structure more as a way to group and organize menu and sub-menu items. It would have the side effect of allowing us to keep the old URL structure saving us from having to account for redirects and other broken links.

This is the code I'm using to generate my About menu:

About Us&#187;

  {exp:structure:nav start_from="/about" show_depth="2" include_ul="no" show_overview="yes" add_span="yes" has_children_class="yes" rename_overview="title"}


texts: Filtering of search results based on multiple checkbox entries per field in Supersearch

texts:
I've got an advanced search set up on my site, using Solspace's Supersearch, in which I'd like to filter the results based on input from multiple checkboxes associated with a single field. The code is based on the following format:

<form method="post" action="{path='search/results'}/" id="adv-form">
<input type="hidden" name="csrf_token" value="{csrf_token}" />
<input type="hidden" name="inclusive_keywords" value="no" />
<input type="hidden" name="redirect_post" value="yes" />
<label><input type="checkbox" name="my_field_name[]" value="value1" />Value 1 </label>
<label><input type="checkbox" name="my_field_name[]" value="value2" />Value 2 </label>
<label><input type="checkbox" name="my_field_name[]" value="value3" />Value 3 </label>
<label><input type="checkbox" name="my_field_name[]" value="value4" />Value 4 </label>
<input type="submit" class="submit" id="submit" name="submit_adv" value="Search Our Directory"/>
</form>

I have entries with "Value 1" checked and no entries with "Value 2" checked. Searching for "Value 1" works, searching for "Value 2" gives me no results which is also fine. The problem is that when both "Value 1" and "Value 2" are checked my results are filtered for "Value 1" when I would expect it to give me no results.


texts: NavEE include_single_parent will not work when no kids exist

texts:
I have the following code.

{exp:navee:custom
    nav_title="primary"
    parent_selected_class="is-current"
    selected_class="is-current"
    selected_class_on_parents="true"
    start_nav_from_parent="true"
    start_nav_from_parent_depth="2"
    display_all_children_of_selected="true"
    include_single_parent="true"
    wrap_type="ol"
}

            {text}

        {if has_kids}
{kids}
{/if}

{/exp:navee:custom}

EE v2.5.5
NavEE v2.2.7

The outcome I am aiming for is: display selected nav item and kids of selected nav item. Everything is working great unless the selected nav item has no kids. When that happens, nothing appears. When the selected nav item has kids, the selected nav will show along with the kids. I have this exactly how I want it to behave except I can't get the selected nav to show up when it does not have kids. I would appreciate any input on this matter. Also happy to clarify if needed.

Here are the two pages:
Displaying nav items properly (it has kids)
Not displaying nav at all (it has no kids)


texts: Expression engine Forms module include html section

texts:
I run expression engine v2.10.1 with exp:resso store 2.5.1 and have installed Forms module 3.5.3.

I created a test form and included it here

I have included a HTML section in the form where i load the current Cart contents.

My Question: Is it possible to include the shown html section in the form submission?

If not, is there another way to include current cart into a Form entry?


texts:
I'm struggling with an issue with pagination on one of our sites...

We are running a multi-language site (English & French). We are using the standard method of having folders at web root (ie. en, fr, etc.). We are also removing index from the URL using the approved Ellis lab way.

# rewrite rules
RewriteEngine On

# ditch index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /en/index.php/$1 [L]

Lastly We are using the Focus Lab Config file (nothing out of the ordinary here.

The problem is that If I have a URL (http://website.com/index.php/blog) and I click the pagination link, I'm taken to the following URL (http://website.com/en/blogindex.php/P3). It adds index.php after the blog folder, not index as this is the template. secondly it removes index.php after the /en folder which for some reason it seems to need to work. The address that works is (http://website.com/en/index.php/blog/index/P3) OR (http://website.com/en/index.php/blog/P3).

I have absolutely no idea how to modify this URL, it's generated from the pagination.

I have a feeling it has something to do with the Focus Lab Multi config setup, but I wouldn't even know where to start.

Any thoughts? I'm completely baffled...


texts: Paginating a random ordered list of tag:related_entries

texts:
I'd like to display a list of entries using the Tag module:

{exp:stash:parse}

    {exp:tag:related_entries
        channel="my_channel"
        disable="category_fields|member_data|trackbacks"
        status="open"
        dynamic="no"
        orderby="random"
        cache="no"
        paginate="bottom"
        limit="3"
    }
        {exp:stash:append_list name="my_channel_random" parse_tags='yes' parse_conditionals='yes' parse_depth="2"}
            {stash:item_title}{title}{/stash:item_title}
        {/exp:stash:append_list}
    {/exp:tag:related_entries}

    {exp:stash:set_list name="pagination"}
        {tag_paginate}
                {tag_pagination_links}
        {/tag_paginate}
    {/exp:stash:set_list}

{/exp:stash:parse}

{exp:stash:get_list name="my_channel_random" limit="3"}
    <p>{item_title}</p>
{/exp:stash:get_list}

{exp:stash:get_list name="pagination" limit="1"}
    {next_page}
{/exp:stash:get_list}

{exp:stash:parse}

The only way I can think of doing this is by perhaps saving the already fetched IDs in a stash variable and adding this:

channel_entry_id="not {exp:stash:get name="viewed_ids"}"

But I can't get 'viewed_ids' to persist across pages:

        {exp:stash:append
            name="viewed_ids"
            scope="site"
            save="yes"
            refresh="60"}
            {entry_id}|
        {/exp:stash:append}

Why isn't 'viewed_ids' saving across pagination links?

Is there another approach?


texts:
I’m getting the “white screen of death” in the control panel, though only on the Add-ons->Plugins page.

I have turned on debugging mode, and the issue does not appear to have been caused by a PHP error. Can anyone think of any other reason why an individual control panel page would stop loading? I am getting no errors in the console, and the html is empty.

Many thanks in advance for any help, EE version 2.7.3


texts: Searching and Form submissions Duplicating site URL

texts:
Having an issue with a site duplicating its base URL during a search result or a form submission.

ie: After searching for a term or phrase I receive the following:
http://www.domain.com/http://www.domain.com/search/...

Below is a snipet of code which outputs the search form.

    <div id="search_box">
        {exp:search:simple_form channel="pages|languages|staff|video" result_page="search/index" search_in="everywhere" results="20" where="all"}
        <input id="search_box_input" name="keywords" type="text" onClick="if(this.value=='search for articles, news, videos, and more') this.value = ''" onBlur="if(this.value=='') this.value = 'search for articles, news, videos, and more'" value="search for articles, news, videos, and more" />
        <input type="image" src="{site_url}/img/bt_search.png" id="search_button" name="submit" alt="Submit Search" />
        {/exp:search:simple_form}
    </div>


texts:
I am trying to force the EE1 control panel to my secure cert, with a bit of difficulty.

The problem is that not everything is delivered by a relative link, so some stuff, specifically custom fieldtypes import their js and css in http:// vs https://

The piece of code that is responsible is:

$this->include_css('styles/ngen_file_field.css');
$this->include_js('scripts/jquery.livequery.js');
$this->include_js('scripts/jquery.ngen_file_field.js');

etc, for a couple of fieldtypes in there. Each one starts with http://

So with all of this coming in as 'non-secure' the server rules blocks it, not allowing the admin panel to render.

So the question is, how do I override this behaviour? I don't mind circumventing the core stuff, as this site wont be updated ever, and if I have to hard-code something, so help me I will.

Any old EE1 devs have an idea?


texts:
So I just purchased my first copy of Channel Images and installed it without issue. I then proceeded to add a field and then add images to an an entry. All went smoothly. However I can't seem to find out how to create different sized images. In the entry page there's a tab for SIZES but nothing happens when I click on it.

I used the following template code from the docs

{exp:channel_images:images}

{/exp:channel_images:images}

Which spits out the following image url  Likely since I haven't created a medium image, but I don't see where to do this and there's no information in the documentation.

So my question is - how do I create different sized images using channel images and is there anything else that I am missing that is not in the docs.


texts: Searching field types set to VMG Chosen Member in the Control Panel

texts:
I'm using VMG Chosen Member as a Field Type so administrators can easily add Members of a custom Member Group 'Customers' to different Channel Entries.

This is fine, but when in the Control Panel I cannot search or filter on this Field Type. I have set the VMG Chosen Member (Customer) to be searchable but this doesn't make a difference.

This is a major issue for my client, as they will need to be able to search and filter entries in the CP by 'Customer'.

Does anyone know if this is an actual issue or something else I could do to get around it?


texts:
Running EE 5.2.3 and trying to add a new Publish Layout for one of my channels. When I try to create or save the layout I get the following error:

The Super Admin group is already checked but it is read only and cannot be toggled. I can't move forward at all because of this.

Any help would be appreciated.


texts: Passing Arguments To Class Method Using EE Template

texts:
[EDIT: I was able to answer my question. Answer posted below.]

EE 5.2.4

I have a class that will query an API using item ID and return data for that item.

I am aware that this structure:

{exp:my_class:my_method}

will return the value for this:

class My_class {

  function my_method () {

    // content

  }
}

However, what I need to do is pass an argument to the class method for each entry within a channel, like this:

{exp:channel:entries channel='products'}
    {exp:my_class:my_method arguments='{product_asin}'}
{/exp:channel:entries}

would return a value from the class method for each product entry:

class My_class {

  function my_method ($asin) {

    // query api based on $asin values passed from the template

  }
}

It's quite possible I'm missing something in this part in the docs, as they are quite elaborate regarding add-on classes and methods, so I'm hoping someone will just know from experience how to do something like {exp:my_class:my_method arguments='{product_asin}'}.

Thanks!


texts: {site_url} when updating on localhost and transfer to remote server

texts:
I'm a newbie upgrading an ExpressionEngine site from 1.6.8 to 2.7.2. I did this on my local server. Worked pretty well but I lucked out since I don't have any add-ons to upgrade. However, not everything is showing up on my home page or control panel. I'm guessing that the other navigation links and some css and image srcs are tied to the site_url in the database, which would be looking for these elements on mydomain.com and not the local server.

I'm assuming that this would all be OK when uploaded to the remote server and the absolute paths are restored, but I want to be  careful.  Can I change the {site_url} in the database or admin somewhere to check this and give it another look?  Should I just upload changes from localhost and make the necessary adjustments in the control panel?


texts: Setting Cartthrob Price Modifiers Across Many/All Products

texts:
We're working on a project where we need to capture some text information for each item in the cart. We've set this up using the cartthrob_price_modifiers_configurator field type on the appropriate field group.

Is there a way to create these particular modifiers globally without doing so for each of the >800 Entries?

Is there a better way to do this?

Thanks!

Greg


texts: How to use EE classes like DB,channel API from a php file

texts:
I have a requirement in one of my EE site wherein I need to insert some data in tables and make some channel entries using EE channel API,I am able to do this within a EE template using database class or channel API..like

 $this->EE->db->insert("INSERT QUERY");

But I have to do the same thing from a Php file which is located at root (same level of index.php file). Can anyone please help me out here.

I want to know what files to be included and what classes to be initiated or anything to be able to use EE object ($this->EE) within in a php file (located at root).


texts:
I have two forms on a site I'm developing, one form I need to be able to filter by categories and sub-categories, the other I need to filter by keyword, File Type (PDF, EXE) and list them based on their category.

Is Low Search right for this?


texts: Modifier information in the Order Information Email template

texts:
Is it possible to access the modifier information in an email template?

I want to tell the costumer what they baught, i can tell them the product name but not the modifier

i can tell them this for example:

Hey you baught the cool t-shirt!

but i cannot tell them this:

Hey you baught the cool t-shirt in the color YELLOW!

please help


texts: Exp:resso Store Unable to locate file ID Since Upgrading Assets - I Think

texts:
I am seeing this after upgrading Assets to 2.0.5 - it was working perfectly before - I know everyone says that. Environment is EE2.5.5 Store 1.6.3 My template:

    Order Hash
    Order ID
    Order Date
    Items
    Total
    Status
    Download

{exp:store:orders member_id='CURRENT_USER' secure="yes" order_by='order_date' sort='desc'}

{if no_orders}

        Sorry, no matching orders were found.

{/if}

        {order_hash}
        {order_id}
        {order_date format="%d/%m/%y %H:%m"}
        {items}{title}
{/items}
        {order_total}
        {order_status}

            {exp:store:download order_id="{order_id}" url="{software}" class="onwhite"}
                Download
            {/exp:store:download}

{/exp:store:orders}

  The file is visible in the EE file manager. This appears to be different from question 769 since it was working before, but stopped after upgrading Assets. Can anyone see what I am doing wrong?


texts: Solspace Freeform: cannot send email notification to multiple dynamic emails

texts:
I just want to confirm that, if I have a form with two email fields (email and email2) and am using the user_email_field.  An email can only be sent to one user (email).

I have a form with the following fields:

name1
email
name2
email2

If both names and emails are filled in, I would like both email addresses to receive confirmation emails.  I don't believe this is possible without using php.  Though I'm hoping I am wrong and that using Freeform parameters this is possible.
Any chance?

Thanks

Peter T


texts: Transcribe always redirects to homepage after switching language

texts:
I use Transcribe's {exp:transcribe:language_links} tag in an embedded header template to output a language switcher.

The website has two languages and uses Structure to manage pages.

When I'm on a certain static page, that has been associated with language A, and does have a 'sister'-page in language B, and I use the language switcher, it always redirects me to the homepage, instead of the same page in language B.

Is this intended behaviour? Shouldn't I be redirected to the same page in the other language?

Also; I'm pretty sure it used to work at some point before the website went live. Could it have anything to do with the website being accessed from a different URL than during development?


texts: Problem setting a stash variable in a custom module

texts:
I'm trying to set a stash variable in a custom module I'm writing with the following code:

$params = array(
    'name'  => 'st_test_variable',
    'scope' => 'user',
    'type'  => 'snippet'
);
$value = "Test test";
Stash::set($params, $value);

However when I try and retrieve this in a template I get nothing. The code I'm using is as follows:

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

Should this be possible to do?

Bit of additional info: I'm using Stash 2.5.7 with EE 2.5.2 (not able to upgrade right now!).

Cheers

Jim


texts:
We are running expression engine v2.7.2 and the issue we seem to be having is that URLs are redirecting to the segment 2.

ex. 1
http://www.website.com/pagedoesntexist - displays 404 error

ex. 2
http://www.website.com/page1/pagedoesntexist

should display 404 but doesn't
loads http://www.website.com/page1/ but url displayed is http://www.website.com/page1/pagedoesntexist
so http://www.website.com/page1/ loads page1 instead of 404

I'm suspecting it might be a mod-rewrite

  <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteBase /

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

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

I'm wondering what needs to change to correct it.  Can maybe someone provide a working rewrite??

thanks


texts:
I've been trying to figure out a way for executing automated deployment of EE sites via Capistrano or similar.

I've come across various tutorials but all require Git on the server, and most don't include DB migration.

I was wondering if there is a similar tool to Wordmove out there for EE? I really like that it uses rsync and sql commands for the migration so no special software is needed on the server side, only SSH access.

I know this has already been asked a million times, but figured with EE3 out now, and given the age of some of the questions, I thought it might be worth rehashing.


texts: Replacing Wygwam p tag with h1 also adds an empty p

texts:
I have the following to strip out the p tags that are auto generated by Wygwam. For some reason it's not happening for me!

<h1>{exp:low_replace find="<p>"}{hero_article:articles_title}{/exp:low_replace}</h1>

This outputs an empty paragraph tag within the h1 tags.

Any idea why this might be? I've also tried parse="outward".


texts:
When looping through Channel entries, is there a way to provide users with a link they can click on that will take them to that specific Channel entry? I seem to recall seeing some "url" variable available within {exp:channel:entries} tag pair, but can't find it again.

Also, once I'm on that specific Channel entry page, how do I know which entry it is so I can display the rest of the Channel's data?


texts: changing permissions on certain categories

texts: I have a page that hides some amount of page content for free viewers. We have a certain category of 'sample' articles which should be available for everyone. Is there an if clause which basically reads if category = x show all content regardless of membership member?


texts: expression engine super search module : group by issue

texts:
I am using supersearch module, here is link for doc of its http://www.solspace.com/docs/super_search. Actually I am facing a problem that is to get records group by.

Using this module i dont know how to get the entries group by channel. I want the entries result group by its channel.

This is my code: Search :

<form method="post" action="{path='search/results'}/" style="padding-top: 15px;">
    {exp:super_search:search}

    <input type="text" name="title" value="" style="height: 31px;"/>
    <input type="submit" value="Search" />

    {/exp:super_search:search}
</form>

Result :

{exp:super_search:results paginate="both" limit="10"}

{channel_name}

{title}

{paginate}
Page {current_page} of {total_pages} pages {pagination_links}
{/paginate}
{/exp:super_search:results}

there are 5 channel in my project and each channel having at least 15 records. I want all record group by channel.

Can anybody tell how can I get the records what I exactly wants.

Sorry for my bad English Thanks.

And Yes I want the Records like below mention : [if possible please suggest for the same]

Channel -1 --entry-1 --entry-2 --entry-3 --entry-4

Channel -2 --entry-1 --entry-2 --entry-3

Channel -3 --entry-1 --entry-2 --entry-3

Continuous like this..


texts:
We just upgraded to EE 2.8.1 and both my client and I are having an issue where after our cp session times out we get the idle session modal and then we enter our password, click login and a browser dialog box comes up saying "undefined" and we can't login.  This is happing on chrome, safari and ff.

You can refresh to get back to the main login screen but it's kind of annoying.  Has anyone else seen this?

Thanks,

Jim


texts:
On the Store index page it will show all products and then there is a simple category menu so you can filter down by the 5 categories.

What is the best way to do this?

I was initially just going to use Javascript and filter by the class/category name of each div/product while still on the index page, however using the actual category URL should provide SEO benefits so would prefer to go this route.

However I'm unsure how to get it working. The below code works in the sense that it lists the categories and beneath it lists all the products, however when you click to go to a '/store/index/category' URL, the page still shows all the products. I'm unsure where to go from here. Obviosuly I need to wrap the exp:store tags in the exp:channel:categories tags but when I do it starts listing out multiple products like crazy. Documentation on the Exp:resso Store site isn't that thorough.

{exp:channel:categories channel="store"}
   {category_name}

{/exp:channel:categories}

{exp:store:search orderby="title" sort="asc"}
 {exp:store:product entry_id="{entry_id}"}

      {store_images limit="1"}

      {/store_images}

{title}

      {if on_sale}
       <s class="pre-sale-price">{regular_price}</s>
       {price}
      {if:else}
       {price}
      {/if}

 {/exp:store:product}
{/exp:store:search}


texts: Buy one get one free sales with exp:store

texts:
Using Exp:resso's store addon, is it possible to do buy one get one free type sales?

I see the promo codes but they dont seem to have the option to require more than one item in the cart to use it or anything like that


texts: Showing a grouped category drop down for safecracker?

texts:
Just wanted to know, is it possible to let the user select a category via safecracker, by means of a grouped drop down?

Something like this

Where by , in this case "England" is the parent category, and Avon, Bedfordshire etc are the child categories. Looking to use this for users to choose the category in safecracker, and search via this method in a Low search form.


texts: Best way to layout an employment history field in a safecracker form

texts:
I'm looking for some suggestions for the best way to layout an employment history field in a safecracker form. The paper version has a table with the following headers:

From – To (month/year)
Job Title
Name, Address & Telephone Number of Employer
Reason for leaving

I don't want to create multiple fields for each possible job in the list so I was thinking of going for a single textarea.

Can anyone suggest a nicer way of doing this? Thanks.


texts: New EE 2.8.1 install control panel login error

texts:
Any suggestions would be most appreciated with a problem I'm having with the control panel login.

I'm creating a brand new site, fresh install of 2.8.1, no modules. When I log in to the control panel it displays an error message that the form has expired. This happens in both FF and Chrome.

After looking around for possible fixes, I've added the following to the config file:

$config['admin_session_type'] = cs
$config['cookie_domain'] = .domain.com

This did not help.

To get around the problem, I have to clear the browser cookies and files each time I start working each day. Once I'm in, if I log out I can usually log back in right away. I've cleared the browser cookies and files after a successful login and can usually log in again, too. So the problem seems to come up after I've been away for awhile.

The other thing I noticed is that I have an .htaccess file to remove index.php from URLs. When I comment out that code, the control panel login works again, regardless of whether I've cleared the browser cache/cookies. I'm using the code directly from the EE docs for removing index.php (http://ellislab.com/expressionengine/user-guide/urls/remove_index.php.html). However, I have to remove the section about "Removes index.php from ExpressionEngine URLS" because it cause an internal server error. Here's the code:

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

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

I've checked with my host, and the server should support this. I also ran the EE wizard just to confirm, and all looked good from that end.

Do you have an idea what is going on, or advice for what to try? Thank you.


texts: Make a new live copy of EE 2.9.2 website to a new server with a new license

texts:
I am new to EE.
I have a client who has existing EE 2.9.2 website up and running developed by another developer.

The client wants to make a copy of this site to another server and point a new domain to the new instance. The client is not sure if the site uses core or licensed version of EE, but I cannot see in the header or footer of the site any Core labels so I assume it is a paid version.

I understand that 2 live sites cannot use the same license. The client is ready to buy another license. My questions are:

When the client buy the new license is it a problem that we need license for an old version of EE 2.9.2?
I can copy the site but how to change the license with the new one?
While I update the new copy with the new license, will this affect the
original instance in any way?
Will the developer/company get some notification that this license is used twice?


texts:
I guess the opposite of this How to move all Playa relationship to EE relationships

previously developer used the relationships field that the client now wants to search over using Low Search. Obviously relationships just stores the entry id compared to Playa which also stores the entry title.

Is there a reverse method?


texts:
I have a basic expressionengine template which I am using to display entries for 2 different channels. I am using an embed to pass different page layouts within the center of the template, this is based on conditionals.

{exp:channel:entries channel="dog|cat" limit="1" dynamic="yes"}
  (basic html here)
    {if channel == "dog"}
      {embed="tg/one"}
    {if:elseif channel == "cat"}
      {embed="tg/two"}
    {/if}
  (some basic html here)
{/exp:channel:entries}

I have also tried using..

{exp:channel:entries channel="dog|cat" limit="1" dynamic="yes"}
  (basic html here)
    {if category_id == "100"}
      {embed="tg/one"}
    {if:elseif category_id == "200"}
      {embed="tg/two"}
    {/if}
  (some basic html here)
{/exp:channel:entries}

When loading the final page, the parent template displays fine but doesn't show the appropriate embed or any embed for that matter.

It's probably worth noting that the embeds do not contain any expressionengine code, just html. Could someone please explain what I am doing wrong or the best method to accomplish this?

Thanks


texts: Assets folders showing...but no image thumbnails are loading

texts:
I'm using EE 2.7.2, PHP 5.3.27, and Assets 2.2.2 and I'm running into a weird issue that I haven't come across.  I'm getting 403 forbidden errors in my javascript console and I check the files on the server and they're there and the permissions are correct.

What I'm trying to do is load the module Assets in the EE CP and it loads the subfolders on the left hand-side but it doesn't load any image thumbnails on the right.  When I try and update indexes, I select a folder or two, and then I push the Update Indexes and it just greys out and doesn't do anything.  I checked my file upload paths and they are correct and I've loaded files in those folders to make sure they load without an issue.  My permission settings on the folders are all 777 and I made sure my cache folder and all folders enclosed were 777.

The red warnings are "POST http://mydomain.com/ 403 Forbidden" against the file "jquery.js?v=1386166017:178"

Any thoughts or help would be great?

(If you're wondering about an .htaccess issue...I use the same .htaccess file on another site...same provider...same plan...and it works...so something went weird on this install.)


texts: Assets thumbs missing when moving EE to a new server

texts:
I've seen a few posts here around this issue but none are leading me to a solution. I'm using Assets with an S3 bucket and have moved EE to a new server. The front-end of the site loads right up just fine, but all thumbs in the CMS are missing. I've tried using "Update Indexes" and it seems to complete fine but when going back to the "Assets / File Manager" screen the thumbnails are still missing.

We intentionally didn't move the cache folder over to the new server because we're trying to keep images out our Git repo.

Suggestions on how I might fix this?


texts: Super Search Questions - Partial search_words_within_words, Empty Search Strings, Single Search Result Redirect (SOLVED)

texts:
On the website http://constructionbook.bnibooks.com/, I'm trying to modify Super Search to get search on the website the way we want it, but I'm having some difficulties.

Super Search Version 2.1.4, Expression Engine Version 2.8.1

1. 'NO SOLUTION' Is there a way to have the parameter search_word_within_words apply to some searchable fields but not to others?

2. 'SOLVED' In order to make it so that an empty string returns no search results, I tried adding the conditional statement:

        {if super_search_keywords==""}

No results matched your query.

        {/if}

However, any empty search string still paginates and now returns "No results matched your query." 4 times (with a long empty space in between time). I believe this is because it hasn't actually stopped displaying any products. How might I change the results so that if the search string is empty, we simply return 0 results?

3. 'SOLVED' Is there a way to, if super_search_total_results is equal to 1, redirect the user to the page for that result. In other words, there's only one result, so they should be take to that page. I have the conditional statement:

        {if super_search_total_results==1}

        {/if}

But I'm not sure what code to put in that statement that will redirect to the result. What might I write that would redirect the user to that page?

Edit: I was able to take care of #3 with a redirect tag that is built into ExpressionEngine

4. SOLVED On our old website, we had it set up so that some searches redirected to category pages. We have a large number of categories, so it would be impractical to simply write an {if} statement for each one.

Is there a way we can build a table and have super search read that table, so that if a user searches a specific term, we can redirect them to a specific category page?

Edit: I was able to take care of #6 with URL redirects using Detour Pro


texts: Safecracker Registration - Get the corresponding channel entry_id for a member in add-ons

texts:
I am trying to find a way to get the corresponding channel entry id of a member that was registered via Safecracker.

A variation of my question has been answered here. However, this uses channel entry tag which means

it can't reliably be used by other plugins, snippets, etc because of some possible parse order issues
it is limited to template use only. Can't be used in add-ons.

Is there a way to do this?


texts: Cannot get passed customer details on checkout

texts: After upgrading to v2 we can no longer get passed the customer details section of this site https://www.baileysfurniture.com. No errors at all. Any ideas?


texts:
looking for an EE plug-in/add-on to enable a breaking news drop down banner like on CNN:

Thanks,
Marc