texts: Stashing images from a Matrix field grabs only the image from the last entry on the page

texts:
Inside of my entries loop I have a Matrix field called {blog_images} where the user can store up to 10 images. The user then determines where these images should appear in the content area ({blog_post_content}) using shortcodes like this:

First paragraph is here.

{image_1}

Second paragraph is here.

{image_2}

…

Currently I'm using Stash to loop through the Matrix images and store them for insertion into {blog_post_content}. Strange thing is if I have 10 entries appear on the page, every entry is showing only the image from the LAST entry instead of its own image.

Here is my existing code:

{blog_images}
    {exp:stash:set type="snippet" parse_tags="yes" parse_conditionals="yes"}
        {stash:image_{row_count}}

                {exp:ce_img:pair src="{image}" width="{size}" allow_scale_larger="no" cache_dir="images/blog" hide_relative_path="yes" parse="inward"}

                {/exp:ce_img:pair}
                {if caption}

                        {caption}

                {/if}

        {/stash:image_{row_count}}
    {/exp:stash:set}
{/blog_images}
{exp:stash:parse process="end"}
    {blog_post_content}
{/exp:stash:parse}

Any idea what I'm doing wrong?


texts: Quick way to get user's signature in PHP

texts:
I'm just wondering if there is a quick way to get a user's signature using something like the session class? For example to grab the active user's email from the session class you can simply call $this->EE->session->userdata('email');

I am referring to the native signature value also, and not a custom member field.

I would prefer to avoid running a secondary database query to get the information as time is definitely an issue in our case.

Cheers,
Conor


texts: Update the price on the product page with custom selects

texts:
I'm trying to update the price on the product page, I'm using the "dynamic" price class.

{price}

But because I want the options to look nice, I am actually hiding the standard expresso modifiers <select> element, then using some custom JS I am updating it, but when I do that, I appear to be missing a function that expresso store uses to update the price in the store_product_price class.

Is there a way to call that and update it?

Or will I have to loop on all the "selected" options and update the price manually? Would rather not get into maths for doing this & take advantage of expresso's method. :|


texts:
{exp:stash:set_list name="related_skus" parse_tags="yes"}
    {exp:tag:related_entries channel="men_clothing" tag="t shirt" orderby="title" sort="asc" limit="6" paginate="bottom"}
            {exp:switchee variable="{channel_short_name}" parse="inward"}
                {case value="men_clothing"}
                    {stash:related}

                          {men_clothing_image limit="1"} {/men_clothing_image}

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

 From:
{men_clothing_vendor:lowest column="mc_sales_price"}
 To
{men_clothing_vendor:highest column="mc_sales_price"}

{title}

                    {/stash:related}
                {/case}
            {/exp:switchee}
    {/exp:tag:related_entries}
{/exp:stash:set_list}

{exp:stash:get_list name="related_skus"}
      {related}
{/exp:stash:get_list}

i have tried this without Stash and passing channel name and nothing is working. need your expert advice


texts: Listing related entries based on category

texts:
I want to list out related entries when viewing an entry, regardless of channel but according to the category of the entry.

On the page where the entry is output, I output the entry in a traditional {exp:channel:entries} tag and close it.

Then, I start a new tag where I thought I'd have to get the category_id first, before inserting that id into the channel:entries tag. I use Stash for that.

And my tags looks like this:

{exp:channel:entries channel="channel1|channel2" limit='1' parse="inward"}
     {exp:stash:set name="cat" parse_tags="yes"}
        {exp:gwcode_categories entry_id="{entry_id}" last_only="yes" style="linear"}{cat_id}{/exp:gwcode_categories}
     {/exp:stash:set}

{title}

{/exp:channel:entries}

And right before I want to output related entries, I can get the stash variable fine like this:

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

But then, when I try to use this variable directly in the next tag, it comes out blank. Most likely because of parse order. I know the code works because if I manually add an ID for category, the entries as listed out like you'd expect.

{exp:channel:entries channel="channel1|channel2"
category='{exp:stash:get name="cat" process="end"}' limit="3" dynamic="no"}
      {title}
{/exp:channel:entries}

What am I doing wrong? How can I get the correct parse order?
Edit: Yes, I can use an embedded template, which is what I'll be doing if I can't get this to work.


texts: Linking to Structure Pages in Wygwam: How to not use full URL?

texts:
I have a staging site running at a URL like client.clearbold.com.

I'm using FocusLab's Config, so all my paths and domains are dynamic.

When I link text in a Wygwam field, and choose a Structure Page or a Structure Listing entry, the full URL, including http://client.clearbold.com, is stored in the Wygwam field's contents.

How do I keep this from happening? We'll end up with a site with 100s of links to a Staging subdomain instead of the live URL.

Updated: I've confirmed this is fixed in 2.7. Surprised I haven't seen this before, though I'm wondering how many links were applied within content fields on previous projects.


texts:
I have just installed Assets. But it keeps logging me out of the CP. This error occurs (console): POST http://centiv.local/admin/ 500 (Internal Server Error) It contains: {"error":"This form has expired. Please refresh and try again.</p>"}

This happens when I:

Visit Modules -> Assets.
Try to upload a file in a Assets field.

I have added this to my config file: $config['disable_csrf_protection'] = "y"; This doesn't give an error but a blank page when I try to access assets from the field in a channel, it say's I'm logged out of the CP.

I don't know what's going on here, any help would me much appreciated! :)

Assets: 2.3.2
ExpressionEngine: 2.8.1


texts: How to make ExpressionEngine tag Non-case Sensetive

texts:
I am using Solspace ExpressionEngine Tag, its working very well, but I need to fix one thing:-

I have tagged a story "Costa Rica" (the country). The module automatically converts it to "costa rica".
Since the module is case sensitive, I now have two (or perhaps 3 or 4) sets of tags: "costa rica", "Costa Rica", and possibly "Costa rica".
So if I search for "costa rica"  I only get a couple of stories; if I search for "Costa Rica" I get a few more.
Like this there must be many more. Is it possible to make the module NOT case-sensitive? I cannot see a setting for that.


texts:
We have a custom font, and we're using MSM, but I can only get the font to work on the main site.

here's the css:

@font-face {
    font-family: 'customfont';
    src: url('/fonts/customfont.ttf');
}

I've tried copying the font to a 'fonts' folder under each site directory, but that didn't help.


texts: GWcode Categories - show these three cats AND their children

texts:
I'm using GWcode Categories and I'm trying to figure out how to show, for example, 3 specific categories AND said categories children as well. I know of the show param though, it appears this needs to include the parent category IDs AND their children IDs to have both parents and children show up. Using show="1|2|3" I only get the 3 parent cats in other words.

That of course sucks because anytime a client adds a new child cat we have to update the show param IDs again.

It's almost like we are missing a show_include_children="yes" in the case of the show param. The next param (excl_cat_id) has something similar in fact.

I know there is the excl_cat_id="" along with excl_cat_id_children="yes" params which would work though, that would mean any time a new parent category is added I'd have to go in and excluded that one as well and it's children when added too. The opposite of show in other words though, the same issue.

I know about the cat_id param though, this is only for one category and it's children and of course is only half of what I need. I tried piping here without success.

What about using conditionals or Switchee? Something along the lines of this: {if parent_id == "1|2|3"} my vars {/if} this would probably work though, seems like there should be a way to do this with out having to loop through 1000 categories just to check for 3.

With all that said, am I missing something, is there not a way to show 3 categories AND their children based on the 3 parent IDs?

Thanks!


texts: Email notification for Channel Form entries only, not CP entries

texts:
I'm on EE3, with a channel where admins post via CP, while guests/member post via Channel Form. Entries posted via the form will be marked with "To Review" status.

Is it possible to set up email notifications for only entries submitted via Channel Form?


texts: Sub categories information not being displayed

texts:
I have the following code within a template

{segment_2_category_name}

{exp:channel:categories show="{segment_2_category_id}" style="linear" parent_only="no"}

    {category_description}

    {if content-image}
        {exp:ce_img:pair src="{content-image}" max_width="328"}

        {/exp:ce_img:pair}
    {/if}
{/exp:channel:categories}

This displays the category description, category image etc. and it works fine for top level categories. However, it doesn't display anything but the title for sub-categories.

I have checked whether {segment_2_category_id} is being parsed by placing it inside the channel:categories tag and it outputs the ID as expected.

Does anyone have a clue why this might not be working?

UPDATE:
Removing the ce_img tags makes no difference.

You can see the pages concerned here;

http://www.gillardcutting.com/applications/food-extrusion (top level cat)

http://www.gillardcutting.com/applications/dog-chews-dental-sticks (sub cat)

UPDATE

I've created a test template, cut back to the bare bones, in order to analyse the queries being run. The following query is executed;

SELECT LOWER(cat_url_title) AS cat_url_title, `cat_id`, `parent_id`, `group_id`, `cat_name`, `cat_description`, `cat_image`
FROM (`exp_categories`)
WHERE `site_id` =  '1'
AND LOWER(cat_url_title) IN ('applications', 'test', 'dog-chews-dental-sticks')
AND `group_id` IN ('3', '2')

If I run this query directly on the database then I get back the expected category information.

It's as if, for some reason, the stuff between the opening and closing exp:channel:categories tag pair just isn't being parsed IF I'm dealing with a sub-category.

This site is running on EE 2.4 (so next step is to try an update) and is using Structure as well as Low Seg2Cat but I don't think either of these is the issue as everything is working as it should except for this particular issue (and even then only with subcategories).

UPDATE

It appears that I must specify the parent category ID in order to get any child category information to display. This is despite my earlier finding regarding the query that is being executed.

Even adding parent_only="no" does not allow me to display child category data without also having the parent category included.

Is this an intentional feature or just some peculiarity/bug relating to the version of EE that this site is running?

Guess what? Another UPDATE - Workaround fix

I've figured out a workaround based on my findings, it's not perfect by any means and will break quite easily but will work OK in this particular instance.

Basically;

I include the seg2cat tag to get the current category's parent id and include this in the show parameter, this ensures we can display the child data.

To ONLY show the child data I then use a conditional to check the category being output in the loop against the seg2cat category id and only show it if it's the child category.

{exp:channel:categories show="{segment_2_category_parent_id}|{segment_2_category_id}" parent_only="no" style="linear"}
    {if '{category_id}' == '{segment_2_category_id}'}

        {category_description}

        {if content-image}
            {exp:ce_img:pair src="{content-image}" max_width="328"}

            {/exp:ce_img:pair}
        {/if}
    {/if}
{/exp:channel:categories}

If anyone can come up with a better way to do this I'd love to know!


texts:
I am having a Matrix fieldtype with two cells: text and Playa. The text field serves as the title for different rows. It's setup like this in my code:

{my_matrix_field}

{cell_1}

            {cell_2}{stash:embed name="snippets:productdiv" process="start"}{/cell_2}

{/my_matrix_field}

I would now conditionally show or hide {cell_1} based on the results of cell_2. If for example all entries are set to closed I want the cell_1 to not display anymore.

I have tried the syntax from this post, but without any luck.


texts:
Does anyone know whether CartThrob supports additional languages from a front-end perspective? It would be great to know whether it is possible to localise all product and checkout content within the same add-on.

Thanks,
Adeeb


texts: Error when trying to access a channel from the backend

texts:
Good evening!

I was wondering if anyone has seen this issue before.  Whenever I try and access the backend details of a channel, I'm getting this php error:

Error: Unable to load requested field type file: ft.calendar.php.
Confirm the fieldtype file is located in the /system/user/addons/ directory

Has anyone ever seen this one before?

Thanks for anybody's thoughts.  :-)


texts: Totaling up and averaging numeric Matrix/Grib fields

texts:
I'm building a review channel and would like to know how to go about developing this.  Say for instance I'm reviewing an album and have the ratings breakdown into different categories with ratings like so:

Album art ------- 9
Lyrics ------------7
Instrumentals --- 9
Vocal range ---- 5

Album score ------- 7.5

The ratings will be for the author to decide, not the public. This is what I'm envisioning in the EE backend:

[+] Matrix/Grid row: "[category dropdown column] and [score dropdown column]"

I'm wondering how I would go about totaling up and averaging out the score to be displayed to the public?


texts: Solspace Calendar - event_end_date not displaying in exp:calendar:cal

texts:
So I have an issue that I feel should be pretty simple. I'm trying to display a list of events in chronological order. On multi-day events I want to display the date in this type of format: "Month Day - Month Day" (example: April 11 - April 12.)

Here's the code I'm using:

        {exp:calendar:cal
            {if segment_2 == ''}
                date_range_start="today"
                date_range_end="year-month-last"

            {/if}
            {if segment_2 != ""}
                date_range_start="{segment_2}-{segment_3}-01"
                date_range_end="{segment_2}-{segment_3}-last"
            {/if}
        }
        {events}

{event_title}

            <time class="event-date">
                {if event_multi_day}
                    {event_start_date format="%F %j"} &ndash; {event_end_date format="%F %j"}
                {if:else}
                    {event_start_date format="%F %j"}
                {/if}
            </time>

{event_summary}

        {/events}
        {/exp:calendar:cal}

The {event_end_date} refuses to display. I've tried this multiple ways with no success, and I'm starting to feel like I'm doing something silly and I've looked at it so long I'm just blind to the problem. Surely this variable hasn't been excluded from availability inside of calendar:cal.

If I use exp:calendar:events with that section of code to display the dates, it works perfectly.


texts: Specify order for {select_member_groups} output

texts:
So as the title states, I want to specify an order for the output of the {select_member_groups} tag pair within {exp:user:register}.

I am allowing users to register in one of three member groups with ids 5, 8 and 9. This displays in ID order, however I want to be able to have them output in the order 8, 9, 5.

So I tried to do:

{exp:user:register allowed_groups="8|9|5"}

but it still outputs in the order 5, 8, 9 on the front end. I've tried various parameters on the {select_member_groups} tag and none seem to work. Can't see anything about ordering it on the docs either.

Anyone know how I can do this?

Thanks in advance!

If it helps the EE version is 2.9.2 and User version is 3.5.0.


texts:
I have a website which until yesterday was running EE v1.6.7. Other than occasional defacing due to unpatched security vulnerabilities it was working well enough {/tongue-in-cheek}. Forced by system php upgrade to v5.4 I've upgraded the site to EE Core v2.9.2, only to discover that the {exp:query} relied on heavily throughout the templates no longer work, because the query module is now part of the upgrade version.

I only want to limp the site along long enough to replace it with a new design using an entirely different software stack, without Expression Engine. Paying $300 for a to-be-discarded program is not attractive. I've nothing against EE, it's just not the right tool for this site or a good match for the rest of our organization and it's processes.

In EE Core, what can I use as an alternative to the kinds of queries below while the new site is incubating?

{if segment_3 == "1"}
    {exp:query sql="SELECT * FROM exp_categories WHERE parent_id = '1' ORDER BY cat_name ASC"}
{/if}


texts: How to get file_id of file uploaded in Grid field

texts:
I have a grid field with rows containing files uploaded.
These grid entries are output on a standard page but I need to access the filetype of the files uploaded and this only appears to be available in a '{exp:file:entries}' tag pair.
How can I access the file_id of the uploaded files in each row of the grid field in order to use a tag like
{exp:file:entries file_id="grid-row-file-id"}{filetype}{/exp:file:entries}


texts: Shine PDF - Fatal Error after EE version update

texts:
After updating EE to v2.11.3 a previously working setup of Shine PDF has started to error out with the following:

Fatal error: Call to undefined method Channel::Channel() in /SERVER_PATH/expressionengine/third_party/shine_pdf/mod.shine_pdf.php on line 17

Can anyone help please?


texts:
I've just been emailed from my site host stating they will upgrade the servers to PHP 5.4.19.

We're hosting a number of sites with them and all range from EE2.2 - EE2.5.

The thing that sparked my interest, over and above due diligience, was these comments:

  Safe mode is no longer supported. Any applications that rely on safe mode may need adjustment, in terms of security.
  Magic quotes has been removed. Applications relying on this feature may need to be updated, to avoid security issues.
  get_magic_quotes_gpc() and get_magic_quotes_runtime() now always
  return FALSE. set_magic_quotes_runtime() raises an E_CORE_ERROR level
  error.
  The register_globals and register_long_arrays php.ini directives have been removed.

Does anyone know if I should be on the look out for issues with the sites we're hosting here or should it be plain sailing ?


texts: Cartthrob -Stuck with adding additional info to order channel before checkout

texts:
I am sorry to ask again here, but facing a deadline and I am at the beginning of panic. And this is my first site with Cartthrob.
I cannot get my head behind how to add additional info at an order before checkout.

What I want:
The customers might choose another delivery address. When so, they pay no shipping costs.

Solution:
Let them add the information to a field in the order channel, on submit return segment_3 = delevery or = pick-up. Set in the checkout form this conditional:

{if segment_3 == "pickup"}
    {set_shipping_plugin value="single_flat_rate"}
{if:else}
    {set_shipping_plugin value="by_quantity_threshold"}
{/if}

I made in the order channel a new field, called nieuw_bezorgadres.
I pull information from a Profile:edit channel, showing the addresses as options, code like this:

<select name="nieuw_bezorgadres">
{exp:channel:entries channel="member_profiles" category="8"}
<option value="{member_company} {member_address} {member_city} {member_country}">{member_company} {member_address} {member_city} {member_country}</option>
{/exp:channel:entries}
</select>

Problem:
But how can I save the information in the order channel for the current transaction?

Thanks a lot for looking at this, it must be simple, that is why I run in circles.....


texts: remove second segment in url for entry listings

texts: Currently using {url_title_path='blog/blog-entry} for listing entries, but URL outputs /blog/blog-entry/listing-title. I'd like the URL to be /blog/listing-title. Can I do this using routes? What's best way to accomplish?


texts: Standard Email Contact Form produces "The action you have requested is invalid" error. How can this be fixed?

texts:
I have basically copied and pasted the example email contact form from the ExpressionEngine 2.9.2 User Guide (https://ellislab.com/expressionengine/user-guide/add-ons/email/contact_form.html) and it is coming with the error:

  The action you have requested is invalid

Here is the code in question:

{exp:email:contact_form user_recipients="no" recipients="gabrielthornton@guicreative.com" charset="utf-8" replyto="yes"}

    Your Email:

    <input type="text" id="from" name="from" size="40" maxlength="35" value="{member_email}" />

    Subject:

    <input type="text" id="subject" name="subject" size="40" value="Contact Form" />

    Message:

    <textarea id="message" name="message" rows="18" cols="40">
        Support Email from: {member_name}
        Sent at:  {current_time format="%Y %m %d"}
    </textarea>

    <input name="submit" type='submit' value='Submit Form' />

<input type='hidden' name='XID' value='{XID_HASH}' />
{/exp:email:contact_form}

I have searched for answers and come up with the secure form XID bug. As a result I have, as you can see above, included the following code to send a valid XID code with the form.

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

However, the problem still persists. Does anyone have any ideas?

Many thanks

Gabe


texts: How do I redirect from a User Message Template

texts:
I am trying to figure out how to redirect users once they click on the Mailing List confirmation email link.

Currently, when someone submits their email for inclusion in a mailing list, they get an email that they must respond to by clicking on the link to activate their subscription. Unfortunately this results in a generic EE confirmation page:

Is there any way to redirect them from here to another page on the site? If so how?


texts: With Mountee gone, what simple and efficient workflow is there to replace it?

texts:
The unexpected discontinuation of Mountee (as of EE 2.8) has caught many ExpressionEngine users on the wrong foot, and left them holding back with updates or struggling to adapt to new workflows.

Instantly, various commenters came forward, calling Mountee's approach broken and touting that Using Git and Saving templates as files were superior. Albeit, there are valid reasons to believe that the Mountee wasn't all bad.

So,

What simple and efficient workflow – or which set of tools – are fit to replace Mountee in building, deploying and maintaining EECMS-powered websites?
Are there step-by-step tutorials to support users coming from Mountee that convey the herefore required knowledge?
What is the role of Git in said solution, and what are its advantages and drawbacks?

(Git may well be part of the ideal solution, but for an unexperienced user, it involves a steep learning curve; and it might be overkill for non-distributed developer environments.)


texts: Assets and Matrix server error on save with high numbers of Matrix rows

texts:
I had an issue on an earlier site build where entries containing a Matrix field with numbers of rows in excess of about 60 wouldn't save. The Matrix field in question contained two Assets fields, a couple of text fields and a PT Pill. I thought I had traced the issue to a problem in upgrading from Assets 1 to 2, and for various reasons ended up downgrading to 1 again as a solution.

I've now run into the same issue again on a brand new site, with fields exactly as described above, using Assets 2. It's for a photographic portfolio - the like of which I've built several times before using Assets 1 and never had this problem. What happens is that when I try to save the entry, when having gone above a certain number of rows, the browser load bar sticks, and eventually (after several minutes) I get an internal server error message.

There's no issue on entries with lower numbers of rows, and there's no issue with opening the entry for editing, only when saving.

Any ideas?


texts: Channel Manager - Edit Channels - Blank page

texts:
I updated to EE 5.3.0 from 2.11.9 and cannot edit existing channels anymore.

There is only a blank page without any errors in the console.
I can edit layouts or export but no page is opening to edit the channel.

The url looks like this: https://www.foo.ch/admin.php?/cp/channels/edit/12

Any idea?
Thanks


texts: How to cache Stash Data when EE native template caching doesn't work

texts:
I needed custom event grouping by category within a Solspace Calendar table. The only way I could find to do this was the following:

Use {exp:stash:append_list} within {exp:calendar:cal} to store the events by category and day.

{exp:stash:append_list name="cal-day-events-{date format="%m"}-{date format="%j"}-{categories show_group="7" limit="1"}{category_id}{/categories}"}

Then use EE's native {exp:channel:calendar} in an embedded template with {exp:stash:get_list} to retrieve the events.

Good news is, it worked!

Since the page is so query intensive I'd like to do some caching to improve the speed of page load.

I tried use EE's native template caching to cache the entire template. It worked on the first load, but subsequent page loads showed no events. It seems that the stash + embedded template approach doesn't work with template caching. Turning it off fixed the issue.

What is a better way to cache this data? Suggestions?


texts:
I have a matrix field which outputs a series of prices for a tour. An image probably illustrates most easily what I'm doing and need to do.

Where the ticket title is repeated in subsequent rows, it needs to be hidden and also a rowspan applied so the number of rows with the same ticket title would need to be counted.

Same with the type in the 2nd column. And they also need to be grouped by background-color.

{exp:stash:set_list
  context="@URI"
  name="prices"
  parse_tags="yes"
  parse_depth="1"
  trim="yes"
  save="yes"
  refresh="1440"
  replace="no"
  scope="site"
}
  {tour-tickets}

    {stash:type}{tour-ticket-accomm-type}{/stash:type}
    {stash:min}{tour-ticket-accomm-min-pax}{/stash:min}
    {stash:max}{tour-ticket-accomm-capacity}{/stash:max}
    {stash:title}{tour-ticket-title}{/stash:title}
    {stash:price}{tour-ticket-price}{/stash:price}
    {stash:special}{tour-ticket-price-special}{/stash:special}
    {stash:peak}{tour-ticket-price-peak}{/stash:peak}
    {stash:special-peak}{tour-ticket-price-special-peak}{/stash:special-peak}
    {stash:details}{tour-ticket-details}{/stash:details}

  {/tour-tickets}
{/exp:stash:set_list}

      Ticket
      Type
      Details
      Price

    {exp:stash:get_list
      name="prices"
      context="@URI"
      orderby="title|price|special|details|type"
      prefix="price"
    }

        {price:title}
        {price:type}
(Min booking: {price:min}, Sleeps: {price:max})
        {price:details}
        {price:peak}

    {/exp:stash:get_list}

This is what I have so far as shown in the first table. Anyone have any ideas about how to achieve the presentation in the 2nd table?


texts: Mx Cloner with Zenbu - only SuperAdmins can clone

texts:
I've had the mx cloner and zenbu add on working for a while now.  However, I set up some additional content groups, for others to make edits.

When I try "Cloning" an entry from another group, it looks like it's going to clone, but when you save it, it's actually just replacing the entry you had there.

I tried all the permissions I could find, but can't get this to work for any group but "Super Admins"

Any ideas?

-Jim


texts: Strange parsing issue after switching from embeds to Low Variables snippets

texts:
My coworker and I are baffled by a recent issue that came up when we switched all of our embeds over to Low Variables. The weirdest part is that the issue is happening on his machine, not mine, and we have identical code and database...

So, we have a low variable we called 'low_snippet_left_sidebar' that's set for early parsing, and saved as a file. We're calling it from our template by using just {low_snippet_left_sidebar}.

{exp:navee:custom
    nav_title="main-nav"
    start_nav_from_parent="true"
    class="secondary-nav"
    only_display_children_of_selected="true"
    selected_class_on_parents="true"
    parent_selected_class="parent-selected"
    }

{text}{kids}

{/exp:navee:custom}

And when that renders on the page, it spits out the nav just fine... except before each nav item, there's a stray d" } that shows up for some reason... And that just happens to be the end of that long navee tag with parameters on separate lines.

I tested out swapping the last two parameters in that tag, and what ended up happening was the stray characters became e" } instead. Weird.

So then we tried making that navee tag all on one line, without having each parameter on its own line, and the problem went away! What is happening here?

How come having line breaks in my tags works on my machine, but not on my co-workers? This issue doesn't arise if we just use EE's Snippets instead of Low Variables...

here is a pic of the nav that gets output, without the errors (we used EE snippet)
http://paleosun.com/misc/mahec-secondary-nav-working.png

And here's a pic of the nav that gets output as a Low Variable
http://paleosun.com/misc/mahec-secondary-nav-broken.png

Any ideas/hints/clues? I don't think this is a nav-ee related issue, as the same issue is happening wherever we have line-breaks between parameters in tags, in a low variable, and only on my coworkers computer...

Thanks!


texts: Expression engine 2.1 to 2.11.1 Upgrade never completes

texts:
I am trying to do an upgrade from 2.1 to 2.11.1.  I have followed the instructions here https://docs.expressionengine.com/v2/installation/update.html.  My issue when i go through the wizard I get to the portion where it is supposed to start the update and it never finishes or errors out.  It just refreshes every 2 seconds but never gets past that.  I let it sit for a couple of hours and never got past that screen.

I then went in to try and get the login page but I get this error.

  Error

  Unable to load requested field type file:  ft.rel.php.

  Confirm the fieldtype file is located in the
  expressionengine/third_party/ directory

I noticed a change with the filetype folder where each file type is now in its own folder and also rel went to relationship.  I made sure I copied /system/expressionengine/fieldtypes/relationship/ft.relationship.php and saved it to /system/expressionengine/fieldtypes/ft.rel.php and /system/expressionengine/third_party/ft.rel.php.  This did not make the error go away.

Any advice on what to try next would be appreciated.

Thanks

UPDATE

I have gotten past this point now.  I went in and manually changed a couple of things in the database.  First I changed rel to relationship in exp_fieldtypes table.  Second I changed all references to rel to relationship in exp_channel_fields.

I am now able to see the login page but I am not able to login.  I get the following error.

  The following errors were encountered

  This form has expired. Please refresh and try again.

I have read some places it could be because of cookies or cache but fixing those did not help at all.  I found the error occurs because of an expired csrf token.  In my case no csrf token.

So again I am stuck as the issue is the upgrade wizard does not do what it is supposed to do.

Wondering if anyone else has had a similar issue with the upgrade wizard from any version of 2 past 2.6 which is where I believe csrf tokens were implemented.  Any tips would be appreciated.


texts: Wygwam problem with Assets as file browser

texts:
Running EE 2.1.1 Wygwam 2.7.1 and Assets 2.1.3

In Wygwam modal settings, I select Assets as the File Browser and hit save.

Go into a Editor Configuration and the Upload Directory does not have a drop down, it just says no_upload_prefs

The file browser setting doesn't seem to do anything. If I add a directory to EE's file upload preferences, they show in the select list in the Editor Configuration, even though the file browser is set for Assets.

Anyone have an insight on this!!??


texts: Importing separate data into a single checkbox field?

texts:
Not sure what the best title for this question was, so hope it makes sense!

I am importing some data from an XML feed into EE via the add on Datagrab.

Its mostly straight forward data, so its pretty simple, but I would like to know if its possible to change the way some of it is imported.

Each entry in the XML feed has a range of "Options"

For example...

...
<option1>1</option1>
<option2>0</option2>
<option3>1</option3>
...

Whereby the value of "1" means yes and "0" means no.

I would like to import these values into a single checkbox field so it would be something like...

Option One [√]
Option Two [ ]
Option Three [√]

Does anyone know if this is possible?

It would save me quite a few custom fields if it is, and will make outputting the data/creating search forms a lot easier!

Thanks.


texts: HELP!! Upgrade errors: Unknown column 'hash' in 'field list' - Site is down!

texts:
When trying to upgrace 2.5 to 2.7 I get this error:

Fatal error: Cannot redeclare class Installer_Extensions in /home/user/admin/expressionengine/cache/updater/1381156626_439122/system/installer/libraries/Extensions.php on line 31

Then when I try and view the site I get a white screen with this error:

Error Number: 1054

Unknown column 'hash' in 'field list'

    SELECT `hash`, `timestamp` FROM (`exp_developer_log`) ORDER BY `timestamp` asc

    Filename: libraries/Logger.php

    Line Number: 106


texts: Codeigniter version within ExpressionEngine outdated? Is it wise to update?

texts:
Is there a specific reason that even the most recent ExpressionEngine installs (as of writing, 2.8.1) are built upon a seemingly outdated version of CodeIgniter (2.0.1), when CI 2.1.4 is available?

And is it possible to manually update that Codeigniter instance to avoid security issues – or does EllisLab use a custom build of CI that should not be tampered with?

(Context: A malware scan has listed my ExpressionEngine installs as outdated (and in need for update) because of the version number of Codeigniter install within.)


texts:
Heyo,

I've got an Assets field in a Matrix. I can upload to S3 and Local upload directories while in the CP. When I try to upload to either S3 or local directories in my Channel Form page, I get the following error message:

"Could not upload the file - server returned an unexpected response. Please check the server settings".

If I replace the Assets field with a EE File fieldtype, it works fine, but we'd prefer to be using S3, hence the love for Assets.

*I haven't tried just a stand alone Assets field instead of a field in a matrix, but I don't think that will fix the problem.


texts: Conditional with variable gives php error

texts:
I'm using channel:categories and would like to show only child categories so I added the following conditional {if {parent_id} != 0}...{/if} but get php errors as soon as I add it to the template. I tried any sort of variable check {category_description} and get errors.

The above conditional was taken from an accepted answer on another thread.

Parse error: syntax error, unexpected '{' in path\to\system\expressionengine\libraries\Functions.php(689) : eval()'d code on line 43

My template looks like this:

{!--stash 1st level category list--}
{exp:stash:set name="categories" parse_tags="yes"}{exp:gwcode_categories channel="products" depth="1" style="linear" backspace="1"}{cat_url_title}|{/exp:gwcode_categories}{/exp:stash:set}

{!--category ids for sub cats--}
{exp:stash:set name="sub_category_ids" parse_tags="yes"}{exp:gwcode_categories channel="products" output_depth="2" style="linear" backspace="1" cat_url_title="{segment_3}"}{cat_id}|{/exp:gwcode_categories}{/exp:stash:set}

{exp:stash:parse}
{exp:switchee variable="{segment_2}" parse="inward"}
  {case value="#^P(/d+)$#|category|''"}

    {switchee variable="{segment_3}" parse="inward"}

      {case value="{stash:categories}"}{!--level 1 category listing filtered by stashed list --}

        {exp:low_variables:single var="lv-products-cat-tier1"
          preparse:pre_seg_id="{stash:sub_category_ids}"
          preparse:pre_single_cat_id="{segment_3_category_id}"
        }

      {/case}{!--level 1 category listing--}

        some more case checks here

    {/switchee}{!--end nested switchee--}

{/case}{!--listing & category listing--}

some more case checks here
{/exp:switchee}

Finally my lv-products-cat-tier1 is a low variable with the following code where the parent conditional will wrapp the double-square div when it is working:

        {!--list sub categories--}
        {exp:channel:categories channel="products" show="{pre_single_cat_id}|{pre_seg_id}" style="linear"}

{if {parent_id} != 0}
  yo
{/if}

{category_name}

                    {exp:eehive_hacksaw chars="" words="15" cutoff="" append="" allow="
"}
                      {category_description}
                    {/exp:eehive_hacksaw}

        {/exp:channel:categories}


texts: Development (Local) with multiple sites using host file and IIS7 - Can't get FCPATH to recognize - Encoded characters

texts:
I am stuck again using IIS7 on a windows server. Trying to replicate the production environment for some testing on a Win7 box using IIS7 and host file to point o the sites.

I have tried using various methods to get a multi-server environment setup, but all have failed. This client in particular wants a development, staging, and production environment. I was looking at using Erik's setup for FocusLab (Thanks Erik!), but for this one in particular, I am trying to implement the one here.

Even trying to clean up my config file seems to break the site though. I can see the site index page, but the CP is jacked. (See screen)

Here is the code I have tried:

<?php //if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/* ExpressionEngine Configuration
-------------------------------------------------------------------*/
$config['app_version'] = "255";
$config['license_number'] = "MY LICENSE";
$config['debug'] = "1";
$config['install_lock'] = "";
$config['system_folder'] = "MY SYS";
$config['is_system_on'] = "y";
$config['allow_extensions'] = "y";
$config['site_url'] = "http://".$_SERVER['HTTP_HOST'];
$config['server_path'] = FCPATH;
$config['cp_url'] = $config['site_url'] . '/MY SYS/';
$config['theme_folder_url'] = $config['site_url']."/themes/";
$config['theme_folder_path'] = $config['server_path']."/themes/";
$config['save_tmpl_files'] = "y";
$config['tmpl_file_basepath'] = $config['server_path']."/templates/";

/* CodeIgniter Configuration
-------------------------------------------------------------------*/
$config['base_url'] = $config['site_url'];
$config['uri_protocol'] = 'AUTO';
$config['language'] = 'english';
$config['charset'] = 'UTF-8';
$config['subclass_prefix'] = 'EE_';
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\\-';
$config['enable_query_strings'] = FALSE;
$config['directory_trigger'] = 'D';
$config['controller_trigger'] = 'C';
$config['function_trigger'] = 'M';
$config['log_threshold'] = 0;
$config['log_path'] = '';
$config['log_date_format'] = 'Y-m-d H:i:s';
$config['time_reference'] = 'local';

/* End of file config.php */
/* Location: ./system/expressionengine/config/config.php */

Even if I turn off the direct script access denial, I can't display FCPATH. It seems to be an issue with IIS7 and FCPATH.

Any ideas how I can get this going?

* EDIT *
I started looking at the paths that EE was trying to use and they are showing this:
    http://bootstrap.com/%3C?=$cp_avatar_path%20?%20$cp_avatar_path%20:%20$cp_theme_url.'images/site_logo.gif'?%3E

%3C is for the '<' character, %20 is space, and %3E is the '>' character.

This is obviously an image being attempted to be rendered.

Is there a reason for the encoded characters showing instead?


texts: Color Coding days if they have multi-day events

texts:
I have a monthly calendar, and I just want to change the color of a day if it has an event on that day. It works great with single day events, but for days that span multiple days, day_event_total only counts the first day. Code looks like this:

 0}has_events{/if}">
    {if day_event_total > 0}

    {/if}

        {date format="%j"}

    {if day_event_total > 0}

    {/if}
{if:else}

        {date format="%j"}

{/if}


texts: Super Search Plural Not Working When Multiple Keywords are Used

texts:
I am using Solspace Super Search version 2.2.4 on EE v2.9.0, and found an issue with its fuzzy/plural search.

Searching a single plural word, e.g. "rods" will show results for products with "rod" in it. Searching "fibreglass rod" will show products with "fibreglass rod" in it. Searching "fibreglass rods" (so two words, plural rods) shows No Results.

The expected results is to show all products with "fibreglass rod" in it.

So it seems that plurals do not work when in multiple words. I do not want to search ANY words as results without fibreglass will be shown.

Is there a solution?

Search Form

{exp:super_search:search}
<form action="{path='search'}/" method="post" id="search-form" class="search-form">
    <input type="hidden" name="csrf_token" value="{XID_HASH}" /> <!-- Important! -->
    <input
        type="text"
        name="keywords"
        id="search"
        value="{super_search_keywords}"
        placeholder="Search something here..." title="To search for a phrase, place the words inside double quotes. To search for entries without certain words or phrases, place a negative sign (-) before it."
    />
</form>
{/exp:super_search:search}

Results

{exp:super_search:results search_in="title|sku|product_summary|product_description|product_keywords|content_intro" channel="products|made_to_measure|content|blog|gallery|team|videos|testimonials"
 orderby="channel_name+custom+'products,made_to_measure,content,blog,gallery,team,videos,testimonials'"}

{title}

{/exp:search_fields}


texts: EE 2.8.1 Remove index.php - XML sitemaps not working

texts:
I'm using the EllisLab official method for removing index.php from the url as described in the docs:

http://ellislab.com/expressionengine/user-guide/urls/remove_index.php.html

However that seems to have broken access to the xml sitemaps I have created using NSM Better Meta as they are not rendering at all. I've also tried to generate sitemaps using the Sitemap module by PutYourLights On - (Ben Croker) and that also fails.

This is for EE 2.8.1. Sites running EE 2.7.3 don't seem to have this problem

Is this an issue with the htaccess code?


texts: Relationship Field Conditional Not Working

texts:
EE 5.2.2

I have a homepage channel with a primary entry that handles a bunch of stuff on the homepage. One of the things it has is a relationship field called featured movie that can have just one of any entries in the movie channel set to it.

What I am trying to do in my template is

check if there is a featured movie set and then
check if that featured movie has a video id set to it. If it does, display a carousel with an image and a YouTube embed, if not just show the image.

Here's how the section looks.

    {exp:channel:entries channel="homepage" limit="1"}
        {if featured_movie}

Featured

{featured_movie:title}

                            Explore this movie

                {if featured_movie:video_id != ''}

                    {if:else}

                    {/if}

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

To me, this looks like it should work just fine. But what's happening is that {if featured_movie:video_id != ''} is always returning false even when there is a video_id set. I have tested this by putting {featured_movie:video_id} before the conditional and watching the id render on the page but not return the code for when that condition is true.

I've tried other options for the conditional such as {if featured_movie:video_id:count == 1} and {if featured_movie:video_id:no_results} and none of them seems to work.

What am I missing? Is there some special way of doing conditionals for the fields in a relationship entry?


texts: Show related category entries from relationship entry

texts:
I'm trying to list category entries from relationship entry: I'm trying to achieve this result:

          CategoryA
          test1

          CategoryB
          test2
          test3

but my attempt:

    {relationship_field}
      {relationship_field:categories backspace="2"}
        {if parent_id !="0"}
          {category_name}
          {relationship_field:title}
        {/if}
      {/relationship_field:categories}
    {/relationship_field}

shows this result:

          CategoryA
          test1

          CategoryB
          test2

          CategoryB
          test3


texts: Captcha validation fails with the rating form

texts:
I just installed Solspace Rating module and included the rating form like this:

{exp:rating:form entry_id="{entry_id}" allow_duplicates="no" anonymous="yes" collection="neueroeffnungen" return="bewertung_danke"}
    {if not_duplicate}
        {if logged_out}
            <input type="hidden" name="name" value='Guest_{current_time format="%U"}' />
        {/if}

        <select name="rating" id="rating">
            <option value="1">1</option>
            <option value="2">2</option>
            <option value="3">3</option>
            <option value="4">4</option>
            <option value="5">5</option>
        </select>

        {if captcha}
            {captcha}
        {/if}

        <input type="submit" name="submit" class="submit" value="Rate" />
    {/if}
{/exp:rating:form}

It works great if I don't require a captcha, but if I do, I always get:

  The captcha you submitted is incorrect.

Any idea what I'm missing?

EE v2.8.1 - Build: 20140314
Solspace Rating 3.2.3


texts: Conditional not working in Low Variables/Matrix field

texts:
I have a simple Matrix field inside Low Variables. All I want to do is display a message when there are no results, but the conditional isn't working.

Am I doing something wrong?

{exp:low_variables:pair var="friends"}

    {if no_results}

Coming Soon

    {/if}

{name}

{special}

Website

{/exp:low_variables:pair}


texts: CE Image {height} & {width} variables outputting incorrectly

texts:
I'm using CE Image 2.4.5 on EE 2.9.3 and it outputs the image cropped correctly. However I also need the {height} and {width} variables elsewhere. The problem is that both of these variables are ouputting the original value and not the cropped value as suggested by the docs.

For example this code:

{exp:ce_img:pair src="{url}" width="300" height="100" url_only="no" crop="yes" quality="100"}h: {height} {height_orig}, w: {width} {width_orig}, u: {made}{/exp:ce_img:pair}

outputs the following:

h: 614 614, w: 480 480, u: /path/to/d1small_300_100_c1.jpeg

Any idea how to resolve this?


texts: Datagrab with MSM selecting wrong site entry on XML import

texts:
I’m using datagrab 1.9.2 on EE 2.10.1 with MSM. I have an xml import that’s working fine overall, however, in some instances datagrab is selecting the wrong entry. Basically it’s grabbing an entry for site id 1 instead of site id 2, the site datagrab is importing on. Here are the details.

I have site 1 & 2. Each site shares an entry titled Plan 2100 (same entry title, different content). The entry id of the Plan 2100 on site 1 is 7264 and for site 2 it’s 1466. I’m importing these entries into a matrix with a playa field (I attached a screenshot so you can see the setup). Everything is working perfectly except for these two entries that share the same entry title.

It appears datagrab isn’t honoring the site id. When I run the import on site 1, it inerts the plan 2100 entry with the entry id for site 2—id 1466 instead of 7264. My thinking is datagrab should ignore the data for other site ids other than the site it’s running on. However, this doesn’t seem to be the case.

I’ve looked in the database and this is how I discovered the wrong entry id was being selected upon import.

If I go into the EE CP it looks like the correct entry is selected in the playa drop down, but it is fact the wrong entry id, and won’t display in the front end. If I reselect the entry title in the playa drop down and save, it works correctly and it chooses the correct entry id.

I've confirmed my playa field setup is limited to entries of the site I'm on.

So, in a nutshell, it appears datagrab isn’t honoring the site id for some entries using a matrix/playa combo. Has anyone else experienced this problem and perhaps found a solution? Please let me know if you need further explanation.

Thanks for your help!

More info added: Here are some screenshots from the database to help understand the issue.

In this screenshot I've retrieved all entries with an entry title of Plan 2100. There are two results, one for site_id 1 and one for site_id 2.:
http://screencast.com/t/daZVAYOf

After importing the XML via datagrab, you can see the Plan 2100 from site_id 2 was incorrectly inserted into site 1. Then, in the CP, I re-selected Plan 2100 from the playa drop down and this resulted in the addition of the Plan 2100 from site_id 1 being added to the matrix:
http://screencast.com/t/sGNNq0N0i


texts:
Has anyone noticed a problem when trying to add a CI description with copy and right click to paste into the description field? For me it is not being saved, if I paste it then re-type one letter or more it saves OK as does straight typing.

Using CI 5.4.19 and EE 2.10.1.

David


texts: Sorting by Expresso Store Price within Low Search Results

texts:
We're using Low Search and the Low Search Store Filter to add search to our online shop. Works great but we also need to let users sort by price.

Sorting by fields which are native works fine but as 'price' is not a standard entry field passing orderby="price" has no effect.

So, is there some way to sort by price when using Low Search to display Store results?


texts: How can I default to target="_blank" for Wygwam links

texts:
I would like to have target="_blank" selected as the default for new links in any Wygwam field. I've tried a variety of things using the CKEditor config file, but I haven't been able to get this working properly.

Anyone out there done this with any success?

Thanks.


texts: Non super admin cannot delete zoo visitor member

texts: what permissions do I need to give editors to allow them to be able to delete zoo visitor members? They can edit them fine but when they click on 'delete' when on the edit page of a zoo visitor member they get 'Error: you are not authorized to access this page'. Is it just super admins that can delete zoo visitor members?


texts: Shipping discount for one shipping method in CartThrob

texts:
Is it possible to have a shipping discount for just one shipping method in CartThrob?

Basically, our client would like to set up Free Shipping Over X, with X being $150 but have the free shipping ONLY apply to UPS Ground shipping (which is $10).

My guess is that this isn't exactly possible. It seems like a workaround would be to use "Amount Off For Orders Over X", however I'm positive that our client won't go for that.


texts:
Can i nest simple conditionals and are nested simple conditionals still parsed early?

What happens when nesting an advanced conditional inside a simple conditional?

(wiki answer)


texts:
I am a Drupal developer doing my fist ExpressionEngine project.

Drupal uses a model of content 'blocks' that can be placed in regions on pages based on certain rules.

I understand the use of channels but can I tailor this to ExpressionEngine? Do I just create multiple channels and how can I make these blocks more flexible so I can choose which pages they appear on.


texts: error when non Super Admin tries to create new member with front end registration form

texts:
We would like to have one non SuperAdmin member group be able to add new members using the User registration form. While it’s not completely clear, it appears from the documentation that this is doable by giving permissions to the member group, and including admin_register=“yes” as a parameter in the form. I am using EE 3.4.5 and User 4.0.8.

The form is allowing SuperAdmin to create the new members, but not the alternate member group that has the permissions to Create, Edit and Delete members. Instead, when the form is submitted, I get the following message:
'The form you submitted contained the following errors
You are already registered and logged in.'

I am able to view the form, but it won't submit due to the error.

The documentation states:
admin_register="yes"
This parameter allows users of member groups that are allowed to administrate members to view the Register form, and submit new user registrations on behalf of others. Using this parameter will prevent the auto-login feature after registration from working (so the admin doesn't become logged in as the member they just created).

The following is my registration form, and I am testing it logged in as the non Super Admin member group that has the added member permissions to Create, Edit and Delete members:

{exp:user:register admin_register="yes" group_id="5" return="/membership/add-new-members/success" error_page="/membership/error"}

    First Name *
    <input type="text" name="first_name" id="first_name" class="form-control" required value="{if first_name}{first_name}{/if}"/>

    Last Name *
    <input type="text" name="last_name" id="last_name" class="form-control" required value="{if last_name}{last_name}{/if}"/>

    Email *
    <input type="username" name="username" id="username" placeholder="name@domain.com" class="form-control">

      Password  *
     <input type="password" name="password" id="password" class="form-control" value="{if password}{password}{/if}"/>

    Confirm Password  *
    <input type="password" name="password_confirm" id="password_confirm" class="form-control" value="{if password_confirm}{password_confirm}{/if}"/>

    {if captcha}

        {lang:captcha}*
        {captcha}

        <input type="text" id="captcha" name="captcha" value="" size="20" maxlength="20" style="width:140px;"/>

    {/if}

    <input type="submit" value="Create Account" class="btn btn-primary"/>

{/exp:user:register}

Am I missing a step?
Thank you.


texts: Using Solspace User to only allow editors to edit/view articles the've been assigned to?

texts:
By using Channel Form, I've created a Wiki that currently allows a logged in member to edit content of articles on the front end.

I now need to set up access permissions on those articles, so access would only be granted if you've been invited to contribute to a specific article. Any articles you've not been invited to would be invisible.

Am i using the correct third party module for this?
Is this easy and if so, how?


texts: 500 server error installing ExpressionEngine 5.2.4 (MAMP Pro)

texts:
I downloaded ExpressionEngine and moved files to my local server (Mamp Pro). I can see/enter /admin.php but after hitting the Install button it takes about 30 seconds and the process aborts with a server error on this URL http://my-site.local:8888/admin.php?C=wizard&M=do_install&language=english

The apache log says

[Thu Jul 04 17:15:07 2019] [error] [client ::1] FastCGI: comm with server "/Applications/MAMP/fcgi-bin/php7.0.33.fcgi" aborted: idle timeout (30 sec), referer: http://my-site.local:8888/admin.php
[Thu Jul 04 17:15:07 2019] [error] [client ::1] FastCGI: incomplete headers (0 bytes) received from server "/Applications/MAMP/fcgi-bin/php7.0.33.fcgi", referer: http://my-site.local:8888/admin.php

The DB is completely empty, so I guess nothing really happens. There are no entries in the PHP log.

I tried different PHP version (7.0 and 7.2) and different browsers. Before I tested with the ee_wirzard and saw everything green.

The mysql server doesn't run on the default port, but I can't enter the mysql host or a port anywhere. Perhaps this is the problem?


texts:
I'm using the query module, to return a list of entries sorted alphabetically, but there are a few sticky entries that I need to appear at the top of the list, and the stickies are being ignored.Here is my query:

{exp:query sql="SELECT entry_id AS rel_entry_id, title AS rel_title, (SELECT rel_child_id FROM exp_relationships WHERE rel_id = '{select-location}' LIMIT 1) AS rel_child_id FROM exp_channel_titles WHERE channel_id IN (5, 7) AND status='Open' ORDER BY title ASC "}

I tried adding sticky to my select, and 'sticky, title' to the ORDER BY parameter, but it didn't work. Is there a way to get it working?


texts:
Since I need bits and pieces of a channel entry on various parts of my page, is it possible to store the channel entry in one big variable that contains everything? That way, I can access it throughout the template (and embedded templates)?

I've used Stash for variables, usually for one field value only. Now I want the entire channel entry - all the fields.


texts: ExpressionEngine pagination: access last segment

texts:
I am working on some search engine optimisation for my ExpressionEngine site.  I need to add some link tags into my head to allow Google crawlers to acknowledge the relationship between paginated pages in my blog.

I need to add:

<link rel="next" href="http://www.mysite.com/news/latest-news/P10" />

to the first news page, then:

<link rel="prev" href="http://www.mysite.com/news/latest-news/" />
<link rel="next" href="http://www.mysite.com/news/latest-news/P20" />

to the next page, and so on until the final page where I'll add

<link rel="prev" href="http://www.mysite.com/news/latest-news/PXX" />

I have been trying to achieve this by using the following code:

First news page:

{if last_segment == "latest-news"}
        <link rel="next" href="http://www.6dg.co.uk/news/latest-news/P10" />
    {/if}

This works fine, but for subsequent pages I have tried this, which does not work as PX is not accessible as a url segment.

{if last_segment == "P10"}
        <link rel="prev" href="http://www.6dg.co.uk/news/latest-news" />
        <link rel="next" href="http://www.6dg.co.uk/news/latest-news/P20" />
    {/if}

{last_segment} returns latest-news.

Does anyone know how I can get round this issue?

I also have another issue with this method.  Currently I only have 3 paginated pages, but this will go up as more entries are added, so I am not going to know what segment value to target in order to add my final link tag.

Any help will be greatly appreciated.

I am using ExpressionEngine version 2.2.2


texts:
I've got a channel where the editor is specifying a YouTube link. I'll also need a still from the video, which I can get from YT (see https://stackoverflow.com/questions/2068344/how-to-get-thumbnail-of-youtube-video-link-using-youtube-api); but I want to store the image locally. How would I go about capturing or uploading the file to my upload directory, and having EE perform the resizing service?

Thanks for your help.

Update: I should have specified that I don't want the user to upload the video still. At this point I've got the video ID, and the CMS should fetch the still from YT, and load it into EE's file manager. Any way to do that?


texts: How to fix improperly formatted URL strings entered by members

texts:
I allow members to enter their web address, facebook address, etc. for their member profiles as well as in directory listing entries. I instruct them to always include "http://" at the beginning of the URL but of course they don't always listen. So in many cases I'm getting URL formatted with no "http://" or "https://" which create bad links.

Is there a way I can essentially do a find a replace for NOT found? So if the URL string does not contain "http://" or "https://" then I can add it back in so the link isn't broken?

I use CE String plugin for other things and I have been trying to work out a way to use it for this purpose but haven't had any luck yet.

Here's the related part of my template:

{if website}
{exp:low_replace multiple="yes" find="http://|https://"}{website}{/exp:low_replace}
{/if}
{if facebook}
{exp:low_replace multiple="yes" find="http://|https://"}{facebook}{/exp:low_replace}
{/if}

I need to enter some logic at the beginning of each link's href to add in the "http://" if the member has not included it in their URL string. Would appreciate any help on how to achieve this.


texts:
I've installed Resource Router and set up a few basic routes, but they don't seem to be working.  No routes will work at all, is there something else I need to do to "activate" the plugin?

Edit to add code:

We're using the Focus Labs multi environment config, so in my config.php I've got:

require $_SERVER['DOCUMENT_ROOT'] . '/config/config.master.php';

I've then called Resource Router in config.master.php with:

// Resource Router
 $env_config['resource_router'] = require 'routes.php';

And in my routes.php, I've set up a simple route:

<?php
return [
'careers/:any' => 'careers/article',
];

I am getting as far as the routes.php file as I can echo something out from it, but just can't get the routes to work.


texts: Issues when putting system outside web root

texts:
Following 'best practice' of putting the EE system directory outside of the web root I have found that I now have a problem with password reset links.

It seems the reset url sent in the emails when a user forgets their password is incorrect. All other aspects seem, so far, to be working OK.

For instance, my system is located at  ../mysystem and specified as such in the config. To access the control panel I would use the URL http://mysite.com/mysystem.php which works fine.

However the link sent in password reset emails is, for example, http://mysite.com/mysystem/index.php?D=cp&C=login&M=reset_password&id=ABC123HASH

Is there somewhere I can configure this reset url?


texts:
I'm attempting to get a conditional statement working within category id parameters.

Ideally, I need the title of certain entries to link to details pages but ONLY if they are in category_id 38. Then, I'd like to show just the title (without links) only when entries are not in category_id 38.

This is what I've come up with so far. I have never attempted something exactly like this before. I am getting a parse/syntax error. Could someone take a look and help me to see what I am doing wrong, please and thank you!!

{categories}

{if category id == "38"}

{facility_title}

{if:else category_id == "32|30|33|31" && category_id != "38"}

{facility_title}

{/if}

{/categories}


texts: Why doesn't 404 kick in when a bad URL is entered?

texts:
Most people don't want to get a 404 page, however, I am having issues with a site where 404 pages don't show when you enter an erroneous URL.

Example: http://livefreehomehealthcare.com/products/asdasdasdasd/ does not exist, but instead of a 404 page, which has been created and works (see example), I get the products page or segment_1 of the URL.

It appears that if segment_1 is a valid part of the URL then the strict URL rule that should redirect to the 404 page doesn't fire properly.

I am running EE 2.5.2

Update: MediaGirl suggested below that I use the require_entry="yes" parameter in the channel tags. I did this and it works too well.

Here's what I mean. I am using the index template of the template group for the "home" page for the section so that "our products" shows up as /products/ instead of /products/our-products. Here is the code:

{exp:channel:entries channel="products" entry_id="12"}

{title}

{body}
{/exp:channel:entries}

This displays the content fine, but is also open to 404 failure. So I tried this:

{exp:channel:entries channel="products" entry_id="12" require_entry="yes"}
{if no_results}{redirect="404"}{/if}

{title}

{body}
{/exp:channel:entries}

When I do it this way 404 works too well and I can't see the contents of the /product/ page.

Is there a happy medium here?

Any ideas for getting this to work correctly would be appreciated.

Thanks.


texts: What is the difference between Expression Engine 2 and 3? Why should I upgrade all of my sites?

texts:
I have 5 websites that are all running on Expression Engine 2.5 - what, in simple dot point form has changed about ExpressionEngine in version 3. Whats been added, removed and updated?

Would it simplify maintaining all 5 sites that are similar in there setup?

The EE website isn't very clear on the improvements


texts:
I'm using a freeform with ajax but the response comes back as index.php?ACT=11 and not JSON and therefore I can't manipulate the response. How can I have freeform return JSON instead?

Freeform looks like this:

{exp:freeform:form
form_name="contact_me"
required="first_name|last_name|email|user_message"
recipients="no"
inline_errors="yes"
admin_notify="you@me.com"
notify_admin="yes"
admin_notification_template="contact_form"
form:id="contact-form"
}

My ajaxForm code looks like this:

$(document).ready(function() {
$('#contact-form').ajaxForm({
    target: '#form-response',
    success: function() {
                    //$('.formText').hide();
        $('#form-response').fadeIn('slow');
    }
});
});


texts:
How do I get Store to list individual items and their prices on PayPal? At the moment, the only information which is displayed on the PayPal site is the order number.

Thanks
Lee


texts: Unable to load the requested language file

texts:
I'm using EE 2.6.1 and the default language is Dutch. When installing a module it seems that a specific lang file should be added in the language directory. I don't know which modules add lang files.  All works fine but when I log out I get an Error when accessing the front-end site. If I'm logged in the front end doesn't show errors.

Right now I make a copy of a lang file en rename it.

Is there something I should adjust with the configuration?
Or is there a solution to bypass this when a lang file is missing?

Tnx,


texts: How can Safecracker check for a unique url_title field?

texts: I have a safecracker form that allows users to enter a url_title. If url_title is already used, by default, a number gets added to url_title so it’s unique. But instead of having this automated behavior where number gets added to url_title, Is there a way i can notify the user that the url_title typed is already taken so user can enter a new one?


texts:
I am setting a list of entries added to a favorites list. Some of it works but the set_list portion doesn't. I cannot see why its not working.

{exp:shortlist:view}{exp:stash:append name='dofoco-favorites'}{entry_id}|{/exp:stash:append}{/exp:shortlist:view}

{exp:stash:set_list name='favorite_list'}
    {exp:channel:entries
         status="not closed"
         entry_id="{exp:stash:get name='dofoco-favorites' backspace='1'}|0"
         dynamic="no"
         parse="inward"
    }
           {stash:favorite_thumbs}
{title}
{/stash:favorite_thumbs}
    {/exp:channel:entries}
{/exp:stash:set_list}

{exp:stash:get_list name='favorite_list'}{favorite_thumbs}{/exp:stash:get_list}

However, this outputs as expected:

{exp:stash:set name="side-navigation"}
{exp:channel:entries
     status="not closed"
     entry_id="{exp:stash:get name='dofoco-favorites' backspace='1'}|0"
     dynamic="no"
     parse="inward"
 }

{title}

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

{exp:stash:get name="side-navigation"}


texts:
I'm using Low Events and Structure on a site. I have setup the Calendar tag on a template that is displaying dynamic content from another channel. On the main calendar page, there is only one segment in the URL and the dynamic content displays correctly. When I add a date to the second segment, the dynamic content displays incorrectly (displays content from another entry).

I'm wondering if and how I can get Low Events and Structure to work together so that users can change the month in the calendar and still correctly display the content from the other channel on the same template. Thanks.

EE 2.8.1
LE 1.3.0


texts: Adding Page Titles and Meta Info to Home Page and Non Channal Entry Pages

texts: What is the best way to add custom page titles and meta info to non entry pages like the home page or a landing page for a portfolio? I want to give users the ability to edit the page title and meta info on these types of pages via the CP. I set up embedded variables to do this for my entry pages which works great but need a solution for these no channel entry pages. Any advice would be appreciated.


texts: Cartthrob display fields only if shipping or tax has a value greater than $0.00

texts:
Working on our new Cartthrob install, I want to hide the shipping and tax fields on both the cart page and the checkout page if either the shipping or tax are $0.00...

I tried this for shipping:

{if exp:cartthrob:cart_shipping != "$0.00"}

        Shipping

      {exp:cartthrob:cart_shipping}

   {/if}

But doesn't seem to do what I want... Any suggestions or maybe I'm just not using the tag correctly?


texts: Playa field not outputting expected value in zoo visitor update form

texts:
I'm trying to implement Chosen as a front to a Playa-field in my Zoo Visitor channel. Entering data isn't a problem, but obviously I want to have the currently selected entry selected as default. This wasn't behaving as expected, so I stripped everything down to the following bit of code:

{exp:zoo_visitor:update_form
    return='profiel'
    class='custom profile'
    allowed_groups='7'
}
    {member_employer var_prefix="employer"}{employer:entry_id}{/member_employer}
{/exp:zoo_visitor:update_form}

When I load this template, it outputs 810, which isn't even an actual entry. When I output the value in another template between {exp:zoo_visitor:details} tags it outputs the expected entry_id of 243. I've tried removing the var_prefix (which was only added later for debugging to be safe anyway). Any idea what's going on here?


texts: Conditional For Entry Listing Pages Only

texts:
I have some code inside a global snippet that I only want to display on a blog listing page. So the allowed URL types could be:

/blog
/blog/P10
/blog/category/crackers
/blog/author/skeletor

I do not want the code to display on the individual blog post pages (/blog/my-post-title).

So the pseudo-conditional would be:

If segment_1 equals "blog" AND

segment_2 is empty
OR segment_2 is pagination
OR segment_2 equals "category"
OR segment_2 equals "author"

The pagination is the part that's tripping me up. I know I can use Switchee to use regexes, but it doesn't let me use advanced AND/OR and () operators to string cases together. Something like:

{if segment_1 == 'blog' AND (segment_2 == '#^P(\\d+)$#' OR segment_2 == 'category' OR segment_2 == 'author' OR segment_2 == '')}

Is there an add-on that will let me use regexes inside advanced conditionals, or is there another way of doing it altogether?


texts:
I want to manage all my affiliate links in one place, e.g.:

mydomain.com/link1 -> redirects to aff. link 1
mydomain.com/link2 -> redirects to aff. link 2

Is there any addon that allows the management of affiliate links like this?


texts: Postmaster parses tag in preview but not in delivered email

texts:
I am having trouble getting a tag pair to work properly. In the preview pane of the control panel the code below behaves as expected. However, when the mail arrives via Mandrill this field is blank.

{exp:low_events:entries channel="events_submitted" entry_id="{parcel:entry_id}" dynamic="no"}
  <strong>{cf_events_date:start_date format="%F %j, %Y"}</strong>
{/exp:low_events:entries}

Any clues? Thanks!


texts: Undefined index: checkbox_fields error when submitting safecracker form

texts:
Here is my form

{exp:safecracker
    channel="dummy"
    class="form-horizontal"
    dynamic_title="Place"
    error_handling="inline"
    include_jquery="no"
    return="test/place-form-done"
    safecracker_head="no"
}
    <fieldset>
        <legend>Place</legend>

                <input type="text" name="place" value="" id="place" />

                <button type="submit" class="btn btn-primary">Submit</button>

    </fieldset>
{/exp:safecracker}

When I submit, I get this

A PHP Error was encountered
Severity: Notice
Message: Undefined index: checkbox_fields
Filename: libraries/safecracker_lib.php
Line Number: 1210

Any idea why this is happening?


texts: Is there a way to customise the product dimension subfields in Expresso?

texts: By default products have subfields for width, height, length etc. Is there a way to change these on the admin side? I'd like to change length to 'overall width' and weight to 'overall height'. Any clues would be great.


texts: Reverse sell list (buy-in list) in Expresso Store

texts: Is it possible to do a buy-in list using Expresso Store? It is like a sell list except that when the user checks out the inventory will increase instead of drop and payment will be deducted from the overall sales revenue rather than increasing it.


texts:
Is there a character limit on Wygwam / CKEditor?

One of our clients just tried to add a very, very long entry (65k characters or so) and it spit the bit.

Perhaps PHPMemory running out as well?


texts:
I am showing entries from the same category on a single entry page.

Categories

    {exp:channel:entries
      channel="articles"
      disable="member_data|pagination|trackbacks"
      require_entry="yes"
      dynamic="off"
      related_categories_mode="on"
    }

{title}

    {/exp:channel:entries}

All good but I only want the  container to show if there are those entries. Any ideas?

Thanks!


texts: Can I migrate/convert a text field containing an  into a file field?

texts:
I have a text field that's been to featured an image since an earlier EE1 install and I would like to convert it to a File field type, so as to better utilize the image URL throughout different templates.

Can I simply change the type from Text Input to File? I'm doubtful, since there is so much other text in the input aside from the image URL. (ie: <img src="{filedir_4}file.jpg" alt="" height="300" width="300" />)

I came across this post with the same question but do not fully understand the solution provided. (I am also too new to comment there.) It says that I can add the following PHP to a template and it will do the migration itself:

<?php

$old_field = 'field_id_XX';
$new_field = 'field_id_XX';

$images = ee()->db->query("
    SELECT entry_id, $old_field FROM exp_channel_data WHERE $old_field != ''
");
foreach($images->result_array() as $image)
{
    preg_match('/src="([^"]*)"/i', $image[$old_field], $match);
    if(!empty($match))
    {
        $data = array(
            $new_field => $match[1]
        );
        ee()->db->query(
            ee()->db->update_string('exp_channel_data', $data, 'entry_id = '.$image['entry_id'])
        );
    }
}

?>

I've added the PHP to the related template (which allows PHP), replaced the field_id_XXs with the proper IDs, then loaded a few pages—but no migration is taking place.

Any suggestions?


texts:
guys.

I am developing an extension for the cartthrob addon.
I'd like to get the url of checkout page in ext.myaddon.php.
How can I get this?

Thanks.


texts:
Since upgrading to EE 2.9.0 and Stash 2.5.6 I am having problems with stash snippets.

I am getting results such as %Y-%m-%dT%H:%i:%s%Q

{exp:stash:set_value name="my_var" type="snippet" value="oof"}

{exp:stash:get name="my_var" type="snippet"}

works fine and prints oof, but

{my_var} prints {my_var}

I have been using the second method extensively through my site in conditionals or simply to display elements.

Thanks


texts: Low Variables and Matrix and Playa - Oh My!

texts:
I've been searching everywhere and tried many options, so I'm reaching our for some help.

I'm Running EE 2.6.1, LV 2.4.2, Matrix 2.5.10 and Playa 4.4.5.

I've got a Low Variable called 'lv_obv_lot_directory' with 2 columns:  one is a simple dropdown (with numbers) called 'm_lot_location' and the other is a Playa field called 'm_lot_vendor', which pulls from a channel called obv_members.

Running this in the basic form

{exp:low_variables:pair var="lv_obv_lot_directory"}
  <div>{m_lot_location}
{/exp:low_variables:pair}

gets me a list of the numbers (in the order they are listed in the LV).

But I can't get it to pull the list of associated vendors.  I've tried so many things, including a special embedded template.  The closest I came was with an embedded template

{exp:channel:entries channel="obv_members" fixed_order="{embed:entry_ids}"  dynamic="no" disable="member_data|pagination|categories" status="not closed"} which just gave me a list of all of the vendor entries.  If I change it to fixed_order="0|{embed:entry_ids}" then I just get the first entry.

I think I'm close, but obviously missing something.  HELP!!!  :(


texts: Responsive Images solution with native EE and/or Addons

texts:
Considering that add-ons like Channel Images and even the native EE image upload functionality provide the option to create duplicates of uploaded images at rescaled sizes, (or produced on-the-fly with CE Image) has anyone had experience in using this functionality in conjunction with JS to serve image files based on screen sizes?

I'm not referring to the RWD CSS on the front end (responsive images and media queries), I'm interested in the aspect of serving different image files from EE based on screen sizes via Ajax after the page has loaded and I can detect the screen width. Any caveats, or gotchas specific to EE?


texts: Create an unsubscribe link for an EE mailing list outside of the email template

texts:
I am trying to create an unsubscribe link for the built in EE mailing list module that can be sent out without going through the Communicate page.

I know that within my email template, I can use the {unsubscribe_url} tag, but I need a way to allow users to unsubscribe when messages aren't sent through that template.

Is there any other way to generate an unsubscribe link, or can I set up a page with a form where users can enter their email address manually to unsubscribe?


texts: Pinterest link in modal not referencing correct photo

texts:
I have a photo gallery that when you click on a photo, opens a modal of a larger view of the image, which works fine.  I also have a Pinterest button in the modal, with the intention of "pinning" said photo.  My issue is that I'm having problems getting the proper parameters passed thru to the Pinterest link.

Here is my loop for the photos & Pinterest link...

    {exp:channel:entries channel="tours"}
    {tour_photo_gallery}

    {/tour_photo_gallery}
    {/exp:channel:entries}

    ‹
    ›
    ×

                    <button type="button" class="close" aria-hidden="true">&times;</button>

                    <button type="button" class="btn btn-very-light pull-left prev">

                        Previous
                    </button>

                        {exp:channel:entries channel="tours"}
                        {tour_photo_gallery limit="1"}

                        {/tour_photo_gallery}
                        {/exp:channel:entries}
                        <button type="button" class="btn btn-contrast next">
                            Next

                        </button>

.links holds my photos and opens up the lightbox...that works fine. #blueimp-gallery is the modal and {tour_photo_gallery} is a Grid fieldtype.  I set a limit="1", otherwise it loops thru and displays Pinterest links for every image.  However, by doing so, whatever photo I click on to display in the lightbox, the Pinterest link is always referencing the 1st entry in the Grid, instead of the one clicked on.  I sense the second loop has to be paired w/ the initial one, so the Pinterest link knows which photo to reference...but I'm not sure how to do so.  Hopefully I'm explaining this correctly.  Any ideas?


texts:
I'm running Channel Images 5.4.18 with EE2.9.2. I'm working on a copy on a development server doing updates.

When I go to regenerate an image size, I'm getting error messages like this, and it won't regenerate the images:

  A PHP Error was encountered Severity: Warning

  Message:
  copy(/chroot/home/account/primarydomain.com/html/secondary/system/expressionengine/cache/channel_images/imagefilename.jpg):
  failed to open stream: No such file or directory

  Filename: local/local.php
  Line Number: 111

I don't know how CI operates (obviously!) but I'm wondering why it would be looking in the cache for the images? This directory it's looking in doesn't exist, and it seems strange that it would look in a cache folder, which can be cleared.

Any help would be appreciated!


texts: System 'on' and Site 'on' - Can you keep a channel segment 'closed'?

texts:
What is the best way to continue building a large site segment in which content can be added, previewed, and edited while the site is live but not seen in certain channels?

I have multiple ways of doing this, but I am always open to learn newer or better ways to improve my workflow.

Here's the situation: I have a large MSM site which consists of multiple subdomains. The old site is still live as the rebuild has to happen along side of the original which is a kluge of .net, static, EE1, etc..

So as the new site is designed and the old site becomes obsolete, I will need to open up various segments of the redesign (new), and close off the old site. Using 301's for the old content to the new content should help me with keeping my "juice" and traffic stats, but I am unsure of the best way to handle continuous development in the rebuild site.

If I have www.mydomain.com and say three channels as market-1, market-2, and market-3. I will build out market-1 and have it "live". While this is the case, I need to be able to develop in market-2 and market-3, adding entries, testing, etc. Is this possible without doing it on a development install and needing to port all of the fieldtypes, entries, etc. over? This is what I would like to avoid. I was hoping for a way to "close" a channeluntil it is ready for production viewing.


texts:
Does anyone know if Safe Harbor works with EE2.8+ or 2.9? I am contemplating purchasing this over Backup Pro by mithra62.

In actual fact I would like to know which is better as a ftp backup solution. I know that Backup Pro zips the files, does Safe Harbor compact the files too?


texts: Filter out entries belonging to a parent category

texts:
I'm certain this question must have come up before, but can't find any mention of it.

I need to filter out entries that are assigned to a parent category. I'm using this tag

{exp:channel:entries channel="blog" dynamic="no" limit="3" category="not 32"}

but this includes those entries categorised with child categories of category 32, and will only filter out those entries that are assigned just that one specific category. I want to retain the Auto-assign parent category functionality for my entries.

Any ideas how I could achieve this?


texts: When Logging In: Admin is loading Extremely long

texts:
I have an old EE site that I haven't logged into for a year. Now I'm trying to login to it, but it's taking over 1 minute just to log in...

After I'm finally logged in every consequent page load in the admin also takes over a minute to load.

The thing is: I changed Nothing. All I did was not login for a year and now when I try to login it just loads for ages.

Before I thought it might be the 3000 pending comments that are causing this, so I deleted them in the database to see, but it didn't improve one bit. It's still crazy slow.

My EE version is 2.0

Please suggest how to fix this, I have no idea where to start and I can't work on the admin to try things because it's too slow.

P.S. the font end still loads fine and speedy.


texts: Using multiple search parameters on a Grid field

texts:
I am using search tag for express engine channel but it is not working.

for eg. I have created a channel named as 'XYZ'  and having following channel fields there :

1) user_type : text

2) profile : grid
        a) first_name : text
        b) last_name :  text
        c) user_name : text
        d) age : text

Now i want to show user listing for a entry which age is greater than 20 and less than 40. i have used following code :

{exp:channel:entries channel="xyz" entry_id=1}
    {profile search:age=">20" search:age="<40"}
        {profile:first_name}

        {profile:last_name}

        {profile:user_name}

        {profile:age}

    {/profile}
{/exp:channel:entries}

But the code above does not give correct result.

Please help me what is missing/wrong here or give me a solution for the same.


texts: Database error 1054 after upgrade to ee 2.11.6

texts:
A Database Error Occurred
Error Number: 1054

Unknown column 'fingerprint' in 'field list'

SELECT member_id, admin_sess, fingerprint, sess_start, login_state, last_activity FROM (exp_sessions) WHERE session_id = '61d62d6d1f526c3ea67c9561cbef791a470a7101' AND fingerprint = ''

Filename: libraries/Session.php

Line Number: 731

Does anyone know how I can fix this issue?  Please?  Thank you!


texts: Plugin using tag pairs as "parameters". Possible?

texts:
Is it possible to use tag pairs as parameters?

Take the code below

{exp:utilities:foo}
    {qux}abcdef{/qux}
    {lux}12345789{/lux}
{/exp:utilities:foo}

Normally, using parameters, you are going to do this

$qux    = ee()->TMPL->fetch_param('qux');

Inside the plugin, is there something I can call to get the values between the tag pairs just like the code above?

My motivation for doing this is because using "parameters" for plugins usually result in a parse order issue for me.Some people seem to have the same problem too.

NOTE:

I aiming to use the parameters to do some processing and return a single string for the plugin.


texts:
I am trying to add a captcha to a site that is running EE 2.6.1.  I am using solspace freeform 4.0.12 (the free version, not pro) and accessible captcha 2.3.  The code for the captcha is

        {if captcha}

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

        {/if}

When I remove the {if captcha} tags, the question/answer pair shows up, but it also allows the form to be submitted with an incorrect or missing answer.

I have also tested the page on multiple browsers to make sure that I'm not logged in.

Any suggestions?


texts: Dynamically create swiper based on images in wygwam field

texts:
I'm using ExpressionEngine and have a wygwam field that takes html formatting, including img tags. I was wondering how I could dynamically create a swiper based on these images? I was thinking that if the field contains more than one image, it should be turned into a slideshow.

I could do this with some jQuery, check the text for img tags and edit the markup, then initialize the swiper instance. But could this be done using perhaps embedded templates, or even snippets? Or perhaps there's a plugin out there for this need?


texts:
How can I get the date when the cart was last modified?

I am doing some AJAX stuff and I want to use the date string as a cache buster.


texts:
I previously asked a question about this, but the question itself has kind of changed, and I don't know if anyone's still following it to begin with.

This is the error I'm seeing:

  [06-May-2013 10:50:12] PHP User Warning: Invalid EE Conditional
  Variable: {if "N"original"$1.50" != ""} in
  C:\gitRepo\qo5phi\system\expressionengine\libraries\Functions.php on
  line 2843

I found that the error was being thrown by a custom exception built into expression engine that will do partial matches on variable names if it doesn't find the original one.

From libraries/Functions.php:

// There is a partial variable match being done
// because they are doing something like segment_11
// when there is no such variable but there is a segment_1
// echo  $x[$j]."\n
\n";
trigger_error('Invalid EE Conditional Variable: '.$matches[0][$i], E_USER_WARNING);

So in certain iterations of the loop, it's not finding deal_original_price, so it's trying to do a partial match and is finding deal, which evaluates to N in these cases. (As is indicated by the error message.)

I don't know why it's even trying to evaluate deal_original_price in these cases, though, because the entire conditional call is inside another conditional that only runs if deal is Y.

{if deal == "Y" AND coupon == "N"}

        ${deal_total}

            {if deal_original_price && deal_original_price != "" && deal_original_price <> deal_total}
                ${deal_original_price}
Why is there a price difference?
            {if:else}
                Pricing Terms & Conditions
            {/if}

{/if}

Any ideas?


texts: Changing the default page from Pages module

texts: I am still learning Expression Engine so please forgive any misunderstanding or ignorance that I might have. I am using the Pages module and I want to be able to set which page is the default page for the whole site regardless of which template is used. Is this possible? If I need to elaborate upon any details please inform me.


texts: I am continuously receiving Spam even though i have installed "low NoSpam" and "Freeform Anti-Spam" any ideas on how to block this out completely or alternative add-on.. thanks!!!!!


texts: Use Category URL Titles In Links set to Yes, both types of link showing

texts:
Working on a site with EE 2.5.1, so maybe this can only be resolved with an upgrade...

I have set the "Category URL Title in Links?" to "yes" in Global Channel Preferences.  The site does output example.com/category/actual-category-name, but it is also outputting example.com/index.php/category/C5.  How do I stop the /index.php/category/C5 links from being active?

Thanks.


texts: Difficult category search with Solspace Super Search

texts:
I need compose search string for this condition:
Search in Home category and Cat or Dog.
I tried like this: category=53&&236+47 but in don't work

I need only search string, Without form for searching


texts:
Folks:

I've got a complicated setup where I can't use the standard Store shipping options. Instead, shipping options need to be stored as price modifiers. The only SKU that will be generated for a product is for these shipping options and they can only select one. For example, if they select Canada, the SKU is can. If they select France, the SKU is France.

Now, for Canada, tax needs to be applied so users have to go through an extra step. I would like to evaluate if the SKU is can. If yes, they are redirected to a new page where they select their province (taxes vary by province).

For the life of me, I can't seem to get the eval working. The SKU is clearly there and changes if I change the country. I can even trace the SKU as can or france or whatever. But the if statement doesn't actually do anything. The code:

{if {sku}==can}
    {redirect="store/step_1a"}
{/if}

{if {sku}!=can}
    {redirect="store/step_2"}
{/if}

This is just one variation. I've tried with quotes and without. I've used NSM Transplant (http://ee-garage.com/nsm-transplant) to isolate the SKU and use the results from that. Still no go.

Any assistance would be appreciated.


texts: Don't allow American express card in Expresso store

texts:
Is it possible to set Expresso Store to not accept American Express payments? The client us using stripe, and within stripe there is no option to disallow Amex.

I can block american express cards using JS but this is not a very robust solution.

I thought it might be possible to pass payment[card_type], but this has no effect.

would there be a hook i can use to validate before it'd passed to the payment processor?

Many thanks,

Tom


texts: Can I change the Field Label Length in Solspace Freeform

texts: I have a composer template in freeform pro, thats being used as a survey. The field label needs to be a question which is quite long but there appears to be a limit on the field label in Freeform. Can this be changed?


texts: Load more tag related entries using Ajax

texts:
I am using Tag module (v 4.2.3) with EE (v 2.5.2),and I have requirement wherein on a products details page I have to show its 6 related products based on tags which I am achieving using the following expression

{exp:tag:related_entries channel="product" entry_id="{embed:entry_id}" orderby="relevance" limit="6"}
{title}
{/exp:tag:related_entries}

Now we have a button below the 6 related products,and on click of it we have to load 6 more related products.I am not able to exclude the existing 6 products on the page,I have the already loaded products entry_ids but I am not able to write a expression of tag related entries with which I can exclude the already loaded products and load the next batch of 6 products.
  Please help me out in achieving that,I would be really thankful

Cheers
Nisar


texts: Pagination {auto_path} outputting 3 x duplicate URL

texts:
I have an odd problem with EE 2.5.3 outputting multiple urls preceding the correct pagination segment when using this code:

{paginate}
{if next_page}
<a href="{auto_path}"Next
{/if}
{/paginate}

It outputs the following: http://www.domain.co.uk/http://www.domain.co.uk/http://www.domain.co.uk/news/P6

Interesting, if manually navigate to http://www.domain.co.uk/P6   (or P0) then it then outputs the correct link - it is only when there is no pagination segment in the url that it does not work.

If I change the setting "URL to the root directory of your site" in the general config from http://www.domain.co.uk/ to just / then it works and outputs the correct link.  However, this causes other problems with sitemaps and so on, so it's not an ideal solution.

The name of the site's index page is left blank as I am using rewriting to remove the index.php from the urls.

There is nothing that I can see in the config files that would be adding an additional two http://www.domain.co.uks to the output.

If it might be relevant, the site is using EEHarbour's Transcribe plugin (a pre-release beta of 1.6) and Structure 3.3.13 and Freebie 0.2.2

Hope someone can help!
Many thanks, Michael


texts: Load framework outside of folder structure

texts:
OK so basically I'd like to load the EE framework and its container outside of an ExpressionEngine path... I know there's been some questions about this, but I haven't found a great answer, and it seems like a good question for the forum. I, like, never ask questions so why not?

Given this simple situation (EE 2.9+):

Web root and ExpressionEngine root: /web_root/index.php

Outside of EE file: /web-root/random-folder/index.php

Is there some way I can initialize the framework in that /random-folder/index.php file? I specifically want to load the database class (and possibly a few others). I know I can probably load CI classes just fine, which is close, but I don't know how it would work with trying to launch the framework there for class use from the ee() container (think ee()->functions, ee()->db, etc..). I know I could probably figure this out on my own, but I rarely have a really good question, so I'm accepting answers, suggestions, as well as warnings against this idea. If anyone has accomplished this successfully, I'd love to hear about it, and am extra inviting to security questions and concerns. Thanks to any who have any ideas.

P.S. Yes, I can do everything I want to in that /random-folder/index.php file in pure PHP, but this is related to an addon development and I'd like that file's contents to have the code structure and feel of an ExpressionEngine addon file.


texts: Is it possible to orderby random for Grid fieldtype?

texts:
As far as I can tell, orderby="random" does not work on the new Grid fieldtype. Has anyone found a good workaround?

I have a grid with several images. I'd like to display one at a time, but randomize which image shows.


texts: Delivering images via HTTPS protocol using {image}?

texts:
I am using ExpressionEngine for an e-commerce site and it is using the HTTPS protocol site-wide. HTTPS is failing on my homepage because the images are being delivered(using {image}) from the HTTP protocol. I am wondering how I can tell ExpressionEngine to deliver these images via HTTPS instead.

Any help greatly apprecaited!


texts: Can I add related data with a relationship or multiselect field

texts:
Simple Example:  I have one Chanel "Walks" and another "Walk Variations".  I know I can create walk variations and then have a relationship field in Walks to select the correct Walk Variations.  What I would like to be able to do is create a walk and then on the same form add multiple walk variations.

Similarly, with a multi-select field is there a way to add an option from the current channel, rather than having to do that separately?

Is that possible?
Thanks.


texts: exp:channel:month_links - need multi lingual output

texts:
I've got a multi lingual site powered by Transcribe and I've run into one area where I am unable to get both French and English to work. See the code below

{exp:channel:month_links channel="blog" limit="50"}

{month}, {year}

{/exp:channel:month_links}

I need the {month} variable to be in French on the french side and English on the English side. However since this is being pulled directly from EE itself I'm not sure how to achieve this.


texts: Super Search Forward Slash in Search Bug

texts:
Super Search 2.2.3
ExpressionEngine 2.10.1

I'm running into with Super Search where a search string containing '24/7' throws an error that appears to be related to the relevancy portion of the module code.  Googling has shown a (very) old changelog item related to forward slashes in search code, but nothing recent and nothing that appears to be the same as my problem.  Here's the error I end up with -

A PHP Error was encountered

Severity: Warning

Message: preg_match_all(): Unknown modifier '7'

Filename: super_search/mod.super_search.php

Line Number: 8825

It looks like the slash is breaking something in the code, and since the 7 is the next character that's what's showing up in the error.

Here's the results loop that's leading to the error -

{exp:super_search:results
    channel="channelname"
    status="statusname"
    relevance="channel-title=5+channel-type=5+channel-keywords=3+channel-description=2+channel-user-review=1"
    redirect_post="no"
    category_indicator="category_id"}

Has anyone else run into this problem?  It feels just edge-case-y enough to have slipped through without someone else seeing it, a combination of searching for a slash and using the relevance parameter.  Or I could be missing something simple.