texts:
Why are my if conditions not working when they are inside a javascript but they work in plain html?
 the {if longitude} outputs {if""} when viewed in the browser.

{exp:user:users sort="asc" limit="100" group_id="5"}
{if longitude}
         {
            "properties": {
                "tags": [],
                "phone": "",
                "classifiers": ['a'],
                "address": "",
                "name": "{billing_name}",
                "province": "{billing_region}",
                "owner": "",
                "postcode": "",
                "city": "{billing_city}",
                "country": "{billing_country}"
            },
            "type": "Place",
            "geometry": {
                "type": "Point",
                "coordinates": [ {longitude},{latitude} ]
            }
        },
{/if}
{/exp:user:users}


texts: Add a custom field value in a hidden input to the order in CartThrob and then email notification

texts:
Probably simple but I have a custom field that I would like to add to the Orders channel and then use that value in the customer notification email.

This field will not be populated by the customer, it's a custom date field that the admin has set for a course.

In the add to cart form I have:

<input type="hidden" name="date_booked_for" value="{course_date}" />

where the date_booked_for is the new field in the Orders Channel and course_date is the custom field that needs to be passed to checkout and then the email.

Stuck on the hidden field part in the checkout form and email notification.

Any ideas please?

TIA


texts:
I create an image and upload it to the server under a name, say Test Graphic A. Then inside WYGWAM, I click the picture icon, and choose Test Graphic A from the server. Everything is okay at that point.

Then, I correct a mistake in Table Graphic A in Photoshop, and use File Manager to delete it from the server, and then I upload the corrected version under the same file name, i.e., Test Graphic A.

Then, I go to WYGWAM and delete the old Test Graphic A, click the picture icon and choose (the corrected) Test Graphic A.

But, WYGWAM continues to use the old Test Graphic A. The only way I have found around the issue is to rename the corrected version, upload it again, and place it again.

This shouldn't be necessary. What am I doing wrong? Thanks.


texts: Unable to connect to database using WAMP

texts:
I turned debugging on with my local installation, and find out that i cant get into database.

A Database Error Occurred
Unable to connect to your database server using the provided settings.

Filename: C:\wamp\www\siteA\system\codeigniter\system\database\DB_driver.php

Line Number: 124

I have checked the config and database.php files and all should be good to go.
Any idea what i could do, to get into CP?

Thanks in advance.


texts: Linking new member registrations to a specific site in MSM

texts:
This question is a parallel to this question

Making a select-type custom profile field actually *required*

but it seemed correct to separate the two aspects in two different questions.

I am running a pair of sites using MSM and, although I have a separate registration form for each site (i.e. different template, different URL), there is no way of actually linking a newly registered user to the site they registered for - as all new users end up in the same "Pending" list, regardless of which form they filled in.

This is one of the strange features of MSM, where some membership features are site-specific and others are not.

Is there anyway of linking new registrations to the site they have registered for?

I know that I could have them placed automatically into a site-specific member group, but then you lose the ability to activate multiple users while sending an activation email - which you get when using the "Pending" list; something my client wants to keep.

I have tried creating a custom profile input field and placing in the registration form as a hidden input field with its value fixed, but if the field is not configured as visible on the registration form, the system won't write the content in the database; and, if it is visible amongst my custom profile fields and is included in the form as a hidden input field, then it is effectively appearing twice.

Many thanks

Chris


texts: In matrix, set rows to correspond to values in a category

texts:
I'm thinking of using Matrix to get around EE's limitation in only having one image field for categories.

Is there a way to write a plugin that will automatically populate rows in matrix for each category?

Maybe the plugin could be executed after saving a category if there's a new value update a specific matrix field...

Hmm.


texts: Sending email address to custom field with Profile:Edit

texts: I need to send the member email to a custom field in a channel entry after member creation.  We use Profile:Edit to create a channel entry for a member immediately after creating them in the EE admin.  Currently it sets the title to the username. I would also like to pass the email address to the channel entry.


texts:
I'm sure that this question/issue has been resolved some way because I've seen it working on sites like devot-ee, but how can I get the 'Remember Me' functionality working for when user login to the front-end of a site?

Thanks in advance.

~ Lucas


texts: Ideal server setup for EE (PHP Handler, Opcode Cache)

texts:
Edit: Question Clarification: Amongst other things, what do people believe to be the ideal PHP 'Handler' for EE?

We've decided to take the plunge and get another VPS for some of our production sites. Our current server is running suPHP so we can't install APC (according to the host).

So my question is, for performance, how should we ask them to set up our server?

We will keep our old server for development, so we don't want it to be massively different, and they are suggesting FastCGI so that they can install APC, but is FastCGI good/bad/bad for EE?

We also will be running a couple of Laravel3 and 4 on the new server, so if there are any additional recommendations, please tell me.

I wish I wasn't such a sysadmin noob, but after Tim Mahoney's talk at EEUK, we want to make sure we get the server set up right from its beginnings.

Thanks!


texts: Index.php was not generated on localhost. (not a .htaccess issue)

texts:
when searching for an answer it always lead to a .htaccess issue, but that's not what this is.

i'm new to EE since my companies website works on it i'm learning on the fly.
to try to learn it better i installed it to my personal website and i'm starting to get the hang of it. but when i tried to install it on my computer using a WAMP server, the index.php file never showed up. i get a 404 error when going to http://localhost/index.php after clicking on view rendered template in EE on my computer while WAMP is running.


texts:
I've worked on a few custom plugins/add-ons before but am a bit rusty on extensions. I need to write a custom tax rule for Store and looking for guidance on targeting one of the Store extension hooks, store_order_taxes.

I've got a simple extensions set up and installed but for some reason it does not seem to be being called or applied to the cart in the front-end.

Any suggestions?

Cole


texts:
I'd like to return all entries that are in the future - but based only on the day of the week and time. I've got it working with just %H:%i (Hours/Minutes), but can't get it to respect the day of the week.

Is this possible?

Can you choose a custom date format of a channel field to check against?

Thanks in advance!

{exp:channel:entries channel="CHANNEL" search:starttime=">{current_time format='%w %H:%i'}"}
     {title}
{/exp:channel:entries}


texts: Channel Entries - Is it possible to search title field with starts with?

texts:
Based on the documentation, I can do "exact" and "contains" matching.

Is it possible to do a "starts with" search? For example, lets say I have this entries in the database

Web design
Web development
SEO and Web Marketing

when I search for web, I want to get the first and second entries but NOT the third.


texts:
What is the propper way to use NSM better meta and layouts?

At the moment, my layout has the NSM tag in the head, I've wrapped some channel entry tags around it. Not sure if this is the correct way to use it?

{exp:channel:entries require_entry="yes" limit="1" dynamic="yes"}
{exp:nsm_better_meta:template entry_id="{entry_id}"}
{/exp:channel:entries}

I also have another problem, how do I deal with the homepage? I can't seem to pull any nsm data through.

The homepage entry_id is 1, with a status of hidden.

When I was using embeds I used...

{embed="/includes/head" title_prefix="Site" hide_site_title="y" entry_id="1"}

But with layouts I can't use those parameters.


texts:
I am trying to add a ALT on a picture with alt="{alt_text}" and the engine does not resolve it. Why ?

The width="{width}" works fine


texts: If I move an entry to a different channel, will my associated Solspace Ratings move with it?

texts: If I move an entry from one channel to another, will there be any problems with the Solspace Ratings attached to that entry moving along with it?


texts: Disallowed Key Characters error when moving EE website to another server

texts:
I want to move an EE 4.3.5 website from a development server to a production server. In this purpose, I have applied the steps presented here in the EE documentation.

But, when I want to access the Control Panel on the production server, the browser displays a Disallowed Key Characters error.

I have applied the the first answer to this post to have more info about the error. At line 997 of system/ee/legacy/core/input.php, I have added the $str variable into the $error variable.

Now, the browser shows : Disallowed Key Characters exp_last_visit

It appears that the error comes frome the exp_last_visit value, which seems to be a cookie.

How to fix this ?


texts:
I am trying to out put the next 5 tour dates for a band.
Unfortunately as rss feeds output the latest feed item first I need to find a way to reverse the order. My php skills are limited so I would appreciate any help.

{exp:rss_parser url="http://acousti.co/feeds/artist/artist_name"
                    cache_refresh="10"
                    limit="5"
                    }

    {feed_items}

{item_date format="%F %d %Y"}&nbsp;&nbsp;{item_description}

                 {/feed_items}
                {/exp:rss_parser}


texts:
This is more an A than a Q.

Last week I ran into no results / redirect problem with Stash and more precisely the EE's parsing order. The solution below worked for my case. I don't take credit for it as I found it either on the Devotee-forum for Stash or as a Gist someone was willing to share. I can't remember, after losing way to much time on this I didn't keep track. Anyway, thought I would share this as it may save others time.

On the template that collects the data...

{exp:stash:set
parse_tags="yes"
parse_conditionals="yes"
parse_depth="2"
no_results_prefix="nested"
}
    {exp:channel:entries
    channel="YOURCHANNEL"
    disable="categories|category_fields|member_data|pagination"
    status="open"
    dynamic="no"
    }

        // channel entry data stuff here...

        {if nested:no_results}
            {exp:stash:set_value name="no_results" value="true"}
        {/if}

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

{embed="YOURTEMPLATEGROUP/YOURTEMPLATE"}

Note: parse_depth and no_results_prefix Stash parameters are necessary.

On the embed that outputs the data (the view)

{if {exp:stash:not_empty name="no_results"}}
  {exp:stash:unset name="no_results"}
  {redirect="home/404"}
{/if}


texts: Unable to Use PayPal Sandbox mode anymore

texts:
I have a site that is currently running CartThrob v2.7 and using "Paypal Website Payments Pro" for the gateway. I need to make some updates to the checkout process, and tried switching the gateway to "Sandbox" mode. However, when I do that and try checking out, I get a "SSL connect error (35)" error.

The checkout process works when the gateway is in "Live" mode (but obviously, that won't work for development.)

AFAIK, all of CartThrob's PayPal credentials are correct and up-to-date, and the PayPal account is in good standing. I know that "Paypal Website Payments Pro" is a legacy product, but switching to another gateway is not currently an option.

Any ideas?


texts: generating a report for all orders with all information expresso store

texts:
I have one product with several modifiers. You can either pay offline for this product or pay online through paypal. I'm capturing various data from the form that the user fills in. Now I want to pull a report on all the orders that have been processed so far with all the details, such as product sku, customer name, address etc.

My problem is when I try to pull a report using 'orders report', it only shows those orders which have been paid. How do I show all orders no matter if they were paid or not?

Thanks


texts: Freeform Pro: intermittent error "Invalid form id(s) submitted"

texts:
I have a Freeform Pro standard (non-composer) form. I cannot reproduce the issue, but I have gotten a report of this error: "Invalid form id(s) submitted".

Secure forms is already turned off for this site, so we can rule out XID issues. My form tag looks like this:

{exp:freeform:form
  form_id="3"
  required="lastname|firstname|address|city|state|zip|phone_number"
  form:class="freeform"
  inline_errors="yes"
  return="{current_url}"
}

Yes, there is a form with an ID of 3 in the system. I have been able to submit the form myself with no issue.

Most of my research on this error reveals that it's either an XID or htaccess issue. But I don't think either of those apply in my case, since the form works most of the time, and since secure forms are turned off. What other reasons would this error occur?

EE 2.5.5
Freeform Pro 4.0.12

There is no budget for upgrading EE.

EDIT: There's also no caching on this form, no tag caching, no CE Caching, no Stash caching.


texts: Stash: Test if nested list has value from outside nested loop

texts:
Yo,

I can't seem to figure this one out. I have a nested list of related Playa entires. Depending on if the list has a value, I want to show some code above the nested list.

How To Guides

    {exp:stash:get_list:nested name="related_guides-{e_id}"}

{title}

    {/exp:stash:get_list:nested}

I only want to show the 'well' div IF there is something to show.

Here is the nested list:

{exp:stash:set_list:nested name="related_guides-{entry_id}" parse_tags="yes" scope="site" save="no" replace="no" refresh="1440"}
        {filt_related_guides site="ht"}
            {stash:link}{title_permalink="guides/index"}{/stash:link}
            {stash:title}{title}{/stash:title}
        {/filt_related_guides}
        {gen_related_guides site="ht"}
            {stash:link}{title_permalink="guides/index"}{/stash:link}
            {stash:title}{title}{/stash:title}
        {/gen_related_guides}
        {pump_related_guides site="ht"}
            {stash:link}{title_permalink="guides/index"}{/stash:link}
            {stash:title}{title}{/stash:title}
        {/pump_related_guides}
        {tub_related_guides site="ht"}
            {stash:link}{title_permalink="guides/index"}{/stash:link}
            {stash:title}{title}{/stash:title}
        {/tub_related_guides}

        {if no_results}{exp:stash:set_value name="no_related" value="0"}{/if}
    {/exp:stash:set_list:nested}

Anyone got a solution to this? Or point out what I'm doing wrong?

Cheers


texts:
The documentation says:

  Snippets are expanded at a very early stage on each template, making
  it possible for them to hold dynamic content, ExpressionEngine tags,
  other variables, PHP, etc.

The evidence seems to run contrary to that statement.

Can PHP be used in a snippet as it can in an embed when enabled?

The scenario: I have Google Analytics and other tracking code in a snippet. I want to wrap it in a simple PHP conditional to check for the live site URL, so I'm not hitting that code in my development/staging environment.

Thanks!

Mark


texts:
Is there an official resource for downloading previous EE builds for add-on development/testing.

I have recently started archiving all versions of EE and add-ons that I install, however I have only started this recently (EE 2.7.0+). It would be awesome if there was somewhere I could access older versions of EE for supporting my add-ons, as well as making sure new add-ons are backwards compatible.


texts: EE1 - Copy Field Groups to another site in MSM or use them in another site template?

texts:
I need to copy a page to another segment in a site both in MSM on 1.6.8. I was just calling the site="first-site" from the second site template and using the info that way. The problem is that the markets have now separated direction. They want the same "page" only with different content and style. (lol)

There are a lot of fields and I would like to just copy the field group and possible the entry over to the other site being that the entry options will remain the same.

Any ideas? Besides just database manipulation...

Thanks guys.


texts: How complicated would it be to move from grid containing assets to a standalone assets?

texts:
I'm updating an old EE1 site that used to use matrix with a file field for downloadable files and a text field for the optional download text. I've successfully migrated the content into a new EE2.10 build and now have a grid field with an assets file field and the text box.

However, thinking about it, the grid is overkill because assets allows you to select multiple files, and the site admins were rarely completing the download text field in the grid.

My question is, how complex is it for me to move away from an assets field inside a grid, to a standalone assets field with multiple selections? I realise that a lot of this probably hinges on the exp_assets_selection table; could it be a case of updating the fieldtype to be assets (only) and some handy sql to
iterate through exp_grid_field_x and somehow populate the exp_assets_selection table with the data it needs?

Anyone got any experience of doing this? Or is it a case of 'if it ain't broke...'? :)


texts: Output EE template tags in a channel entry field?

texts:
I have a form I've created using DevDemon's 'Forms' module. To embed the form, it looks like I need to use {exp:forms:form form_name="my_survey"}.

I want to embed this form into a blog post on the Blog channel we have. So I added the tag in to the body of the blog post field (a rich text field).

It seems EE just outputs the string {exp:forms:form form_name="outlook_survey"} rather than actually parsing the tags. Any way around this?


texts: Expresso Store: Updating stock after order completed

texts:
Is there a way in Expresso Store when refunding or deleting an order record (eg with Extension Hooks) to modify the Stock levels.

For example if an order is placed for 10 items and is subsequently cancelled or refunded can the inventory for that item/these items be modified accordingly?


texts: Embedding snippets or templates from wysiwyg?

texts:
I have a snippet (can be template if necessary) which contains a diagram as code. Is there anyway to make this selectable from the edit entry screen, and preferably associated with a wysiwyg (Expresso) field?

In an ideal world there would be a dropdown populated with the diagram names (can be manually populated) and when you select one it would drop in the snippet code.

Does anyone know if this is possible? Or even an alternative method to achieved this?


texts: Allow EE Code add-on: work also with email template?

texts:
https://expressionengine.com/add-ons/allow-ee-code

Besides channel entries, can this add in used also fir system email template?


texts: Creating AJAX endpoints for custom fieldtypes

texts:
I'm working on a custom fieldtype that requires some validation via AJAX, which means I need an endpoint to direct my $.get() requests to. I know that accessories support process_x methods but fieldtypes don't appear to offer anything similar.

As far as I can see my options are to create a module (which otherwise I have no need for) or an extension (ditto, really). I noticed that the VZ URL fieldtype uses the sessions_start hook for this but that's not ideal as it's adding a little overhead to every single request, even frontend ones.

Is there a better, simpler option that I'm missing?


texts:
Any chance somebody knows why this freeform form isn't working?
With not working I mean not recieving any submissions.
i cannot seem to figure it out because on one site it works and on a new site it doesn't.

The only difference is the version number of ee and freeform. On the old site its ee (2.7.3) / freeform (4.1.3) while on the new site it's ee (2.10.1) / freeform (4.2.3)

{exp:freeform:form
                        form:id="contact"
                        notify="claudio@maff.be"
                        form_id="1"
                        required="first_name|email|user_message"
                    }
                        <input type="hidden" name="subject" value="Contact from Nunc website.">

                            Name*
                            <input minlength="2" type="text" name="first_name" id="first_name" value="" />

                            e-mail*
                            <input type="text" name="email" id="email" value=""  />

                            Note*
                            <textarea name="user_message" id="user_message" ></textarea>

<input type="submit" value="Send" />

{/exp:freeform:form}

Rendered HTML ;)

enrol

                <form action="http://dev.projectu-turn.com/?ACT=29" accept-charset="utf-8" method="post">

    <input type="hidden" name="params_id" value="218" />
    <input type="hidden" name="csrf_token" value="3a54070ec93939a2610d11a31e867ce6c289e539" />

                            <input type="hidden" name="subject" value="Contact from Nunc website.">

                                Name*
                                <input minlength="2" type="text" name="first_name" id="first_name" value="" />

                                e-mail*
                                <input type="text" name="email" id="email" value=""  />

                                Note*
                                <textarea name="user_message" id="user_message" ></textarea>

<input type="submit" value="Send" />

                        </form>


texts: Should we use Stash caching along side CE Cache?

texts:
I'm wondering what the best option is for better site performance in regards to caching with Stash and CE Cache. A few questions come to mind:

Should we be running them side by side?
Any advantages to run them side by side?
If we run CE Cache should we turn off any Stash caching?
If we use anything other than DB caching via CE Cache is that a good time to use Stash caching assuming it use DB caching (I think?)


texts:
In Store is there a tag I can use to add a product (no product options) to the cart, simply by loading the product page? That is, there is no add to cart submit button that needs clicking.

This would be the Cartthrob equivalent
http://cartthrob.com/docs/tags_detail/add_to_cart/index.html

Best wishes
Lee


texts: Site and theme URLs not correct in control panel settings

texts:
When I load Site > CP Home > General Configuration I see the right values in the field: http://www.example.com for an instant. When the page fully loads it will change to http://dev.example.com. The same happens in my local build. It too initially is correct (http://local.example.com) but then switches to http://dev.example.com an instant after the page loads.

Most everything works on these sites. The only issue (other than it being very strange to see) may be Lamplighter. That isn't working and they say the value in that field must match the actual page URL otherwise it will not work.

I read on the EE bug tracker that EE stores some config variables in the database. Does the base_url value get stored in the database? I looked but could not find anything.

I was using Focus Labs multi environment config, but even after reverting back to the stock EE config, index, admin, and database files it is doing it. That leads me to believe the database is storing the information. I have imported and exported the database from Dev to Production and local.


texts:
new user to ExpressionEngine here. I recently developed a plugin that I'm using to apply a filter to content, but I run into an issue when the plugin isn't installed. Is there a way to check if a plugin in installed and, if it is, apply the filter?

Right now, the syntax is similar to the following:

{exp:myFilter}
  {content}
{/exp:myFilter}

What I was looking for is something like this

{if pluginIsInstalled}
  {exp:myFilter}
    {content}
  {/exp:myFilter}
{elseif}
  {content}
{/if}

Thanks in advance!


texts:
Forum subscribe is only displaying my first board, I have another board but for some reason it does not output the forums for that one.

Anyone know how i can target the second board?


texts: Show categories in file module listing in Controlpanel

texts:
I'm looking to find a way to show associated categories when viewing lists of files within the file module in the control panel.

I know that Zenbu can show this information but it only works with Entries and not Files.

Does any know of a way to do this?


texts: A Database Error Occurred Error Number: 1064 when Trying to delete an entry..

texts:
So, trying to delete an entry .. after the "ARE YOU SURE?"-page and the click on delete, I get the following error.

Anyone else had this problem?
I'm afraid of mySQL, so this is freaking me out :(

A Database Error Occurred
Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 2

DELETE FROM exp_channel_entries_autosave WHERE original_entry_id IN ()

Filename: libraries/api/Api_channel_entries.php

Line Number: 490


texts: I did a new entry on my web site today. For some reason, when I look at the comment page, it says "Commenting is not available in this channel entry." And, no comment form shows up. I checked the entry options and "Allow Comments" is checked. Other entries on this site don't have this issue. Any idea why commenting is not allowed?


texts: Low Search form to filter by Solspace Tag GROUPs

texts:
I'm building a Low Search form to filter channel entries by Solspace Tag GROUP fields. I have installed Low Search Tag (http://github.com/low/low_search_tag) but it looks like my only options are filtering by individual tags, ex:

<select name="tag_id:group1[]" multiple="multiple">
  {exp:tag:cloud tag_group_name="group1"}
    <option value="{tag_id}"{if tag_id IN ({low_search_tag_id:group1})} selected="selected"{/if}>
      {tag}
    </option>
  {/exp:tag:cloud}
</select>

But I need a similar select dropdown in my form showing the Solspace Tag GROUPS.

CHANNEL FIELDS: Each Tag GROUP belongs in its own channel field (screenshot).

What name="" attribute do I need for a similar  dropdown of Tag Groups so that if a Tag Group is selected, entries with at least one tag in the selected Tag Group will be included in search results?


texts: CArt Throb Price by Member Group PLUS price modifier

texts:
Not sure if this is even possible but worth asking.

I am using the Price by Member Group fieldtype to offer a different price for a specific member group.

But what if I have a price modifier. ie: small/medium/large as well.

So the base Price is $50
The discounted member group the base price is $25

And if you order large you add $30 to the product for global and you add $15 if you order large  and are in the discounted member group.

This doesn't seem possible based on what I can see.


texts: When selling downloadable files, is there an existing way to track the number of times each user has downloaded a file after purchasing?


texts:
Sooo I've got a bunch of entries in a channel and the user needs to be able to go through and edit them one by one and move prev and next through them if required.

So, ideally I'd probably nest a channel form tag in a channel entries tag as channel form doesn't provide any kind of pagination, but from what I've read, that isn't a good idea....not sure why....

Any ideas?


texts: Changing default Cartthrob language files

texts: What is the best way to alter some of the default user feedback messages stored in the language files? I can obviously edit directly the language file in question but that would get overwritten on every upgrade.


texts: Allow-Eecode isn't properly working in EE4

texts:
Recently I upgraded an ExpressionEngine website from EE2 to EE4 which was using Allow-Eecode plugin to parse snippet (Template Partial in EE4) into text content. Problem is that template partial is containing {exp:query} which is being outputted like plan text.

For example- my code is like:

{exp:allow_eecode query="y"}
{body}
{/exp:allow_eecode}

Its outputting:

....
....
{exp:query sql="SELECT table_column_1 FROM table_name WHERE table_column_2 = 'some-value'"}{table_column_1}{/exp:query}
....
....


texts:
What's a good method for stripping HTML from our site search? I've found that it's possible to inject HTML directly into our page like this:

https://website.co.uk?keywords="<svg/onload%3Dconfirm(//)>

The page source then looks like this:


texts: Passing specific search parameters into results page

texts: Hey I am going to be using Super search and am wondering how easy it is to pass a parameter to the results page. For example I will have a site with realtors on it and I want to have a link at the bottom of each page to go to a results page that shows just that realtors listings. Can I easily set that up? I've looked through the Docs but nothing jumped out at me.


texts:
I have enabled Netaxept and Dummy in the settings, but {field:payment_method} still just outputs an empty select list in the cart. What could be wrong?

Edit. Here is my code.

{exp:store:checkout
form_class="form default"
return="handlekurv/takk"
error_handling="inline"
error_delimiters='|'}

{if no_items}
    {redirect="butikk"}
{/if}

Faktureringsadresse

Navn: {billing_name}

Adresse: {billing_address1}

Sted: {billing_postcode}, {order_custom1}

Land: {billing_country_name}

Telefon: {billing_phone}

E-post: {order_email}

Leveringsadresse

        {if shipping_same_as_billing}

Samme som faktureringsadresse

        {if:else}

Navn: {shipping_name}

Adresse: {shipping_address1}

Sted: {shipping_postcode}, {order_custom2}

Land: {shipping_country_name}

Telefon: {shipping_phone}

        {/if}

Betalingsmåte

        {field:payment_method}

<input type="submit" class="btn-flat green submit-cart" name="submit" value="Fullfør ordre" class="btn gray">

{/exp:store:checkout}


texts: url_title and SEO using MX Title Control CE

texts:
Hello I am thinking about the url structure of a photo gallery website and could use a little advice on the subject.

For each entry in expression engine we would have a url_title like the following:

photos/holiday/beautiful-sunset-at-the-beach

This url structure is fantastic for search engines but not so good for duplications. If I was to add a new image adding to say a 2000 collection there is a likely possibility of a duplicate.

So my thoughts are to use an add-on such as MX Title Control CE to append the entry ID like so as a pattern for photos:

photos/holiday/beautiful-sunset-at-the-beach-4576

This way every entry would be unique.

What are your thoughts on this? I can see that iStock follow a similar approach.

I would value a professional opinion regarding future proofing the setup and from an SEO standpoint.

Thanks

Trevor


texts:
I'm exporting member data as xml from one site to another using Export It.

When I import the xml via the EE Member Import Utility the 'Join Date' for each imported member is '0'.

The join_date format in the exported xml is:

<join_date>Jun 09, 2011, 07:46:04AM</join_date>

Is this incorrect?
Does it matter that the Join Date is 0?


texts:
I have a project that I'm working on in which I needed the Gift Certificate module... which can no longer be purchased. I already sold the project and this puts me in a terrible situation since Cartthrob closed it's doors so abruptly I have to ask if anyone has the latest working copy of the module (or any others since it appears these make be gone forever)

I hate even asking this, but there's no other option at the moment.


texts: Custom Category Fields with in categories loop in LowReorder loop

texts: I'm not getting custom category fields to echo out within a {categories} loop that is also within a {exp:low_reorder:entries} loop. Any thoughts? Just outputs as the custom category field shortname string.


texts:
Say I have a Matrix that has the following fields:

Name
Age
Gender

How would I find Channel entries like:

the Channel entry's Age is between 20 and 25
the Channel entry's Age is between 20 and 25 and Gender is "Male"
the Channel entry has 1 Matrix entry only
the Channel entry has 2 Matrix entries
etc.


texts: Channel > Entry > Relationship > Grid > Field

texts:
I have a channel called "videos" with a bunch of entries in it. One of the fields in this channel is a relationship to another channel called "person". The "person" channel has a field called "facts" which is a grid with one column called "fact".

When I render this template, I successfully get the name of each person as well as a node for each <Fact> in the "facts" grid.

<Videos>
{exp:channel:entries channel="videos"}
    <Video>
        <Subject>{person:title}</Subject>
        <Facts>
            {person:facts}
            <Fact></Fact>
            {/person:facts}
        </Facts>
    </Video>
{/exp:channel:entries}
</Videos>

However I can't figure out how to get the content of the grid to appear. I've tried:

<Fact>{fact}</Fact>
<Fact>{facts:fact}</Fact>
<Fact>{person:facts:fact}</Fact>

With the last two, I get an error:

Message: Undefined variable: field_ids
Filename: libraries/Grid_parser.php
Line Number: 103

I am running EE Core 2.7.2 (still evaluating it) under PHP 5.4.11.


texts:
I am trying to use the recommended htaccess file to remove the index.php.

but when I clear the Name of your site's index page in admin prefs the css will not load but everything else will on the templates.

my css:  <link href="{stylesheet=global_embeds/site_css}" type="text/css" rel="stylesheet" media="screen" />

viewing source it appears fine: <link href="http://domain.com/?css=global_embeds/site_css.v.1379946470" type="text/css" rel="stylesheet" media="screen" />

<IfModule mod_rewrite.c>
        RewriteEngine On

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

CSS is a css template in EE


texts: Using exp:playa:parents, I'd like to then access content from a different playa field at the parent

texts:
Parent channel: consultations
Has 2 child fields: patients & doctors

I am on the patient dashboard, accessing the related consultation content using:

{exp:playa:parents entry_id="{entry_id}" channel="consultations" show_future_entries="yes" show_expired="yes"}

this is working fine. Except that I want to grab the name of the doctor assigned to this consultation, so I am trying to do this:

Physician: {cf_consult_doctor}{title}{/cf_consult_doctor}

but its not showing me anything. Can I access data like this, essentially going up from a child to the parent and then down to a different child? I tried using exp:playa:siblings but its within the exp:playa:parents tag which doesn't seem to work.


texts: Showing categories in structure navigation

texts:
I have a site that has a parent channel as a main nav item. It has entries that are categorized.

Is it possible to have the parent channel in the main nav and it's categories as children using structure?


texts: Assets add file button not working (sometimes)

texts:
A user reported that when trying to add a photo in the control panel publish page it did not work. Clicking the "add file" button does nothing. I was able to verify that it did not work. I went to the Assets module settings and the file folders would not load any images. The waiting icon would just spin and spin.

Today I tried it again, and it did work. However she reported it still did not work for her. I again verified it worked. Now that I'm on a different computer (both of my are macs using safari and 10.8) it isn't working for me again. Opening the inspector I see this:

It used to work no problems, so this is new.

EE 2.5.3
Assets 1.1.5


texts: Amount Is Invalid. Amount Must Be In Cents

texts:
This is the first time I am getting this error. I am currently using PayU as payment gateway and integrated this by using Omnipay in expresso store in my EE2 project. In my request object that I need to send to PayU I need to times the amount by 100 to convert this into cents and I am doing this.

The error I get is: {"store_payment_error":"Amount is invalid. Amount must be in cents"}

I got this error when I had an order amount of R22 293.36. Is this too big an amount for the gateway or store to handle? I am sure this shouldn't be the problem? I have over 200 orders that I tested already, but the first time I am getting this error?


texts:
I have inherited a site that makes use of a bespoke extension that has a long list of settings (https://docs.expressionengine.com/latest/development/extensions.html#abstracted-settings-form-and-processing).

The site is becoming an MSM one so i need to create site specific settings. Does EE handle this or do i need to build MSM support into the extension? Cant seem to find anything in the docs.


texts: I am editing a webpage that is using EE. I am trying to make the table of contents smaller, is there a way for me to combine existing pages so that my table of contents will contain sub-categories? Using version 2.3.1


texts: solspace calendar: only display the first occurrence of each recurring event within a set timeframe

texts:
EE 2.8.1 Calendar 1.8.6

I want to only display the first occurrence of each repeating event.

Right now I have a list of all events always displaying the next upcoming occurrence.

{exp:calendar:cal calendar_id="{embed:calendar_id}" event_limit="{embed:event_limit}" date_range_start="today" show_months="6" pad_short_weeks="n" dynamic="off"}

{event_title} - Details >> {event_start_date format="%F %j, %Y"}
{if event_summary}
{event_summary}{/if}
{if event_location}
Location: {event_location}{/if}
{if event_cost}
Cost: {event_cost}{/if}

          {if no_results}

No events could be found within the specified time range for this Calendar.

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


texts: Nested conditionals break within low_search:results tag

texts:
ee v2.9.2
low search v4.4.0
The code below is generating an error:

You have an invalid conditional in your template. Please review your conditionals for an unclosed string, invalid operators, a missing }, or a missing {/if}.
Parser State: Unexpected end of Template “image-database/results” on line 93; expected ENDIF tag for opening on line 91.

Removing the {low_search:results} tags, the error goes away.
Removing the {if no_results} conditional, the error goes away.
Removing the {if count ==1} conditional, the error goes away.
Removing the {if category_is_parent == 0} conditional, the error goes away.
Removing the {nsm_categories:archive tags}, the error remains.
{exp:low_search:results
    query="{segment_3}"
    collection="image-gallery"
    paginate="bottom"
    limit="28"
    orderby_sort="low_search_collection:image-gallery"
    require_all="category"
    }
    {if no_results}
        {exp:nsm_categories:archive
            enable=""
            category_group="8" depth="2"
            start_at_category="58"
            style="linear"
            }
            {if count ==  1}abc{/if}
                {if category_is_parent != 0}
                    {category_name}
                {/if}
                {if category_is_parent == 0}
                    {if count ==  1}yes{if:else}no{/if}
                {/if}
            {if count == total_results}xyz{/if}
        {/exp:nsm_categories:archive}
    {/if}
{/exp:low_search:results}

I am convinced the issue with Low Search but I am not an expert.
Any help is appreciated!


texts:
So the cartthrob team (aka mighty big robot) have been bought by Vector Media Group read: https://www.vectormediagroup.com/blog/view/vector-acquired-cartthrob-ct-admin/

I can only assume this is why so many of their ee addons have gone untouched for a while as they were getting out of the game.  Hopefully the vector team can bring some life back to some of these great addons.

I updated from 2.7 to 2.10 (big jump).  Champagne gave me some errors here are the fixes I came up with:


texts: trying to establish "current" class on sidebar link

texts:
I have an "About Us" section of my website. I am trying to attach current classes based upon the url.  When you click on the about us section of the website, it takes you to a channel entry whose url_title is "pastors-welcome", and while on that page, the "about-us" template group index page is displayed, so segment_1 is "about-us" and segment_2 is blank.  If you navigate the pages within the about-us template group, the current class displays correctly because segment_2 == url_title, but when segment_2 is blank, obviously no class will be applied.  I basically need a conditional that says, if segment_2 == url_title, OR (segment_1 == "about-us" AND segment_2 == "blank") then apply this class.  I'm not sure if that's a great explanation, but here's my code:

{embed="embeds/html_header" page_title="{exp:channel:entries channel="about_us"}{title}" {/exp:channel:entries}}

About Us

        {exp:channel:entries channel="about_us" dynamic="no" {gv_param_disable_all}}

{title}

        {/exp:channel:entries}


texts: can I get individual MSM control panels to each use different colour theme?

texts:
I have two sites running on MSM at the moment, however it seems that sometimes the editors and authors get confused about which site they are currently on, is it possible to get each site control panel to make use of a different colour?

For instance, the main site can use the standard blue/pink, the second site would display with blue/green in order to stop any confusion.


texts: How to create form when second dropdown depends on the first dropdown selection

texts:
How to create form that options on second dropdown depends on the selection of the option on first dropdown? The problem is that I have 3 dropdowns and every dropdown depends on the previous one.

For example:

DROPDOWN #1 Options:
England
/ Spain
/ Italy

DROPDOWN #2 Options:
(if England is selected)
Premier League
/ Championship
/ League One

(if Italy is selected)
Serie A
/ Serie B

DROPDOWN #3 Options:
(if Premier League is selected)
Saturday
/ Sunday
/ Monday

.... ( I hope you get the point)

I tried using this code, but I couldn't find solution for including third or even fourth dropdown options.

<select data-target="1">
<option value="">-- Select --</option>

{exp:channel:entries channel="football" dynamic="no" category="22" status="not closed" disable="member_data"}

{country}
<option value="{item:label}">{item:label}</option>
{/country}

{/exp:channel:entries}

</select>

{exp:channel:entries channel="football" dynamic="no" status="not closed" disable="member_data" category="22"}

<select data-group="1" data-target="2" data-ref="{country}">

<option value="">-- Select --</option>
{league}
<option value="{item:label}">{item:label}</option>
{/league}

</select>

{/exp:channel:entries}

{exp:channel:entries channel="football" dynamic="no" status="not closed" disable="member_data" category="22" }

<select data-group="2" data-target="3" data-ref="{league}">

<option value="">-- Select --</option>
{game}
<option value="{game:date-time}">{game:date-time}</option>
{/game}

</select>

{/exp:channel:entries}

{game} - that's Grid field
{country}, {league} - those are Checkbox fields


texts:
I have a development site that I've currently set as offline. I created a content administrator members group (which currently has one member) and gave the group permission to view the site when offline. When the one member logs in and attempts to view the site she sees the site offline page. However, when I log in as the same member (same UN, same pass) on my computer I am able to see the site. Thinking that some of my superAdmin privileges might be stored somewhere in my browser I tried logging on as her in a different browser, different computer, and my iPad. In each case I got the same result. I could log in with her credentials and see the site. We set up an Adobe Connect meeting so I can confirm the issue she's having. She's using Firefox in Windows 7, logging in correctly, trying to access the site from the upper right hand link on the CP....and nothing. Based on my tests it seems like the issue is isolated to her system. Can anyone provide some insight to what the problem may be?

Thanks!


texts:
So I have ExpressionEngine Core Core v2.10.1 - Build Date: 20150501 installed and under localisation I have set to see 24 hour default time formatting and to include seconds in the default time format, but when I go to list of entries, that setting is not applied. I still see AM/PM time and also when I go in the entry and want to change time of publishing for some entry I get an error: "This form has expired. Please refresh and try again."
I did put in config.php $config['disable_csrf_protection'] = "y"; but it did not help.


texts:
I'm trying to figure out how to get Expresso:Store to add the necessary Google Analytics Ecommerce tracking code after checkout.

Although the docs say you simply have to enable the Conversion Tracking within the Expresso:Store control panel this doesn't seem to do anything.

The standard Google Analytics code is there but no specific product data is tracked.

Is this something that should be happening or am I expecting more than it's meant to do. The docs aren't very detailed.


texts: Wygwam editor field suddenly stops working

texts:
Our Wygwam editor suddenly stopped working today at a particular time. It had been used all day up to that point without any problems. Our hosting company says no changes were made to server permissions.

When I load the control panel editor page the web page loading is cancelled due to this file...

https://mysite.com/ee_admin.php?D=cp&C=content_files_modal

When wygwam has problems it seems to be usually related to an incorrect file path or something similar. I've tried upgrading Wygwam to version 2.7 and reinstalling the DevDemon Channel Images wygwam plugin. When I set a field to NOT defer loading of Wygwam we just get a blank grey area on the Editor page.

This is happening in all web browsers that we've tried.


texts:
My site loads at a sluggish 5 seconds. I've made the images the smallest I can without loosing too much quality. It was at 4.1 seconds, which wasn't great, but I was happy with it. Would adding channels to the mix lower load time? Right now, I think I can get by with none. This is a free version of expression engine with only one free add-on. Website is reachoutcelebration.com

Any suggestions would be appreciated.


texts: Expresso Store DPS/PxPay Response Issues

texts:
When using PaymentExpress_PxPay on my Expresso Store, it all works fine until I get returned from DPS with the below URL.

/?ACT=30&H=5c08b9f81972472bd8f0a7691a82388c?result=v5Z1giv_jYce6gai7Ng6XIMCiiGkz5I43snkE6WWVwfMmZMy9iGlWiDp3v4fiv-qYrY9n4YCoX8GC0QnrXLmu95MKZ16QRPLhNgzm7Glv3riSlyGCVNOHGdxSEQLDGxveHs6chn3pdo-osy1ElCqxlvCVBlp7t5P7g7MRsEnUS3tK2sR6tvuCOrkFZJ71reJGDn6jeqEq6LYz20vdeZPF3TtPHPAQaD5hX0_sSJ2fDnMESgsiupFvv5mU4zNoNXL5OlUxR4Z34Jq-ZNyK--NEvcGk8zZHvOkouriaVeeKhhJjCCB8SX64lCeyDgcsfRkofXcx2Qnr4R6qV2qjZkTt2YmdviXQCwxqzKRR5g-ZPTgiZTXn6bu68YE6fzCN94O1K_pFCO4aZ2lN2NR35Ced8eW41LuIkI4VDZYFvXOaG-h7EVETm3XWTARVm-f_rgtyyxwbAi2kJBrfMsp4w59KZx13ACqBRje6-&userid={my DPS user id}

Store can't extract the transaction hash out of the get data. (In Module.php, act_payment_return()) It looks for the index "H" which you can see below, but that drags "?result" and all the rest with it two as it's not properly. I seem to remember having some strange issues with processing DPS responses in the past when building my own payment processors, but as this is an out of the box product where this is already built I thought I better see if anyone else has had this issue.

EE V2.7.2, Store V2.0.6


texts:
I'm working on a search section of a site which allows users to find a list of shops based on their categories.

I would also like to find shops that have offers.

Offer entries have a relationship field which links it back to the shop entry.

With Low Search, is it possible to run this psuedo code?

Give me all of the shops from category 2 that are a parent to an open offer


texts: static caching with stash and spa behaviour

texts:
our website is SPA, so only first request is loading the whole page with css/js stuff. every next load is an ajax request. the initial request caches the whole site as expected. code is:

{layout="ech:base/.base_ech"}

{layout:set name="meta"}
    {exp:social_tags description="Start | Energy"}
{/layout:set}

<!-- load data for home -->
{stash:embed:ech:stash_featured stash:rubricid="0" stash:limit="7"}
{stash:embed:ech:stash_entries stash:rubricid="0" stash:hideFeatured="7"}
{stash:embed:ech:stash_disrupters stash:rubricid="26"}
{stash:embed:ech:stash_teasers stash:rubricid="41"}

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

<!-- featured home section -->
{in:sert:index/.homeFeatured}
<!-- all other entries on home -->
{in:sert:index/.homeBrandnew}
<!-- all other entries on home -->
{in:sert:index/.homeAktuell}
<!-- all other entries on home -->
{in:sert:index/.homeArchive}

{/exp:stash:parse}

{exp:stash:static name="home" refresh="15"}

I find the whole site cached under stashCache/1/index.html
Navigating from domain.com to domain.com/site2 and then back to domain.com will overwrite my index.html cache but with missing  elements, because we cut them out while loading with ajax.

example:

{if !is_ajax_request}
<!DOCTYPE html>
<html lang="en">
<head>
... // thing not to load with every request
{/if}

loading the landingpage over a XMLHttpRequest will not break the site, but will overwrite the cache for index.php. if I really reload then with F5, the site has no styles, because the cached template has no

any suggestions for static caching and SPA sites?


texts: Let customers remove items from CartThrob packages

texts:
I've got a setup on a site (currently running with CartThrob) where I need to select a Price Modifier (or Matrix) row via a Playa field, which I realise isn't possible with a hack.

There would be 100's of products (yarns and wools) and each would have several Price Modifier rows (colours). The colours are what I need to get to from the Playa field.

Yarn 001 Red
Yarn 001 Blue
Yarn 001 Green
Yarn 002 Red
Yarn 002 Purple
Yarn 003 Black

I need to create custom bundles of yarn colours.

I'm aware of the Packages field in CartThrob - but I need to be able to let the customer remove items from the bundle which doesn't look possible with CartThrob.

Could anyone tell me any different please?
Or can Store do this sort of functionality?


texts: Entry titles that start with X,Y, or Z do not show up on page

texts:
Hey everyone this is a weird issue I hope I can get some clarification.

Firstly, this is EE 2.2.0.

One of our pages cannot show entries that have a title that starts with X,Y,or Z.  All other letters work.  There is nothing complex in the code to exclude any letters or anything like that.

{exp:channel:entries channel="add-job" orderby="title" sort="asc"}
{if job-type == "Full-Time"}

{title}

{related_entries id="Willson"}
 Camp Willson
{/related_entries}
{related_entries id="delawarey-staff-contact222"}
Delaware Community Center
{/related_entries}
{related_entries id="Downtown"}
Downtown
{/related_entries}
{related_entries id="ELC"}
 Early Learning Center
{/related_entries}
{related_entries id="ECRN"}
ECRN+
{/related_entries}
{related_entries id="Ward"}
Eldon & Elsie Ward Family
{/related_entries}
{related_entries id="gahanna-staff-contact"}
Gahanna
{/related_entries}
{related_entries id="grovecity-branch-contact"}
Grove City
{/related_entries}
{related_entries id="hilliard-branch-contact"}
Hilliard
{/related_entries}
{related_entries id="hilltop-branch-contact"}
Hilltop
{/related_entries}
{related_entries id="hilltopeducare-branch-contact"}
 Hilltop Educare
{/related_entries}
{related_entries id="cherrycreek-branch-contact"}
Hilltop /Cherry Creek
{/related_entries}
{related_entries id="hoover-branch-contact"}
Hoover Y Park
{/related_entries}
{related_entries id="garver-branch-contact"}
Jerry L. Garver
{/related_entries}
{related_entries id="liberty-branch-contact"}
Liberty Township/Powell
{/related_entries}
{related_entries id="metro-contact"}
Metropolitan Offices
{/related_entries}
{related_entries id="north-branch-contact"}
North
{/related_entries}
{related_entries id="pals-contact"}
PALS/Juvenile Justice
{/related_entries}
{related_entries id="pickaway-branch-contact"}
Pickaway County Family
{/related_entries}
{related_entries id="stanns-branch-contact"}
 St. Ann's Educare
{/related_entries}
{related_entries id="sunshine-branch-contact"}
Franklin Station
{/related_entries}
{related_entries id="vaughn-branch-contact"}
Vaughn E. Hairston
{/related_entries}
{related_entries id="van-buren-center-contact"}
Van Buren Center
{/related_entries}

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

I can take an entry that doesn't work, change the title to "T" or really any other letter, and it will work.  When I make test entries that just say X,Y, or Z, nothing works.


texts: Determine if display_field is request from {safecracker} tag vs. backend?

texts:
:)

I am trying to develop a new fieldtype and would like to display different markup depending on whether the field was requested by the user or in the backend.

Is there a reliable way to detect in the display_field() function whether it was requested via the {exp:safecracker} {custom_fields} loop.


texts: Heavy CPU load on MediaTemple: help decipher from TOP query

texts:
For one of our clients, we have unusually high CPU/DB load. Here's what we got from the host:

  1878 clientsite 20 0 213m 43m 8088 R 18.7 2.3 0:05.86 /usr/bin/php-cgi
  -c /var/www/vhosts/acme.com/etc/php.ini  1903 clientsite 20 0 219m 48m 7988 R 12.8 2.5 0:04.06 /usr/bin/php-cgi -c
  /var/www/vhosts/acme.com/etc/php.ini  1900 clientsite 20 0 214m 44m
  8088 R 12.5 2.3 0:02.97 /usr/bin/php-cgi -c
  /var/www/vhosts/acme.com/etc/php.ini

Another appears to be from your database:

  1005 mysql 20 0 282m 48m 6564 S 26.0 2.5 3:08.51 /usr/libexec/mysqld
  --basedir=/usr --datadir=/var/lib/mysql --user=mysql --log-error=/var/log/mysqld.log

Is there anyway we can find out what part of EE (if any) that's causing the load? We're having very frequent "Internal Server Error" site outtages.

Thank you all!


texts:
I am using FreeForm PRO with EE 2.6.1.  I have a form that I only want submitted if the author agrees to the terms and conditions by checking the box.  I tried to make it a required field, but that did not work.

Any help would be appreciate.


texts: What does a slow "Parsing Segment, Embed, and Global Vars Conditionals" log entry mean?

texts:
I'm working on getting EE installed on Google Appengine's new PHP runtime.

Things are slow, and I'm trying to identify why that might be.  I've disabled most add-ons, and created an EE tag-less template.  The url is a straightforward template-group/template format.

It should be really fast, but I'm seeing a very slow stage I've never seen slow before:

(0.030650/1.42MB) - Parse Current Time Variables
(0.030660/1.42MB) - Parsing Segment, Embed, and Global Vars Conditionals
(0.339330/1.43MB) - - Beginning Tag Processing -

What exactly happens during that Parsing Segment... stage?


texts: How to proceed after upgrade error ee2 to 3?

texts:
I am upgrading from Expression Engine 2 to 3. The upgrade was stopped and the following is the message I received:

Error While Installing 3.4.1 Stopped
Oops, there was an error

ExpressionEngine appears to already be installed on your database, even though your config file is blank. If you are attempting to update ExpressionEngine from a previous version restore your config file first, then run this installation wizard again.

HOW DO I PROCEED?

Thanks


texts:
I have set the Default Mail Format in Email Configuration to HTML but email notifications are still being sent as plain text.

I have looked at the other posts regarding this issue but I could not find a definitive answer on how to get this to work.

Any help is appreciated.


texts: Discussion Forum - Users can't update profile settings

texts:
I'm using the Discussion Forum 3.1.15 (EE 2.8.1).  For some reason, users aren't able to update their profile settings, e.g. Edit Profile, Edit Localization, etc.  When they submit the forms, they get the following error:

  "The action you have requested is invalid."

I noticed this was a bug related to XID values not being present as hidden fields in the forms on EE 2.7.x and Forums 3.1.14, but it was supposedly fixed and those fields are now there.

Is there a configuration tweak or something that I'm missing, or does anyone have any ideas?

Any help is much appreciated!


texts: Migrate EE install from enginehosting to acrustech and change domain name

texts: My legacy site EE2.3 and mysql database for an expired domain name has been migrated from Enginehosting.com to Acrustech. I have the new login information for accessing control panel, database, and sftp. I can login successfully to see the site via ftp, but haven't figured out how to connect to the control panel or mysql database. The new domain name is not yet live, the old domain name is inactive, the IP address is known and is unique. It appears I have to manually edit some of the installer information to get the system working. Given this information, if I update system/expressionengine/config and system/expressionengine/database with the correct server info, passwords, and ip address in lieu of the old domain name, should that allow me to connect to the database and control panel?


texts:
I have a playa field into an entrie for a channel written by teachers.
I'd like to prevent when a teacher uploads the same 'link' multiple time in different lessons that the 'link' is NOT shown multiple times but only once in a summery for the student

I was thinking for a conditional like {if link == link} {/if} or would a conditional with count be in order for this.

Hope someone can help?

{exp:playa:parents channel="teacher" status="not closed"}
                    {link}
{/exp:playa:parents}

Thanks in advance

Dave


texts: Unable to send email through Exchange SMTP

texts:
I'm trying to send email through a Microsoft Exchange SMTP server using the Communicate Tool in EE admin. When I try to send an email, the browser spins for 5-10 seconds and then I get the following error message:

An Error Was Encountered

Unable to send email at this time.

220 xxxxxxxxxxxxxxxxxxxx Microsoft ESMTP MAIL Service ready at Wed, 10 Dec 2014 07:52:35 -0600

hello:

The following SMTP error was encountered:
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

I know my settings in EE's Email Configuration are good. I've tested connecting to the Exchange server and sending email through both telnet and a PHP script and those both worked. And yet, ExpressionEngine won't send mail. What am I doing wrong?


texts:
I am creating a form using exp:channel:form to add an entry to a channel using ajax I have a hidden title, utl_title fields that are programmatically set and an entry_id field that is initially set to 0.  This works fine, with the data return returned from the ajax call I update the form that is created and set the entry_id field with the return entry_id so that in hopes that when the form is posted again it would update channel entry instead of adding another channel entry.

The problem is that everytime the form is posted it creates a new channel entry, is there a way using the ajax option to update the entry that was just previously posted?

Here is my form template and the JavaScript code I use to do the ajax call and update the form entry_id field and url parameter.

Template Form
=============
{exp:channel:form channel="ads" json="yes" datepicker="no" include_assets="no" include_jquery="no" logged_out_member_id="2"}
    <input type="hidden" name="title"       id="ee_form_title"      value="">
    <input type="hidden" name="url_title"   id="ee_form_url_title"  value="">
    <input type="hidden" name="ad_email"    id="ee_form_ad_email"   value="">
    <input type="hidden" name="ad_image"    id="ee_form_ad_image"   value="">
    <input type="hidden" name="ad_message"  id="ee_form_ad_message" value="">
    <input type="hidden" name="ad_persona"  id="ee_form_ad_persona" value="">
    <input type="hidden" name="ad_tagline"  id="ee_form_ad_tagline" value="">
{/exp:channel:form}

JavaScript
==========
$('#publishForm').ajaxForm({
    dataType: 'json',
    async: false,
    cache: false,
    success: publishFormResponse
});

function publishFormResponse(responseText, statusText, xhr, $form) {
    if (statusText == "success") {
        // xhr.responseJSON.entry_id is always a new incremented id instead of the id from the first form post
        if (!entry_id) {
            // Update the form entry_id field and the form entry_id url parameter
            entry_id = xhr.responseJSON.entry_id;
            $("#publishForm .hiddenFields input[name='entry_id']").val(entry_id);
            $('#publishForm').attr('action', $('#publishForm').attr('action').replace("entry_id=0", "entry_id="+entry_id));
        }

    } else {
        alert('Failed with the following errors: '+data.errors.join(', '));

    }
}


texts: Dynamic Return Based on Existing Checkboxes

texts:
This is on a client site running EE 2.6.1 and Freeform 4.0.12.

I have a Freeform-based contact form with dynamic recipients in place and working based on user's section of 10 different checkboxes. So far so good.

Now the client is asking that the return page URL be dictated by those same checkboxes - so they can track different things in Google Analytics.

What they want isn't just a 1:1 mapping of checkbox to URL - they want some different combinations (if user selects a & b, do this, if they select all checkboxes do that, etc).

I see Freeform Pro has a return field that allows different return URLs based on the field selection, but what I need is to leverage the existing checkboxes, and be able to insert different logic statements before the final return URL is chosen.

Any ideas?


texts:
Having so much trouble with this plugin, no notifcation emails being sent, also when i subscribe or unsubscribe to a forum i get the following.

Fatal error: Call to undefined method EE_Functions::remove_double_slashes() in /var/www/vhosts/domain.co.uk/system/expressionengine/third_party/forum_subscribe/mod.forum_subscribe.php on line 315

Using MSM and EE version 2.9


texts: Update file caching of plug-in from EE2 to EE4

texts:
I've been tasked with updating an older EE plug-in that caches Weather Information from Weather Underground. Since WUnderground closed their API a few weeks ago, I've since transitioned the plug-in to open weather map and I've got data coming through properly that I can see on the front end, so all's well there.

The plug-in has some caching functionality where data is cached to reduce unnecessary API calls, but right now I'm having trouble troubleshooting that. Here's a quick example of the code:

function fetch_feed( $key, $location, $language ) {

        $parsed_json = FALSE;

        // Check cache

        $cache_path = APPPATH . 'cache/' . $this->cache_name . '/';
        $cache_refresh = $this->cache_refresh * 60; // seconds

        // Check cache folder exists

        if( ! @is_dir( $cache_path ) ) {
            @mkdir( $cache_path );
            @chmod( $cache_path, 0777 );
        }

Since the cache that add-ons use has moved from system/expressionengine/cache/ to system/user/cache/ I'm getting an error:

Warning fopen(/ee/legacy/cache/weather_forecast/214bc472f656e049d8fcc62458fb70e6):
failed to open stream: No such file or directory

I take it I'll likely have to edit the cache path variable, is there a smarter variable to user here aside from '/user/cache/'? My cache folder should have the correct permissions since a number of other add-ons are writing to it without issue.


texts: How to generate a manifest.appcache from a template?

texts:
I have a web app built with ExpressionEngine (2.8.0 at present) and I want to use it to auto-generate an appcache manifest file (I have been generating it manually).

I can generate the content of the manifest easily enough with a standard template, and I can use htaccess to…

AddType text/cache-manifest .appcache

…but how best can I get the output of my template served as a .appcache file?


texts: Member registration rejecting valid selection option

texts:
I have a member registration form with standard fields. One of them is State, which is a Select List with state abbreviations as options.

Lately, when users attempt to register, they are told The following field contains an invalid selection: State and invited to return to correct the form where the state is selected. Choosing any other state repeats the error. However, we can see that m_field_id_7:IL, for example, is in the POST request like any other field.

Why might this be happening and how can we diagnose it?

Edit: added images that show the nature of the form and how it behaves. It doesn't use AJAX -- just normal member fields.


texts: Expression Engine + FreeForms Pro --> MS Dynamics Integration

texts:
At the moment we have a website running on Expression Engine with FreeForms Pro. We hope to integrate the forms in a way that this data exists in our MS Dynamics CRM package.

What's the best way to realize this? Would there be any example code/demos online or would this be something only specific vendors could do?

Hope to hear from you.

Many thanks,
Peter


texts:
I'm a newbie in expression engine and would like to know if there is a module, app, plugin or script that allows for one to move not only the site but addonn settings from local > staging > production.

I have used drupal 7 and they have a features module where dependencies for specific modules can be set and moved from local > staging and production without having to setup on the different environments.


texts:
I have an ExpressionEngine 3 site that the client doesn't want to upgrade but we need to clear the cache weekly. I'd like to set up a cron job to do this.

Is this possible? If so how?

Thank you.


texts: How to email contents of a Channel Form submission with EE3x

texts: I set up a channel form with all custom fields... Is there an option to send an email to a recipient with all those values upon submission?  This seems like it would be such a common feature people would use but I'm not seeing it.


texts: absolute_results for friends:members loop

texts: Friends member loop doesn't recognize friends_absolute_results, however it does recognize friends_total_results. I am using pagination, so I want it to say "total_results" out of "absolute_results". How do I go about this?


texts: Stashing a structure variable and using it as a channel parameter

texts:
Here's the code i'm essentially trying to achieve

{exp:stash:set="page_content"}
    {exp:channel:entries channel="photos" dynamaic="off" entry_id="{structure:child_ids_for:1}"}
        {!-- My Code --}
    {/exp:channel:entries}
{/exp:stash:set}

This is my first problem {structure:child_ids_for:1} is unable to output as a channel parmater. I tried to stash that structure variable, I tried it as a snippet and no luck with both. I'm also using template partials so that's why page_content is being set.

This following code works with static values but not the {structure:child_ids_for:1} tag in the stash set.

Works:        {exp:stash:set name="photo_child_ids"}2|3|4{/exp:stash:set}
Doesn't Work: {exp:stash:set name="photo_child_ids"}{structure:child_ids_for:1}{/exp:stash:set}

Template Code

{exp:stash:set="page_content"}
    {exp:stash:parse process="end"}
        {exp:channel:entries channel="photos" parse="inward" dynamaic="off" entry_id="{stash:photo_child_ids}"}
            {!-- EE Code --}
        {/exp:channel:entries}
    {/exp:stash:parse}
{/exp:stash:set}

Any Ideas?

EDIT: Thanks for the answers. The solution is below.

This stashes the structure child ID tag

{exp:stash:set name="photo_child_ids" process="end" parse_tags="yes"}{structure:child_ids_for:1}{/exp:stash:set}

This code gets that photo_child_ids stash variable and sets it as a parameter

{exp:stash:set name="page_content"}
    {exp:stash:parse process="end"}
        {exp:channel:entries channel="photos" parse="inward" dynamic="off" entry_id="{stash:photo_child_ids}"}
            {!-- My Code --}
        {/exp:channel:entries}
    {/exp:stash:parse}
{/exp:stash:set}


texts:
I have got editors who often have an entry open around 30minutes before saving.
I have turned on autosaving in the config.php file and this is also reflected in the config edotr in the control panel:

$config['autosave_interval_seconds'] = '5'; // to test I have set this to 5 seconds
$config['autosave_prune_hours'] = '8';

I have tried to research this problem but I can't find anything helpful.

Am using ExpressionEngine v2.5.2 (this is a multi site).

Any help is appreciated,
Thanks


texts:
I have installed the forms module in a MSM site and even after logging in through the url listed in my general config, I'm getting the
“Failed to load Default Forms Fields.. Refreshing the page might help.”
“Failed to load DB Fields.. Refreshing the page might help. DO NOT SAVE THE FORM!”
one two combo. I'm running ee v2.9.0 and forms 3.4.12. Any help is greatly appreciated.


texts:
ExpressionEngine 2.8.1 always gives 403 Forbidden error when using ajax. Every ajax call given "This form has expired. Please refresh and try again." response.

I have also tried to pass hidden XID

<input type="hidden" name="XID" value="{XID_HASH}" />

and made secure form's value 'n' in config file.

Anybody have solution, how can i fix it

Thanks


texts: Showing Channel Image gallery IF there's more than 1 images?

texts:
How to show a channel image gallery if there is more than 1 images inside?

{exp:channel:entries channel="journal" limit="1" url_title="{segment_3}" disable="categories|member_data|pagination|trackbacks" cache="yes" refresh="512640"}

{if image:total > 1}

<div class="mini-page-wrapper responsive-image bg-accent-darkest offset-parent">
{exp:channel_images:images entry_id="{entry_id}" limit="1" field="journal_images"}
    <!-- ..code for my image gallery.. -->
{/exp:channel_images:images}
</div>

{/if}

{/exp:channel:entries}

the conditional global variable {if image:total > 1} should be placed after {exp:channel_images} but i need to hide the parent div class too.. so..


texts: Create variable to be used in conditional in an Extension

texts:
I am creating an extension for Cartthrob. What I need it to do is not allow the customer to complete their order if there are a certain number of certain products in the cart (there are three products that they can only buy a total of 8 across all three, but two products that they can buy any number of).

I have the extension set up on the cartthrob_update_cart_end to check the items currently in the cart. I was hoping to set a variable (global?) that I could use later on in the checkout template in a conditional. Setting a global variable like this DID NOT work for me:

$this->EE->config->_global_vars['test_var'] = "test var";

When I try to output the variable as {test_var}, it only outputs the variable name (it wasn't parsed). This would most likely be a parse issue, but since this is an extension I thought parsing wouldn't matter.

Some pseudocode I was thinking:

Update cart hook calls my function in ext.limit_items.php.
My function counts up all the products and sets a variable "item_count_passed" to either true or false.
My checkout template loads. Within the template is the following conditional: {if item_count_passed} then show checkout form, else show message.

Is this possible/is there a better way to do this? I am saying this is not specific to Cartthrob since I am just asking how to set a variable in extension code that can be used in a conditional in a template.

Thanks!

Edit: I realize that I am probably looking more for a session variable and not a global variable.

Edit #2: Just to be clear, the root question is: How can I set a variable in an extension that I am writing that would be available in a template, particularly within a conditional?


texts: Channel Videos - Display if video exists

texts:
Confused as to why this does not work (EE5).

I have a Channel Videos field named {p_vids}.
In my template, within the channel:entries I have the below, but it doesn't display the video/code. (Displays fine without the 'if' conditional)

{if p_vids}

Videos

            {exp:channel_videos:videos entry_id="{entry_id}"}

{video:embed_code}

{video:title}

            {/exp:channel_videos:videos}

{/if}

I cannot use/have the {if video:no_videos} within the channel_videos tag since there is the entire layout outside of that - which I Do Not want displaying unless a video(s) is/are added.

What am I missing?
Any help is appreciated.


texts: PHP/AJAX Error from DevDemon Campaigns When Posting to Facebook

texts:
I'm getting the following error when I try to post to one of my Facebook pages from Campaigns:

A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: services/service.isgd.php
Line Number: 53
{"success":true,"errorMsg":"","errors":> [{"box_id":2,"campaign_order":1,"error":"shortenUrl(): "},> {"box_id":2,"campaign_order":1,"error":"shortenUrl(): "}],"campaignId":""}

Does anyone know of a way to resolve this? I am running EE 2.11.2, and Campaigns 2.2.0


texts: "URL Segment Support" configs on Apache mod-PHP 7.2 server

texts:
I'm moving a site from Nexcess to Google Cloud hosting, and it appears the server doesn't support URL segments by default.

What do I need to have my web hosting do in order to enable this? They said they need the info from EE on what to do to configure this, but it's not anywhere in the docs (that I can find)?

The requirements are here: https://docs.expressionengine.com/v3/installation/requirements.html and the URL Segments section is at the very bottom.


texts: How do I limit content display based on Categories selected?

texts:
Under most circumstances this would be an easy answer, but I have a slightly trickier segment I am working with.

The following code displays the category names if they are selected in the entry:

Results Type

                <?php  $parents= array(); ?>
                {categories show_group="5"}
                <?php $parent_id = '{parent_id}'; if(!$parent_id) {$parents ['{category_id}'] = '{category_name}';} ?>
                {/categories}

                <?php foreach ($parents as $key => $parent) { ?>

<a href="/projects?category=<?php echo $key; ?>"><?php echo $parent; ?>

                        {categories show_group="5"}
                        {if parent_id == <?php echo $key; ?>}
{category_name}
{/if}
                        {/categories}

                <?php } ?>

However, the client wants to hide the entire section if none are selected in the entry.

I want to wrap the entire div in a conditional that checks to see if any of the categories are checked and display it only if it is not empty.

I would say it like this, but I can't seem to get the conditional right. Any guidance will be appreciated.

{If category count > 1}
   ... display the content
{/if}


texts: How to repopulate fields in Zoo:Visitor registration form?

texts:
I'm using inline error handling with a Zoo:Visitor registration form. When the form is submitted with an error, such as "The email you chose is not available", the fields do not repopulate with the values submitted. I have value={field_name} in place for each field. How should this work?

Thanks!

Mark

UPDATE

Here's some of the code. You'll see value for member_firstname is set. Yet when I submit the form and get it back with an inline error for email, nothing is displayed in the member_firstname field:

            {exp:zoo_visitor:registration_form
                error_handling="inline"
                return="members/success"
                include_jquery="no"
                allowed_groups="7"
                preserve_checkboxes="yes"
                }

                <input type="hidden" name="group_id" value="" />

Email* <input id="email" name="email" type="text" value="" />
                {error:email}
                <input id="member_academic_discount" name="member_academic_discount" type="checkbox" /> I am a student or teacher registering with a .edu email address.

Password* <input id="password" name="password" type="password" value="" />
                {error:password}

                Confirm Password* <input id="password_confirm" name="password_confirm" type="password" value="" />

First Name* <input id="member_firstname" name="member_firstname" type="text" value="{if member_firstname}{member_firstname}{/if}" />
                {error:member_firstname}


texts: EE 2 and Transcribe - Get related entry ids

texts:
EE 2.9.3
Transcribe 1.6.2

I have an older EE site where I need to output the entry_id of the associated translated entry.

Something like this:

on the English listing page:

English title
English Summary
  - French Entry ID

And then on the French page this:

French Title
French Summary
  - English Entry ID

Is this possible? If so how? Maybe through a database query? Not sure how to do that either. FWIW I can't upgrade to the latest EE or transcribe.

Looking in the database I see a table exp_transcribe_entries_languages with a column of relationship_id that contains a hash which is duplicated on associated entries. other columns are id, language_id, and entry_id

So two entries that are related to each other include:

id    language_id   entry_id  relationship_id
1372      1           1372     5bf41ee76f1ef
1376      2           1376     5bf41ee76f1ef

You can see the relationship_id matches. Is there a database query that I could put in a template so that I can output the entry id of the opposite language. Where langauge_id of 1 = english and 2 = french

something like this:

{exp:channel:entries channel="news" limit="5" disable="member_data|comments"}

{title}

Current Language Entry ID: {entry_id}

Other Language Entry ID: db_query_here

{/exp:channel:entries}

Thank you.


texts: Replace CE Image with Assets resizing images in templates?

texts:
This is probably a newbie question but I checked the docs and am a little unclear.

I'm currently using CE Image to resize images in templates. I'm upgrading a site to use Assets for file management - I am wondering if Assets allows for the same type of image manipulation in tempts. That is can it:

Resize images when they are called in the template?
Cache the resized image for efficiency?
Accept a max-width and max-height parameters and resize to scale?
Accept a resize quality parameter for the quality?

If not, is there another solution for using Assets alone?

Bonus question: Can it do these things using S3 for storage?

Many thanks in advance!


texts:
I have a small php forum on my website that allows users to create posts and each post has a page that displays the content and where users can comment on that topic.

For each post created a new table is generated in the database to hold the comments for that post.

I want to convert the system from raw php to expression engine and i have the following question.

Is there a way (like a php hook) to create and delete channels directly from php like you would create and delete tables from the database.
I want to generate a new channel to store comments when a new post is created and delete that same channel when the post is deleted.

Or maybe it's better to just have one channel to hold all of the comments and have an id for each comment to know what post it's coming from.


texts:
Does anyone know of any member management tools that are out for EE 3?  I was hoping zoo visitor (now owned by devdemon) would be ported to EE 3, but that addon seems to have gone dark.  And profile:edit which was also purchased by someone new has gone dark as well.

I preferred those addons to using the native member manager because of the flexibility in field types you could use.  But with the lack of support behind any one member manager I may look to using the native tools to avoid any future problems.

Does anyone have any thoughts or other means they manager their website members?


texts:
I currently use a mixture of Freemember & User to create my customised profile/account pages.

The urls for these types of pages are things like member/profile/{member_id}/favourites or member/profile/{member_id}/bookmarks

Where segment 3 is always the member ID.

I was wondering if its possible to change segment 3 to use the members username rather than the member ID?

It will make for nicer more personalised urls, but I'm not sure if there's a downside or if it even would work?


texts:
In EE2.9 (can go up) is it possible to target the first paragraph of text in a channel entry?
I want to add a class only to this first paragraph for a CSS3 drop cap to the text.

Thanks in advance for any help on this.

Justin


texts: What hook should I use that executes before a channel entries tag is parsed?

texts: Suppose I have a template with a channel entries tag on it. I need to execute an extension method during a hook that runs before the channel entries query takes place. It doesn't matter what parameters are passed to the hook, I just need to execute some logic any time entries are going to be queried.


texts: how to use a custom image instead of generated submit button

texts:
Freform PRO - 4.1.3
I'm using the tag {exp:freeform:form}

How do i reference my custom image instead of the generated button?

Thanks


texts:
When logging in with Social Login Pro I get this error:

A Database Error Occurred

Error Number: 1054

Unknown column '-7200' in 'where clause'

SELECT `ip_address`, `user_agent` FROM (`exp_sessions`) WHERE `member_id` = '75' AND `-7200` IS NULL AND `site_id` = '1'

Filename: third_party/social_login_pro/mod.social_login_pro.php

Line Number: 1481

My system:

EE Version: 2.9.0
Social Login Pro version: 1.8.0


texts:
Is there anyway to implement Forgot Password with Ajax. I tried the Authenticate
but it doesn't working properly with EE v2.7+. Could anyone please help me.


texts: Filter event lists by today AND current time

texts:
Can the exp:cal tag filter events by date AND time? Example: I want to show upcoming events for the week but I want to exclude those that have already passed today.

{exp:calendar:cal date_range_start="today" show_weeks="3" event_limit="6" pad_short_weeks="n"}

Should I be using exp:cal? This is Calendar 1.8.14 on EE 2.11.9 (I know it's old but that's what the client has).

I can use a conditional like {if {event_start_date format="%U"} > {current_time format="%U"}} but then my event_limit parameter gets limited even more. I need the same future total amount each time.


texts: Cross reference entries - use tags or playa field?

texts:
I'm working on Exp-resso store and now I'm at the stage where I need to cross reference a product, which already belongs to categories (like Furniture -> Chairs) under same channel 'Products'. Now I need to have same product to be in 'XYZ Collection' and 'Gifts Under $500' list, and as a final URL displayed it as it was in the Furniture->Chairs (avoid multiple URLs for same product from SEO perspective).

Which way will be the best to go - use tags (add-on like http://devot-ee.com/add-ons/tag or http://devot-ee.com/add-ons/tagger) or playa field?

Thanks


texts: Changed my Control Panel to https, but assets doesn't show images nor let me load. In http it works fine, but when i change the address to https, according to firebug, the address https://myurl.com/index.php gets redirected. I already have $config['assets_site_url'] = "/index.php"; on my config file, so what am i missing?


texts: Link to categorised listing entries using Structure

texts:
I am designing a site just now that has a 'reviews' section and in that section each review can be categorised, e.g. 'Album Review', 'Live Review', 'Press Review' etc.

The url structure I have is:
www.mysite.com/reviews/album/actual-album-review
www.mysite.com/reviews/live/actual-live-review

I can get my categories to display in the sidebar and when each one is clicked it filters the reviews to the correct categories but the links to those reviews, when clicked, don't show the actual reviews, just the list of entries again. The reviews are listings of the reviews page.

Can anyone shed any light on how to get this working? I've been scratching my head for a few hours now!

I am using the latest version of EE, Structure and Freebie - I also have Zoo Triggers but I am having more joy with Freebie so the template code relates to this.

My template code:

Sub Navigation

     All Reviews
     {exp:channel:categories class="subNav show-for-medium-up"}
     {category_name}
     {/exp:channel:categories}

     {embed="includes/breadcrumb"}
     {exp:channel:entries channel="reviews_page" limit="1" disable="category_fields|member_data|pagination"}

{title}

     {reviews_page_content}
     {/exp:channel:entries}

     {if freebie_1 == "reviews" && freebie_2 == ""}
     {exp:channel:entries channel="single_review" limit="10" disable="category_fields|member_data" dynamic="no"}

{title}

{review_subject}

                    Read Review

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

     {if freebie_1 == "reviews" && freebie_2 != ""}
     {exp:channel:entries channel="single_review" dynamic="no" limit="5" category="{exp:freebie:category_id segment='2'}" parse="inward"}

{title}

{review_subject}

                    Read Review

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


texts: Problem trying to retrieve same stash variable multiple times in same template

texts:
I'm having an issue retrieving a specific stash variable more than twice on the same page. It appears that when I try and get it the third time, I'm seeing random content output that lives elsewhere on the page.

The template code I'm using is pretty standard:

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

Is there a limit to how many times you can show the same variable on a page?

Update: After further investigation this appears to be linked to switchee. Somehow.

Here's the basic template code:

<!DOCTYPE html>

    <meta charset="UTF-8">
    <title>{exp:stash:get name="st_school_name"}</title>

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

{exp:switchee variable="{segment_4}" parse="inward"}
    {case default="yes"}
        School: {exp:stash:get name="st_school_name"}

In the above code, it's the last line where things are going wrong. I'm thinking it has to be to do with switchee because if I move that last line above the switchee tag the output is as expected, which suggests that it has nothing to do with the frequency of calling that specific variable.

Cheers

Jim


texts: Moved site on same server and lost all files in file manager and file upload prefs

texts:
I have a subdomain “dev.” where the site was working fine. I then created a new subdomain on the same server called “staging” and copied all my site files from dev into that. I also created a new database for staging and imported everything from dev into that.

I followed the migration instructions as I always do, exactly. https://docs.expressionengine.com/v2/operations/moving.html

Updated all paths, etc. But for some reason, none of the images show on the site that were uploaded to directories. All of the images exist in their appropriate folders on “staging.”

However, there is nothing in my file upload preferences and nothing in my file manager. It’s as if everything disappeared.

If I try to recreate an upload directory in file upload prefs, i get this error “An Error Was Encountered The name of your directory is already taken.”

Also, when I looked in the exp_files table in the db, all the rel_paths still have the “dev” name associated with it.

I checked and re-checked everything, all my paths are correct in config, all of my directories have the correct permissions. I’m at a loss at this point.

EE 2.11.2 on a Windows Server.

I never work on a windows server with EE, but in this instance I had to. It has been nothing but a pain. Any help in the right direction is much appreciated at this point.


texts: Assets not showing the correct upload directory

texts:
I just upgraded to Assets 2.0 on EE 2.5.3. Installation went smoothly.

However my upload locations aren't acting correctly from within Assets.

My folder structure looks like this:

system
html
  assets
  docs
  images
  minified
  themes

html/assets and html/docs are both set up as upload directories in EE.

I'm using Master Config to set them. But even looking through the CP I can see they are correct.
The server path is correct and the Upload Directory URL is absolute, not relative.

But the Assets file browser shows the folder structure of both directories as if they were pointed at the html folder. (see screenshot)

Thanks


texts: Expresso Store limit certain products to member group

texts:
I'm building a webshop with hair care products, certain products however shouldn't be available to all members. We plan to have two member groups, regular buyers and haircare professionals.

So what I need to do is mark certain products to only be available to a specific member group(professionals).

What's the easiest way to achieve this? All the products are currently in one channel and I would prefer to keep them this way.

Should I just make a simple switch fieldtype? Is it possible to just write some type of "if member group = 4 AND fieldtype = yes" statement?

thanks!


texts:
When trying to add an entry from the CP with a user in an 'Editors' group (not SuperAdmin) I get this error on being redirected after submitting the entry:

[quote]An Error Was Encountered
You are not authorized to access this page[/quote]

The actual entry submits fine - so it is not really an error at all - it just goes to this error rather than the usual screen which shows on successful submission. I CAN fix it by enabling "Can view channel entries authored by others" in the group permissions but I don't want to do this because:

a) it shouldn't really affect it - this is nothing to do with any other user and more importantly:
b) I don't want this group to see the other entries - only their own entries.

This is in EE 2.7.3 - any suggestions? Surely this is not normal behaviour?


texts:
Just installed Assets 2.0.5 on EE2.5.2.

When I click 'update indexes' I get no loading bars.

I have checked my .htaccess file, which shouldn't interfere:

EE-supported method for removing index.php

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

    # If 404s, "No Input File" or every URL returns the same thing
    # make it /index.php?/$1 above (add the question mark)

EE 404 page for missing pages

ErrorDocument 404 /index.php/404/index

Simple 404 for missing files

  ErrorDocument 404 "File Not Found"

RewriteCond %{QUERY_STRING} sr=
RewriteRule (.*) http://www.kontera.com/$1? [R=301]


texts: Channel entries tag filter based on custom date field

texts:
I'm using the JSON plugin from Devotee to write a small API for a third-party.

Another developer (honestly) has added a 'start_date' custom field for when a particular offer is valid from. The 'entry_date' field is defaulting to the date the entry is added.

Is there a way of doing something similar to 'show_future_entries' but with a custom field? I only want entries to be returned where the start_date is before today/current_time.

Here's my simple JSON template code:

{exp:json:entries
channel="offers"
search:product_category="Food - chilled-dairy"
show_future_entries="no"
fields="title|offer_start_date|offer_end_date|product_image|product_weight|product_offer_message|
product_offer_image|...snip"}

Thanks in advance,
Brett


texts: 301 redirect url without / to end with /

texts:
im trying to correct some URL's that dont have the   /   at the end,

for example, expressionengine created the url without the  /   however, im trying to redirect whereas all my URls are consisten with the   /  at the end.

problem is I already have ranking on the non  / urls and now showing up duplicate content with urls listing the   /  at the end.

what kind or redirect 301 should I do.

ive tried this with no luck.

redirect 301 /products/item  http://www./products/item/

it wont work in my .htaccess file.

any sugestions


texts: How can I stop a form submit and validate with javascript?

texts:
I've come across a form that, on the rendered page, looks like this:

<form id="mx_locator" name="mx_locator" method="post" action="search-results">

  <input type="image" src="/images/search.png" onclick="loader()">

</form>

The form itself, in the template code, looks like this:

{exp:mx_google_map:form result_page = "search-results" log="" lat="" unit = "" backspace="1"}
  {embed="site/sidebar_search"}
{/exp:mx_google_map:form}

Question 1) Where can I edit the form html? And/or how can I add an onsubmit attribute to the form's opening tag? Does that EE code build a form tag? Or can I edit the static html elsewhere? In addition to other methods, I want to try to add an onsubmit attribute to the form tag. Not saying it's the best way, or that it'll work, but I want to try.

Question 2) How can I stop the form submission to check two text input fields before proceeding? I need to make it so one of two fields, in this case zip or city, are not blank. At least one must be filled.

I thought the loader() bit took care of everything, meaning I could call a diff function and then have loader() called when the validator checks out ok, but loader() just handles some css changes. I have no idea how the form is calling the MXgm script or sending it data, so I don't know how to stop it or call it manually myself.

Thanks for any tips.


texts: Upgrade from 5.4 to 6 not supported from built in upgrader

texts:
My installation doesn't seem to support the built-in upgrader for the 5.4 to 6.0 jump. Previous upgrades worked nicely. Is this what everyone else is seeing too? I don't see this issue reflected in the docs.
Screenshot: https://share.getcloudapp.com/BluYXPLE


texts: EE3: Importing into EE3 - updating existing entries

texts: I have an EE3 site, and I want to import data into it from my EE2 site. I'm planning on creating an XML file from the EE3 site that will have the entry IDs and titles, then adding the entry content into that XML file, then importing that XML file into EE3. I know how to construct XML files. What I'm looking for is: is there a way for me to map the XML onto the EE3 entry fields including custom fields; and, can the existing entries be updated if I use the entry IDs as the unique key? I have looked at DataGrab, but I'm not sure about the "updating existing entries" question.


texts: I need help tagging articles in a way that doesn't slow down the database

texts:
I have an article-based site that runs slowly, and I would like to change that.

First, each article has 3 options for tags in the backend (we use this add-on: http://www.solspace.com/software/detail/tag/). The 3 tag options are primary (mandatory), secondary, and company (if the article mentions a particular company). Also, for each article there is a "related articles" section on the frontend, which is generated based on that article's tag(s). This complicated tagging structure I think is unnecessary, and hard on the database (right)?

Second, each article is cached. This slows down the site and is also hard on the database.

So, what would you suggest I do to speed up my website and find "related articles" in a smart, simple way? Is there another add-on you would suggest, or should I stick with Solspace's Tags?

Thanks.

Here's my code:

{if embed:primaryTag != ""}

{embed:primaryTag} in the News

{exp:tag:entries limit="4" tag="{embed:primaryTag}" dynamic="off" tag_group_name="default|primary_tag" websafe_separator="" status="open|imported" disable="pagination|member_data|categories|custom_fields"}

{title}

{if count == "4"} More on {embed:primaryTag}
{/if}
{/exp:tag:entries}
{/if}


texts: Getting 500 error when trying to convert textile field to Wygwam field

texts: I am trying to convert a field type from a textarea with textile formatting to use Wygwam.  I am getting a long hang time and then a 500 server error.  The amount of articles using this field is over 1200, but if I change the field to wygwam without converting the textile the formatting is all messed up.  Any help is appreciated, thanks!