texts: Why doesn't the content of the page load again after postback?

texts:
I'm using the form_declaration() function in a module, and I fire a method when the form is submitted. I set the form's action to loop back to the sender so I can do some form validation serverside.

When I submit the form, the desired function fires, but the page content doesn't load. I can retrieve the POST data and call other functions to do checks on the data. Unfortunately the original page content doesn't load. I have nowhere to write where the user went wrong.

Of course I could echo out where the user went wrong, but I want the messages to appear next to the erring fields.

Below is my code and example output:

EE Form

{exp:database_add:form}
    <input class="text_box" type="text" name="username" id="username" />
    <input class="text_box" type="password" name="password" id="password" />
    <input type="submit" name="submit_button" value="Register" />
{/exp:database_add:form}

The form function to make the above code make sense in ExpressionEngine

function form(){
    $form_details = array(
        'action'        => '/expression_engine_practice/index.php/home/registration/',
        'hidden_fields' => array(
            'ACT' => ee()->functions->fetch_action_id('Database_add', 'register')
        )
    );

    $return_data = ee()->functions->form_declaration($form_details);
    $return_data .= ee()->TMPL->tagdata;
    $return_data .= '</form>';
    return $return_data;
}

The function that I want to fire (it does as is demonstrated by the example output to follow)

function register(){
    $username = $_POST['username'];
    $password = $_POST['password'];

    echo "Username: $username
";
    echo "Password: $password
";

    $data = array(
        'User_ID'       =>null,
        'User_Name'     =>$username,
        'User_Passhash' =>$password
    );
    $query = ee()->db->insert('exp_user', $data);

    //Prints out the contents of the table.
    $query = ee()->db->get('exp_user');
    foreach($query->result() as $row){
        echo "ID: $row->User_ID -- $row->User_Name -- $row->User_Passhash
";
    }
}

Output generated from register() - I entered "happy" and "gilmore"

Username: gilmore
Password: happy
ID: 45 -- pizza -- icecream
ID: 46 -- napkins -- paper towels
ID: 47 -- google -- facebook
ID: 48 -- lafferty -- daniel
ID: 49 -- gilmore -- happy

I checked the form action after it renders. The action is "/expression_engine_practice/index.php/home/registration" which is exactly the name of the page the form is sent from. The desired function fires and tasks are completed.

Why doesn't the content of the 'registration' page load again after postback?

Secondary question that will also help me close this issue.

How do I do form validation through a module? I want the text of any errors found in the form to be displayed in the form page after a postback.


texts: P&T Assets field "loses" image when editing from some machines

texts:
An image is stored in a P&T Assets field and has been working fine. An editor emailed me saying when she opens an entry to edit it, the image is gone. I tried to edit entries and it worked fine. I even logged in as her and used the same browser and it worked. I then watched her edit it on her computer (Win 7 with Firefox) and sure enough, the image is not there when she opens the edit page.

I made sure she was using the right url, https (and not http which caused problems), no domain mismatches, etc.

A strange problem to start with, the inconsistency makes it even more 'fun'.


texts: Change in output for playa:parents inside Stash when going from PHP 5.3.x – 5.4.x

texts:
This template works fine on PHP 5.3.x:

{exp:stash:set parse_tags="yes" conditionals="yes"}

{stash:st_content}

  {exp:channel:entries
    channel="people"
    url_title="{segment_3}"
    dynamic="no"
    disable="categories|member_data|pagination|trackbacks"
  }
    {exp:playa:parents
      channel="projects"
      disable="member_data|pagination|trackbacks"
    }
    …
    {/exp:playa:parents}
  {/exp:channel:entries}

{/stash:st_content}

{/exp:stash:set}

but after upgrading to PHP 5.4.x, each project instead outputs the name of the people entry and no other content.

Anyone know why?

EDIT:

It seems that Stash isn't actually to blame here because if I remove Stash tags I get the same thing.

My expected output at a URL like /project/by/persons-name/ would be

Project A
Project B

etc. with only projects assigned to that person via the Playa field.

Instead, what I'm getting is

Person's Name
Person's Name

etc. for every entry in the projects channel.

The updated template with Stash taken out looks like:

{exp:channel:entries
    channel="people"
    url_title="{segment_3}"
    dynamic="no"
    disable="categories|member_data|pagination|trackbacks"
  }
    {exp:playa:parents
      channel="projects"
      disable="member_data|pagination|trackbacks"
    }
    …
    {/exp:playa:parents}
  {/exp:channel:entries}


texts:
I need to get images added to a team page, however there is no error message showing, when viewing images that are in the library, they are showing as checkered boxes (checkered wallpaper). Not exactly where to go to resolve this issue.

now I see this error
"There was an error uploading your file: Your upload directory isn’t writable"
I am logged in as superadmin
drwxr-xr-x  7 exp_eng pg8693376 4096 Jan  6  2015 assets


texts: "Automatically turn URLs and email addresses into links" not working on Wygwam fields

texts:
I've got a channel using several kinds of fields (textarea, matrix, wygwam), and I need the "Automatically turn URLs and email addresses into links" functionality on the channel. I've set the option in the channel preferences, and it works as expected for the textarea field. The wygwam field, however, does't convert the same text into a link.

I'm on EE 2.7.2 and Wygwam 3.2.1

I've never had this problem before with other versions (of EE and Wygwam) - anyone else ever experience something similar?


texts: RTE in safecracker submits form when clicking 'link' or 'quotes'

texts:
very strange behaviour when using the rich text editor in a safecracker form on the frontsite.  Every works as expected except 2 buttons from the toolset: 'link' and 'quote'. When clicking these button, the safecracker form itself gets submitted.

Anyone?
rg,
Tim


texts: Which Twitter plugins are compatible with the new v1.1 API?

texts:
As we all know, the Twitter v1 API is being shut down, so any plugins not using the new API will stop working in the near future.

Which ExpressionEngine Twitter plugins have already been updated, and which will stop working soon?

Further reading:

Reminder: Twitter API v1 Being Retired Soon on EllisLab.com
Planning for API v1’s Retirement on Twitter.com

Note: I'm marking this as community wiki so that anyone with useful information can contribute.


texts: Duplicate url_title will not display content after appending number

texts:
I’m using datagrab to parse an xml feed with non unique titles. eg. every week I will get a feed with a sports result where the title will be Division 1: Results Round Up with the url_title becoming division-1-results-round-up which displays correctly in the browser mysite.com/division-1-results-round-up

The next time the import is run I will get another story with the title Division 1: Results Round Up which its url_title then becomes division-1-results-round-up1 and the story is not displayed in the browser

mysite.com/division-1-results-round-up1

Over the course of a season I will have a lot of Results round up storys which will not be displayed.

I’ve tried using other fields like story id or story intro as the url_title but it doesnt work either.

thanks in advance for your help

alan


texts: Default language not working with email confirmation message

texts:
Even if the default language is set in portuguese in the Control Panel, when a member receives an account activation email and click on it, the success message appears in english.

The member receives in his email box the activation link:

https://www.mysite.com/?ACT=190&id=SZMyPGQEmG

Once clicked an english message appears (normally should be in portuguese, because all the text are translated in this language):

For this kind of email box the activation link, the default language setting (portuguese) is not applied. To be in portuguese i have to translate this file:

system\ee\legacy\language\english\member_lang.php

Is there a configuration in the Control Panel, or a System Configuration Overrides to insert inside config.php file, to activate the language setting about activation messages?


texts: Is there a way to do an automatic follow up email with Freeform Pro?

texts:
I have a form on a website that offers a free download of a brochure, once submitted. I was wondering if there was a way to send an email notification after 2 days just asking if they were happy with the download?

I didn't know if it was possible to delay the notification somehow so that it was delivered 2 days later, then I could tailor the message accordingly. Or if there is a better way to do this?

Thank you.


texts: Hook for Adding Custom Channel Entries Parameter Option

texts:
I'm trying to do something like orderby="custom_order"

What hook would let you add and run a custom parameter option?

Thanks!


texts: Using code accross multiple functions in a plugin

texts:
I am new to plugin development, so sorry for this most likely very easy question.

In a plugin, where can I store variables and queries that will be used accross multiple functions?

Example of Private:

private function uploadsQuery() {

    $member_id = $this->EE->session->userdata('member_id');

    $sql = "
        SELECT COUNT(t.author_id) AS current_uploads, c.upload_total AS upload_total
        FROM exp_competition_purchase_upload_total AS c
        LEFT JOIN exp_channel_titles AS t ON c.member_id = t.author_id AND t.channel_id = '4'
        WHERE c.member_id = $member_id
    ";

    $query = $this->EE->db->query($sql);

}

public function details() {

    return $this->uploadsQuery();

    $data = $query->result_array();

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

}


texts: Manually Clearing Native Cache Only Clearing Primary Site, Not Current MSM Instance

texts:
Overview
Current System

EE 2.9.2
MSM 2.1.7 Build: 20140715
Redis server v. 2.8
Current cache driver is set to Redis

We have enabled EE to use native redis caching and have found that when we manually clear native cache, following the steps below, that the key values in redis related to the primary site are cleared, but remain intact for the current msm instance.
1. Steps To Reproduce Bug

Visit the control panel
Switch to a msm site from the top right of the screen
Go to Tools > Data > Clear Caching
Select all caches from the list
Click Submit
Review Redis key values

2. Expected Behavior

Redis key values related to the currently selected msm are cleared
Redis key values for other msm sites remain intact

3. Buggy Behavior

Keys related to the primary msm site are cleared
Keys related to the current msm instance still exist

Has anyone else experienced this behavior?


texts:
I noticed that there a handful of queries that ExpressionEngine runs that don't use any database indexes. An example is the query SELECT DISTINCT ee.* FROM exp_extensions ee WHERE enabled = 'y' ORDER BY hook, priority ASC, class which gets run on every page. Doing a MySQL EXPLAIN on this shows that it could benefit from a database index. However, since the number of extensions installed is usually fairly small, adding an index for this query might not be a huge win.

I realize that the official stance is to not add indexes because it could conflict with future updates. On the other hand, from a practical standpoint, I have to balance resource usage and page rendering speed against the official stance; also, I'm willing and able to removing indexes before upgrading to a newer version of ExpressionEngine.

Is there a set of queries that are prime candidates for database indexes that would reduce load on the MySQL server? Is there any best practice on this?


texts:
I would like to use segment_1 in my address to refer to different locations. For example, my-site.com/haiti, my-site.com/anchorage or my-site.com/portland. But they would always be directed to the same template group and template ({embed="HeWo/main"}).

The only way I know how to do this is to create a separate template group for each location. Otherwise I just receive an error message. I was looking at Template Groups and imagine it might be possible to use that to accomplish this but couldn't figure out how to do that.

Thanks for your help!


texts:
I seem to be getting 403 forbidden errors when using assets.

I can see this happening in firebug when I try to index folders and if I try to upload a new file, it simply shows an alert saying 'undefined'.

Rooting around in the mcp.assets file I tried echoing the member_id from:

$this->EE->session->userdata('member_id')

and it gave me '0' - so perhaps it's not getting the session value for some reason?

If I change the field to the native EE File field, I can upload the files successfully.

I just migrated servers, so it's probably something connected to that as I had it working before. I've tried uninstalling and re-installing the module with no joy.

I'm on Assets  2.1.3 and EE 2.6.1 on a server running PHP 5.3.25

Any suggestions would be great!


texts: is there a way to show a random product using Expresso Store?  The product tag seems to require entry_id="{entry_id}"


texts:
I'm trying to update template code on a EE site I inherited and whenever I save the template, after making my changes, the HTML formatting gets all screwed up and the JS is completely stripped out. For example, almost all of the HTML carrots are turned into:

&lt; and &gt;

And the JS is just:

[removed]

Even if I don't make any changes to the code and just save the template in the inline editor this happens - new to EE and trying to figure out what's causing this. EE version 2.2.1, Wygwam 2.3.2... no other obvious add-ons that might cause issues to me. I found the protect_js config option and set it to 'y' (wasn't previously included) but it doesn't seem to make a difference. If I inspect the actual editor element I see a bunch of classes for markItUp - is that normal?


texts: Integrating recurring payments and Store

texts:
Here I am with another Expresso Store question.
My client just decided to sell memberships along other items (books), and this kind of item requires a recurring payment.

I know that Store doesn't handle recurring payments natively, but I know that it's possible to do it with PayPal, and PayPal is the only payment method my client is using. Obviously I would like to use the same Store cart and checkout form for selling both regular items and memberships.
I was wondering if either:

Someone else tried to integrate PayPal recurring payment with Store and if so which approach did you use?
Would it be possible to also add subscription management functionality using Zoo Visitor (or some other add-on)?? Suggestions?
There's some Store add-on around that does the trick - I've looked for it, but I could have missed it

Any suggestion about which kind approach I should choose would be much appreciated. I think this is a common problem and I'd like to share my solution for the benefit ot the community.


texts:
Is there a place in EE to store custom config variables and access them in the templates? I need to be able to use these variables in conditionals as well as output them. Furthermore, I need to have different sets of config values depending on which domain EE is on (e.g. if site_url = 'foo.com' ...).

Currently, I'm using globals, but it's not really ideal.


texts:
memory_limit is 2048M (from 7GB)

but I got error when indexed big amazon s3 folder

  PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted
  (tried to allocate 25415 bytes)

Tried add $config['assets_memory_limit'] = 1024; and $config['memory_limit'] = 1024;

EE 2.9.2, Assets 2.5

I see they already fixed this problem in version 2.3

Fixed an issue where Assets could run out of memory when browsing
large folders.


texts:
I've upgraded a site to EE 2.7.3 and upgraded Wygwam to 3.2.2 , but now when I try and edit or publish a new entry, I get the error below:

Fatal error: Call to undefined method Wygwam_helper::custom_toolbar() in /var/www/vhosts/adaptservices.ie/httpdocs/system_adapt/expressionengine/third_party/_wygwam/ft.wygwam.php on line 478

The module seems ok, I access it's settings, just not the channel entries where it's used.

The upgrade went fine offline, but the error appeared when I moved the site online.

Any ideas?

Thanks,


texts: I'd like to show a list of available upload destinations on a form in a custom module, are there functions to help with this?


texts: How to stop registration emails from going to spam?

texts: I have an EE site with 30-50 daily registrations.  We're noticing that a lot of the registration confirmation emails are going to spam folders lately (through testing and user reports, along with a lot of non-spam pending members).  I've tried running the email both through php mail and SMTP, with similar results.  This isn't a major area of expertise for me, so I'm hoping some of you have suggestions for how to reduce the chance that these automated emails end up in someones spam folder.


texts: How do I create a set it and forget it, self updating copyright footer?

texts: If a client is interested in a copyright range in their footer rather than just current years, how can i make this dynamic in EE?


texts:
I upgraded my site from 2.1 to 2.6 and I get this error when trying to go to feildtypes:

  Unable to load requested field type file: ft.rel.php.
  Confirm the fieldtype file is located in the expressionengine/third_party/ directory

Any ideas?


texts: Add-on for Appointments scheduler suggestions?

texts:
Looking for an appointments scheduler add-on for EE. Looked at rEEservartion but not quite the right fit. Basically what we need is the following:

A system enabling appointments to be scheduled for a one-off 2-day event with set times of half an hour from 10 - 5.

Signed-up members - say 10 in total - form a 'pool' which need to schedule meetings with each other. Each member can click to 'book' (no payment involved) a half hour slot with another member of the pool and set this to unavailable in both their own scheduler and the booked one.

So, Mr Smith clicks on "10-10.30 AM" on Mr Jones Scheduler and the add-on blocks out this slot on both Smith and Jones' schedule. It also sends an email to both members notifying them.

Conversely it should also be possible to cancel this (by Smith or Jones) and free the slot again.

Is there any add-on for this? Does not need to hook up with any payment system...purely internal. I think it is also possible to do through channels and Zoo Visitor maybe and by-pass the Add-on.

Anyone done anything like this?


texts: Low Variables: must new variable be entered in CP?

texts:
I just started using Low-Variables as a Snippet replacement (among other uses of course) because I need Snippets to be saved as files.

Now I am wondering if a new Low-Variable always has to be entered through the CP or not. It looks like it to me but I was hoping to have some standard variables for different projects that I could just throw in and be ready to go.

Thanks and Cheers,

Marc


texts: Twitter Search 2 Plugin PHP Error (stdClass::$to_user_id_str)

texts:
Some of my ExpressionEngine (EE2) websites that run Twitter Search 2 by Exp:resso have recently started throwing out PHP Error Notifications, and I can't see why.

A PHP Error Was Encountered
Severity: Notice

Message: Undefined property: stdClass::$to_user_id_str

Filename: twitter_search/pi.twitter_search.php

Line Number: 107

The code inside the template is:

{exp:twitter_search q="from:@xxxxxx+OR+from:@xxxxxxxx+OR+from:@xxxxxx" rpp="5" lang="en" cache="yes" auto_links="yes"  refresh="5"}

{from_user} - {text}

{relative_tweet_date} ago

{/exp:twitter_search}

Nothing has been changed in the template code or server side, it just started throwing these notices.

I'm wondering whether it could be Twitter API limits as the sites are on the same server, but the tweets are still being pulled and rendered correctly, so it's not just appearing blank.

Any suggestions would be greatly appreciated.


texts:
I don't know how to get pagination to work, seems like it should be simple but I just don't know. I am new to this particular aspect of expression engine. Can anyone help.

Here was what I did put in but for the pagination it just renders the curly brace pagination code and the rest of the channel entry code renders correctly.
Thanks

{exp:channel:entries
   channel="publications"
   orderby="title"
   sort="asc"
   paginate="both"
   Limit="15"
   }

{pub_year}

 {title}

       {paginate}

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

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


texts: Relationships - can I get child channel_short_name?

texts:
I have a relationship field where the parent can select multiple children from multiple channels. When it comes time to display everything, I need to know what channel the child entry comes from so I can display the proper fields.

I tried:

{parent}
{parent:channel_short_name} - {parent:title}

{/parent}

but no go. It literally just displays "{parent:channel_short_name}".

Any ideas? Just go get Playa?
Thanks
Amanda

Edit: Haha, yea never mind. I must have had a typo. It works fine.


texts: MX QR Code Generator: "cannot decode raw data"

texts:
I'm trying to use the MX QR Code Generator and using a very basic example from the website like so;

<img src='{exp:qr_code type="" action="tel" tel="1234567" data="ExpressionEngine" title=""}' alt="QR code"/>

When I load the page Safari just throws "Safari can’t open the page “http://mydomain.tld”. The error is: “cannot decode raw data” (NSURLErrorDomain:-1015)" error.

There is a type parameter in the code as well, but the documentation on the site has no reference to this.


texts: Discussion Forum throwing error when trying to view

texts:
I just installed the Discussion forum module on a local site and have been going through the docs setting it up. When I try to view it on the front-end I get the error below..any ideas?

Fatal error: Call to undefined method EE_Template::parse_date_variables() in /Users/mlohrman/Sites/synergetics/public_html/synerg/expressionengine/modules/forum/mod.forum_core.php on line 8298

EE v 2.7.2
Discussion Forum v 3.1.15


texts: Stash Issue Not Getting Values In IE 8/10 & Safari

texts: I'm having a huge issue, not sure what caused it though. I'm using stash to get 2 values of a users account. I've been using Stash for the past 3 months to load these values into a form with no issue. This morning it no longer works in IE or Safari however works correctly in Firefox and Chrome. Any suggestions on what I should look for or what have caused this to stop working? No updates have been done to Stash or ExpressionEngine.


texts: 404 error when trying to access a template with an beginning underscore _ after upgrading to 2.5.3

texts:
I'm running into this strange issue I've never seen before. I have a template that starts with an underscore, I'm using it to pull in some results via ajax.

After upgrading to 2.5.3 and only on my local machine, I'm getting a 404 response when I try to access the template. Going to view the file in Template Manager, it seems like now every template that's starting with an underscore is grayed out.

Any idea what's going on here?


texts: infinite scroll appearing below pagination

texts:
This is my second question on Infinite Scroll and hopefully it is not another typo causing the problem!

I have everything working now, with one exception. New results are appearing below my pagination link. So when I select view more, they load below that, rather than at the bottom of the new entry's listed.

So I want the pagination to remain below all entries shown.  Below is my code:

SNIPPET:

        {exp:channel:entries
            channel="blog"
            dynamic="no"
            order_by="date"
            limit="2"
            status="open|tall|regular"
            paginate_base="_embed/ajax_scroll"
        }

                        {categories}{category_name}{/categories} / {entry_date format="%F %d, %Y"}

{title}

                {blog_excerpt}&nbsp; &nbsp; &nbsp; read more

        {paginate}

            {if next_page}See More Posts{/if}

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

TEMPLATE:

{embed="_inc/site_head"}

            AniA Collection Bridal Blog
            {embed="_embed/blog_search"}

        {snip_ajax_scroll}

            $(document).ready(function(){
                $('#blog-container').infinitescroll({
                    behavior     : 'twitter',
                    navSelector : ".morePosts",
                    nextSelector : "a.more",
                    itemSelector : ".entry",
                    contentSelector: "#blog-container",
                    loading: {
                        finishedMsg: "", //#text you want to appear when you reach the end of the list
                        msgText: "", //#text to appear while loading more items
                        img: "" //#image to display while loading
                    },
                    extractLink: true, // This is crucial if you want it work properly. Setting this to false or excluding it will not allow the script to work with EE
                })
            });
            // Unbind normal behavior
            $(window).unbind('.infscr');

        // Bind normal behavior to the click function and prevent the browser from redirecting to the URL.
        $('a.more').click(function(){
            $(document).trigger('retrieve.infscr');
            //$(this).hide("fast");
            //$(this).parent("p.morePosts").hide("fast");
            return false;
         });
    </script>
    {embed="_embed/blog_nav"}

Thanks and let me know if you need anything else!


texts: Category Parent & Children Loop Layout Help

texts:
I'm trying to create a specific layout that makes use of categories and category children. I'm trying to use GW Code Categories but can't seem to make the layout work as I need it to.

I basically need to loop through parent categories with title & description and then within that loop, go through all child categories and display title, description & image.

This is the code to be looped. I've put in descriptive variables to illustrate what I'm trying to do.

{parent_cat_name}

{parent_cat_description}

{child_cat_name}

{child_cat_description}

So this entire block will loop for however many parent categories there are. And then the child categories will loop within the parent categories.

Is there a way to get this to work with GW Code Categories or any other plugin or native way?

Hope this makes sense.

Thanks for any help.


texts:
I'm importing new members using the Member Import Utility, but get errors for duplicate screen_name. These members won't be posting so screen name is not used and email is username.

I've added a condition in Validate.php and EE_Form_validation.php to stop the validation:

if (1 == 2 && strtolower($this->cur_screen_name) != strtolower($this->screen_name))

this works okay when a single member registers via front end form, but not when importing XML file.

so I then hacked tools_utilities.php, commenting out:

                            /*
                        case 'screen_name':
                            $this->validate->screen_name = $tag->value;
                            if ( ! in_array($tag->value, $s))
                            {
                                $s[] = $tag->value;
                            }
                            else
                            {
                                $this->errors[] = array(lang('duplicate_screen_name').$tag->value);
                            }
                            break;
                            */

Seems to work, but has anyone had other issues with this? it would be good to know before I import 10K members.


texts: Restrict Assets directory access per-user in Safecracker

texts:
Taking a look at Assets 2.0 docs I can see that with the {exp:assets:folders} tag we can determine the folder where the photos are uploaded in a simple file uploading field, my question is if the same can be done with the regular assets field, so that when the users click on the button to add files they can see only the pre-determined folder and its subfolders? If this is possible then what is the code? I've only used a simple {field:field_name} to load Assets inside Safecracker so I'm not familiar with more complex solutions.

Thank you!


texts:
Even if you put 'ignore_pagination' => 'y'
still does not work on the page with pagination
ee 2.8.1
Seg2Cat 2.8.0


texts:
This is on EE 2.7.2. I have just moved a site to a new server. The site was working perfectly before hand, but now that it was migrated all the backend form submissions only return JSON. Some examples:

Save an entry, I get a page with just: {"message_success":"Entry Has
Been Updated"}
Clear the cache: {"message_success":"Cache files have
been deleted"}
Loading entries page: big list of JSON entries
Saving an entry: {"message_success":"Entry Has Been Updated"}
Sometimes while reloading one of these JSON pages, it just logs the
user out and shows a page with "Logged Out" and I have to wait a few
minutes before I can load the backend login form.

Some submissions seem to work:
Saving Template General Configuration: works as expected

I was wondering what could cause this. I am assuming it is a path setting, but wasn't sure what would only output JSON instead of loading a page. I also noted that there are no JS errors, but the developer log is full of this message:

Deprecated function generate_json() called in system/expressionengine/third_party/structure/mcp.structure.php on line 220.
Deprecated since 2.6. Use the native JSON extension (json_encode()) instead.

Is anyone familiar with this issue and what may be causing it? Thanks!


texts: Is it possible to limit display of products in the catalog on a per template basis in Brilliant Retail?

texts:
In BR's settings, it is possible to limit the number of products displayed in the catalog and paginate the results. However, that seems to set the limit for any and all catalogs referenced throughout the site.

What I'm looking for is a way to limit it per template; for example on the main page, it is a separate template from the 'products' page, and a separate 'catalog'. I want to change the product results shown on the main page to something small, say, four products, while still allowing the products shown on the "products" page, to stay at the default setting of $N.

I looked through the BR docs and 'limit' does not seem to be an optional template variable or parameter. I've tried setting it by using {exp:channel:entries channel="channel-name" limit="4"} but no matter where I place it in the template, it just shows the default product count, set at 8, four times over.

I tried the same without the {exp:brilliant_retail:catalog} code and it displayed nothing, even though I was specifying the url_title. I also tried by category ID, I presume I have that info by hovering over the edit link in the BR category settings, I'm not entirely sure. But that did not work either.

Is there a way to do what I'm seeking to do? Maybe I'm just missing something obvious? Thanks.


texts: How do I set a field value in entry_submission_ready hook handler?

texts:
It seems that changing the values of the $data argument variable doesn't change anything.

Is there a way to change the value of some channel fields inside the entry_submission_ready hook?


texts: Changing the url structure of established site?

texts:
Just a quick question regarding the URL (template) structures in expression engine.

I have an established site that has been live for almost a year. I was brand new to EE when I set up and therefore I am finding better ways of building the site all the time.

I have a template group and set of templates like so

template_group/template/

walks/find/
walks/findwalk/
walks/view/
walks/search/

obviously walks/view/ is is my single entry template.

walks/find/ is my main listing template. This includes a list of all the latest entries, together with a search box.

walks/findwalk/ is exactly the same as the find template, but it displays results from categories, so the url ends up something like walks/findwalk/category/(catergoryname)

walks/search/ is the same again, except it contains my search results.

I know, not very DRY, but I was new.

So I am looking at simplifying it slightly and condensing the templates down. The way I see it, I would be quite happy to have single page view separate, and a single template for the listing page.

I have just started using Switchee, and I think this would be good here.

Ideally my listing template would be walks/find/ which, by using switchee, would check for {segment_3}

walks/find/search
walks/find/category
walks/find/

So that's fine. Nicer URL's, less templates. However, I am a bit unsure as to how this will effect my current search results in search engines.

By far, the url thats hit on most is walks/find/, so that will stay the same, but then nearly all the next most hit urls are: walks/findwalk/category/(category_name)

What will happen to these results in google? Is there a way to ensure the links stay active?

Sorry for the long post!

EDIT:

Just realised I'm not even using the index template within the template group, so i could clean these urls up a bit further but dropping the need for find altogether.

walks/search
walks/category
walks/
walks/(entry_title)

This would look a lot better. Just wondering if there is a way to drop the category at all? This would mean i could get walks/category_name/entry_title which would look better still!


texts:
Is it possible to specify different prices for products in Store depending on the member group logged in.

For example, on our EE/Store site (currently only selling Retail) our client wants now to sell to Trade and Retail requiring two different prices. We could specify two inventories but obviously these would then cause problems as we would have multiple products with the same SKU.


texts: Moved MSM site to new server now images wont show on frontend

texts:
I moved my MSM installation to a new server and now am unable see uploaded images on the front end of either site.

My setup looks like this:

└── domain1.com
    ├── admin.php
    ├── index.php
    └── assets
        ├── css
        ├── img
        ├── js
        └── templates
             ├── default
             └── domain2
    ├── images
    ├── system
    ├── themes
    └── domain2.com
        ├── admin.php
        └── index.php

If I visit domain1.com or domain2.com front end I can only see background images set through css (contained in '/assets/img' folder.  I cannot see any of the images rendered through EE in the 'images' folder.  Permissions are set to '777' for all image folders.

If I log into the backend I can see the images in file manager and view them as well by clicking on them - images are rendered correctly.  I changed image uploaded preference paths for all folders after moving the site and assume these are correct as I can see the images in the back end as previously mentioned.

I am a bit baffled here.  I have cleared browser and EE cache. Any ideas?

** Edits to included information requested **

.htaccess

Options -Indexes

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

I have simply dropped in the .htaccess from the previous domain, but I have noticed that this is not working.  To access deeper pages I am still have to add the "index.php" unfortunately.  This htaccess did work correctly on previous domain.

Check your upload preferences paths are correct. On the frontend can you target the (uploaded) images directly? Yes, I can navigate directly to an image so I assume the path are correct.
Can you access domain2.com from the frontend? Yes, and domain2 has the exact same issue as well, backend css images work, images uploaded through CP do not.
With that folder structure you might have issues with being able to
access domain2 from domain1. e.g. domain1.com/domain2.com – I may need to clarify: I was using domain1.com and domain2.com for simplicity really I am dealing with a cPanel and an addon domain.  So domain one is in the cPanel account and domain2.com is simple a folder inside that currently.  I am going to add the subdomains dev.domain1.com and dev.domain2.com to these sites as I figured this would allow more direct access for EE and maybe the url structure is confusing EE.


texts: How to return P&T Dropdown option label within Channel Form

texts:
I'm having trouble returning the option label within a Channel:form tag.

The selected option value returns correctly using {my_drowpdown_field_name}.

However, the option label is not returned using {my_dropdown_field_name:label}.

I'd also like to display a list of possible options using the following:

    {options:my_dropdown_field_name}
            <option value="{option_value}"{selected}>{option_name}</option>
    {/options:my_dropdown_field_name}

This doesn't seem to be looping through the options. I have tried replacing {option_value} with {my_dropdown_field_name}.

Using EE 2.7.3 and P&T Fieldpack 2.1.1.

Thanks for any help!

edit: just to clarify, {my_dropdown_field_name:label} works fine within Channel:entries tags.


texts: Images with Accent Mark Characters in Filename Not Showing

texts:
I've done everything that I can think of to fix this issue and I can't seem to get an image to output when it has an accent mark in the file name. The same image will show when an à is changed to a. The character set is set to UTF-8 on our installation of EE. Any suggestions?

We are using a third-party plugin called Photomule and inside photomule_model.php I thought this change would work:

$filename  = strtolower(preg_replace('/[^0-9a-z\-\_\.\é\à\á\è\ç]/i', '', $this->path_info['filename']));

This image is also inside of a channel field called Feature Content with the channel field name gencon_feature which is inside of a Matrix.

Currently using v2.7.2 of Expression Engine.


texts: Matrix 2.5.3 with Assets 2.0.5 - not behaving correctly

texts:
I'm having a very bizarre issue with a fresh install of EE 2.5.5, Matrix 2.5.3 & Assets 2.0.5

I created a field group and then created a matrix field. When I did so the matrix cp did not look like it normally. Additionally when changing a cell type, none of the options change. However if I save it and reload then the options have changed to the appropriate cell type. Also on the publish page everything looks wonky.

What I've done so far, re-uploaded both assets & matrix to the site. That didn't change anything so then I re-uploaded the entire EE themes folder - still no change.

If I change the cell type to date and save I'm redirected to the CP home and have to renavigate back to custom fields. If I then change the cell type back to assets I get the following php errors.

  A PHP Error was encountered

  Severity: Notice

  Message: Undefined index: assets

  Filename: assets/ft.assets.php

  Line Number: 268

  A PHP Error was encountered

  Severity: Warning

  Message: Cannot modify header information - headers already sent by
  (output started at
  /path/to/system/codeigniter/system/core/Exceptions.php:170)

  Filename: libraries/Functions.php

  Line Number: 809

  A PHP Error was encountered

  Severity: Warning

  Message: Cannot modify header information - headers already sent by
  (output started at
  /path/to/system/codeigniter/system/core/Exceptions.php:170)

  Filename: libraries/Functions.php

  Line Number: 405

I'm sure the error is somehow related to not finding files correctly. I've re-uploaded everything and checked path settings and everything checks out.


texts:
I have a EE website with around 20+ member groups and members from each of the membership groups should only have access to browse (front end only) certain channels of the website after signing in (front end).

Example:
Membership group 'College 1' and 'College 2' should only be allowed to view channel 'book3', 'book5' and 'book7' when they browse the website (front end). I can do it in the template with condition, but it might be a bit messy to update the templates every time I add/remove a member group.

I've been trying to search for a solution, but have not found any yet, hopefully you have a solution.

Is this a function that is built-in in ExpressionEngine or if there are module you can recommend?

Thanks


texts:
I'm in the process of installing EE on my website. All the information that I added in the data section are correct. I even contacted the host provider and everything that I have been doing seems right. However, I'm unable to proceed with the installation as I keep getting this message:

A Database Error Occurred
Unable to connect to your database server using the provided settings.

Filename: controllers/wizard.php

Line Number: 1544

I would really appreciate the help on this matter.


texts:
I am looking for a starter kit just like the one of starterfiles.com. This domain name is not longer in use and doesn't provide the download file anymore. Is there any, not named EE, that why I can't find it, github project that provides a template starter kit for ExpressionEngine 2?

Thank you.


texts: Champagne 2 get_channels() on a non-object

texts:
I'm running EE 2.7 and running champagne 2.3.4 (which is the latest).  When I went to change my email template in the extensions section I got this error:

Fatal error: Call to a member function get_channels() on a non-object in [system_path]/expressionengine/third_party/champagne/ext.champagne.php on line 188


texts: When I select "Allow only safe HTML" for EE's discussion forum it correctly allows tags for links, images, bold etc but it doesn't seem to allow <ol> or <li>. Is there any way to add these to the list of safe HTML tags for EE?


texts: Update loop in 2.7.2 on AWS w/ load balancer

texts:
About a month ago I upgraded EE from 2.5.2 to 2.7.2 in my staging environment with absolutely no problems. The upgrade went smoothly and it's been running like buttah.

Last night, I attempted the same upgrade in our production environment following EE's update instructions to the letter. Things were fine until the update wizard ran (step 6 in the instructions). The update wizard would appear to complete its updates, I would remove the "installer" directory from the "system" directory, but then when I'd enter the URL to go to the control panel, the first screen on the update wizard would display instead despite it actually being removed from the server.

Both the staging and production environments are on AWS, but prod is load balanced on two servers, but linked to one database (I think). There's no caching, except using CE Cache.

I'm wondering now if it has to do with both web servers having the control panel on it? Anybody have any ideas?


texts:
I am having and issue with pagination.  I have 8 entries and displaying 4 per page.  Because of the layout I cannot include the pagination in the first channel entries tag that displays the entries so I need to add a second channel entries tag just for the pagination.  Problem is when I click the next page and display the next 4 entries I still get the same first 4 entries.

Messages

{exp:channel:entries channel="messages" limit="4" dynamic="yes" disable="categories|member_data|category_fields"}

{entry_date format="%M"}
{entry_date format="%d"}

{title}

Speaker: {speaker}

{/exp:channel:entries}

{exp:channel:entries channel="messages" limit="4" disable="categories|member_data|category_fields" paginate="bottom"}
    {paginate}
        {pagination_links}

            {first_page}

First Page

            {/first_page}

            {previous_page}

<

            {/previous_page}

            {page}

{pagination_page_number}

            {/page}

            {next_page}

>

            {/next_page}

            {last_page}

Last Page

            {/last_page}

        {/pagination_links}
    {/paginate}
{/exp:channel:entries}


texts: Nothing seems to work to successfully remove index.php

texts:
No matter what I try, I can't seem to successfully remove index.php. I'm wondering if the host is lacking some setting in the server environment... otherwise the site hosts just fine.

Here's what I've done:

-- Made an .htaccess file containing nothing but the supported method

(http://ellislab.com/expressionengine/user-guide/urls/remove_index.php.html)

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

-- Cleared the "Name of your site's index page" field in General Configuration

-- In system/expressionengine/config/config.php, I've tried setting the $config['uri_protocol'] to each of the alternate configurations.

I'm running EE 2.6.1. Can't seem to figure out what's going on, at all.

The only thing I can think of is that I'm running from an IP address type URL, e.g. http://xx.xx.xxx.xx/~sitename, but I don't see why that would affect anything.

Thanks to ALL who take a stab at the answer - this is driving me a little bonkers.


texts:
First of all, thank you ahead of time to all who answer. My env. is EE 1.6.9, PHP 5.4.39, on Linux and hosted on a 1and1 shared server.

We recently moved servers and have gotten all of the website working except one section. The problem resides in the recipes section (http://vitalitymagazine.com/recipes/) of the website. The problem is in the individual recipes, when viewing the recipe the EE tags ({recipe}{/recipe}, etc.) don't render the corresponding code.  See a screen capture here:
http://snag.gy/0TD7g.jpg

I've checked the FieldFrame 1.4.3 path settings and they are accurate. Furthermore I would think if they were incorrect other sections would have the same issue, but it's just this section.

Has anyone faced a similar issue and solved it?


texts: Cannot convert exp_channel_data to INNODB

texts:
I’m currently coming against an issue with a large EE2 site that I’ve recently moved to EC2/RDS. To take advantage of the RDS snapshots and not risk data-integrity issues (as per Amazon Recommendation) with the DB Snapshot/Backups, we need to convert all tables to INNODB.

The problem is that my exp_channel_data table is baulking with an error
Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline..

All other tables converted fine. We have around 215+ custom fields across the entire site, so that means we've got around 430(ish) columns in the exp_channel_data table.

Anyone come across this or does anyone have advice on how to fix? Google suggests doing some my.cnf changes etc - but RDS doesn’t give me this (or  console access), so I'm at a bit of a loss as to how I can sort this.

Looking at the datatypes of all the columns, none of them are particularly large - EE mostly creates fields with datatype of TEXT and TINYTEXT - but I have some in there with Decimals and/or INT.


texts:
I'm getting this message in EE 2.8.1 dev logs with Playa 4.4.5:

  A template loaded on http://dev.tear.org.au/projects/ is using the
  deprecated {parent:url_title} tag. Please use Playa’s var_prefix
  parameter instead.

This answer helped, but not enough.

I've seen the var_prefix docs concerning the module tags, but can't find info regarding the fieldtype tag, which is what I am using.

My code looks like this (simplified):

{exp:channel:entries...}
    {project_content} <-- PLAYA FIELD
    {content limit="1"}

            {parent:title}

    {/content}
    {/project_content}
{/exp:channel:entries}

How would I need to modify my template to use the new parameter?

Thank you


texts: Getting P&T Dropdown to submit a null/default/empty value?

texts:
I have a P&T Dropdown that has a default value of " : Select one..." and once you select and submit any other option than that default... there seems to be no way to reset that fields value back to the default.

Consider I have Field#1 "Are you Coming?" and the another Field#2 "What you eating?".
When I use selects Field#1=Yes then they get to submit field#2 as "Fish".
However, they may later come back and resubmit as Field#1=No in which case I reset Field#2 (via JS) to " : Select one..." and set it to "disabled" and submit. This however does not reset the field.

Figure 1


texts: categories: parent and children - to display using twitter bootstrap

texts:
I am using twitter bootstrap and was wondering if it is possible using EE's native category channel tags, to append a class="dropdown-toggle" to any parent category that contains children, and apply class="dropdown-menu" to the children's unordered list.

All products

        Corn Tortillas

Tortilla 1

Tortilla 2

Tortilla 3

Better-For-You Tortillas

Artisan Style Tortillas

Wraps

Tortilla Chips

Tostadas

Taco Shells &amp; Kits

Chicharrones

Salsa, Dips, Toppings

All Others

I took a look at this add-on, but from looking thru the examples, it doesn't seem to do what I need: http://gwcode.com/add-ons/gwcode-categories


texts: Module development: how to follow OOP best practices

texts:
I'm developing an EE module and I want to follow OOP best practices and fulfil the MVC architectural pattern, I have a few questions about how to do this:

Where should I define a PHP Class for business logic inside a Module?
What are some examples of existing add-ons that are written in a fully OOP style?


texts: Inconsistent ExpressionEngine installation version

texts:
I have a ExpressionEngine installation SVN'ed in one site that I would like to clone to another site.

Here is the process that I did

Extracted EE 2.7.2 version(used 2.7.2 because that is the version used in my site.)
SVN checkout my files using the --force flag to overwrite some files. Take note that I only version control the files that I have edited(templates, configs, etc) and did not bother to include the core files
Exported and imported the database from the original site to the new one.
Set some permissions(cache, config, etc)

Everything seems well, except I see this in the control panel homepage

Your ExpressionEngine installation’s version (..) is not consistent with the reported version (2.7.2).

How do I fix this?


texts: How do I embed a slide deck from Slideshare

texts:
what´s the best way to embed an iframe from Slideshare into an entry? Here´s an example.

<iframe src="http://de.slideshare.net/slideshow/embed_code/17368866" width="427"
height="356" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"
style="border:1px solid #CCC;border-width:1px 1px 0;margin-bottom:5px" allowfullscreen
webkitallowfullscreen mozallowfullscreen> </iframe>

I use Content Elements, but non ofthe sub fields CE offers will show the deck. So, I assue, that I need to add an extra field. Which one would be the best?


texts: PT Field Type Checkboxes falling over when using {switch} in pairtag

texts:
I'm currently using PT Field Type Checkboxes to echo out an entries list, which is working fine.
However when I combine this with the {switch=""} tag. This is blowing up and white screening the entire page when incorporating the switch tag.

    {cf_idea_features}

        {option} - {switch='foo|bar'}

    {/cf_idea_features}

The docs seem to suggest that switch is supported: https://github.com/pixelandtonic/pt_field_pack/blob/master/Docs/Pages/pt-checkboxes.html#L62

I'm running:
EE - v2.7.2
Field Pack - Checkboxes 2.1.1

Is this a bug or is switch implemented into Field Pack Checkboxes differently to expression engines channel loop?


texts: In latest version of Wygwam for EE: can I add a custom class to a table without going into view source mode? I am thinking something similar to links, where I can click on the advanced tab and set the class, id, etc. But for tables, there is nothing similar... My clients are not good at viewing or changing source, so this feature would really help if it's available.


texts:
I'm trying to get Matrix to work inside my Zoo Visitor Registration form... I have this:

{exp:zoo_visitor:registration_form return="{current_url}"}

    {embed="_functions/_course-list-matrix"}

{/exp:zoo_visitor:registration_form}

Then inside the embed I have:

{exp:channel:entries channel="course" dynamic="no"}

        {title}
        <input type="checkbox" value="">

        {!-- Matrix Fields --}

        {!-- Create New Row --}
        <input type="hidden" name="member_courses[row_order][]" value="row_new_0">

        {!-- Course ID / Name --}
        <input type="hidden" name="member_courses[row_new_0][col_id_20]" value="[{entry_id}] [{url_title}] {title}">

{/exp:channel:entries}

The registration form submits perfectly. But the Matrix field is just blank. I've double checked the field name and also the col ID numerous times and it's not doing anything...


texts:
Hopefully I'm missing something obvious but cannot get MX Maps to work with custom third party theme folders.

The module appears fine when using the config_override for: 'third_party_path' for modules but when I override 'theme_folder_path' + 'theme_folder_url' to custom folders - I get a JS error on front end.

mysite.com/themes/third_party/mx_google_map/mxgooglemap.js'

All other modules + extensions work fine with the override :(

EE:2.8.1

MX Map: 1.5.3.140526


texts: Category group and category ID from that group using Low Seg2Cat

texts:
I have code which looks like

{exp:channel:entries channel="collection" category_group="5" category="{segment_2_category_id}" url_title="{segment_3}" status="open"}

I expect to retrive an entry from the channel named "collection" and with category ID# from category group ID#5, but what I'm getting is an entry (sometimes, it is based on segment_2) from category group ID#1. It looks like Low Seg2Cat is always pulling first category ID but not related to category group.

Category name/url title from segment_2 exists in another category group.

Any clue what is going on?

Thanks


texts: Using the product form tag and javascript to duplicate a product modifier field

texts:
Im building a ticketing system with expresso store and I'm having issues duplicating the product modifier. My custom modifier is a text input field that adds a name to each ticket.
Any Ideas on what would be the best way to go about this?

here is my product template:

    {embed="store_example/_header"}

{exp:store:product_form }

    {exp:channel:entries channel="tickets"  }
        {exp:store:product entry_id="{entry_id}" disable_form="yes"}

Ticket Price: {price}

            {modifiers}

{modifier_name} {count} <input type="text"  name="items[{count}][{modifier_input_name}]" /> +

<input type="hidden" name="items[{count}][entry_id]" value="{entry_id}" />

            {/modifiers}

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

<input type="submit" name="submit" value="Add to Cart" />
{/exp:store:product_form}
{embed="store_example/_cart"}
{embed="store_example/_footer"}


texts: Can Low Search keywords also search in categories?

texts: If I enter the keywords "Topic Name" into the search form, can Low Search also find entries that have been tagged with "Topic Name"? This would be something similar to Solspace's Super Search "keyword_search_category_name" parameter.


texts: I updated the initiatives on our website to say 2016 and now all the old links  to our current initiatives that were posted or shared (web, email, social etc.) in the last year is now broken. How cab I remedy this? Can I create a forward for the old link? Thank you!


texts: How to display value/label pair inside notification template?

texts: I would like to display a value/label pair inside of my notification template. For example, assuming I can use {label_name:value}, this method only returns the label name.


texts: Cart Throb: The totals of the cart item amounts do not match order amounts. 10413- when shipping is included

texts:
I thought I had this error fixed ages ago but found out I did not.
EE 2.5.2  CT 2.2.2

When checking out with paypal express I get the error

The totals of the cart item amounts do not match order amounts. 10413

This error ONLY occurs when I have a shipping charge.  Currently shipping is defined per product.  If Shipping is not required I do not get this error.

SOLVED an EE and CT upgrade seemed to fix this issue


texts: AJAX channel entries - filter by category

texts:
I want to load entries belonging to different categories using AJAX. Currently everything works without AJAX, reloading the page on category selection. There's a parent template, then an embed that holds the entries. Category is detirmined by segment_2 (category id obtained via Low Seg2Cat).

Parent Template:

      all
      category 1
      category 2

case studies

      {embed="embeds/list-case-studies" category="{segment_2_category_id}"}

Embedded Template:

{exp:channel:entries channel="case_studies" category="{embed:category}" dynamic="no" disable="category_fields|member_data|pagination" limit="9"}

  ...

{/exp:channel:entries}

I added the following script to the footer:

$(document).on('click', '.load-case-studies', function(event) {
  var url = $(this).attr('href');
  $('#case-studies-container').load(url);
  event.preventDefault();
});

But this loads the whole page into my container, not just the filtered entries. How can I achieve the result I'm looking for?


texts: Expresso Store - Add product SKU to page title on product detail pages

texts:
I'm trying to automate the output of SKU's into the page's title for all my product pages for SEO reasons however I'm struggling on how to go about this.

I'm using SEO lite for outputting page titles and tried the following code:

<title>{title} {if store_product_sku}{store_product_sku}{/if} {site_name}</title>

Which doesn't appear to work as I'm assuming I need a channel:entries tag or store:product tag, however having tried various combinations of these none of these work either, would appreciate any ideas, here's the other code I've tried:

<title>{title}{exp:channel:entries}{exp:store:product}{if store_product_sku}{store_product_sku}{/if}{/exp:store:product}{/exp:channel:entries} {site_name}</title>


texts: Why are my entry dates displaying incorrectly in Safari?

texts:
I'm not sure what could be causing this.

Dates are displaying incorrectly in Safari on my site. They are displaying as 1 day before the actual date that is set in the CP. I've never seen this and have absolutely no clue how to fix. All my searches have come up nothing.

For Ex:
Entry Date in CP: 1/25/12

Chrome displays: 1/25/12

Safari displays: 1/24/12


texts:
Does anyone know of a custom field that will allow the user to select an existing page from the site?

Throughout the site are going to be little snippets of information that will link through to another page on the site, so all I need to do is store the snippet and the link. I could just get the user to paste in the link, but I'm looking for something nicer.

I know Wygwam and the like have plugins for their linking, but I'm after something standalone.

Any help would be much appreciated, thanks!

Darren


texts: Is there a way to relate channel fields to one another?

texts:
I am creating a staff profile page, where I want to display social media icons for any social media sites each staff member may have (see photo).

I don't want to list ALL social media options, but I'd rather have a channel field type "drop-down" with options, and then a corresponding URL field (which can just be a text field).  If the user has more than one social media account, there should be a "add another" button on the Publish page, which will add another drop-down and URL field.

The drop-down field will correspond to a Class name (i.e. class="icon-facebook"), which will then place an icon on the published page.

Is this possible, or am I making this too complicated?

Is there another, better solution in order to make this work?  Or would it be easier for me to hard-code a "Facebook" field, and a "Facebook_url" field, "twitter," "twitter_url," etc.?

THANK YOU!!!


texts: Solspace Calendar - Server Errors and Memory Issues

texts:
I am running Calendar 1.8.13 on EE 2.8.1 and I am getting 500 Server Errors and Memory warnings when I try and access calendar event detail pages.

Here is the memory error:

  Fatal error: Allowed memory size of 134217728 bytes exhausted (tried
  to allocate 72 bytes) in
  .../codeigniter/system/libraries/Typography.php on line 306

I tried allocating more memory - up to 512MB but the errors keep coming.

The site was built last year and has worked without issue until recently when the the server errors began happening.

Here is the code for the page:

{exp:calendar:events
limit="1"
event_name="{segment_3}"
dynamic="no" }

{event_title}

When:

      {if event_recurs}
         {exp:calendar:date
            base_date="{segment_4}-{segment_5}-{segment_6}"
            output_date="today"
         }
            {date format="%l, %F %j"} @ {event_start_date format="%g:%i%a"}
         {/exp:calendar:date}
      {if:else}
         {event_start_date format="%l, %F %j @ %g:%i%a"}
      {/if}

Location:

{event_location}
        {if event_address}

            {event_address}
        {/if}

Admission:

{admission}

Contact

{contact_phone}

{/exp:calendar:events}

More Events

{exp:calendar:cal
    calendar_id="11"
    date_range_start="{segment_3}-{segment_4}-{segment_5}"
    date_range_end="{segment_3}-{segment_4}-{segment_5}"
    pad_short_weeks="n"
    event_limit="3"
    dynamic="off"}

        {event_start_date format="%m.%d"}

{event_title}

{/exp:calendar:cal}

{ More Events }

{exp:calendar:events orderby="title" sort="asc" limit="1" event_name="{segment_3}" date_range_start="today" show_months="6" dynamic="off"}
        {event_summary}
    {/exp:calendar:events}

Any assistance in sorting this out would be appreciated.


texts: Requiring entry in one of two channel fields?

texts:
Possible Duplicate:
  Fieldtype for 2 dependant fields

I am wondering if its possible to have a relationship between two channel fields.  For example, lets say you have two text inputs: email and mobile_phone.  Is it possible to say at least one of these fields is required before successfully adding an entry?

Thanks!


texts:
Data:

I have 2 pages with {exp:channel:form} each using the same channel foo

Channel foo has 4 fields with Grid fieldtypes, a, b c, d

Page 1 shows a form to edit a

Page 2 shows a form to edit b,c and d

This is the problem that I have.

When I try to submit Page 1, a data is saved but b, c, d data is erased.

When I try to submit Page 2, b, c, and d data is saved but a data is erased.

How do I fix this?

UPDATE:

It seems that this is a problem with grid fieldtype.

When you save any channel that has a grid field using {exp:channel:form}, if that grid field is not included in the form, it will be reset/erased.


texts: One most recent entry from multiple channels

texts:
I'd like to return 5 entries from 5 channels in a list, the list being comprised of:

the one most recent entry from each channel
in order of date

A simple exp:channel:entries loop with a limit of 5 and channel="blog1|blog2|blog3|blog4|blog5" will bring back the 5 most recent entries overall, but not just one entry per channel.

And 5 channel:entries loops will bring back the most recent, but not with them in the right order -- and the overhead of 5 channel:entries loops makes me cringe.

How would you do it?


texts: Is Cartthrob 2.6 compatible with EE 2.9.0?

texts:
Before I take the leap and upgrade to EE 2.9.0, I would like to make sure the CT 2.6 is compatible. Has anyone else had experience with this? Is it safe?

Thanks.


texts: Filter Channel Entries by status and "NOT" category

texts:
Trying to run a channel entries loop where I filter on both status value and the fact that the category is NOT a specific category.

{exp:channel:entries channel="products" status="open|Unavailable Online|Sold Out" category="not 8" sort="desc"}

Basically I want to get products in three different statuses and then ensure that I'm not showing products that are also in category 8.

The query works if I want to do category="8" but the not flag doesn't seem to do anything and it just ends up showing all products.

Does ExpressionEngine not allow this?


texts: ExpressionEngine: How do I block direct access to templates that I am using for embeds only

texts: I have a template group that I am using to store embeds like header and footer. I do not want people to be able to directly access those templates by going to www.domain.com/embeds/header. I want that to redirect to the 404 page. How do I go about this? Is there a way to block template groups from direct access? Would this be better done in .htaccess? Thanks for any help.


texts: Validation issue with Zoo Visitor Update, SafeCracker Registration / SafeCracker Update Forms in one template

texts:
I have one template that has three separate forms. None of these are nested. The first is on the "/your-account page" and the other two are in modals. On this account page a user can update their info (form 1), add a dog (form 2), or edit that dog (form 3). They each have unique ids and have a unique "return." Include_jquery and safecracker_head parameters are set to "no" in each form. I am using Stash to store the variables for the dog forms and no channel:entries loops are being used.

zoo_visitor:update_form  [channel = "zoo_visitor"] --- include_jquery="yes" safecracker_hea="yes"
safecracker (registration) [channel="dogs"] --- include_jquery="no" safecracker_head="yes"
safecracker (update) --- include_jquery="no" safecracker_head="yes"

Each of these forms works as intended and creates/updates when submitted. The issue I am having is with validation errors. When I intentionally leave an input blank etc, my errors do not appear inline. I get this one (non-inline) error "The form you submitted contained the following errors: You must specify a valid entry to edit."

If I remove the "Update Dog" form then validation works on the "User Profile Update," but not on the "Add a Dog" form.

At this point I have tried so many different variations that I am just stumped. The template, as you can imagine, is quite long, but I can add it if needed.

Thanks for looking!

FYI: Running EE 2.5.5 and ZV 1.3.25

Update: It looks like the issue is with the parameter error_handling="inline" so if I turn that off, then everything works great. I still don't know why this is, but I might have to resort to using javascript validation. Here is a link to my template http://pastie.org/private/v6f4keocja5auqcozsvw


texts: How to display a date if entry is only for one day only

texts:
I have an entry that has a date. If it starts and ends on the same day, it should only display the day. Like 'September 21, 2013'.

But right now, my code has it like this:

Date: {entry_date format='%F&nbsp;%j'}&mdash;{expiration_date format='%j'}, {expiration_date format='%Y'}

Which pushes out September 21-21, 2013. Is there a way I can modify my code where it would show a single date if the event doesn't stretch over multiple days?


texts: can you show screen_name of users who have liked an entry?

texts:
Channel Ratings: 4.0.4, EE: 2.7.3

I am using the channel ratings "Like" function, so the logged in users can "Like" certain products. I want to be able to display who has liked an entry. I am using this bit of code to display the "like_author_id" which happens to be the same as the "member_id"

{exp:query
   sql="SELECT *
   FROM exp_channel_ratings_likes
   WHERE entry_id = '{entry_id}'
   AND liked > '0'
"}
   {if like_author_id != "0"}
      {like_author_id},
   {/if}
{/exp:query}

I am wondering how I can display the screen_name of the author who liked the entry.

ps. I tried to tag channel-ratings, but I couldn't with under 150 reputation.


texts: download links not showing up Order history Cartthrob

texts:
I am trying to display my download links on the page that displays all your purchases.  This code below just does not seem to work.

Your Purchases

{exp:channel:entries channel="orders" author_id="CURRENT_USER" status="open|Completed|closed|Registration Closed"}
{exp:cartthrob:order_items order_id="{entry_id}" variable_prefix="items_"}
{if items_first_item}
Total number of items: {items_total_results}.

ID
Title
Qty
Invoice
&nbsp;

{/if}

                        #{items_count}: {items_entry_id}

                      {items_title}{if items_size} - {items_size}{/if}
                      {items_quantity}
                      View invoice

{if item:product_download_url}
Download
{/if}
    {if purchased_license_number}

License number: {purchased_license_number}

    {/if}

                    {if items_count == items_total_results}

        {/if}
    {/exp:cartthrob:order_items}
    {if no_results}

You have no orders in your account.

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


texts:
I have an Assets field set up with multiple images selected inside a channel entry. When I try to output these images using the code below, nothing appears.

{exp:channel:entries channel="list_photos" entry_id="37" limit="1" disable="categories|pagination|member_data"}
  {photo}

  {/photo}
{/exp:channel:entries}

Can anyone identify the problem?

EE 2.5.5

Assets 2.0.5


texts:
I have a peculiar problem with a recent EE 2.5.5 site we launched. I've setup a member group for client access with appropriate channels assigned to them. The problem is that somehow their channel access keeps resetting resulting in no access to channels. I've reset their group preferences many times be it keeps getting reset back to none.

Could this be happening on the client end? The group preference doesn't allow them access to the Member area so I kinda doubt it. I rarely access this section of EE so I doubt it's something I'm doing.

Any advice would be appreciated!


texts: Constructing a single page blog with pagination

texts:
Here's the scenario

I have a bunch of blogs to be displayed. 9 blogs with short description in a grid, and then click on the caption to read more of the blog

the blog grid url is www.mysite.com/person1/blog

on clicking the channel entry it takes me to the more detailed view. The url looks like this
www.mysite.com/person1/blog/blog-with-url

the url title of the channel entry is blog-with-url
I have accomplish this. What I am not able to achieve is, that I pagination to navigate to the next and the previous blog post. How should I do that?


texts: Trying to pass a Stash variable to a Playa tag

texts:
I want to pass the "series_entry_id" created in the exp:playa:parents tag as the parent_id of the exp:playa:siblings tag, but it is not parsing the "series_entry_id". I am not sure if there is a better, more efficient way of doing this. Any help is greatly appreciated.

{exp:stash:set_list
    name="sermon"
    parse_tags="yes"
    parse_depth="2"
    parse_conditionals="yes"
}

    {exp:channel:entries
        channel="media"
        dynamic="no"
        disable="categories|category_fields|member_data"
        orderby="date"
        url_title="{segment_3}"
        limit="1"
    }

        {stash:entry_id}{entry_id}{/stash:entry_id}
        {stash:title}{title}{/stash:title}
        {stash:url_title}{url_title}{/stash:url_title}
        {stash:speaker}{speaker}{/stash:speaker}
        {stash:description}{description}{/stash:description}
        {stash:vimeo_id}{vimeo_id}{/stash:vimeo_id}
        {stash:message_number}{message_number}{/stash:message_number}
        {stash:transcript_file}{transcript_file}{/stash:transcript_file}
        {stash:transcript_embed}{transcript_embed}{/stash:transcript_embed}
        {stash:entry_date}{entry_date}{/stash:entry_date}

        {!-- Get Series Data --}
        {exp:playa:parents channel="sermon_series" limit="1"}
            {stash:series_entry_id}{entry_id}{/stash:series_entry_id}
            {stash:series_title}{title}{/stash:series_title}
            {stash:series_url_title}{url_title}{/stash:series_url_title}
            {stash:series_graphic}{series_graphic}{/stash:series_graphic}
        {/exp:playa:parents}

        {!-- Get Series Siblings --}
        {exp:stash:set_list:nested
            name="siblings"
            parse_tags="yes"
        }

            {exp:playa:siblings entry_id="{entry_id}" parent_id="{series_entry_id}"}
                {stash:sibling_url_title}{url_title}{/stash:sibling_url_title}
                {stash:sibling_title}{title}{/stash:sibling_title}
                {stash:sibling_entry_date}{entry_date}{/stash:sibling_entry_date}
            {/exp:playa:siblings}

        {/exp:stash:set_list:nested}

    {/exp:channel:entries}

{/exp:stash:set_list}


texts:
Is there a way to display debugging information for an embed tag?

I can't use the administrator template debugging feature since the page I put the embed tag into is only accessible to non-logged in users.

The problem with the tag is that its not showing for one installation and its showing for another installation which is a clone of the former.


texts: Stash lists with a dynamic list name in a relationship loop

texts:
I have got a bunch of entries in this relationship and i want to spit them out and group them by day. So, i thought i could use Stash to capture this, group them into a list for each day and the below is my sorry effort.

It does work, but it's not appending the row of data, it's only ever one row as i guess it's creating and destroying those lists over and over. I can't see any other way to do this though. Any ideas would be greatly appreciated!

{parents field="products-lessons-pool"}
   {exp:stash:set_list name='{parents:products-lessons-day}' parse_tags="yes" save="yes" scope="site"}

      {stash:class}{parents:products-lessons-class:title}{/stash:class}
      {stash:time}{parents:products-lessons-time format="%g:%i %a"}{/stash:time}
      {stash:day}{parents:products-lessons-day}{/stash:day}
      {stash:entry_id}{parents:entry_id}{/stash:entry_id}
      {stash:price}{parents:product_price}{/stash:price}

    {/exp:stash:set_list}
{/parents}


texts: "File not found" error when clicking on stories

texts:
I'm working on reviving (and upgrading the EE 3)n a site that has been moribund (no posting) for about 18 months.  The home page index displays OK, but if I click on any story or try to view the next page of the index, I get a blank page with the message "File not found."

I don't know when the site stopped working. It's running EE version 2.10.1. The back end and control panel seem to work fine.

The site is at http://coastsider.com

Any idea what might be going on here?


texts:
I've tried adding dynamic="no".. removing curly brackets.. adding status="publish" since that's the status that a blog post has to be to display.. all no luck so far.  Here's the rss file

code removed due to update

I'm using structure, so that would explain the {page_url}

Update

My blogs channel is "blog" but i switched the channel to "personal_trainer_directory" just to see if other channels would work, and it did.. So what could be causing the issue with this now?

Current code:

{preload_replace:master_channel_name="blog"}
{exp:rss:feed channel="{master_channel_name}"}

<?xml version="1.0" encoding="{encoding}"?>
<rss version="2.0"
        xmlns:dc="http://purl.org/dc/elements/1.1/"
        xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
        xmlns:admin="http://webns.net/mvcb/"
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:content="http://purl.org/rss/1.0/modules/content/">

        <channel>

        <title><![CDATA[Blog]]></title>
        <link>{channel_url}</link>
        <description>{channel_description}</description>
        <dc:language>{channel_language}</dc:language>
        <dc:creator>{email}</dc:creator>
        <dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
        <dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
        <admin:generatorAgent rdf:resource="http://expressionengine.com/" />

{exp:channel:entries channel="{master_channel_name}" limit="10" dynamic_start="no" disable="member_data|pagination"}
        <item>
            <title><![CDATA[{title}]]></title>
            <link>{page_url}</link>
            <guid>{page_url}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
            <description><![CDATA[{article_body}]]></description>
            <dc:subject><![CDATA[{categories backspace="1"}{category_name}, {/categories}]]></dc:subject>
            <dc:date>{gmt_entry_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
        </item>
{/exp:channel:entries}

        </channel>
</rss>

{/exp:rss:feed}

final working rss feed:

{preload_replace:master_channel_name="blog"}
{exp:rss:feed channel="{master_channel_name}" status="open|publish"}

<?xml version="1.0" encoding="{encoding}"?>
<rss version="2.0"
        xmlns:dc="http://purl.org/dc/elements/1.1/"
        xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
        xmlns:admin="http://webns.net/mvcb/"
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:content="http://purl.org/rss/1.0/modules/content/">

        <channel>

        <title><![CDATA[Blog]]></title>
        <link>{channel_url}</link>
        <description>{channel_description}</description>
        <dc:language>{channel_language}</dc:language>
        <dc:creator>{email}</dc:creator>
        <dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
        <dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
        <admin:generatorAgent rdf:resource="http://expressionengine.com/" />

{exp:channel:entries channel="{master_channel_name}" limit="10" dynamic_start="on" disable="member_data|pagination" status="open|publish"}
        <item>
            <title><![CDATA[{title}]]></title>
            <link>{page_url}</link>
            <guid>{page_url}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
            <description><![CDATA[{article_body}]]></description>
            <dc:subject><![CDATA[{categories backspace="1"}{category_name}, {/categories}]]></dc:subject>
            <dc:date>{gmt_entry_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
        </item>
{/exp:channel:entries}

        </channel>
</rss>

{/exp:rss:feed}


texts: WYGWAM + Font Awesome icon chooser. Possible?

texts:
I saw the "Font Awesome" plugin for CKEditor and got hyped, but couldn't get it to work.

https://ckeditor.com/cke4/addon/fontawesome

But that seeded the question: Is there a way to get a Font Awesome icon chooser inside WYGWAM? Or frankly any way to make it easy for content authors to choose icons for links with Expression Engine 5?

For now I use a Grid field, where it takes a Link Title, URL, and Font Awesome icon, that generates a list of links with icons. e.g., "Cool Website", "https://www.coolwebsite.com", "external-link". For this my authors have to visit the Font Awesome website. Not the worst solution, but an integrated solution would be better.


texts:
Is there a way to extend the login period for admins? Usually booted out withihn about 30mins of inactivity. I have a client who's wanting it to be much longer if possible...

A usergroup setting I've missed perhaps?

Running EE 2.7


texts: Add row not working for Matrix field in Safecracker form

texts:
I'm building a safecracker frontend form that allow members to update certain objects.  This form uses a matrix field for managing opening hours of shops

The matrix field displays fine and existing data can be update without any problem.  However the '+' sign does not seem to work to add new rows.

It believe it is a javascript problem as the console show

Uncaught TypeError: Object [object Object] has no method 'markItUp'

What can be wrong?

rg,

Tim


texts: Display selected categories at top of publish category tab

texts: We have over 1000 categories visible on the Publish Form (inherited!). I want to be able to show the moderators the selected categories at a glance instead of them having to scroll through all 1000. Is there an extension out there that does this, or will I have to roll my own?


texts: Combining EE + CodeIgniter on existing website?

texts:
It’s been a while since my recent post, but I’ll be very happy, if I can get some help from you guys as well as to share an interesting scenario for other newcomers.

We have a website running on a domain like this:

domain.tld
domain.tld/section1
domain.tld/section2

Our goal is to rebuild certain sections on CodeIgniter, since we need flexibility, which is not available in EE (not because of its limitation, but because of the details we stress on in the new version). Simply said, we try to accomplish:

EE - domain.tld
EE - domain.tld/section1
CI - domain.tld/section2

Is there any reasonable way to do this? I know it’s a matter of “hacking” EE core and / or heavily customizing, but any ideas are more than welcome.

Thanks!


texts: After 2.9.3 update tons of errors related “relationship_parser/VariableFinder.php”

texts:
After updaiting to EE 2.9.3 some my sites get many-many errors like this:

A PHP Error was encountered
Severity: Notice
Message: Uninitialized string offset: 19096
Filename: relationship_parser/VariableFinder.php
Line Number: 109

Some googling revealed that probably Grid filetype and obviously relationships are involved.

Do i need change something in templates, is some syntax changed?

Everything on web page works as it should.


texts: Old URLs pointing to the same product name

texts:
As you know from previous posts, that I am new to EE and I thank you for your help.

Here is a little background:

You know the "URL Title" field and how that can produce part of the URL, I was told to change that.

Example:

Change www.example.com/products/generation3-product to www.example.com/products/g3-product

The way that I changed it was by changing the "URL Title" field from generation3-product to g3-product and it worked.

Great, right? No

Now that I have changed it - yes, you are able to go to www.example.com/products/g3-product and see the product that you expect, but now the old URL still exists - www.example.com/products/generation3-product - but it displays a product that has nothing to do with the previous entry.

Thanks in advance


texts: What setting could make the 'Show Toolbar' link disappear?

texts:
Is there some preference field or setting in the CP that might make the 'Show toolbar' link to disappear from the publish page? Mine has vanished for a particular custom member group (the only group that I'm using apart from Superadmins), although it shows up fine when I'm logged in as an SA. This made me think that it was something in the preference settings for that particular member group, but AFAICT nothing in that long settings list deals with the ability to customise publishing layouts.

Any ideas?


texts: Freeform - validating file upload field by filetype

texts:
We have setup a freeform composer template that has a file upload field, this field is limited to JPEG and PNG filetype only. However we would like to validate the field inline (by default the user is taken to a new page that isn't very informative, just save invalid action).

Basically we want to use the default validation which works fine for required fields, we've tried the following but it doesn't seem to work:

$( "#freeform_cv_upload0" ).rules( "add", {
      extension: "jpeg|png",
      required: true,
      messages: {
        extension: "JPEG or PNG only"
      }
    });

Also tried using standalone jquery validate:

<script type="text/javascript">
jQuery(function ($) {
    $('#request_form').validate({
        rules: {},
        messages: {},
        submitHandler: function () {
            return false
        }
    });

    $( "#freeform_cv_upload0" ).rules( "add", {
      extension: "jpeg|png",
      required: true,
      messages: {
        extension: "JPEG or PNG only"
      }
    });
})
</script>

This works for the required fields, however won't work for the file extension (it still reverts to the ExpressionEngine default of showing the error on a standalone page).

Any ideas?


texts: EE will not save templates as text files... No matter what

texts:
THE PROBLEM:

When editing a template file via the control panel, saving it with "save template as text file" ticked gives the error: "Unable to save your template as a text file"
The template is updated in the database, but not saved out to a file
Although the template is saved to the DB it does not reflect any changes on the actual site

SERVER CONFIGURATION:

Design --> Templates --> Global Preferences:

Save Templates as Files: Yes
Server path to site's templates: /var/www/vhosts/serverxxx-xxx-xx-xxx.live-servers.net/hbr-new-website/system/expressionengine/templates (I have tried this with/without trailing slash)

Permissions:

/system/expressionengine/templates and all subfolders and files set as 777

PHP settings:

Safe mode: off
open_basedir: /var/www/vhosts/serverxxx-xxx-xx-xxx.live-servers.net/hbr-new-website/:/tmp/
$_SERVER["DOCUMENT_ROOT"]: /var/www/vhosts/serverxxx-xxx-xx-xxx.live-servers.net/hbr-new-website

Any ideas? I'm absolutely stumped :-(


texts: How to add links to module control panel in Expression Engine 3.2.1

texts:
I've created a basic module with its own control panel page. The page works, but I can't seem to hit upon how to make that page more visible in the backend.

How can I add a link on the main control panel sidebar?

Failing that, how can I link to my control panel page from the AddOn Manager listing?


texts: Why would Freeform give me a full webpage back in the ajax response rather than a json message?

texts:
I've got a freeform form that is setup to be ajax submitted. However, even though it all works and it sends an e-mail without page refresh, i don't get a json message back, it gives me a full webpage in the response.

My freeform code is like:

{exp:freeform:form
collection="Single Product Enquiry"
required=""
notify="me@me.com"
template="single_product_enquiry_form"
ajax="yes"
form:id="ajax_form"
}

and ajax code like this:

$('#ajax_form').ajaxForm(function(data) {
                if(data.success === true)
                {
                    $("#modal-action").hide();
                    $("#modal-reaction").show();
                }

                if(data.success === false)
                {
                    //$(".form-error-holder").html(""+data.errors.join(', ')+"<input type='text' class='error' />Invalid entry");

                    $.each(data.errors, function(i, item)
                    {
                        $(".form-error-holder").append(""+i+": "+item+"");
                    });
                }
            });

But i'm just not getting that json response. Any idea why?


texts:
I have this tag which pulls entries from all categories:

{exp:channel:entries channel="foto" category="1|2|3" limit="15" }
   //content
{/exp:channel:entries}

Is it possible to pull 15 entries per category? So it would result in 45 entries in total?

I want to shuffle it afterwards therfore I don't want to call this tag three times.


texts: How to add an Auto Responses for the Events created?

texts:
I have several events created using ExpressionEngine on my website. Currently when someone registers for a training or workshop, I manually respond via email with a welcome letter and a pdf attachment of a reading list and information. Help me on How to add an AutoResponses on my website so that each event has an auto-response that comes from me when someone signs up for that event.

Thanks
N


texts: Display number of entries of a certain categories in a channel

texts:
I would like to display the number of entries of a given category within the same channel, and nothing else.

I've found this older question Display the number of entries in a channel but that does not solve my problem - I cannot add a category_id to the stats module, and I'm not much familiar with the Query module - but still haven't found anything useful in the documentation.


texts:
In the Custom Field Type, I've made separate table to store other information. So it means single field value contain many values in array. I want to use this array as pair tags on expressionengine.

like:-

{playlist}
    {playlist:videos}
    {playlist:titles}
{/playlist}

As playlist has multiple videos and titles.

http://postimg.org/image/60spnlykt/

http://postimg.org/image/c63h56cb9/


texts: How can I bulk update the Matrix search index without re-saving each entry?

texts:
I have a site that has 100's of products. I just enabled a custom field (Matrix) to be searchable and now the only way to update the index is by re-saving each entry.

I'm not really familiar with this part of EE, but would a query/script be able to update the index? Or is there an addon out there that can do this that I'm not aware of?


texts: Playa Search Filter Goes to Blank Screen

texts: I am running playa 4.4.5 and expression engine 2.8.1.  In my entries, when I try to search and filter entries in playa, no results will display with the ajax instead it is going to index.php?/cp/content_publish/entry_form?channel_id=7&entry_id=8539&&filter=YToxOntzOjEwOiJjaGFubmVsX2lkIjtzOjE6IjciO30= .  Which is all blank.  Can anyone help me here? Thanks


texts: We have several calendars set up on our site...a main school calendar and also calendars for each of our teachers.  To add events to the teacher calendars their names are dropped down on the option tab...is it possible to have all as a selection so the event will show on all calendars?


texts:
I'm having an issue w/ Stash and Channel Images where the image:url isn't being stashed at all, but everything else is. Here's the first portion of my index.html so you can see what is being set w/ stash:set_list

Index.html:

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

    {!--  ============================================
    TEST COLLECTION
    ================================================== --}

    {case value="test-collection"}

        {exp:stash:set_value name="page_content" value="{exp:stash:embed:partials:collection_thumbs}"}

        {!-- cache the list of articles in a given category for 60 minutes --}
        {exp:stash:set_list
            name="collection:{segment_2}"
            parse_tags="yes"
            parse_depth="2"
            save="yes"
            scope="site"
            refresh="60"
            replace="no"
        }

            {exp:channel:entries
                channel="artworks"
                disable="categories|category_fields|member_data"
                status="open"
                limit="36"
                paginate="bottom"
            }

                {stash:page_category}{exp:channel:category_heading channel="artworks"}{category_name}{/exp:channel:category_heading}{/stash:page_category}

                {stash:page_title}Collection /  {exp:stash:get name="page_category"}{/stash:page_title}

                {!-- Meta Properties --}
                {stash:head_title}{exp:stash:get name="page_category"} | {site_label}{/stash:head_title}
                {stash:meta_type}reelizer:collection{/stash:meta_type}
                {stash:canonical_url}{segment_1}/{segment_2}{/stash:canonical_url}
                {stash:meta_description}{exp:stash:get name="page_category"} Collection on {site_label}.{/stash:meta_description}
                {stash:meta_image}{gv_cdn_url}img/meta-image.png{/stash:meta_image}
                {stash:twitter_card_content}summary{/stash:twitter_card_content}
                {stash:entry_id}{entry_id}{/stash:entry_id}

                {exp:channel_images:images entry_id="{entry_id}"}
                    {stash:artwork_url}{url_title_path=artwork}{/stash:artwork_url}
                    {stash:artwork_artist}{artworks_artist}{title}{/stash:artwork_artist}
                    {stash:artwork_title}{title}{/stash:artwork_title}
                    {stash:artwork_image_small}{image:url:small}{/stash:artwork_image_small}
                {/exp:channel_images:images}

                {paginate}
                    {stash:pagination}
                        {sn_pagination}
                    {/stash:pagination}
                {/paginate}

            {/exp:channel:entries}

        {/exp:stash:set_list}

    {/case}
....

Notice I'm storing a value in the Channel Images block for the img url: {stash:artwork_image_small}{image:url:small}{/stash:artwork_image_small}

But for some reason my collection_thumbs partial is pulling all the correct values except for {artwork_image_small}. It should be outputting the URL, but is instead just outputting {artwork_image_small}. Here's my code for the collection_thumbs partial:

collection_thumbs:

{exp:stash:get_list name="collection:{segment_2}"}

            {artwork_artist}

{artwork_title}

{/exp:stash:get_list}

What am I missing? Thanks for any help you guys can provide!


texts: Wygwam Embeds being Removed on Edit Entry

texts: Trying to embed a javascript embed, like from Survey Monkey, into a Wygwam 3.2.1 field and when the entry is edited and saved, the embed is removed. Any ideas?


texts: expresso store orders between date range

texts:
Is it possible to filter Expresso Store 2 orders between two dates in a template? EG the customer wants to see all their orders between 2013 and 2014.

Many thanks


texts: EE worldwide date and times for office opening hours

texts:
We have a website, that displays a list of regional offices with their opening and closing times. Part of the design requires that each office is styled to show if its is open or closed.

Our initial thoughts on how to handle this is as follows:

Get the current time {current_time format="%G%i"} so we have 2033

We then have custom fields for each entry, these are {office_open_time} and then {office_close_time} these times are set using GMT (the servers time) so lets take USA as an example 0900 in US time would be 1700 GMT, so the US times we set are:

{office_open_time} = 1700

{office_close_time} = 0100

Our template then checks the times:

{if "{current_time format="%G%i"}" <= "{office_close_time}" AND "{current_time format="%G%i"}" >= "{office_open_time}"}
we are open!
{if:else}
we are closed.
{/if}

On the whole this works with a few exceptions and issues.

Again lets say our time here in GMT is 2033. The US opening time set in GMT is 1700 so thats correct, but the closing time is 0100 - so the current time is never less than the closing time..!

Then there's also the issue of the weekend but I think we can do that by returning the date as a day and checking if it equals "saturday" OR "sunday" - however I'm not sure how we decide 'when' that's valid... ie it's saturday in the uk before it's saturday in the us!

Any help or suggestions greatly appreciated


texts: Expresso Store and Drag and drop upload form during checkout

texts:
I need to allow users to upload their own files during a checkout process.

I think Freform Pro should be fine but I don't know how to integrate it inside the checkout page. Should be nice to associate this file as custom order field for Expresso Store.

my goal is to handle the upload process in ajax and render the uploaded image file in the same page..
the scenario should be something similar to:

User chose the t-shirt model and size > add to cart > upload own image > preview the image stamp on the t-shirt > purchase it!.

someone have any idea?

Thank you!


texts:
So i'm looking at
http://ellislab.com/expressionengine/user-guide/development/usage/database.html

I've used

$query = $this->EE->db->query("SELECT channel_name FROM exp_channels");

many times, but never within a class. and using $this-> causes issues. I'm no expert but how do i overcome this?

class Name
{
    public $variable;

    public function Something()
    {
         if($this->variable == "whatever")
           {
                //Run query to pull data based on $variable
                // This causes errors. I assume because $this is now something else.
                $this->EE->db->query("SELECT * FROM tablename WHERE...");
           }
    }
}

Message: Undefined property: Module::$EE

Message: Trying to get property of non-object

Fatal error: Call to a member function query() on a non-object


texts: Simple Matrix order question... I think!

texts:
I'm sure this is an easy one to answer.

I have a matrix field which I am using together with CE Image to create a gallery. It contains two columns and a variable number of rows depending on how many images it contains.

Like so:

{gallery limit="1"}

    {exp:ce_img:pair src="{image_url}" crop="yes|smart_scale" width="420" height="315" allow_scale_larger="yes" filter="sharpen" limit="1" quality='60' add_dims="no"}

    <img src="{made}" alt="{title}"/>

        {/exp:ce_img:pair}

{/_gallery}

But I want the image to be the one that is "1" in the Image Order Number (image_order) column.


texts:
I was wondering how the search engine for expression engine works.  We are trying to search for some terms which we would like to have specific results.  When searching for a unique term which is not used in other entries the search results seem rather generic and mostly unrelated.

What type of content does the search module crawl?

Will it filter results based on title, body, tags..?

How, if multiple filters, does the search module prioritize these item?


texts: Template Debugging for Non-Administrator

texts:
Is there a way to turn on Template Debugging even if you are not an administrator?

I have lots of pages that need debugging and they can only be accessed by users which are of the member group "Members"?


texts: Conditionals or marker count on Google Maps for expression engine

texts:
I've got a channel in EE with a 'Google Maps for EE' fieldtype and what I'm trying to achieve is to not display the map in the template if the content editor has not added a marker to the map.

Is there a conditional or marker count available that could be used in the templates?

Running EE2.73 and Google Maps for EE 3.3.5


texts: issue with cp_js_end not running on multiple extensions

texts: I created 2 little extensions for EE 3.5.11 that use the hook cp_js_end and they add JavaScript to each page in the control panel.  The problem is that once one runs the other one does not, any idea what I need to do to prevent one from stopping the other one from running?