texts:
My images are on this folder:

http://localhost/images/uploads/blog/

After i resize them using CE Image, they end up here:

http://localhost/cache/images/uploads/blog/

Is there any way i can exclude /images/uploads (using the plugin, not with .htaccess)? So that CE Image can save them in:

http://localhost/cache/blog/


texts: Setting Default Categories on Publish Page

texts: Is there a way to pre-select categories when publishing an item? For instance, I have several category groups for my news articles. I want to preselect several of these every time; but it would be great if EE (either natively, or via a plugin) could preselect these for me?


texts: Storing prices inclusive of tax in Cartthrob

texts:
We have a requirement to charge the same price for a product, regardless of the tax. For example a product bought in the UK would be subject to 20% VAT and the price is £100 inclusive of tax.

If the same product is bought in the US, no VAT is applicable, but the price should still be £100.

In Exp:resso Store you can do this by configuring the module to store prices inclusive of tax, and then the tax is calculated in the basket. I can't see a way to do this in CT though - is this possible or would it be a custom development?


texts: Freeform - view submission on frontend based on GUID

texts:
I need to do the following.

A user completes a form and is emailed a url with a GUID on the end.  When the user clicks the link they are taken to the site and can view their submission.

www.mybeltingsite.com/90c202f2-302b-4d8b-bf06-2ffdb706532d

I'd like to do something like

{exp:freeform:entries entry_id="{last_segment}" }
  {!-- Stuff  --}
{/exp:freeform:entries}

or

{exp:freeform:entries my_form_custom_field="{last_segment}" }
  {!-- Stuff  --}
{/exp:freeform:entries}

Where the my_form_custom_field is the GUID.

Any thoughts?


texts:
I am currently assessing all aspects for a complete refresh of our site and have seen that we are running EE2 2.5.5. I'm no developer but I do have to establish what steps we should take as the current CMS is restrictive, most certainly down to running a 2012 version...

What advice/warnings can anyone give me to take the best route forward?

Can we migrate all content to EE3 for instance, or is the best advice to go straight to a web design/builder and hand over the problem to them to resolve?

I apologise for such naive questions, but would appreciate any advice someone might be able to give me.

Regards

Steve


texts: Detect if url is that of the Pages Module

texts:
Is there a way to know if the current url being called is that of the Pages Module?

For example I'd like to do something like this:

{if pages_module =="TRUE"}
     This is a page generated from the pages module!
{else:if}
     This is not a page
{/if}

I looked for an add-on though, maybe I'm missing it or maybe I'm missing a simple tag in the docs?


texts: Assets modal window in publish form is blank when I click Add Files

texts:
Doing some testing on a local version of a website, trying to implement an Assets upload field in a Matrix column. When in the publish form and I click the "Add Files" button the modal pops up but it is blank. I do get a console error in Chrome dev tools...

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

XMLHttpRequest cannot load http://condley-intranet.dev/. Origin http://condley-banking.dev is not allowed by Access-Control-Allow-Origin.

Uncaught TypeError: Cannot set property 'innerHTML' of undefined assets.min.js:8

qq.FileUploader assets.min.js:8

Assets.FileManager.Garnish.Base.extend.init assets.min.js:8

Garnish.Base.a.extend.constructor garnish-0.1.min.js:18

h.constructor garnish-0.1.min.js:14

h.constructor garnish-0.1.min.js:14

(anonymous function) assets.min.js:8

d jquery.js:39

b.extend.each jquery.js:37

b.fn.b.each jquery.js:30

c.ajax.complete jquery.js:161

p jquery.js:43

l.fireWith jquery.js:44

d jquery.js:167

b jquery.js:178

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

I'm using the Assets/Matrix combo on a MSM site. The "main" site is "condley-banking.dev". The MSM site is "condley-intranet.dev". I'm logged in to the CP through the "condley-banking.dev" site and then selected the MSM site from the CP dropdown. I thought this info might help after reading the error, but it's al lover my head. Thanks for any information!


texts:
This one maybe a bit tricky, but currently I have a page that is using categories and isotope.js filtering to arrange channel entries.

The filtering using the check-boxes works well. However one thing I'd like to do to extend it further is this;

Using the above image for reference, lets say Entry #1 has categories of Commercial and Construction set. If I click on the Commercial checkbox, then Entry #1 appear in the filter. Likewise if I check Construction, the entry will show, regardless of whether Commercial is checked or not.

What I'd like to happen is if I check the Commercial check-box, then every box except Construction would disappear because hypothetically, only Entry #1 has been assigned to a category in that list (ie. Construction).

Likewise if I clicked on Construction, is it possible to grey out the top list of categories with the exception of Commercial because only Entry#1 'theoretically' has a category assigned in that list.

I apologize in advance as this is quite a difficult problem to word into a question. I hope someone out there is able to get a grip of what I mean and maybe help me out a bit.

*Obviously I would like to post a JSFiddle to better illustrate the request, but because its currently reliant on EE's channel entries and categories, I'm unable to do so.

Markup

Market

                {exp:channel:categories category_group="7" style="linear" show_empty="no"}
                    <input type="checkbox" name="{category_name}" value=".{category_name}" id="{category_name}">&nbsp;{display_name_sectors}

                {/exp:channel:categories}

Capabilities

                {exp:channel:categories category_group="9" style="linear"}
                    <input type="checkbox" name="{category_name}" value=".{category_name}" id="{category_name}">&nbsp;{display_name_capabilities}

                {/exp:channel:categories}

Region

                {exp:channel:categories category_group="10" style="linear"}
                    <input type="checkbox" name="{category_name}" value=".{category_name}" id="{category_name}">&nbsp;&nbsp;{display_name_regions}

                {/exp:channel:categories}

Filtered Projects

                {exp:channel:entries dynamic="off" channel="projects" status="not closed"}

{title}
{categories backspace="2"}{category_name}, {/categories}

                {/exp:channel:entries}


texts: Fatal Error Out of memory when trying to access PHP info utility in ee control panel

texts:
I'm using EE 2.5.5 and noticed recently that the php info tool is showing this error when accessed:

Fatal error: Out of memory (allocated 10485760) (tried to allocate 131121 bytes) in /home/curvedes/public_html/mercytouch2/system/expressionengine/controllers/cp/tools_utilities.php on line 2096

Any suggestions on how this should be fixed would be appreciated.


texts: How to display radio or dropdown options from a matrix column

texts:
I have a Matrix field that has columns that are using cell type "Field Pack - Radio Buttons" and "Field Pack - Dropdown". Each of these has 4 options (Master, Advanced, Intermetiate, Apprentice). If an option is set for these columns, i can get these easily in the matrix pair tag.

Is there a way to access and display the entire option list (Master, Advanced, Intermetiate, Apprentice)? I'm sure there is a way to access this, but i have had no luck.

Any input would be greatly appreciated!


texts: Inline images automatically link to larger version? Possible?

texts:
Does anyone know a plugin/add-on or method to have images inserted inline (not custom field) into content by user automatically link to a larger version?

I have Channel Images installed and was surprised it had no means to do that. In their forum Dev Demon says doing so would be difficult, but it seems fairly simple to have an option to add an href to the image inserted and a dropdown to pick which processed version to link to—as a manual action or automatic (preferred).

We can’t even link manually to the CI images variations as they are stored in folders and the ee file manager can’t see them.

So, anyone done this?  Or am I just missing something in general? Seems a pretty common use case to have the user insert an image and easily link to a larger version (plugin or native method).

Thanks for your input.


texts: Embeds in stash don't work when using process="end"

texts:
A stripped down example:

{exp:stash:get_list name="sidebar" process="end"}
    {embed="templates/sidebar-events" limit="3"}
{/exp:stash:get_list}

The embed tag doesn't get parsed at all, it just prints the literal embed string. I've tried both native embeds and stash embeds, and neither of them work. Anyone know of a workaround? Maybe using priority somehow? Or parse_stage (which I don't get)?

Normally I don't use embeds but in this case I have nested channel:entries tags.


texts: Choose a specific low variable based on playa via stub?

texts:
Ok I have brands for products stored as a Playa so I can do various things with them...obviously simple things like:

{cf_paper_brand}
     {title}
{/cf_paper_brand}

However, later I want to include a list of articles based on that product's brand.  I am storing these related articles in low variables(of playas) -

 lv_brand1_articles, lv_brand2_articles

etc.

Thus my basic issue is I want to retrieve/choose the appropriate low variable based on the playa brand field.

This seems like it should be easy, and certainly I can do it with a bunch of conditionals I guess.  But I am thinking there must be a more elegant solution...basically, I just need to get the brand title once and then use this in a few spots as a 'stub' when retrieving the low variable

In pseudo code:

if cf_product_brand == "brand1" then
    {exp:low_variables:parse var="{lv_brand1_articles}" var_prefix="brand_articles"}
        {brand_articles:title}
    {/exp:low_variables:parse}
else if cf_product_brand == "brand1"
    {exp:low_variables:parse var="{lv_brand2_articles}" var_prefix="brand_articles"}
        {brand_articles:title}
    {/exp:low_variables:parse}
else if....

etc... but for a LOT of brands, and I have related articles, links, and files.  So I will end up with a block of 30+ conditionals - which sucks.  Basically, I want to keep this mess of conditionals out of my template or at least in one spot in the template.

SO - If could set a stub of the brand title somehow, then retrieve {lv_{stub}_articles} - that would work....but I can't seem to do this.  I have tried with stash but I am new to all the parse order issues and getting confused.  I am thinking maybe I need to use a low variable with a pre_parse thing but can't quite seem to get it ...

Any help much appreciated!!  I am relatively new to EE and Stack Exchange etc.  Hope I have asked correctly!

(And note - the brand is not available in the segment_x variables as it's not in the URL.  I could in theory put it there, but I'd really prefer not to)


texts: How do I add player parameters to a video using DevDemons Channel Videos

texts:
I know it's possible to add parameters to a youtube url and these will load different settings.

Like this parameter ?rel=0 indicates whether the player should show related videos when playback of the initial video ends.
https://developers.google.com/youtube/player_parameters#rel

If I add a video in DevDemon Channel Videos and pass the parameter ?rel=0 it doesn't show any result(the related videos still show up). Does anyone know how to pass the parameters the right way?


texts: Upgraded to EE 4.2.0 from EE 3.5.15 and now can't login to the backend


texts: SKU search from front end with Expresso Store

texts:
My client has asked to be able to search by Expresso Store SKU on the front end of their website. Is this even possible and if not what data would I need to manipulate in Store into a common custom entry field in order to make the SKU searchable?

We are currently using Low Search and the Low Search Store add-on to facilitate search.

{exp:low_search:results
    channel="book_library|products|products_postcards"
    store:price:min="0"
    query="{segment_2}"
    result_page="/shop/results"
    limit="20"
    paginate="both"
    status="not closed|Pending Review|Draft"
    }


texts: URL redirect on browser language detection

texts:
I'm using the Browser Sniff plugin to detect for the browser language on a multilangiage site using Transcribe plugin. It's working for detecting the browser language. I want to redirect users with their browser set to Chinese(zh) to the same url with "zh" as segment_1. So the site currently will display English at www.site.com/page and chinese at www.site.com/zh/page. Now I want to redirect users with their browser set to Chinese from www.site.com/page to www.site.com/zh/page.

I tried this, but it results in a redirect loop:

{exp:browser_sniff available_languages="en|zh"}
{if browser_sniff_negotiated_language == "zh"}
     {redirect="zh/{uri_string}"}
{/if}
{/exp:browser_sniff}

Any ideas?


texts: is it possible to add placeholder text (i.e. placeholder="Your Name") in a Freeform Pro: Composer Form Field?


texts:
I'm looking for a way to trigger the hook entry_submission_ready on every entry that the Solspace Importer imports. I have another extension that, upon entry_submission_ready, manipulates entry data. In this case, the other extension takes a plaintext address, geocodes it, and inserts the geocoded address back into the entry data.

Importer disables extension hook triggers when it imports, and as the comments explain:
(../importer/content_types/importer.content_type.channel_entries/content_type.channel_entries.php:starting-line 627)

// --------------------------------------------
//  Disable Extensions
// - Extension can cause ALL sorts of headaches
// when using the EE Channel Entries API.
// --------------------------------------------

$allow_extensions = ee()->config->item('allow_extensions');

ee()->config->config['allow_extensions'] = 'n';

// -------------------------------------
//  This is a fix for Extensions->active_hook
//  returning boolean true even when extensions
//  are disabled. EE Bug reported.
//  This should be fixed in EE 2.9.1/2.10.0.
// -------------------------------------

$old_ext = ee()->extensions->extensions;

ee()->extensions->extensions = array();

The extension triggers cause headaches. And so they do: the geocode extension throws an error if I allow extensions to remain enabled during the import. I could get around this by writing my own extension that is triggered after the importer is completely finished, and having that extension loop over all recently added entries and just triggering the entry_submission_ready hook. However, Solspace Importer does not have any (documented or otherwise) hooks for when it's completely finished.

This leaves me with my data imported, but having to go to Edit each individual entry, and just submit an unchanged Edit form so it triggers entry_submission_ready and the geocoder extension does it's thing. I'd love a better programmatic way to handle this, as getting the data import for this project right is about 90% of the work (it's a glorified blog project for a client with tons of csv data). Any help or suggestions would be awesome! Thanks!


texts: Adding class to iFrame parent container in Expresso isn't working

texts:
I have the Expresso field-type plugin and I'm using the Embed Media button to add iFrames to the page. I've been trying to add a class to the parent div container however I just can't seem to get it to work.

Expresso uses CKEditor and this is what I've tried so far:

(function() {
    CKEDITOR.plugins.add("mediaembed", {
        init: function(a) {
            CKEDITOR.dialog.add("MediaEmbedDialog", function(a) {
                return {
                    title: "Embed Media",
                    minWidth: 550,
                    minHeight: 200,
                    contents: [{
                        id: "iframe",
                        expand: !0,
                        elements: [{
                            id: "embedArea",
                            type: "textarea",
                            label: "Paste Embed Code Here",
                            autofocus: "autofocus",
                            setup: function() {},
                            commit: function() {}
                        }]
                    }],
                    onOk: function() {
                        var b = a.document.createElement("div");
                        b.setHtml(this.getContentElement("iframe", "embedArea").getValue());
                        b.className = "video-container"; //My addition
                        a.insertElement(b)
                    }
                }
            });
            a.addCommand("MediaEmbed",
                new CKEDITOR.dialogCommand("MediaEmbedDialog", {
                    allowedContent: "iframe[*]"
                }));
            a.ui.addButton("MediaEmbed", {
                label: "Embed Media",
                command: "MediaEmbed",
                toolbar: "mediaembed"
            })
        }
    })
})();

Towards the bottom of the function you will see the onOK function where I have added:

b.className = "video-container";

However when I add the iFrame code the parent div has no class. I have tried swapping the var b = a.document.createElement("div"); to a span and this worked fine (still no class though) so I know it's the correct piece of code.

If anyone has any ideas as to why this isn't working it would make my Friday that ever-bit more awesome.

Thank you.


texts: Listed items positioning issue in ExpressionEngine

texts:
I have a positioning issue with my in ExpressionEngine. On the following link scroll down to the roster section:  click here

I am looping the li tags for
 I have noticed it loops fine on the few row however begins to misalign on the third row onwards. Does any one know what is causing this problem?

{exp:channel:entries channel="roster" dynamic="no" orderby="date" sort="asc"}
                {roster_music limit="1"}

                {/roster_music}
{/exp:channel:entries}


texts:
I'm using Stash append_list and get_list tags to output a set of entries grouped by channel. Below it I have a separate channel entries loop with a simple date checker plugin:

{exp:channel:entries
  channel='cookies|cakes|pies'
  dynamic='no'
  cat_id='375'
  disable='member_data|pagination|category_fields'
  sort='asc'
  status='not closed'
  parse='inward'
}
  {exp:stash:append_list name='treats' context='{channel_short_name}'}
    {stash:title}{title}{/stash:title}
  {/exp:stash:append_list}
{/exp:channel:entries}

Study Materials

  {exp:stash:get_list name='treats' context='cookies' process='end' parse_tags='yes' parse_conditionals='yes'}
    {title}

  {/exp:stash:get_list}

  {exp:stash:get_list name='treats' context='cakes' process='end' parse_tags='yes' parse_conditionals='yes'}
    {title}

  {/exp:stash:get_list}

  {exp:stash:get_list name='treats' context='pies' process='end' parse_tags='yes' parse_conditionals='yes'}
    {title}

  {/exp:stash:get_list}

{exp:channel:entries
  channel='purchased_items'
  limit='1'
  dynamic='no'
  disable='pagination|categories'
  search:purchased_id='{subscription_ids}'
  author_id='{logged_in_member_id}'
}
  {exp:entry_age type='older' days_old='365' entry_date='{entry_date}'}

Your plan has expired. Renew.

  {/exp:entry_age}

  {if no_results}

You are on the free plan. Purchase a subscription

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

I get this error when I access the template:

  Stash: unknown cache type defined by the type="" parameter.older


texts:
Lets say I have this code

{exp:channel:entries
  limit="3"
  channel="inventory"
  paginate="bottom"
}
...
{/exp:channel:entries}

Lets say I want to make one of the parameters dynamic based on a result of a plugin tag

{exp:channel:entries
     limit="3"
     {if {exp:foo:bar param_key="param_value"}}
       channel="inventory"
     {/if}
     paginate="bottom"
 }
 ...
{/exp:channel:entries}

When I run this, I get a parse error.

How do you solve this parse order problem?

UPDATE:

I am now using Stash to be able to set variables.

So what I did was set the variable....

{if {exp:foo:bar param_key="param_value"}}
     {exp:stash:set name="my_inventory_name"}inventory="{segment_2}"{/exp:stash:set}
{if:else}
     {exp:stash:set name="my_inventory_name"}{/exp:stash:set}
{/if}

then use it inside the tag

 {exp:channel:entries
         limit="3"
         {exp:stash:get name="my_inventory_name"}
         paginate="bottom"
 }
 ...
 {/exp:channel:entries}

No more parse errors. But based on the results, it seems that the stash variable was not parsed because the results did not filter by it.


texts: CE Image makes my logs sad by using xss_clean

texts:
Since updating to EE 3.4.0, I keep getting an annoying notification that there's new junk in the dev-logs. And there, I only find this ... which seems to be done by the almighty CE Image.

Deprecated function xss_clean() called in /var/www/html/svenskakakel.se/public_html/system/user/addons/ce_img/libraries/Ce_image.php on line 664.
From template tag exp:ce_img:pair in keramik/produkt.
Deprecated since 3.0. Use ee('Security/XSS')->clean() instead.

Any ideas on how to solve this?

CE Image is supposedly for EE3 now, but, is it really? :)

I'm running PHP 5.6.24 (after downgrading from php 7 which, if you ask me, is not good for EE-enviroment yet).


texts: Is there a way to disallow comments by default in EE3?

texts: Now that EE3 has done away with the idea of comments being a separate module that could be installed or uninstalled, the only way to 'turn off comments' that I can see is to go into each channel's settings and flip the ‘Allow comments?’ switch from Yes to No. Is there any way to make the default setting for allowing comments in newly-created channels to be 'No'?


texts:
I've got a channel with CD's. So there are let say 10 entries.
Members can order these CD's. There is only one form to order the CD's.
It will look something like this:

CD title 1:<select name="cd_title_one" id="freeform_quantity">
 <option value="" selected="selected">Quantity</option>
 <option value="1">1</option>
 <option value="2">2</option>
 etc...
</select>

CD title 2:<select name="cd_title_two" id="freeform_quantity">
     <option value="" selected="selected">Quantity</option>
     <option value="1">1</option>
     <option value="2">2</option>
     etc...
    </select>

Is there a way to auto pupulate this with Freeform Pro? If not are there other solutions?

Tnx


texts: Content Structure using Playa and Matrix

texts:
I have the following relationship that I am trying to model in EE using Playa and Matrix plugins:

Song List (has many Songs)
-> Song (has many arrangements)
  -> Arrangement (P&T asset field) - points to a .pdf in the file system

The idea is that the end user should be able to create a Song list that is composed of Songs, and each song can be represented by a number of Arrangements, each of which is an asset in the file system, represented by an P&T Asset.

My desire is that the back end user is able to create a song list by selecting a Song from a drop down list, and then select an arrangement based on the Song title. The user should be able to add multiple songs to the list.

I’m having trouble creating this in EE with Playa and Matrix.  Any thoughts on how I can do this?


texts:
I'm trying Wyvern due to easier Typekit integration.

I have a simple CSS file linked, but oddly, I can't seem to set field's BG color.

When I load a publish layout, I see the BG color I have set, but once I enter the Wyvern field it switches to a near-white.

The CSS in question from my linked file:

body{margin: 10px; background:#2b2b2b;color:#ffffff;font:14px/1.256em "freight-sans-pro",sans-serif;padding:0;}


texts:
I'm having a small issue creating a script that take in an entry_id, and based on that creates a new carbon copy entry with a new entry_id.

I've got this working, however as it stands now i'm forced to updated the $entry_data array everytime a new ee_channel_data field_id_# column is created.

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

$entry_data = array(
    'title' =>  $get_channel_title_res['title'] . ' COPY',
    'url_title' =>  $get_channel_title_res['url_title'] . '_copy',
    'entry_date' => $get_channel_title_res['entry_date'],
    'edit_date' =>  $get_channel_title_res['edit_date'],
    'field_id_1' => $get_channel_data_res['field_id_1'],
    'field_id_2' => $get_channel_data_res['field_id_2'],
    'field_id_3' => $get_channel_data_res['field_id_3']
);

ee()->api_channel_fields->setup_entry_settings($channel_id, $entry_data);

$success = ee()->api_channel_entries->save_entry($entry_data, $channel_id);

I would prefer not to have to specify the fields, but simply tell EE's API
Create a new entry, based on this old entry, and change it's title/url_title to appent _COPY.

I realize there's an addon for this, however that's not an option for me

Thanks!


texts: Matrix field total_rows > 0 not working?

texts:
I'm trying to display a matrix field ONLY if it has data entered into it.

I've tried this by wrapping it in this conditional...

{if mymatrix:total_rows > 0}
  {mymatrix}
    data here
  {/mymatrix}
{/if}

But nothing is getting outputted. If I remove the conditional, the matrix is outputted fine. Any ideas? (I'm up to date with EE 2.9.2 & Matrix version 2.6.1)


texts: Assets Blank not Updating after migration

texts:
Migrated to a new server and my server path has changed.

I changed the path in all the file upload preferences etc. but Pixel and Tonic Assets seems to want to hold on to the original path.

If I look at the database in MySQL, the old paths are there. When I go to Assets and hit "Update" indexes", nothing happens and the button gets greyed out. When I go to the Assets file manager there are no files. Just the spinning icon to the right.

So I figured I would just change the paths in the config.php file as such:

$config['upload_preferences'] = array(

        6 => array(                                                            // ID of upload destination
            'name'        => 'Homepage Images',                          // Display name in control panel
            'server_path' => '/home/content/02/xxxxxxxxx/html/images/uploads/homepage/', // Server path to upload directory
            'url'         => 'http://www.xxxxxxxxx.com/images/uploads/homepage/'      // URL of upload directory
        ),
        5 => array(                                                            // ID of upload destination
            'name'        => 'Images',                          // Display name in control panel
            'server_path' => '/home/content/02/xxxxxxxxx/html/images/', // Server path to upload directory
            'url'         => 'http://www.xxxxxxxxxxxxx.com/images/'      // URL of upload directory
        )
    );

But that does not seem to help either. There are a lot of files. Do I just need to leave it on the Assets file manager page and wait for the spinning icon to stop?


texts: Images not appearing on page or in channel when edited

texts:
I am  having a bit of an issue with images not displaying (I'm on EE 2.9), even though it looks as if everything is alright in the source code. The page in question is www.westeros.org/ASoWS/Gallery/

The issue also persists internally -- if I go to this channel and look at the entries, the image thumbnails do not show up in the designated field.

I just can't figure out what would be stopping them from appearing -- if I paste in any of the image urls in the source of the page, they're clearly there.


texts:
I'm making an ExpressionEngine extension that is supposed to return to a certain URL after the user logged in. I'm using this hook: member_member_login_single. This returns me to the right url, but it doesn't finish the whole login process. In other words: it's not logging my user in! How am I supposed to do this? There doesn't seem to be a hook like member_login_end.

 function activate_extension()
{
    $this->settings = array(
        'prijs_per_kind'    => 5,
        'sluitingsdatum'    => '05-11-2016',
    );

    $hooks = array(
            "zoo_visitor_register_end" => "redirectToPayment",
            "member_member_login_single" => "checkClosingDate"
    );

    foreach ($hooks as $hook => $method) {
        $data = array(
                'class' => __CLASS__,
                'method' => $method,
                'hook' => $hook,
                'settings' => serialize($this->settings),
                'priority' => 10,
                'version' => $this->version,
                'enabled' => 'y'
        );
    }
    ee()->db->insert('extensions', $data);
}

function checkClosingDate()
{

        ee()->functions->redirect('http://sportvandemaand.local/account/profiel/verlopen');

}


texts: How to change other entries values when an entry is saved/updated

texts:
I have a channel with some fields. One of them is an on/off value (let's say toggle field type). I want to be sure that I have no more than one entry with on (or true) value for that specific field. In other words, when an entry is saved or updated, I should check value of that specific field and if it is turned on, I must turn off that field value of any previous entry which has true value for that field. What I have tried so far was:

Trying to create a custom fieldtype by extending toggle field, but in post_save method I do not have access to current entry DB id to update other entries except the current one. The only thing I have is the saved value  of the field.
Trying database triggers, so that if the new value of the updated/inserted record is 1 (or true), update any other record which has value type of 1 (from 1/true to 0/false). It was not possible since mysql does not let you run queries on the same table as the one you are writing trigger for.

Thanks in advance


texts:
Good afternoon!

I’ve just “discovered” and started playing with layouts. So far, I love them!

But I have one question: Some of my pages, include custom stylesheets:

[code]

[/code]

I can’t quite seem to figure out how to get this into the layout. If I try and use a normal variable in the main layout tag, the quotes (single / double) appear to mosh up the output.

I’ve also had zero success with the dynamic layout variables either:

[code]
{layout:set name="color" value="red"}
[/code]

Thoughts on how others include custom header info in their layouts….


texts: Database Error when I attempt to Publish an Entry

texts:
I created a new channel and a field group that has a large number of custom fields. When I attempt to Publish a new entry I get the following error:

  A Database Error Occurred Error Number: 1054

  Unknown column ‘field_id_0’ in ‘field list’

  SELECT field_id_0 FROM (exp_channel_data) WHERE channel_id = ‘0’

  Filename: fieldtypes/select/ft.select.php

  Line Number: 154

All other channels work fine and publish without error. I did a search and do not have a field_id_0, nor do I have a channel_id 0.

I enabled Template Debugging and do not get any errors there.

Is there a limit to the number of custom fields you can have with a field group/channel?

Any clues what may be causing this?

Thanks.


texts: Duplicate (Copy/Paste) sub-tree in Structure

texts: Has anyone come across an addon or method to duplicate a sub-tree in the Structure addon? Have a client where we're using Structure to assemble training courses (Course > Topic > Content/Quiz) and we want to be able to 'duplicate' a Course and tweak it for different audiences where required.


texts: Using Stash variable inside of channel entries loop

texts:
So, I have a scenario where I'm setting a Stash variable based on a query string being passed. I'm using Mo' Variables to get the $_GET values.

// Query string: /?c1=74&c2=81

{exp:ifelse parse="inward" parse_tags="yes"}
{if get:c1}
  {exp:stash:set name="active_cat" parse_tags="yes"}{get:c1}{/exp:stash:set}
  {/if}

  {if get:c2}
  {exp:stash:set name="active_cat" parse_tags="yes"}{get:c2}{/exp:stash:set}
  {/if}

  {if get:c3}
  {exp:stash:set name="active_cat" parse_tags="yes"}{get:c3}{/exp:stash:set}
  {/if}

  {if get:c4}
  {exp:stash:set name="active_cat" parse_tags="yes"}{get:c4}{/exp:stash:set}
  {/if}
{/exp:ifelse}

Works directly: {exp:stash:get name="c2" dynamic="yes"}
 // outputs 81
Stash Variable works: {exp:stash:get name="active_cat" process="end"} // outputs 81

{exp:channel:entries
    channel="{stash:_channel}"
    category="{exp:stash:get name='active_cat' process='end'}"
    dynamic="no"
    orderby="title"
    sort="asc"
    limit="10"
    parse="inward"
    status="{stash:_status}"
    disable="member_data|pagination"
}

{stash:_channel} - {stash:_status} - {title}

{/exp:channel:entries}

Basically, it assigns a Stash variable 'active_cat' to c1, c2, etc. If a "c4" exists though, it overwrites that variable with the new value.

It works outside of the channel entries loop, but isn't being passed into the channel entries loop. This is in a Stash embed and there are 2 other variables passed into the loop correctly from the parent template.


texts: Getting second item from a tag-pair list

texts:
Have tag-pair (generated as part of output from external call to Amazon AWS Ecommerce API) that returns a list of languages - vis:

{Item_ItemAttributes_Languages}
   {Language_Name}
{/Item_ItemAttributes_Languages}

How do I get just the second item in the list?

Hopefully not too difficult to do - just baffled currently about how to do so...


texts:
I'm trying to use a template to parse through nested data, but some of the child data has the same variable names as the parent. In the example below I'd like to print a list of shows and then a list of the episodes for each show, but the id, title, & description are parsed and given the parent data.

$data = array(
    array(
        'id' => 1,
        'title' => 'LOST',
        'description' => 'Best. Show. Ever',
        'episodes' => array (
            array (
                'id' => 1001,
                'title' => 'Pilot',
                'description' => 'The one where the plane crashes.'
            ),
            array (
                'id' => 1002,
                'title' => 'Dr. Jack',
                'description' => 'Jack saves everyone.'
            )
        ),
    ),
    array(
        'id' => 2,
        'title' => 'Seinfeld',
        'description' => 'Funniest. Show. Ever',
        'episodes' => array (
            array (
                'id' => 2001,
                'title' => 'Pilot',
                'description' => 'The one where it wasn\'t funny yet.'
            ),
            array (
                'id' => 2002,
                'title' => 'Kramer',
                'description' => 'Kramer isn\'t that funny yet either.'
            )
        ),
    ),
);

$tags = '
{title}

{description}

Episodes:

{episodes}

{id}: {title} {description}

{/episodes}

';

$output = $this->EE->TMPL->parse_variables( $tags, $data );

echo $output;
?>

This generates the output below:

LOST

Best. Show. Ever

Episodes:

1: LOST Best. Show. Ever

1: LOST Best. Show. Ever

Seinfeld

Funniest. Show. Ever

Episodes:

2: Seinfeld Funniest. Show. Ever

2: Seinfeld Funniest. Show. Ever

How can I access the episode data? If the field names are different it works just fine, but this data is coming from a web service that is not easily changed.


texts: Display fields upon dropdown selection in PUBLISH layout

texts:
Is there a way to conditionally display channel fields (not required ones at least) based on a prior selection from a dropdown field in the publish layout for any channel?

Thanks!


texts:
I would really appreciate it if someone can help me solve this weird problem that I have with expressionengine. Probably the problem is with the templates in particular, but I’m not sure.

The images that I have linked to the CSS are not showing on the page when I try to view a single template. I get images thumbnails instead. The CSS looks perfectly fine, but the images are not showing at all although I made sure that the link to the images folder on the server is correct.

Any idea what might be causing this problem?


texts: Stash Get not getting, but Stash Set output="yes" shows data?

texts:
I'm having a bit of an issue in repurposing a functioning template of mine. I have a {exp:stash:set} and {stash:get tag}, both of which worked on the previous template, but on this new template which is on a Structure page one segment deeper, I seem to be having problems with the {exp:stash:get} not returning anything, though the set tag works just fine with output='yes' set.

The code in question:

{exp:stash:set name="segment_entry" type='snippet' parse_tags="yes"}
  {exp:playa:parents url_title="{freebie_6}" channel="segment_discussions"}
    {entry_id}
  {/exp:playa:parents}
{/exp:stash:set}

{exp:channel:entries
    channel="segment_discussions"
    disable="categories|category_fields|member_data|pagination|trackbacks"
    limit="1"
    entry_id="{exp:stash:get name='segment_entry' type='snippet'}"
    parse="inward"
  }

I’ve tested to see if the problem was the get tag being inside of the {exp:channel:entries} tag, but unfortunately, that doesn't seem to have any effect. Is there anything else I’m missing that could cause this to no longer function? channel name obviously is correct, as I previously mentioned that output='yes' was working just fine.

For reference, here is the whole template, with content of other switchee cases removed:

{if logged_out}{redirect="account/login"}{/if}
{if group_id == '4'}{redirect="account/pending"}{/if}

{exp:switchee variable="{freebie_4}" parse="inward"}
  {case default="yes"}
  [[Unrelated Content]]
  {/case}

  {case value="discussion"}
    {switchee variable="{freebie_5}" parse="inward"}
      {case value="thread"}
        {embed="embeds/_header"}

        {exp:stash:set name="segment_entry" type='snippet' parse_tags="yes"}
          {exp:playa:parents url_title="{freebie_6}" channel="segment_discussions"}
            {entry_id}
          {/exp:playa:parents}
        {/exp:stash:set}

        {exp:channel:entries
            channel="segment_discussions"
            disable="categories|category_fields|member_data|pagination|trackbacks"
            limit="1"
            entry_id="{exp:stash:get name='segment_entry' type='snippet'}"
            parse="inward"
          }

            {embed="unit/_navigation"}

DISCUSSION: {title}

{comment_total} Comment{if comment_total <> 1}s{/if}

                  {segment_discussion_body}
                  {exp:channel_files:files entry_id="{entry_id}"}
                    {if file:count == "1"}
{/if}

{file:title}: {file:filename} ({file:filesize})

                    {if file:count == file:total}
{/if}
                  {/exp:channel_files:files}

        {/exp:channel:entries}

        {embed="embeds/_footer"}
      {/case}
    {/switchee}
  {/case}
{/exp:switchee}


texts: Change/update Zoo Visitor entry expiration date after order submitted

texts:
I'm trying to find a way to update a Zoo Visitor member entry expiration date after an order in Store has been placed/confirmed.

The order is a subscription renewal so the member/member details already exist in the database.

I am capturing a new expiration date (set to one year ahead) as a custom field when taking the order.

I just don't know how to update the members entry with the new expiration date?

Appreciate any ideas/help.


texts: When I review channel entries from the admin control panel, menu: "Content->Edit->Channel Name", some entries in the list have an asterisk at the end of the title. What does this mean?


texts: Wygwam shows only PDF files but no images

texts:
I just downloaded the newest Wygwam 4.0.1 and installed it into a working EE 3.1.2 installation. When trying to select an image through Wygwam the file manager only shows PDF files. Anyone any clue why this is happening?

Tia,
Tom


texts: Cannot pull an image in from one site’s entry into another sites template?

texts:
I have a template in Site B pulling in data from a channel entries tag pulling in entries from Site A which works fine.

I now need to display the image from the entry in Site A in the Site B template along with the current text.

The image is coming from a relationship field and so my tag is like this:

{exp:channel:entries
    site="sitea"
    channel="my_channel"
    disable="categories|category_fields|member_data|pagination|trackbacks"
    dynamic="no"
    show_future_entries="yes"
    status="not Closed"
    limit="1"
    search:event_field="y"
    }
       {cf_prod_photo limit="1"}
          <img src="{cf_photos_file}" alt="blah"/>
       {/cf_prod_photo}

{/exp:channel:entries}

I should add that this code comes from Site A and pulls an image in perfectly on that site.


texts: EE 1.7.0 and white screen on modules page

texts:
I recently moved my ee installation to another server and everything seems ok except for this issue

If i go on modules page i see white screen

Can somebody help me please? Thanks in advance


texts: Subscriptions - allow users to switch off auto-renew for their subscriptions

texts:
Is it possible to allow a user to 'switch off' auto-renew for their subscription so it expires automatically at the end of the current period?

For example, say a user is 6 months in to a 12 month subscription and they want to stay until the end of that 12 months, but they don't want their subscription to be renewed at the end of the 12 months. Is that possible?


texts:
I'm having some problems with my view model template... I'm trying to compare the value of url_title, but regardless of the value of it the last conditional passes and sets the stash variable...

This is what I Have:

{stash:embed:layouts:full-width}

{exp:channel:entries limit="1" channel="pages" disable="member_data|pagination" require_entry="yes" dynamic="no" url_title="{segment_1}" parse="inward"}
    {exp:stash:set_value name="content" value="{exp:stash:embed:partials:supports-landing}"}
    {exp:stash:set_value name="body_class" value="{url_title}"}

    {if "{url_title}" == "supports-for-adults"}
        {exp:stash:set_value name="support_type" value="Adults"}
    {if:elseif "{url_title}" == "supports-for-children"}
        {exp:stash:set_value name="support_type" value="Children"}
    {/if}

    {exp:stash:set_list
        name="supports-landing"
        parse_tags="yes"
    }
        {stash:entry_id}{entry_id}{/stash:entry_id}
        {stash:body}{body}{/stash:body}
        {stash:support_type}{exp:stash:support_type}{/stash:support_type}
    {/exp:stash:set_list}
{/exp:channel:entries}

{exp:stash:set_list
    name="supports-landing-list"
    parse_tags="yes"
}
    {exp:channel:entries channel="supports" disable="member_data|pagination" dynamic="no" orderby="title" sort="asc"}
        {if "{supports_for}" == "{exp:stash:support_type}"}
            {stash:support_title}{title}{/stash:support_title}
            {stash:support_excerpt}{supports_excerpt}{/stash:support_excerpt}
            {stash:support_cover_image}{supports_cover_image}{/stash:support_cover_image}
            {stash:support_url}{path='supports/{url_title}'}{/stash:support_url}
        {/if}
    {/exp:channel:entries}
{/exp:stash:set_list}

Every time, regardless if i'm on /supports-for-adults or /supports-for-children, the value of {exp:stash:support_type} will be Children. If I remove the if:elseif part of the conditional, it will always be Adults.

Any ideas why this would be happening, been fighting with it for quite some time.. Tried removing the "'s, the {'s, tried using the IfElse plugin, tried using Switchee... Tried changing the exp:channel:entries to dynamic="no", parse="inward", url_title="{segment_1}" etc.. I can't think of anything else to try now...


texts:
Is there any difference in processing/speed in using Stash exp:stash:set with output=yes vs. using Stash to set and then outputting via exp:stash:get? For example:

OPTION 1:
{exp:stash:set name="client_age"
    save="yes"
    output="yes"
    refresh="no"
    trim="yes"
    parse_tags="yes"
    parse_conditionals="yes"
    parse_depth="2"
    scope="user"
}
    {exp:channel:entries channel=".....}
        {PLUGIN}{content}{/PLUGIN}
    {/exp:channel:entries}
{/exp:stash:set}

VERSUS OPTION 2:
{exp:stash:set name="client_age"
    save="yes"
    refresh="no"
    trim="yes"
    parse_tags="yes"
    parse_conditionals="yes"
    parse_depth="2"
    scope="user"
}
    {exp:channel:entries channel=".....}
        {PLUGIN}{content}{/PLUGIN}
    {/exp:channel:entries}
{/exp:stash:set}

{exp:stash:get name="client_age" scope="user"}


texts:
I have a plugin which is setting the value of a stash variable based on segment URIs.

on my redir/index.html template, I have {exp:hippo_functions:redir} and the contents of my function (stripped) is:

$params = array(
    'name' => 'delivery_day',
    'scope' => 'user'
);

Stash::set($params,$days['delivery_date']);

ee()->functions->redirect( ee()->functions->create_url($location) );

I've checked the value of the the 'delivery_day' stash immediately after setting it with Stash::get('delivery_day'); and it's returning the correct value, however on my redirected page - I have a separate function which checks the validity of the date using the same Stash::get('delivery_day'); call, however this time the value is empty.

Why isn't the value persisting across pages? I presumed it was the scope, which was why I set it to user - but could it be something else?


texts: How to change Archive link url in Exrpession Engine

texts:
Expression engine archive is showing link in this manner eg.

    {exp:channel:month_links channel="news" limit="50"}
    {month}, {year}<br>
    {/exp:channel:month_links}

http://www.example.com/news/archives/2015/09

how to change it like in this way

http://www.example.com/news/archives/2015/9


texts: Can I move the Submit button on the entry screen to the top of the window?

texts:
I've got clients who have a problem remembering to scroll down to the bottom of long entry screens to click the "submit" button on a regular entry screen.

I was thinking it would be good if I could either move the one on the bottom up to the top, or better yet, have a duplicate "submit" button at the top.

Is there an easy way to do this?


texts: Updating from MX Universal Editor to Assets

texts:
I'm trying to upgrade an EE1 site that was using MX Universal Editor as it's file manager to use Assets 2 instead.

At the moment I'm dealing with Matrix fields that have values like /folder/subfolder/subsubfolder/filename.jpg in exp_matrix_data

If I change the column fieldtype to the native file manager, nothing shows up because the image isn't in the root level of the file upload directory, it's in a subfolder of that directory which is why I used the Universal Editor in the first place and why I want to change to Assets now.

If I change to Assets, again nothing shows up. If I click to browse files and add a file, the file is added succesfully, but if I then save the entry, all the other matrix rows that I haven't updated yet have their data wiped from the db.

After updating the entry by adding my own image with the Assets fieldtype, the value that ends up in db looks like filename.jpg but if I manually update the value to remove /folder/subfolder/subsubfolder/ and then check the entry, still nothing shows up. So is there some other piece of the puzzle missing?

I've got several hundred entries all with a handful of images each so I want to find an automatic way of updating all the entries to use Assets successfully.


texts: SuperSearch - Filtering results with edit date

texts:
Is there a way to filter supersearch results such that only entries edited after a certain date will be searched for? Our database is going to be massive and we don't want to load the db will excessive MySQL calls.

I've tried using

{exp:super_search:results
channel="record"
status="open|closed"
edit_date-from=20130501040000}
     {entry_id}
{/exp:super_search:results}


texts: Creating a new member account (without the accompanying profile channel entry) with Profile:Edit

texts:
Using Profile:Edit, is there a way to create a new member account, without creating the profile channel entry at the same time? I've got a situation where I have profile channel entries already created, but just need to create the member accounts separately on the front end.

Using the {exp:profile:register} tag creates both the member account and the profile channel entry (so I then end up with a duplicate profile channel entry as it already existed previously).

Just wondering if there's a non-documented parameter I can use to make it create just the member account, or if there's any ideas for an alternative method (SQL, Database class, etc), thanks.


texts:
I'm working on a multilingual site.. Everything is working except Channel Images from DevDemon..

there is some infos and the structure

-root
|-index.php
|-fr
  |-index.php
  |-htaccess (fr)
|-en
  |-index.php
  |-htaccess (en)

root index is a simple 301 redirect using preg_match as

if(preg_match('/en-us/', $_SERVER['HTTP_USER_AGENT'])){
    header("Location: http://wwww.domain.com/en/");
    exit();
}
else {
    // Permanent redirection
    header("HTTP/1.1 301 Moved Permanently");
    header("Location: http://www.domain.com/fr/");
    exit();
}

the htaccess in fr and en folders look like

Options +FollowSymlinks
  RewriteEngine On

  RewriteCond %{HTTP_HOST} ^domain.com/en$
  RewriteRule ^(.*)$ http://www.domain.com/en/$1 [R=301,L]
  RewriteCond $1 !^(css|documents|images|img|js|en|fr|themes|admin|index\.php|favicon\.ico|robots\.txt|sitemap\.php|apple-touch-icon\.png|info\.php) [NC]
  RewriteCond $1 !^(index\.php)
  RewriteRule ^(.+)$ index.php?$1 [L,QSA]

and the index.php in eache fr and en folder are standard ee index.php with fr and en global variable as.:

$assign_to_config['site_url'] = 'http://domain.com/en/';
    $assign_to_config['deft_lang'] = 'english';
    $assign_to_config['global_vars'] = array(// This array must be associative
        "lang" => "en",
        "language" => "english" );

So far everything is fine .. but when i want to use Channel Images, i have to access domain.com/?Act=XX   XX is integer
And when i "Test Location" within Channel Image fieldtype.. i get this error : Request unsuccessful: error

Any ideas!?

THanks

UPDATE :
I changed my method using this link : http://www.shortcuts.nl/index.php/weblog/comments/ee_multi-language_sites_revisited/

Everything is working now... I guess the problem was the 301 redirection from the root index.php..

UPDATE #2 :

I had the same problem few times on different website and i found that having a index.html on the root was the problem!!! I then modified the htaccess and Voila!!..


texts:
Currently working on a custom fieldtype, but facing a little nasty problem;

Is it possible to parse any custom field with params the following way (with enters):

{gmaps_field_extension
param1=""
param2=""
param3=""
}

When i try this, the output is a plain string: {gmaps_field_extension param1=""param2=""param3=""} instead of the generated data.

When i using it like this:

{gmaps_field_extension param1=""param2=""param3=""}

It works!

I have a feeling that EE is not understanding the enters in the tag.

Is there some trick to let this work with enters?


texts: SSL Certificate Breaking User Login - ExpressionEngine

texts:
I have recently installed an SSL certificate on a website.

Unfortunately when enabled, members can not stay logged in. After the initial login, it logs you out every time the page refreshes.

Any idea on what could be causing this?

I am using this plugin
http://devot-ee.com/add-ons/https-support

But i have also tried to achieve this using a rewrite in .htaccess


texts: SuperSearch Module Install Creates 1044 Error

texts:
I've just attempted to install SuperSearch 2.2.3 on EE 2.9.2 and receive a a database 1044 error:

Access denied for user 'db######'@'%' to database 'db202322_##########'
It then goes on to list the Levenschtein function where it errored in the SuperSearch install code in upd.super_search.php.

I've attempted to grant all privileges to the user but cannot string together a query that works. Perhaps because I'm not a root admin or superuser? But I am a Super Admin in the CP...

Please advise if you can. I've also curious as to why the username and database are the same...specific version of the database for that user?


texts:
We just updated to the latest version of Expression Engine 2 (2.11.6), but now it looks like there's some kind of code being injected at the very top of our page, right after the "body" tag:

  {!-- ra:00000000397d91950000000074865fe6 --}

It doesn't seem to be coming from any of our templates. Any idea why EE generates this random code?


texts:
Assume the following:

Template A embeds Template B
Template B embeds Template C
Template C is a simple Channel entries loop that outputs a particular field value

In the above setup, nothing is outputted by Template C. However, if Template A embeds Template C directly, it works fine.

What's going on here? How do I make Template C work when embedded by Template B?


texts: Multiple checkout with the same entry_id

texts:
I have a product which a visitor can enter your own amount.
Now this product is several times can be ordered with a different amount.

Is this possible?

http://www.inescoffee.be/site/aankoopbon

Bert


texts: CartThrob Edit Permission Item - Submit button doesn't do anything

texts:
If I create a permission item (i.e. CartThrob > Add-Ons > Create permission item) and then save it.  Everything seems to work as expected.
However, when I enter "edit" mode and then try to Submit, absolutely nothing happens...
Google Chrome Inspector does not show any errors and there is no Network activity going on either.

Expression Engine version 2.7.3
CartThrob version 2.4

Let me know if I can provide any further details to help debug this.
Thanks.

UPDATE:
Upon further investigation it appears there is no opening <form> tag.  Does anyone know where this file is located or have any advice?


texts:
Inherited a page. Not a EE person but learning....coming from Wordpress.
The Sign up to mailing list page using Freeform free version 4.0.12 looks lovely.  First Name, Last name email, message.... then the Sign UP button. Selecting the button does nothing. The user does not show up in the form mediation section and no notice is sent to admin.  Also, though it shows some code for a Captcha, that doesn't show up.

Yes, I can email from CP/Tools.

Something is missing.....I did spend much time reviewing other folks questions to see if I could spot the mistake....but, no success. The form is called Exclusive Sign Up   or exclusive-signup

{exp:freeform:form
        form_name="exclusive-signup"
        form:id="exclusive-signup-form"
        return="{segment_1}/thank_you"
        notify="me@thedomain.com"
    }
    <fieldset>

                First Name

                    <input class="input-text" type="text" maxlength="150" id="freeform_first_name" value="" name="first_name">

                Last Name

                    <input class="input-text" type="text" maxlength="150" id="freeform_last_name" value="" name="last_name">

                Email

                    <input class="input-text" type="text" maxlength="150" id="freeform_email" value="" name="email">

                Message

                    <textarea class="textarea" id="freeform_user_message" rows="6" cols="50" name="user_message"></textarea>

            {if freeform:captcha}

Please enter the word you see in the image below:

{freeform:captcha}

                    <input type="text" name="captcha" style="width:140px;" />

            {/if}

            <button class="button" type="button">Sign Up</button>

    </fieldset>
    {/exp:freeform:form}

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


texts:
Channels have author id. Authors are associated with groups (member).

Is it possible to filter collection entries based on group id in Low Search?


texts: conversion to wygwam field is hanging in ExpressionEngine 1.7

texts: I'm prepping a large EE1.7 site (many, many entries) currently using MD Markitup fields with Textile by converting the content fields to Wygwam so when I upgrade the site to EE2 they're all set. I'm trying to switch the fields one at a time to Wygwam 2.7 and converting the textile content. When I make the change on the edit field page and click "update" the page is hanging for a long time and then goes blank. When I go back to check the field settings the field is still using the previous setting. Is there another way to convert the content?


texts: Why doesn't {if no_results}{redirect="404"}{/if} return a 404 header?

texts:
Under Design > Templates > Global Template Preferences I have Strict URLS set to yes and I've defined the 404 page (It lives at /errors/404).

We're running EE 2.8.1 and PHP 5.3.27

Something like http://site.com/foo displays the 404 template and properly returns a 404 header.

This URL exists and displays content properly http://site.com/groups/studies/i-love-my-church

The problem

http://site.com/groups/studies/foo displays the 404 template, but incorrectly returns a 200 response. (http://cl.ly/image/3E3U1N2X2j1L)

EE Docs state that EE will only evaluate the first two segments unless used in conjunction with the require_entry parameter. Unfortunately, using this doesn't change the header.

The code

groups/_studies-collection:

{exp:channel:entries channel="groups_study" url_title="{segment_3}" require_entry="yes" dynamic="off" status="Featured|Open"}

    Content Here

    {if no_results}
        {redirect="404"}
    {/if}
{/exp:channel:entries}

groups/studies:

{if segment_3}
    {if segment_4}
        {embed="groups/_studies-entry"}
    {if:else}
        {exp:md_detect_page_type url_segment="{segment_3}"}
            {if pagination_page}
                {embed="groups/_studies-list"}
            {if:else}
                {embed="groups/_studies-collection"}
            {/if}
        {/exp:md_detect_page_type}
    {/if}
{if:else}
    {embed="newspring:groups/_studies-list"}
{/if}

Any clarity on this issue would be appreciated!


texts:
I am using the Zoo Visitor login form within a secured environment and the form action being output is http:// instead of https:// - even when I put a full path like: return="https://www.site-name.com/account" the form action is: action="http://www.site-name.com/account".

How can I make the form submit to a secure URL?


texts: In Solspace Superseach Use the ampersand as the separator like this: pie&&cheese

texts:
In the docs if I want the search to include all of the words it says:

Use the ampersand as the separator like this: pie&&cheese.

When I use it, it defaults with a "+" not "&" so how do I change in the search form? It works in the URL (If I change manually) so this is all I need to complete.

Thanks
Guy


texts: May custom fields be used for CartThrob email notification To and From fields?

texts: I've tried this a couple of different ways with no success.  I can hardcode the "to" line for the customer email notification and it works fine. But if i try to use a variable - like the customer's user-entered email address - no notification is received.  In CartTrhib's order settings, I have the "Customer Email" field mapped to my custom field in my orders channel.  It's being captured and shows correctly within the email notification itself.  But I don't seem to be able to use it in the "to" field for the email notification's settings.  Are custom fields - even a mapped one like customer email - not available to use?


texts:
Before starting on a new #eecms website, are there any other hotfixes i need to know of ?!

Channel posting privileges being removed from member groups
When editing Member Group permissions and pressing save, channel posting privileges are being removed from all other non-Super Admin member groups.
https://support.ellislab.com/bugs/detail/18234
Edit date wrong on initial save
On initial save the edit_date is set equal to entry_date,
On next saves edit_date is correctly set to localize->now.
https://support.ellislab.com/bugs/detail/18308


texts: style="display:none" breaks publish page when saving Error: "Not Allowed"

texts:
Having a strange issue where I am inserting google / facebook tracking snippets into a textarea custom field (formatting: none).

In one of the snippets of code an image has style="display:none", if I change to display:inline or anything else, it doesnt break. Only if set to display:none??


texts: ExpressionEngine - I'm a beginner, have I set up my Channels correctly?

texts:
I'm a beginner at ExpressionEngine, so I'm wondering if this is actually the right way to do things. Here's how my site is laid out:

Construction

List of Construction case studies

Case Study 1
Case Study 2
etc.

Hydrology

List of Hydrology case studies

Case Study 1
Case Study 2
etc.

Sustainability

List of Sustainability case studies

Case Study 1
Case Study 2
etc.

What I have done is set up a Channel called "Home" for my homepage, and a channel called "Case Studies", along with corresponding Channel Field Groups for both.

In terms of Templates, I have created a Template Group called "Home", and a Template Group called "Case Studies".

All is fine with the "Home" group. This is where I'm getting confused - with "Case Studies" Template Group, I have two Templates - "index", and "case_study".

What I would like is:

From the homepage, users can click through to a list of all Case Studies within a Category
From the list of Case Studies, users can click through to see an individual Case Study

I have gotten the list of  all Case Studies working, but I cannot find a way to filter it by category (via the URL or otherwise). Is such a thing possible in EE, or am I using it in the 'right' way?

I have tried accessing http://mysite.com/case_studies/index/hydrology to try to only show the Hydrology-categorised case studies, but they are all appearing.


texts: {exp:playa:total_children} > 1 not returning in conditional without var output

texts:
I'm trying to show data conditionally based on a relationship having more than 1 child (see below). When I output the var {exp:playa:total_children field="cf_lookbook_products" entry_id="{entry_id}"} anywhere in the DOM, the conditional returns true, however if I do not include it, then it returns false always. That var also returns the correct number of children.

{if {exp:playa:total_children field="cf_relationship_field" entry_id="{entry_id}"} > 1}
content here
{/if}


texts: How do you a hide a page from search engine results in EE?

texts:
I have a page I want to share with specific group of users. I'm thinking the best way to keep it exclusive is to keep it out of search results.

Any ideas or suggestions?


texts: Simple Commerce for Downloadable Products

texts:
I am just wondering if anyone has ever used EE's Simple Commerce for a store that requires items to be downloaded (music songs and albums in my case)? And if so is there anything I should watch out for.

I'm using ee 2.7.1, Structure and Transcribe.

Thanks.
Stephen.


texts: Searchable content not appearing in search results

texts:
I've got an existing site, and recently changed the settings of a few Channel Fields to make them searchable.

There are lots of pages using the Channel already, so I was hoping that my change to the channel fields would make all that content searchable immediately, but this hasn't been the case. I've also tried editing and saving a page (in case that triggered a new index) but that hasn't worked either.

I can't find how to reset or rebuild the search index to include this content. Any pointers much appreciated!

T


texts: dynamic multi select options in safecracker form

texts:
I am going to be using a safecracker form with zoo-visitor to create membership profiles.

I want to have a field where you choose 1,2,or 3 and if you choose 1 the next field gives you options in a multi select list for 1a if you choose 2, you choose from a list 2a and so on.

Is there anything built in I could use or does it require some custom ajax or is a multi page form the best option?


texts: Sub Category attached to multiple Parent Categories

texts:
Long story short I have a client I’m currently working on an EE build for, they want a download page where by each download can be found by navigating through category and sub categories so on and so forth.

Now the issue I’m having is the functionality of expression engines categories module doesn’t seem to allow this kind of depth though it may well be me just getting things confused.

The structure for these categories they want is along the lines of the following:

    Category 1

            Sub Category 1
            Sub Category 2
            Sub Category 3

    Category 2

            Sub Category 4

                    Sub Sub Category 1

                            Final Sub Category 1
                            Final Sub Category 2

                    Sub Sub Category 2
                    Sub Sub Category 3

                            Final Sub Category 1
                            Final Sub Category 2

            Sub Category 5

    Category 3
    Category 4

            Sub Category 4

                    Sub Sub Category 1

                            Final Sub Category 1
                            Final Sub Category 2

                    Sub Sub Category 3

                            Final Sub Category 1
                            Final Sub Category 2

                    Sub Sub Category 4

            Sub Category 5
            Sub Category 6

    Category 5

It’s a very complex category listing but despite advice the client is adamant on retaining this structure to order their downloads. Now as you can hopefully decipher from the above is that they have multiple sub categories of varying depths which can appear as children of multiple categories as well as other sub categories.

If I attempt this kind of category setup within the standard category module in EE I can easily add categories and sub categories but it’s when I get any deeper than this which causes issues as I cannot have multiple sub categories with the same name and to my knowledge there is no way to attach a sub category to multiple parent categories.

My question for all you super duper category experts out there is, Can this kind of category depth be achieved using EE with the multiple sub categories and the linking to multiple parents? And if not are there any addons or suggestions you have that can get me on the right tracks?

Thanks in advance for any comments and answers in reply to my inane babble :)


texts:
Not sure if a new question is the right thing?  There was a question a month ago about users being able to calculate shipping on the first page of checkout.

In the template I substituted:

{field:shipping_method}
{if error:shipping_method}
{error:shipping_method}
{/if}

for

Shipping State
{field:shipping_region}
<input type="submit" name="update_cart" value="Update Shipping" class="btn" />

The aim was to update {order_shipping} on the same page.  This doesn't work.

I would appreciate some help on this.  Cheers,  Alex


texts: Cartthrob php waring Illegal string offset 'onclick' in ft.cartthrob_matrix.php?

texts:
Started seeing this after server upgrade to php 7.1.6

I have CT 3.1 installed.

Any Ideas?


texts:
I am using ExpressionEngine 2.5.2 with Multisite Manager installed.

I have a blog that is pulling entries from two different sites. I am able to successfully show those entries on the main blog page, but I am having trouble linking the entry to the correct site. The code I am using is trying to find all posts on the main site, when some of them exist on the 2nd site. Could someone tell me the correct way to do this? Here is the code on the main blog page:

{exp:channel:entries  channel="news"  site="default_site|characterized" orderby="date"  limit="6"  }

{title}

{/exp:channel:entries}

The part that's not working correctly is a href="{url_title_path='news'}" in the 3rd line above.


texts: CE Cache - Very strange URLs in cache directory?

texts:
So, I tried pointing this out to our SysAdmin, but he says this looks normal and that EE generates these kinds of cache directories.

But I'd like to verify, do these look like normal cache directories created by EE or CE Cache?

Screenshots:

Does this look "normal" for a cache directory, or like a spam attack?

EDIT/UPDATE:

These are in the CE Cache directory: system/user/cache/ce_cache/xxxxxx.

My cache settings:

$config['cache_driver'] = 'dummy';
$config['cache_driver_backup'] = 'dummy';
$config['ce_cache_static_enabled'] = 'no';

Native EE cache is disabled because this site is using the Transcribe module which needs to have native cache disabled and to use CE Cache instead.

Static cache is also disabled.


texts: Facebook Open Graph pulling ExpressionEngine Data

texts:
On a blog detail page I have Facebook OpenGraph tags pulling in various bits of data using ExpressionEngine tags etc. All works fine apart from the images.

Ideally, as the blog posts contain a lot of images, when posting an article to FB it should pull some of the images from the blog post to use as the thumbnail and let the client decide which one to use. If there are no images in the blog post then it falls back to the default thumbnail I've referenced in the 'og:image' tag.

Currently what happens is it only gives the option to use the default thumbnail                       and if I don't include the 'og:image' tag then it loads no thumbnail at all, instead of scraping the post for a blog image.

Has anyone encountered this before? What EE solutions, if any, are you using to bring in select images? Creating a separate channel field just for a thumbnail for every blog post seems overkill. Also, as it's blog post then all the data is in one channel field in a textarea so I can't pull a specific image out of it.

<meta property="og:title" content="{title}"/>
{if facebook_description}
<meta property="og:description" content="{facebook_description}" />
{/if}
<meta property="og:image" content="http://www.client.com/thumbnail.jpg"/>
<meta property="og:site_name" content="{site_name}"/>
<meta property="og:url" content="{page_url}/" />


texts:
Have a problem with using Playa as a field within a Matrix field where the selected entry is not being saved.

Oldish version of EE (2.4) but should be supported. Entry appears to save okay but when revisit entry the field is empty.

Anybody got any thought?

Cole


texts: Freeform not sending notifications with custom template, default template works fine

texts:
My Code is below. Works fine when using the default template,but it doesn't send with my custom.  I was also able to send emails from the cp without a problem....any suggestions???

-Using EE 2.8, Freeform 4.1.8

{exp:freeform:form form_id="1" form_name="contact" required="full_name|email|user_message" return="contact/index" template=“contact_used" admin_notify="Eric@nutmegit.com" admin_notification_template="contact_used" }

Quick Contact

Your Name

Required

                <input type="text" name="full_name"/>

Your Email

Required

                <input type="text" name="email"/>

Your Organization or Business

                <input type="text" name="company_organization"/>

Enter Message

Required

                <textarea rows="" cols="" name="user_message"></textarea>

                <button>Submit</button>

{/exp:freeform:form}


texts:
I have a notification that I want to send out every day, I am using mail chimp and I have the list selected that I want to send to but no matter what values I put in the post date field or any of the three date fields, it still won't send.

Any help or advice would be great as to what values to put in what specific field in order to send the email out every day


texts: Is there a way to display all the members that belong to a certain group_id inside a template without resorting to the lame and gross profile_themes nonsense?


texts:
I am having a weird issue where my {pagination_url} is defaulting to an old server path. Where can I go to make sure that this path is properly set.

I have no experience searching the database to be honest with you so guidance will be needed.

I did use Deploy Helper each time when moving the site from server to server if that helps at all.

Thanks for the help!


texts: Expresso-store: How do I diaplay the quantity of a specific product in the cart?

texts:
Having already added 10 of product foo to the cart, I later return to the foo product page - how can I display how many foo's are already in the cart?

Thanks for any ideas
Lee


texts: Expresso Store 2: WorldPay won't redirect after successful test payment

texts:
After checking the WorldPay settings numerous times I still can't get it to redirect back to the site after a successful test payment.

I know the settings are ok in WP as I have checked against another setup for a site that is live and working fine.

Once payment has been made WP gives me a blank page with browser page title of 'Domain Registered', so it looks as though it's just not re-directing at that point.

Has anyone experienced anything similar with success in fixing it?

EE version is 2.7.2 and Store 2.0.6

Any help appreciated, thanks.


texts: How to implement AJAX "add to cart" with Expresso Store?

texts: I looked everywhere and i cant seem to find anyone talking about how they have done it... im sure i could write something custom to do it but wanted to see if anyone else out there had already solved the problem?


texts: FreeForm Pro 4.1.3 / EE 2.7.3 javascript issue

texts:
Upgraded EE to 2.7.3 and installed FreeForm Pro 4.1.3. When creating a new field, I can't add the field to any forms. The javascript doesn't fire because the javascript isn't included in the file. The JS file edit_field_cp.min is actually commented out in mpc.freeform.php on line 990 and 3212. If I uncomment (therefore gets added), it throws JS errors.

Is this a problem for anyone else? Insight? Thoughts?

Updated: added screenshot:


texts:
In a recent version of Exp:resso Store since (2.3.1) there has been a change in what information gets passed to the Payment Gateways (I believe using the function getDescription();).

In 2.3.1 the OrderID was passed, in both 2.5.0 and 2.5.1 it is the Cart ID that is passed (now these are separate things). This is paying havoc with my client accounting team, who now have no obvious way to tally Payments (on both SagePay and Paypal Express) with the orders.

Is this a bug, or designed behaviour? If designed behaviour is there a way I can get the order ID on the AuthoriseRequest.php scripts please?


texts:
After installing cart throb lite and default templates, on testing the default checkout page and hitting the checkout button, I get the following error:

Error Number: 1364

Field 'title' doesn't have a default value

INSERT INTO `exp_channel_titles` (`entry_id`, `site_id`, `channel_id`, `author_id`, `forum_topic_id`, `ip_address`, `status`, `versioning_enabled`, `entry_date`, `edit_date`, `year`, `month`, `day`) VALUES ('', '1', '2', 1, 0, '::1', 'closed', 'y', 1394557211, '20140311130111', '2014', '03', '11')

Filename: third_party/cartthrob/models/cartthrob_entries_model.php

Line Number: 261

The entry id is going as null, even though on_the_fly="yes" is set in the template.

What could be the problem?


texts: Automatically show entry date plus set time

texts: Is there a way to show the date of an entry with an additional set time. ie 90 days?


texts: How i can display article filter by age in expressionengine?

texts:
I have some article in expression engine now i want to display article filter by age range like (1-10 ,10-20 etc..) and cost wise like(low,medium,high) so please guide me how i can do filtration of article...
thank you.


texts:
The user guide for the multi site manager states that one requirement is that all sites must reside on the same server. I was wondering if anyone could please explain why this is the case?

I need to possibly setup multiple instances of the same EE installation on different servers using the same domain and connecting to the same database. However, the EE installation I have uses multi site manager, which leads me to believe that this will not be possible.

Any clarification anyone can provide on this will be much appreciated.


texts:
Just like on a custom text field you can limit characters, I'd like to be able to limit characters in a Title field for a few channels. It's easy to do this in templates, but I don't want to end up truncating titles; I'd like the user to see their limit and work with it.

Any ideas? Thank you.


texts:
Could you tell me please, what fetch_template() really means in ExpressionEngine?
Debugger shows me an info like below and not only for ".head" template but for a few more templates.

0.0003s
1.2MB SELECT exp_templates.*, exp_template_groups.group_name FROM (exp_templates) JOIN exp_template_groups ON
exp_template_groups.group_id = exp_templates.group_id WHERE
exp_template_groups.site_id =  '1' AND
exp_templates.template_name =  '.head' AND
exp_template_groups.group_name =  'core'
system/ee/legacy/libraries/Template.php L:216 EE_Template::fetch_template()

Thanks!


texts:
I have a client that would like to edit file names for photos that site members have uploaded. She wants to rename them for SEO purposes. (e.g. changing name from DSC_00234.jpg to a-descriptive-title.jpg)

Here is a bit more detail:

Members each have an account where they can create a profile about their services/products and they can upload multiple photos
The photos are stored in a Matrix with image input and descriptive caption (which is used in alt text)
We are concerned with making sure that when an image is renamed it will still be linked properly in the entry in the Matrix field

Other Notes:

Client would prefer to be able to edit these filenames herself after they have been uploaded, rather then at the time of upload by site members, so that she has more control.
A solution that would automatically rename them to something useful (rather than having client edit them herself) would work for us too.
We did not see anything that would do this with either built-in EE functionality or with add-ons. (Thought it's possible we might have missed an add-on.)

Any recommendations on a decent way to accomplish this?


texts: Assets images and Content Elements with conditionals to control number of images displayed

texts:
This is probably really simple to solve but I've got stuck in a dead end. I want to allow users to upload single or multiple images using an Assets image field (resizing with CE Image) within a Content Elements panel, and then display all thumbnails if there's more than one image. Then I use content switcher jQuery to swap out the images. Simple? Not really.

The only way I could find to show all thumbnails if more than a single image was to use the Assets variable 'total_files' in a conditional, not 'count'. Using '{if count > "1"}' only thumbnails for images excluding the first image were shown, using {if count >="1"} showed all thumbnails, but also showed a single thumbnail when only one image was present. But, using '{if total_files > "1"}' does show all thumbs however I can't now stop all the large images from displaying. I need to find a way to limit the large image displayed to a single image but I just can't seem to solve it. If anyone can point me in a new direction to solve this I'll be very grateful.

Here's my current rather messy code:

    {assets}

    {files kind="image"}

    {exp:ce_img:pair src="{url}" width="800" height="400"}

            {if total_files == "1"}

{exp:ce_img:single src="{url}" width="800" height="400" crop="yes"}

{title} | {author} | {location}

            {/if}

            {if total_files > "1"}

{exp:ce_img:single src="{url}" width="800" height="400" crop="yes"}

{title} | {author} | {location}

                    {exp:ce_img:bulk src="{url}" width="120" height="90" crop="yes" attributes ='style="float:left;margin:0 auto;"'}
                    {/exp:ce_img:bulk}

                    {exp:ce_img:single src="{url}" width="800" height="400" crop="yes"}

{title} | {author} | {location}

            {/if}

            {/exp:ce_img:pair}

    {/files}

    {/assets}


texts: Store Shipping, Billing & Credit Card Info

texts:
I am not sure if this is an appropriate questions for this site - I was just wondering if expresso store automatically saves the user's shipping, billing and credit card details somewhere in the database and at which point (and where) does store save these?

Thanks in advance


texts: XSS cleaning for discussion forum module

texts:
How do I clean a discussion forum post from XSS attacks in EE?

A bit of background, I'm using the EE discussion module and I've dropped in ckeditor so the user can easily embed youtube/vimeo videos and images. I set "HTML Formatting in posts" to "Allow all HTML" so it will accept the iframed videos. However this leaves it open to XSS attacks as users can then put in any scripts they like. I'd like to whitelist just iframes to youtube & vimeo, links, images and a few tags like p and strong.

I thought of adjusting the settings in the discussion module but they seem very much hardcoded. I thought of using http://htmlpurifier.org/ to whitelist tags but the forum_submit_post_start hook doesn't contain the post content and I guess by the time the forum_submit_post_end hook is called it's too late.

Any ideas?


texts: Export chronologically-correct shortlist of Calendar events?

texts:
I’m working up a festival website and wondering if there would be a way to use Calendar to create and export a schedule of entries from the program i.e. users select or add entries to some kind of favourites list which can then be output as a chronologically correct timetable????

Failing this, will Solspace Favourites allow the list to be built but not necessarily in date/time order?


texts: How to create a password for a member logged in via Facebook? i.e. no password set

texts:
I have a scenario where I am using Solspace's Facebook Connect to allow users to become a member and login to a website.

I would like to give the user the ability to create a password on their profile page so they can login the traditional way.

I have experimented with Freemember and User and both require a current password to update/create a new password.

In my research I saw a suggestion to use free member's reset password functionality which would work but is inconvenient to the user (submit email, check email, click link, create password) so am looking for something better.

My guess is because it is part of EE's native functionality to supply current password when updating a user's password (even for a super admin), that this might be an impossibility.

Can anyone help? Any suggestions?


texts:
I use the Rating module.
I need to get bayesian rating value for every entry but not simply average summ. Is it possible?

The part of my template (this is standard example for Rating module usage):

{exp:rating:rank collection="Book Reviews" orderby="bayesian:overall" limit="10" paginate="bottom" dynamic="off"}

{exp:rating:stats collection="Book Reviews" entry_id="{entry_id}" precision="1"}{stars_overall_avg} ({overall_avg}/5, based on {overall_count} review{if overall_count !="1"}s{/if}){/exp:rating:stats}
       {title}

{entry_id}

Author: {author}

Description: {if summary}{summary}{if:else}{body}{/if}

   {if rating_no_results}
No results.
{/if}
   {rating_paginate}

Page {current_page} of {total_pages} pages &nbsp; {pagination_links}

   {/rating_paginate}
{/exp:rating:rank}

Best regards,
Aleksey


texts: Pass segments to variables in exp channel entry

texts:
I have the following structure:

A link - a href="/year/1991"> 1991 /a

And inside the YEAR template is this:   {exp:channel:entries channel="channel" limit="10" search:year_event_field="=1991"}
{title}

If I go to /year, it shows me the entries.

If I go to /year/1991 it doesn't it is showing me a blank page.

Why ?


texts: Comment Variables not working after EE 2.8.1 upgrade

texts:
We are in the process of upgrading from EE 2.7.3 to 2.8.1 and during testing we have found several variables that are not working or parsing after the upgrade. Specifically, {gmt_comment_date] and {total_comments}. Total comments seems to always return '0' and {gmt_comment_date] doesn't parse, just returning a result like this:

{gmt_comment_date format='%D, %d %M %Y %H:%i:%s %O'}

To test things I created the following code block on my single entry page:

{exp:comment:entries sort="asc" orderby="date" paginate="bottom" channel="tmo_articles" paginate_base="tmo/article"}
    TOTAL COMMENTS: {total_comments} <br/>
    {gmt_comment_date format='%D, %d %M %Y %H:%i:%s %O'}
{/exp:comment:entries}

The results looked like this when I viewed them:

TOTAL COMMENTS: 0
{gmt_comment_date format='%D, %d %M %Y %H:%i:%s %O'}
TOTAL COMMENTS: 0
{gmt_comment_date format='%D, %d %M %Y %H:%i:%s %O'}
TOTAL COMMENTS: 0
{gmt_comment_date format='%D, %d %M %Y %H:%i:%s %O'}

Other variables do seem to work fine. {comment_date} works in the same code without issue. Also If I use {comment} the comments themselves are displayed without issue. I checked the documentation for the Comment module and it still shows all these variables as valid. Does anyone know why just these specific variable aren't parsing properly anymore?


texts:
I am using ExpressionEngine 2.5.2

I have a website that includes a featured blog post at the top, as well as a news section that all of my blog posts in chronological order. When a blog post is featured at the top of my homepage, I would like it to be excluded from the list of blog posts in the news section. In order for it to show up in the featured space, I have created a category with an ID of 440 titled Featured Post. For the News section, I am using a the ExpressionEngine channel:entries tag and am using category parameter with the "not" variable in order to exclude posts with the category of Featured Post. However the featured post is still showing up in the news section. Can someone see anything I am doing wrong here?:

 {exp:channel:entries  channel="news" orderby="date"  limit="9" category="not 440"}

{title}

  {/exp:channel:entries}


texts:
I want to create a template that will show a full size image and all the metadata.
So the url would be something like siteurl/photo/221 with the 221 being the asset_id.

I thought I would use the tag {asset_id} within my tag pair to build the url link but it just returns {asset_id} rather than the number.

I then thought I'd use something like:

{exp:assets:files asset_id="{segment_2"}
    <img src="{url}" title="{title}" alt="{description}" />
{/exp:assets:files}

in the photo template, but it doesn't work.

So is it a bug that {asset_id} doesn't work, and is my code example the right way to get the data for a single image?


texts: Does Throttling affect "good" bots negatively?

texts:
Throttling limits, "the number of page requests by a single IP address within a given time interval." In the ebook Securing ExpressionEngine 2, Mark Huot writes that, "[Throttling is] one of the first settings you should enable when securing an EE2 install."

The EllisLab user guide doesn't give too much information about it: http://ellislab.com/expressionengine/user-guide/optimization/throttling.html

Throttling helps block malicious bots, but does it affect "good" bots like Googlebot, Yahoo Slurp, and MSNbot? If so, is there a way to allow these latter kinds of bots -- maybe with a hidden configuration variable or with some .htaccess code?

[NOTE: I saw this: Exempt GoogleBot from throttling (1.x) Is it true website owners have to seek out bot sites like this one manually, or can this be accomplished with .htaccess?]

[UPDATE: So far it seems like the best option is adding this to .htaccess:

User-agent: *

Crawl-delay: 5

And customized the setting in Google Webmaster Tools: https://support.google.com/webmasters/answer/48620?hl=en ]


texts:
I have several pages with pagination in my site. The paginate tags are showing and clicking on the pagination links yields proper results

http:://test.com/foo/
http:://test.com/foo/P4

http:://test.com/bar/
http:://test.com/bar/P10

However, there is a page which has 3 segments where the pagination doesn't seem to work is intended

http://test.com/qux/lux/mux/
http://test.com/qux/lux/mux/P8

The pagination links are still generated properly. However, clicking on the pagination links always shows the first page.

Is there something wrong I am doing?


texts:
So i'm trying to output the content of a template in xml and saw that the documentation mentioned an output class with functions like set_content_type (https://docs.expressionengine.com/latest/development/legacy/libraries/output.html). When I try to call this function using:

  ee()->output->set_content_type('xml');

the page loads with an error:

  "Call to undefined method EE_Output::set_content_type()"

Other functions of the output class such as "parse_exec_vars" work fine. Am I forgetting something that allows this function to be used? Also I am currently using expressionengine4


texts: I would like to search the specific keyword in all fields of all channels in Expression Engine. As there is only one excerpt option for each channel, I couldn't apply it to all fields in channel. Any option available to make all channel fields marked as excerpt to search entire site?


texts:
We set up a grid field to capture a registration url and text for a registration button label.

{calendar:event_register:url}
{calendar:event_register:link_text}

We've tried several ways of trying to set the loop for the grid field without success. How do we display grid field data within a {calendar:events} loop?

Thanks.


texts: Setting screen name dynamically in channel forms

texts:
Is there a way to set the "screen name" dynamically for a member via {exp:channel:forms}?

I only see dynamic_title parameter. Is there a way to do this for screen name?


texts: CKEditor Plugin Shows In Wygwam Configurator But Is Hidden From Publish Page

texts:
Using Wygwam 3.3.2 and ExpressionEngine 2.9.0

I'm trying to get the Enhanced Image plugin (http://ckeditor.com/addon/image2) for ckeditor added to our Wygwam installation.

I have followed the instructions for adding ckeditor plugins to Wygwam to a tee: http://docs.pixelandtonic.com/wygwam/developers/ckeditor_plugins.html. I have also made sure I've installed all of the proper dependencies for this particular plugin. For all plugins, I installed the latest versions that are compatible with ckeditor 4.3, which is what is still packaged with Wygwam.

In the Wygwam configurator I can see the plugin just fine and I can add it to my configuration. However, on the Publish page I am getting this error:

Uncaught TypeError: undefined is not a function plugin.js?t=E49C:3200
(anonymous function) plugin.js?t=E49C:3200
(anonymous function) plugin.js?t=E49C:3359
(anonymous function) plugin.js?t=E49C:3368

I can see the following code being output to the page correctly:

<script type="text/javascript">CKEDITOR.plugins.addExternal("clipboard", "http://gsp.kixo.co/themes/third_party/ckeditor_clipboard/");</script>
<script type="text/javascript">CKEDITOR.plugins.addExternal("dialogui", "http://gsp.kixo.co/themes/third_party/ckeditor_dialogui/");</script>
<script type="text/javascript">CKEDITOR.plugins.addExternal("dialog", "http://gsp.kixo.co/themes/third_party/ckeditor_dialog/");</script>
<script type="text/javascript">CKEDITOR.plugins.addExternal("image2", "http://gsp.kixo.co/themes/third_party/ckeditor_enhanced_image/");</script>
<script type="text/javascript">CKEDITOR.plugins.addExternal("lineutils", "http://gsp.kixo.co/themes/third_party/ckeditor_lineutils/");</script>
<script type="text/javascript">CKEDITOR.plugins.addExternal("widget", "http://gsp.kixo.co/themes/third_party/ckeditor_widget/");</script>
<script type="text/javascript">
    Wygwam.configs["3"] = {
        "skin": "wygwam3",
        "toolbarCanCollapse": false,
        "dialog_backgroundCoverOpacity": 0,
        "entities_processNumerical": true,
        "forcePasteAsPlainText": true,
        "toolbar": [["Bold","Italic","Underline"],["NumberedList","BulletedList"],["Subscript","Superscript"],["Link","Unlink"],["Image2"],["HorizontalRule"],["Styles"],["Source"],["Maximize"]],
        "height": "200",
        "resize_enabled": true,
        "contentsCss": ["\/assets\/css\/ckeditor.css"],
        "language": "en",
        "autoGrow_minHeight": "200",
        "extraPlugins": "wygwam,readmore,stylesheetparser,clipboard,dialogui,dialog,image2,lineutils,widget",
        "filebrowserBrowseFunc": function(params) { Wygwam.loadAssetsSheet(params, "ee:9", "any"); },
        "filebrowserImageBrowseFunc": function(params) { Wygwam.loadAssetsSheet(params, "ee:9", "image"); },
        "filebrowserFlashBrowseFunc": function(params) { Wygwam.loadAssetsSheet(params, "ee:9", "flash"); },
        "link_types": {"Site Page":[{"label":"Albums",          "url":"http:\/\/gsp.kixo.co\/albums"},{"label":"Engagement",            "url":"http:\/\/gsp.kixo.co\/portfolio\/engagement"},{"label":"Home",           "url":"http:\/\/gsp.kixo.co\/"},{"label":"Photo",           "url":"http:\/\/gsp.kixo.co\/photo"},{"label":"Portfolio",          "url":"http:\/\/gsp.kixo.co\/portfolio"},{"label":"Video",          "url":"http:\/\/gsp.kixo.co\/portfolio\/video"},{"label":"Wedding",             "url":"http:\/\/gsp.kixo.co\/portfolio\/wedding"}]}
    };
</script>

You can see that image2 (the Enhanced Plugin that we're trying to get working) is being loaded and is present in the extraPlugins configuration array and is also present in the toolbar configuration array. I'm really not sure what could be going wrong.

Why does my plugin show up in the Wygwam configurator but not on the Publish page?


texts:
Whenever a user hits the back button in Google Chrome, if the previous page was password protected - it asks the user to login again even though they already are. Refreshing the page does display the protected content, but this is not a great experience.

Anyone else experiencing anything similar with the last couple Chrome releases?


texts: All upload destinations not visible in assets when opened from wygwam

texts:
I have several different upload destinations in my site, primarily one for images only, named "Images", and one for all kinds of files, named "Documents". I've chosen Assets to be the filemanager to use in Wygwam. Problem is, when I insert a new link in a wygwam field, and choose "Browse server", the only visible upload destination in the Assets popup is "Images".

There doesn't seem to be anywhere to select which upload destinations should be visible, and I'm pretty sure this has worked on other sites in the past. Anyone know what's going on?

I'm using EE 2.7.3, Wygwam 3.2.2 and Assets 2.2.2.


texts: ExpressionEngine File Caching being cleared before scheduling

texts:
We are experiencing some performance issues with our website and on investigation it appears that the our caching mechanism doesn't seem to be working.

For example, Template A loads Template B as an embed (embed=""). Template B is not directly accessible via the website, ie its just meant to be an embed file not a full web page.

Template B has been set to Enable Cache with a Refresh Interval of 525600 (1 year). When I clear the cache and load Template B via the browser it takes 60+ seconds to load (which is why I have it cached). On a new page load it's down to 0.1 seconds. Perfect.

However I come back the next day and the page is loading at 60+ seconds again. This would suggest that the cache is being cleared for some reason even though it's not set to expire for 1 year and no one has been in to the control panel to edit any content, which would bust the cache.

Has anyone experienced this issue, or can suggest any solutions.

Thanks.


texts: Shipping Rates in {shipping_method} Dropdown - Expresso Store

texts:
Is it possible to show the shipping rate next to the shipping option in the {shipping_method} dropdown? I'm using the Store USPS Shipping Extension to calculate shipping costs.

I would like to show something like this in the dropdown:

First-Class Mail Parcel ($3.04)
Priority Mail 2-Day ($7.15)
Priority Mail Express 1-Day ($31.20)

Thank you!


texts: I'm getting a blank page from edits, but no one else is

texts:
I'm using an ancient form of Expression Engine on my site Comics Reporter.

Recently when I've gone to the control page and signed in

And then hit edit, I get this:

I get this from four browsers: chrome, firefox, explorer (mac), safari; I get it after I clear cache although for a while that would bring the edit list back. It's been happening intermittently for about a month. But now there's no getting back to the edits page (by switching browsers or clearing cache).

I get this on my phone (wi-fi and 4G) and I get this on my laptop using this wi-fi.

Nobody else signing on remotely gets this. Ever.

My server people have checked if my IP is blocked and don't think it's on their end.

Any clue what might be getting in the way? Help? Thanks in advance if anyone can; last time I had a problem people just laughed at the fact I was using this old version and told me to go away!


texts:
Working with the default templates in Expresso-Store and am getting the following error when trying to add to cart; please note that the default tax rate has been set.

Error Number: 1364

Field 'tax_override' doesn't have a default value

insert into exp_store_orders (order_hash, billing_same_as_shipping, billing_country, billing_state, shipping_country, shipping_state, shipping_method, weight_units, dimension_units, site_id, order_date, ip_address, ip_country, return_url, cancel_url) values ('dd3c64ebe03881dd2dbc8d33185332c2', 1, 'US', 'NE', 'US', 'NE', '', 'lb', 'in', '1', 1467737126, '70.184.219.242', NULL, 'http://www.heartlandclassics.info/store_example/product/related-product-test', 'http://www.heartlandclassics.info/store_example/product/related-product-test')

Filename: third_party/store/vendor/expressodev/laravel-codeigniter-db/src/CodeIgniterConnection.php

Line Number: 145


texts: When using {exp:channel:categories} to list categories, is it possible to sort the list by the number of entries each category has associated with it?


texts: Default HTML Buttons not visible with IE8

texts:
I have a client who informs me that the Default HTML Buttons are not appearing with the field. I am using a mac with Safari and Firefox and they display no problem.
Anyone else encountered this problem?