texts: uploading videos to youtube or vimeo ( Save link in entry ) possible ?

texts:
I'm about to make a backend for a contest where people should be able to upload assets(documents,videos,sketches etc ) in their contest entry form.
Is there any smart way to get these videofiles uploaded automaticly to youtube/vimeo rigth/straight from the entry form ?

I know it would be better just to have them provide a video link. Just investergating if any of you know other options (so they dont need to create their own youtubve/vimeo account , and later have all the content one place) ?
My idea was/is to have a private youtube/vimeo channel for all entry uploads, So they wont be able to see the other videos in the contest before winners are announced.

Anyone done something like this .. hint or guides ?

Cheers


texts:
I am using Freeform pro with a EE site that sells classified goods. I have a form where the customer can email another customer/member. But id like to mask the email with sender and receiver something like gumtree or craigslist. Can someone suggest a method for this if its possible.

Thank,
Mario


texts: Pulling images from FF Matrix through a weblog

texts:
I am trying to pull images from the FF Matrix field of a weblog to go into a slider on my webpage (here).  Currently, I can have it pull from the weblog, but if I try to call the images, I get a server error.

My code on the page is

    {exp:weblog:entries weblog="wrv" entry_id="{segment_4}" disable="trackbacks|categories|member_data"}

    {if cf_wrv_images!=""}

    {cf_wrv_images}

    {/cf_wrv_images}

    {/if}
    {/exp:weblog:entries}

The weblog category is wrv.  Currently, the page is pulling the main image (which is used on this page) instead of the entry's images.  The code that isn't working is

        {exp:weblog:entries weblog="wrv" entry_id="{segment_4}" disable="trackbacks|categories|member_data"}

    {if cf_wrv_images!=""}

    {cf_wrv_images}

    {/cf_wrv_images}

    {/if}
    {/exp:weblog:entries}

"img" is the column name that I'm trying to pull from, but when I insert it into src, I get a server error telling me that the page isn't formatted correctly.

Help would be greatly appreciated!


texts: Web Crawlers detecting published pages with "closed" status.

texts: I want to begin using the page scheduler to set the "closed" status to pages to "open" once a specific date comes. My question is, will web crawlers still be able to find published pages if the entry status = "Closed"?


texts:
Using EE 2.5.5. I have a products channel with three category groups associated. How do I insure at least one category from each group is selected when the user adds or edits a product entry? Is there some form validation mechanism I missed?

Thanks.


texts: Why wouldn't global variable parse correctly with Master Config?

texts:
Using Focus Lab's Master Config, I've set a test global variable for production, like so:

$env_global['global_test'] = 'test';

Then in an embedded template I've dropped in {global_test}. Also tried it in a non-embedded template.

In both cases the output, regardless of environment, is this;

{global_test}

Am I missing something here?


texts:
I'm using Freeform Pro 4.0.12.

Does exp:freeform:entries allow for nested if statements, like below?

{if freeform:field:yes_no_002 == "Y"}

        &nbsp;

        Person 2:

    {if freeform:field:r_type_of_presentation == "Roundtable"}

             Are you a moderator or Discussionist?
             {freeform:field:r_round_table_leaders_002}

    {/if}
{/if}

I haven't been able to get this to work.

Thanks

Peter T


texts:
After I updated ExpressionEngine from 2.11.7 to 2.11.8, CartThrob 2.71's order items stopped recording numeric information such as the order item's price, subtotal, quantity, etc. However, the order totals are still being captured.

I did not make any other changes when updating EE, and when I rolled back EE to 2.11.7, CartThrob resumed working as it should.

Has anyone else experienced this issue? Is there a fix?

(PHP 5.5)


texts:
EE v2.4.0 - Build: date 20120123 and it is the Store  1.5.3 module by Exp-resso

I looked through the docs and could not find a specified way to customize reports. Is there a documented way to customize reports?

We would like to display the tax rule used to calculate the taxes for each order.

Just as a side note, if you ever have to work with eCommerce in Georgia, be warned that every single county has their own sales tax rate. Awesome.

thanks!


texts: Matrix total_rows variable not updating after adding rows manually

texts:
I have a custom add-on which adds a row to the exp_matrix_data DB table. Everything works well with the exception that the {field_name:total_rows} tag is no longer returning the correct number of matrix rows.

Are there any places other than exp_matrix_data where my add-on needs to make changes when programatically adding/deleting matrix rows in this way?


texts:
I have a site with the following url:

domain.com/theater/events/2016-01-13

On said page I have this tag:

{exp:low_events:entries channel="events" date="{segment_3}" limit="1"}
   <option>{title}/ {event:start_date}</option>
{/exp:low_events:entries}

Now {event:start_date} always displays 2015-12-01 no matter what happens in the url_segment.

Why is that?

If I replace {event:start_date} with {segment_3} It shows the right date but then I'can't reformat the date. Anyone had this problem before?

--

Edit:

I further examined the problem. If I remove limit="1" then there are two entries displayed. One is the correct date and one is always the 2015-12-01. Ho can I just grab the date which matches the url_segment


texts: Channel tag showing future entries but show_future_entries is not set to yes

texts:
I have an entry showing a start time of 1:00pm today (current local time is 10:04am CST). The server time using php date is showing the same as our current local time.

This is my channel entries tag:

  {exp:channel:entries channel="general" category="4|14" orderby="date" sort="desc" limit="2"}

If I change the entry date to tomorrow, it doesn't show up. But when I change it to today's date with a future time, it shows up.

Now I've just taken a look at the template on the Sync Templates page and it says it was last saved at 4:00pm (I just saved it at 10:09am).

My php ini file says the timezone is America/Chicago for both Local and Master Value.

Any thoughts on what's going on here?

Updated:

I will check on SSH access. It's on Enginehosting but my set up doc is not accessible at the moment.

The entry was set for 1:00pm when it was created at 10:00am because we didn't want it to show up until the afternoon.

The Localization settings have not been changed at all (except when we first set the site up last year).

The user and I were logged in with the same username/pass.


texts: EE API to get Entries outside of the EE environment

texts:
i want to build an APP which need access to channels of my EE instance. I found Open API (https://github.com/putyourlightson/open-api) but it is outdated (last change > 5 yrs). Is there another way to get the entries (and other stuff maybe) or has someone experience with using Open API with EE?

Greetings


texts:
EE 5.3.0

Expresso Store 4.2.1

I have a store for replacement parts. Since customers might not always know what part they need, I would like to require users to post an image of the product for which they need parts when they check out.

I'm familiar with the order_custom fields but was wondering if it was possible to use these fields as image file uploads.

Thanks!


texts: What are the best practices for having multiple Matrix field on one Safecracker form?

texts: I have a safecracker form with 4 very similar ( a few of the same colmumn names ) Matrix fields. When I click the + button to add a row to one of the Matrix fields it adds 4 rows each with a number 1 on the rows. The second field add three rows with a number one and third adds two rows with a number one.


texts:
The index.php file in root has been injected with code. I do not know what this code means, but this is obviously not good. This is the first time this happens in all the years I work with EE. (BTW, the server that this build runs on is not my choice.)

My questions:

1) what do I tell the client?
Does he have to move server (ISP?)

2) What do I do, should I reinstall EE completely?

Hope for an answer here, thanks.


texts:
I have had some sporadic issues in my time with EE where a user just cannot login to the front end, it seems to be a case of initially it validates the login details, routes you to the intended page, and then by the time the user gets there, they are logged out and dealt with accordingly. I have had it myself, so i know its effected browsers that are fine of config, and passwords etc all correct.

I am now however experiencing the issue with a very important user, everything works for everyone else in every environment, and works in this case for the user in everyone but one browser (but the browser is not the problem)

Am sorry for the broadness of the question, it is finger in the air because that is exactly how i find it when it comes around. Am just hoping someone out there has experienced the same, and has an understanding of it that i have not managed to nail it to.

Have cleared caches both our end and theirs - in the past this has been the place to start.


texts:
I have set up a T-Shirt with the Options Configurator field type named 'inventory_and_options' but can't work out how to display its selected item options in an invoice.

The products options are:

Size: Red, Blue

Colour: Small, Medium

I have created an order for a medium blue Tshirt.

My invoice code:

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

    {item_options}
        Option Label = {option_label}

        Option Name = {option_name}

        Option Value = {option_value}

    {/item_options}
{/exp:cartthrob:order_items}

This displays:

Great T-Shirt
Option Label = Inventory and Options
Option Name = Medium Blue
Option Value = sku-medium-blue
Option Label = Inventory And Options:size
Option Name = Medium
Option Value = Medium
Option Label = Inventory And Options:colour
Option Name = Blue
Option Value = Blue

So that has looped through all the item_options but all I want it to give me is:

Great T-Shirt
Size: Medium
Colour: Blue

If I get rid of the item_options tag and hard code the fields created in the order items field in the orders channel..

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

    {item:inventory_and_options}

    {if item:inventory_and_options:size}Size: {item:inventory_and_options:size}{/if}

    {if item:inventory_and_options:colour}Colour: {item:inventory_and_options:colour}{/if}

{/exp:cartthrob:order_items}

Displays:

Great T-Shirt
sku-medium-blue
Size: Medium
Colour: Blue

Which is close but obviously causes a problem if I add other product options other than size and colour as I would have to manually update the template whenever I add a new product option.

Sorry for the rambling explanation, has anyone else had problems displaying   options in an invoice?


texts:
Is it possible to have a multi-page form with a custom form:action?
something like:

{exp:freeform:form
    form_name="get_started"
    form:id="get-started"
    form:class="form-horizontal"
    form:action="http:some-custom-url"
    multipage="yes"
    multipage_page="{segment_2}"
}

If someone has a working example i would appreciate if he posted it here.

Thanks!


texts:
I'm trying to retrieve an image stored within a Grid fieldtype.

I'm getting grid_parser errors using EE 2.7.2 and Cartthrob 2.4

{exp:cartthrob:cart_items_info}
      {exp:channel:entries channel="products" entry_id="{entry_id}"}
          {product_detail_image limit="1"}
              <img src="{product_detail_image:product_image}" alt="{title}" />
          {/product_detail_image}
      {/exp:channel:entries}
{/exp:cartthrob:cart_items_info}

The changelog says that Cartthrob has been updated to fix Grid compatibility.

Or perhaps an example if my code is freaky.


texts: Possible to associate/include image with channel field?

texts:
I'm fairly new to EE and currently familiarizing myself with the channels/fields process, and I'm wondering if there's a way-- either natively or with the help of an add-on-- to associate an image or provide a choice of images when publishing via a specific channel?

To provide some context, I have a basic new type feed that displays various events in order of date in a sidebar. The provided channel fields will include event name, date and location. To the side of each entry, I would like to display an image that is specific to that location-- i.e. if a user wants to publish an event that will take place in Chicago, an image specific to that city will show next to the event details text. I realize that I could provide a field for the user to upload an image each time, but given that the range of cities will be finite, I'd like to provide the images beforehand, and either allow the user to select the image appropriate to the given city, or somehow have that image displayed in the corresponding div that is associated with the specific city that is selected/entered into the "city" field.

Is this possible? Please let me know if my question is unclear in any way. Thanks for any assistance here.


texts:
I have products with different texture patterns ( See attached #patterns). [ I am using EE 2.7.0 + Expresso store 2.0.3. ]
I want these texture patterns as variation.

Configuration:

Channel: Products [ product ]
Channel Fields: Specification [ specification ]
                - Modifier type : Variation
                - Name : texture
                - Options : adobe, sephia, ...etc

Now through these options or any other way I want thumb to display for each variation.

Thanks,
Parth

patterns


texts:
This is as much a philosophical as a technical question. We are using EE 2.11.1 for this project.

We have relatively complex front-end permission requirements. They are all need-to-know permissions, i.e. views not edits. I have researched the topic and found the hooblong and hookan add-ons. However, based on my dev experience, I believe I can create a custom system for our permissions requirements. But as I am new to EE, I am not sure if I should. So this is mostly a question of 'best practice' and if you can see issues down the road.

Permission Requirements

Member Groups:

Super Admins
Editor Type A
Editor Type B, etc.
B2B User
B2C User

The difference between B2B and B2C user can be nicley solved through EE's internal template permissions. However, the B2B Users will have a very granular and mix-and-match permissions requirement:

View Country 1
View country 2, etc.
Application View 1
Application View 2, etc.

There are nine countries and the applications list will be extended post-publication. A B2B User can have a very individual combination of these permissions, i.e. it's not feasible to solve this through member groups. (Additionally there will be permissions synchronization from our CRM system.)

User Setup

Using Solspace's User Add-On, we are implementing a system where a user is always associated (as Associated Author) with a company channel entry.
The permissions illustrated above will always be company-wide, i.e. all users associated with a company will have the same permissions.

Considered Approach

The solution that I am currently considering is:

Store permissions as fields in company channel entry
On member login use member_member_login_single hook to load the user's asociated company profile including permissions (will have to do this anyway, as the company profile holds information which will be needed to connect to 3rd party tools)
In the template, check permissions in the company profile and display content accordingly. (Often it will be a show / don't show case.)

So, is this a terrible approach? Are there any issues experienced EE devs see on the horizon? Are there preformance issues to be considered? Any other input I need to consider?


texts:
I have the following code

        {exp:channel:entries channel="static" sort="asc" dynamic="off"}

{title}

        {/exp:channel:entries}

Which is looping through a channel I have for static pages on my website. Technically it is showing all the stuff it should do. This is the code it outputs:

Small Builders

However, when I click the link it gives me a white page. I have the htaccess from the documentation set up. I'm new to ExpressionEngine. Am I missing something completely obvious? I just want to link the the entry I've created.


texts:
Everyone knows EE's categories suck. What this question presupposes is, maybe they don't have to. What are the best ways to handle more complex categorization schemes? For example, I am about to start development on a website for a funiture maker. There will be a "products" channel, where each product needs to be categorized in several ways: product line, type of product, room of the house. Those categories will be used in various ways across the site, include generating menus, product listings by the various criteria, related products, and so on. Below are the methods I've used before or am familiar with. Am I missing any? What the are upsides or downsides?

Use EE's native category groups. Assign more than one group to the channel and instruct the client to select at least one of each type. Use the Category Description field as necessary for display on the landing page or what have you.
Create a new channel for each group of categories and enter each category as a channel entry. Use relationship/Playa fields to select categories. Obviously this gives me a lot more flexibility with what information I can associate with the category, but the content entry workflow is not great. Also, lots of channels cluttering things up.
Use Tagger/Taggable/SolSpace Tags. This is great for entering content - you can create a new category on the fly from the edit screen - but very limiting in terms of what data you can associate with a category. No category descriptions as far as I know, although I don't have extensive experience with any of these.
Create duplicate channels for each category. This only works if you know the categories ahead of time and there are very few of them. The only time I have done this was when I was using Structure and wanted to have a page in the tree for each category. Easy to explain to clients... until they want to add a new category.

Am I missing anything? Is there a better way to handle this? What method does everyone else use?


texts:
has anyone experienced an issue with channel entries not saving due to certain words?  I'm updating a site with new content from the client, however when I put the new text in and save, the page just returns me to the front end of the site, without saving the entry.  Through trial and error, it will save if I remove one or two words from the text.  When I put those words back in, the problem returns.

There doesn't seem to be anything unusual about the words, they just seem to random words Expression Engine doesn't like.

I'm using EE 2.6.0.

Thanks,


texts: CartThrob and Sage: Changing Order ID (T_ordernum)

texts:
I am using CarthThrob and Sage Payments NA (Bank Card HTTPS) to process transactions. Using the standard Sage US payment gateway it does work, but I need to edit the Order ID (T_ordernum in the Sage docs) to include some items specific information. Right now it is the entry_ID plus a timestamp: 123_1234567890 which is meaningless in our system.

I'd like it to use some custom field data: account number and last name so orders appear in Sage as: 123_Lastname (maybe adding the timestamp for randomness).

I am capturing these as item_options in the add to cart form:

{exp:cartthrob:add_to_cart_form
    return="cart/review"
    entry_id="{entry_id}"
    allow_user_price="yes"
    item_options:account="{ma-number}"
    item_options:last_name="{ma-lastname}"
    }

However the payment gateway creates the Order Number from the entry_id and Unix time:

'T_ordernum'=> $this->order('entry_id')."_" .time(),

I'd like to have it grab those item variables. I've added this (found in another payment gateway):

$reference = '';
    if (!empty($item['item_options']['account']))
    {
        $reference .=$item['item_options']['account'] ."-";
    }
    if (!empty($item['item_options']['last_name']))
    {
        $reference .=$item['item_options']['last_name'] ."-";
    }

The issue we (the php guy here...I'm more design/front end) have is getting $item info. We don't see where that is coming from.

I realize this is a longshot (did contact CartThrob but they are relaunching their site and been very busy the last few weeks). If it is an easy fix and you can post it here, great. If you want to do this for pay, I'm open to that as well (if that is not allowed here let me know and I'll remove this question).


texts: Is there a way to send a member PM notification only if that member is not logged in the site?When the member is on the site, I show a growl notification to that member whenever that member receives a PM. In that case, there is no need to also notify the member via email. I'd like the PM notification email to only send when the member is not logged in. Is this possible?


texts:
The Devdemon Editor works very well, it uses Redactor.

I can insert the <span> element inside the Devdemon Editor, but after saving the entry, the <span> element is removed (i guess other elements would be removed to).

Without problems, elements such <a>, <div>, are recognized and once the entry saved <a>, <div> are not removed.

I read the doc about Redactor.js, I didn't find a solution.

So, how to setup Devdemon Editor, to accept elements such as <span> or others?


texts: Freeform - adding an option to my form edit page

texts:
I need any form I create to belong to a parent category.
The categories can be hard coded, but I need to know where/how to save that selection and how to show it on edit form page.

I've added the select box to edit_form.html and it's showing, but how to save that data I'm not sure about. In the SQL there's a 'settings' field, can I save custom data like this, there?

I can create a new column sure, but I'd like to avoid hacking the established structure if I can... Thoughts?


texts: I was wondering if anyone out here has tried to integrate paybox as a payment service for expresso store so far? I'm about to start working on the integration but if someone already made an attempt I would like some feedback before starting. :-)


texts: Channel Form page doesn't load for guests

texts:
I'm trying to figure out how to allow guests to fill out a channel form and add entries.  Based off docs I went into channel settings and clicked on "Allow Guest Submissions" and I chose a default author (super admin email).... however when i turn those on the entire page doesn't even load for guests.

based off this post, it seems like it could be permission based... However I don't have enough reputation to comment on that post and ask where specficially am I checking for those permissions?


texts: Solspace iCalendar: how to download only one (e.g. next) occurrence of an event?

texts:
Is there a way to only add the next occurrence of an event to iCal using the icalendar tag?

I see the previous answers on how to do this with other calendar tags (cal, etc.), but I would appreciate any help specifically for an .ics file.

Thanks in advance!
Misha


texts: Possible to send message for status change

texts:
Should it be possible to send a notification in mx notify control if the status of an entry changes from x to y?

I can get it to send if an entry with status x is updated but I only want it to send when the status specifically changes from x to y.


texts: Expresso Store 2.5.1 (EE2) checkout/tax query

texts:
Is it possible to show prices inclusive of tax at checkout with this version of Store?

At present, there doesn't seem to be any tags to show inclusive prices in the basket/checkout and if we try to apply these via a plugin (mulitplying via the tax rate) the calculations are out, I guess by the rounding that is taking place after tax is applied.

For example, client wants to show the following:

Items listing unit price inc tax, quantity and total line price inc tax (before discount)
Subtotal of basket inclusive of tax
Discount as applies to subtotal
Total after discount
Shipping costs
Total after shipping

Anybody know if the above is at all possible?

Cole


texts: Dev Demon Form - Missing Data.(MISSING_FORM_DATA)

texts:
I've recently moved a site to a new sever and I'm getting a strange error message on the forms page.  The site is using EE 2.5.5 and Dev Demon forms 3.1.2.  When I try and submit a form I get the following message:

The form you submitted contained the following errors

Missing Data.(MISSING_FORM_DATA)


texts:
I built an EE site for a business client several years ago, and they are now asking about my adding a client portal to store and share documents. This would need to be a secure area of the site, as the documents may be sensitive. They are currently on a shared hosting plan. My questions are:

Can I build this in EE, and be confident that it will be adequately secure? Perhaps using Protected Links, Zoo Visitor and SSL certificate, and storing the files above the root?
Would it be better to store files on Amazon S3?
Can it be adequately secure on shared hosting?
Would I serve the client better by recommended a service such as ShareFile or something similar, that could be branded.


texts: Does Cartthrob + Stripe only accepts dollars?

texts:
I have cartthrob and stripe set up and throughout the cart process everything says euros, the admin panel, to invoice, the order confirmation, etc. The default currency setting in Cartthrob is set to EUR as well.

When I send to stripe, it always accepts payment in dollars then converts to euro. My default currency in stripe is set to EUR, but my location is always being set as purchasing from the US in my stripe test area.

The question is, how do I allow stripe/cartthrob to make sure euro is sent as the primary currency and how do I change the default country the payment comes from?


texts:
I have a multisite in my project but when I go to the cp and try to switch sites, the page simply refreshes and stays on the default site. When I open incognito in Chrome, login and try this again is does work, but when I then switch back to the default site and try to switch to the sub site again it simply refreshes again and stays on the default site.

It seems like some kind of cookie problem. How do I fix this?


texts: Referencing Playa Field inside a Matrix Field from another Channel

texts:
I am trying to reference an image field from blog posts (blog channel) to display on a staff profile page (pages channel).

On the blog post there is a matrix field "blog_smile":

Column 1: blog_smile_ortho (playa field - used to assign the staff member)
Column 2: blog_smile_image (assets field - to assign image)

How could I be on the profile page and say:

Go look at the blog channel,
Look in the matrix field "blog smile" and find "blog_smile_ortho" entries that are the same entry id as the profile page you're on
Then get the "blog_smile_image" file from that same matrix field
And repeat this process up to 6 times working back from todays date.

Thanks for any advice you can give.


texts: How do I include three fields using search:?

texts:
I have a channel that displays artist information and they have an option to list their top three disciplines. Each discipline is listed in a separate field.

For example an artist could indicate the following disciplines:

Photography
Painting
Pottery

Related to this I have a page for each discipline to show the artists which have selected that discipline. Currently I have it set to filter entries as follows:

search:first_discipline="photography"

The only problem here is that it doesn't show those artists that may have selected photography as their second or third discipline.

I tried combining multiple fields in the search parameter like this:

search:first_discipline|second_discipline|third_discipline="photography"

That appears to cancel out the filtering and brings back all entries. Is there a way to search all three fields?

Thanks!


texts: How can I use a captcha in a form that is not an add-on?

texts: I'm using a form in a web page that is standard html and css, NOT any kind of Exp Eng add-on tag set. Is there a way to use Exp Eng's captcha system directly in a webpage form like a typical Exp Eng tag? I've been using reCAPTCHA from Brandon Jones and like it a lot but it is an extension that automatically replaces the Exp Eng captcha. Can a simple add-on be written that uses the extension and embeds a captcha in the page?


texts:
I'm using Safecracker to edit entries for the Channel Foo.

Suppose I have another Channel Images which has a filename field and a relationship field that points to Channel Foo.

Essentially, a Channel Foo entry can have 0 or more "images"(1-to-many)

Now when I am editing entries, I may want to add new images to a Channel Foo entry.

Is there a way to do it in Safecracker?


texts: Password Protect a Directory with .htaccess in root directory

texts:
I've created a directory in site root and used .htaccess/passwd files to build authentication. When navigating to that secure directory on front end I'm getting the EE 404 page template. Any ideas how to accomplish?

Here's my .htaccess file:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

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

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


texts:
I am redirecting a user to a custom template after they submit a form.
I'd like to include their name on the thank you page, but as it's a redirect, I can't get any form data.

I tried editing this line on mod.forms.php

$form['return'] = $form['form_settings']['return_url'];

To

$form['return'] = '/mytmeplategroup/thankyou/' . ee()->input->post('name_first');

But as the return URL is generated BEFORE the form is submitted, this is clearly the wrong answer.

Can I pass custom variables to a new template (worst case, just a form submission entry Id and I can go get the data perhaps?)


texts:
I've got a long running EE install that uses the old Google Map plugin.

Lately though, we've been seeing this error in the CP

you have exceeded your daily request quota for this API

I've seen one other dev see similar - wonder if anyone else has and has a fix?


texts: Expresso Store: how do you set a payment method to be selected by default?

texts:
I am using expresso store. I have 2 payment methods, offline payment and paypal. Currently it shows offline payment by default. How do I get paypal to be the default payment method?

<select id="payment_method" name="payment_method">
    {payment_method_options}
</select>


texts: Carthrob price modifier wont show price in cart

texts:
I am using Carthrob with the price modifiers fieldtype.

In the add to cart form everything works as it should. However, when I add an item to the cart, I can't get the price to display, and the cart total is all out of wack.

I have done a variety of tests but can't figure out the issue. Can anyone take a look at the following code and see if I am missing something really obvious?

I have the following code for my add to cart form:

{exp:cartthrob:add_to_cart_form return="enter/checkout"}

    {exp:cartthrob:item_options entry_id="{entry_id}" }
        {select id="purchase-submissions-select" class="standard required"}
            <option {selected} value="{option_value}">{option_name} {price}</option>
        {/select}
    {/exp:cartthrob:item_options}

    <input id="purchase-submissions-submit" type="submit" value="Submit" />

{/exp:cartthrob:add_to_cart_form}

and this as a test in my cart:

{exp:cartthrob:update_cart_form return="/index.php/basket/"}
    {exp:cartthrob:cart_items_info}

        {item_option:fees} - {price} - {quantity}<br />

        {if last_row}
            {cart_total}
        {/if}

    {/exp:cartthrob:cart_items_info}
{/exp:cartthrob:update_cart_form}

P.S I have seen the other thread with a similar problem, and have checked and its not the same issue (i.e no dollar symbols in with the price).

Thank you.


texts: Expresso: international orders not able to complete

texts:
A client, whose website I did not develop, is having intermittent problems with international orders.  Customers are not able to progress from the initial cart/address screen to any other page.
I think a fix for this client shouldn't be too hard, but since I'm not an EE developer, I don't know how to do it. The client wants shipping charges to be automatically generated for U.S. orders only. All international orders will require direct follow-up. So, how do I set it up so that shipping cost information is suppressed for all international orders and visible only for U.S. orders?

Thank you!


texts:
I am looking to integrate EE with the WorkflowMax (SAS project management software, via their API). The idea was to collect leads directly into Workflow max when someone requests a callback, as this is the CRM for the business.

I want to use FreeFormPro to setup these enquiry forms etc. Should I do this first, and fine tune all our forms, then get the plugin developed?

I was also planning on using Freeform to add people to our CampaignMonitor mailing list, for those who arent enquiring but just want to get the newsletter (people we no very little about).

Will I still be able to use FreeFormPro once we connect to Workflowmax- not sure how all this works together. Thanks


texts: Migrating entire site from V2 to Open Source - how?

texts:
We have an EE site built on v2.10.1 and it’s creaking at the seams. The site was designed and developed by an external agency about 4 years ago before my time began here. I am a Wordpress veteran, but before we make the decision to move over to Wordpress, we have been considering re-building the site on the new EE open source platform.

I guess my question to you all is, what is the process of migrating the content from an old version to the new open source. Are there any drawbacks? - or is it just an EE install on a new server and copy the content over?

Your comments, advice would be greatly appreciated.

regards Naomi -


texts: Trying to use EE form fields in multiple admin_notify chain

texts:
This is a follow-up to my previous question

I’m trying to send the output of a particular form to two emails: one, a generic alias that is hardcoded in; and the other, the individual originator's email which is listed in the individual channel entry. When I test the form, I receive notification at the hardcoded email address, but not at the individual entry/originator address. I’ve tried this with the hardcoded email in first position, and in second position; and I still get the same results.

The channel name is “originators”. The field name is “originator_email”.

The URL is http://dev.soundmtg.com/originator/lesli-schauf (the site’s index.php is hidden from the URLs, so originator is the template group, and this uses the index template in that group.) In the entry, the originator_email is leslis@fairplay.com.

ExpressionEngine 2.5.3
 Freeform 4.0.8

Here’s the code that I’m using:

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

Quick Quote

{exp:freeform:form
    form_name="quick_quote"
    return="thanks"
    admin_notify="lesli.schauf@gmail.com|{originator_email}"
    recipient_user_template="quick_quote"
    required="first_name|email_address"
    form:id="quote_form"
    admin_notification_template="quick_quote_notification"
}

<fieldset class="quote_main">
    <fieldset class="left">
        *First Name
        <input type="text" name="first_name" id="first_name"/>
        *Last Name
        <input type="text" name="last_name" id="last_name"/>
        </fieldset>
        <fieldset class="left">
        *Email Address
        <input type="text" name="email_address" id="email_address"/>
        *Phone Number
        <input type="text" name="phone_number"/>
    </fieldset>
    <input type="submit" id="form_button" value="Quote Me" title="Quote Me" />
    <input type="button" id="form_button" class="cancel" value="Cancel" title="Cancel">
</fieldset>
{/exp:freeform:form}

{/exp:channel:entries}

(Many of the form fields and much of the structural HTML removed from the code snippet above because they work fine - it’s the multi-email notification that isn’t working as expected.)

I expect this to record the form entry in the Freeform console, and to send an email to lesli.schauf@gmail.com, and to also send an email to leslis@fairplay.com. But no matter whether I list the hardcoded email first in the sequence, or second, I see the form entry in the Freeform console and receive an email at lesli.schauf@gmail.com but get nothing at leslis@fairplay.com.

Any suggestions on what I might be doing wrong?

EDIT: I first tried using embedded variables, but that wasn't working either. Here's that syntax:

First, from the template:

{exp:channel:entries channel="originators" disable="member_data|categories|member_data|pagination" dynamic="no" url_title="{segment_2}" limit="1"}
{embed="includes/quick-quote" email_addresses="lesli.schauf@gmail.com|{originator_email}"}
{/exp:channel:entries}

And then the Freeform tag from the embedded quick-quote template:

{exp:freeform:form
    form_name="quick_quote"
    return="thanks"
    admin_notify="{embed:email_addresses}"
    recipient_user_template="quick_quote"
    required="first_name|email_address"
    form:id="quote_form"
    admin_notification_template="quick_quote_notification"
}


texts: Per form permissions for Solspace Freeform for different EE Member Groups: plugin examples that use EE Member Group privileges model

texts:
Expression Engine v2.9.2

I have a paid licensed version of the Solspace Freeform Pro (4.2.2) module. The current permissions model for this plugin does not allow Expression Engine Control Panel per-form viewing and moderation to different EE Member Groups. It allows permission settings on the parent Module only (which means access to all forms). This has been confirmed by Solspace support as of today (2015-03-26).

I have EE Member Groups that should only be permitted to view form submissions (and moderate said form submissions) that they have access to via the EE Control Panel. (I don't want to have to make a front-end templated interface to allow permitted users to approve at that level, although if left with no choice I will do that).

I am comfortable hacking at the Freeform Pro source code to add this feature, but I need some guidance/guidelines on applying the Expression Engine Permissions Member Groups module. I see the Expression Engine docs on the Cp::allowed_group() method but it's pretty slim.

Specifically, if there are any third-party plugins that already use the EE Member Group level permissions model that I can take a peek at the source code to see how it has been done before within the EE Control Panel.

EDIT 1: This person has the same request but didn't get an answer.

EDIT 2: dashEE does this. That might be enough to get me going and/or I will contact the developer.

Thanks in advance.


texts: Check for boolean return from Channel Field of type 'matrix'

texts:
Using EE v2.4 and Matrix v2.2

I'm trying to check if the matrix '{article_images}' rows are != '0'.

Within the channel:

{if article_images}

    {article_images}
      {exp:ce_img:pair disable_xss_check="yes" src="{image_matrix_image}" width="500" quality="80" allow_scale_larger="yes"}

{image_matrix_cutline}{if image_matrix_byline}  ({image_matrix_byline}){/if}

      {/exp:ce_img:pair}
    {/article_images}

{/if}

'{article_images}' never evaluates to false.

I've tried:

{if article_images}
 {article_images}
 {if '{image_matrix_image}' != '0'}

      {exp:ce_img:pair disable_xss_check="yes" src="{image_matrix_image}" width="500" quality="80" allow_scale_larger="yes"}

{image_matrix_cutline}{if image_matrix_byline}  ({image_matrix_byline}){/if}

      {/exp:ce_img:pair}

{/if}
{/article_images}
{/if}

Which works as desired but means that the div containing the orbit plugin is displayed within the loop for as many images as exist.

Is there a way to check the number of rows in the matrix prior to entering '{article_images}'?

Thanks for any input.


texts: Expresso Store - Create order programmically

texts:
Is there a way to create an Exp:resso Store order programmatically? Whats the minimum requirements for it to show in the dashboard and be a valid order.

Thanks
K


texts: Compatibility / Performance Gains from using MariaDB?

texts:
My hosting company is now offering MariaDB as an alternative to MySQL. Does anybody know if EE is compatible with MariaDB and if it offers any performance benefits?

https://mariadb.org/


texts: Display ALL latest related entries using Playa

texts:
I'm using Pixel & Tonics Playa which is working great however I am wondering if there is a way to display ALL related entries without the user having to manually select them?

The example I have is as follows ...

I have a "profile" channel which displays some info about the member. I want to set up the page to also display the members blog posts using Playa.

Since there are multiple members I cannot hard code this in the template. I know Playa allows you select channels to display related entries but ideally I want to pull in the latest posts for each user without them having to go in and manually select their latest post.

Code snippet:

{exp:channel:entries channel="people" disable="categories|category_fields|member_data|pagination"}

{title}

{about}

    {exp:playa:children field="related_entries"}

{title}

    {/exp:playa:children}

{/exp:channel:entries}

When editing the entry, the Playa field looks like this

As you can see in the above image it is a manual process. I want to know if there is a way to set it up so it pulls in the latest posts automatically?


texts: Making: View {# of entries} in {# of categories with entries}

texts:
Looking to create an overall stat statement that can return these stats:

View {# of entries in channel "distributors"} in {# of categories with entries within channel "distributors"}

Need it to only count the categories that have entries, not the empty ones. I know I can do that first portion, but wonder how to do the second. Also, can't quite figure out what combination of exp:channel tags I'd need to use.


texts:
Using Assets 2.1.1 with a single S3 source.

All images are displaying correctly on the front-end, but no thumbnails are viewable in the Assets file sheet. All of the images are indexed, and the default thumbnail placeholder is sized to the same dimensions as the actual image, but no visible thumbnail.

I don't think this is an Assets bug, as it was working previously. In order to track it down thought, I'm wondering the following:

Are Assets thumbnails for an S3 source generated and stored locally or the S3 source?
I'm thinking this is permissions related, but not sure if it's local or on the S3 source.

Any info or advice here would be greatly appreciated!


texts:
My client is using version 1.6.5 of Store with the PayPal Express gateway and 2.5.5 of ExpressionEngine for a site we built a couple of years ago. Suddenly, over the last couple of weeks, there have been many incomplete transactions. Users are complaining that they are either unable to get onto the PayPal site at all after putting in their details, or those that can get onto PayPal can't click to complete the purchase. Other orders are getting through fine. I have been unable to replicate the problem on my end despite ordering several items. Still, there are several incomplete transactions every day and my client is getting upset.

It is very costly and time consuming to upgrade Store and EE (the current version of Store won't work with my version of EE according to the website) and my client isn't really in the position to authorise this kind of cost.

Does anyone know what's causing the sudden problem? I checked with the web host and they haven't done anything to the server. Does anyone know of a fix for this?

Any help appreciated. Thank you!


texts: Stash - a variable that was set is not showing the correct value

texts:
I have this code, setting some information to stash variables

{exp:rest parse="inward" ...}

foo_1 in exp:rest = {foo}

bar_1 in exp:rest = {bar}

    {exp:stash:set name="foo_1"}{foo}{/exp:stash:set}
    {exp:stash:set name="bar_1"}{bar}{/exp:stash:set}
{/exp:rest}

{exp:rest parse="inward" ...}

foo_2 in exp:rest = {foo}

bar_2 in exp:rest = {bar}

    {exp:stash:set name="foo_2"}{foo}{/exp:stash:set}
    {exp:stash:set name="bar_2_2"}{bar}{/exp:stash:set}
{/exp:rest}

The code above outputs

foo_1 in exp:rest = -35.2286
bar_1 in exp:rest = 173.9478
foo_2 in exp:rest = 0
bar_2 in exp:rest = 0

...but retrieving them returns nothing. The code below

foo_1="{exp:stash:foo_1}"

bar_1="{exp:stash:bar_1}"

foo_2="{exp:stash:foo_2}"

bar_2="{exp:stash:bar_2}"

outputs

foo_1=""
bar_1=""
foo_2=""
bar_2=""


texts:
We need to be able to email subscribed members (that we add to Mailchimp via Postmaster) a weekly email of the latest posts made to the site.

Can anyone point me in the right direction and provide some tips on how we can accomplish this?

Thanks!
Dan


texts: "Too Many Redirects" browser error after adding some stuff to .htaccess when trying to view control panel login page

texts:
RewriteCond %{HTTP_HOST} !^\.site\.com$ [NC]
RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L]

I added this to my .htaccess file to remove the trailing slash and it has caused a "Too Many Redirects" browser error when trying to access the control panel at site.com/system or site.com/system/. I think EE is trying to add a url back in on refresh and then the htaccess is trying to remove it again. Any ideas how to fix this?

The CP is accessible through site.com/admin.php so my client isn't completely locked out.

EE 2.5.2

Update with full .htaccess file

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteCond %{HTTP_HOST} !^\.site\.com$ [NC]
RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L]
</IfModule>

ErrorDocument 404 /error/404

<FilesMatch "(\.jpe?g|gif|png|bmp|css|js|flv|pdf)$">
ErrorDocument 404 "File Not Found"
</FilesMatch>


texts: Conditional on Playa field with var_prefix

texts:
Is there any reason this conditional wouldn't work?

{standard_page_events var_prefix="cat"}
    {cat:event_category_description}
    {exp:playa:coparents var_prefix="event" channel="events" child_id="{cat:entry_id}"}
        {if {event:count} == 1}

{/if}
    {/exp:playa:coparents}
{/standard_page_events}


texts: Expression Engine Core (Free Version) Templates

texts:
I downloaded Expression Engine Core, the free version of EE.

Does this version save templates as files or only in the database?


texts: DevDemon Forms can't get any conditionals to work

texts:
I'm desperate. I've purchased Forms several times for different clients, and recently upgraded to a developer license since it provides such great functionality for us. I've come up against a problem and emailed their support twice about, with no answer (plus a third time about something unrelated, and no answer to that either....)

My newest client needs conditional logic on their form, and no matter what I try, I cannot get them to work. I am using the Forms fieldtype for a channel. The form shows up correctly, I can make edits to it as needed, I have {exp:forms:output_js} being called in successfully for other forms on the same site (with no conditionals).

EE version 2.10.2, Forms version 3.5.3

I have a checkbox question of: "What times are you available to volunteer?" with the checkboxes / values of:

All day / all-day
Morning shift / morning-shift
Afternoon shift / afternoon-shift

If, and only if, "All Day" is selected, I have a follow up checkbox question ("If you are available all day, which authors would you be interested in assisting?") that I would like to show up. I've turned conditionals "on" for this question, and selected:

Show this field if any of the following match:

Field: What times are you available to volunteer?

Conditional: is

Value: all-day

Doesn't work. I've tried all sorts of changes: switching from "show" logic to "hide" logic, using numerical values instead of alpha, with spaces, without spaces, with dashes, without dashes, radio buttons instead of checkboxes, etc. I've deleted the form, recreated the form, cleared cache, tried on other forms, etc.

I'm at a complete loss - if I can't get conditionals working, I'm going to have to request a refund and find another solution (which I want to avoid, I love everything else about this plugin!)


texts:
I am having a tough time getting "is_system_on" to work right in production. In the "General Config" page in the CP, neither the "yes" or "no" radio buttons are set. When I select one and click submit, they go blank again.

In 'config.php', I am seeing something like the following, with multiple "is_system_on" settings which looks suspicious. Any ideas?

$config['app_version'] = "253";
$config['install_lock'] = "";
$config['license_number'] = "xxxx-xxxx-xxxx-xxxx";
$config['debug'] = "1";
$config['cp_url'] = "http://local.site.com/admin/index.php";
$config['doc_url'] = "http://expressionengine.com/user_guide/";
$config['is_system_on'] = "y";
$config['allow_extensions'] = 'y';
$config['site_label'] = 'My Site';
$config['cookie_prefix'] = '';
$config['is_system_on'] = "n";
$config['is_system_on'] = "n";

My config.php file is writeable (obviously, since the extra entries are showing up). I am using the focus labs config stuff, but removed the line hard-coding the is_system_on variable.


texts:
I am using EE's built-in Mailing List Activation Instructions email to send out an html templated email to users who signs up on the website's newsletter. The email is sending perfectly, but instead of displaying the rendered html template and content, it shows the html code directly onto the email client. Please see below.

It does the same with Gmail. I have set the default email type in the backend as HTML, but does not seem to take effect.

Is there perhaps anything I am missing or doing incorrectly maybe?


texts: There are some entries in the db that are out of date, please select

texts:
EE 2.6.1
Assets 2.2.1

I was doing an index update in Assets when ran into that, someone can help me understand?


texts: Since updating to Wygwam 3, when you add a table it no longer shows table cell guides. So all you see is nothing. No way to see which cell you are in or even if a table was inserted at all. I understand that you can attach a style sheet to the Wygwam field and style the table that way... but it seems like a major usability issue that by default now tables are basically invisible. Is there anyway to fix this and make guides show up by default?


texts:
I am trying to list upcoming events in Expression Engine. I have the following code:

{exp:calendar:events sort="asc" dynamic="no" status="current" event_limit="2"}

{title}

{/exp:calendar:events}

I am unable to retrieve the full path (www.domain.con/etc/etc). I have tried url_title in the href but it is just the name of the entry.

These entries belong to a channel called Calendar: Events if that matters.

What is the tag to get the full path to an Entry?

FYI based on the current data, the first entry should be:
http://www.domain.com/index.php/events/test-speaker-series/#john-smith


texts:
This error:
Invalid EE Conditional Variable
Filename: libraries/Functions.php
Line Number: 2761

occurs when I have this code in a BrilliantRetail template:

{items}

    {!--
        Only show the product image for publications or JM fund
    --}
    {if "{sku}" != "CE_FEE" AND
        (preg_match('/^NOTE/',  "{sku}") OR
         preg_match('/^PUB/',   "{sku}") OR
         preg_match('/^EPUB/',  "{sku}") OR
         preg_match('/^JMMRF/', "{sku}")
        )
    }

    {/if}

{title}

    {options}

  {price_html}
  <input name="qty[{hash}]" class="input_tiny" type="text" value="{quantity}" />
  {subtotal}

{/items}

This only began happening when I upgraded to 2.7.2. Worked perfectly with 2.5.2.

What should I check?


texts:
I moved my IIS site from a hosted server (Apache) to IIS. In doing so I

Made the normal IIS install, installed PHp and mysql
Copied all the files to wwwroot
Added the database.

Now what happens is that i can get to the root mynewserver.com but if i click any links or type a link that has the subdirectory such as mynewserver.com/mypath i get 404 errors.

But mynewserver.com/system does work.

Another hint is that mynewserver.com/index.php/mypath totally works...

I'm guessing this has something to do with IIS looking for directories over the PHP paths?
Or what config am i missing?

Any suggestions?


texts: WYGWAM 'Format' dropdown modification needed.

texts:
I would like to make some modification to  the [‘Format”] dropdown box in WYGWAM but I can not find the file. (Normal, formatted, address, Heading, etc]. I figured out how to make the modifications needed for the [“Styles”] dropdown box from the Wigwam Docs and that works great.

How do I change the  [‘Format”] dropdown box or create a custom file like I did with the styles by adding ‘my_styles’


texts: CRON job not working for subscription with CartThrob 2.5.3

texts:
Having a problem with a CRON job.

I made my first subscription on our live site to recur every month. Then I went into the Subscriptions control panel and changed the subscription that I had just made to recur every day so that I could test it. After that I remembered that it needs to have a CRON job on the server so I set it up to use the first method using a shell script listed here: http://cartthrob.com/docs/docs_subscriptions/#setting-up-rebilling.

I set up the CRON job to run every day at 6:00 AM. Then this morning I received an email with the following text in it:

  CartThrob has noticed that your system folder path does not appear to
  be set correctly. Please open CartThrob's Extload file and update the
  URL: extload.php

My system is above web root so I changed the $system_path in extload.php to $system_path = "../system"; which is relative to the themes folder. Then I scheduled the CRON job to run a few minutes into the future to see if it would work. The time came and went and there were no new orders placed.

I then checked the subscription next billing date and it was set for today.

Then I thought that perhaps I was using the wrong script for the CRON job so I changed it to method 3 trying PHP's "passthru" function and rescheduled to a few minutes into the future.

Once that was changed I was sent an email when it ran saying "Permission Denied". So then I changed it back to method 1 using the shell script, reschedule, and waited for an order to be processed. Nothing.

I'm using Authorize.net CIM for my payment gateway. Any idea what I'm doing wrong?

Thanks for your help!

Running ExpressionEngine 2.7.3 with CartThrob 2.5 on Media Temple GS


texts:
I am trying to filter a list by category, with each staff member listed beneath it. Here is my code:

{exp:channel:entries channel="offices" entry_id="23" dynamic="no"}
{office_staff}
    {exp:gwcode_categories entry_id="{entry_id}" style="linear" entry_count="yes" parse="inward"}
        {exp:stash:append_list name="city1_staff_{cat_id}" save="yes" scope="site"}
            {stash:title}{title} - {cat_id}
{/stash:title}
        {/exp:stash:append_list}
    {/exp:gwcode_categories}
{/office_staff}
{/exp:channel:entries}

{exp:channel:categories channel="staff" style="linear"}

{category_name} - {category_id}

    {exp:stash:get_list name="city1_staff_{category_id}"}

{title}

    {/exp:stash:get_list}

{/exp:channel:categories}

The categories are listing properly, and looking at mustash, it looks like the lists are being generated correctly, but for some reason the stash get_list isn't populating in the second code block. I am sure it is something simple, but its got me going in circles. Maybe someone has a clear view of it?


texts:
I'm using Low Search to search a business directory where individual businesses are tagged with the Solspace Tag module. The search form has a field for keywords and a drop-down list of tags.

Here's the code I have that's working:

      {exp:low_search:form
        collection="vendors"
        search_mode="all"
        result_page="resources/marketplace/search_results"
        query="{freebie_4}"
        loose_ends="yes"
      }
        <fieldset>

            Search by keyword
            <input type="search" name="keywords" value="{low_search_keywords}" />

            I need:
            <select name="search:vendor_services">
              <option></option>
              {exp:tag:cloud
                status="open"
                tag_group_name="vendor_service_tags"
              }
              <option{if low_search_search:vendor_services == '{tag}'} selected{/if} value="{tag}">{tag} ({count})</option>
              {/exp:tag:cloud}
            </select>

            <button type="submit">GO</button>

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

But I'm having trouble getting Low Search to search for an exact match in the tags custom field. For instance, if I search for the tag "farm" I get results with the "farmers market" tag as well.

Adding an '=' sign for an exact match like value="={tag}" only matches if that's the only tag.

Reading this post, it sounds like it might not be possible since I'm trying to do an exact match with multiple values.

Is this possible with Low Search? Or should I be using Solspace's Super Search instead since is has a tag parameter specifically for searching tags?


texts:
I've searched the EE forum archives and have been unable to find a solution to a problem I'm having. I have a custom category field that I'm using to determine placement of category links throughout my website (e.g main nav, supporting links, etc). This is working fine, however, my issue is that I'd like to not write the ',' after the category link (see code snippet below) if its the last category to be displayed of those that are flagged to show. I can't use {count} and {total_results} vars here since I don't know up front which categories will need to be displayed (based on the custom field). If these were channel entries, I could use the search:field_name option to filter the entries and then use count and total_results vars, but that doesn't exist for the channel:categories tag. Any ideas of how to solve this one? I'm running EE 2.5.5

{exp:channel:categories style="linear" category_group="3"}
            {if nav_location == 'Display in primary and header navigation'}
                {category_name},
            {/if}
{/exp:channel:categories}


texts: International Shipping conditional in Exp: Store

texts:
Is it possible to hide all other shipping options( only to show international shipping) in expresso store if the country code is not U.S or Canada?

Has anyone had experience with this?


texts: Display entries image files in grid field

texts:
I've got a grid field called 'images', it has 2 columns in it, a 'files' field, which I've called 'file' and a 'text input' field, which I've called 'caption'. I've got an entry with several images in the 'files' field, and some text in the 'caption' field, but I can't work out how to display these on the front-end, this is what I've got, which doesn't work:

{images}
    <img src="{file_url}" alt="{caption}" title="{caption}" />
{/images}

I've also tried {file} and {url} in the src but nothing seems to work. If I use the {exp:file:entries} tag that just outputs all my images, and doesn't output the caption anyway.

Any help would be very much appreciated.


texts:
I'm using EE 2.8.1 and Zoo Visitor 1.3.32.

I'm trying to output a list of all members using

{exp:zoo_visitor:memberlist}

    {title}

{/exp:zoo_visitor:memberlist}

and have also tried

{exp:channel:entries channel="members" status="not closed" dynamic="no"}

     {title}

{/exp:channel:entries}

But each time it only outputs 3 members out of 15. The members it does output are guests and super admins - it won't output any member of the default Members group.

Any body come across this before?


texts:
So I've looked at this post:

When trying to update indexes a get a JS error and it never finished

I added $config['assets_site_url'] = '/index.php'; to my config file but I'm still getting this error Uncaught SyntaxError: Unexpected token < matrix_multi_upload.js:166:

Does anyone have any other ideas on what could be causing this issue?

Matrix allows me to upload photos, but I REALLY like MMU!

Thanks for the help!


texts:
I just updated to 2.7.2 and I'm trying to rework all of the relationship tags (the updater failed to convert them automatically as promised).

So I've got three channels: Author, Publisher, and Book. A book has two relationship fields, one for author (writer) and one for publisher that link to the other two channels respectively. When I display the the author listing, I need to display all related books. This is doing exactly what I want.

        {parents field="writer_rel"}

{parents:title}

                    {if parents:publication_date}
Publish Date: {parents:publication_date}
{/if}
                    {if parents:format}
Type: {parents:format}
{/if}
                    {if parents:isbn_hardback}
Hardback ISBN: {parents:isbn_hardback}
{/if}
                    {if parents:hb_pages}
Pages:{parents:hb_pages}
{/if}
                    {if parents:isbn_paperback}
Paperback ISBN: {parents:isbn_paperback}
{/if}
                    {if parents:pb_pages}
Pages:{parents:pb_pages}
{/if}
                    {if parents:leo_call_number}
Leo Call Number: {parents:leo_call_number}
{/if}

        {/parents}

So far, so good, but when I add the Publisher to the list, which is the second relationship field, things stop working. If I treat it just like any other field and add

{if parents:publisher_rel}
Publisher: {parents:publisher_rel}
{/if}

It actually prevents the entire parents tag from being parsed. So I get this rendered on the page.

If I try to treat it like it's own independent parent tag like so:

                        {parents field="publisher_rel"}
                        {parents:title}
                    {/parents}

It just doesn't render. Weirdly, when nested inside the original parents tag it also prevents any further looping, so it doesn't display anything after the first entry.

So, yeah. I'm stuck. Any advice? Thanks very much.


texts: How do I manipulate the value of a tag prior to final output?

texts:
I need to have PHP on "input" instead of "output" (to feed some tags) so I can't use PHP to change the value of a tag. Is there either a built in function to handle this, or a way to make my own tag that can take another tag's value as input?

What I have now:

{exp:channel:entries channel="test"}
    {image}
        <picture>
            <source srcset="{path}/_mobile/{filename}.{extension}" media="..." />
            <source srcset="{path}{filename}.{extension}" media="..." />
        <picture>
    {/image}
{exp:channel:entries channel="test"}

But the {path} is absolute and I want it to be relative (to handle https vs http). How would I do this?


texts: Multisite Manager. Adding a second site question

texts:
Just a quick question really to anyone who has added a second or third site with EE and MSM. When integrating the second site is there a way round of allowing the client to carry on updating the first site.

Or is it a case of what we are doing now and stopping the client from updating until the integration of second site has been completed?

Any views would be greatly appreciated.

Dave


texts: Upgraded exp-resso Store from 1.6x to 2.5.1 Check Out Error

texts:
I upgraded exp-resso Store from 1.6 to 2.5.1. Store worked fine on 1.6 but I needed to upgrade EE to 2.10.3 Now I get the checkout error "This transaction cannot be accepted." I checked with AuthorizeNet and the API Login ID and the Transaction Key are fine. It was my understanding that I needed to change/add the payment_method in checkout3.html file.

Original code in checkout3.html

<select id="payment_method" name="payment_method">
<option value=""></option>
{payment_method_options}
</select>

changed to this:
<select id="payment_method" name="payment_method">
<option value="AuthorizeNet_AIM" selected>Credit Card</option>
</select>

I still get the error “This transaction cannot be accepted."

I have looked through support docs and I still can’t figure out what to do. Any suggesting.


texts: Is it possible to attach a PDF to user notifications in Freeform Pro

texts:
Is it possible to send a user notification with a pdf attached to users who fill in a form via Freeform Pro?

It would be the same pdf for every user (terms and conditions for a site i'm working on)

I thought a way round it might be to have it as a hidden field on the form and create a file upload field within that form. As I can see that it is possible to add attachments to the user notification if any files are uploaded when the form is submitted. But the problem would be that forms would take a little longer to submit for the user and I'd end up with potentially hundreds of copies of the pdf on the system.

Could anyone offer any advice or solution? Thanks.


texts:
Using EE 2.5.5, I wish to output a segment_x (segment_2, which aligns with our department names) so that I may class by department; i.e.,

    <more html goes here>

would become

    <more html goes here>

However, I can not add {segment_2} to HTML portions of the
template, nothing outputs.

How to do so?


texts:
I've recently uploaded a load of files to the assets folder in my file directory and indexed them via the control panel in the back end but i'm getting lots of transparent thumbnails instead of correct thumbs? Any ideas?

http://postimg.org/image/fpvy74mvh/


texts:
My site uses a "guest" account and therefore needs to allow multiple simultaneous logins from different IPs. So I'm using "Session ID Only" for my Website Session Type.

Is there any good documentation about keeping preserving the Session ID string (S=d571da22a6...) when generating internal links in templates? Through trial and error I've found that when looping through entries, the {url_title_path='group/template'} format will output the Session ID string (thus keeping the user logged in when they click one of them), whereas {comment_url_auto_title_path} does not.

But for the life of me though I can't figure out how to link to the home page and output the Session ID string. {site_url} doesn't do it, and {cp_session_id} only applies to users who have access to the control panel.

Am I missing something? Is it the expected behavior that clicking any link without the Session ID string will log the user out (or at least display the page as if the user is logged out)?


texts: Expresso Store: Large quantity of items in cart gives PHP error

texts:
Getting a PHP error in Expresso Store if 35 products or more are in the cart.

Message: unserialize()[function.unserialize]: Error at offset 49148 of 49151 bytes
Filename: libraries/store_cart.php
Line Number: 900

Any ideas why this would happen? Tried recreating the issue and on the second time, the cart just empties when I add a 36th product.


texts: Adding new channel fields takes 5 minutes

texts:
I work with an EE website that has 293 custom fields, and 125k entries. Nowadays, whenever I am adding a new channel field, it takes between 4 and 5 minutes to complete the task! Also, it can take up to 2 minutes to delete a channel field.

I understand that this task requires adding a row to the exp_channel_fields table, as well as adding at least 2 columns to the exp_channel_data table.

Anybuddy have any insight into why this is taking so long? Any tricks to speed this up?

Thanks!

EE 2.5.5


texts:
I created a simple member's area, where people can login and download PDFs.

When I created the new member group, create a new member, and login as them – all file paths are disappearing on the front-end, meaning while the new member's login session is active, no path links are displaying when viewing the site/templates, in any sections. All other tags are coming out as normal.

The original paths are in a file field in a Matrix row – but I also created a basic file field to test (native), but still it is not showing paths.

I can't seem to find any occurrences or similar problems to this.

When I am logged in as Super Admin all is working as expected, it is only when I login as a member from this new member group, file paths disappear on front end.

I'm on EE v 2.5.3.

Thanks in advance!
Glen


texts:
Is there a way to return 'no results' from a custom plugin with the standard conditional of:

{if no_results}{/if}

I have resulted to using:

if ($query->num_rows() > 0) {

} else {
    return $this->return_data = "

Sorry, no results

";
}

Thanks.


texts: {exp:channel:entries search:duration_field="less than 40 minutes"}?

texts: Is there a way to use duration field with search parameter of {exp:channel:entries}? How to get entries where total minutes in duration field <= 40?


texts: Issue when forms - "This form has expired" error

texts:
I am using EE 2.9 and trying to put together a channel form. However, while it worked initially, now all it gives me each time I test it is the "This form has expired" error. This is the form setup:

{exp:channel:form channel="channel9" return="Links" class="Submit" id="Submit"}
Title
<input type="text" name="title" id="title" value="{title}" size="50" maxlength="100" onkeyup="liveUrlTitle();" />
{custom_fields}
{field_label}
{if textarea}
<textarea id="{field_name}" name="{field_name}" dir="{text_direction}" cols="50" rows="{rows}" onclick="setFieldName(this.name)">{field_data}</textarea>
{/if}
{if textinput}
<input type="text" dir="{text_direction}" id="{field_name}" name="{field_name}" value="{field_data}" maxlength="{maxlength}" size="50" onclick="setFieldName(this.name)" />
{/if}
{/custom_fields}
{category_menu}
Categories
<select name="category[]" id="categories" size="4">
{select_options}
</select>
{/category_menu}
{if captcha}

Please enter the word you see in the image below:

{captcha}

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

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

I saw a suggestion about adding <input type="hidden" name="XID" value="{XID_HASH}" /> but this made no difference.


texts: display content based on multiple days and time of day

texts: I've seen answers on display content on a specific day, but I'm trying to figure out showing content for Multiple days. I have doctors office that wants to show it's hours Monday-friday and weekend hours. If they are not open they want it to say closed. Thanks for the help!


texts:
i'd like to combine Channel Images with Matrix, or at least a Drag and Drop File upload for a Matrix Field. I couldn't find anything like that, so maybe someone here can help

Is it possible to upload files/images to a matrix file field ?

If 1. is not possible, is it possible to drag and drop upload a file/image to a matrix file field ?

thanks for any help !!


texts:
I'd like to make a template that generates an XML sitemap for my multilanguage site (using Transcribe addon) that contains all entries in all languages. The site structure is just simple flat pages like so:

/en/page1-english
/en/page2-english
/de/page1-german
/de/page2-german

I tried this code and it works apart from the exp:transcribe:uri tag only gives me a link for the default language. How can I get transcribe to give me links for all entries in all languages?

<?xml version="1.0" encoding="UTF-8"?>
<urlset
      xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
            http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
{exp:channel:entries channel="not products"  transcribe="disable" dynamic="no"}
<url>
<loc>
{exp:transcribe:uri path="{url_title}"}
</loc></url>
{/exp:channel:entries}
</urlset>


texts: Does un-assigning a category group remove category assignments?

texts:
I'm re-vamping a site, and we have updated the categories. At the moment I have two category groups, the old one and the new one. The old one will never be used again, but I'd prefer to keep the assignments, for posterity.

If I un-assign the old category group from the channels in question (so it doesn't show up in the editor), will those category assignments be lost?


texts: Search for YouTube videos not working in DevDemon's Channel Videos

texts:
I cannot search for youtube video anymore.
I get the following error

{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "accessNotConfigured",
    "message": "Project 896194494972 has been scheduled for deletion and cannot be used for API calls. Visit ___ttps://console.developers.google.com/iam-admin/projects?pendingDeletion=true to undelete the project.",
    "extendedHelp": "___ttps://console.developers.google.com/iam-admin/projects?pendingDeletion=true"
   }
  ],
  "code": 403,
  "message": "Project 896194494972 has been scheduled for deletion and cannot be used for API calls. Visit https://console.developers.google.com/iam-admin/projects?pendingDeletion=true to undelete the project."
 }
}

how can I fix it?

thank you
monica


texts: Is there a way to control entry sort order?

texts:
I am very familiar with the standard methods for sorting channel entries. However, I have a client that wants more control than the standard alpha ascending / descending or the by entry date.

Is there a way that users can drag entries to appear in a specific order or some other way to control the order in which they appear?

Thanks.


texts: EE3 Grid - Row count doesn't change when you rearrange

texts: I've uploaded images to each row and rearranged them afterwards. Then in my EE code I want to show row_id="1" but it's not taking the rearrangement.


texts:
is there a trick to only showing ONLY the children of a certain category?

{exp:gwcode_catmenu show="5" cat_id="5"}
<a href="{path='catmenu-demo/example1/{complete_path}'}"{cat_name}
{/exp:gwcode_catmenu}

Trying to only show the children of cat 5, all parent categories are showing as well as the children of 5

-Bestseller
-New
-Featured
-Hunting (id 5)
----Accessories
----Calls
----Cameras
----Decoys
----Bags/Cases
----Face Paint / Scent Elimination
----Knives
----Deer Scents
----Range Finders / GPS
----Videos
-Fishing
-Archery
-Shooting
-Clothing
-Footwear


texts: Handling Forms With ExpressionEngine: the ACT ID

texts:
I have a form that is using the Amazon MWS API to pull in a list of reports to create a drop-down selection with options that contain the form id and name. I'm using the EE form helper to do this. Here's how the end of my method looks:
$xml = simplexml_load_string($response);
$options = array();
foreach ($xml->GetReportListResult->ReportInfo as $report) {
  $options[(string) $report->ReportId] = (string) str_replace('_', ' ', ucfirst(strtolower($report->ReportType)));
}
ee()->load->helper('form');
$form = form_open('ACT={action_id}');
$form .= form_label('Report types', 'report_types');
$form .= form_dropdown('report_types', $options);
$form .= cp_form_submit('Request Form', 'Processing your request');
return $form;

And in the template I'm doing this:
{exp:amazon_mws:get_report_list}

This is creating the form just fine. What I want this form to do is when someone selects a report type from the drop-down and hits Request Form it will run another function that will take the ReportId from the form and query the MWS API again to look for that report, save some stuff to the database (such as the report itself, the user, when it was created, etc) in order to display a list of reports.
The thing I'm struggling with is how actions are done in EE. There is not a lot of (if any?) documentation on this. The main thing I found was this article which is from 2012 and has broken reference links.
As far as I can tell, the way that something like this is done in EE is to use a ACT ID, as that article says.

http://example.com/index.php?ACT=123
Whenever ExpressionEngine encounters an ACTion URL, it attempts to run the code associated with the provided ACTion ID.
How it works
When an ACTion URL is loaded, ExpressionEngine looks in the exp_actions database table for an entry with the supplied ACTion ID. Each ACTion ID is associated with a class and method (i.e. the code to run).

Ok, great. That seems simple enough! I just need to know/create an ACTion ID for the method and voilà, it'll run when the form is processed. Only I don't know what the id is or what I would need to do to create it.
So I go to the documentation looking for action_id and I find this: fetch_action_id($class, $method). So I create a test method in my class and use that function to see what I get: <?php echo ee()->functions->fetch_action_id('Amazon_mws', 'action_id_test'); ?>
what I get is this:

{AID:Amazon_mws:action_id_test}

Which is basically just the same thing I passed to the function.
You can see in the form I created above that I put 'ACT={action_id}' in the form_open function. That's because I don't know how to do this and I assume you're supposed to put an action_id there.
What I also tried to do was look at how other pre-made forms in EE are constructed, so I looked at the built in login form and found this:

Ah-ha! There's a hidden ACT input with a value of 14. I'm assuming this is the ACTion id for the EE login method. I also noticed when I use the logout link it goes to a url like this http://www.example.com?ACT=15&csrf_token={token}. So this is clearly using the ACTion id to run a logout method. Login is 14, logout is 15. This makes sense. I also noticed that when I use the form helper it automatically creates a hidden csrf_token, so I'm thinking I must do something like the above hidden inputs with my form in order to make it work.
I've scoured the documentation for some clarification on this issue but haven't had much luck. I'm either not good at looking up what I need (entirely possible, I'm not a super experienced dev and am only just learning EE) or the documentation isn't there. And I'm sure that this is something that EE devs are using constantly that's more or less taken for granted.
What I think I need to do is to enter the method I'm trying to use into the exp_actions table so EE knows that this is an ACTion method, but I'm not sure how to do this and I'm not seeing any documentation about it.
Any help would be greatly appreciated! Thanks.


texts: Trying to use tagger with structure.. no luck

texts:
I am trying to use DevDemon's(3.21) tagger with Structure(3.3.14.5) EE (2.9)

I'm not trying to do anything fancy, but I can't seem to wrap my mind around how to achieve a basic list of blog entries with the same tag. My blog entries are being pulled from a structure listing.

Anytime I try anything I get an error message saying "this page doesn't exist" Obviously it's saying that because the url http://domain.com/tag/{tag_name} doesn't correspond with any page created by structure.

My blog page is using a channel entries tag.

Any ideas on how to achieve this? I was wanting to use tag instead of categories because of the content fro the blog.

Thanks,
Jason


texts: Expresso Store Togging between Ex Tax and Inc Tax

texts:
All products on my store are entered excluding VAT/TAX. All Items are Taxable at 20%.

We're currently showing the prices on the site excluding VAT and VAT is added at the checkout. However, the site has been reported to the ASA (Advertising Standards Authority) and they have deemed that we need to show all prices Ex. and Inc. VAT.

The client has asked for a toggle that the user can select - however, I'm have trouble even simply showing the prices Including VAT... the {price_inc_tax} doesn't appear to work even though I've set the TAX rule to apply to all products in all areas.

Anyone ever accomplished showing both Ex. and Inc. VAT/TAX on the page?


texts: Expressionengine2: how use a channel form for non logged in people (without expressionengine doing a guest login in the background)

texts:
I use a channel form which allows a non logged in person to post to a certain channel. On my entire site (so also on that particular page) I always have a AJAX login dialog, or when logged in a profile menu (and profile dialog). My problem now is when I come on the page where a non logged in user can post - expressionengine automatically does a sort of log in for the guest user in the background. Now this gets me in problems with my profile dialog (which gets loaded for the guest user, while it should only exist for a proper logged in user). And I don't get my AJAX login form anymore (as for expressionengine somebody is already logged in - so the login does not get shown).

Now I am trying to work around it but this is pretty tricky without changing a lot of stuff. Especially because my login is not on a seperate page.

Is there a possibility to allow non logged_in people to get a channel form and post, without expressionengine doing a guest login in the background?

greetings, Rick


texts: EE v2.5.3 Freeform v4.1.3 entries not working

texts:
EE v2.5.3 Freeform v4.1.3

Are there any known issues with these versions?

Should these versions be compatible?

Form entry is working ok.

But I can't get the entries tag to work, I've stripped it right back to the basics, reinstalled it, to test I'm using the default 'contact' form and I've set the existing entry to be 'open':

{exp:freeform:entries collection="Contact"}

{first_name}
{email}

{/exp:freeform:entries}

IF I add an {email} field, it returns the email address of the logged in user within the tags, but nothing else is displayed, no entries.

EDIT: after the first comment, I tried this:

{exp:freeform:entries form_name="Contact"}

{first_name}
{email}

{/exp:freeform:entries}

With the form_name param included: '{first_name}' is displayed plus my email address if I'm logged in.
Without the form_name param included: nothing is displayed.

I haven't found an answer yet, but I found a workaround:
I resorted to an embedded db query, it does mean that I have hard coded the fields as the column names from the database, but it works:

{exp:query sql="SELECT * FROM exp_freeform_form_entries_2 WHERE entry_id={segment_3}"}

<input type="hidden" name="first_name" id="first_name" value="{form_field_1}"/>
<input type="hidden" name="last_name" id="last_name" value="{form_field_2}"/>
<input type="hidden" name="street" id="street" value="{form_field_8}"/>
<input type="hidden" name="city" id="city" value="{form_field_9}"/>

{/exp:query}


texts:
I am looking for a way to create a custom field to be used during the checkout process that a user can check if the would like to receive e-mail updates. I have attempted to add the {order_custom1} field and specified as a checkbox but it still returns a text input field.  This is the code I am using.

            {field:order_custom1} Check here if you would like to receive updates about The Journey

Is there anyway to do this?


texts: Structure breadcrumbs only going 2 levels deep

texts:
I'm using Structure for lots of stuff: title, nav, and breadcrumbs. Title and nav are working, but breadcrumbs only goes 2 levels deep. If I'm a page further down than that, {exp:structure:breadcrumb} produces no output. Any ideas on what might be going wrong?

EDIT: Jace from EEHarbor just told me this is a bug that they are working on. Will post an update when this is resolved.


texts: Include category in keyword simple search

texts:
Is it possible to include category names in keyword simple search?

{exp:search:simple_form channel="products" result_page="search/results" no_result_page="search/no_results" search_in="everywhere"}
<input type="text" name="keywords" class="fl"  id="search" value="Search..."/>
<input type="submit" value="" class="fl"/>
{/exp:search:simple_form}

If my category name was Hats, if you searched for Hats you would get the results from the Hats category


texts: Parsing issue with Low Variable - Playa field (EE 2.11.9)

texts:
Obscure issue for you here.

I have a Low Variable (using Playa) that contains several entries. I need to pass the entry_id for each entry to an embedded file. When I do this, the embed loads, but the {exp:channel:entries...} tag does not work.

  {exp:low_variables:pair var="newsletter_sidebars"}
    {embed="inc/get-sidebars-by-entry_id" the_entry_id="{entry_id}"}
  {/exp:low_variables:pair}

If I pass a number directly to my embed:

{embed="inc/get-sidebars-by-entry_id" the_entry_id="12"}

It works fine.

I can even see my embed is receiving the value of the Playa field.

Something to do with the dreaded parse order?


texts: Pre-sale Exp-resso question re: save for later and re-orders

texts:
We have a client who would like a e-commerce site where the product would have about a dozen options that the customer would have to work through before getting a final price. Because of the technical nature of the product, they would like customers to be able to save the cart, and come back to it later to edit  or complete the purchase. Would this be possible with Exp-resso, and would it require any custom scripting?

Also, if a customer places an order for multiple variations of a product, would they be able to go back and re-order one of the variations, but at that same time make a change to the options for the re-order?


texts: Generate a thumbnail from a Channel File field with CE Image

texts:
I'm using a Channel Files field where the client can upload documents or images. If an image has been uploaded, I then want to be able to create a cached thumbnail in the template.

I'm trying to use CE Image but just can't get it to generate anything. Has anyone else tried doing this with Channel Files and CE Image?

My code is below;

{cf_channel_file limit="1"}

    {if file:extension == 'jpg' OR file:extension == 'jpeg' OR file:extension == 'png'}

        {exp:ce_img:pair src="{file:url}" crop="yes" width="238" height="244"}
            <img src="{made}" width="{width}" height="{height}" />
        {/exp:ce_img:pair}

    {/if}

{/cf_channel_file}


texts: Comments Field Is Required Error when Implementing Comment Form

texts:
A very quick question, I'm trying to make a comment form but I get an error on submit that the Comment field is required, even though its filled in.

No Idea why as I checked other questions etc code seems fine.

 Leave a comment

                {exp:comment:form channel="blog_post"}

                            YOUR NAME*
                            <input type="text" name="name" value="{name}" />

                            YOUR EMAIL*
                            <input type="email" name="email" value="{email}" />

                            YOUR WEBSITE
                            <input type="text" name="url" value="{url}" />

                            YOUR COMMENT*
                            <textarea name="comment">{comment}</textarea>

<button type="submit">POST COMMENT</button>

                {/exp:comment:form}

Can you spot an error? Or maybe direct me the right direction?

Thank you in advance


texts: Upload directory path - keeps reverting back to 'blogs'

texts:
EE v2.6.1

When I log in as a content manager and try to upload a file, the destination directory in File Manager reverts to 'blogs', even though the destination has been set to another directory.

If I log in as a super admin to do this, I notice that when the upload window opens initially it states momentarily that the destination is the 'blogs' directory, but then it flashes to the correct destination.

I have tried adding a new destination directory, changing permissions, and I've checked that the content user has permissions to upload to other directories.

This has just started happening, the content user was able to upload to the correct directories before, I am not entirely certain what may have changed as other users have access, but they wouldn't have changed much if anything.


texts: Store API Rest response in entry form with PHP

texts:
I'm trying to save an API Rest response in entry with PHP. This is the functional PHP script:

{exp:channel:entries
   channel="products"
   limit="1"
   require_entry="yes"
   entry_id="{segment_3}"
}
<?php

/**
 * Ensure that you have cURL installed by uncommenting
 * ;extension=php_curl.dll
 * in your php.ini
 */

$url = "https://api.**************";

{product_uploaded_model}
$path = $_SERVER['DOCUMENT_ROOT'] . '/models/uploads/products/';
$filename = "{file_name}";
$tags = "{author} {file_id}";
$description = "{title}";
{/product_uploaded_model}
$token_api = "*********************";
$title = "{title}";
$private = 1;
$password = "****";

$data = array(
    "title" => $title,
    "description" => $description,
    "fileModel" => "@".$path.$filename,
    "filenameModel" => $filename,
    "tags" => $tags,
    "token" => $token_api,
    "private" => $private,
    "password" => $password
);

$ch = curl_init();
curl_setopt_array($ch, array(
    CURLOPT_RETURNTRANSFER => 1,
    CURLOPT_URL => $url,
    CURLOPT_POST => 1,
    CURLOPT_POSTFIELDS => $data
));

$response = curl_exec($ch);

curl_close($ch);

echo $response;

?>

{/exp:channel:entries}

The server's response is like this

{"result": {"id": "32c45b4fe5b74420a53ee8e76c247837"}, "success": true}

Now i need to put the "id" in a entry's field with this in single entry template:

{exp:channel:form channel="*****" return="*****/ENTRY_ID" entry_id="{segment_3}"}

{field:product_id}

{/exp:channel:form}

Extrapolating the id from the response and putting it in the field, and save the form.

The question is: How can I extrapolate the id from the response? How can I put in {field:product_id}? How can I save the form and redirect to another page?


texts:
Assets 2.6
EE 2.10.3

This is a rescue site which I didn't build and I'm trying to get it working on the server. When I go to assets, which I just upgraded to the latest version, and try to update indexes. The page hangs.

I tried adding this to config.php based on another question but no change:

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

I checked the console and see the following:


texts:
In Freeform I use the loop to display all my fields:

{freeform:all_form_fields}

        {freeform:field_label}

        {freeform:field_output}

{/freeform:all_form_fields}

how can I display an asterix beside fields which are required?
Form called and required fields displayed like:

{exp:freeform:form
    form:id="ajax_form"
    form:class="form-horizontal"
    form_name="enq_form"
    required="business_name|business_category|contact_person|email_address"
    }


texts: Allowing the same member group to create entries for certain channels but being able to edit all channels

texts:
(V3.5.11)

I am not sure whether this can be done but I am wondering if the same member is able to create entries on certain channels but is able to edit all channels.

I know there are check boxes in the "Member Groups CP" like below:

So for example; I want the client to edit the homepage channel but I don't want them to create a new entry on that same channel.

Is that possible?

Thanks
Jordan


texts:
I've tried to do an upgrade on a 1.7.3 site and never seen this error before:

The language files needed for your current language selection () are unavailable. Please put the language pack in this folder: expressionengine/language/

I've tried upgrading to 2.6.1 and 2.5.5 and both give the same error.

Language files are definitely in place.

Can't find any refs online.


texts: MySQL query to output variables grouped by entry status

texts:
I have schools, teachers and students channels with each of the students and teachers channels with a field that contains the entry_id of the school they're related to (not actually using native EE relationships fields in this case).

I need to output a list of all the schools and their total number of teachers and students but also show which of those entries are open and pending (entries only become open after being activated via link in an invite email).

What I have so far outputs the school and the count of all students but I need to know how to change it so that I can output different variables for all students and pending ones.

{exp:channel:entries
    channel="schools"
    disable="categories|member_data|pagination|trackbacks"
    dynamic="no"
    orderby="title"
    sort="asc"
}

{exp:query sql="SELECT COUNT(cd.entry_id) as student_count
    FROM exp_channel_titles ct
    JOIN exp_channel_data cd ON cd.entry_id = ct.entry_id
    WHERE cd.channel_id=5
    AND cd.field_id_45={entry_id}
}

{if count==1}
Total schools: {total_results}

{/if}

{title} – {student_count}student{if student_count!=1}s{/if}

{if count==total_results}
{/if}

{/exp:query}

{/exp:channel:entries}

I'd also like to know the most optimal way to query the records from both students and teachers channels. I could double up on queries and just change the channel_id and field_id_XX but would like to know if there's a cleaner method.


texts: Expresso Store orders not getting past checkout 3 to Paypal for only SOME users

texts:
I've had this problem once before, on a website using Store on 1&1, where the checkout didn't redirect to PayPal, but got hung up on the final step and just refreshed the page (see original question/answers here: Expresso Store orders suddenly not getting past checkout 3 to Paypal). The problem was sorted after contacting the host, but they didn't tell me what they did to solve the problem.

I have another website, which is hosted on Clook, and for only some users, Store is getting hung up on Checkout 3 and not going to PayPal. The page just reloads. I can't replicate the problem, and neither can my client, but he's getting several complaints from people who can't buy on the site. I am not getting any errors on the page. ExpressionEngine v2.5.5 Store v1.6.3

Anyone have any ideas?


texts: Disable New Relic Script for one template

texts:
Is there any way to disable the New Relic script tag from being output in a single template?

EllisLab's docs say you can disable it via the control panel overall, but I really need it removed just from a single template (which becomes an email template).

https://ellislab.com/expressionengine/user-guide/monitoring/new-relic.html

Thanks!


texts: Infinite scroll reaches the end, although there are more pages to show

texts:
I'm following another developer on a site and trying to speed it up. The functionality requires many entries to be displayed within a single document object. Previously, load times were abysmal so I've switched to pagination and I'm trying to implement infinite scroll to allow the rest of the pages to show in the same document object.

It seems as though every thing is working correctly until infinite scroll tries to load the new pages. Once you scroll to the bottom it tries to load something but says it cant.

What am I missing here? Code to set it up is:

{exp:channel:entries channel="stories" orderby="story_year" dynamic="no" limit="20" paginate="bottom"}

 ...

    {paginate}
    {if next_page}

            Show More

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

And the javascript is:

You can see this in action at http://thinkx.net/clients/manship/index.php/timeline.

Thanks for your help, I'm really stuck here.


texts: Structure {page_url} variables still pointing to staging site after deploying to production

texts:
This question is also on StackOverflow. Sorry for repeating...

I've just moved an ExpressionEngine (v.2.5.3) stage site to the production server. The site uses Structure and Publisher add-ons.

Everything went well except that all the hyperlinks using {page_url} are pointed to the stage site and not to the new site.

I'm using {page_url} to call Structure entries.

However when I use {path=""} or {url_title_path={segment_1}} for instance the URLs are OK. It is only when using {page_url} that they kept pointed to the stage site.

I tried {page_uri}, which works, but then the language prefixes from Publisher get lost.

I run REElocate add-on and then checked:

Admin > General Configuration > URL to the root directory
Main index.php file, for any overrides to site_url
Main config.php file for site_url variable overrides
I checked all the Basepath to Template File Directory, the base_url, Also clean all caches,etc.

I went to check all the database SQL tables and: exp_files and publisher_log tables show staging paths not the new ones...

Any help would be very much appreciated.


texts:
The {count} variable is completely not working in my entries. It is just returning 1.

The last thing we installed for plugins was the structure_url_alias module.

Is this a known ee bug?

Here is the requested code. It was working right before we installed structure_url_alais. We have over 100 aliases now running so we are hesitant to uninstall the module and see if it is the reason {count} stopped working.

{exp:channel:entries channel="news" limit="6" category="not 20"}
{if count < 4}
Count {count}

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

{title}

{exp:char_limit total="160"}
{news_excerpt}
{/exp:char_limit}

{if:else}
{if count==4}

OLDER NEWS:

{/if}

{title}

{entry_date format="%M. %d"} -  {exp:char_limit total="200"}{news_excerpt}{/exp:char_limit}

{if count == total_results}
{/if}
{/if}
{/exp:channel:entries}

Edit....

We narrowed the problem down to the structure alais plugin, but we don't want to uninstall it to see for sure because we already have over 100 alaises set up.  Any suggestions?


texts: What's the correct syntax for setting up memcached caching driver in EE 2.8+ with socket?

texts:
In EE 2.8 and above, you can select 'Memcached' as your 'Caching Driver' under "Admin" => "General Configuration".

I am using one of Nexcess' "ExpressionEngine optimized" hosting plans, which lists "Memcached Back-End" as one of their features. I wanted to enable this, so I contacted their support folks. They set up a socket to use memcache.

However, when I select 'Memcached' as my caching driver, EE displays the error message "Cannot connect to Memcached, using File driver instead".

What is the correct syntax for my config file to get this to work?


texts: Is there a way to refresh the Captacha value without having to reload the page? If so, how?