texts: Super Search category conditional if using multiple inclusive categories?

texts:
I'm using two search fields, each searching a different category group, and creating an inclusive category search by combining those fields. The form code looks like this:

<form id="directory-search" method="post" action="/directory/search">
        {exp:super_search:search}
        <fieldset class="search">

Directory

                Search

                        What?
                        <select class="replace-hfirst" name="category[]">
                            <option value="">- choose vendor type -</option>
                            {exp:channel:categories category_group="10" style="linear" show_empty="no"}
                            <option value="{category_url_title}&&" data-selectedtext="{category_name}" {if super_search_category_{category_url_title}}selected="selected"{/if}>{if parent_id != '0'}&nbsp;&nbsp;&nbsp;&nbsp;{/if}{category_name}</option>
                            {/exp:channel:categories}
                        </select>

                        Where?
                        <select class="replace-hfirst" name="category[]">
                            <option value="">- choose location -</option>
                            <option value="" data-selectedtext="All Locations" {if super_search_category == ""}selected="selected"{/if}>All Locations</option>
                            {exp:channel:categories category_group="2" style="linear" show_empty="no"}
                            <option value="{category_url_title}" data-selectedtext="{category_name}" {if super_search_category_{category_url_title}}selected="selected"{/if}>{if parent_id != '0'}&nbsp;&nbsp;&nbsp;&nbsp;{/if}{category_name}</option>
                            {/exp:channel:categories}
                        </select>

                        Search
                        <input type="text" class="search" name="keywords" value="{super_search_keywords}" placeholder="Optional Keyword" />

                        Search

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

And the resulting search string could look like this:
search&category=auckland+photo

"auckland" is a category in one group and "photo" is a category in the second group.

Now I need to find a way to add "selected" to the select option for each category so the searched category is highlighted.

Normally I would do something like:

{if super_search_category == "{category_url_title}"}selected="selected"{/if}

...inside the select option tag. But that doesn't work now that there are multiple categories combined in the string.

The other logical thing would be something like this:

{if super_search_category_{category_url_title}}selected="selected"{/if}

Which , according to the docs sounds like it might be the right format to work with multiple inclusive categories, but that doesn't work - probably a parsing issue trying to add in the category_url_title.

So how do I go about testing to see if an inclusive search string contains each category_url_title so I can select the right option in the select boxes?


texts: Wygwam fields (in Matrix) not initialized when switching fields with Entry Type

texts: I'm using Entry Type to hide/show fields. If the field is a Matrix with Wygwam columns, the Wygwam fields don't initialize when the Matrix field is revealed by Entry Type. However, if I reload the Edit page, Wygwam intializes and all is well. Will be irritating to client to have to reload page for Wygwam's buttons.


texts:
I have a bakery site that uses Switchee to use a single template to serve up multiple "pages", the content of each case is a snippet.

On my order page, I have channel entries products whose categories are being filtered by using the jQuery plugin MixItUp. This is working fine, but when I want to send a "deep link" to the order page to display ONLY the category in a URL hash

http://www.example.com/order#cakes

I cannot figure out for the life of me how to make this work. My js code in the footer is as such:


texts: cannot update certain entries, error 1064

texts:
My site was working just fine, when all of a sudden editing certain pages lead to the error below.
Now it seems as if i'm also not able to create entries in that channel anymore. After hitting submit i keep getting these errors.

Help is geatly appreciated, since this is a live site...

i am running EE 2.8.1

A Database Error Occurred
Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Transfer Needs for Europe's Biggest Sides in Summer,229,682,725,193,188,447,109,' at line 3

SELECT entry_id, channel_id, title, url_title, status FROM exp_channel_titles WHERE entry_id IN (1,303,55,305,103,166,170,168,167,165,4,2,466,56,726,8,13,64,5,169,106,65,174,3,63,306,100,727,186,58,14,420,753,242,489,236,286,327,256,250,549,255,247,323,258,15 Transfer Needs for Europe's Biggest Sides in Summer,229,682,725,193,188,447,109,77,432) ORDER BY entry_id DESC

Filename: /path/to/public_html/assets/addons/wygwam/helper.php

Line Number: 1200


texts:
I've seen hints that the native Grid Fieldtype allows multi-file uploads but I can't find that feature.

http://devot-ee.com/add-ons/jf-multi-file-field says "the new ‘Grid’ field does everything this add-on does" and one of the comments on http://ellislab.com/blog/entry/introducing-grid-new-in-expressionengine-2.7 seems to indicate the same.

but I must be missing something. can someone explain how I can upload multiple images into the grid?


texts: Low Replace Skips First Match in Same Line

texts:
I have a Low Replace tag that uses a regex to target links:

{exp:low_replace
    find=']*href=QUOTE(.+)QUOTE[^>]*(.*)>(.*)<\/a>'
    replace='$3'
    regex='yes'
}
    Search on Google or Bing.
{/exp:low_replace}

But if the links are on the same line, Low Replace will only replace the last one. If I separate the links with a line break, like this:

Search on Google
or Bing.

then Low Replace works as expected.

I'm certain this is some problem with my regex, can anyone offer some insight?


texts: Cartthrob and Transcribe: orders don't get the default language assigned

texts:
I was wondering why my CT invoices are always empty. When digging deeper I noticed that a simple

{exp:channel:entries  channel="orders" status="not none" }
    {if no_results}This invoice could not be found{/if}
    Entry ID: {entry_id}<br />
{/exp:channel:entries}

doesn't even return the no_results branch.

After some more testing it was clear that all CT generated channel entries, i.e. orders and purchased_items, don't have the default language assigned to the channel entry. After manually changing the language the channel entries can be found and invoices get generated as they should.

Question is... is this a CT or a Transcribe bug? Or is there even a configuration setting which I may have missed.


texts: Templates in CP take over 4 minutes to load

texts:
When I click on design/template/edit/XXXX/index or view the page is taking over minutes to load. Same issue under ADMIN. All othe sections load super fast.

related question Fatal: Error Message in EE CP when I want to open a template pr submit changes to a template

  Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to
  allocate 49 bytes) in
  /home/content/94/9617594/html/control/codeigniter/system/database/drivers/mysql/mysql_result.php
  on line 147


texts: File Category or Assets Folders for File Listings?

texts:
I'm using Assets and need to output a 'Resources' section listing various types of PDF's - Brochures, Technical Data, Operating Manuals with a 'category' nav to filter them.

I initially set them up as a category group and although I can apply categories to files using the native EE file manager, I cant seem to find any way of adding categories to files using Assets. Am I just missing something or is there a reason for this?

Would creating sub-folders in Assets and outputting the list using Asset template tags be a better method than using file categories and native tags? Can I filter by sub-folder?

Also, I noticed that if I create a sub-folder with more than a one-word title using Assets, the name is joined with an underscore i.e. 'Technical_Manuals'. Is there any way around this as obviously this wont be suitable front-end?

Finally, I seem to have hit the bug mentioned elsewhere where no files are being output front-end using Assets 2.1.2.


texts: How can I close comments on a mass scale?

texts:
Having just relaunched a site containing a decade of content, I'd like to close comments on everything over a couple years old.

I thought there was something built in, but either it's not there or I can't find it.

Is there an add-on? Or a simple sequel statement?


texts: Show recommended articles based on the current article being read

texts:
The title is pretty self-explanatory, but I have a website which has dozens of articles based on healthcare in the US, each sort of categorised by the type of insurance. At the moment I have a sidebar which shows the four "latest" articles.. however, this can be seen as pretty irrelevant for many readers.

How could I create a list of URLs to the most relevant articles? I.e. if a user is reading up on Medigap, a recommended article could be Medigap costs explained

Help is much appreciated!


texts:
I am using EE's built in contact form feature ({exp:email:contact_form}) on my site and it works great.

The issue I have is that the user is shown the following EE page on submit:

This looks really unprofessional and breaks the experience of the site. Is there a way I can stop this page from being shown? I have tried playing around with the redirect settings but no luck.

Alternatively would there be a way to style the page? For e.g If I was able to add classes to the elements on the page I could hide them in CSS


texts: Some structure tags not working after server move

texts:
Recently moved our development site onto the live hosting and now a few crucial structure tags are not working.

{structure:top:title}
{structure:child_ids}
{exp:structure:entries parent_id="{structure:page:entry_id}"}

However the {exp:structure:nav} does work…

Any ideas? All works fine on our dev build


texts:
I have a site which is a directory of images, grouped by brand. Supersearch is hardcoded in to show a list of results on each page, depending on the brand page that you are on (using it a little like channel:entries).

The site appears to be working perfectly and displaying everything as required but I spoke to the client today who informed me that some images were not showing up in the main listings. Each image is it's own entry and has tags applied etc. and then assigned to a brand. He recreated one of the entries that wasn't showing up in the supersearch results using exactly the same image, information & tags and this time it appeared in the list.

Has anyone experienced Supersearch not showing all results, even though everything appears to be in order?

If it's any help, here is the line of code that calls the search.

{exp:super_search:results parse="inward" redirect_post="yes" search="keywords={exp:parameters:post name='keywords'}&channel=images&image_brand-exact={exp:stash:get name='brand_clean_title'}&orderby=entry_date+desc"}


texts: Group entries by month based on custom date picker field

texts:
Would anyone know if it is possible to group a list of entries by month, but based on a custom date picker field? To display something like this:

October 2014
Title 1
Title 2
Title 3

November 2014
Title 4
Title 5

December 2014
Title 6

January 2015
Title 7
Title 8 etc etc.

It's for a list of holidays, that I need to display by date order in groups. So the entry_date isn't the actual date if the holiday, I've got a custom field as the holiday start date and another on as the holiday end date.


texts: Unable to remove Freeform fields from entries in control panel

texts:
I have a client that's using Freeform 3.0.6 with EE 2.5.2 with multiple forms on their site.  The issue they're having is that when they login to thru the EE control panel to view the form submissions, certain fields are blank, and actually shouldn't even be in the current view.

What I'm wondering is, how do I remove these superfluous fields from the view? Please see the attachments to illustrate what I'm talking about.

Thank you!!


texts: Can I do {exp:channel:entries channel="*wildcardsearch*"}?

texts:
I have multiple channels that I'd like to include, and it would be more convenient to use a wildcard search than piped list. Is there an easy way to do this? Currently I'm thinking of defining a global variable and doing:

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

Where gbl_channels is my piped list since I'll be making this reference in multiple files.

Good way? Any better ways? Thanks for any tips.


texts: I know that one can set a maximum size (in pixels) for images uploaded through the CP, but is there any way to set a minimum size? (Ideally without buying a complete image manipulation suite like CE Images, since this is a low budget site and this is the only feature I'd need).


texts:
I am new to expressionengine,
I created a module that just print a form on a page
my method is:

if( isset($_POST['submit']) ){
            foreach($_POST as $key => $value){
                 $data[$key] = $this->EE->input->post($key);
            }
            print_r($data);
        }
        // Find the entry_id of the auction to add the form for
        if (ee()->TMPL->fetch_param('entry_id'))
        {
            $entry_id = ee()->TMPL->fetch_param('entry_id');
        }

    // Build an array to hold the form's hidden fields
    $hidden_fields = array(
        "entry_id" => $entry_id,
    );

    // Build an array with the form data
    $form_data = array(
        "id"            => $this->EE->TMPL->form_id,
        "class"         => $this->EE->TMPL->form_class,
        "hidden_fields" => $hidden_fields,
        'action'        => "",
    );
    // Fetch contents of the tag pair, ie, the form contents
    $tagdata = $this->EE->TMPL->tagdata;

    $form = $this->EE->functions->form_declaration($form_data) .
    $tagdata . "</form>";

    return $form;
}

above mentioned method returning form but with empty entry_id.
How can i get the entry_id and how can I remove the form action?

Thank you


texts: Low Search - option thats not in field being searched for

texts:
My Low search form always searches for the first option in the field below (Grid column with value/label pairs) even if none of its options are selected.   Can anyone help me with this?

http://mydomainname.com/index.php/properties?search:property_address_set:address_ward=Select+option

<select name="search:property_address_set:address_ward">
    <option>Select option</option>
    {exp:low_options:property_address_set}
    {if option:group != ''}<optgroup label="{option:group}">{/if}
    {options}<option value="{option:value}">{option:label}</option>{/options}
    {if option:group != ''}</optgroup>{/if}
    {/exp:low_options:property_address_set}
</select>

EE 3.5.2


texts: Modifying Focus Labs Config to allow setting site on or off from environment cases

texts:
I'm using Focus Labs Config and trying to give the is_system_on setting the same treatment as the debugging preference.

So far, in config.master.php I have added;

$env_config['is_system_on']         = (ENV_SYSTEM_ON) ? 'y' : 'n' ;

Then within config.env.php, in the appropriate CASE I have (for example);

case 'staging.domain.com' :
    define('ENV', 'stage');
    define('ENV_FULL', 'Staging');
    define('ENV_DEBUG', FALSE);
    define('ENV_SYSTEM_ON', FALSE);
break;

However the system on/off setting in config.env.php seems to be ignored and the only way to turn the site on or off is to do so within the CP.

Everything else is working perfectly across local, dev, staging and production servers with different settings being used for each. It's just this extra one I can't get to work.

Does anyone have any idea why this may be and how I could overcome it so I could set the on/off status within my environment cases?


texts: show expire date on rendered page, template code

texts:
This should be a simple one. I just want o show the the date a channel entry is set to expire on a rendered page as well as when it was made. The Entry is straight forward enough but I can't seem to find a way to show the end date?

Thanks for looking!

{end_date format="%F %j, %Y"}
{entry_date format="%F %j, %Y"}


texts: search: different custom fields across multiple channels

texts:
I have a couple channels with different custom fields.
I would like to combine the entries of multiple channels using the search: parameter, however, I can't specify to which channel the search: parameter applies.

Something equivalent to this:

{exp:channel:entries
    channel='articles|videos|news'

    search:[channel:articles]:article_videos="not IS_EMPTY"
    search:[channel:videos]:video_url="not IS_EMPTY"
    search:[channel:news]:news_video="not IS_EMPTY"

    limit="30"}

Can it be done?
Does someone has a suggestion? Custom query?


texts:
Using Playa setup in a standard way… (ex. I have a channel of Videos and a channel of Papers. In the Video entry, the admin has a playa where they drag over any related Papers.)

The issue I've noticed is that if there is a change to a Paper's Title, the related Video's searchable data doesn't pick up that change (ex. have an existing relationship between Video/Paper, change the paper title, the new title will be right when output in the template, but native search does not reflect the new title where it's related — so a search for the new title doesn't help you find the video.)

This makes sense as my understanding is that:
* You create a relationship in an entry
* When you save that entry Playa copies the Title of the related item into exp_channel_data for search purposes

The problem is I need to make sure that exp_channel_data gets updated when that related title of the related item changes to keep native search working correctly.

Has anyone else run into this/found a workaround? The only thing I've found is to re-save all the entries after a Title change, but that's really not a sustainable fix :/

Tks in advance.


texts: Changing File Module's {file_size} variable into MB

texts:
Is there an easy way to change the File Module's {file_size} variable from its default output of bytes, into megabytes?

Seems just slack not to provide a better user friendly output that what's on offer out of the box.


texts: store_product_price doesn't work in certain parts of template

texts:
I have a template where store_product_price shows the price (and dynamically updates when modifiers are selected) nearer the top of the template, but moved further down it doesn't.

I need to show the price is a floating sidebar, but placed in that part of the HTML it doesn't work.

I've narrowed it down to the point at which it stops working.

This works (and anywhere higher up in the source):

ITEM TOTAL:

This doesn't (and anywhere lower down):

ITEM TOTAL:

Changing section to div doesn't change anything.

Has anyone else experienced anything similar?


texts: How can I get EE to showing new programatically created entries immediately away after creation?

texts:
I have an EE (5.2.6) system to which I am adding new entries programmatically: the new entries are created during an AJAX call to an EE template that creates the new entries using php / EE Model via code like this:

$entry = ee('Model')->make('ChannelEntry');
$entry->title = '{get_post:title}';
$entry->url_title = '{get_post:url_title}';
$entry->site_id =  ee()->config->item('site_id');
$entry->author_id = ee()->session->userdata('member_id');
$entry->ip_address = ee()->session->userdata['ip_address'];
$entry->entry_date = ee()->localize->now;
$entry->edit_date = ee()->localize->now;
$entry->channel_id = 5;
$entry->status = 'open';
$entry->save();

$entry->field_id_5 = '{get_post:custom_content}';
$entry->save();

BTW - {get_post:...} is a tag from the mo'variables add-on that simply retrieves get or post variables with the name assigned in the tag

This creates the new entry (first save) and then loads some data into its custom fields (and then saves again).

The AJAX call uses the .done() method to delay subsequent processing until after the php activity is complete.  Right now all that happens is a page reload (the page is generated by a template that lists out the entries in the channel concerned) - via code a bit like this:

function new_entry(url_title,title,custom_content) {
    return $.ajax({
        method: "GET",
        url: '/some/ee/template',
        data: {
            url_title: url_title,
            title: title,
            custom_content: custom_content
        }
    });
}

new_entry(
    $url_title,
    $title,
    $custom_content
)
.done(location.reload(true));

This is all good, and works (it creates new entries etc.).  Trouble is when the reload happens, the newly created entry does not appear in EE template output.  If I manually reload the template moments later the entry does appear.

So I put some extra code into the php to dump out the state of play to a log as the code runs - and I can see from this that the new entry is being created OK, and I can even load the newly created entry into a variable within the php code and dump out the value in the custom content field of the newly created entry to the error log, all before processing of the php ends and return is passed back to javascript...

I have checked and template / tag caching is turned off across whole of EE templates and site.  The reload(true) call should force browser not to reload from its cache either.

I'm clearly missing something... but no idea what!

Anyone got any thoughts about what I need to do for the newly created entris to appear when the reload happens?

Thanks in advance etc.


texts: Playa: Specify a default child entry if none is selected

texts:
I have a channel with a playa field where users can select a block of content to insert into a page.

Is there a way that I can specify a default child entry to display if the playa field is left blank?


texts:
I just updated a site from EE 2.5.1 to 2.6.1, and from CartThrob 2.1.3 to 2.3.2. When I try to access any CartThrob settings pages, I get a white screen of death. The CartThrob Order Manager works fine. Here's what I've tried, with no luck:

I enabled debugging on my admin.php file. No new errors.
I enabled debugging in system/index.php. No new errors.
My PHP error log is blank
My PHP memory limit is really high (750M on my local server)
I disabled extensions

Suggestions?


texts: Relationships: getting parent from parent

texts:
We have 3 channels called chapters, districts and groups. Channel chapters has a multiple relationship field for districts, channel districts has a multiple relationship field for groups, channel groups has all the groups.

We assign members to groups.

At a point (when a member logs in) we know the group and like to know what district and what chapter are assigned.

In our test here we are putting an entry_id in the group channel to get a certain group out. And then we get the district with the first parents tag.

But the second parents tag for channel chapter does not work.

How would we get the chapter then? Would we need an embed or ...?

Thanks for some advice.

{exp:channel:entries
   channel="gruppen"
   entry_id="1"
}

  {parents field="gruppen"}
      Bezirk (district): {parents:title}
      {!-- The following doesn't work --}
      {parents channel="bereiche" field="bezirke"}
            Bereich (chapter): {parents:title}
      {/parents}
  {/parents}
{/exp:channel:entries}


texts: Unable to change URL to the root directory of my site in global configuration?

texts:
Using Expression Engine 2 the going to Admin>General configuration

I am trying to change both "URL to the root directory of your site" and "URL to your "themes" folder"

I can type the changes in no problem but when I come to save it, the setting remains as the original urls

The config file is writable. What else could I be looking at?
Cheers


texts: How can I uninstall demo templates of User module (Solspace)?

texts:
I have installed the demo templates just to have a look at each template and what it delivers at the frontend.

But for my site, I do not want all these pages to be available to the user. There seems to be no option of uninstalling these demo templates. I uninstalled the user module and reinstalled it ( I didn't installed the demo templates again) but the demo templates are still showing up those user pages.

Any suggestions welcome.

Thanks in advance.


texts: How can I set up a click and collect type of shipping option where a customer collects their order from us

texts: I want to offer people shopping on my Xpresso Store the option of collecting their order from our HQ. I call this 'Click and Collect'. So basically they select this option when checking out and no shipping costs are charged, instead they simply come and pick them up. Thank you


texts: BetterWorkflow preview throws PHP warnings

texts:
ExpressionEngine 2.5.3, Assets 2.0.

I also have a ticket into ElectricPutty's support but they suggested that since Assets is supported natively by BWF now, that I post it here.

When previewing changes to a BWF managed entry, the following PHP warnings are shown in the preview modal:

  A PHP Error was encountered
  Severity: Warning

  Message: trim() expects parameter 1 to be string, array given

  Filename: libraries/Functions.php

  Line Number: 2711

  A PHP Error was encountered
  Severity: Warning

  Message: trim() expects parameter 1 to be string, array given

  Filename: libraries/Functions.php

  Line Number: 2711

  A PHP Error was encountered
  Severity: Warning

  Message: Cannot modify header information - headers already sent by (output started at /Volumes/Macintosh >HD/Users/iso100/Sites/pbsmartsuite/public_html/_system/codeigniter/system/core/Exceptions.php:170)

  Filename: core/Common.php

  Line Number: 412

If I save the draft and try to visit the same entry again to edit it, I get a blank page with only this error:

  Fatal error: Call to a member function file_id() on a non-object in /Volumes/Macintosh HD/Users/iso100/Sites/pbsmartsuite/public_html/third_party/assets/views/thumbview/files.php on line 15


texts: Advanced conditional to show entries where a field is empty

texts:
I'm trying to show a list of all entries in a certain channel, in a certain category. I've got that much. In that, I'm trying to list all entries where a certain field is empty. I'm not getting the results I'm expecting, and I'm having trouble finding how to list a field value as being empty.

Here's the code I'm using:

{exp:channel:entries channel="spc-content" category="5" orderby="title"}
{if content_featureimage ==""}
{title}

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

Here's the output I'm getting, on this page. (Yes, the formatting is nonexistent. This list is essentially "housekeeping" - so that I can more easily figure out which entries I need to go back and fix.) I'm expecting at least four times the number of entries I'm getting in that list, so it's possible that my if-statement syntax is not the world's best. But...what should the correct syntax be, if I want to see a list of all entries that don't have anything in the content_featureimage field?

I'm running EE 2.5.4.


texts: Template debugger not outputting information about add-ons

texts:
I have Template Debugging and Output Profiler turned on for my site, but i'm not seeing any debug information about my add-ons being used on the site.

On any other site it would show what's happening with things like CE Image, CE Tweet etc.

I was wondering if anyone else has had this problem before? i've checked the logs but i think it's something on the server or something with EE in general that is simply preventing certain tags being processed.

Would be greatful for any assistance.

Thanks.


texts:
I'm having these errors in my EE developer log:

Deprecated function set_cookie() called in system/expressionengine/third_party/cartthrob/libraries/Cartthrob_session.php on line 195.

From template tag exp:cartthrob:__construct in core/article.
This tag may have been parsed from one of these snippets: {snippet_header}, {snippet_header_testing}, {snippet_header_backup_feb_1_2013}, {snippet_header-donation}
Deprecated since 2.8. Use EE_Input::set_cookie() instead.

I'm running latest CT and EE versions.
is this something that should be ignored?


texts: Site migrated and now stash returns hashes not values... help!

texts:
Have an EE2 site that is working fine.  Makes minor use of stash to store values for reuse elsewhere on a page.

I needed to move a copy of the site to a local server (MampPro) to allow me to begin EE3 migration work.  The basic migrated site works OK except that all stash instances are now returning hash values rather than content.  Here is an example - this snippet stores a channel field value in a stash and pulls it out elsewhere on the page:

{exp:stash:set name="std_summary"}
{std_summary}
{/exp:stash:set}
…

{exp:stash:get name="std_summary" process="end"}

This structure works fine on the production site, but on the localised site it returns

{2fc38ed93cc9ea575c96a499a4f268d7807380034}

I've checked the configuration for stash, and it seems to be inline with the settings described in stash/wiki - (i.e. has a valid path and url for the stash cache, and rerun module updates) - but clearly I'm missing something in setup.

Using EE2.11.1 and stash 2.6.9.

Grateful for any ideas about what setting / config I've missed.


texts: Restricting images and file links to members only

texts:
I need to create a news/blog section only accessible to logged in members.
I know I can restrict templates to members and use {if logged_in} to restrict displaying fields etc.

I am looking for advice on how best to approach restricting access to images shown and file links included within the blog, so that the URLs to these do not let general site visitors / search engines etc access the files and images.

Ideally, the blog admin could write blog posts in a wyswiyg (wygwam) field including images and file links there. If that's not possible, extra fields for images and file links could be used.

I figure this is a common enough requirement, so I would really appreciate some guidance on how best to approach this. Thanks.


texts: Include custom JavaScript in the control panel

texts:
I need to be able to add some javascript globally to the Admin section of my site, and i have been using the cp_css_js extension for this which has sort of worked. The thing is that it's super buggy ( running the js-code twice on some pages for instance, and don't get me started on the way you "add" the actual code ).

I have googled for the better part of this day for a nicer way to do this, without luck, but i feel there should be something like wordpress' enqueue_script-function. The only way i have been sort of successful is creating my own plugin, and using the cp->load_package_js() in my mcp.* file, but that only runs when i'm on the actual plugin-page, not globally across the Admin-area.

Does anybody know of a nice way to do this?

Thank you,

/Anders


texts: After removing index.php from URL, pages on the host server are being displayed instead of the pages that were created in EE

texts:
I wanted to remove the index.php the shows up in the URL. I used this guide:
https://ellislab.com/expressionengine/user-guide/urls/remove_index.php.html

The 'index.php' is removed but some pages are being displayed incorrectly, or maybe the wrong pages are being requested. I have also tried all the exceptions and cases in the guide as well.

Example:
Before the index.php change, when requesting the page
www.mywebsite.com/help/
I would get the page that was created on Expression Engine.

After the change, I would get the index file to the help directory, which listed all the files in that directory. The directory and files seem to come from the server hosting the website. Also, requests to other webpages returned 404 errors.

Basically, The 'index.php' fix removes the index.php from the URL, but makes some webpages return errors when requested.

Update:

Sure, I'm using Apache version 2.2.3
and this is the portion I added to remove the 'index.php':

Removes index.php from ExpressionEngine URLs

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

Directs all EE web requests through the site index file

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


texts: Further extending the SEO Lite through the advanced config options

texts:
I almost have what I am after working completely thanks to the answer from @bjørn-børresen on this previous question.

Now I have the description and images working the way I need, but I cannot get the title replacement to operate like I am needing.

Using the documentation, I entered the config options as:

/**
 *
 * Pull additional info for SEO Lite
 *
 * channel_id => array(field_id => tag_name)
 **/
$config['seolite_extra'] = array(
    '13' => array(                               // mission
        'headline' => array(
            'field_id' => 38,                    // {intro_title}
            'field_type' => 'text',
        ),
        'desc' => array(
            'field_id' => 37,                    // {brief_intro}
            'field_type' => 'editor',
        ),
        'image' => array(
            'field_id' => 36,                    // {page_header}
            'field_type' => 'file',
        )
    )
);

So inside my SEO template, (simplified here of course), I have the variable {extra:headline}in my template, but it doesn't seem to be reading. I am including the switchee logic to check for a default text string inside the default value entered and using the chopper plugin to trim the characters and strip html.

<title>{extra:headline} | {site_name}</title>
<meta name="keywords" content="{meta_keywords}" />
{exp:switchee variable="{meta_description}" parse="inward" }
    {case value="/\\\\My default string/"}
        <meta name="description" content="{exp:chopper chars='157' append='...'}{extra:desc}{/exp:chopper}"/>
        <meta property="og:description" content="{exp:chopper chars='157' append='...'}{extra:desc}{/exp:chopper}"/>
    {/case}
    {case default="Yes")
        <meta name="description" content="{exp:chopper chars='157' append='...'}{meta_description}{/exp:chopper}" />
        <meta property="og:description" content="{exp:chopper chars='157' append='...'}{meta_description}{/exp:chopper}"/>
    {/case}
{/exp:switchee}

The only issue I am having is getting the {extra:headline} to output.

EE 3.1.4, Stash 3.0.0, SEO Lite 1.5.1


texts: P & T Matrix URL Title [current] & EE 2.7.2 fatal error

texts:
Have been unable to clear this / or uninstall.  Can't open FT in addons dropdown in CP

Fatal error: Class Matrix_url_title_ft contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (EE_Fieldtype::display_field) in /var/www/www.domain/system/expressionengine/third_party/matrix_url_title/ft.matrix_url_title.php on line 166

https://github.com/pixelandtonic/matrix_url_title

Help is greatly appreciated


texts:
i recently upgraded to expression engine from 2.6.2 and 2.8.2 and made the change to channel forms from safecracker.Everything went well and the forms are working fine but I am having a issue with my date picker field. It still works but seems to have lost the path to its style and im not sure what to change to fix this.
See picture below

Any help is greatly appreciated


texts: Expresso-store product modifiers or multiple entries?

texts:
Product 2

This would be a single product that is either a download OR physical product. Ideally this would be a single entry as the data remains the same - it’s simply the end product that varies in format and price… so my questions are:

Question 2a - 1: Can we handle the product ‘type’ with modifiers, is this the best way to manage this?
Question 2a - 2: If a physical product is chosen is it easy to add postage? (digital download has no postage)
Question 2a - 3: Depending on the type chosen can we vary the email that is sent to the user?


texts:
Is there a better (less server intensive therefore slow) way to retrieve entries based on a category setting i.e. this is what we currently use:-

 {exp:channel:categories channel="products" style="linear"}
    {if show_in_main_menu == "Yes"}
      {exp:gwcode_categories cat_id="{category_id}" incl_self="no" style="linear" disable="member_data|pagination|categories|category_fields"}
        [ENTRY DATA]
      {/exp:gwcode_categories}
    {/if}
 {/exp:channel:categories}

This currently takes about 3 seconds per iteration on our site (and we have to do something similar in 2 other locations) so we're getting ~10 second page load times which the client isn't happy about!


texts: Trying to add items to a Shortlist using my own module

texts:
I'm using the Squarebit Shortlist module and extending it to add multiple items at once using my own module. I'm calling shortlist_item_model->add and passing a key array with an entry_id and a list_id but for each time I call that function (despite passing the same list_id) the Shortlist module is creating a new list. I'm at a loss...

function Add_multiples() {

    ee()->load->add_package_path(PATH_THIRD.'shortlist');
    if(!class_exists('Shortlist_model')) ee()->load->library('Shortlist_model');
    if(!isset(ee()->shortlist_core_model)) Shortlist_model::load_models();

    // Before we do anything clear all lists
    ee()->shortlist_list_model->clear_list(array('all_lists'=>TRUE));

    $entry_ids = ee()->input->post('entry_ids');

    $keys = array();

    foreach($entry_ids AS $entry_id) {

        // Create our keys
        $keys['entry_id'] = $entry_id;

        // Insert our item into the default list
        $item_id = ee()->shortlist_item_model->add($keys);

        // Make sure we add subsequent items with the same list_id
        if (!isset($keys['list_id'])) {
            $item = ee()->shortlist_item_model->get_one($item_id);
            $keys['list_id'] = $item['list_id'];
        }
    }

}

Any thoughts greatly appreciated. :)


texts:
PHP 7 Release Candidate 7 came out today.

Rasmus Lerdorf has been giving talks on the advantages of PHP7 including benchmarking against many popular PHP applications -- for example here's the benchmark for WordPress.  His talks also include a request for PHP users to run their own tests/benchmarks against their own code.

Questions:

Has anyone tried EE3 or EE2 on this new version of PHP?

Has EllisLab made any comment regarding EE on PHP7?

Has anyone tried benchmarking EE on PHP7 according to Ras' instructions?


texts:
EE 2.8.1
Structure 3.3.14.5

I've got a template Where I need to use {structure:page:entry_id}  to pass the current pages entry id in order to list some entries. However on this page {structure:page:entry_id} does nothing, zilch, nada. When I place it anywhere in the template it doesn't output the entry_id at all. In fact it gets rendered on the front end as if the variable were not valide with curly braces and all.

The Code that I'm trying to use is:

{exp:structure:entries parent_id="{structure:page:entry_id}"}
    {switch='
||'}

{title}

    {switch='||
'}
{/exp:structure:entries}

If I hard code in the parent_id the code renders as expected.


texts: search:field_name= and special characters

texts:
I have a client site who is pulling in channel entries with dollar amounts in them; most of the dollar amounts are regular numbers, 2000, 100, etc., some are negative amounts (chargebacks?), -1600, etc., and some are just a dash "-".

I'm trying to filter the just dash "-" entries out of the results.

The parameter

search:tax_deductible_amount="not -"

removes all negative and just dash entries; however, the parameter with exact matching

search:tax_deductible_amount="=not -"

returns everything. Does it not recognize special characters?

Help?

Thanks!


texts: Zoo Visitor and Structure - Different Urls and Templates per member group

texts:
I'm using Structure and Zoo Visitor for a Recruitment site I'm currently working on which will have two distinct types of users (I have two seperate member groups for permissions).

Staff Members (Login access to CP, add/edit/delete Blog Posts, Jobs Postings, etc).
Candidates (No Access to CP. Register on Front-end, edit their own profile, Apply for Jobs etc.)

What I'm struggling with is how I'd setup the Urls bearing in mind I use Structure to manage that. How will I be able to distiguish between the two member groups so I can have different Urls / Templates etc?

I've added the Zoo Visitor Member channel to Structure as a listing, but I notice the Structure tab is missing when editing an Entry. Which would make sense as there doesn't look like any way to determine which member group you're dealing with.

Ideally I'd like to have:

/team/ (listing of all Staff members).
/team/joe-bloggs (an individual staff member)

/candidate (only display your own profile when logged in)
/candidate/login (speaks for itself).

EDIT: I can accomplish the /candidate/ section of the site fine using the standard Zoo Visitor templates. What I can't seem to do is assign a specific template to the the staff member part /team/joe-bloggs/. The Structure tab is missing from the Add / Edit Entry form in CP.


texts:
I'm trying to get channel images to show within a ee relationship. All the title and links show correctly, but the images are not showing at all.

Running EE 3.5.7 and channel images 6.0.3

I'm using the following code:

Editors Picks

{exp:channel:entries channel="cria_picks" limit="3"}
{cria_editors_picks}

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

{/exp:channel_images:images}

{cria_editors_picks:title}

<time datetime="{cria_editors_picks:entry_date format="%Y-%m-%dT%H:%i"}" pubdate class="updated">{date_heading}{cria_editors_picks:entry_date format="%d %F %Y"}{/date_heading}</time>

{/cria_editors_picks}
{/exp:channel:entries}

Not sure what I'm missing. I'm using this code as an embed.


texts:
EE novice here. This question has to do with best practices.

When is it necessary to make a channel for dynamic editing for your users vs simply making a channel field and simply attache that to an existing channel?

For example, if I want to make a blog, duh...I will need channel and field groups for that. However, if I just need to change headings on a specific page. Do I need to make a channel>field group > etc? Or just a field group that is aptly named and then throw that under any other pre-existing channel I already have up (this seems haphazard in my opinion)? In summary, I want to be professional (a.k.a. clear and efficient!)


texts: Stash get_list and prefix: variables not rendering

texts:
Using EE 273 and stash 252.

As soon as I add a prefix parameter to a get_list, stash variables inside the list are not rendering.

Set_list part

{!-- Get last 3 news --}
{exp:stash:set_list name="st_latestnews" parse_tags="yes"}

    {exp:channel:entries
        channel="news"
        disable="categories|category_fields|member_data|pagination"
        orderby="date"
        sort="desc"
        limit="3"
        dynamic="no"
    }
        {stash:st_item_title}{title}{/stash:st_item_title}
        {stash:st_item_url}{url_title_path="news_press/news_detail"}{/stash:st_item_url}
        {stash:st_item_date}{entry_date format="%F %j, %Y"}{/stash:st_item_date}
        {stash:st_item_machinedate}{entry_date format="%Y-%m-%d"}{/stash:st_item_machinedate}
        {stash:st_item_img}{news_img}{/stash:st_item_img}
        {stash:st_item_img_caption}{news_img_caption}{/stash:st_item_img_caption}
        {stash:st_item_img_copyright}{news_img_copyright}{/stash:st_item_img_copyright}
        {stash:st_item_summary}{news_summary}{/stash:st_item_summary}
    {/exp:channel:entries}

{/exp:stash:set_list}

Get list without prefix: works (but no_results does not)

Everything is rendered fine but no_results does not work here. Tried adding parse_conditionals="yes" and parse_tags="yes" but no dice.

{!-- display news list --}
{exp:stash:get_list name="st_latestnews"}

    {if count == 1}

{/if}

{exp:ce_img:pair src="{st_item_img}" width="600" height="337" crop="yes|center,center" allow_scale_larger="yes"}{/exp:ce_img:pair}

<time datetime="{st_item_mdate}">{st_item_date}</time>

{st_item_title}

{exp:eehive_hacksaw words="30" append="&hellip;"}{st_item_summary}{/exp:eehive_hacksaw}

    {if count == total_results}

{if:else}

{/if}

    {!-- handling no result --}
    {if no_results}
No news found
{/if}

{/exp:stash:get_list}

Get list with prefix: variables do not render (but no_results works)

With previous versions of Stash, this used to work to get the no_results tag to behave properly. Here, as soon as I add a prefix parameter, nothing renders, although the list is correctly populated and retrieved in the template debugger.

{!-- display news list --}
{exp:stash:get_list name="st_latestnews" prefix="stashprefix"}

    {if count == 1}

{/if}

{exp:ce_img:pair src="{st_item_img}" width="600" height="337" crop="yes|center,center" allow_scale_larger="yes"}{/exp:ce_img:pair}

<time datetime="{st_item_mdate}">{st_item_date}</time>

{st_item_title}

{exp:eehive_hacksaw words="30" append="&hellip;"}{st_item_summary}{/exp:eehive_hacksaw}

    {if count == total_results}

{if:else}

{/if}

    {!-- handling no result --}
    {if stashprefix:no_results}
No news found
{/if}

{/exp:stash:get_list}

Is this a bug or am I missing something obvious here (as it could well be the case) ?


texts: General backup security question when using Amazon S3

texts:
I have a general security/privacy question about addons that use Amazon S3 for backup / file storage.

Here's my scenario: I host most of my client sites myself and use my own Amazon S3 account to backup various databases and files. However, when using a number of popular addons, at the S3 configuration stage of the setup you enter the authentication details and are then able to see all the buckets in that account.

This of course means that any Super Admin of any one of these sites potentially has access to buckets belonging to other clients. See the security/privacy issue?

Does anyone know a workaround for this, other than each client having their own S3 account?

Cheers

Jim


texts: Channel Field Date: Ignore timestamp during comparisons

texts:
I have a channel field named start of campaign and one named end of campaign.  I want to make do a conditional that says if today is equal to or later than the start of campaign AND today is before the end of the campaign then do something.

But what I've noticed is if you use %U for formatting it includes the time the entry was created which means the date range is more like 1/1/13 1:13PM -> 1/5/13 1:13PM when what I really want is 1/1/13 12:00AM -> 1/5/13 11:59PM

{if '{start_of_campaign format="%U"}' <= '{current_time format="%U"}' AND '{end_of_campaign format="%U"}' > '{current_time format="%U"}'}

That is what I am currently using but that cant be accurate right?


texts: Create User in the backend on channel form submission

texts:
I have a channel Retailers with channel fields: Title, Email, Country, etc..

On the front end the visitors on the site can enter information in this channel (if they are retailers) via the channel form.

{exp:channel:form channel="retailers"}

The site is still under construction and we want all visitors that are retailers to "register" or enter some data about themself that is going to be later displayed.

Is there any way to create a User/Member in the backend(using some of the channel form data) after submitting this information in the channel Retailers?


texts: Expresso Store: Order Confirmation email template - order date

texts:
Is there any way to get displayed order date in the order confirmation email template? I know about {order_date} tag but it comes as unix datestamp and I have no clue how to convert it to regular date.

Thanks


texts: Control Panel theme that looks like Wordpress

texts:
I think EE's Control Panel is super simple and intuitive. Granted, I have been using it for over 3 years now, so I am comfortable in it. However, I have had several clients over the years express that they are more comfortable in the Wordpress Backend.

I was wondering, is there any Control Panel theme available that makes the EE Control Panel look and behave similar to Wordpress' backend? (Nav on the left, similar nav organization, publish page layout, etc).

Thanks!

UPDATE:
I was able to accomplish most of what I wanted by modifying the control panel CSS. Basically, just to get the top nav down along the left.

It's not everything I wanted, but it's a start. Basically, I just made a copy of /themes/cp_themes/default/ and called it /themes/cp_themes/wordpressy/ and added the following CSS to global.css:

body {
    background-color: #27343C;
}
#branding {
    margin-bottom: 0px;
}
#mainMenu {
    width: 15%;
    height: 100%;
    float: left;
    position: fixed;
    left: 0px;
    top: 20px;
    z-index: 9999;
}
#navigationTabs {
    margin: 0px;
}
#navigationTabs li:last-child{
    width:100%;
}
#navigationTabs li,
#navigationTabs li li {
    float: none;
}
#mainWrapper {
    float: right;
    width: 85%;
}

I would like to be able to split the main "Content" menu item into individual menu items for each Channel, with maybe "Add New" and "View All" sub items... maybe I could do that with some clever jQuery?

And my reasoning again, for those who think this is a pointless endeavor, is just to break down some imaginary barriers that some clients of mine seem to have when switching to a new CMS.


texts: List entries grouped by field value and category

texts:
I have a channel (products) where each entry has only one category.  Each entry also has a custom field (year) which stores a year value (e.g. 2015).

The output I currently have looks like this (note the non-grouped categories):

2015

Category 1

Product A
Product B

Category 2

Product C

Category 3

Product D

Category 2

Product E

2014

Category 2

Product F
etc

I'm trying to output the entries so they're grouped first by year then by the category.  E.g:

2015

Category 1

Product A
Product B

Category 2

Product C
Product E

2014

Category 2

Product F

etc

So far I've managed to achieve most of this using Stash and IfElse to get the output structured by year then the entries themselves but I'm struggling on how to get the entries grouped by category.

My code looks like:

{exp:channel:entries channel="products" dynamic="no" disable="pagination|member_data" status="open|featured" orderby="launched"}
    {exp:stash:append name="products_{launched}" parse="inward"}

{categories}{category_name}{/categories}

        {title}

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

{exp:stash:set_list name="the_products" parse_tags="yes"}
  {exp:channel:entries channel="products" status="open|featured" orderby="launched"}
    {stash:item_title}{title}{/stash:item_title}
    {stash:item_launched}{launched}{/stash:item_launched}
    {stash:item_category}{categories}{category_name}{/category}{/stash:item_category}
  {/exp:channel:entries}
{/exp:stash:set_list}

{exp:stash:set_value name="prev_year" value="0" parse="inward"}

{exp:stash:get_list name="the_products" unique="item_launched" match="#.*\S.*#" against="item_launched"}
    {exp:stash:set_value name="launched_year" value="{launched}" parse="inward"}

    {exp:ifelse parse="outward"}
        {if {exp:stash:not_empty name="launched_year"}}
            {exp:stash:set_value name="launched_year" value="{item_launched}"}
            {if "{exp:stash:launched_year}" == "{exp:stash:prev_year}"}

                {exp:stash:set_value name="prev_year" value="{item_launched}"}

            {if:else}

{exp:stash:launched_year}

                {exp:stash:get name="products_{item_launched}"}

            {/if}
        {/if}
    {/exp:ifelse}
{/exp:stash:get_list}

Am I on the right track with this please?


texts: Solspace Tracker - Any way to order results?

texts: Looking at the Tracker Control Panel, is there any way to order the tables for Overall Statistics, Site Averages, or Entry Statistics? It seems intuitive to click the column heading for that, but that doesn't do anything.


texts: Carthrob Get custom order data field value

texts:
I am using cartthrob
I have created a custom field called notes

I am working on a pre authorize hook

I can retrieve the current order details like
$this->EE->cartthrob->cart->order('payment_gateway')

but if i try and retrieve my  custom field data nothing is returned even though the data is stored in the order channel entry after i submit the order

when i out put the custom data there is no mention of my custom field

"custom_data"]=> array(0) { } ["subscription"]=> bool(false) ["subscription_options"]=> array(0) { } ["payment_gateway"]=> string(6) "stripe" ["subscription_id"]=> bool(false)

Thanks


texts: Multisite - Create New Site Button Not Appearing

texts: We were recently having issues with MSM in ExpressionEngine, and we were told that we had the wrong version of MSM for our version of ExpressionEngine. We are running version 2.5.5. We were told to contact ExpressionEngine to get a version of MSM that would work with our build. We were sent MSM 2.1.4, the installation went well, and I am able to click on the Edit Sites button and get to the Edit Sites page. However while on this page, the Create New Site button does not display. I'm not sure what the issue is.


texts: Show currently displayed results and total results in pagination

texts:
I have the following channel entry tag:

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

{!--output--}

{paginate}

            {if previous_page}{/if}

            {if previous_page}{/if}

{current_page} of {total_pages}

            {if next_page}{/if}

            {if next_page}{/if}

{/paginate}

{/exp:channel:entries}

Now that pagination displays the current and total pages, but instead I want it to show the current entries range and total entries, like this:

1 - 8 of 26 results for page one

9 - 16 of 26  results for page two

and so on.

I assembled this string:

{count} to {absolute_count} of {absolute_results} results

but I obviously can't just put it in the entry tag as it would parse for each entry. Moreover, {count} references the currently displayed items (ie. {count} will always be 1-8). I would have to do some sort of calculation to find the first count of the page. I assume an addon like Math would be suitable.

So to get the correct last count (ie. 8, 16, 24 etc.) the string should only be parsed on the final entry for a given page. What sort of condition could I use to ensure it only parses for the last entry?


texts: Cartthrob: Setting product status to sold on purchase

texts:
We have a product list that lists single items. At the moment the client has to go in and manually set the item to "sold" using a toggle in the product listing in the EE CMS. I'm looking to automatically set that toggle to "sold" once the payment has been successfully made.
What would be the best direction to take with this?


texts: ExpressionEngine Matrix :total_rows doesn't work when no rows

texts:
Matrix 2.5 and 2.6 on ExpressionEngine 2.7.3.

The :total_rows property doesn't work when there are no rows. It works fine when there are rows.

Below isn't actual code, but it's showing the gist.

{exp:channel:entries dynamic="no" channel="regions" url_title="[url_title]"}
    {if "{social_networks:total_rows}" > 0}
        {!--  Do the things --}
    {if:else}
        {!--  Don't do the things --}
    {/if}
{/exp:channel:entries}

Outputting {social_networks:total_rows} is an empty string (which I can't even match against with a conditional) until there's a Matrix row.

Has anyone else noticed this? I don't want to have to start pulling the plugin apart.


texts:
Assume the URL: www.domain.com. What is {segment_1}? It's empty, right?

Now assume the URL: www.domain.com/foo/. What is {segment_1}? It's foo, right?

I have this in my template:

{if segment_1 == ''}{segment_1} - case 1{/if}

{if segment_1 == 'foo'}{segment_1} - case 2{/if}

On www.domain.com, I get an output of - case 1 wrapped in h1 tags followed by an empty pair of h1 tags. This seems correct to me.

On www.domain.com/foo/, I get an output of foo - case 1 wrapped in h1 tags followed again by an empty pair of h1 tags. This is wrong. I should be getting an empty pair of h1 tags followed by foo - case 2. Any idea what's going wrong with my conditionals?

I'm using latest version of EE. Using Stash, too.


texts:
I have a function in my module.php file:

public function evo_admin_pb() {
        $this->EE->load->library('db/cache_mproc', '', 'qodb');
        $this->EE->load->model('store');
        $this->EE->cp->set_breadcrumb($this->_base_url, lang('qo5_module_name'));
        $this->EE->cp->set_variable('cp_page_title', lang('evo_admin_pb'));

        $data = array(
            'pizza_type_form_action' => $this->_form_base . AMP . 'method=evo_select_pizza_type'
        );
        $data['_theme_base_url'] = $this->_theme_base_url;

        $results = $this->EE->db->query("SELECT type_extra_id, friendly_desc FROM exp_qo5_pbev_type_extras WHERE extra_type = 'Finisher' ORDER BY friendly_desc");

        if ($results->num_rows() > 0) {
            foreach ($results->result_array() as $row) {
                $data['finishers'][$row['type_extra_id']] =  $row['friendly_desc'];
            }
        }

        $data['crust_images'] = $this->get_asset_dir('evo_pb/crust/', '', TRUE);

        if(isset($_SESSION['evo_pb_admin_crust']) && isset($_SESSION['evo_pb_admin_size']) && isset($_SESSION['evo_pb_admin_finisher'])){
            $data['evo_selected_crust'] = $_SESSION['evo_pb_admin_crust'];
            $data['evo_selected_size'] = $_SESSION['evo_pb_admin_size'];
            $data['evo_selected_finisher'] = $_SESSION['evo_pb_admin_finisher'];
        }
        else if ($this->EE->input->post('action', TRUE) == 'edit') {
            error_log("edit");
            $data['evo_selected_crust'] = $this->EE->input->post('crust', true);
            $data['evo_selected_size'] = $this->EE->input->post('size', true);
            $data['evo_selected_finisher'] = $this->EE->input->post('finisher', true);
        }
        error_log("data going into view")        ;
        error_log(print_r($data, 1));
        return $this->EE->load->view('pizzabuilder/evo_admin_pb', $data, TRUE);
    }

The function is called two ways: first way is from a link that changes the URL directly so something like http://my_site.com/ap.php?C=addons_modules&M=show_module_cp&module=qo5&method=evo_admin_pb. This works correctly and loads the template as shown in the last line of the function.

The other way is from another javascript function:

function editCrustConfig(size, crust, finisher) {
    $.ajax({
            type : 'POST',
            url : EE.BASE + '&C=addons_modules&M=show_module_cp&module=qo5&method=evo_admin_pb',
            dataType : 'json',
            data: {
                action: 'edit',
                size: size,
                crust: crust,
                finisher: finisher
            }
        });
}

There are a series of HTML table rows generated in another view that each has a link which calls the js function like this: javascript:editCrustConfig( 'M', 'H', 'MA'). This doesn't work correctly, and I'm not sure why. editCrustConfig is running, and calling the evo_admin_pb function. It's getting all the way to the end of the function, and the error logging of the data being passed in to the view is correct. The only thing that isn't happening is the view actually loading.

What am I doing wrong? (We're on 2.5.2.)


texts: Why do only certain templates show "No file exists" on Synchronize Templates page?

texts:
When I view the Synchronize Templates page, some of my templates consistently show "No file exists" instead of the file edit date.

While reviewing permissions, I discovered the files do indeed exist. Further, the files get updated upon editing and saving the template within EE admin panel. If I check the box to force a sync, the reloaded Synchronize Templates page still shows the error.

The templates seem to work fine aside from the no file exists error.


texts:
I'm trying to Stash and output an entry from a channel.
Since I also need a dynamic=no menu on the left, I've been able to use a match of the {segment_2} against the url-title to dinamically display the actual entry.

I would like to display, under the main content, its related entries, which are stored as matrix rows. Each related entry has a custom title, a custom bodycopy and a link to the actual entry. The link is stored in one of the Matrix fields as a Playa field. So far I've been able to achieve most of my requirements, but I can't seem to find a way to indicate the context in the get_list for the Playa.

Each related entry, lists links from other rows too. So, if I get 4 related results, each result lists its link and the ones from it's siblings (3+1) too.

{exp:stash:set_list name="patologie_list" parse_tags="yes" parse_depth="2"}
{exp:channel:entries channel="elements_patologie" dynamic="no"}
    {stash:entry_id}{entry_id}{/stash:entry_id}
    {stash:title}{title}{/stash:title}
    {stash:testo_patologia}{testo_patologia}{/stash:testo_patologia}
    {stash:url_title}{url_title}{/stash:url_title}
        {exp:stash:set_list:matrix name="matrix_link_patologia" context="{entry_id}" parse_tags="yes"}
            {matrix_link_patologia}
                {stash:titolo_link_patologia}{titolo_link_patologia}{/stash:titolo_link_patologia}
                {stash:testo_link_patologia}{testo_link_patologia}{/stash:testo_link_patologia}
                {exp:stash:set_list:playa parse_tags="yes" name="resources"}
                        {exp:playa:children col="link_patologia"}
                            {stash:link_patologia}{url_title}{/stash:link_patologia}
                        {/exp:playa:children}
                {/exp:stash:set_list:playa}
            {/matrix_link_patologia}
        {/exp:stash:set_list:matrix}
{/exp:channel:entries}
{/exp:stash:set_list}

                {exp:stash:get_list name="patologie_list"}

{title}

                {/exp:stash:get_list}

Le patologie trattate

        {exp:stash:get_list name="patologie_list" match="#^{segment_2}$#" against="url_title"}

{title}

            {testo_patologia}

                {exp:stash:get_list:matrix name="matrix_link_patologia" context="{entry_id}" limit="4"}

{titolo_link_patologia}

{testo_link_patologia}
                        {exp:stash:get_list:playa name="resources"}
                        Continua

                        {/exp:stash:get_list:playa}

                {/exp:stash:get_list:matrix}

        {/exp:stash:get_list}


texts:
In EE2 there was the "Server path to site's templates" for each site in MSM. So it was possible to have two separated folder structures similar to:

domain-A.tld (with whole ee system)
/system
/themes
/css
/js
/templates

domain-B.tld (without any system)
/css
/js
/templates

So it was easy to run two different frontends.

Now in ee3 there is no possibility to set a custom basepath for the templates of different MSM-Sites. So all template files for both domains would now be stored in the directory of domain-A (when looking at the example above)

I'm working with the Editor 'Sublime Text' on a local machine and want to work on two complete different folder structures. How to do it with ee3?


texts: Unable to import .CSV files with Solspace Importer Module

texts:
Am working with Solspace Importer for the first time in EE2 and I find that I am unable to import .CSV files as entries.

The erorr that get is:

  The source data file contained either no data or invalid data.

I've tried a number of increasingly simple .csv files and none of them are working.

I am running EE 2.8.1 (latest) and Solspace Importer 2.2.4 (also latest).

Viewing the expressionengine/cache/importer directory I can see that the files are successfully uploaded.

I am able to import via .XML, but NOT .CSV


texts: changing the assigned template to Structure listing

texts:
Have inherited an EE build that uses Structure and has a handful of channels.

There is 1 'page' type and 4 'listings'. Unfortunately, the dev has decided to use 1 template for the single entry views of each.

Does anyone know how I can modify the template being used for each of the entries (1000s) in a given channel?

I know there's this script but that changes the template for everything http://buildwithstructure.com/documentation/how_can_i_batch_update_templates_for_existing_entries/

It seems that Structure stores the template against the entry in a base64 encoded field (site_pages) inside exp_sites but can't see any way to change.


texts:
I am testing Expresso Store with Authorize.net. I have the API login ID and Transaction key entered in correctly but I am receiving the following error:

ERROR: (TESTMODE) The merchant login ID or password is invalid or the account is inactive.

I contacted Authorize.et and they said to make sure that we are posting request to the correct URL and provided this link: https://support.authorize.net/authkb/index?page=content&id=A415&actp=search&viewlocale=en_US&searchid=1450803628869

Any help is appreciated.


texts: CartThrob Processing Without Required Email

texts:
I've set up a checkout form that requires the email address field, but users are able to submit the form without an email address, anyway.

Here is my tag, and the fields match up properly:

{exp:cartthrob:checkout_form return="give/donation_thanks/" required="first_name|last_name|email_address"}

What am I doing wrong here?

Thanks,

ty


texts:
I can't figure out why this conditional does not work. It is a dropdown navigation item in my main nav.

    {exp:channel:entries
        channel="locations"
        orderby="date"
        sort="asc"
        dynamic="no"
        disable="categories|category_fields|member_data|pagination"
    }

{title}

    {/exp:channel:entries}

I know segment_2 is the same as the entry's url_title.

Any help is appreciated.


texts: I'm using Carthrob + Stripe. I'm using the boilerplate, {gateway_fields} to render my checkout fields. However, I don't see the country select menu. Is this not there by default? I'm attempting to set pricing for international shipping, however, without a country select I can't. Any thoughts?


texts:
Client has asked (insisted) that the site and the control panel live on different URL or subdomain.
I've googled about and had a look.. I can't find much info.
Before I start hacking the core.. any ideas on the best way to approach this?

So I want www.mysite.com/admin.php to redirect to a 404 or some other error page.


texts: Zoo Visitor update_form to update only some entries wipes out all other data

texts:
I've got a Zoo Visitor update_form which i want to use to only update some of the fields in the zoo member channel.

But when i submit that form, it updates the fields in the tag, but wipes out the info of all other fields!

Any way round this? I don't really want to include all other custom fields as hidden fields!

Thanks!


texts: Solspace User admin notification with custom user fields upon registration

texts:
Is there a way to send notifications upon user registration to an administrator with custom fields? EE sends a notification all right, but not with custom fields.
Thanks,
L.


texts:
Within Structure there is an option to "Hide From Nav". This works well and hides the choice from the nav tag. However, it also appears to hide it from the tag exp:structure:entries that is being used. Is there a way to keep entries from hiding the page?

I tried override_hidden_state="yes" however it no effect on the entries tag.

Help!

Brad


texts:
I had a template and set the template cache to yes. Then a little while later I renamed it ".template-name" to hide it and renamed another template that I wanted to take it's place "template-name".

Now the URL displays the old template. The template is in the database not saved as a file.  I switched cache to no. I've deleted all the caches in EE and then deleted the subfolders from "cache" to no effect.

I've tried everything to get have the template update without any luck. I'm usingEE 2.6.1 and using Freeform 4.012

Thanks in advance for any help on this.


texts: Forum module : can i load the forum into an iframe?

texts: How can I go about making the forum load into an iframe so I can maintain the main site's header and footer sections?


texts: Working on my first EE site (but have worked with several other CMSs) and I'm having issues with the database connection. I've pulled down files from a live site to set up a development version following the steps on the Moving ExpressionEngine to Another Server page. I've tried using the dbtest.php and can connect to the local database with no issues but when I use the same settings in the database.php file, I get a connection error. Did a little digging and the settings seem to be cached. If I do a var_dump on $this in the DB_driver.php file under if ( ! $this->conn_id) the live settings are appearing in a ar_cache_set array. I did clear the caches before downloading the live database. With a die(mysql_error()) right below that line it gives me a "not allowed to connect to this MySQL server" error. Any ideas on how to clear this? I'm not really sure where it's coming from. cache_on is set to FALSE in the database settings.


texts:
I have a client that has an (I think) odd request: I know there are modules like Social Login Pro that connect someone's Facebook / LinkedIn to a member account, but what my client wants to do is:

Allow users to submit "tips". To submit a tip, you don't need to register, you just enter your tip, after which you're prompted to either "enter your personal information yourself" or "use your linkedin profile". This should be stored with the entry, not in a member-profile, and people should be allowed to submit multiple tips.

How would this even work OAuth-wise? Are you allowed to request someone's personal info again?

Any input would be greatly appreciated!

Thanks!


texts: How can I detect a non-menu page in NavEE?

texts:
I'm working on a site with hundreds of imported pages. Many of them won't be in a menu and are findable by using site search. We have a contextual sidebar menu in the left column and when these non-assigned pages are viewed, the left column is empty.

I'd like to add a default menu (and breadcrumbs) for any un-assigned page. Is there a way to detect if a page isn't in a menu and use a conditional to load a default if no match is found?


texts:
I've a problem on this page in a website i'm currently developing.
As you can see , the form layout is broke (i'm using gumby2 css framework). I'm sure the cause is the div with class hiddenfFields, because if i remove it with firebug, the layout is ok:

<div class="hiddenFields">
...
</div>

inside the form with id "freeform"

Anyone have an idea how can ia resolve this issue? What properties i need to override? Thanks in advance


texts: Simple Search "You are not permitted to use the search engine." if I am not logged in

texts: I have a simple search form installed on EE3, and I am only allowed to use the site search if I am logged in to the control panel. Is there a permissions setting I am missing somewhere? I don't have any URLs blacklisted.


texts: Simple HTML file field uploads for an Assets field that appears in a Matrix field in a Safecraker form

texts:
I have a Safecracker form that contains a Matrix field, that contains an Assets field.

Is there anyway to handcraft the matrix field as per this article:

http://themetaq.com/articles/bring-matrix-data-editing-to-the-front-end

Whilst using an Asset field?

I've found this SE question that relates to using a simple HTML file field in for Assets:

Simple HTML file field uploads with Assets and Safecracker

However I cannot get this to work when it sit's inside a Matrix field. I'm using the code below; assets_file is the name of the Matrix field, and the 2nd Matrix Column is a textfield which saves to the database on submission OK.

{exp:safecracker channel="asset" return="/assets/upload/success"}

  {!-- Row Order Value --}
  <input type="hidden" name="asset_files[row_order][]" value="row_new_0">

  {!-- 1st Column Asset Field --}
  <input type="file" name="asset_files[row_new_0][col_id_1]" value="">
  <input type="hidden" name="asset_files[row_new_0][col_id_1]_filedir" value="2">

  {!-- 2nd Column Text Field --}
  <input type="text" name="asset_files[row_new_0][col_id_2]" value="">

  {!-- Title & URL Title fields removed for simplicity --}

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

{/exp:safecracker}

I've tried using the name of asset_files_filedir for the hidden field of the 1st Column Asset Field, but it doesn't make a difference.

To clarify the form submits successfully - creates the entry and even adds the 2nd Column Text Field to the matrix field. It is only the file that doesn't get uploaded.

I suppose I asking if this is possible, and if so does anyone know how would I do this?

EE: 2.5.5
Safecracker: 2.1
Matrix: 2.5.5
Assets: 2.1.4

Thanks


texts:
I've got a variable that outputs a string such as:

question ^ answer > question ^ answer > question ^ answer

Now, I added the symbols in between them to know where the split should happen. I've been using the 'Explode' plugin (http://devot-ee.com/add-ons/explode) and this works perfectly. BUT it only works to split based on one set of characters e.g. ^ only.

{variable} = question 1 ^ answer 1 > question 2 ^ answer 2

{exp:explode separator=">" string="{variable}"}

        {exp_value}

 {/exp:explode}

The above code would output:

        question 1 ^ answer 1

        question 2 ^ answer 3

Which is great, but I need my markup to be like this:

        question 1

        answer 1

Which would require doing something like:

{variable} = question 1 ^ answer 1 > question 2 ^ answer 2

{exp:explode separator="^|>" string="{variable}"}

        {exp_value_1}

        {exp_value_2}

 {/exp:explode}

Which would then output:

        question 1

        answer 1

        question 2

        answer2

Now the Explode plugin comes with the {exp_value_1} and {exp_value_2} variables, but they don't work on a 'Loop'

Is there any way of achieving this? With any other plugin? Or another solution


texts:
I have a single entry page that has a child category selected only (not the parent just the child selected)

I have a Solspace Calendar event entry which has the same child category selected.

Is there a way to display the calendar events with the same child category selected on the single entry page?

Single entry page template: domain.com/candidate/url-title

{embed="events/candidates_events" calendar_id="{calendar_id}"}

Embed Template:

{exp:calendar:cal
   calendar_id="{embed:calendar_id}"
   event_limit="{embed:event_limit}"
   date_range_start="today"
   show_months="24"
   status="not Closed|Private"
   pad_short_weeks="n"
   dynamic="on"
   transcribe="disable"
}

           {event_title}

       ({event_start_date format="%F %j, %Y"})

       {event_summary} -

            Learn More

    {if no_results}
    {/if}
{/exp:calendar:cal}


texts: EE novice here, if I download the free version of an EE site, can I still download paid add-ons to the free version and have them function without problems?


texts:
I have seen this question about using Low Search with Ajax but I still don't see how to integrate them.

Given this form

{exp:low_search:form collection="foo" search_mode="any" result_page="foo/search" form_id="search_form"}
  <fieldset>
    <label for="keywords">Keywords</label>
    <input type="search" name="keywords" id="keywords" />
    <button type="submit" id="search">Search</button>
  </fieldset>
{/exp:low_search:form}

and this Javascript code

$(document).ready(function(){
    $("#search_form").on("submit", function(event){
        event.preventDefault();

        // HOW DO I GET THE ENCODED STRING HERE?

        var aData = [],
            sSource = $(this).attr("action");

        $.ajax(
        {
            'dataType': 'json',
            'type': 'POST',
            'url': sSource,
            'data': aData,
            'success': function (oAjaxData, sTextStatus)
            {
            },
            'error': function (jqXHR, sTextStatus, errorThrown)
            {
                console.log(sTextStatus);
            },
            'complete': function (jqXHR, sTextStatus)
            {}
        });
    });
});

How do I get the encoded query string in the Javascript code?


texts:
I have installed Assets 2 on a 2.5.5 EE install.

I have tried to index the files, but it just sits there and does nothing. No loading bars display like on another website I have used this on.

I left it until the session expired, and nothing.

Anyone have any ideas?


texts: Wygwam 3.3.1 Disappears from Channel Entry

texts:
I've updated to EE 2.8.1 as well as updating Wygwam to 3.3.1 (and a ton of other add-ons).

Since the updates, the Wygwam field will flash and then disappear on any Channel Entry page. This has been the case in Safari, Firefox, Chrome

I've cleared caches (EE and browser), refreshed, restarted to no avail.
I've uninstalled Channel Images to no avail.
I've created a "Naked" Wygwam config with no style set, etc. to no avail.
I've created a test channel and field set with only an instance of Wygwam to no avail.
I've manually refreshed the ckeditor.js to no avail.
I've googled until my fingers bled. To no avail.

I've attached a screenshot from the Inspector which shows an error which is above head.

I'm stumped. Any thoughts?


texts:
We are using ExpressionEngine v2.10.1, we are going to import data from the database. We have created API that returns data as JOSN by using:

{exp:query sql="SELECT * FROM exp_member_data"}

But we also need the used password as a string so we can encrypt it according to our own way. Is there any way to get the password as a string?


texts: Can I add place for notes by the admin in order details?

texts:
I've got a client who would like to add notes to the Order Details of the admin section. For example, a field that the order admin can add the tracking number of the item shipped or if the item was returned/exchanged.

The only place I've seen the admin able to input anything is in the message field of the Order Status - and if I'm not mistaken, that message actually goes to the customer and it not just for the admin's reference.

Is there any way possible to accomplish this?


texts: subdirectory path opening root website why

texts:
there are two site on my server 1 on root and other one in a sub folder named /A

when i am inputting my sub folder's url its opening root website

there is no .htaccess file present .

root website is working correct.


texts: Passing entry_id to json to get Playa children

texts:
I need to be able to do pass the entry_id of the page being viewed into a json file to build a query.

I currently have a page setup that has a Playa field. I need to have a JSON file that will get the IDs of all of the Playa children so that I can pass those values to a map on the same page.

In the page, I have the following;

{exp:stash:set_list name="trail" parse_tags="yes" parse_depth="3"}
    {exp:channel:entries channel="{channel}" status="open" limit="1" require_entry="yes"}

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

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

{exp:stash:get_list name="trail"}

About the {trail_title}

{/exp:stash:get_list}

My 'trail-json.js' template has the following (but as you can see there is a hardcoded parent_entry_id;

{exp:query sql="SELECT child_entry_id AS entry_ids FROM exp_playa_relationships WHERE parent_entry_id = 2422"}
[
{exp:playa:children
    entry_id="{entry_ids}"
    field="trail_spots"
    channel="things-to-do"
    status="Open"
    backspace="1"
}
    {
        "entry_id": "{entry_id}",
        "title": "{title}",
        "latitude": "{thingtodo_latitude}",
        "longitude": "{thingtodo_longitude}"
    },{/exp:playa:children}
]
{/exp:query}

I would be grateful if someone could point me in the right direction to replace the hard-coded parent_entry_id.

Thank you.


texts:
So I am building out a homepage that is going to have a infinite scroll of entries. Though there are entries that are apart of a parent entry, and I will be displaying the parent entries Title. And each child entry is a part of a week. And the week is a category set on each child entry, and the category will be visible. Below is an example.

Parent Entry Title
Week 1 - Entry 1 Entry 2 Entry 3 Entry 4 Entry 5
Week 2 - Entry 1 Entry 2 Entry 3 Entry 4 Entry 5
Parent Entry Title
Week 1 - Entry 1 Entry 2 Entry 3 Entry 4 Entry 5
Week 2 - Entry 1 Entry 2 Entry 3 Entry 4 Entry 5

I can't figure out the syntax for this so it can be displayed in an infinite scroll, but where it displays all entries while grouped. I have achieved it but it loops out the same thing 5 times.

{exp:channel:entries channel="foo" site="mainsite"}
    {exp:playa:parents site="mainsite"}
        {if title}
            {title}
        {/if}
        {exp:playa:children site="mainsite" field="foo_entries"}
            {title}
        {/exp:playa:children}
    {/exp:playa:parents}
{/exp:channel:entries}


texts:
We've just set up a new server with the identical set up of a previous server, with one small difference: php 5.4 instead of php 5.3.

This is an EE install, version 2.6.1.

When I go to the site I get the white screen of death, and debug = 1 doesn't give me anything of use.

I tried digging through the execution path, adding an echo('test') and a die() after every line and the first thing that causes an issue is in system/codeigniter/system/CodeIgniter.php on line 88:

get_config(array('subclass_prefix' => $assign_to_config['subclass_prefix']));

If I comment this out, the next hiccup is at line 106:

$BM =& load_class('Benchmark', 'core');

From my research, it appears that even 2.6.1 should be fine on php 5.4, so does anyone have any ideas on a) how to fix it without downgrading to 5.3 and b) how to debug it properly to find out what might be causing the issue?

Thanks!


texts: Selecting specific channel entries, to link to a given entry

texts:
I have been using Playa to choose from my existing entries, to create a list of related entries/similar entries. I use the following fields in the linking:

title
url
image (a custom channel field that I create, that is used in each entry)

Playa is not being ported to EE3, so I have to learn a new way/find a new plugin that lets me do this. Since I choose the related entries, and there are other entries that will have the same tags, I cannot use EE's native Relationships functionality/tag without significantly changing/re-learning how I organize my site and tag my content. (The level of tagging needed to relate the entries would be...untenable, to say the least.)

Does EE3.x have a way for me to select entries from the current channel to be linked on a given entry, and have those entries' title, url, and image fields available to me to use in linking?


texts: How can I apply shipping rules to multiple states in Expresso Store?

texts:
I’m currently setting up shipping methods within an Expresso Store site. Shipping costs are based on total product costs (not weight). The breakdown is shown below:

Standard
Up to $50  $4.95
$50-$100 is $7.95
$101-$250 is $8.95
$251-$500 is $9.95
$501-$1500 is $19.95
$1501-$2500 is $39.95

2nd Day
Up to $100 is $12.95
$101-$250 is $15.95
$251-$500 is $17.95
$501-$1500 is $29.95
$1501-$2500 is $59.95

Next Day
Up to $100 is $34.95
$101-$250 is $39.95
$251-$500 is $44.95
$501-$1500 is $49.95
$1501-$2500 is $79.95

I’ve entered all these with no problem – they apply to all US states – but, shipping to western states must be $1.00 more for all of the above. There are 24 states that qualify as western. Since it doesn't seem possible to select multiple states from the dropdown in Filters, it means I’d have to enter each variation state by state. The would be 16 filters x 24 western states. Is there a way to do this without manually entering all 384 variations for the western states?


texts: get_upload_preferences() is deprecated - any idea how to fix this?

texts:
I've got a custom fieldtype I need to upgrade for EE 2.5.5 - It uses the Tools model, which was deprecated in EE 2.2. Here's the code that's coughing up errors in the developer log:

  $upload_prefs = $this->EE->tools_model->get_upload_preferences($this->EE->session->userdata('group_id'));
          foreach ($upload_prefs->result() as $row) $upload_dirs[$row->id] = $row->name;

And here's the error:

  The system has detected an add-on that is using outdated code that may stop working or cause issues with the system. What does this mean?
  Deprecated function get_upload_preferences() called in C:\Program Files\EasyPHP-12.1\www\EE\system\expressionengine\third_party\custom_fieldtype\ft.custom_fieldtype.php on line 272.
  Deprecated since 2.2. Use File_upload_preferences_model::get_file_upload_preferences() instead.

I've tried replacing tools_model->get_upload_preferences with file_upload_preferences_model->get_file_upload_preferences, but that gives us this:

  Fatal error: Call to a member function result() on a non-object in C:\Program Files\EasyPHP-12.1\www\EE\system\expressionengine\third_party\custom_fieldtype\ft.custom_fieldtype.php on line 273

Any ideas how to fix this?


texts:
Yesterday I went live with a site from my development server (WAMP) to my production server (LAMP).  I made all of my changes to paths and DB, and while the site was coming up, I was having some issues getting into the CP.  I think it was a URL issue as the domain name under which I was developing was different than the live site.  I finally got it straightened out and was able to get logged in.

Somewhere along the line, I must have made an adjustment that then broke things.  The front end of the site still works, but I’m now getting the dreaded WSoD when accessing the CP.  Very strange since it was workign fine.  So somewhere I must have made an adjustment that broke things.  Retracing my steps hasn't solved anything.  Hopefully the following provides something that triggers an idea.

When logging in, it goes to the authenticate URL, then to the home page URL where it gives me the WSoD.

I've tried altering the URL to see if I could access other parts of the CP.  Here are the results:

WSoD – any of the add-ons (modules, accessories, extensions, field-types, plugins)
WSoD – home page
CAN ACCESS – templates, template manager, snippets, etc.
CAN ACCESS – area to manage members and groups

I’ve tried to turn on debugging in my admin.php template, as well as the index.php and system/index.php.  Doing so provides no additional information.  I’ve also re-uploaded the files and dropped the DB and imported again.

I spent several hours last night trying everything I could think of.  So any help is very much appreciated.  The answer is probably in front of me, but my head is hurting from banging it on the wall!


texts:
I'm using Low Replace to allow users to add footnotes to the content of their entries. Anything wrapped in square brackets (like this: [[This would become a footnote.]]) will then be replaced with the appropriate markup on the front-end. Here is the code thus far:

{exp:low_replace find="SPACE\[\[(.*?)\]\]" replace="&sup1;&sup1; $1" regex="yes"}
    {blog_post_content}
{/exp:low_replace}

There will often be multiple footnotes for one entry, so I need to be able to increment that &sup1; with each footnote that's found. So, for example, if there were three footnotes they would be marked-up like this:

&sup1; Footnote content…
&sup2; Footnote content…
&sup3; Footnote content…

How can I increment that number with each footnote?


texts: Problem with placeholder value and searching on categories (ignoring keywords) - SuperSearch

texts:
I need the user to be able to search against two category groups: one for states, and the other for job type, i.e., accounting, HR, etc.

Two problems:

First, I try to use a placeholder value for my  fields:

<select name="category[]">
<option val="">Select Category</option>
{exp:channel:categories channel="jobs"
category_group="5" disable="category_fields"
style="linear"}
    {exp:super_search:variables}
        <option val="{category_url_title}">{category_name}</option>
    {/exp:super_search:variables}
{/exp:channel:categories}

(This is one of them.) The blank value ends up passing 'Select+Category' in to the URL.

Secondly, I need to ignore the keywords field altogether. I tried adding a hidden field:

<input type="hidden" name="keywords" value="">

But that doesn't matter.

My search results page is yielding incorrect results because it thinks the keywords value is "", which is like "any".

Try submitting the form: http://usesi.savagedevserver.com/jobs


texts:
I'm trying to build out a blog in EE, and even though i'm still a bit confused by some things my biggest issue is that all posted comments via {exp:comment:form} default to open.

So i have a channel called "our_blog" and below are it's preferences.

Allow comments in this channel? Yes
Require membership in order to post comments? No
Require email address to post comments? No
Moderate Comments? Yes

So i assumed, that having it set to "Moderate Comments" would mean that all comments posted to this channel entries would be defaulted to either closed or pending. But for whatever reason they keep defaulting to open, so as soon as someone posts a comment it shows up on the front-end. This is a no-no!

This is my form

{exp:comment:form channel="our_blog"}
      Name: <input type="text" name="name" value="" size="50" />
      Email: <input type="text" name="email" value="" size="50" />

      Comment:

      <textarea name="comment" cols="70" rows="10">{comment}</textarea>

      {if captcha}
          Please enter the word you see in the image below:

{captcha}

          <input type="text" name="captcha" value="{captcha_word}" maxlength="20" />

       {/if}
       <input type="submit" name="submit" value="Submit" />
{/exp:comment:form}

I've googled and googled, but to no result! Thanks for any help and advice in advance!


texts: Use the same Assets library across multiple sites

texts:
I'm developing two sites to work off the Multi-Site Manager in EE 5.2.2 and ideally would like them to share the same image library as the same logos, adverts and some other images are used on both sites, handled by several content authors who will manage content across both sites. I've configured the EE File Manager on both sites to point to the same directory for the top-level image folder: {base_url}/images/uploads/ and I've installed the Assets add-on v.3.3.3 (from EE Harbor) as the means to manage the image library.

My issues are:

(a) When you make a change in Assets on Site A (upload a new image, create a new sub-folder, etc) you have to manually update the index in Assets on Site B in order to see the changes reflected there (or vice versa), a step that content authors would have to remember to do all the time in order to see the up-to-date library;

(b) This is duplicating the folders and files in the Assets tables in the EE database - which kind of defeats my aim of not having duplicates of the same image file across both sites.

I expect one workaround might be to have shared images just stored in Site A's library and reference their url when displaying on Site B but the content authors are not going to be fiddling with code like that.

Does anyone know of a way to avoid those two issues or is that just how it works in MSM?

Thanks.


texts: EE2 upgrade to EE3, how to upgrade addons?

texts:
I am a newbie to expressionengine and I am working on upgrading EEv2.8.1 to EE3.5.16 for my company. On EE2 we use a lot of addons. I want to upgrade the addons during the EE upgrade process.

I learned that I have to remove the addons that are no longer support EE3. However, I am not sure where to put the new version of EE3 compatible addons. My goal is to keep as many old addon's data as possible. Any sugguesion is welcome...

Thanks!

Update - Following is the list of EE2 addons that I want to move to EE3, they all have EE3 compatiable version...any comments are welcome!

Modules: Export Entries, Freeform Pro, Mailing List(eeharbor), Playa, Tagger
Accessories: Freeform Pro
Extensions: Matrix,Playa
Fieldtypes: Field Pack, Matrix, Tagger, Multi Select(eeharbor), Playa


texts: Playa with Matrix field loop breaking on different environment

texts:
Ok guys, I have both latest versions of Matrix and Playa. I'm doing my whole build locally but when I pushed to my production server I'm having an issue. What I have is...

A group of Home types that show on a home type page. the channel for "hometypes" is what I'm using for my playa selection on the "MyHomes" page. so basically my loop looks like this...

{houses}
                    {house_slideshow}

                    {/house_slideshow}
                    {house_title}

Description

                    {description}
                        {feature_list}

{feature}

                        {/feature_list}
    {/houses}

Obviously without most of the html. "house_slideshow" and "feature_list" are matrix fields in the "hometypes" channel. the issue is that the loop breaks if I include these. If I were to remove the two matrix loops it would work fine. Basically matrix fields won't work in my playa loop.

Remember, this works perfectly fine locally just not remotely on a server.

Thanks!

EDIT: This is def. related to PHP version 5.4.1 and EE version < 2.6 not sure if there's a fix or not?


texts: Solspace Super Search - Results relationship field

texts:
I have Super Search installed and running on my Expression Engine v2.8.1 install the search functionality is working fine except for when it returns the results the relationship field does not display the relevant information it return the field tag instead {state}. is there something that i am missing when it comes to displaying relationship field in the results?

{exp:super_search:results orderby="date" paginate="bottom" limit="4" channel="properties"}
    <p>{state:abbreviation}</p>
{/exp:super_search:results}

Cheers,


texts: I have tried to install the Wygwam 2.7.1 add-on module to my existing EE. When I go to edit or publish content through a channel that hasthe Wygwam as a field... it just looks like a regular textbox and not the usual awesome Wygwam tools I'm used to seeing... any ideas? If I try to remove the field type so I can re-install, it will delete ALL of my data...


texts: Expression Engine - Passing Custom Field Variables to Layout

texts:
I'm trying getting to grips with Expression Engine. Specifically passing custom field information to a master layout

I have created two template groups. One for the overall layout including the header and footer and one to control a specific channel.

I have custom fields for the channel. Including one called "description" that I want to be able to pass back to the overall header layout. This is what I have from looking at the documentation but it doesn't work - the variable {timeline_item_description} isn't getting passed to the header. Looking at the code below what am I doing wrong?

Channel index template:

{layout:set name="desc"}{timeline_item_description}{/layout:set}

The Header layout template:

<meta property="og:description" content="{layout:desc}"


texts: Store module: How to update cart quantity without submitting the cart?

texts: Given this design http://cl.ly/image/2J2k0p2f451Z where the user updates the quantity and clicks the "update" link/button, how do I go about updating the individual item quantity without actually submitting the cart and placing the order? I assume some hacky JavaScript can take care of it, but it seems like there should be a server side process for this.


texts: Solspace Freeform inline errors / Ajax validation and composer

texts:
I'm using Solspace Freeform with a composer to built forms and found that I can use inline errors and Ajax validation with Freeform here, but documentation doesn't mention how to use it with a composer, only with form templates.

Any tips on that?

Thanks


texts: Comment_total is displaying total number of ALL comments, not just open status

texts:
I've been testing the default comments module, and noticed that when I use {comment_total} in the channel entries tag above my comments block, it displays the total amount of any comments for that blog post, so even if I have 5 open status, 5 closed, it shows 10 total comments. How can I filter it to only display open comment totals? I have included some of the code below. I can't just go in and recount statistics on channel entries every week, I need it to start out -only- displaying {comment_total} with a status of Open.

{exp:channel:entries channel="blog" limit="1" status="Open"}
{head}

There are {comment_total} comments on this post. Skip to comments &raquo

Submit a comment:

        {!-- comment form tag is here --}
        {embed="view/.commentview"}
        {!-- .commentview embed contains the display of all comments associated with this post --}

{/exp:channel:entries}


texts: How to use Swtichee and/or Low Variables to optimise an if if:elseif if:else conditional statement

texts:
My page is loading really slow due to my inexperience.

Can anyone help me speed things up by perhaps using Switchee and or Low Variables (and perhaps some Stash).

I'm really just looking to be schooled on this one.

Code to be optimised is below, all help and comments are greatly appreciated.

Thank you.
=)

{logos}

        {if external_url}

        {if:elseif internal_url}

        {if:else}

        {/if}

{/logos}