texts: How can i use json data in a template that i want to convert using angular2react package. I want to make it dynamic but template is static

texts:
I want to take json data and put it in my template. Actually i am using angular2react package to use angularjs code in my reactjs project

This is my component:
const component= {
    template :<input type=\"number\" ng-model=\"size\" name=\"size\" min=\"0\" max=\"10\" integer />{{size}}<br />

}

export default component;

This is the json data:

"modelView": {
      "components": [
         {
            "resource": "virtualDomains.StudentCourseList",
            "name": "Testingpageresource",
            "type": "resource",
            "staticData": []
         },
         {
            "components": [
               {
                  "allowDelete": false,
                  "components": [
                     {
                        "readonly": false,
                        "name": "Testingpageblock_grid_text",
                        "model": "SCBCRSE_CRSE_NUMB",
                        "label": "Testingpageblock_grid_text",
                        "loadInitially": true,
                        "type": "text",
                        "parameters": {},
                        "validation": {},
                        "required": false
                     },
                     {
                        "readonly": false,
                        "name": "Testingpageblock_grid_child_2",
                        "model": "SCBCRSE_EFF_TERM",
                        "label": "Testingpageblock_grid_child_2",
                        "loadInitially": true,
                        "type": "text",
                        "parameters": {},
                        "validation": {},
                        "required": false
                     }
                  ],
                  "onSave": "alert(\"Something\");",
                  "onError": "{{size}}",
                  "allowNew": true,
                  "pageSize": 5,
                  "loadInitially": true,
                  "type": "grid",
                  "name": "Testingpageblock_grid",
                  "allowModify": true,
                  "model": "Testingpageresource",
                  "allowReload": true,
                  "parameters": {}
               }

I need the onError data and need to put it in the template to be able to use for angular2react


texts: URLs in MSM subsites are still using index.php in them

texts:
Is there any chance anyone has ever come across urls in subsites in MSM sites using index.php in them

I am using a .htaccess file in each subfolder for that site which tries to get rid of the index.php so when you try to access the raw url in the site it says 404 not found error. When you type index.php before the url to the page, it loads it pretty well and works fine but from the navigation elements with structure when you click the page nav it just goes to the url without the index.php and says 404 page error.

What I would like is to have no index.php in the url and it to go to the right page instead of saying 404 page error.

Does anyone have an idea?

Cheers,
Mark


texts: How to re-assign channels to different field groups?

texts: I have channels sharing the same field group and am thinking about re-assigning them to different groups because they will develop in different directions (= different fields needed). Is this possible and what would be the best approach? Thanks a lot for suggestions!


texts: Notifications not being sent on status change in order manager

texts: I am trying to trigger an email notification  when changing the status of an order from within Order Manager. The trigger works when editing the order from Cartthrob but not Order Manager. I tried both "Oder status has been changed" and "Cartthrob_order_manager: Order_updated" as triggers. Anyone know if this is a bug in Order Manager or am I forgetting something?


texts: Does EE do anything fancy with 'smart' quotation marks and apostrophes? It seems to be doing so automatically and is breaking my site

texts:
When I add a Channel Entry with a title such as John's Test Entry, when EE outputs it to the template, it is outputting it as John’s Test Entry.

Notice the difference in the apostrophe? I've tried editing the entry - even in the database - to use a 'regular' apostrophe, but it always outputs like this.

I would like to disable this functionality in EE, as it is causing some internal PHP issues with some templates we are using. Is this possible?

Thanks!


texts: Batch Channel Updating - Multiple Fields

texts:
Hi Im looking for advice in either code format or any addons/modules etc available for EE2.

I have a channel that is set out as follows

Title
Description
Price 1
Price 2
Price 3
Price 4
Category:  (A,B,C,D)
Actual Price:

I want to be able to batch adjust the price of Price 1,2,3,4 depending on changes with the supplier of the equipment either across the board or dependent on 1 category.

I know I can do it with normally with PHP, but is there a better way built in to EE or a hybrid php/ee option?


texts: How can I re-initiate store_product_price_inc_tax when new products are bought in via AJAX

texts:
I'm trying to display the prices of my products inclusive of GST and have them update automatically when a modifier is changed. I've put the class .store_product_price_inc_tax on a span that holds the price of the product, and it works just fine when products are first loaded into the page. But once more products are bought in using AJAX I'm getting the GST exclusive price.

What JS/Jquery code do I need to add to fire off a call to store.js to set .store_product_price_inc_tax to the correct value when items are loaded in via AJAX?

UPDATED: with code example.

$( document ).ready( function(){
K.init();

$('#more-cards a').live('click', function(eve){
    eve.preventDefault();
    $(this).parent().addClass( "loading" );
    $(this).children().replaceWith("Fetching more goodness…");
    $.ajax({
        url: "/store/fetch",
        type: "GET",
        dataType: "html",
        cache: false,
        success: function(data) {
            displayMore(data);
        }
    });
});
});

K,init(); duplicates a single product multiple times by cloning the product form . Each clone has modifiers and a price associated to it.


texts: Solspace Rating - {if rating_comment_no_results} is never true!

texts:
I'm using Rating 3.2.3 and EE 2.7.2.

In my template, the tag {if rating_comment_no_results} never returns true and never displays its content, even when there are no comments for that rating.

Template code (this is on a single entry page inside channel:entries):

{embed="vendor/.ratings" entry-id="{entry_id}" vendor-type="{categories show_group="10" limit="1"}{category_url_title}{/categories}"}

And that embed looks like this (some pieces removed for brevity):

{exp:rating:entries precision="2" orderby="rating_date" sort="desc" img_height="14" img_width="14" collection="directory" entry_id="{embed:entry-id}" limit="200"}

{exp:rating:comments
     rating_id="{rating_id}"
     limit="1"
     status="open|closed"
}

Reply from {title}

{rating_comment_date format="%F %d, %Y"}

{rating_comment}

Read more…

{if rating_comment_no_results}
{if logged_in_member_id == author_id}
{embed="vendor/.rating-reply" rating-id="{rating_id}"}
{/if}
{/if}
{/exp:rating:comments}

{/exp:rating:entries}

And then inside that next embed we have:

{exp:rating:comment_form
    form:class="review-reply"
    rating_id="{embed:rating-id}"
    return="vendor/rating-reply-thanks/{segment_2}"
    status="closed"
    require_membership="yes"
    anonymous="no"
}
    Reply to this review This option is available only to the listing owner
    <textarea class="autosize" placeholder="Write your reply…" name="comment" /></textarea>
    Submit Reply
{/exp:rating:comment_form}

With the {if rating_comment_no_results} conditional in place, the second embed never shows, even when the conditional is true. If I remove that conditional it shows as expected so there's no problem with the embeds or other code. The conditional simply doesn't work.

Any ideas Solspace?


texts: Persisting Playa relationship in Matrix row

texts:
I have a matrix field that has a single-select Playa field in one of its two columns. (The other column is just text).

In one particular situation, the value of the Playa field was changed, but the old relationship still remained in the exp_playa_relationships table along with the new one. Because of this, the exp:playa:parents tag returned both the old and the new associated entry. Note that this change was made simply by selecting a new value in the Playa dropdown and saving; not removing the row, saving, creating a new row with the new relationship and saving again.

Here's my EE setup:

EE 2.5.3
Playa 4.3.3
Matrix 2.5.3
Better Workflow 1.5.1
PHP 5.3.10

I understand from this support post that something similar has been an issue in the past, but it should be fixed in the version that I have. At the moment, my only suspicion is that since I have Better Workflow installed, this could be messing with the functionality somehow.

Any suggestions or experiences with this issue?

Thanks!


texts: Using FocusLab MasterConfig Upload Preferences

texts:
I'm using FocusLab MasterConfig to set my upload preferences but strangely only the name of the Upload preference gets set by my code.  Here is the code in config.master.php

$resources_folder = 'resources';
$resources_path = $base_path . DIRECTORY_SEPARATOR . $resources_folder;
$resources_url  = $base_url . '/' . $resources_folder;

$env_config['upload_preferences'] = array(
    7 => array(
        'name'        => 'Landing Page Banners',
        'server_path' => $resources_path . '/images/banners/landing/',
        'url'         => $images_url  . '/images/banners/landing/'
    ),
    8 => array(
        'name'        => 'Home Page Banners',
        'server_path' => $resources_path . '/images/banners/home/',
        'url'         => $images_url  . '/images/banners/home/'
    ));

Anyone know why the server_path and url (which are the important values) have no effect on the values shown in the CP?


texts: For a while, I seen a white line appear in the footer of my admin (see the screenshot). Can anyone tell me the best way to debug it?


texts: Edit a Channel Form with super admin as author

texts:
After upgrading to EE 2.7.1 ...

I can't edit any channel entries that have the Super Admin as the author, and get this error "The selected author is invalid." (am logged in as a non-super member).

Only happens when using the Channel Form (used to be Safecracker), it's OK in the CP.

All my settings are correct e.g. "Can edit entries authored by others".


texts: CathThrob - Add to Cart Form - No Shipping and Tax

texts:
I am running CartThrob 2.2.5. I am trying to exempt a product type from shipping and tax. I found the setting in their documentation but it isn't working (http://cartthrob.com/docs/tags_detail/add_to_cart_form/index.html)

Here is the opening tag. Any ideas why it isn't working?

EDIT: Updated to include Stash tags.

{exp:stash:get_list
    name="event_list"
    match='#{freebie_last}#'
    against='this_categories_url'
    limit='1'
}
    {exp:cartthrob:add_to_cart_form
        class='form-horizontal'
        entry_id="{this_entry_id}"
        tax_exempt="yes"
        shipping_exempt="yes"
        return="wines/wine-cart"
    }
        ....
    {/exp:cartthrob:add_to_cart_form}
{/exp:stash:get_list}


texts: Using Store + Zoo Visitor to create a member and store order details in related entry

texts:
We have one checkout at the moment that requires a customer to sign up at the checkout (this creates a member record with ZV) and once signed up/in they can purchase their course which will then create an entry in our 'Students' channel. Simple.

What we need now is for someone to be able to handle 'manual' registrations and therefore need to be able to sign up and purchase in the same step on behalf of the student.

I am able to register a member with Store, however, because the member wasn't created prior to the order the entry is not created in our 'Students' channel.
Has anyone had any experience with this? or any ideas that would help point us in the right direction.

Many thanks in advance!


texts:
I'm using Solspace Super Search, but wondering if it's possible to change the format for date-searching strings?

It's my understanding that you need to supply date ranges as the following <input name="event_start_date-from" value="20141113">, and filtering this way works just fine.

However, as I'm using a datepicker for the user, this isn't a very friendly way to display dates. Instead, it'd be preferable to show as something like the below.

Is this even possible, or maybe I've been going about it the wrong way?


texts: Are the blocks in the Bloqs Add-On repeatable?

texts:
I am asking a very basic question which I could not with 100 % certainty answer by browsing both the old and new owner's web site and documentation of Bloqs (EE3)/Blocks (EE2) or by searching on EE Aswers. Any example I could find was a demonstration how to use the Bloqs once. I'm considering a purchase and contacting the current owner was without any response so far.

Can I use the predefined Blocks more than once per entry?

as in the following example ordering:

caption

quote

text-field

photoslide

text-field

photo-slide

text-field

Optional question: how would that look like in template code?
Would it be enough to define the Bocks layout in template once and it would figure the order of repeated blocks itself or do have to hardcode an order myself?

I know I can probably make a grid and use Bloqs as field type and get it to do what I want, but it could be much simpler if the bloqs would be repeatable.

Thanks to anybody who can point me into the right direction (favorably somebody who uses Bloqs in an EE3 instance).


texts: Creating Confirm Email Field that Matches Email Field

texts: Is there a way to create a matching email address field? I want to create a "confirm email" field to ensure the user is correctly inputting his/her email. I'm using the form composer as well, so I'm hoping there's an easy way to set this up versus having to manually create a form template and manually create each form field. Thanks!


texts: Is there any good solution for Facebook login with EE4 / EE5 in 2018? [YES !]

texts:
It's all in the title. Threads about logging users in EE with a facebook account seem to date from the last decade or so.

Is there any good solution for Facebook login with EE4 / EE5 in 2018 ?

[ YES! ] 2019 UPDATE

We used Social Sign In from reinos.nl and it's worth every penny. Bonus points for the developer who implemented several feature requests very quickly (MSM support and multiple return URLs).


texts:
How do people go about deleting entries via SafeCracker? I've got an extranet where I'd like to allow staff admins to delete entries, but I'm not sure how to go about this.

I've searched around and one suggestion is to set the entry status to 'closed' in order to fake the deletion, whilst another is to check out this third party add-on: Delete Entries and Comments.

Just wondering if there's any other ideas or suggestions for this? I'm not sure if the above add-on will do the job for me (as it says it only allows users to delete their own entries, not allow 'admin' users to delete other user's entries), and setting the status to 'closed' seems like a last resort type of workaround. Thanks.


texts: Default Expresso Store to most expensive modifier when using add to cart in search results

texts:
I have a shop using Expresso Store where we have add to cart buttons in the site search results but as some products have modifiers we are seeing an error as follows when trying to use these:

I would like these add to cart buttons on results pages to default to the highest value modifier. Is that possible?

To clarify, I do not want to show the modifier options on the results pages, these will appear only on the actual product detail pages.


texts:
How do I achieve this? I need to have the domain/category/entry

eg. clothes.store/t-shirts/red-t-shirt

I'm using EE2.11.1, and Carthrob, But I don't know how to achieve that url.

I only know how to get clothes.store/products/t-shirts/red-t-shirt


texts: Removing index.php AND the subdirectory folder name

texts:
I'm developing a site at the moment and noticed when I uploaded it to my staging server, all my links show correctly in the address bar, but show the index template.

My folder structure is as follows

/
  /pub
    index.php
    .htaccess
  /system
  /templates
  .htaccess

My site runs inside /pub - Because I'm not able to specify with my host what the root directory of a site should be, they've advised that I use htaccess instead.

That .htaccess file sits in / and looks like this:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^stage.domain.co$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.stage.domain.co$
RewriteCond %{REQUEST_URI} !pub/
RewriteRule (.*) /pub/$1 [L]

I also have a .htaccess file in /pub/ which looks like this:

# Enable Rewrite Engine
# ------------------------------
RewriteEngine On
RewriteBase /

# Redirect index.php Requests
# ------------------------------
RewriteCond %{THE_REQUEST} ^[^/]*/index\.php [NC]
RewriteCond %{THE_REQUEST} ^GET
RewriteRule ^index\.php(.+) $1 [R=301,L]

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

I want to remove index.php, AND the pub directory so my site will serve up URLs such as stage.domain.com/exercises instead of stage.domain.com/pub/index.php/exercises

So two questions..
Should I be using two htaccess files like I am at the moment, one to redirect from /pub/, and one to remove index.php, or should they be in one file, and where should it be?

What needs to be in those files to make it work?! I've tried what EE suggested by removing the slash before index.php on the last line, and adding a question mark.


texts: How can i order by a custom field in a channel entries tag?

texts:
I need to pull out all the entries in a channel that are of a certain type of category. But, i also want to be able to then sort the entries by the value of a custom field in that channel.

So right now, i have something like:

{exp:channel:entries channel="my_channel" limit="9" category="{segment_3_category_id}"}
     <li>{title}</li>
{/exp:channel:entries}

And in that channel, i have a custom field of "price". I want to amend that channel tag to order by my custom field called "price".

How can i achieve this?


texts:
I am upgrading a 1.7 site that used Mark Huot's MultiText field extensively.  I'm trying to identify a similar solution for 2.6.1.  (The multitext fields were used to provide captions for images in the 1.7 version of the site.)

It appears that the Matrix plug in is the best option.  However, the data format of these two plugins is different.  I have a lot of data formatted as MultiText.  Is there any way to convert the data to Matrix data format?


texts:
Have been looking through the previous solutions in here but still not able to make this work. I am able to display the normal data ok however not the Playa data, it is blank. Any help would be great if possible.

{exp:channel:entries channel="statistics" dynamic="off" limit="1" url_title="{segment_3}"}
    {title} {!-- Page title --}

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

        {stats_driver_points_table}

            {stats_driver} {!-- Matrix field name with playa inside --}
                {title}  {!-- Playa title, display blank --}
            {/stats_driver}
            {stats_r1_q}  {!-- Displays ok --}
            {stats_r1_q}  {!-- Displays ok --}
            {stats_season_total}  {!-- Displays ok --}

        {/stats_driver_points_table}

    {/exp:channel:entries}

{/exp:channel:entries}


texts: Stash MVVM - A guide to what goes where?

texts:
Reading through the Stash Wiki and various Stack Exchange threads I found it difficult to try to fully wrap my head around the MVVM template model advocated by Mark Croxton.

This thread aims to provide a community Wiki with a concise and definitive explanation of what goes where and how they interact.

I'm very new to this model - so I'd appreciate any edits to correct mistakes. I'm not convinced my understanding of the partials part of the equation is right yet.


texts:
I am needing to obtain a count for every video being parsed through Channel Videos via relationship entries. I want to continue using a grid with my layout so the content can scale like the rest of the site.

I have a channel of entries which is nothing more than a DevDemon Channel Entries field which contains groups of videos. Each of these groups can be added to other channel entries as modules. So you may have a Lesson Module with 5 groups of videos and each video group could have 1-?? videos in it.

I was using an embed for the relationship loop, but I was loosing count each time and starting over at 0/1, so I started trying to calculate the numbers via raw PHP. I am completely open as a better way of doing this because I am banging my head against the desk.  lol

Here was my latest attempt:

    <?php $count = 0; ?>
    {exp:channel:entries
        disable="category_fields|member_data|pagination"
        category="1"
        channel="program_module"
        status="open"
        show_future_entries="no"
        show_expired="no"
    }
        {video_groups_to_include}
            {exp:channel_videos:videos
                status="open"
                entry_id="{video_groups_to_include:entry_id}"
            }
                <?php
                    $count++;
                    echo $count;
                    if( $count==1 || $count==5 || $count==9 || $count==13 || $count==17 || $count==21 || $count==25 || $count=29 || $count==33 || $count==37 || $count==41 || $count==45 || $count=49 || $count==53 || $count==57 || $count==61 || $count==65 || $count==69 ){
                        echo "

";
                    }else{
                        echo "
";
                    }
                ?>

                            {video:title}
                            {video:description}

                <?php
                    $count++;
                    if( $count==4 || $count==8 || $count==12 || $count==16 || $count==20 || $count==24 || $count==28 || $count=32 || $count==36 || $count==40 || $count==44 || $count==48 || $count=52 || $count==56 || $count==60 || $count==64 || $count==68 || $count==72 ){
                        echo "

";
                    }else{
                        echo "
";
                    }
                ?>

            {/exp:channel_videos:videos}
        {/video_groups_to_include}
    {/exp:channel:entries}

Hopefully it's clear what I am trying to achieve. Basically, I need a new row after ever 4th video parsed. (4 column layout)


texts: Member Photo only displays when inside channel tag pairs

texts:
I'm simply trying to display member photos, but cannot get my custom member group photos to display.

I am using the following code:

If I do this outside of a tag entry pair, I get the following code:

But if I put this inside of a channel entry I get the proper:

The problem is that when inside of the channel entry tag pair, it will show only the author of that entry's photo. How can I get this to show the logged in member's photo?


texts: Assets window brings up the front-end of the website

texts:
I've got a site running on a client's server and when we go to add a file, the Assets modal brings up the front-end of the website.

Not sure if this is due to us making index.html the default directory file prior to us making the site live.


texts:
I'm trying to figure out the best setup for a directory. I'm adding a bunch of stores that have multiple locations so I wanted to set up my entry to have one address field as "headquarters" followed by a matrix of all possible additional addresses.

With this format, Would I still be able to have the directory display all addresses in a list equally? As in if someone was to search for nearby locations, they would see 2-3 headquarters of businesses as well as any relevant secondary addresses?


texts:
I'm trying to sync my folders using the "Sync" feature in File Manager, but as soon as I press it, then on the next screen, hit Submit... I get the EE White Screen?!

Why would it do this?

It's only recently started doing it, but I've noticed it on a few sites I've deployed.

EE v2.4.0 - Build: date  20120123


texts:
This may be just me being a stickler for order, but sometimes I start a new project using an old database where I have to delete a bunch of data. Some of that data includes member info. Now, while deleting members, if I add a new one, the member ID assigned to that member is based on the previously added/deleted member. So if the last member was ID 200, the new member is ID 201.

However, if I delete it all down to the original 4 members, Member ID still follows the last one when I add the 5th member!

So it's like, Member ID 1, 2, 3, 4, then 201. Which looks super super odd.

IN SHORT:

If I delete members & add a new one, is it possible to have their member ID to be consecutive to current member IDs, not the deleted?


texts: Inline error handling in composer templating has invalid conditional

texts:
Versions: EE 2.9.0 & Freeform 4.2.0 Pro

Some help would be appreciated. :-)

I am trying to implement inline error handling in a Freeform Composer Template and it is throwing the error:

You have an invalid conditional in your template. Please review your conditionals for an unclosed string, invalid operators, a missing }, or a missing {/if}. Parser State: Unexpected ‘:’ (MISC); expected RD in on line 17.

The line of code that throws the error is this

{if freeform:error:{composer:field_name}}

Which is copied from your documentation

If I hard code in the field name like this:

{if freeform:error:first_name}

It works, I think. But I get an error for every field, even those not required.

Here is my complete Composer Template code

{composer:page}
{composer:rows}

            {composer:columns}

                    {if composer:field_total == 0}

                    {/if}
                {composer:fields}
                    {if composer:field_label}
                        {if composer:field_type == 'nonfield_captcha'}
                            {if freeform:captcha}

                                {composer:field_label}

                            {/if}
                        {if:else}

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

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

                                Error: {freeform:error:{composer:field_name}}

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

{composer:field_output}

                        {if:elseif composer:field_type == 'nonfield_captcha'}
                            {if freeform:captcha}
                                    {freeform:captcha}

                                    <input type="text" name="captcha" value=""
                                           size="20"   maxlength="20" style="width:140px;" />
                            {/if}
                        {if:else}
                            {composer:field_output}
                        {/if}
                    {/if}
                {/composer:fields}

            {/composer:columns}

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

Thank you.


texts:
Has the ability to use and parse {exp} tags within custom fields been absorbed into the EE system proper, or is the Allow EE Code plugin still needed to do this?

If it's still needed, might you be able to point to where it is? EL appears to have moved the download page.


texts: Configure WYGWAM to use fonts from Typekit?

texts:
I use custom CSS for WYGWAM fields.

I can use @font-face, but what if I want to use fonts via Typekit, is there a way to pull them in?


texts:
My client has asked to integrate 3D Secure with their Exp:resso Store installation.

I have been searching and found that in the change log this has been added for SagePay in the UK. This is who the client is using.

Changelog: https://exp-resso.com/docs/store/release_notes.html#store_150

I can't find anywhere in the docs how to implement this. Does anyone know how? Is it a setting on SagePay side? Or is it a parameter I need to add in the checkout form?

Cheers


texts: datagrab moving from one site to another

texts: I am trying to move the data from one site to another, I can import from datagrab but what is the best (quickest) way to get the data out of the site? CSV or feed - is there a way to auto generate these?


texts: Assign parent category to entries with child categories (EE1)

texts:
In our EE1 installation we have the preference "Auto-Assign Category Parents" set to "No".

Now I am faced with a situation where for once particular set of categories it would be very useful to have this as "Yes" but It still probably makes sense for it to be "No" system-wide tho so we are still leaving it off as I don't believe there's any way to have it work just for one set of categories.

My question is this...  Is there any way to "automatically" apply the parent category to all the entries that already have this particular subset of categories that I am interested in?

I see an EE2 answer here...

Automatically assign parent category to sub-category entries?

But I am in EE1.

I started to look at this in MySQL...

This query gives me all the entries that I would like have the parent category:

select distinct
    (t.entry_id)
from
    exp_weblog_titles t
        left join
    exp_category_posts cp ON t.entry_id = cp.entry_id
        left join
    exp_categories c ON c.cat_id = cp.cat_id
where
    t.weblog_id = 5 and c.parent_id = 4810
order by entry_id
limit 100000

But what if some of them already the parent category assigned?  I don't want to categorize them twice.  I think I need to use something like:

INSERT INTO exp_category_posts ...
WHERE NOT EXISTS
    (SELECT *
    from exp_category_posts
    where cat_id =  4810 and entry_id = ?this_entry_id?)

but the syntax is a little beyond me.

Since I framed this as primarily a mySQL question I've cross-posted it to SO casting the question a little bit differently.


texts: Solspace pad_short_weeks and error with simplistic date formatting

texts:
We're starting our cal entry loop like so:

{exp:calendar:cal
  date_range_start="{embed:month_start}-{embed:day_start}-{embed:year_start}"
  date_range_end="{embed:range_end}"
  pad_short_weeks="y"}

So for something like 02-05-2014 and +1 month what is returned consists of exactly what we need (with a padded start to whatever Sunday happens to be for the given week).

However, when we use pad_short_weeks="n" in order to start the day at a specified time that is not whatever the current day is, it only goes until the range end from whatever the actual day is, irrespective of what is specified.

For example:

today is the 5th, and if the loops starts as date_range_start="02-11-2014" date_range_end="+7 days" pad_short_weeks="n" ends not on the 18th as it should, but instead it ends on the 12th, which is 7 days away from today. If it were the 6th it would end on the 13th, and so on.
If we make the pad_short_weeks="y" it returns the correct range from the specified date (today, a later date, etc), however this has the undesired effect of starting on the beginning of the week instead of the specified date.
And finally, if the date specified is more than date_range_end away, then nothing shows up (if and only if pad_short_weeks="n").

Is this a bug or are we implementing it wrong?

Thanks.


texts: How to order by price products in Exp:resso Store

texts:
I would like to order my products by price, how cat i do this?

I use:

{exp:channel:entries channel="products" orderby="product:price_val"}

But it's not work...


texts: FreeForm Pro Composer State and Country field type how to show unselected?

texts:
I am using FreeForm Pro (4.2.0) with EE2 (2.9.0).

We are using the "Composer" method of creating forms to generate the select input Country and State field types.

I am seeing "Afghanistan" and "Alabama" being selected by default (by virtue of them being listed first in the alphabet).

Is there a way to add a blank leading option  something like:

 <option value="" selected>Please select...</option>

Having the first value in the list selected is not working well versus form validation.


texts:
I am trying to do the following - essentially redirect to the correct page if search query only returns a single result.

{if total_results == "1"}{redirect="{comment_url_title_auto_path}"}{/if}

This is working, however, it's also appending the domain to the URL, so the resulting redirect is

http://domain.com/http://domain.com/template/view/url-title/

Is this possible at all?

Regards,

Christiaan


texts: Simple channel entries call, limit by category, not working

texts:
Simple as can be, my code, but I am getting all the entries, not just those in category 42.

{exp:channel:entries channel="patient-services"
disable="member_data|pagination"
dynamic="no" sort="asc" orderby="title" category="42"}

    {title}

{/exp:channel:entries}

UPDATE I stripped it down to this, but it's showing that every entry is in category 42, even though the CP shows otherwise. Maybe I hit a bug?

{exp:channel:entries id="18" dynamic="no" category="42"}

{title}Category id
    is: {categories}{category_id}{/categories}

{/exp:channel:entries}


texts: How to filter a session based on category rather than product field?

texts:
My company website is setup as such:

Product Categories
    -Chairs
        -Armchairs
        -Dining Chairs
    -Tables
        -Dining Tables
        -Coffee Tables

I am trying to adjust how I filter the products on a page.
So far, I am only able to filter them based on the product fields, using the code below. (*Note - here I am filtering products by the manufacturer product field.)

{embed="linea/display-products" paginate_base="{segment_1}/page" search="search:manufacturer='Viccarbe'" limit="12" order-by="title"}

However, I need to be able to filter products based on the product categories rather.
I am using the Low Seg2Cat addon, and have tried using the code below, as suggested in an alternate post.

{embed="linea/display-products" paginate_base="{segment_1}/page" search="search:manufacturer='Viccarbe' search:{segment_3_category_name}='coffee-tables'" limit="10" order-by="title"}

This also did not work.
Any help is much appreciated!

Resources: How do I display a category name based on a segment?

*Edit - This is the embedded channel entries tag -  {exp:channel:entries channel="product" {embed:search} category="{segment_3_category_id}" limit="{embed:limit}" paginate="bottom" paginate_base="{embed:paginate_base}" orderby="{embed:order-by}|title" sort="asc|asc"}


texts:
Since I was planning to have "You have # items in the cart".
Is it possible to get the number of items in the cart?

I tried to do something like this:

{exp:store:cart}

You have {if no_items}0{if:else}{items}{/if} item(s) in the cart

{/exp:store:cart}


texts: .htaccess changes broke site 'NOT FOUND' or CSS/JS missing

texts:
I was working on a clients site and after trying to add redirects from www to non-www the site unfortunately broke.

I reverted back to the old .htaccess file and it is still not working.

I looked through many threads and tried removing slashes from index.php, and adding/removing rewrite base /, but still no luck.

My last lines of code in the htaccess file are

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

I tried changing the last rewrite rule to index.php/$1, index.php?/$1 and /index.php?/$1 from suggestions in other threads but still no luck.

I get a 'NOT FOUND' on the non-www version of the site now, and www. version of the site doesnt load any css,js, or image files.

Has anybdoy experienced anything similar or has any suggestions? Any help would be greatly appreciated


texts:
Is there a hook that could be used to check what status was before submission, and what status is submitted (changed to) whilst editing an entry?

I want to check to see if a status is changed to 'x2' from 'x1' for example.

Thanks


texts:
I just installed MX Title and defined both the Title and URL Title to generate these fields based upon two other channel fields {first_name} {last_name).

However I'm unable to save the entry. There is a red warning icon displayed next to the Publish tab on the Entry form, but no other information about why I can't save the entry.

If I edit a previously created Channel Entry and save the entry, MX Title auto re-generates the title as advertised. It just won't let me save a new entry.

What is going on?


texts: Problem setting Fieldframe path on EE 1.x site

texts:
I'm trying to recreate an EE 1.7 site locally under MAMP but whenever I enter the correct Fieldframe path, I get a blank page in the CP with:

Notice: unserialize() [function.unserialize]: Error at offset 85 of 99 bytes in /system/core/core.extensions.php on line 235
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /system/extensions/ext.fieldframe.php on line 301

Without the correct path the CP renders but I still get the notices above as well as these ones:

Warning: Cannot modify header information - headers already sent by (output started at /system/core/core.extensions.php:235) in /system/core/core.functions.php on line 752
Notice: unserialize() [function.unserialize]: Error at offset 85 of 99 bytes in /system/cp/cp.utilities.php on line 288

Obviously, I'd like to get Fieldframe working properly because I need to use Matrix. ;)


texts: How do you prevent being logged out of the control panel?

texts: One of my clients' irritations is being logged out of the control panel when he has left his session idle for a few hours. How can I prevent this?


texts:
I'm using the Table class to render a table in my module and I want the user to be able to sort by clicking on column headers. I'm following the docs here, but when I use set_columns and set_data I get an error from libraries/EE_Table.php stating that EE::$cp is not defined.

Is it not possible to do sortable tables in the front-end? From the error, I guess it is only possible in the control panel.


texts: Fatal error: Call to undefined method EE_Javascript

texts:
I upgraded my EE to 2.9.3 and I am running Expresso-Store 1.6.3. Now I am getting an javascript error.

Fatal error: Call to undefined method Cp::set_variable() in /home2/oldspani/public_html/osd/expressionengine/third_party/store/mcp.store.php on line 65


texts:
I have a number of questions regarding CT packages, posting here at the request of the CT twitter.

If package price is drawing from the total price from the products, is there a tag to output that total price on the template pre-cart?
Does CT Price By Member Group work with that 'additive price' feature?
Can price adjustments / discounts be applied using the additive price?
What happens if a product in a package has 0 inventory?  Can the package still be purchased?  Is there a tag that allows me to reflect this on the template?


texts:
I want to output all siblings of an item using the same order as displayed in structure, the following code works but I need to be able to do this dynamically as I can't hardcode the parent id for each page this is required on

{exp:structure:entries parent_id="52"} output here {/exp:structure:entries}

I then changed the code to this:

{exp:structure:entries parent_id="{structure:page:entry_id}"} output here {/exp:structure:entries}

and it works, but the output's order is reversed, no idea why this happens, is there anyway to make the order correct, as per the first example?

Thanks!


texts:
This issue has come up several times in the past with clients, and I can't seem to think up a clever way of doing it.  A few of my clients would like to upload images in the body copy of their text that will popup a jQuery modal window with a larger version of the image when clicked on, rather than a new tab/window default behavior.

This would probably be easy if they were limited to one image in the body, but I don't want to limit them with just one image... and plus I'm very curious if this can be done ;-)  If it matters, I'll be using Assets as well.

Thanks!


texts: EE Calendar Sorting Function by category

texts:
I'm trying to sort the Solspace calendar by category. The categories are set up and I have a dropdown in the monthly calendar. Each category will display a category # in the class file for example category7. I just can't get the dropdown to sort the categories once selected.

                    --Filter by Category--
                    {exp:channel:categories channel="calendar_categories"}
                        {category_name}
                    {/exp:channel:categories}


texts: Issues installing addons for local EE3 installation (Error: Unable to load the requested language file)

texts:
I've got a local installation of ExpressionEngine 3 and I'm trying to install an add-on to allow me to customise the control panel CSS.
I've tried the following add-ons but after installing and when trying to access the add-on in the control panel I'm presented with the following errors. It's done the same thing for both add-ons making me think it's not an issue with the add-ons:

https://devot-ee.com/add-ons/digi-nut-control-panel-css-js gave the following error: Error: Unable to load the requested language file:
language/english/dn_control_panel_css_js_lang.php
https://devot-ee.com/add-ons/cp-css gave the following error: Error: Unable to load the requested language file:
language/english/cpcss_lang.php

Any suggestions will be very welcome,
Thanks in advance,
Tom


texts: ACT ids are getting indexed by search engines. How can I prevent that?

texts:
I am using a module (AdMan) that generates an ACTION ID url before routing to a new page. I am finding that Google is indexing these ACT urls and even promoting them above the actual page they link to.

How can I block search engines from indexing ACT urls?


texts:
It seems the Date field of an asset is only modified when a file is initially uploaded, thereby representing an upload date or pseudo-created date (date it was created in Assets and not necessarily when the file was created).  Is this correct?

Replacing an existing file with a newly uploaded one does not appear to update the date.  Is that a bug or is that intentional?

Are there any other options for modifying the date other than editing it directly after an asset is replaced or writing a hook to do it automatically?

We're using ExpressionEngine 2.5.3 with Assets 2.2.1.


texts: Can you tell which version EE is just from the database?

texts:
I have a site that had all its files erased and there are no backups, but I still have the database.  Is it possible to determine which specific version of EE it is, just by looking at the database?

(And no, I was not responsible for backups.)


texts:
I am creating a form via module, that I wish to use for both insert and update. After the insert user has the option of going back to edit the values previously input. The issue that I encounter is with the update.

This function decides if insert or update

public function form()
{
    session_start();
    $tagdata     = $this->EE->TMPL->tagdata;

    if(isset($_SESSION['id'])){
        $variables   = array();
        $variables[] = $_SESSION['tags'];

        return self::buildForm('updateForm', $tagdata, $variables);

    }

    return self::buildForm('addDonation', $tagdata);
}

While this function handles the actual building of the form

public function buildForm($method, $tagdata, $variables = FALSE)
{
    $hidden_fields = array(
        'ACT' =>  $this->EE->functions->fetch_action_id('Meal', $method)
    );

    if($variables != FALSE){

        $conditionals = $this->EE->TMPL->simple_conditionals($tagdata, $variables);
        $conditionals = $this->EE->TMPL->parse_variables_row($conditionals, $variables);

        print_r($conditionals);

        $content = $this->EE->TMPL->parse_globals($this->EE->TMPL->final_template);

    }

    //Build an array with the form data
    $form_data = array(
        "id"            => $this->EE->TMPL->form_id,
        "class"         => $this->EE->TMPL->form_class,
        'hidden_fields' => $hidden_fields
    );

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

    return $form;
}

The output is currently {if FirstName != and {FirstName} within the conditional is not being parsed.

Any help greatly appreciated!


texts: Mamp Pro .htaccess issues for 'index.php' removal on local domain

texts:
Using MAMP Pro I have an offline/local EE site setup. An htaccess file is set up in the root of the local domain site with the standard remove index.php script implemented (as shown in the offical ExpressionEngine documentation).

I know the htaccess is being picked up because I can get a 500 server error page to execute if I put random code in in the file.

However if I put the official EE index.php removal code in the htaccess and go to local.sitename/sitepage I get the following error:

Not Found
The requested URL /sitepage was not found on this server.

Just to confirm I have the following in the .htaccess:

<IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /

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

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

In terms of MAMP set up:

I have Mamp Pro installed with Set ports Apache and MySQL to 80,443 and 3306.
A local custom domain set up via HOSTS panel ' ie. local.sitename '.
Under HOSTS > Extended TAB > 'Options All'. is selected to include all  options.
PHP Version set to Default: (5.5.26) for local domain.

In terms of EE Control Panel:

'index.php' is removed from: Admin > General Configuration > Name of your site's index page (field).

In terms of htaccess variations of I have tried:

Removing <IfModule mod_rewrite.c> tag pair.
Adding a local path for RewriteBase / (ie. RewriteBase /username/sites/sitename/ etc).
Removing the slash '/' from before index.php on line: RewriteRule ^(.*)$ /index.php/$1 [L]


texts:
We have an old client site running EE2 (2.9.2) with Zoo Visitor (1.3.34) and @monooso's Mailchimp Subscribe (1.2) to automate signing up to mailing lists on registration.

Not quite sure why but lately the Mailchimp extension has broken user registration and updating user accounts. I know it is an old plugin (and since deprecated) but has anybody experienced similar as this is thought to be pretty core functionality by the client and is no longer working.

Delving under the bonnet it seems to be a lot of errors to do with how the extension is handling a settings object but finding it hard to debug. Disabling the extension fixes the user registration and profile updates but obviously, we lose the automation of Mailchimp subscription.


texts: Assets 2 having problems indexing 12'000 files.

texts:
since a few days I am trying to index about 12'000 pictures. it always stops at about the two third...

What could I do to make this happen?
Is there a way that I could reverse indexing, like starting from the other end?

Also, the thumbnails generation process is very slow...

I've upped my php limit to 256MB, but that didn't change a lot.
I am running the backend from within the system folder, and not from system.php, could that be a problem?
It's indexing fine on other directories - it's really the amount of images that is causing a problem.
the error log states nothing

I am on EE 2.5.5 and Assets 2.1.3.


texts:
EE 5.2.2
hosted on Digital Ocean provisioned by Forge

When requesting a password reset the email is recieved but the url is missing the domain and is not clickable.

To reset your password, please go to the following page:

?S=0&D=cp&C=login&M=reset_password&resetcode=PtwbN4zP

Default base URL is set correctly https://domain.com/

Please advise


texts: Using P&T Assets with Multi Site Manager (MSM)

texts:
I have Assets set up for Site #1. I've added Site #2, and I would like it, and Site #3, etc., to share the same Assets folders.

I've read through the Assets documentation, but cannot find any reference to Multi Site Manager.

What's the best way to accomplish this?

I'm happy to add settings in config.php.


texts: I guess I should have read that properly but is there no way to enable Solspace Favorites to work with cookies only – not requiring membership??


texts: MY question is there core file in Expresso Store extension which is not update when we update Expresso Store extension .I want to call a hook after payment successful so i want if Expresso Store update my code not remove


texts: Assets missing subfolders and images on the front end?

texts:
for some reason my assets subfolders keep disappearing and then the images are removed from the front end.

They are still present on the server but assets no longer sees them.

Indexing doesn't cure the issue. Has anyone any advice?

Assets 2.1 and EE 2.5.5

Thanks
Guy


texts: Automating migration from Matrix to Grid and Playa to Relationships?

texts:
I've just upgraded to EE 2.7.0 and I am thinking about migrating my use of Matrix to Grid and my use of Playa to Relationships. The main reason is that since I run more than one site off my EE install, using Grid and Relations would allow me to implement such fields on all sites, instead of just one since I only have a single license each for Matrix and Playa.

Moving manually would be a bit time consuming, especially when it comes to my Matrix implementation, so I am wondering if anyone has any suggestions for how to automate the process? I do own Solspace's Importer module, but I am not sure if it would be useable in this scenario.


texts: Solspace Tag: undefined method Pagination_object::get_template() in mod.tag.php on line 2351

texts:
As far as I know I'm running current versions of EE core and all add ons...

EE 2.9.0
Solspace Tag 4.2.7
Structure 3.3.14.5
Campaigns 2.0.3
CE Cache 1.9.5

{exp:tag:related_entries} and {exp:tag:tags} are wrapped in {exp:ce_cache:escape}.

On some entries I get a white screen when Tags are assigned. I remove all Tags from the entry, save, refresh front-end page and it renders properly.

Add a Tag back to the entry, save, refresh front-end page and I see:

undefined method Pagination_object::get_template() in mod.tag.php on line 2351

Remove all Tags from the entry, save, refresh front-end page and it renders properly.

What's strange is that this is only happening on some entries.

The Solspace tags I'm using in this template are:

{exp:tag:related_entries
    channel="self_help_tips"
    entry_id="{structure:page:entry_id}"
    rank_method="total_entries"
    orderby="relevance"
    limit="20"
}

and

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

Please let me know if I'm doing something stupid here, but I can't figure out why only some entries are affected.

EDIT Aug 2

I've trimmed down the EE template to just the following tags:

Related Tips

            {exp:tag:related_entries
                channel="self_help_tips"
                entry_id="{structure:page:entry_id}"
                rank_method="total_entries"
                orderby="relevance"
                limit="20"
            }

{title}

            {/exp:tag:related_entries}

Tags

            {exp:tag:tags entry_id="{structure:page:entry_id}"}
                {if tag_count == '1'}
{/if}

                    {tag}

                {if tag_count == tag_total_results}
{/if}
            {/exp:tag:tags}

No pagination is being used in these tags.


texts:
I want to update a variable based on my module. I can pass the variable from the main template (say A) to the embedded one(say B). But how can I retrieve this variable back in Template A after updating the variable from B.

Or is there any other way to use a variable in a template and gets updated from a module and the updated variable to be used in the proceeding exp: calls to the module?

When I try to update the variable, I always get the first assigned value.I think the issue is with the parse order.

If anyone knows, please help how to handle this requirement.

Thanks


texts:
I have a channel entries tag that has to load (sometimes) more than 3000 entries and I'm running into memory issues.

I'm looking for a way to build the page by batches (with javascript?) and display some kind of animated icon while the wait.

Waiting is not a problem, as long as the page does not crash...


texts: Updating modules + Updater + Version control + Beanstalk

texts:
When updating modules locally we typically use DevDemon Updater to shorten the install process. Many modules run SQL queries when updating which is not version controlled.

My question is rather than ignoring the third_party folder in Git and installing the modules twice, what would be the cleanest & quickest way to do module updates and SQL queries with version control? Is there an action to trigger module SQL updates automatically?


texts: Solspace USER redirect on Allow New Member Registrations? NO

texts:
If I disable Allow New Member Registrations, and a user goes to the Registration page, the error page is not displayed, but instead is embedded within the registration page, occupying the location where the registration form once was displayed.

Seems the error re-routing isn't working when Allow New Member Registrations is disabled.

Error re-routing does work for all other functions with USER

How can I get the error page to display correctly when registrations are disabled?


texts:
Can I confirm that if a custom module does not have a control panel interface, conversion from EE2 > EE3 only requires the following changes:

Create a addon.setup.php file


texts:
I'm getting a large number of spam from one of my contact forms and not sure how I can reduce this using Freeform Pro.

I've tried using the default CAPTCHA but I can't get that to work. Is there a way I can not allow HTML in the textarea element in my form?

Does anyone have any good examples or tips to help me reduce it?

Thanks


texts: Can edit entries authored by others: Not Working

texts:
Recently updated to v2.6.1 and I have an issue now where users are not able to edit content authored by other authors.  In this case the user group in question has "Can edit entries authored by others" set to yes but whenever the user tried to edit it won't allow it. Any ideas?

Thanks!

Guy


texts:
I'm trying to add a CAPTCHA to a Freeform (free version) form.

The form is a callback request form that features in the header of the site, so is visible on every page and is not linked to a specific channel.

I've got the CAPTCHA to show up but the form can be submitted with the CAPTCHA text field left blank.

Anyone know a good way of using a CAPTCHA with Solspace's Freeform in this way?


texts: Since v5.7.5 MySQL returns errors for certain badly formed SQL statements. As such Playa v4.5.2 will throw errors.


texts: Vague error when updating from EE 1 to EE 2 "The update script failed without returning an error."

texts:
When I run the update I get this error that fails as soon as it gets to 2.0.0. The script stops when it gets to updating the exp_comments table. I tried setting $conf['allow_extensions'] = "n"; before running the update but that didn't do anything.

I successfully updated from EE 1.6 to 1.7.3 first, now the version that I am updating from is EE 1.7.3


texts: Manipulate custom order data with CT hook during checkout

texts:
I'm using CT. When a customer checks out they are required to select a location for where they want to pickup their order. I would like to save both the location's ID and the location's pickup date to custom fields that I'v set on the orders channel. Currently, when a customer selects a location from the select menu the location ID is submitted along with the form. I've written an extension that looks for the cartthrob_on_authorize hook. It allows me to get the location ID from the custom field and run a query to get the location date. My question is, how do I save the location date to the order through my extension? I've tired various combinations like this:

"ee()->cartthrob->cart->order->set_custom_data('order_pickup_date', $pickup_date)"

but nothing like that seems to work. Any help is much appreciated. Thanks!


texts: Template group parsing index file even when not called

texts:
I'm experiencing some strange behavior with one of my template groups.

There are two templates in the group, index and award. When loading the award template I am seeing content from the index file also displayed. The index file has PHP output switched on but this template shouldn't be getting parsed at all right?

In addition the award template first checks to see if a user is logged_out and displays a login form. However this condition is never being met, it's always seeing the user as logged_in even when not.

Any ideas what could be going on?


texts:
Does anybody know of a way to output a list of yearly archives using a custom date field? Low Yearly Archives is exactly the functionality I need, but referencing a custom date field, not the entry_date field.

Thanks!
- B


texts:
I am getting a PHP Error, when I go to publish > Channel(name). I have this assigned to what I call the 'master' field group (master) it has 15 fields. I set up a test field group and assigned it to the channel and NO ERROR message. Can I fix this without rebuilding the master field group? I can not find out if there is a limited to the Number of field group I can have.

Here are the 3 PHP Error I get:

A PHP Error was encountered

Severity: Notice
Message: Undefined offset: 0
Filename: models/grid_model.php
Line Number: 496

A PHP Error was encountered

Severity: Warning
 Message: Cannot modify header information - headers already sent by (output    started at /home/jbreen/dev-sbco/sbco/codeigniter/system/core/Exceptions.php:170)
 Filename: core/Common.php
 Line Number: 475

A Database Error Occurred

Error Number: 1054
Unknown column 'col_id_' in 'order clause'
SELECT * FROM (`exp_channel_grid_field_15`) WHERE `entry_id` IN (0) ORDER BY `col_id_` asc
Filename: models/grid_model.php
Line Number: 413


texts:
Having some issues here, not sure if it's even possible.

Template one lists one entry. I want to set a variable and make its name the entry_id of that entry, to be used to validate on the next template based on the same entry.

Template two, I want to match a url segment to the variable. But i need to get the variable name from that same entry, so need to use the {entry_id} in the stash get tag.

I am getting funny results, where it only works if the {entry_id} tag apears anywhere inside the channel:entries loop. If i remove that single tag then the conidional always fails.

I am using EEv2.9.2 and Stash 2.5.8

My code:

Template One:

{exp:channel:entries channel="whitepapers" url_title="{segment_3}" limit="1" disable="categories|member_data|pagination" parse="inward"}

{exp:stash:set_value name="{entry_id}" value="{current_time format="%d%Y%g%i%s"}" scope="user" save="yes"}

{/exp:channel:entries}

Template Two:

        {exp:channel:entries channel="whitepapers" url_title="{segment_3}" dynamic="no" limit="1" disable="categories|member_data|pagination" parse="inward"}

        {exp:stash:parse process="end"}

        {if "{segment_5}" == "{exp:stash:get name='{entry_id}'}"}
        success
        {/if}

    {/exp:stash:parse}

    {exp:stash:parse process="end"}

        {if "{segment_5}" != "{exp:stash:get name='{entry_id}'}"}
        fail
        {/if}

    {/exp:stash:parse}

{!-- ALWAYS FAIL'S UNLESS THE {entry_id} TAG APPEARS IN THIS CHANNEL ENTRIES LOOP ANYWHERE --}

        {/exp:channel:entries}


texts:
Has anyone had a problem with CE_Lossless where it reports that jpegtran and jpegoptim aren't installed even though they are?

The template debugger reports:

  (0.344540 / 6.28MB)   *  CE Lossless debug: It doesn't look like the jpegtran is available.

  (0.344585 / 6.28MB)   *  CE Lossless debug: It doesn't look like the jpegoptim is available.

But if I check the server I see they are both present:

  $ which jpegtran jpegoptim
  /usr/bin/jpegtran /usr/bin/jpegoptim


texts: How can I get "total_results" number of entries filtered using the parents tag?

texts:
I have a channel entries tag that displays one entry form the "markets" channel. Within that, I want to display article entries. The "articles"(parent) channel has a relationship field to select which "markets"(child) entry. But, I have other channels that also have a relationship field pointing to "markets" entries. So when I use the code below to display "parents" from a specific channel and field, it works fine. BUT, if that results in 3 entries being returned, the parents_total_results tag doesn't return 3, it returns a higher number. Is there any way to get a number of the entries returned from the parents tag?

{exp:channel:entries channel="markets" disable="categories|member_data|category_fields|pagination" sort="asc" limit="1" dynamic="yes" require_entry="yes"}
        {parents field="articlemarket" channel="articles" limit="3" sort="desc" orderby="date"}
        {parents:total_results}
        {/parents}


texts:
Posting here as CartThrob say they monitor this section daily.

Clicking on "Reports" in my CartThrob Extension menu gives the following database error. Is there anything I can do about this or is it a CartThrob bug?

A Database Error Occurred
Error Number: 1054

Unknown column 'status' in 'where clause'

SELECT `template_id`, `template_name`, `group_name` FROM (`exp_templates`) JOIN `exp_template_groups` ON `exp_templates`.`group_id` = `exp_template_groups`.`group_id` WHERE `status` NOT IN ('closed', 'closed', 'closed', 'closed', 'closed', 'closed', 'closed', 'closed', 'closed', 'closed') AND `status` NOT IN ('closed', 'closed', 'closed', 'closed', 'closed', 'closed', 'closed', 'closed', 'closed', 'closed') AND `status` NOT IN ('closed', 'closed', 'closed', 'closed', 'closed', 'closed', 'closed', 'closed', 'closed', 'closed') AND `exp_templates`.`site_id` = '1' ORDER BY `group_name`, `template_name`

Filename: models/template_model.php

Line Number: 819

I'm on CartThrob v2.5, EE 2.8.1

Thanks!


texts:
My current solution for making my site multilingual is using this very simple plugin
which is very close to how Codeigniter does it.

However, it seems this cannot be used for things like Matrix/Playa since the strings are not in the template files.

What is the best approach for making Matrix/Playa multilingual?


texts:
Im getting an error using safecracker and matrix when i try to re-order the rows, drag and drop doesn't work and using the drop down options returns this console error.

Uncaught TypeError: Object [object Object] has no method 'callback' matrix.js:147

EE 2.5.5
Safecracker 2.1
Matrix 2.5.3


texts: How to output a relationship field within a grid field?

texts:
This pdf contains my question with screenshots: http://swmc.online/speakername.pdf

I am building a very simple conference website. Each year there is a conference. Each conference contains different speakers.

I have a speakers channel.
I have a conferences channel.

The conferences channel contains a field group named conferences

The conferences field group contains a grid named: teachings

The grid contains a relationship field named: speaker

When adding conferences I select the speaker from the relationship field

I want the selected speaker’s name to appear in the conference listing page
http://swmc.online/index.php/home/speakername

How can I pull the two fields {first_name} {last_name} from the speakers channel field group named speakers  within the Conferences tag pair?


texts: I need to create a 'megamenu' with a page title and a summary for each menu item. The only way I can think of doing this is to create a channel entry for the menu and use a relationship field for each item. Is this a good/bad idea? Or is there a better way of doing it?


texts:
I just updated to the latest EE, CT and P:E on sunday. Everything's working great so far but I found to have one problem: the logout link for logged in users doesn't work.

The code:

{if logged_in}
        {exp:profile:view}Hallo {member_first_name} {member_last_name}{/exp:profile:view} • Logout
{if:elseif logged_out}
[...]

When clicking the logout link on the frontpage the page refreshes but I am still logged in.

I have tried as superadmin and regular user both with the same behaviour.

I searched here and on the Forums but it seems like I am the only person having this problem... :/

Any ideas on this?

Thanks and Cheers,

Marc


texts: Is there a way for format the Solspace Calendar dates in UnixTimestamp?

texts:
I'm currently developing a multilingual site that uses Solspace Calendar as a calendering tool. Since it is multilingual, I will need to 'translate' the outputted days to either dutch, french or english.

Since the locale is english, it outputs this by default.

I tried using Hippo's Time/Date converter - and it's correctly called within the {occurrences} tags but the output within those tags are formatted in a way that the Hippo plugin doesn't understand them.

Is anyone aware of way to format the output of Caledar to a unixtimestamp?


texts: Just wondered if anyone has done anything with the payment gateway within Cartthrob to try and use the "Stripe Checkout" over building your own standard checkout page... love the look of its clean simple interface over the standard checkout pages we would normally create, and that I've done so far. Also been able to integrate the mobile side of this would be much nicer and I'm sure help conversion. Just curious to know if anyone has integrated this and how they got it looking and working and if its worth even looking into , or just sticking with building your own as i have done so far with this integration.


texts: expression engine 2.7 channel form tag captcha isn’t working

texts:
I have 2 forms that are using the channel form tag, not Freeform, and the CAPTCHA isn’t working. I have made sure all of the preferences have been addressed and that all paths to any images are correct. I AM using a Freeform submission form on another page and the CAPTCHA works fine with the Freeform tag. Does anyone happen to have the same issue and can anyone help me find documentation on why the channel form tag isn’t displaying the CAPTCHA?

Thanks for any help in advance.


texts: Search results to display category names

texts:
I need to work out how to incorporate category names into the search results url.

I found a solution using php (noted below) which adds the relevant category names into the appropriate position in the url. This works perfectly well, however i need to alter this code so that it accepts multiple category names. Currently it inserts the category names associated with 'beauty', but I also need it do do the same thing for 'hair', 'nails' etc..

I am no php expert so any help is appreciated!

{exp:search:search_results}

<?php $autoPath = '{auto_path}';
$lastSegment = basename($autoPath);

//Beauty URL update, based on the category assigned to the entry

if(strpos($autoPath, 'beauty')){

//variable to assign the category to the appropriate URL segment for the Rule

$catVar = 1;
$basename = 'catPath';

?>

{categories}
 <?php
 $tempname = $basename.$catVar;
 $$tempname = "{category_url_title}";
 $catVar++;
 ?>
{/categories}

<?php $autoPath = "http://www.mysite.com/products/"."beauty/$catPath1/$lastSegment";
} ?>

<a href="<?php echo $autoPath; ?>" title="{title}">{title}

{excerpt}

{paginate}
{pagination_links}
{/paginate}

{/exp:search:search_results}


texts: File upload not working in expressionengine 2.10.1

texts:
I tried uploading a file with a file upload field and with the native File Manager. EE will not respond at all, no pop-up window whatsoever.

All permissions are right and upload destination is ok. Any suggestion what it could be?


texts:
I have a section of my site where users login and can create and edit profiles. Theses profiles are edited through a channel form and are behind a login.
I have moved this section of the site over to https recently and it all works ok but my issue is the member login

{exp:member:login_form return="staff/index"}

This is insecure and give the user a browser prompt stating that before login.Is there a way to secure this login

Thanks


texts: Conditional input custom modifier with Expresso Store

texts:
This may seem like an easy question, but i have tried a number of things, none which work.

I want to use a custom modifier in Store to show a color, and this code needs to be in a template, but not every item needs the color input, only the entry which needs it.

How would I wrap this in a conditional {if}{/if} so that it only appears when needed?

Many thanks in advance.

input:size="Color"

  Green
  Yellow


texts:
When I submit my form, I get these errors in the error page.

A PHP Error was encountered
Severity: Warning
Message: array_merge() [function.array-merge]: Argument #2 is not an array
Filename: low_search/mod.low_search.php
Line Number: 312

A PHP Error was encountered
Severity: Warning
Message: array_key_exists() expects parameter 2 to be array, null given
Filename: low_search/mod.low_search.php
Line Number: 331

Here is my search form

{exp:low_search:form collection="members" secure="no" search_mode="all" result_page="test/low-search-test-results"}
<fieldset>
occupation_status:
<select name="occupation_status" dir="ltr" id="occupation_status">
{exp:low_options:occupation_status}
{options}
<option value="{option:value}">{option:label}</option>
{/options}
{/exp:low_options:occupation_status}
</select>
</fieldset>
<button type="submit">Search</button>
{/exp:low_search:form}

and this is my results form

{exp:low_search:results}
{if count == 1}
{/if}

{title}

{if count == total_results}
{/if}
{if no_results}No search results{/if}
{/exp:low_search:results}

I am using Low Search 2.1.2 and ExpressionEngine 2.5.5


texts: Conditionally displaying nested relationships

texts:
I have a bit of a complex relationship situation I'm trying to figure out in EE.

My channels consist of case-studies, clients, and services.

I have a relationship field within each case-studies entry where I
relate a client and service.
Within the clients channel I relate items from the service channel.

I want to create tab-based clients page that lists clients segmented by the 4 services, with a link under each client to a page that lists their related case-studies.

Now I can list the clients fine, and the tabs are working the way they should, the problem I'm having is checking whether a client has related case studies or not and only displaying a link to that page IF that client has some related case-studies.

{exp:channel:entries channel="services" entry_id="4"}

  {parents field="client_related_service"}

 {parents:client_description}

 See how we helped {parents:title}

  {/parents}
{/exp:channel:entries}


texts:
I've just switched my localization settings for the Daylight Savings folderol. (Something that, admittedly, I haven't done in previous years.) This year, I have over 200 entries in the queue that had their publish times set - and now, with the DST localization change, the publish time has all been changed. Is there a way to globally change entry times? I was looking at this question on bulk-entry status updating to see if I could figure out a way to tweak things, but I'm admittedly not super-strong on SQL syntax.

The changes I want to make are:
  where an entry is in the future, and the time equals 8:15 AM,
  change the time to 7:15 AM

Forgot to specify: I'm using EE 2.6x


texts: Where's the documentation for using Relationships with Grid fields?

texts:
I'm trying to do something like:

  {grid_fields}

  {grid_fields:relationship}{title}{/grid_fields:relationship}

  {/grid_fields}

But I don't seem to be able to pull data out of the related entry. Any ideas?


texts: What is the level of risk in enabling user-uploaded photos in EE?

texts:
I know there will always be some level of risk when allowing user-submitted data, but what exactly does EE do natively to filter, validate, and sanitize photo uploads through the standard interface?  Does EE do anything to escape or sanitize photos on output or before doing any other processing?  I'm talking mostly with respect to avatars and the native EE file upload system, particularly pertaining to photos (current EE version 2.8.1).

Researching the developer docs, they have the following to say on saving images to server:

  Saving Images or Files to the Server

  When saving images or files to the server, make sure and validate the
  file type (MIME) and also clean the file name to remove possible
  naughty characters.

  Sanitize file name: ee()->security->sanitize_filename();
  Browser provides the MIME type, available in: $_FILES['userfile']['type']
  Use the Upload class (ee()->load->library('upload', $config);) as it contains methods for validation and sanitizing

I assume that EE's native file upload functions use the Upload class, but what exactly does the Upload class do to validate and sanitize?  Does it check MIME type using some sort of actual file analysis, or does it simply rely on what the browser reads it as?

Can anyone give any particular pointers or best practices in EE photo upload settings or possibly server settings to permissions given to the photo upload folder to maintain the highest level of security?


texts: Can Cartthrob maintain separate inventory for sized items? For example, can we have shoes where there are different managed inventory counts for size 10 vs size 12 vs size 14?


texts: Can't 'Edit' an asset in the Assets module

texts:
We have number of sites running the P&T Assets add-on. All are working fine and allow us to 'Edit' the properties of a file or image when right-clicking on the asset. However, we've just started a new build using EE: v2.7.3 and Assets: 2.2.2 and for some reason, choosing 'Edit' when right-clicking doesn't display the edit pop-up. We can successfully choose 'View', 'Rename' and 'Delete'...but choosing 'Edit' does nothing?

I've tried in Safari, Chrome and Firefox. All fail. I'm guessing it's a permissions issue? However, I'm logged in as 'Super Admin'.

Any thoughts?

Gary


texts: Rating form is not giving any input fields

texts:
I have tried using standard example template given in Solspace website, its not giving any output other than saying no reviews message.

I have tried rating form tag within channel entries and outside, nothing has worked. In my settings i have allowed guest review as well.

Any idea of what s that missing in my approach. appreciate any help on this.


texts: Solspace Freeform Dynamic Recipients Notification Email

texts:
Using Freeform Next. I have a feeling this is way basic and Im just missing it.

I have a dynamic recipients set up with on a "Select Division" drop down.

Currently the email is returning the email address Im filtering too. I want the option label of the division.

How do I get that?

Basic form is ....

Contact Form Submitted on: {current_time format="%l, %F %j, %Y at %g:%i%a"}

        Name: {field:name:value}
        Email: {field:email:value}
        Phone Number: {field:phone:value}
        Division: {field:division:options}{option:label}{/field:division:options}
        Message: {field:message:value}


texts:
Hello community and thanks you for reading this

I need for a client who run his website under expressionengine to modify the core to auto approve a user when he subscribe to the newsletter (mailing list plugin)

Basicly I want to keep the automatic email send by the system (i will modify the content and erase the link to confirm the subscription) and have a auto approve subscription. No need for the user to click to approve his subscription

Many thanks to someone who find the solution.


texts: Solspace Importer: Native EE Grid and Relationships

texts:
Does Solspace Importer support the native EE Grid and Relationship fieldtypes when importing into channel entries?

I may have made a mistake to assume compatibility to include those native fieldtypes when purchasing, but I've missed some pretty obvious stuff in my day before!

I have a set of XML files that is used to update just under 1000 entries in an EE 2.9.2 site, but the current add-on being used doesn't support cron imports in batches. I was hoping to replace it with Importer, but haven't had luck with it yet.


texts:
i'm trying to change the names of the months from english to greek language in EE3... is there any file that i can modify somewhere in the installation?

Thanks in advance


texts: Entries with structure:child_ids_for:XXX not bringing up any results

texts:
I've got an entry tag here that isn't brining in any results whatsoever:

{exp:channel:entries entry_id="{structure:child_ids_for:43}" fixed_order="{structure:child_ids_for:43}"}
  //Content
{/exp:channel:entries}

However, if I call the structure tag and place it between a pair of
 tags:

{structure:child_ids_for:43}

The result is:
48|44|49|50|51|52|53|54|55
 so that is definitely working correctly.

If I then copy the piped ID list and swap entry_id="{structure:child_ids_for:43}" for entry_id="48|44|49|50|51|52|53|54|55" everything works as intended.

I'm not sure what the difference between those two code segments are. Can anyone help at all?

Thank you.


texts:
I am using Low Seg2Cat here and there are three entries with the Renewable Energy category. However, only one of them is displaying.

Here is the code I am using:

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

{title}

{project_summary} More...

{/exp:channel:entries}

I can't see what I might be missing here. Please advise.

Thanks!


texts: Image upload thumbnail error for one upload directory but not another

texts:
There are similar questions on this site but both seem to be Windows related. This is Ubuntu 12.04.

On EE 2.5.1, I have two upload directories configured:

$config['upload_preferences'] =
  array(
   1 => array(
    'name'        => 'Article Images',
    'server_path' => '/var/www/myhost/files/article_images/',
    'url'         => 'http://myhost/files/article_images/',
    'properties'  => 'style="border: 0;" alt="image"'
   ),
   2 => array(
    'name'        => 'Image of the Week',
    'server_path' => '/var/www/myhost/files/image_of_week/',
    'url'         => 'http://myhost/files/image_of_week/',
    'properties'  => 'style="border: 0; width:160px;" alt="image"'
   )
  )

I can upload images to directory 2 but when I upload to directory 1 I get the message, "Thumbnail could not be created for the image. Please make sure the thumbnail directory is writable".

For starters, the directories are identical:

[myuser@ubuntu:/var/www/myhost/files]$ ll article_images/
total 20012
drwxrwxrwx 4 myuser mygroup      12288 Mar 26 10:12 ./
drwxrwxrwx 6 myuser mygroup       4096 Mar 25 23:33 ../
... more files
drwxrwxrwx 2 myuser mygroup   20480 Mar 21 14:26 _thumbs/

and

[myuser@ubuntu:/var/www/myhost/files]$ ll image_of_week/
total 340
drwxrwxrwx 3 myuser mygroup   4096 Mar 26 10:19 ./
drwxrwxrwx 6 myuser mygroup   4096 Mar 25 23:33 ../
... more files
drwxrwxrwx 2 myuser mygroup   4096 Mar 26 10:19 _thumbs/

Details are obfuscated but I can assure you user/group ownership is identical and in any case all permissions are set to 777.

I've tested with the same jpeg image, it uploads fine in "image of week" but fails in "article images".

I have tested the EE server wizard and all requirements show Supported: yes.

php.ini shows memory_limit = 128M.

I believe I've dealt with every suggestion offered on the other similar questions on this site. What am I missing? Something obviously wrong in my file upload preferences?


texts: Low Reorder, count, and total_results - trying to test for last entry in each category

texts:
I have a people page that is separated into three different categories, and I am using Low Reorder to allow my client custom control over what order the people are displayed in each category. That part works great. Now I'm trying to customize the output so that the final entry in each category is tagged with a specific class so that the layout will work right.

Here is what my template code looks like:

{exp:channel:categories style="linear" channel="People" show_empty="no"}

{category_name}

{exp:low_reorder:entries set="staff" category="{category_id}"}

... CE Image stuff ...

{count} {title} {total_results}

{exp:low_widont}{person_organization_title}{/exp:low_widont}

    {switch='|||

'}
{/exp:low_reorder:entries}

{/exp:channel:categories}

The relevant bit is this: {if count == total_results} end{/if}. I added in the {count} {title} {total_results so I could see what the count and total_results fields were.

The output I get is this:

All entries in the first category have a count of 1 and total_results of 3
All entries in the 2nd category have a count of 2 and total_results of 3
All entries in the 3rd category have a count of 3 and total_results of 3
Since all the 3rd category entries have total_results of 3, all entries in that category are tagged with the "end" class

Perhaps there's another way to achieve what I'm trying to do? Thanks!

UPDATE:
I was able to achieve the desired layout effect by just giving all of the entries the 'end' tag, but this is inelegant to be sure. I am still interested in solving this problem the "right" way.


texts: Low events and low search - selecting year

texts:
What is the correct syntax for setting the selected year drop down upon a search?

{exp:low_events:archive
                events_field="events_date_time"
                show_passed="no"
                show_future_entries="yes"
                unit='year'
            }
<option {if low_search_low_events:date == date_url} selected="selected"{/if} value="{year}">{year}</option>
{/exp:low_events:archive}

This works when unit is set to month, but not year.


texts:
Someone can suggest about a social feed plugin for EE3/4 that allow to have feeds for multiple accounts?
Thanks


texts: Is it possible to check if a Freeform Pro form has any kind of error?

texts:
In my template I have a Freeform Pro composer form with inline error handling turned on. I know that I can check if a certain field has an error by going:

{if freeform:error:{composer:field_name}}

And I can check for general errors with:

{if freeform:general_errors}

But, is there a way to check if the (whole) form had any kind of error? Something like:

{if freeform:has_errors} (doesn't work)

I want to output a general error message in addition to the field and general errors. The fields are dynamic, so checking every one of them is not an option.


texts: QUERY join for members that have entries

texts:
I'm trying to learn how to do mysql joins. Twitter has helped already get me started.

I'm trying to find the number of members that have entries attached to them...

Then the number of members that have entries with a specific category_id attached to them.

What I have so far.

{exp:query sql="
    SELECT count(*) AS num_members
    FROM exp_members m
    JOIN exp_channel_titles t on t.author = m.member_id"}

    {num_members}

{/exp:query}


texts: 1 template, multiple pages, different content

texts:
I'm trying to figure out what the best way of handling multiple pages (e.g. listing pages that list articles, events, etc) that use the same template but have different content (e.g. title, description, image, which entries it pulls).

Example:

News Listing Page [listing template] - displays news article list
Events Listing Page [listing template] - displays events list
Industry Events Listing Page [listing template] - displays industry events list

With each listing page having a unique title, description, etc as well.

Should I be structuring the single template file with if statements that determine which content should be loading in? (e.g. conditionals for all three in one template). What if the "unique" content needs to be editable, should all pages that use the same template be in a unique channel? All template-x pages in channel x, all template-y pages in channel y, with channel fields for each directly related to what appears on their respective templates?

I've been looking into Structure but not sure if it'll do what I'm after, or rather simplify the "big picture" in terms of site structure.

I come from a WordPress background so still trying to wrap my head around the EE way of doing things, so any help/advice/suggestions are appreciated. If my question is unclear as well let me know and I can try to re-phrase my question/what I'm after.


texts: Edit channel fields view displaying short name not field label, with no link to edit

texts:
Since I upgraded from 2.5.5 to 2.10.1, I can no longer edit channel fields.

When attempting to edit channel fields, the edit view displays the fields listed by short name in input tags, instead of by field label in links.

It appears there's some javascript that's hiding the field label instead of the short name, as both are present in the DOM. No idea where it could be coming from, however.

No errors are shown.

Here is a screenshot for reference:


texts: Using Pixel and Tonic Assets 2 for websites with lots of images

texts:
Simple question here! I'm using Assets on every site but I found the last version very slow when browsing files, creating folders etc. etc. so what do you use in large siteswith lots of images?

(also notice that I only use Mediatemple DV 1GB - one server for one website!)

Thanks!
Francesco


texts: Member Activation email are not received from Bluehost accounts

texts:
I'm using "Self-activation by email" for new members, and FreeMember for the front end form. However new members are not being sent the activation email.

I have done more testing and found this is true for all my EE sites on Bluehost. I have tried this on a 1.7, 2.7, and 2.8 EE site. I have also tried it with email accounts hosted on Bluehost and those not on Bluehost. None have worked for me.

What I've tested:

I can email members (pending or activated members) via the communicate section.
I have tried all three options (PHP, SMTP, and SendMail)
my local build (MAMP) works fine
email debugging doesn't produce any errors
using the 're-send activation' link does not work either
I disabled email activation, tried a test registration that worked, then enabled activation and it still didn't work.
I get the admin notification emails instantly when a new member registers (i.e. the "A new member has registered..." email)
I can send email via the "communicate" feature in the CP
Password reset emails are working and are sent to the member
The same is true for other installs of EE (v1.7, 2.7, 2.8) on three separate Bluehost accounts. All of these are the basic shared hosting plan.

Bluehost support says that logs show the emails are being sent.

Is there anything different about how the Member Activation email messages are sent? It sounds like it could be a global filter that Bluehost has applied that is blocking all of these.

Anyone else have EE on a Bluehost shared server and can test? Can you confirm that new member activation emails are or are not received?


texts: In ExpressionEngine 3, what is the format of the config file to be able to use the Config Service?

texts:
I'm developing an add on for Expression Engine 3, and I can't figure out what the format should be for the config file that will be used from the Config Service. The Expression Engine documentation says that the config file should be in ./config/ relative to the add on directory, but it has no information on what the format should be.

The docs say that the configuration would be accessed with:

  ee('Config')->get('my_addon:my_config.my_item');


texts: Override the Cartthrob license key generation process

texts: Is there a way to override the Cartthrob license key generation process?  Currently Cartthrob just defaults to a UUID, but we have a more in-depth license generation process that is required for our project.  I can probably hook into cartthrob_on_authorize, but am wondering if there is a better way.


texts:
So I have an affiliate account with TicketFly that will help us make a few bucks when we send someone to purchase a ticket through their system.

My question is what do you guys think is the best way to take this url http://www.ticketfly.com/purchase/event/450737/ and convert it into http://www.shareasale.com/r.cfm?u=841156&b=234786&m=27601&afftrack=&urllink=www%2Eticketfly%2Ecom%2Fpurchase%2Fevent%2F450737%2F?

I have to make sure that our Affiliate ID number 841156 and TF's ID 27601 remains part of the query as well as the urllink parameter. I'm just not sure what path to take. Do I use some concoction of Low Replace or something else?

Any help would be greatly appreciated!


texts:
Is there a way to get an entry using only PHP? I've looked at the developer API, http://ellislab.com/expressionengine/user-guide/development/api/api_channel_entries.html, but there doesn't seem to be a way to fetch an entry.

I'd like to do this:

$entry = ee()->api_channel_entries->get_entry($entry_id);


texts:
I'm wondering how add-on devs who's add-ons have themes use Git? For example, the way I do things now is to just make my add-ons repo the core folder; eg, securitee or ct_admin within the third_party directory will contain the .git folder.

This doesn't work with themes though since those are stored in a completely separate directory and path than the core add-on code.

I was thinking I may need to have a completely stand alone installation of ExpressionEngine for each add-on and just use a .gitignore file to only allow the add-on files. This sounds over complicated though so I'm hoping to avoid this.

Any other ideas?


texts: User (member) specific site menu or hierarchy

texts:
This is kind of an open ended question, but has any one had any luck with creating a "member specific" navigation tree? I've looked into structure, taxonomy, and nav-ee but none seem to have the granularity of permissions I would need.

What I'm trying to achieve is that a member can login and create a "micro site" that would allow the following:

The member can:

create new pages or edit existing pages (created by the member)
create/manage a single
multi-tier menu which controls the order and hierarchy of the
micro-site pages.

The member cannot:

View/edit other micro sites
Add or edit pages outside of their micro-site
Alter any other site menus.

Ideally I'd like to manage this through some kind of jQuery-esque list that allows for nesting/re-ordering etc. I know this is a bit of a tall order. 0.o I'm willing to hack some stuff together if need be, but I was wondering if there was an existing solution somewhat close to what I'm trying to achieve.

Any one else put together something like this?


texts: Passing drop-down menu variable in URL to form

texts:
Is there a way to pass variable information through a url and have it pre-populate a drop down menu (selected) on a contact form?

I have a contact form in which I would like to have unique urls that have a particular department prefilled. The user can still change it, but this gives them a starting point so the question can go to the correct person.


texts:
Here's an oldie but goodie. Links from social sharing sites are coming back like this:

http://reliabilityweb.com/index.php/articles/start_executing_success_doesnt_stop_at_training/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+Reliabilityweb+%28Reliabilityweb.com%29#When:15:03:50Z

The ? and everything that follows confuses EE1 and yields 'Invalid GET data'. I see there is a solution for EE2, but what about EE1? Nothing in the docs.

Thx.


texts: CSS path problem in the EE3 installation script and in the Admin Panel

texts:
I installed EE 3.5.4 on a local server (Wamp 3.0.6 - Windows 10), during the installation script execution, the CSS files were not taken into account, then the  installation display was summary. The installation worked well.

When I entered in the admin page, the same problem occurred:  the CSS files were not taken into account, there was only text. Then I looked at the path of the CSS file and it had admin.php in the path

  href="http://localsite/admin.php/themes/ee/cp/css/common.min.css

The httpd.conf

LoadModule rewrite_module modules/mod_rewrite.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
# Virtual hosts
Include conf/extra/httpd-vhosts.conf

the httpd-vhosts.conf

<VirtualHost *:80>
    ServerName localsite
    DocumentRoot "d:/drive/sites/www/localsite"
    <Directory  "d:/drive/sites/www/localsite/">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require local
    </Directory>
</VirtualHost>

Inside the Windows hosts file:

127.0.0.1 localhost
::1 localhost

127.0.0.1   localsite
::1 localsite

This problem never happened to me before. I managed to solve the problem

In the config.php file:

system/user/config/config.php

I added:

$config['theme_folder_url'] = 'http://localsite/themes/';

And now the CSS path is right (no more admin.php):

href="http://localsite/themes/ee/cp/css/common.min.css

Really I do not understand this problem, is it possible to remove admin.php in the CSS path without modifying the config.php file?

PS : i tried to install EE2, there was a problem with the images path.


texts: Assets throwing PHP error with BetterWorkflow

texts:
I'm using

EE 2.6.1
Assets 2.1.3
BetterWorkflow 1.6.2.5
Matrix 2.5.5

I'm working with the BWF team too, but since their developer is out for the week, they recommended I also check here.

I've had no problem publishing entries so far, but when I activate Better Workflow and hit the Publish button, I get the following:

A PHP Error was encountered

Severity: Notice

Message: Undefined index: entry_id

Filename: assets/ft.assets.php

Line Number: 799

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /export/vol2/httpd/htdocs/research/ee/system/codeigniter/system/core/Exceptions.php:170)

Filename: libraries/Functions.php

Line Number: 809

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /export/vol2/httpd/htdocs/research/ee/system/codeigniter/system/core/Exceptions.php:170)

Filename: libraries/Functions.php

Line Number: 414


texts:
I'm currently running my custom bootstrap config, and I had a previous problem where MSM wouldn't work with it (Both in the Control Panel and the front end)

I managed to fix this problem, but now I get an "Error 500" on the front end, whenever I enter one of the sites other than the main one.

What could be causing this.

I have possibly nailed it down to being:

<?php require('./config.php'); ?>

In my "system/expressionengine/config/config.php" requesting my custom config file in the root directory. Could this be causing problems?

My custom config file can be found here:

https://github.com/madebymayo/ExpressionEngine-Environment-Config

EDIT: I must point out, that before placing my custom config in, the original config file worked perfectly for EE and MSM. But it doesn't really work with my workflow :)

PARTIALLY SOLVED...Still need help

My current setup is to have my custom "config.php" bootstrap in the root of my site.

I then Have the require('./config.php') in both the database.php and config.php files within "/system/expressionengine/config/"

My URL's look like this:

http://website.com

http://website.com/website_1

http://website.com/website_2

Now I think the problem is the

<?php require('./config.php'); ?>

I changed it to (Added dot):

<?php require('../config.php'); ?>

and both my website_1 and website_2 work. But it breaks my Control Panel and the Root URL.

Is there an If statement I could put in my config file, to say IF we're inside either website_1 or website_2 display:

<?php require('../config.php'); ?>

But if we're inside the root or in the CP, use:

<?php require('./config.php'); ?>


texts: dropdown P&T Field Pack - selected option

texts:
Using a classic html select code Brasil as defaut option could be selected using selected parameter:

   <option value="África do Sul">África do Sul</option>
    <option value="Brasil" selected>Brasil</option>
    <option value= ............... </option>
</select>

I'm using the dropdown of P&T Field Pack, it's working fine, a Channel Field element implement the dropdown list:

 <select>
     {options:member_paises}
           <option value="{option_value}"{selected}>{option_value}</option>
      {/options:member_paises}
</select>

But how to set Brasil, (or other option) as defaut option, like the classic html select code ??

thanks


texts:
Please help me Im going a bit crazy with a simple problem.

I am trying to use the current time for my URL title so they are no easily found, I had it working but it isn't anymore and I cant work out why. It will post a new entry if I just allow it to use the title as the URL title.

Any ideas? Its driving mad, as it must be something so simple but I cant see it :)

{exp:channel:form channel="Channel" return="/test/{segment_2}" url_title="{segment_2}"}

        title
        <input type="text" name="title" id="title" value="{title}" size="50" maxlength="100">

    urltitle
    <input type="text" name="url_title" id="url_title" value="{title}{current_time}" size="50" maxlength="100">

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

{/exp:channel:form}

Thanks


texts:
I've got a Matrix field with say 20 rows (could be 21).

I want to output those rows within  but i want 2 rows in each .

Any idea how to accomplish this with the switch tag in Matrix? I'm trying some weird and wacky stuff but nothing is working as i want.

So markup i would want is:

{row 1 content}
{row 2 content}

{row 3 content}
{row 4 content}

{row 5 content}
{row 6 content}

{row 7 content}

And here is my current template code:

{exp:channel:entries channel="downloads" dynamic="no" disable="pagination|member_data|categories|category_fields" orderby="random"}

{dl-downloads}

{dl-download-title}

{dl-download-desc}

        {switch="|

"}

{/dl-downloads}

{/exp:channel:entries}