texts: Getting meaningful search results from a Grid field

texts:
I have a channel that is used for the creation of a glossary. Rather than creating numerous individual entries, I have chosen to build the glossary as a Grid field (called 'glossary'), with the channel itself set as a Single Entry channel (using the Single Entry add-on).

The field (and its columns) are searchable, and matches are being found by my Simple Search form correctly. However, displaying the search results is problematic. The Search results are seemingly unable to determine which row of the Grid field the match occurs in, and the result simply displays the first row.

I guess that what I need is for the {exp:search:search_results} tag to return the {glossary:field_row_count} variable for the search match, so that I can make use of it in my results code.

Is there any way to do this? Or an alternative solution/workaround? (I'd prefer to stick with the native EE Search features if possible, rather than involve yet another third party add-on).

[Using EE v2.9.2]


texts: Using the RTE within my own custom field type

texts:
As a learning process, I am developing a field type that will allow me to insert data from multiple text inputs and text area fields (similar to an address field with text fields for address, state, postal code, etc.) So far so good.

I have been using the form_input and form_textarea methods from Codeigniter's form helper to generate the fields, but I was wondering if there is a way of implementing the native RTE as another option. Is there some sort of EE helper method to generate the RTE in my own field type's display method?


texts: Freeform hidden field and {exp:member:custom_profile_data}

texts:
We have a form on a page, one of the feilds on the form is hidden and contains the following in the "Default incoming data" option field:

 {exp:member:custom_profile_data}
 {exp:channel:entries dynamic="no" channel="schools"}
   {if "{member_school}" == "{school_code}"}
     {title}
   {/if}
 {/exp:channel:entries}
 {/exp:member:custom_profile_data}

This code produces the correct results when pasted directly into the template, but when used with the freeform field it produces nothing.

Basically I'm checking that if the member_school field (From the member's profile) matches school_code (from the schools channel), then output the title of the schools article.

Any idea why this isn't working? Is custom profile data not supported by freeforms?

Thanks!

Here's the composer code we're using:

{exp:freeform:composer form_id="{embed:form_id}" return="{segment_1}/{segment_2}/thanks"}

{composer:page}
    {composer:rows}

        {composer:columns}

            {composer:fields}
                {if composer:field_label}

                            {composer:field_label}
                            {if composer:field_required}
                            *
                            {/if}

                {/if}
                {if composer:field_output}
                    {if composer:field_type == 'nonfield_title'}

{composer:field_output}

                    {if:else}
                        {if composer:field_name AND composer:field_required}
                            {freeform:field:{composer:field_name} attr:required="required" attr:class="req"}
                        {if:else}

{composer:field_output}
                            {if freeform:description:{composer:field_name}}
                            {freeform:description:{composer:field_name}}
                            {/if}

                        {/if}
                    {/if}
                {/if}
            {/composer:fields}

        {/composer:columns}

    {/composer:rows}
{/composer:page}

{/exp:freeform:composer}

After a bit more digging around:

Seems to output the member_school variable fine if I enter {exp:member:custom_profile_data}{member_school}{/exp:member:custom_profile_data} but it won't output the information from "schools" channel. If i just have {exp:channel:entries dynamic="no" channel="schools"}{title}{/exp:channel:entries} it outputs the current page's title instead of the school titles…


texts: Super Search search between two channels

texts:
Here writing again because I do not know how to solve a problem.

I'm using Super Search and trying to search inside a channel using a keywords from other channel:

{exp:channel:entries channel="channel-1" limit="1"}

    {exp:super_search:results channel="channel-2" search="keywords={channel-1-custom-field}"}
        {title}</br>
        {channel-2-custom-field}
    {/exp:super_search:results}

{/exp:channel:entries}

{super_search_total_results} works and gets the number of results.
I want to know how to get {channel-2-custom-field} and {title} from channel 2.

Thanks in advance.


texts: Expresso store add if statement to order confirmation email

texts:
Is it possible to put an if statement in the order confirmation email?

like so?

{if shipping_address2}{shipping_address2}<br />{/if}


texts: image file upload with safecracker error, when file becomes too big

texts:
I let users upload images via safecracker.

The process is very standard:

User submit form (fields: name, email, selected file from users HD)
Safecracker uploads the file into the appropriate directory
Safecracker adds an entry to the submit channel in the database
The users gets redirected to the submit/thanks page
I get a mail announcing the upload

My problem: This only works for files with a certain size.
I can confirm, that it is fine for files with the size 840kb and that files with more than 2577kb will not work. Somewhere in between will be the breakpoint, which I haven´t figured out yet.

For the big files EE will just do point 2.
The file upload will be fine, but the redirect won´t work.
The submit-page will turn blank, as if the browser attempts to redirect, but can´t get the thanks-page to load.
3 and 5 aren´t executed.

I think, I found the error

Fatal error: Out of memory (allocated 49020928) (tried to allocate 4000 bytes)
in www/frogcroc.com/www/system/codeigniter/system/libraries/Image_lib.php on
line 1246

I assume, that I get this error, because my memory limit on the server is exhausted (shared hosting). I assume, that EE tries to make one of those "internal" thumbnails that are needed for watching the entry in the CP.

I need to know: Are my assumptions right?
If yes, what are my options?

I can ask my provider to give me more memory. Question: For how much should I ask, and what kind of memory is it, the PHP image memory? What are the technical terms to describe what I want?

Preferred method: Let the users upload all images, how big they might be, but avoid the memory issue, by not invoking the thumbnail routine. I don´t need to see the picture in the CP entry. I´m fine to just get the file name. Preferrably as part of the mail.
How can I change the file-fieldtype in the channel "submit", that shows the thumbnal into a text field, that just shows me the filename?


texts: Exp:resso Store: Setting discount expiry date / time - Store v2

texts:
On Expresso Store v2 you have the option to set an expiry date for a promo / discount code. Unfortunately, whilst the setting represents a date and time the Javascript picker only lets you select the date - it automatically selects the current time. Attempting to manually edit the time in the text field doesn't work.

As the discount code did expire on the precise time (not just date) that was selected its probably important to allow people to edit the time too!

Thanks

T


texts:
Is it possible to have Wygwam (or any custom field) pre-populated with content when you create a new entry?

I'm aiming to give my client a table, with some cells already filled in.


texts:
Can’t seem to find out how this is possible, but is there a way to compare and see differences between 2 stash set_list arrays?

For instance:

{exp:stash:set_list name="location_list" parse_tags="yes"}
 {exp:structure_entries depth="999" parent="8"}
  {stash:item_title}{title}{/stash:item_title}
  {stash:item_id}{entry_id}{/stash:item_id}
 {/exp:structure_entries}
{/exp:stash:set_list}

and

{exp:stash:set_list name="checked_locations" parse_tags="yes"}
 {exp:channel:entries channel="checkins" author_id="{logged_in_member_id}" dynamic="no" }
  {stash:item_title}{title}{/stash:item_title}
  {stash:item_id}{entries_location}{entry_id}{/entries_location}{/stash:item_id}
 {/exp:channel:entries}
{/exp:stash:set_list}

In the above, item_id returns the entry_id of a Playa field. So, would it be possible to compare these 2 lists and only output the ones that don’t have a match? It’s to create a drop down of the entries that don’t have an existing Playa relationship.


texts: Custom Module: Alternative to Using $this->EE->output->show_message($data) on a Form Submission

texts:
I've successfully created a custom module that takes customer information, submits it to Elavon (a payment gateway) and saves the data to a table in the Expression Engine database.

Currently, when a user submits the form, I have some jQuery validation to make sure the data is entered correctly, then once its submitted, I perform some server side validation to ensure that everything is as correct as it can be.

When someone submits the form, and their credit card is declined, I use

$this->EE->output->show_message($data);

to output my error message from Elavon. When they click back to go to the form, all of their data is missing. In my controller, I've added the following to save the data temporarily to a session, where I destroy it once the payment has been completed.

 $data = array(
     "full_name" => isset($_SESSION["full_name"]) ? $_SESSION["full_name"] : "",
     "item_description" => isset($_SESSION["item_description"]) ? $_SESSION["item_description"] : "",
     "amount" => isset($_SESSION["amount"]) ? $_SESSION["amount"] : "",
     "fname" => isset($_SESSION["fname"]) ? $_SESSION["fname"] : "",
     "lname" => isset($_SESSION["lname"]) ? $_SESSION["lname"] : "",
     "address" => isset($_SESSION["address"]) ? $_SESSION["address"] : "",
     "city" => isset($_SESSION["city"]) ? $_SESSION["city"] : "",
     "state" => isset($_SESSION["state"]) ? $_SESSION["state"] : "",
     "zip" => isset($_SESSION["zip"]) ? $_SESSION["zip"] : "",
     "email" => isset($_SESSION["email"]) ? $_SESSION["email"] : "",
     "phone" => isset($_SESSION["phone"]) ? $_SESSION["phone"] : ""
 );

 // Construct $variables array for use in parse_variables method
 $variables = array();
 $variables[] = $data;
 $tagdata = $this->EE->TMPL->parse_variables($tagdata, $variables);

I have placed custom tags, as defined above, in my value portions of my input fields.

 <input name="fname" id="fname" type="text" class="form-control" value="{fname}" />

This works fine for now. When a user submits the form, if there's an error, all but the sensitive credit card information is saved to a session and the form is re-populated.

However, from a UI standpoint, I would much rather show the form with an error message and never use the built in EE show_message() function. My question is, instead of using

 $this->EE->output->show_message($data);

to show the error message, what is the best practice for re-directing back to my form with my error message? Also, I feel that using session variables is a hack way to do things and I feel like there is probably something built into EE that does this for me.

In the final section of my controller, where I call EE's built in show_message() function, I've already tried to call the function I created to instantiate the form, but all I get is a PHP error page that gives me the following error:

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


texts: Low Search singular/plural matching not working

texts:
ExpressionEngine v2.8.1

Low Search  3.1.5

I cannot get the singular/plural matching to work.

I've stripped the results template back to this:

{exp:low_search:results
    keywords:lang="en"
    keywords:inflect="yes"
}

{title}

{/exp:low_search:results}

The following queries produce different results:

http://localhost:8080/test/results?keywords=beers

http://localhost:8080/test/results?keywords=beer

what am I doing wrong?


texts: Assets 2.1.4 strange behaviour: "Could not upload the file ... "

texts:
Assets is the only thirdparty module/filedtype installed.
Native cache folder are 777.
File upload directory is working and uploads images correctly.
Assets shows no folder at all. But if I upload one image AFTER installing Assets the folder shows up.
When trying to upload one image to the visible folder I get error message as follows: "Could not upload the file - server returned an unexpected response. Please check the server settings."
The status bar shows full process is done but there is no images.
When trying to update the button goes "blank" and no result is shown.
Assets now has created two cache folders in "cache > assets tmp_storage" and they  are both 777. But no images ...

... ANYONE?

Versions

Assets 2.1.4
EE 2.7.0
PHP Version 5.3.10-1ubuntu3.8


texts: {exp:channel:entries} "no category" filter

texts:
I have a channel called foo.

Some entries in the foo channel have been assigned categories, some are not.

I wanted to group the entries based on their categories.

Since some of them don't have categories, I want to be able to specifically search for them.

Is there a way to do it?

{exp:channel:entries
    channel="foo"
    disable="member_data|pagination"
    dynamic="no"
    orderby="entry_id"
    sort="asc"
    category="" /* HOW TO FILTER FOR "NO CATEGORIES"? */
}


texts:
I have a rather unique problem.

We're using EE to apply Watermarks to images on Upload & EE is using GD2 for doing this, which coincidentally is "washing-away" the rich colors of the original uploaded image. What we would like for EE to do is use ImageMagick to apply Watermarks.

We've reported this as a Bug on EE and we've received some thoughts on it:

EE won't be looking into this anytime soon
There's a way to achieve this manually

Specific Question: Has anyone found a solution to this problem? —If not, anyone with a knowledge on how to go about this (especially EE's support suggestion from my discussion with them below).

https://support.ellislab.com/bugs/detail/19036


texts: Can I use Stash inside Third Party Module Tags?

texts:
in the examples of Stash and every other similar plugin I always see the variables being set inside the channel:entries tag. But what if I need to set a tag inside the tag of another module? Like for example Solspace's Rating module? Have a look at the code below:

Here I'm trying to set a Stash variable...

{exp:rating:stats}
  {exp:stash:set name="rating"}{overall_rating}{/exp:stash:set}
{/exp:rating:stats}

Here I attempting to output it...

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

But this isn't working with Stash or the String plugin which I also tried.

It seems like I can only set variables inside the channel:entries tag. Is this true?
Is there no way to store variables for later use inside third party module tags such as Solspace's Ratings?


texts: setting a global var in an embedded template with PHP

texts:
I have a header template with PHP parsing on Input an the following code:

<?php
   $this->EE->config->_global_vars['user_language'] = "nl";
?>

When I use {user_language} in my header template it works as expected and outputs "nl".

However, my header template is being embedded in my main template, and when I use {user_language} over there, it doesn't output anything.

I know it has something to do with the parsing order, but how do I fix it ?


texts: Cart Throb Sales price have an expiry date

texts: Has anyone ever been able to have a product on sale in CartThrob for a set period of time?  What I want is to have certain products on sale for a set period of time and then it automatically goes back to regular price after a set date.


texts:
is possibile to build an url like this without use third party module?

www.mysite.com/template_group/2014/12/12/category_name/url_title

Thanks


texts: I'm finding that that system is logging me out while editing a post very quickly. Is it possible to change the time period so that I have longer before it times out?


texts: Install multiple versions of ExpressionEngine plugin Store

texts:
Would it be possible to install multiple versions of an ExpressionEngine plugin (i.e. Store)?

My clients ideally would like two very separate shops on both frontend and backend. Obviously Store could be configured to act as separate shops on the frontend, however all the orders will appear in the same place on the backend etc.

Thanks,
Dan


texts: Assets 2 on MSM: Tags have no output on second site

texts:
I'm branching this off of another question: Assets 2 MSM Cannot Upload or view images

I'm not seeing any tag output from Assets in the second site.

I'm running EE 2.5.5 with Assets 2.0.5.

This is a site that I've been migrating from an older site, so it's a clean slate. It's not an upgrade. I've migrated entries into the new database and updated templates that I've copied in.

Yesterday I set up a second site using MSM. I'm using Master Config, so there were a few issues with paths for third_party add-ons and templates, but those have been resolved. My templates are outputting correctly now.

I have content in a channel on the 1st site (Site1): That channel's name is experience. If I drop the following code into a template on Site1, it works fine, including outputting the URLs of the Assets field's image ({event-story-gallery-image}):

{exp:channel:entries site="default_site" channel="experience" orderby="event-story-sort-order" sort="asc" dynamic="off"}
View

    {title}

{/exp:channel:entries}

If I drop that same code into a template in Site2, everything outputs correctly except the {event-story-gallery-image} tag. That outputs nothing. It's not an incorrect path, it's just not outputting.

I have the following in Master Config:

$config['assets_site_url'] = '/index.php';

$config['assets_cp_path'] = 'admin/';

To be able to view the CP under Site2, I have to change the master config as follows:

// $base_url = $protocol . $_SERVER['HTTP_HOST'];
$base_url = 'http://ee2.morinsfinecatering.localhost:8888';
//$base_path = $_SERVER['DOCUMENT_ROOT'];
$base_path = dirname(__FILE__).'/../../../public';

That lets me see the CP correctly in Site2.

Accordingly, I changed my Assets settings as follows:

$config['assets_site_url'] = 'http://ee2.morinsfinecatering.localhost:8888/index.php';
$config['assets_cp_path'] = 'http://ee2.morinsfinecatering.localhost:8888/admin/';

I still cannot see my Assets files in the CP in Site2, nor get any output from the tags.

I've confirmed that the following in my config.php is the correct path as well:

$config['third_party_path'] = $base_path . "/client_ee/add-ons/system/third_party";
echo $config['third_party_path']; exit;


texts:
I have a single entry url like site.com/forum/answers/12272 and would like to have the url_title appended like site.com/forum/answers/12272/how-big-is-a-carp. Anyone got an idea how to do this please? I'm stumped.

Thank you...


texts: Mx Notify control issues with Channel Forms in EEv2.11.2

texts:
I want to send notification to my customer when people from site sends a form (made with channel form) so I've setup a "Entry added" notification.

Notification works but data into the exp:channel:entries tag is sent only when entering data from the CP but not from the form.

can someone help on this?

thanks
Francesco


texts: "the temporary folder is missing" file upload error

texts:
All of a sudden I've started getting an error message when I try to upload anything. EE just says "The temporary folder is missing."

I've talked with the host, and they've verified that the d:\temp folder exists and is writable.

Has anyone else seen this or have any advice on how to fix it?

Porter.


texts: DevDemon Forms or Snaptcha outputting "Array" right before snaptcha field

texts:
I am using Forms 3.4.13 and Snaptcha 1.7.5.

I just created a single contact form in Forms, and enabled Snaptcha. When outputting my form, I am noticing the the word "Array" is getting added to my form.

It's showing up right after the

 and right before the

If I disable Snaptcha in my form, it goes away.

I prepended and appended some test text to the $field value in line 91 of ext.snaptcha.php to see if the "Array" text was part of that, but it wasn't, it came before that.

UPDATE:
I dug deeper and found where the word "Array" is getting added.

On line 730 of mod.forms.php

$OUT_FORM_PREPEND .= $SNAP->comment_field($OUT_FORM_PREPEND);

it calls comment_field(). I'm not totally sure why. But in comment_field() in ext.snaptcha.php, the $tagdata variable is what has the text 'Array'.

I added the following to line 203 of ext.snaptcha.php to convert the string 'Array' to an actual array to see what was in it:

$tagdata = "
".print_r($tagdata,true)."
";

and it appears to contain 3 values. One is the contents of my {page_body} field in my previous, closed channel entries loop. The other two are empty...


texts: Video Embed Youtube Coding - Changing to Special Character

texts:
I am trying to add a field that allows users to embed a youtube or third party video code. I have the field configured to be a textarea with no formatting. When I try to add the embed code in an entry form EE turns the any < into a special characters. This cause the video to not load correctly on the front-end website. I tried changing the field to Rich Textarea or Wygwam but the issue still occurs. You can see the error on this page (http://mtcorps.org/blog/view/secretary-jewell-announces-1-million-private-funding-commitment).

I am running EEv2.7.2. Any help is appreciated.


texts:
I moved a custom addon out of system/third_party into a third_party folder above web root

all was well until I realized that the addon didn't account for a different third_party folder location

I updated the paths but now I'm having some strange issues with EE not loading custom config files

I'm loading the these files in the constructor of the mcp file.

$this->_EE->load->add_package_path(PATH_THIRD . 'custom_addon/');
$this->_EE->load->config('custom_addon');

the config files seem to load fine (I don't get any errors) but I can't access the config items in the file

$this->_EE->config->item('some_value');

doesn't return anything

any idea what's up?

EE2.6.1


texts: Expresso Store - Change order_id start point

texts:
My client would like the order numbers (order_id)'s to start at 30000 (thirty thousand) rather than starting at 0.

Looking at the database I can see in the exp_store_orders table that order_id is set to auto_increment. This would lead me to believe that I should be able to bump up the numbers by just doing the following on that table:

ALTER TABLE exp_store_orders AUTO_INCREMENT = 30000

As this site is almost ready to go live I don't want to FUBAR it, so I'd appreciate confirmation that this is the only place I need to make a change!

Your advice is much appreciated.


texts:
I had do move a functionally old EE 1.6.8 website to a new hosting. It does working so far after I changed the RewriteCond from:

RewriteEngine On

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

to:

RewriteEngine On

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

It seem's my new Host requires forced query strings.

But now there are problems to fetching superglobal values in a specific template.
I use the following code to catch three values from the URI there:

URI:

http://www.xxxx.ch/kontakt/projectform?mitarbeiter=test&projekt=test&kunde=test

Template code:

<?php

function get_id($idname) {

        global $IN;

        $id = $IN->GBL($idname, 'GET');
        echo $id;

}

?>

{assign_variable:mitarbeiter="<?php echo get_id('mitarbeiter'); ?>"}
{assign_variable:projekt="<?php echo get_id('projekt'); ?>"}
{assign_variable:kunde="<?php echo get_id('kunde'); ?>"}

{mitarbeiter}
{projekt}
{kunde}

They were all catched on the old hosting, as well when I run the EE with no or clear .htaccess file. I'm not very well expierenced in writing .htaccess files but could be made an exception rule for this template?

Thanks for any hints or advices!


texts: using JOIN in a db select statement not returning my array

texts:
I am using in the below code, and it is not returning anything.

Details:

php is allowed on my template
parsing is set on output.
the '[FETCH ENTRY ID]' does not return my entry id (I can put in the ee tag {entry_id}, but than it only returns one entry_id. I think I need it to stay in php without any ee tags at this point.

All ideas any welcome!

{exp:channel:entries channel="property" category_group="4"}
<?php
    $this->EE =& get_instance();
    $entry_id = '[FETCH ENTRY ID]';
    $res = $this->EE->db->select('c.cat_name')
                    ->from('categories c')
                    ->join('category_posts cp', 'cp.cat_id = c.cat_id')
                    ->join('channel_titles ct', 'c.entry_id = cp.entry_id')
                    ->where('c.group_id', 4)
                    ->where('ct.entry_id', $entry_id)
                    ->result_array();
?>
{exp:channel:entries}


texts: Setting a category from segment in .xls download template

texts:
We've set up a template to download an .xsl file of entries in a number of specific categories (with much help in this SE thread) - all works fine if we hardcode the category ID but if we tray to make the template dynamic by getting the category ID from the URL segment it fails (see below).

Is it possible to dynamically set the Category ID like this? Or any other way?

{exp:http_header
    content_disposition="attachment"
    filename="myfile.xls"
    content_type="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
}

{exp:channel:entries channel="my channel" category="{segment_3}" disable="category_fields|member_data|pagination"
}

{title}
{field_one}
{field_two}

{/exp:channel:entries}


texts: Is there a tag that generates the password reset form?

texts:
I see that in Member Management Module, there is a Login Form Tag that allows you to place a login form in any template you choose.

Is there a similar tag for the password reset form?


texts:
I have a MSM installation.
The hosting provider (shared hosting) don't want to desactivate open_basedir (security risks) so I have to enter a custom open_basedir path to circumvent restrictions.

But I don't know what to put as open_basedir path.

The hierarchy of my MSM websites :

└── domain1
    ├── admin.php
    ├── index.php
    ├── images
    ├── system
    └── themes

└── domain2
    ├── admin.php
    └── index.php

My server path is like this (don't worry, not the real one) :
/home/www/hosting/domain1.com/web/domain1site/

and for the other site :
/home/www/hosting/domain1.com/web/domain2site/

Does anyone know ? Thanks in advance.


texts: Can EE be used together with dynamic serving for mobile?

texts:
Long overdue, I am looking at trying to make my existing site more mobile-friendly. This was prompted by Google sending out their multi-screen guidelines to Adsense users, but as I went through their basic break-down of possible approaches, I found myself scratching my head quite a bit in terms of how to get this to work with EE.

Since a separate mobile site is out of the question, I am looking at either responsive design or dynamic serving. Since I suspect it would be very tricky to make my current design responsive, dynamic serving would seem like the best bet ... but I can't quite wrap my head around how that would work with EE. The guidelines talk about serving up different templates to different devices, yet somehow serving everything from a single url, but given that templates determine urls in EE that sounds like it could get very complicated? That is, I can see how to do it with the CSS, but not the actual page structure.


texts: Showing all categories on the same level as current entry

texts:
I'm trying to create a navigation with my categories, current the categories look like this:

Products

– Accessories

– Backpacks

– Clothing

– – Mens

– – Womans

When on the main products page I want to display all of these items, when on the clothing page I want to display Clothing as the title, then Womens and Mens, when on Mens, I want to display Mens and Womens with Clothing as the title. Currently have the following code:

{exp:gwcode_categories cat_url_title="{segment_3}" show_trail="yes" class="categories"}
      {cat_name}
    {/exp:gwcode_categories}

This is outputting the current item you're on and any parents items above, I just need to display the siblings as well (women if you're on men).

Is this possible? and if so, how, thanks!


texts: Display relative date just for today, with "today" as prefix

texts:
I am trying to prefix today's (blog)posts with "Today". So that it would read:

  Today, January 12, 2015

From tomorrow on the prefix should not be displayed anymore. I want to achieve an eyecachting effect for the latests posts like that.

I have looked into EE's relative dates but nothing outputs exactly what I need and I don't know how to stop it after today either.

Has anybody achieved this in the past. Seems to be a pretty basic thing actually...


texts: Low Search: set result_page dynamically via JS

texts:
Is there any way to set the result_page of a Low Search form dynamically via JS? The use case is:

I've got a job search form. It has a select field for category, which produces a URL such as /search?category=1&keywords=foo. For SEO, it'd be much better for the URL to be /search/category_name?keywords=foo. Is there any way to change the form action using JS, when someone changes that select field?

Thanks loads for any pointers!


texts: Adding Channel Field data inside safecracker_submit_entry_start callback function

texts:
I have Channel with fields A,B,C,D,E

I have a Safecracker form that contains input elements for channel fields A,B,C

I have an extension with the callback method

public function foo($safecracker_object)
{
  ...
}

which has the hook

safecracker_submit_entry_start

Given these data, what I want to do inside the callback function is to add channel fields D and E data manually so that in the end, what is being sent are the fields A,B,C,D,E.

Is there something in the safecracker object that enables me to add those data? I have tried using

public function form_hidden($name, $value = '')

and

public function form_attribute($name, $value = '')

in safecracker object and it did not work.


texts: What are the settings for emailing a member through CP?

texts:
I have a membergroup "Admins" and 3 other member groups.
I want to give the admins the ability to email a member via the CP.

I'm using ZooVistor here (zoovistior fieldtype)

But I keep getting the following message when I click 'Email member'

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

I enabled the following settings already:

Can access TOOLS: Communication
Can send email via the ControlPanel
Can send email to Member Groups
Can send email to Mailing List
Can view/send cached email
Can administrate members accounts

I'm using EE v2.5.3 - Build Date: 20120911

Thanks


texts: Cart Throb: Shed light on CRON Job denial

texts:
I'm working on setting up a CRON Job for Cart Throbs subscription package. At first I was getting a "Permission Denied" response until I granted shell access to the account, now the CRON Job returns with "403: Forbidden". What could I be missing?

I have "sh /copied/path/from/cartthrob" running every hour.


texts:
I recently got an SSL for my website and I'm trying to set up a htaccess so whenever someone joins the site it automatically takes them to the secure version of the site, but whenever I upload my htaccess with the code containing the redirect I got the too many redirect error, this is my code.

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.scryptedhosting.com/$1 [R,L]

This code for some reason results in a too many redirect loop, can anyone help as to why?

Sincerely
Tom.


texts: Order channel categories on the navigation

texts:
I am a novice with ExpressionEngine and still learning.

How can one order channel categories in an ascending or descending order ?

For example :

About Us

    {exp:channel:categories channel="corporate" category_group="8" dynamic="no" style="nested" status="{published-status}" show_empty="no" id="nav_categories" class="dropdown"}
    {if category_id != "82"}
        {if category_id != "116"}
    {cap_category_name_catgrpid-8}
    {/if}
    {/if}
    {if count == "{total_results}"}
        Our sponsors
    {/if}
{/exp:channel:categories}

Any suggestion will be helpful


texts: Replacing backslash in content with Low Replace

texts:
I am currently using Low Replace to clean up content exported from EE to be used as a JSON object. This means cleaning up new lines, spaces, escaping quotes and backslashes. I am able to get the first three to work. However I cannot seem to find a way to escape a backslash.

I've even tried to map it as a replacement option in pi.low_replace.php

private $_map = array(
        'SPACE'   => ' ',
        'QUOTE'   => '"',
        'NEWLINE' => "\n",
        'PIPE'    => '|',
        'BACKSLASH'    => "\\"
    );

No luck.


texts: Searching two title fields with Select fields form with Solspace Super Search

texts:
With Solspace Super Search the manual says to use name='title" to search the title field. The issue is the results URL simply favors and outputs only the second select statement so title=whatevervalue whereas you want title=whatevervalue&title=anothervalue.

How do you deal with searching for two title fields from two different channels?

Thanks in advance for any help on this.

<select channel="workplace" name="title" class="Textbox4" >
                    <option value="">&nbsp;</option>
                    {exp:channel:entries channel="workplace" sort="asc" dynamic="no" orderby="title"}
                    <option value="{url_title}"  >{title}</option>
                    {/exp:channel:entries}
                </select>

                    {exp:channel:entries channel="places" orderby="title" sort="asc" dynamic="no" category="1"}
<option value="">&nbsp;</option>
                        <option value="{url_title}" >{title}</option>
                    {/exp:channel:entries}
                    </select>
{/exp:super_search:search}


texts: Channel Entries API Error: Undefined property: EE::$stats

texts:
This error appears during execution of the Channels Entry API in an API extension:

  A PHP Error was encountered Severity: Notice Message: Undefined
  property: EE::$stats Filename: api/Api_channel_entries.php

The API library is loaded successfully:

 ee()->load->library('api');
 ee()->api->instantiate('channel_entries');
 ee()->api->instantiate('channel_fields');

and I am making sure the API user has permission (SuperAdmin).

The data array looks like this:

$data = array(
'title'         => $tTourTitle,
'field_id_127'  => $tTourDuration,
'field_id_136'  => $pCountry,
'field_id_137'  => "$tTourCity",
'field_id_141'  => "$tIncludes",
'field_id_142'  => "$tExcludes",
'field_id_143'  => "$tNotes",
'field_id_144'  => "$tDescription",
'field_id_145'  => "$pTour->Opt",
'field_id_149'  => $tTourPreferred
);

and I am executing the call according to EE 2.11.1 documentation:

ee()->api_channel_fields->setup_entry_settings($this->aEESettings['experiences_channel_id'], $data);

if($pTourId !== ''){
  $updateResult = ee()->api_channel_entries->save_entry($data, $this->aEESettings['experiences_channel_id'], $pTourId);
} else {
  $updateResult = ee()->api_channel_entries->save_entry($data, $this->aEESettings['experiences_channel_id']);
}

Why would I get this stats object error? Do I need to load any other models/apis to get this working?

Not sure if this matters, but we are using the Structure AddOn.

Thanks in advance for your input.


texts: freeform pro 4 and honeepot, spam still coming through

texts:
I implemented honeepot (http://devot-ee.com/add-ons/hon-ee-pot-captcha) for two freeform pro forms I have on my 2.6.1 EE website and it cut down the spam drastically, but some are still getting thru.

Is there anything else that I can do to combat it?

I do not want to have the users have to fill in a captcha field to submit the form.

I tried honeepot over snaptcha because its free. What do you think of snaptcha? Is that something will cut down on spam more so than honeepot?

Thanks!


texts: How do I display the next n future entries?

texts:
All,

I am trying to display the next n future entries for a channel. The query I'm using is posted below, but I've realized that since I limit the entries in the channel entries query, the if statement applies to the limited group of five entries. Rather than producing the next five entries.

Instead, I'm looking for a query that will:

Pull the entries for a channel
Determine whether or not the entry occurs in the future
Display the next five upcoming entries.

I am working on someone else's site without FTP access to load a plugin, so I'm hoping to do this within the template.

My current code:

{exp:channel:entries
  channel="blocks"
  show_future_entries="yes"
  dynamic="on"
  orderby="entry_date"
  sort="asc"
  disable="pagination|member_data|trackbacks"
  limit="5"}
     {if entry_date > current_time}

         {entry_date format="%l at %g:%i %a"}:
         {block-venue}
           {block-events show_future_entries="yes"}
             {title}
           {/block-films-events}

     {/if}
     {if no_results}
See you next year!
{/if}
{/exp:channel:entries}

Thanks in advance for any help you can provide!


texts: Filter entries based on multiple custom fields (paginated)

texts:
I have a channel called articles to post image galleries or video's or both.

On the back-end there are two custom fields in that channel (1) a 'channel images' field to add multiple images to the post and (2) a matrix field to add multiple video by (a) adding a valid YouTube or Video URL into a 'video link' field OR (b) via adding the embed code into a textarea field, in which case there is a 3td field, an 'assets' field to add a thumbnail.

On the front-end every article is required to have a thumbnail image.
In the source code, I first check if there is an image given in the 'channel images' field, and if so, grab the first image as a thumbnail. If not, I check to see if there is a matrix row and if the 'video link' field is not empty, and if so, grab the YT of Vimdeo thumbnail via that plugin. If that field is empty, I check to see if the embed code textarea field AND assets field are not empty, and grab the assets image as a thumbnail in that case.

This all works except that if the fields are NOT set, the entry is not shown on the page but it IS included in the pagination and number of rendered entries.
So if I want to always display 9 entries per page (3 x 3 blocks), and one entry has OR no channel images input, OR no valid video link input, OR no embed code + assets input, I have 8 entries on the page + the pagination total entries does not add up.

You can not set the required field option conditionally when adding a custom field in the CP.

How do I pre-filter the entries based on conditional logic on multiple custom fields before they are rendered?

The search parameter is not sufficient.


texts:
I have a list of channel entries written by different authors.

How can I create a conditional to display a link if it is a certain author?

For example I want to display a link to a specific author's Twitter account.

So: if screen_name = Bob Smith then Link

Any help appreciated!

N


texts: Simple Search & Matrix. What am I doing wrong?

texts:
I have read every post I can find on this topic and cannot get it to work.

I have set both the Matrix field and Matrix columns to Searchable.
I have re-saved my entries.

No matter what, my search results will not pull up an entry with a text string match in the Label/Text column of my matrix field.

Search Page:

{exp:search:simple_form result_page="/search_results" search_in"everywhere" where="any"}

                    Search:

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

                    <input type="submit" value="submit" class="submit">

                {/exp:search:simple_form}

Results Page:

{exp:search:search_results backspace="7"}

{title}

                    {excerpt}

                Site Section: {channel}

Read More...

                {/exp:search:search_results}

EE v2.3.1
Matrix 2.2.3.2

Any ideas?

Sorry everyone, I cannot believe I left out "="
search_in"everywhere"
All good now. What a waste of a day.
/sigh.


texts:
I'm about to embark on writing a new extension for the Ecommerce module "Store" though this should relate to any extension hook.  I am planning to "hook" into "store_order_complete_end" in order to add in some member/user data after an order is complete.

My core question, is how can I test this extension, without having to go through actually running through creating a cart, then registering the order, faking payment, etc on the front end which will become a rather tedious task each time I want to test my code.

Is there a simple way in either EE template code, or PHP / Plugin code to "fire" a hook, to then "fire" my code if that makes sense.

Thanks

Geoff


texts: SafeCracker + Assets: Restrict file browser to display logged-in member's files only.

texts: Is there a way to configure the Assets file browser in a SafeCracker form to only show assets for the currently logged-in member?


texts: Where to set the ""APPPATH" or "PATH_THIRD"" or "PATH_THIRD" variable?

texts:
There are lots of places used global variables like "APPPATH" or "PATH_THIRD"

$path = ($native) ? APPPATH.$type.$pkg_name.'/' : PATH_THIRD.$pkg_name.'/';

I am having trouble with the $path value as it returned null. So I want to figure out where to set APPPATH variable?

Context:
In extensions.php, EE try to load modules. However, $path returns null

Thanks guys!


texts:
I want to show cartthrob packages in front-end after login when i login i am not able to see product which are used to add in packages shown in below image

Its work when we have logged in from back-end

When i try to debug i found i am not getting EE.base so i have add below think to use for dynamic user

"http://stores.example.com/system/index.php?S=$fingerprint&D=cp";

?S=$fingerprint is same as below which i am getting when i am logged in back-end

In backend the url is some think link this http://stores.example.com/system/index.php?S=d880f2cb5dd6db612d0603c2b95272e3&D=cp&XID=ba318af777c8317b9a5e4ee803f72ea8dbbc223a&C=addons_modules&M=show_module_cp&module=cartthrob&method=package_filter&filter_id=1&keywords=&channel_id=null&date_range=&cat_id=&search_in=title

I have tried to debug once again
print_r($this->EE->session->userdata);

i found all the values same except  [admin_sess] it will be 1 when i login from backend and 0 else

so please help me how to show cartthrob packages product in front end


texts: Switching images based on product variation using Espresso

texts:
I'm using Expresso Store & Channel Images Modules and I want to change the image being shown based on the colour variation chosen by the customer. eg. when selecting the blue shoe a blue show image is shown, when selecting red a red shoe image is shown etc.

I'm sure I can work out a way to do this using a naming convention or such like, but I was hoping someone might be able to suggest a way to do this more natively.

Many thanks


texts: Working with PHP variables between templates

texts:
What is the best way to "send" a PHP variable between templates? I have an array $myArray that I create in my index.html template. Then I have a template which goes to fetch data from an external API, and store the items in $myArray. And then I've turned on caching for this template, so I won't have to churn through the API request on every load. Then back at the index.html I want to output stuff from $myArray.

Basically it would look something like this:

//index.html:
<?php global $myArray; ?>
{embed="include/api"}
<?php
foreach ($myArray as $m) {
    //output
} ?>

//api.html:
global $myArray;
$myArray = getAPIdata(); //getAPIdata just fetches stuff and returns the array

Now, this doesn't work of course. But I don't know why. And I don't have any other ideas on how to accomplish this. Especially since I want caching on my api.html template.


texts:
Does anybody know a Add-on or something like that which can do the following:

I'd like to have, in my Publish-form an editable field; for instance I have a date field (LowEvent) which adds a date to my entry for an event. But some of my entries have several separated dates.

I'd like to have some kind of a 'Plus/add icon' which can create a new date field on the fly in my Publish form, sort of speak.

Any Ideas??

Best regards Dave


texts: Error upgrading EE1.x to EE 2.7.3 with Cartthrob

texts:
I ran through the update process with this site a while ago when I upgraded to EE 2.5.5 and finished the EE upgrade no problem, but today I've tried to run the same update again but going to 2.7.3 and it's got as far as 2.7.2 with no problem and then produces this error:

{"error":"
Error Number: 1146
\n\n>
Table 'fabric_ee_v2.exp_cartthrob_settings' doesn't exist
\n\n>
SELECT *\nFROM (exp_cartthrob_settings)
\n\n>
Filename: /Users/tyssen/Documents/Tyssen Design/3. Sites 2010-11/Fabric Studio/server/third_party/cartthrob/upd.cartthrob.php
\n\n>
Line Number: 800
"}

Both CT 2.4 and the updater modules are in place. Last time I did the update I was able to update EE and then update CT later.


texts: I've just restored a backup of my site, but now whenever I try and login I get a "Invalid username or password" error. I've tried resetting the password, but even the new password brings up the same message. Any ideas what could be causing this?


texts:
I'm working on the new CMS implementation project.
We have ~4000 users in ExpressionEngine v 1.6.3 CMS.

The project requirement is, to let current EE members login to new CMS based on their encrypted credentials in EE.

Is the any way I can run an external php script utilizing Authentication Function from EE core
$this->EE->auth->authenticate_username($username, $password)?

Any help will be appreciated.

Pawel


texts: Access shipping/billing using hook in Store

texts:
I'm trying to make an extension that allows the user to choose from a list of shipping and billing addresses that they have previously entered. I'm using the store_order_complete_end hook listed here https://www.exp-resso.com/docs/extension_hooks.html but I can't access the addresses in the $order object because the $order->attributes object is a protected attribute. Is there any other way to get the addresses for the order?

public function my_store_order_complete_end($order) {
    $vars = $order->attributes; // undefined as it's protected
}


texts: I cannot get the start and end dates of my discount to save. I enter them, hit save, and then when it returns me to the list of discounts, the dates are no longer there. The code does not work on the site without the dates entered. I have other discounts that are active and their dates have saved without a problem. Any idea what it could be?


texts:
A little background, we have a theory that content scrappers are using our feeds to scape and post our site content and it might be negatively effecting or search results. This topic was mentioned by Google engineer Matt Cutts at PubCon 2011. A solution that was put forth was to use "Fat Pings". Basically, ping Google as soon as the content is published so their servers have a strong record of the source server. Hosted services like Blogger and Wordpress.com already do this using pubsubhubbub.

So my question is: Does anyone know if there is an existing add-on or code for doing 'pings' when content is added to a channel or feed in Expression Engine?

I found a couple support threads on the Ellis Labs site, but not any real mentions of a solution.
http://ellislab.com/forums/viewthread/132321/
http://ellislab.com/forums/viewthread/229845/

Aside: Are the Ellis Labs support forums incredibly slow for anyone else or is it just me?


texts:
I have a category which is unassigned i.e. not tied to any channel.
I want to display it, but I could not so far

I have tried...

 {exp:channel:categories show_empty="yes" restrict_channel="no"}
    {category_name}
  {/exp:channel:categories}

Show future, expired, open, etc.
dynamic="no" and show="{number}" and even with category group

Any ideas?

EE 2.5.5

I ended up creating a dummy channel, but is not ideal.


texts:
I had a problem with my Expression Engine. Today login for my system and i have a error off database number 5.

can someone help me?


texts: Is it possible to import/export all the information of all products that i have in my inventory to an excel file?

texts:
So what i want is to export/import all the information, especially the price modifiers information, of all products that are in my inventory, to an excel file. So not to a PDF.

I've tried to do this using the Zenbu module. But this does not support Exp:resso Store. Is there any other module out there that is able to do this? Or is this maybe a feature within Store already? If not, maybe this is an interesting idea for a future feature in Store?

Any information is helpfull!

Thanks in advance.


texts: channel entries bulk entry input or import

texts:
We are moving from another system to EE.  We have over a few dozen to 100s of line items.

Is there a way to add/upload content to expression engine like a database dump or some addon that allows like multiple entries in one interface so you can add all the data in one page?

hope i'm making sense :) lack of sleep...


texts: Grid {field:total rows} is not returning correct value

texts:
I have a field(let's call it foo) with the Grid Fieldtype.

I have conditional to check if foo is greater than 0 or not

Now here is the problem. It seems to me that when I only have 1 row in foo, {foo:total_rows} returns nothing.

I tried adding another row. This time {foo:total_rows} returns 2. It is the same thing with 3, 4, etc. Basically anything greater than 1.

This shouldn't be the case. If there is only 1 row, it should return 1.

I would to point out that the foo field is in a Channel with multiple Grid fieldtypes. It also has a relationship fieldtype for one of its columns.

I have another Grid field in that channel but without a realationship fieldtype for one of its columns. It is working correctly.

Any idea why this is happening?

UPDATE:

Tried out this code

field_total_rows {foo:field_total_rows}

total_rows {foo:total_rows}

{foo}

loop field_total_rows {foo:field_total_rows}

loop total_rows {foo:total_rows}

{/foo}

Output when the field contains only 1 row

field_total_rows
total_rows
loop field_total_rows 1
loop total_rows 1

Output when the field contains 2 rows

field_total_rows
total_rows 2
loop field_total_rows 2
loop total_rows 2
loop field_total_rows 2
loop total_rows 2

Does this mean that the total_rows and field_total_rows can only be accessed inside the loop?
Why does the total rows variable only appear if it is greater than 1?


texts: Query error for CT Admin, Error # 1104: SELECT would examine more than MAX_JOIN_SIZE rows

texts:
When we visit Cartthrob CT Admin (D=cp&C=addons_modules&M=show_module_cp&module=ct_admin&method=orders), it throws following sql error( error no 1104)

A Database Error Occurred
Error Number: 1104

The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay

SELECT ect.entry_id, ect.title, em.member_id, field_id_38 AS first_name, field_id_44 AS last_name, field_id_34 AS email, ect.status, field_id_23 AS order_total, entry_date FROM exp_channel_titles ect, exp_channel_data ecd LEFT JOIN exp_members em ON field_id_34 = em.email WHERE ect.entry_id = ecd.entry_id AND ecd.channel_id = '4' GROUP BY ect.entry_id ORDER BY entry_date DESC LIMIT 0, 10

Filename: third_party/ct_admin/libraries/Ct_admin_orders.php

Line Number: 198

Somebody suggests to run the following query before that query

SET SQL_BIG_SELECTS=1

But i don't want to change the code. is there any other setting we can do in my.conf so that it will be resolved?(Also i don't want to set any query which need to run again if we restart mysql server).

Btw,
We're using EE 2.5.3 and Cartthrob 2.1.5
PHP 5.4.6 and Mysql 5.6.12

Thanks


texts:
I have a few relationship rows that is causing some errors in the EE install. Turns out these relationships have either the parent id or the child id referencing a entry that no longer exists.

Is it safe to just delete these rows in the relationship table?


texts:
I have a simple code:

{portfolio_photo}
    {portfolio_photo:file:fhd_c}
    {title}
{/portfolio_photo}

Line 1 renders the image, and I need image title to be rendered also (Line 2) (from file's meta), but whatever tag I try, it doesn't work.

Any ideas?
Thx


texts:
I'm developing a store that allows a client to download custom scripts. I've set up the download folder and the Store and my configuration seems to be correct.

            {exp:channel:entries entry_id="{entry_id}"}
                <li>{exp:store:download order_id="{order_id}" url="{file_for_sale}"}
                  Download
                {/exp:store:download}</li>
            {/exp:channel:entries}

What happens is I get an error like this:

What is even more confusing is that my original folder path isn't

/homepages/9/d201932266/htdocs/frameexpert/

My original file path is:

/kruden/homepages/9/d201932266/htdocs/frameexpert/

I'm not sure where this file path is coming from. I've scoured all the config files to see if this is one of the directories, but it isn't.

Any insights would be great!

Thanks.


texts: Playa update fails for EE2.6 & Playa 4.4.5

texts:
I am running EE2.6.1 and want to upgrade my Playa addon from version 4.1.0.3 to 4.4.5.

I was running into the same errors as posted previously here, then reverted back to the previous Playa version and tried again.

This worked locally, but not on my production install.

I followed the upgrade instructions by replacing both folders and going through Add-Ons > Fieldtypes > Playa to run the upgrade script.

When I examined the database through phpMyAdmin, I could not find any column parent_is_draft in either database - local or production. However, the local EE install shows "4.4.5" in Add-Ons > Fieldtypes > Playa, while the production install shows the old version.

For the time being I've rolled back to the old version. What steps can I try next?

Thank you!

Edit: Just like reported here I see different versions: When going to Add-Ons > Modules > Playa, EE shows "4.4.5".


texts: Show all entries from a given custom date field

texts:
I have a channel with a custom field (type "date") called start. Now I want a list of all channel entries where the start date is today or in the future. So according the EE documentary I'm using the following:

{exp:channel:entries channel="calendar" dynamic="no" orderby="start" sort="asc" start_on="{current_time format='%Y-%m-%d'}" show_future_entries="yes"}
  {title}
{/exp:channel:entries}

But now I only get a list of all entries with the start date = today. All future entries are not shown. It is also not clear for me what field start_on is looking at.

How do I get this working?


texts:
I'm using Stash 3.0.3 (from the EE3 branch) with EE 3.4.2 and I'm having some issues getting the Stash variables to display.

I have a page setup that is using the following EE template:

{!-- Get the page layout --}
{stash:embed:layouts:range}

{!-- Get the page model --}
{stash:embed:models:range stash:url_title="{segment_1}"}

The first piece of code is correctly getting the page layout as I can see this when I go to the particular page in the browser.

However, none of the stash variables on the page are actually displaying what they're supposed to - instead they're just showing for example:

{stash:rangeTitle}

Here's the code for this in the {stash:embed:models:range stash:url_title="{segment_1}"} template:

{exp:channel:entries channel="product_ranges" url_title="{stash:url_title}" dynamic="no" limit="1" disable="member_data|pagination" cache="yes" refresh="10080"}
    {exp:stash:set name="rangeTitle"}{title}{/exp:stash:set}
{/exp:channel:entries}

And then the code in the layout {stash:embed:layouts:range}:

{stash:rangeTitle}

I have these exact templates on an EE 2.9 site (but using the latest version of Stash for EE2) and they work perfectly. But I can't seem to get this working on EE3.

I have also tried simply replacing the url_title to the actual page url title to discount this and the variables still didn't display properly.

I was wondering if anyone else has had such an issue?


texts: How do I link 2 css files in 1 wygwam entry? is that possible?

texts: I'm using wygwam as a page building field and have a webpage built on dreamweaver attached to 2 css which are the main css and overlay tab panel css. I saw Wygwam Template links from p&t which I was thinking of linking 2 css template, is that possible?


texts:
We need to order our search results by relevance then post date, however I can't find any reference to order in the ellislab documentation:

https://ellislab.com/expressionengine/user-guide/add-ons/search/index.html

Is this even possible with the search module? If not can anyone recommend a third party addon that would allow us to do this?

Thanks!


texts:
I have a channel field that is a description of an audio file.  I want to list that entire field on the actual page for the selected audio.  On the main listing of all the audio files, I'd like to have only an excerpt of that field, giving the user some idea of what the audio is about, but not the entire field.  I would like the excerpt to end with elipses, indicating that there is more to be read by clicking the link.

I know I can accomplish this by having multiple channel fields, but I am sure there's a way to do it with just the one field, I'm just unaware of what it is, and I can't seem to locate anything in the user guide.

I'd appreciate any help you can provide.  thanks!

(by the way, I love this community!  One day I hope to be knowledgeable enough to contribute, and not just consume.)


texts: Add-ons for "batch" entry addition & tagging?

texts: Are there any add-ons that can help speed up the process of adding large batches of images to an EE channel (that is, each image gets its own entry, rather than a gallery-per-entry situation) and applying specific tags to each batch of images? Or is the best approach to get Zenbu & Henshu to edit the entries after the fact? Does it handle tags?


texts: Very basic addon method not outputting anything

texts:
The following code is a small part of a module I've written for a client project. Can anyone see why in some templates it outputs the newrelic code but in others it doesn't?

function newrelic_stop()
{
// Set defaults
$output = "";

if (extension_loaded('newrelic'))
{
    $output = newrelic_get_browser_timing_footer();
}

// Show the output
return $output;
}


texts: How do I link to an anchor within a Structure Page?

texts:
(Edit 7/17/2014) Forgot to mention earlier: I am using ExpressionEngine, Wygwam, and Structure together.

I can set link type to "link to anchor in text"... but that's only for the current document...

Alternately I can set link type to "structure page"...

But how can I set link type to "anchor within structure page"? It's not an option, but is there a way to do it?

I know I can hardcode the link in by setting link type to "URL" and just typing it in with the #anchor at the end... but I am trying to avoid this so that the link will work in the future if I change the page name/location within structure.


texts: Grid conditional for a file(s) - If file exists display content (file)

texts:
I have a grid field (files), with a column/variable (file). I just need to display my content/snippet if a file has been uploaded.

So something like:

{if files:file}link to my file{/if}

Any help is appreciated.


texts: Is there a way to display inline Status & Error Messages?

texts:
I'm new to ExpressionEngine and I was wondering if there is a way to display status and error messages inline instead of on their own page?

For instance, it would be nice, if someone got their password wrong, if it didn't show you that on a separate page, but instead showed you that on the same page (similar to the way Drupal does it).

thanks!


texts: IF conditional using segment_url leave a blank space in text

texts:
In creating page titles based on URL segments (for list pages), we have utilized conditionals that point to the segment urls for conditional inclusion.  HOWEVER when the page source is viewed (and the page is indexed), the conditionals that are not met leave extra spaces within the Meta Title text.

Chocolate {if segment_2 == ""} Cookie{/if}{if segment_2 !=  "any"} {segment_2_category_name}{/if}{if segment_3 != "any"} {segment_3_category_name}{/if}{if segment_4!= "any"} {segment_4_category_name}{/if} Recipes

Results in Meta title (the dots are extra spaces):  Chocolate Cookie.....Recipes

The extra spaces should not be included BUT if the other segments are filled in, the spacing is correct:

Chocolate Raisin Caramel Cookies

Why does the unmet conditional leave a space? - AND how do we get rid of it?


texts: Why font size box was removed from WYGWAM

texts:
I have posted my problem under some other thread too. Just want help in restoring the ditto content within a WYGWAM field type after an EE upgrade and WYGWAM version upgrade.
The versions upper than 2.6 are not showing font size drop down. Is this explicitly removed? Can we get this option back? Is this really worthy to remove this kind of option?


texts: How to modify existing plugins parameters

texts:
I am trying to modify the Low Yearly Archive plugin to display months as descending as opposed to ascending. I did not install the plugin and have very little experience with websites/cms. I believe I would have to go to the php file under third party directory but I am not sure where to find this. Website is hosted on Amazon web services if that makes a difference.

Help! Thanks!


texts: Can I use MySQL session variables within a query in my template?

texts:
I'm trying to execute a query similar to this:

SET @last_date = NULL;
SELECT
    IF(dates.first_entry = 1, DATE_FORMAT(FROM_UNIXTIME(col_id_122), '%W, %M %d'), NULL) start_date,
    DATE_FORMAT(FROM_UNIXTIME(col_id_122), '%H:%i') start_time,
    col_id_122 start_epoch,
    DATE_FORMAT(FROM_UNIXTIME(col_id_124), '%W, %M %d') end_date,
    DATE_FORMAT(FROM_UNIXTIME(col_id_124), '%H:%i') end_time,
    col_id_124 end_epoch,
    col_id_126 session_title,
    col_id_128 name_this_field,
    col_id_130 entry_group,
    first_entry,
    entries entries_for_date FROM exp_channel_grid_field_288
NATURAL JOIN (
    SELECT row_id, CASE WHEN jc = CAST(COALESCE(@last_date, 1) AS DATE) THEN 0 ELSE 1 END first_entry, @last_date := jc start_date FROM (
        SELECT row_id, CAST(FROM_UNIXTIME(col_id_122) AS DATE) jc FROM exp_channel_grid_field_288 ORDER BY jc
    ) d
) dates
RIGHT JOIN (
    SELECT COUNT(jc) entries, jc FROM ( SELECT row_id, CAST(FROM_UNIXTIME(col_id_122) AS DATE) jc FROM exp_channel_grid_field_288 ORDER BY jc ) c GROUP BY jc
) entries ON dates.start_date = entries.jc
;

I have also tried the following:

SELECT * FROM (
SELECT
    NULL start_date,
    NULL start_time,
    NULL start_epoch,
    NULL end_date,
    NULL end_time,
    NULL end_epoch,
    NULL title,
    NULL name_this_field,
    NULL entry_group,
    NULL first_entry,
   NULL entries_for_date
FROM ( SELECT @last_date := NULL ) blank
UNION SELECT
    DATE_FORMAT(FROM_UNIXTIME(col_id_122), '%W, %M %d') start_date,
    DATE_FORMAT(FROM_UNIXTIME(col_id_122), '%H:%i') start_time,
    col_id_122 start_epoch,
    DATE_FORMAT(FROM_UNIXTIME(col_id_124), '%W, %M %d') end_date,
    DATE_FORMAT(FROM_UNIXTIME(col_id_124), '%H:%i') end_time,
    col_id_124 end_epoch,
    col_id_126 title,
    col_id_128 name_this_field,
    col_id_130 entry_group,
    first_entry,
    entries entries_for_date FROM exp_channel_grid_field_288
NATURAL JOIN (
    SELECT row_id, CASE WHEN jc = @last_date THEN 0 ELSE 1 END first_entry, @last_date := jc start_date FROM (
        SELECT row_id, CAST(FROM_UNIXTIME(col_id_122) AS DATE) jc FROM exp_channel_grid_field_288 ORDER BY jc
    ) d
) dates
RIGHT JOIN (
    SELECT COUNT(jc) entries, jc FROM ( SELECT row_id, CAST(FROM_UNIXTIME(col_id_122) AS DATE) jc FROM exp_channel_grid_field_288 ORDER BY jc ) c GROUP BY jc
) entries ON dates.start_date = entries.jc
) date LIMIT 1, 18446744073709551615;

They both execute as if the @session_variable is not being used.  Does Expression Engine do something to escape the @?


texts: Category URL Structure in Espresso Store with Relationship Field

texts:
We’re currently setting up an Expresso Store and are having a hard time getting the categories to show up in the url through a relationship field.   Essentially, we’d like the user to be able to select a product through a relationship field and then have that product’s parent category (ideally parent and child if present) in the url.

The resulting path would be template_group/category/{parent}/{child}/{individual-product-here}

Code:

            {exp:channel:entries channel=“products" limit="1" dynamic="yes"}
                        <!— Relationship Field Begins —>
                        {related_product_1}
                        {exp:store:product entry_id="{related_product_1:entry_id}" form_class="form-horizontal" return="store/shopping-cart"}

                            {exp:channel_images:images entry_id="{entry_id}" limit="1"}
                            {related_product_1:product_gallery}

                            {/related_product_1:product_gallery}
                            {/exp:channel_images:images}

{related_product_1:title}

                            {exp:trunchtml chars="60" ending="..."}{related_product_1:product_description}{/exp:trunchtml}

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

                            {!--<button class="add-to-cart" type="submit" value="Add to Cart"></button>--}

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

Update:
I think I have a resolution with the item, but the displayed results truncate… any help would be appreciated.

{category_name}

Generates this url:

http://www.example.com/products/category/%7Bcategory_url_title/category/controls/featured-product-name-5

I’m not sure why the category_url_title is not accurate? Adds a %7B… then the category_url_title… but then completes the category url.


texts: PT Checkboxes returning label instead of value

texts:
ExpressionEngine 2.5.3
PT Fieldpack 1.0.3
Matrix 2.4.3

Maybe I'm going crazy, but PT Checkboxes seems to be showing labels for the value instead of the value. My {winner} fieldtype is structured like this:

one : 1st Place
two : 2nd Place
three : 3rd Place

It shows like this in the Publish form:

x 1st Place
x 2nd Place
x 3rd Place

However, {winner} returns 1st Place, 2nd Place, 3rd Place in the template. {winner:label} returns one, two, three. Isn't that backwards?

Additionally, I'm having the same issue with PT multi-select. It saves the appropriate value to the DB, but I have no way of displaying it.

Code Added

     {exp:channel:entries channel="awards" dynamic="no" limit="1"  disable="categories|category_fields|member_data|pagination"}
    {awards_results}

Value: {award-highlight}
 Label: {award-highlight:label}

    {/awards_results}
 {/exp:channel:entries}


texts: How to deal with Seg2Cat no results in channel query

texts:
I'm using Low Seg2Cat to retrieve the third segment of my url and pass it as category to filter a listing page. Problem is that when third segment is empty I have no-results, where I was expecting a full list.

Here my code:

{exp:channel:entries channel="my_channel" category="{segment_3_category_id}"}

URL : my_template/my_category [wohoo, get right result!]
URL : my_template/ [uh oh, no results at all :'/ ]

Normally in a situation with an empty category i.e. category="" it returns all results, so it is like Seg2Cat is passing some kind of string filtering category with one that doesn't exists.

For instance, this code works just fine, it returns all posts:

{exp:channel:entries channel="my_channel" category=""}

Any idea?


texts: EE 2.5.5 Discussion Forum char limit > 99999

texts: The Discussion Forum forum management max char limit for a post is 99999.  Is it possible to significantly increase this?


texts:
I'm having a hard time wrapping my head around this.

I'm using Stash template partials approach, with the needle/haystack technique for replacing variables in content blocks... with CE Cache over the top.

My template looks like this:

{!-- Embed view/layout --}
{stash:embed:layouts:default}

{exp:ce_cache:it id="model"}

  {exp:channel:entries ...}
    {!-- Get video data from matrix field --}
    {cf_page_videos}
      {exp:stash:set name="video-{row_count}" type="snippet"}
        {mx_video}
      {/exp:stash:set}
    {/cf_page_videos}

    {!-- Vars to go in view/layout --}
    {exp:stash:set}

      {stash:title}{title}{/stash:title}

      {stash:content}
        {!-- Parse this so the {video-1}, {video-2} snippets within will work --}
        {exp:stash:parse}
          {cf_page_content}
        {/exp:stash:parse}
      {/stash:content}

    {/exp:stash:set}
  {/exp:channel:entries}

{/exp:ce_cache:it}

My view/layout template looks like this:

{exp:ce_cache:it id="view"}

{exp:stash:title}

  {exp:stash:content}

{/exp:ce_cache:it}

Everything works just fine when CE Cache is disabled.
When I enable it, the 'view' cache fragment shows something like:

Page Title

This is the page content

{video-1}

Some more content

If I change {exp:stash:parse} to {exp:stash:parse process="end"}, then the 'view' cache fragment will look something like:

Page Title

{d534s5d782yihu542u78fdhs894sh}

I don't know what I need to escape or modify to get this working.
Any suggestions would be appreciated!
Thanks

Update:
The latest version of CE Cache has some Stash-related improvements.
Updating fixed the issue but introduces a Stash bug.
Also, I need to use {exp:stash:parse process="end"}.

I get a PHP error on the first page load, but everything seems to get cached correctly and the subsequent page loads are perfect.
I've taken this up with Mark and will post an update later.

Update 2:
Aaron (CausingEffect) has fixed the issues in the latest version of CE Cache.
The above code works perfectly - provided you use {exp:stash:parse process="end"}.


texts: How do I access Assets field data within a child relationship in 2.6.1

texts:
I have a parent channel of "events" with a relationship field named {cf_event-map} with a singular relationship to an entry in a channel named "maps". This is the simplified code I'm using, the summary field is displaying fine but the {cf_images} field is an Assets fieldtype, and I can't find a permutation that retrieves the sub-field data from that field.

{exp:channel:entries channel="events" limit="1"}
{cf_event-map:cf_summary}
{cf_event-map:cf_images}{cf_images:url}{/cf_event-map:cf_images} (this doesn't work)
{/exp:channel:entries}


texts: Channel Form: Edit issue with checkboxes not being set

texts:
Have an issue where in channel form editing an entry the radios and checkboxes don't retain their value from the entry being edited. An example of the radios is this:

{options:myfield}
<input id="myfield" type="radio" name="myfield" value="{myfield}"{checked}>
{option_value}

{/options:myfield}

But it fails with checkboxes in the same way. I've seen a few threads on similar issues here but there doesn't seem to be any solutions... has anyone got a fix for this? Cheers


texts: I have 5 sites including the default site. Sites 1-4 are fine, but my fifth site is displaying templates from site no. 4. I have copied the admin.php and index.php from the default site and updated them where necessary. I have created new templates in site no. 5 but they are being ignored. What's going on?


texts: ‘layout’ template missing content, but only sometimes

texts:
This is really foxing me. I've got a single 'layout' template that is called as a wrapper by all my other 'content' templates (i.e. {layout="layouts/_general_layout"}). Part of the layout template provides the main navigation; three items in that navigation have sub-menus (which are just unordered lists). The list items inside those ULs are generated dynamically, from channel entry data. It all works fine for every 'content' template… except three.

When these three templates (let's call them The Problems) call the layout, one or more of the navigation sub-menus in the layout do not get generated. The
s are left empty. Exactly which of the three
s get missed is different for each of the Problems.

What is perplexing me is that I can only think of two ways in which the content template can affect the output of the layout template: layout variables (either as a parameter or via the {layout:set} tag, or by having conditionals in the layout that vary things according to the URL segments.

I do have some layout variables artwork in my content templates, but they only act to set meta tags for SEO. And there are no segment-checking conditionals around the missing dynamically-generated submenus.

The missing content is actually missing, not just hidden with CSS. Turning javascript off makes no difference. I've even commented out EVERYTHING inside the ‘Problem’ content templates except for the {layout="layouts/_general_layout"} tag (and removed the layout variable parameters for good measure) and the issue persists. So presumably the issue lies in the layout itself, but I absolutely cannot see the problem, since it works perfectly for every other content template.

As additional info, let me say that all three Problems are part of the same template group: news/year, news/month, and news/article. However, news/index does not trigger the problem — that one works just fine.

So: Can anybody suggest what other factors (other than segment-based conditionals and layout variables) might cause a layout to miss out/not parse chunks only when called by specific content templates?

(I'l post template code if required, but that might mean quite a bit of code, so I thought I'd ask without it first).


texts:
I'm trying to add a conditional that checks if some Matrix fields are populated.
If there's content, it'll enter the content within the Matrix fields. If not it'll default to another value.
However, I'm not having any luck; the code at the moment reads as follows:

    {exp:channel:entries channel="{segment_1}"}
        {matrix_primary_tag_pair}
            {matrix_field_1}
        {if matrix_field_2}
            {matrix_field_2}
            {matrix_field_3}
        {if:elseif}
               {title}
        {/if}
        {/matrix_primary_tag_pair}
    {/exp:channel:entries}

As it is, either the {title} & {matrix_field_2} {matrix_field_2} appear, or none.
Can anyone offer any suggestions?
Thanks


texts: How do I add a no follow meta tag to expression engine CMS templates?

texts:
The SEO agency in charge of my client's website has unearthed a significant duplication issue due to which the business may get penalized.

We have setup the expressionengine cms at secretcmsurl.domain.com and somehow google has managed to index all CMS related urls which are obviously the same as the main websites. We now need to un-index these cms urls.

When I suggested that we add no-follow robots.txt entries, the agency said that it would reflect on the main website as well.

How do I now add a <meta name="robots" content="noindex, nofollow"> meta tag only to the backend cms templates? Do I write a plugin? If so, what kind of plugin?


texts: Group entries which have the same custom field using Stash?

texts:
I want to display multiple lists of entries on the same page, but with entries that have the same custom filed grouped together. I'm not able to use categories to do this and wondered if it would be possible to use Stash to achieve the desired results. This is along the lines of what I'm trying to achieve:

{exp:channel:entries channel='tour' disable="category_fields|member_data" show_future_entries="yes" orderby="tour_date_start" sort="asc" search:tour_type="tour"}

{tour_name}

{tour_date_start format="%j %F"} &ndash; {tour_date_end format="%j %F %Y"}

{/exp:channel:entries}

I feel like this might work with stash, but am not sure the best way to approach it? Could anyone offer any advice or guidance? Thanks.


texts: Redirect URLS with disallowed key characters

texts:
I have a site that was converted to EE from a different blog platform, and I'm getting a bunch of crawl errors from previously indexed urls that now lead to a "disallowed key characters" error.

The urls that are causing the errors follow one of three patterns:

http://www.example.com/general/404/?404%3Bhttp://old.example.com:80/old-blog/random/segments

or

http://www.example.com/blog/?404%3Bhttp://old.example.com:80/old-blog/random/segments

or

http://www.example.com/blog/Default.aspx?404;http://old.example.com:80/old-blog/random/segments

In these urls, /general/404 is the path to my site's 404 page, and /blog/ is the path to the blog index page.

I was able to redirect the urls from the third example using this code:

RewriteRule ^blog/Default.aspx?/?$ http://www.example.com/general/404/? [L,R=301]

Is there a way I can intercept the other URLS with htaccess before they hit EE and redirect them to my 404 page? I'm not sure how to target them specifically since there is nothing before the ? in the query string url segment.


texts:
I am writing a plugin that has some part tha shows how many times an entry is viewed.

However, I wouldn't know the track_view instance in advance.

I tried looking at the documentation but there is no indication which is the default.

What is the default track view instance?


texts: Postmaster Parcel submitting to localhost

texts:
Whenever I try and save a Parcel I created, the form just returns to localhost.  I am not working locally, so I am not sure why it would go to that.

I am using:

EE 2.7
Postmasger 1.4.3

I also have the latest Matrix, Assets and Zenbu installed.


texts: Changes in my Admin Panel don't always take effect

texts:
We've got two separate sites running with EE and on each we have the same problem:
Sometimes changes made in the admin panel just don't take effect. An example which happens frequently:

Login as super user (user A)
Move user B from admin group to a group unable to access admin panel
View member groups page, see that B doesn't have access
Refresh page, everything still looks good
Logout/Login as A again, and B's permissions are back to enabled

It's getting pretty frustrating. Sometimes we have to refresh pages in the admin panel to get updates, sometimes changes we submit get the little checkmark but don't actually do anything - sometimes changes go live for a few hours and then revert back to how they were. It's like there's some bizarre caching going on in the admin panel but that doesn't even make sense.

This recently started on our AWS server, but the switch to AWS also coincided with the launch of these EE sites, so we're not sure if they're related. Our IT guys have stated they've combed the server configurations and it's nothing on the server end, but I'm open to ideas.


texts: Are there any add-ons which add thesaurus functionality to search

texts:
I have a project where whenever we perform a search we would like to check for synonyms and translations and search for them at the same time. For example a search for "mill stone" will also search for "millstone" and "meule".

I'm guessing that this would be impossible with the native search module but is it something that could be achieved with Solspace Super Search or Low Search?


texts: Does anyone know any details on the recent security release notifications?

texts:
All our EE2 sites are displaying:

"An ExpressionEngine version 2.11.6, build 20170207 has been released as a security release"

Does anyone have any details about what security vulnerabilities are being addressed? Are they specific to version 2.11 or a general security vulnerability in all EE2 sites?


texts: Pass a UNIX Timestamp as a URL Segment to display entries edited since that date

texts:
I'm trying to create a template that will display a list of entries that have been added or edited since a particular date. The date would be passed as a UNIX timestamp in the URL like so;

mydomain.tld/entries_since/1391212800

I have tried doing something like this but I believe this is not working due to the edit_date in ExpressionEngine not being stored as a UNIX timestamp;

{exp:channel:entries
    channel="items"
    status="open"
    search:edit_date=">={segment_2}"
}

Title: {title}, URL: {url_title}, Edit Date: {edit_date format="{DATE_W3C}"}

{/exp:channel:entries}

Wondered if anyone could help? :)


texts: Output html conditional based on comments in blog post

texts:
I'm trying to only output the heading "Comments" when there are actually comments for a blog post.

Here's what I have:

{if total_comments >= 1}
Comments
{/if}
{exp:comment:entries sort="asc" limit="20"}

{comment}

By {name} on {current_time format="%F %d %Y"}

{/exp:comment:entries}

Any help is much appreciated!


texts: Programatically add entryID to another entries playa field

texts:
I'm looking to set up a situation where a user can visit an entry and create a related entry. The original entry will be the parent, the new entry the child.

The issue is the 'related' entry needs to add itself to the parents entry (playa list), so I'll likely need to create a module or something.

The part that has me flummoxed is simply adding the properly formatted inputs to the Channel Data via mySQL etc does not update the playa field & doesn't work.

Yet, if I open up a channel form (parent entry) and add some hidden inputs – when saved, it correctly updates its playa content. So it's only when saving (Channel form) that both the Channel Data and Playa content gets updated.

Imagine this:

User visits entryA & clicks 'create related entry'
url = /create/{entry_id} <- Parent entry ID
Saves channel form (No playa data)
After it's saved, fire off some 'magic' so it triggers the update to the Parent Entries (entryA) channel data field and also fires an update to the exp_playa table as well - I almost need like an invisible channel form to fire.

If you're still reading: I need some guidance on how to achieve something resembling this and everyone gets a cookie :)


texts:
Some random questions from a EE newb...

1.)

a.) Since Layout templates are so handy (cutting the template into interchangeable header/sidebar/footer, etc), why should our use an embed tag? Any ideas on when you should not use an embed tag over a layout tag?

b.) How would I create different template layouts for the user to pick? Would I need a channel for each? (Have't tinkered with multiple layouts yet, just wondering)

2.) A namespace is the words between the parentheses in any given attribute right?
For example this:

{exp:channel:entries  channel="News" limit="3 status="open"}
<!--code here-->
{/exp:channel:entries}

"News" would be the namespace right?


texts: New posting notification for certain member group

texts:
We have a developed a new academic forum on our site and would like to generate an email to the academic members alerting them that a new posting has been made. I realise that Administrators and Moderators can receive these notifications but there's no apparent way to identify a particular member group other than thses.
I have so far tries Postmaster and MX Notify but sadly neither of these will enable me to monitor forum entries, only channel entries. I was wondering if anyone has found a way around this issue?

Regards

Richard


texts: Expresso Store: 'Variants' 3rd Party Dev Question

texts:
Following on from a question I had a couple months back (Disable certain Combination Variations), I now actually need to do it, and i'm kinda stuck a bit.

What i need to do is this:

Add a product with all its options.
Disable certain variations from control panel.
Set a price for a certain variation.
Give a particular variation a description field
Prevent users from selecting a particular variation on the front end (obeying the disabled variation option on the front end).
Display description for a particular variation.
Charge variation price.

It looks like I can do a lot of this with the stock section. I could use the SKU field for the description. Ok, its a hack, but it'd work.

I could also use the 'limit stock' button to disable a variation , but then, this kind of means that i'm using what may in future be a useful feature, so i'd like to avoid that.

My thinking is to replicate the 'stock' section in a way, with its own table, with all the fields i need.

So, I'm thinking hooks aint gonna cut it.  I'm thinking that I probably am best to look at this as a new expression engine fieldtype that just so happens to require store to run.

I guess i'm just looking for any thoughts, or perhaps even a bit of confirmation that a new ee fieldtype would be the best way to approach this (and then using hooks to override product pricing).... because a big concern is whether or not i'll actually be able to do the frontend stuff too.

I obviously want to do this in a way that means it can be reused... (and not get overwritten every time store release an update)

To furnish this question with a little more info about the original problem, here's my original question.

Disable certain Combination Variations

I'm selling a series of products, one of which is configurable. It has four options, but not all combinations are available, and different combinations will result in a different price.


texts:
I need put in my CP a upload image field.
I would like know if have a possibility that integration of use in my module the default upload file of EE or if I have that do the upload file manually.


texts: Can you associate a member to another member?

texts:
For instance:

Parent is a member
Service provider is a member
Parents have multiple service providers.

So hopefully, I'm hoping to do a query that looks similar to:

get all service providers from that parent

Thanks!


texts:
I have a channel with a category group. I need the search to order results if a certain category has been selected by placing them at the top, and entries with the same category to be then ordered by date.

Is this possible using solspace search?


texts: Show item options in Cartthrob order email

texts:
I'm trying to get Item Options to show in Cartthrob's order email. I'm using the code from the documentation but it doesn't seem to work;

{exp:cartthrob:order_items order_id="{entry_id}" }

        {item:entry_id}

            {item:title}

                {item_options}
                     {option_label} {option_name}: {option_value}
                {/item_options}

            {if is_package}

                {packages}
                    {sub:title}

                {/packages}

            {/if}

        {item:quantity}
        &nbsp;
        {item:price}
(w/ tax: {item:price_plus_tax})

                {item:subtotal}
(w/ tax: {item:subtotal_plus_tax})

            {if item:product_download_url}
            Download
            {/if}

{/exp:cartthrob:order_items}

The item options are definitely captured because when I view the order entry it shows all the selected options.

Has anyone else had this trouble?


texts: PHP.ini max_execution_time setting not being honoured by EE

texts:
I've being trying to increase the max_execution_time php variable for an EE site (EE 2.6.1, FastCGI on php 5.4.44, running on SiteGround's Managed Cloud hosting with cPanel) but it's not updating the local value, currently only 300. Only the global value changes to 800.

This is what I see in EE's CP > Tools > Utilities > PHP Info

Whereas another php info file that sits in the webroot for the site shows this

Using cPanel's PHP Variable Manager, I've increased the memory_limit and max_input_vars without issue: both the local and global values change.

My host's support say that it's an EE "thing". But I've never come across anything of the sort. How do I get the max_execution_time already set as a global value to be honoured by EE?

Any pointers?


texts: Is it possible to call public methods in my module using the core codeigniter mvc routing?

texts:
I am developing a module which resides in the third_party directory of my expression engine install, which includes a public method which sends an email when called via cron. Currently the only way I can think to call this method is by setting up an action and calling it via the url.

Something like this;

http://my.domain/?ACT=52

This seems to be confirmed here as a valid approach.

The problem with this is that it breaks as soon as the module gets re-installed, as the action id will be regenerated.

So then I thought about making a template, which has an embedded call to my module method, and visiting the url of this template from my cron job. This is ok, but I don't like the idea of using templates for something that is not in any way a view.

What I would like to do, bearing in mind EE is built on an MCV framework, is use the codeigniter routing to call it. Something like;

/third_party/my_module/my_controller/my_email_method

But I don't know if this is possible, nor what the form of the url would be if it were possible.


texts:
I am looking for some advice if anyone can help please.

I have a potential project coming up that I would like to use EE CMS for with the addition of an e-commerce add-on, either CartThrob v2 or Store v2.

I have previously used both add-ons so I don't mind which one I use, however the project brief has a few areas that I am unsure of the best approach to build. Please see below:

Recently viewed products
Product search filter (e.g. by size and or colour)
Request a quote (for items that are not for sale due to complex variations, customer would add to a basket still but then send off for an email quote. Possibly using CT Wishlist?)
Powerful site search for searching content as well as products again with filters
Provide category gallery or list view with sortable column headers
Dynamically created pdf datasheet, taking the products tabbed description/content and providing the customer with a link on the fly using the HTML/CSS

Any thoughts on how to provide the above 6 items with either add-on would be appreciated. Looking through on first glance maybe CartThrob would be the best bet with it's wishlist add-on for the quote aspect?

Thanks, Wes


texts: Making a directory's A - B - C - D etc. links

texts:
I'm making a people directory with the A - B - C etc. links, where clicking a letter will take you to the people whose last names begin with that letter. I have a People channel with a last_name field that I can use.

Can anyone recommend a good way to approach this? Thank you.


texts:
I’m new to the expression engine project at our business. We are being acquired by a large company and they’re worried that expression engine cannot handle traffic for a exp_members table of 10M, and concurrent connections at about 10k.

I know that most people will naturally ask “It all depends on server resources, and how big is your database…”, and we can always have bigger boxes, I’m not really interested in theoretical limits, my question is a bit more practical than that.

Has anyone had experience with using EE for 5+ millions of users and approx 10k concurrent users, and what has been your experience been with it?

Please help me understand your experience.

It’s a classic “Executive Decision makers (and what they think they understand from a sales slick”
versus Coders and EE fans.

Thank you.


texts: Channel Form - Control errors on where they should be displayed, inline or not

texts:
I am trying to find a way to be able to control where errors show.

The native EE Channel Form feature of using error_handling="inline" is good for most cases but not for all.

For example, when I try to register a username/email that already exists, an error at the top displays

The username you chose is not available

or

The email you chose is not available

However, I would want these errors to be displayed inline, next to the username/email field.

Is there a way to do this?


texts: FreeForm installation Error - Table 'DATABASE.exp_freeform_fieldtypes' doesn't exist

texts:
When trying to install either FreeForm Lite OR FreeForm Pro version 4.2.3, the following database error occurs, making it impossible to install the plugin.

There are no references to any tables within the database so it's trying to delete something which doesn't exist and failing.

ExpressionEngine version 2.10.1

A Database Error Occurred
Error Number: 1146

Table 'staging_camden_brewery.exp_freeform_fieldtypes' doesn't exist

DELETE FROM `exp_freeform_fieldtypes` WHERE `default_field` = 'y'

Filename: third_party/freeform/models/freeform_model.php

Line Number: 538


texts: List of categories doesn't appear when creating a new parcel in Postmaster

texts:
When creating a new parcel in Postmaster (1.2 beta, build 1.1.99.4), I always find that after selecting a channel, the list of categories for that channel never updates. The text remains as, "This channel has no categories." Even though there are categories for the channel that I selected.

The statuses do update, so I wonder if I'm missing something from the setup as to why these categories don't appear right away? After saving the parcel and going back into it, the categories do then appear.


texts: Child nav item only showing up on parent page in nav menu when using Structure

texts:
I have the following menu built with Structure:

{exp:structure:nav start_from="/" include_ul="no" exclude="10|11|12|13"}
{/exp:structure:nav}

One of my pages is called "About" and a child page called "Our Team."

The problem is that "Our Team" only shows up in navigation when on the "About" or "Our Team" pages.  If I navigate to another page like "Services," the 2nd level navigation disappears.

Any help is much appreciated!


texts: expressionengine 2.5.2 - Parse error: syntax error, unexpected T_STRING in

texts:
I am new in expressionengine, and getting the following error

Parse error: syntax error, unexpected T_STRING in /var/www/system/expressionengine/libraries/Functions.php(680) : eval()'d code on line 153

Who know is this a security vulnerability ? Is there possible php code injection ?


texts:
Planning to switch from editor to wygwam, and when activating for a field for trial I get a complete blank field. The editors input-window flashes for a second, but no buttons are visible during that sec. Then all goes blank.

I have re-installed wygwam according to the installation instructions at P&T, with manual upload and no "updater" involved.
Same error regardless of Safari/Chrome/FFox


texts: Trouble with occurrences loop when client edits a specific occurrence for a recurring event

texts:
I have a site running Solspace Calendar and am having trouble displaying certain occurrences that have been edited by my client.

My 'event2' template displays properly for one-off events as well as recurring events where an occurrence has not been altered. But when my client edits a specific occurrence of a recurring event (like a promotional image or adding a different price, for example), the {exp:calendar:occurrences} tag does not return ANY information.

• Example of one-off event displaying correctly: http://clubomgsf.com/calendar/event2/cake/2015/01/16/

• Example of recurring event whose occurrence has not been edited after creating the recurring event: http://clubomgsf.com/calendar/event2/nsa1/2015/01/13/

• Example of a recurring event whose occurrence has been edited and thusly does not return any data: http://clubomgsf.com/calendar/event2/nsa5/2015/01/06

Is there a reason why creating an occurrence is breaking this loop? If so, what is the proper or alternate way to display each of these types of occurrences? I appreciate any insight that you guys can provide!

Excerpt from 'event2' template:

{exp:calendar:occurrences
            event_name="{segment_3}"
            date_range_start="{segment_4}-{segment_5}-{segment_6}"
            date_range_end="{segment_4}-{segment_5}-{segment_6}"
            show_days="1"
            }

                {if subheader}
{subheader}
{/if}
                {title}

                {exp:stash:get name="month" random} {segment_6}, {segment_4}

                            {if price}${price}
                        {if:else}Free{/if}
                        {price_info}

                        {if ticket_options}
                        {ticket_options search:buy_status="=not inactive"}
                            <button class="owhole" style="margin-top: 6px;">{ticket_options:buy_text}</button>

                        {/ticket_options}
                        {/if}

{event_summary}

        {/exp:calendar:occurrences}