texts: Use conditional to check that the current user is the author of the post

texts:
How can I check that the current user is the author of the post? Something like this?...

{if author_id="CURRENT_USER"}{/if}

(My setup is basically an entries loop, with a snippet inside of that containing all the variables to display each entry. Within that I want to conditionally show an embedded include which holds a delete form. So basically I only want to show the delete form for entries which are authored by the current user. Got it all working okay, just need the conditional now.)


texts:
I would like to use a conditional to hide or show information from an entry. The following code is pulling in data from an EE relationship field. If there is no entry I would like this code NOT to show. I have tried to use {if}{/if} statements, but cannot work the code out!

{manufacturer_profile:title}

{manufacturer_profile:manufacturer_summary}

Would really appreciate some help on this.


texts: Cartthrob report templates: using overall order data while in order items loop

texts:
I'm trying to create a custom report.  In it, I need a table with rows that would look like this:

 # Product   Order id Order date
 1 Partridge 1234567  2014-09-15
 2 Dove      1234567  2014-09-15
12 Drummer   1234567  2014-09-15
 3 Dove      2345678  2014-08-01
 4 Drummer   2345678  2014-08-01

Clearly this involves a loop over orders, and an inner loop over the items in the order.  However, I haven't been able to access much of the order's data from within the item's loop. While i can see the order ID, I can't seem to access the date the order was entered; instead, entry_date gives the product's creation date, which is not what I want at all.  Other attempts -- starting a second-level exp:channel:entries loop with the appropriate order ID, guessing at possible prefixes or containers for order data (like entry:entry_date or order:entry_date) haven't gotten me anywhere.  The following is the code I've written for this so far.

{exp:channel:entries channel="orders"}
    {order_items variable_prefix="item_"}

            {item:quantity}
            {item:title}
            {order_id}
            {entry_date}

    {/order_items}
{/exp:channel:entries}


texts:
I have an issue when using Low Alphabet in Bootstrap with the layout, which i don't get if I take Low Alphabet out of the code.

The issue is at the end of this page URL below, the last two images do not line up and instead one drops and the other goes to the right, when it should flow to the left.

http://www.historyandpolicy.org/sandbox

The code I'm using is below. The Low Alphabet codeworks perfect, however its the formatting that is the issue and this only happend when using Low Alphabet.

{exp:low_alphabet:entries channel="who-we-are" alpha_filter="{title}" orderby="surname" limit="20"}

{first_name} {surname}

{profile_position}

{/exp:low_alphabet:entries}

I would be very grateful if anyone could help.


texts: Get Original URL in assets_rename_file / assets_move_file Hooks

texts:
The documentation for Assets' assets_rename_file() and assets_move_file() hooks indicates that the first argument is "an object extending Assets_base_file class for the file that is about to be [renamed or moved]."  But when I call url() on that object, I get the URL of the already renamed/moved file instead of the URL of the original file.

The documentation for Assets' assets_replace_file() and assets_delete_file() hooks uses the same wording for its first argument.  But when I call url() on those objects, I get the URL of the file being replaced/deleted (which is what I expect based on the documentation).

What should the first argument of assets_rename_file() and assets_move_file() hooks represent?

What I'm trying to do is get the original URL and the URL of the renamed/moved file in the hook, but it doesn't seem possible to get the original URL.  So how do I determine which file is being renamed/moved?

We're using ExpressionEngine 2.5.3 with Assets 2.2.1.


texts: Safecracker: how can I reliably alter the return value on form submit?

texts:
I've inherited a project where the developer used a trick that's worked for me before: use JavaScript to modify the value of Safecracker's hidden return element prior to submitting the form, gaining control over where you'll land after the form is submitted.

Except it's not working with this EE 2.6.1 install; despite this working with EE 2.5.5, and the fact that I can easily modify the return element's value, the form submits and leaves me at the page specified in the Safecracker return parameter.

Here's what we'd like to happen on this school site:

teacher composes a new class blog post
teacher chooses "Submit" or "Submit and Email to Parents"
if choosing "Email to Parents", resulting page should be /mail_classblog_confirm/, which loads up the last teacher blog post, previews it as an email, and has the teacher confirm that it should be sent out

What actually happens: either submission lands back at /classes/{freebie_2}, which is specified in the {exp:safecracker} return parameter.

New Post

{exp:safecracker channel="class_blog" return="/classes/{freebie_2}" include_jquery="no"}
    Title:
    <input type="text" name="title" style="width: 98%;">

    Update:
    {field:bl_content}

    <button type="submit" class="btn btn-primary">Submit</button>
    <button type="button" class="btn btn-primary btn-mail">Submit and Mail to Parents</button>

    Cancel
{/exp:safecracker}

Ultimately I have two questions:

If I'm absolutely positive that the JavaScript is manipulating the return input element correctly (I can watch it happen in Chrome's inspector) prior to submitting the form, how is it even possible that this could fail?
Is there a better, more reliable way to control where the user ends up based on which submit button they've chosen?


texts: Simulate date/time in PHP for Expression Engine

texts:
We're running an annual event website and we're keen to simulate the site for a different date. In other words, add say 3 months to the current date/time so we can try out some options for when the event's finished.

Anyone have any thoughts on where to start with this?


texts:
I've been looking into creating a front-end client dashboard using wyvern, assets and of course channel forms.  I have played with many configurations to get the 'dashboard' working.  Specifically, everything is fine except for the channel fields that are Wyvern,  just show up on the dashboard as a normal 'textarea' field in the likes of the normal rich-text editor.    while in the EE control panel it shows Wyvern tools

The 'dashboard' template follows something like :

              {exp:channel:form channel="page" entry_id="{segment_4}" json="yes" include_jquery="yes"rte_selector=".ee-rte" toolset_id="2"}

    About
    <textarea id="about" name="about" rows="12" class="ee-rte">{about}</textarea>

    Body
    <textarea id="body" name="body" rows="12" class="ee-rte">{body}</textarea>

  ...etc

I know there's the class="ee-rte" and the rte_selector=".ee-rte" but does this affect the Wyvern fields and possibly why I can't get Wyvern to show up in the 'dashboard' fields?

or maybe it's the:

    <textarea id="about" name="about" rows="12" class="ee-rte">{about}</textarea>

area because that's calling the "textarea", but then how do you call in Wyvern?

Any help or suggestions you may have would be awesome.  I know there has to be a simple solution that I'm just completely overlooking.
Thanks in advance.


texts: Matrix, plus symbol in text input breaking in simple if conditional

texts:
I seem to be getting the same error as in this post, but in my case the problematic part of my condition is a plus symbol, which is pretty absurd!

{if '{caption}' != ''}data-caption="#caption-{row_id}"{/if}

In this case, if the caption includes a plus, it will result in:

Parse error: syntax error, unexpected T_STRING in /Users/danielhowells/Sites/Calvert/www.calvertadmin.com/web/content/expressionengine/libraries/Functions.php(683) : eval()'d code on line 28

It's a bit embarrassing explaining to my client that they can't use + in their captions. :-)


texts:
We faced a weird issue with status="Featured" for our channel entry tag today, when we changed the custom status of our health topic channel entry from "Featured" to "Closed", and created a new health topic channel entry with the status="Featured". This process has worked in the past, but doesn't seem to work today.

The tag looks like this:

{exp:channel:entries channel="health_topics" limit="1" status="Featured" dynamic="no"}
//HTML code
{/exp:channel:entries}

Nothing is displayed is the sections with the above snippet.
This issue is common to another channel "Event".

What could be the issue?
Any assistance is much appreciated.
Thanks in advance!


texts: Using low search for custom field multiple select. A primer

texts:
I have been looking at using potentially Low Search to perform the following:

Example: A site that users can research high end stereo equipment.

Required: Create a structure listing/channel for these with 2 custom multiple select fields for manufacturer and type.

Create a front end page with a two dropdowns - Manufacturer and Type. Needs the potential to add other custom fields of the same multiple select field types such as colour or price range.

As I only have a couple of EE sites under my belt and never used Low Search, I was after an initial push to see if this is possible with Low Search and if Low or someone could help with the template code to get me going.

TIA.


texts:
I have updated my EE2 to EE4, I am now updating Channel Image addon.

he works in the control panel, but in template I get a white page.

If I debug the addon I get the following problem:

at get_field_setting function i get no data back, it goes wrong at (return ee()->cache->get('channel_images/field_settings/'.$field_id);)

Can someone help with this?

With save goes well

(ee()->cache->save('channel_images/field_settings/'.$field_id,unserialize(base64_decode($query->row('field_settings'))),500);)

The code is:

public function get_field_settings($field_id)
{
    if (isset($this->session->cache['channel_images']['field_settings'][$field_id]) == FALSE)
    {
        $query = ee()->db->select('field_settings')->from('exp_channel_fields')->where('field_id', $field_id)->get();
                    if ($query->num_rows() == 0) return FALSE;

                    ee()->cache->save('channel_images/field_settings/'.$field_id,unserialize(base64_decode($query->row('field_settings'))),500);

            }

    return ee()->cache->get('channel_images/field_settings/'.$field_id);
}


texts:
Suddenly Freeform pro isn't sending emails to the admin or the visitor. It worked but now it doesn't for some reason.

The logs report that they are sending, but they aren't being received. I'm using the basic form module that comes with EE as well and we aren't having any issues receiving those emails.

Any ideas here?


texts: Automatically assign parent category to child category url's

texts:
I have multiple parent categories:

Kids Stuff
Dining Out
Things to Do

Each of those parents have multiple children:

Kids Stuff -> Schools, Camps, Parties
Dining Out -> Restaurants, Catering
Things to Do -> Day Trips, Weekend Getaways, Activities

Entries can be in more than one Parent as well as more than one Child.

On the individual entry page, I need to show the categories the entry is assigned and the link to the (parent or child) category page.

PARENTS:

/kids-stuff/
/dining-out/
/things-to-do/

Parents work fine.  It's the Children that are a problem.

I want the Child Category URL's to show the Parent name (each parent category has a different template), as well as the child name like so:

CHILDREN:
/kids-stuff/schools/
/kids-stuff/camps/
/kids-stuff/parties/
/dining-out/restaurants/

and so on.

Instead EE is giving them the following URL's
/schools/
/camps/
/parties/
/restaurants/

Thanks for any help or insight you can offer.


texts: Only outputting the same article once using relationships

texts:
I have the following code:

  {exp:channel:entries channel="activity"}
    {related_entries id="activity_location"}

{title}

    {/related_entries}
  {/exp:channel:entries}

This outputs all activities (activity) that have an activity location (activity_location is the channel field with the relationship), so I get multiple results which is fine, but a lot of these multiple results are the same. I want to only output one of each.

For example currently I'll get:

England, Wales, England, England, Wales, Scotland

I want it to simply output:

England, Wales, Scotland

Is there any easy way of doing this?


texts:
I've been asked by a client if they can add a watermark credit to their images. The watermarks would need to be set on a per-image basis - there would potentially be hundreds of different image sources so we can't apply a standard watermark to them as is done by the standard EE Watermarking system. The watermark needs to be written into the image (using GD I imagine) rather than overlaid in a separate element. As, for example, the BBC does with stock images or those from other news agencies.

We're using Assets to manage the images. Does anyone have any solution for this already?

If not, my first idea of a solution is to write an extension based around the assets_file_meta_save hook - so that any text put into the 'Credit' field would be added into the image. Of course it couldn't be removed afterwards, the file would have to be re-uploaded. So that's quite tricky and pretty hacky.


texts: Solspace Freeform return path {csrf_token}

texts:
I am having an issue, probably parse related. Using Solspace Freeform I am trying to include the {csrf_token} in the return path but its not working.. my code is as follows for the form:

{exp:freeform:form
                   form_name="whitepapers"
                   required="email|full_name|company|job_title|whitepaper|my_unique_hash|partner"
                   return="/{segment_1}/{csrf_token}"
                   inline_errors="yes"
                }

It returns to domain.com/segment/%7Bcsrf_token%7D with an error: Error: The URI you submitted has disallowed characters.

I am trying to use the CSRF token to check against buy storing it in a hidden field and using it to display the entry on the return. From this example: http://support.solspace.com/support/solutions/articles/4000032469-how-to-make-freeform-forms-editable-without-using-the-entry-id-in-the-url

Could anyone shed some light or offer a way to do this?

Thanks in advance


texts:
I'm administering EE site with forum. On the forum, there are many redirects in the form of http://domain.com/?URL=http://third-party-site.com/page.html

Recently, Google started returning 404 for my site if the page on third-party site (which I can't control) does nit exist.
What should I do to avoid that, except for blocking "?URL" urls in robots.txt (especially having in mind that the links existed always, but started returning errors just recently, EE version has not been updated)


texts: Solspace Calendar Entries are duplicated if they share the same day

texts:
I'm displaying events as a list (per day) but finding that if a day has more than one event, the day is duplicated, so rather than:
1
2
3
I'm getting
1
2
2
3
where there is more than one event on the 2nd,
code is here:

                        {exp:calendar:cal
                            {if segment_3 == ''}date_range_start="year-month-01" date_range_end="year-month-last"{/if}
                            {if segment_3 != ""}date_range_start="{segment_3}-{segment_4}-01" date_range_end="{segment_3}-{segment_4}-last" {/if}
                             {if segment_4 == "{current_time format="%m"}"}date_range_start="today" date_range_end="{segment_3}-{segment_4}-last"{/if}

                            pad_short_weeks="n"
                            category="1"
                        }
                             {if calendar_no_results}
There are no events for this month
{/if}
                            {!-- {if event_count=="1"}
****{event_start_date format="%F %Y"} | {event_count}
{/if} --} {!-- control date format here for month/year title --}

{event_start_date format="%j"}
{event_start_date format="%M"}
{!-- control date format here for day/month sub-title i.e. %j = day  %F = month  --}

{embed="_embeds/calendar_events_by_day" my_date="{segment_3}-{segment_4}-{event_start_date format="%d"}" event_cat_id="1"}

                        {/exp:calendar:cal}

and embedded code 'calendar_events_by_day' here:

{exp:calendar:events
    date_range_start="{embed:my_date}" date_range_end="{embed:my_date}"
    category="{embed:event_cat_id}"
}

    **{event_title}

    {if session!=""}{session}
{/if}{event_start_date format="%g"}{if event_start_minute > 0}:{event_start_minute}{/if}{if event_end_time != event_start_time && event_end_time != '00:00'}&ndash;{event_end_date format="%g"}{if event_end_minute > 0}:{event_end_minute}{/if}{event_end_date format="%a"}{if:else}{event_start_date format="%a"}{/if}

{/exp:calendar:events}

Any pointers appreciated!


texts: How can I use Low Search to filter entries by their entry_date, using a datepicker?

texts:
I have read a few different posts on how to filter search results using a custom date field, and on using a range of dates as well. However, I need to filter my results by the native entry_date. I have tried a multitude of things from using date ranges, trying to use exact parameters and more. This is my latest markup:

Search Tag

{exp:low_search:form collection="albums" query="{freebie_3}" result_page="/daily-photos/results/" form_class="internalSearch photoSearch" secure="no"}
      <input type="text" placeholder="MM/DD/YYYY" class="searchDatepicker text search"/>
      <input type="hidden" id="actualDate" name="search:entry_date">
      <button type="submit" class="searchBtn" aria-hidden="true" data-icon="&#xe004;"></button>
{/exp:low_search:form}

Results Tag

{exp:low_search:results  query="{freebie_3}" limit="15" paginate="bottom" paginate_base="/daily-photos/results/"}

Datepicker Javascript

$('.searchDatepicker').datepicker({
        altField: "#actualDate",
        altFormat: "yy-mm-dd 12:00 'PM'",
        dateFormat: "mm/dd/yy",
        gotoCurrent: true,
        maxDate: "+0d"
 });

You can see where I was trying to resolve a suspected timestamp issue by adding a default timestamp in the javascript. My thinking was to have a default timestamp as shown and then in the search, setting the range for the entry_date to be from yy-mm-dd 12:00 AM to yy-mm-dd 11:00 PM, but I haven't been able to achieve this, and I'm not sure if there's just something basic I am overlooking? I am using Low Search in several other places across the site, so I'd like to be consistent and use it for this scenario. My search results just return all entries with no filtering.

I am running EE 2.5.5 and Low Search 2.2.1. Thanks for looking!


texts:
I don't recall this previously being the case, but lately I've been accosted by horrendous long lines and the need to use a scroll bar when viewing raw source in a WYGWAM field. Is there any way to make this go away and have things soft-wrapped into a normal viewing port window?

Many thanks,

Andy


texts: UPDATE Content Elements and issues with unserialize()

texts:
Update
The issue seems to be an unserialize() error. I wasn't getting notified before because CE suppresses error reporting on unserialize in various places in ft.content_elements.php. I'm going to keep digging to find out whether this is an EE issue, or what.

If anyone has run into unserialize issues with EE before, it would be much appreciated!

Original Post

So, I have content elements rendering the content of entries in my templates. For some reason that I can't isolate, some entries are rendered without any output from the content elements tag.

To be clear, it works just fine on some entries, but renders nothing on some entries.

I've checked the database and there is indeed the appropriate data in the exp_channel_data table. I've also checked the MySQL and PHP logs for something helpful, but nothing useful seems to be reported.

I'm not even sure exactly where to begin as far as giving helpful code. Would my CE snippet help?

Luckily this problem is only happening in my development environment, so there is a live site with the fishy content we could look at. The other issue is that I noticed this after upgrading various different add-ons and extensions, but even after rolling back the system code (via version control) and resetting my DB to a pre-update version, the issue persists.

Here are the extensions I'm using and version numbers and all that. Any help or guidance would be greatly appreciated! For example, does EE generate any helpful logs during the template parsing process?

EE 2.8.1
Content Elements 1.6.9
Wygwam 3.3
Assets 2.3.1
Low Search 3.1.4
Low Variables 2.4.2
Stash 2.4.6
Structure 3.3.14.4
Zenbu 1.9.1
Zoo Flexible Admin 1.81

Others too...

It seems like there is some kind of error during the parsing process so EE bails on generating the data from the DB. I can see it in the table, but it's not showing up on the front end :(.


texts: How to make 4 level static template url?

texts:
I can't understand how to made URL structure for page For eg

http://site.com/template_group/temlate1/template2/template3

http://site.com/services/cleaning/reviews/best

In admin panel, at template group services we have 4 templates

index cleaning reviews best

Every template have url

http://site.com/services/index/

http://site.com/services/cleaning/

http://site.com/services/reviews/

http://site.com/services/best/

I need to display some templates like this

http://site.com/services/cleaning/reviews/

or

http://site.com/services/cleaning/reviews/best/


texts: Solspace - Primary Category: Usage in Channel:Entries

texts:
Firstly we have checked the primary category settings and have checked the entry has a primary cat.

When we use the primary category tag pair within and entries loop it doesnt work, just spitting all of the tags out in the page with their curly braces, for example this is the page output viewed in a browser:

{primary_categories category_group="1" entry_id="23"}
{primary_category_id}
{primary_category_name}
{/primary_categories}

However the tag pair on its own, passed an entry ID works?

Here's to code that doesn't work:

{exp:channel:entries channel="content_articles" entry_id="{segment_2}" disable="member_data|pagination" category_group="1" }

{title}

{primary_categories category_group="1" entry_id="{segment_2}"}
    {primary_category_id}

    {primary_category_name}

    {primary_category_url_title}

    {primary_category_description}

    {primary_category_image}

    {primary_category_CUSTOM_CATEGORY_FIELD}

    {primary_category_group_id}

    {primary_category_group_name}

    {primary_category_order}

    {primary_category_parent_id}

    {primary_category_parent_name}

    {primary_category_parent_url_title}

{/primary_categories}
{/exp:channel:entries}

Where as this does work:

{exp:primary_category entry_id="{segment_2}"}
    {primary_category_id}

    {primary_category_name}

    {primary_category_url_title}

    {primary_category_description}

    {primary_category_image}

    {primary_category_CUSTOM_CATEGORY_FIELD}

    {primary_category_group_id}

    {primary_category_group_name}

    {primary_category_order}

    {primary_category_parent_id}

    {primary_category_parent_name}

    {primary_category_parent_url_title}

{/exp:primary_category}

Any thoughts why this would be??


texts:
EE 5.2.6

Is there any way to use the simple or advanced search forms native to EE to search categories as well as channels?

I see that there's a category parameter but I'm not really sure what is the point of it.

I'm not really looking for anything fancy, just wondering of categories can be queried in the native search functionality.

Thanks!


texts: Playa Customisation: Include all entries for coparents tag

texts:
How can I  arrange it so that the current entry is included with the others, but in the correct order when using the coparents tag. Currently I have got:

Other scenes

            {scene_preview} '{current_time format="%U"}'}grey{/if}" />{/scene_preview}

{title}

             {if '{entry_date format="%U"}' > '{current_time format="%U"}'}Coming:{/if} {entry_date format="%d %M"}  Viewing

        {exp:playa:coparents field="movie_title"}

                {if '{entry_date format="%U"}' < '{current_time format="%U"}'}{/if}{scene_preview} '{current_time format="%U"}'}grey{/if}" />{/scene_preview}{if '{entry_date format="%U"}' < '{current_time format="%U"}'}{/if}

{if '{entry_date format="%U"}' < '{current_time format="%U"}'}{/if}{title}{if '{entry_date format="%U"}' < '{current_time format="%U"}'}{/if}

                 {if '{entry_date format="%U"}' > '{current_time format="%U"}'}Coming:{/if} {entry_date format="%d %M"}

        {/exp:playa:coparents}

But this solution is not ideal, as it puts the current entry being viewed at the beginning of the row and not in the original order. Can I include ALL entries with the same co-parent and display them in the original order?


texts: change expresso store field with safecracker

texts:
i want to change the price field from frontend , actually im templating like this but seems DONT WORK...  any help will be appreciate!!

{exp:safecracker channel="MY_CHANNEL" return="/PATH"  entry_id="{segment_3}"}

{exp:store:product entry_id="{entry_id}"}
    <input type="text" name="price" id="price" value="{price}" >
        <input type="text" name="sku" id="sku" value="{sku}" >
{/exp:store:product}
<input type="submit" name="submit" value="Submit">

{/exp:safecracker}


texts: Can I turn a file field back into a text input field?

texts:
In Brief

How can I convert a file fieldtype back to a text input field containing {filedir}filename?

The long-winded version

I have a file field that I converted from an input field when I was first moving to EE2 and was trying things out.  The input field was just the url of the file on the server, so something like {filedir_11}filename_here

I don't use any special features of the file fieldtype, and only use the file url as output.  There are other input fields used for file urls in this field group that have not been converted, and for those I can use text expander shortcuts to make my life easier, but for the one that is a file type field I have to mouse around and it slows things down for no benefit.

What I would like to figure out how to do is convert the file field back into a text input field and make sure that the field contains {filedir}filename.  I'm not shy about running database queries to accomplish this, but I'm not currently familiar enough with how the file fieldtype works to feel confident in trying it, so I'm hoping someone can save me some time.


texts:
A client has reported a strange error in a Cart Throb site where the items that are added to the basket aren't being saved. This is only happening in IE11.

Is there anything about cookies in IE11 that is different to previous versions of IE?

I tried logging into the site and this worked fine, retaining the cookies, but it still didn't hold items in the cart as I moved from page to page.

Anyone any thoughts?

EE2.7.2. Cart Throb 2.4


texts: Freeform Pro: hidden fieldtype - Default Incoming Data stopped working

texts:
I recently updated to EE 2.7.3 (from EE 2.5.5) and Freeform Pro 4.1.3. I had a couple fields using the hidden fieldtype. These fields have the Default Incoming Data set as follows:

{exp:stash:get name="date" dynamic="yes" match="#^\\d{2}-\\d{2}-\\d{4}$#"}

Basically what this does is fetch a date from the url query string, see if it matches the proper format, and if so set the default value. This was working prior to the update.

Since the update, it stopped working. I tried to figure out why and here's what I came up with. First, I thought maybe it was a Stash bug. So I var_dump'ed ee()->TMPL->tagproper in the Stash::get method. And it revealed something interesting:

{exp:stash:get name=&quot;date&quot; dynamic=&quot;yes&quot; match=&quot;#^\d{2}-\d{2}-\d{4}$#&quot;}

It seems that something in the EE 2.6 or 2.7 update caused the quotes (double and single) to get HTML encoded. The brackets did not get encoded so I don't think it was run through htmlentities. So my guess is that Freeform needs to decode those entities prior to printing out that default value to screen.

Is this a bug?


texts:
I have a Grid field with four columns

Relationship
Select Dropdown, Output Formatting = None
Select Dropdown, Output Formatting = None
Text Input, Output Formatting = None

The problem I am having is that when I output the value of column #3, it is always get wrapped in a <p> tag.

I have checked my templates to see if there is any post processing being done(there wasn't)

{foo orderby="some|columns|here" sort="asc"}
    ...
    {foo:bar}
    ...
{/foo}

This is very, very odd to me since if there is a problem with output formatting, it should be reflected in column #2 since they are setup the same.

Any idea why this is the case?

NOTES:

I am on EE 2.7.2
I read this forum thread and double checked if my output formatting option is set right
I read this and tried to apply the solution but it did not work. To be fair, the poster was talking about a native select dropdown, not a grid column select dropdown


texts: Authenticate is returning to a different page than the return param

texts:
I have two forms on a page, the first one is generated by exp:autheticate, and the second is a normal handwritten form. Both are triggered by javascript submits. The authenticate form seems to be sending me to the action of the second form on success, rather than the return param.

    {exp:authenticate:login_form
        auth_type="email"
        username_field="email"
        secure_return="yes"
        class="cf"
        id="login-form"
        return="/welcome"}
          <input type="text" name="email" value="" placeholder="Email" id="email" class="i2"/>
          <input type="password" name="password" value="" placeholder="Password" id="password" class="i2"/>
          &gt;

          &gt;
      {/exp:authenticate:login_form}

      <form action="https://whatever.com/apply" accept-charset="utf-8" method="post" class="cf" id="apply-quick-form" name="">
          <input type="text" name="newemail" value="" placeholder="Email" id="newemail" class="i2"/>

            Have an invite code?
            <input type="text" name="invcode" value="" placeholder="Invite code (optional)" id="invcode" class="i2"/>

          &gt;

          &gt;
      </form>

EDIT: Seems it was an interaction with twomile_login_redirect that was the issue. That plugin tracks a previous requested URL in a session variable, and forces you to redirect to THAT url once logged in. I haven't solved the problem yet, but have tracked it down to that interaction.


texts:
I have loaded the Champagne 2 (Mighty Big Robot - no support) Module to EE and when I try and use it I just get a bunch of PHP errors listed below. Looks like it might be some sort of conflict.

Any help would be appreciated.

Thanks

David

Other info:

PHP Version 5.2.6
Apache 2.0
MySQL 5.0.77
EE 2.5.3

Other add-ons (all up to date):

Freeform
Matrix
Mountee
Playa
Video player
Wygwam
Zenbu
devotee monitor

Error messages:

A PHP Error was encountered
Severity: Notice
Message: Constant SERVICES_JSON_SLICE already defined
Filename: class/services_json.php
Line Number: 61
A PHP Error was encountered
Severity: Notice
Message: Constant SERVICES_JSON_IN_STR already defined
Filename: class/services_json.php
Line Number: 66
A PHP Error was encountered
Severity: Notice
Message: Constant SERVICES_JSON_IN_ARR already defined
Filename: class/services_json.php
Line Number: 71
A PHP Error was encountered
Severity: Notice
Message: Constant SERVICES_JSON_IN_OBJ already defined
Filename: class/services_json.php
Line Number: 76
A PHP Error was encountered
Severity: Notice
Message: Constant SERVICES_JSON_IN_CMT already defined
Filename: class/services_json.php
Line Number: 81
A PHP Error was encountered
Severity: Notice
Message: Constant SERVICES_JSON_LOOSE_TYPE already defined
Filename: class/services_json.php
Line Number: 86

Fatal error: Cannot redeclare class Services_JSON in /expressionengine/third_party/champagne/lib/cm_v3_api/class/services_json.php on line 115


texts: Removing duplicate entries using an SQL query

texts:
I'm trying to create a search field (using Solspace Super Search) using a location from existing channel entries. Unfortunately this results in duplicate locations as some entries use the same location.

I explored removing duplicates using javascript but this doesn't play nicely with Super Search so I've been advised to try using an SQL query.

Here's the code I currently have but it doesn't appear to be working as it's outputting loads of duplicates now rather than just a few.

<select id="locationList" name="club_feed_town">
    <option value="">All Locations</option>
    {exp:channel:entries
        channel="friendship_clubs_data_feed"
        dynamic="no"
        status="Open|Exclude from search results"
        orderby="club_feed_town"
        sort="asc"
    }
        {exp:query sql="SELECT DISTINCT field_id_174 FROM exp_channel_data"}
            <option value="{club_feed_town}">{club_feed_town}</option>
        {/exp:query}
    {/exp:channel:entries}
</select>

Any ideas where I'm going wrong?

Thanks in advance,

Tom


texts: When selecting channel entries, only select entries in just the top-level category

texts: I have a channel with entries in categories and subcategories. I want to output a list of only the entries that are not in the subcategories. Is there a way to do an "only A" or "A & not anything else" type of selection?


texts: Moving EE, including MSM, to a new server but can't figure out paths

texts:
EE v2.5.5
MSM

On the current host the main site and other sites each have their own directory, 'www.oursite.com' points to one directory, 'subdomain1.oursite.com' points to it's own directory etc.

This setup doesn't seem possible on our new host, so we have put the main site into the public_html directory, and created subdomain directories in public_html into which the other sites have been put.

I have followed the instructions for setting up the paths in MSM; in the subdomains directories both the admin.php and index.php $system_path value points to the main sites system directory.

I thought I could reach the control panels via subdomain1.oursite.com/admin.php etc, but it's actually the main cp, requests for the subdomain frontends fail.

I don't think this is an open basedir issue is it? Any other ideas please?

Update, I've added my htaccess details here in reponse to the comment from Jeremy Gimbel:
I have the following in my htaccess for the subsite1 directory:

--------------- htaccess rediect ----------

RewriteEngine On
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-da
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{HTTP_HOST} ^www.subsite1.domain.com
RewriteRule ^(.*)$ subsite1.domain.com/$1 [R=301,L]
RewriteCond %{HTTPS} !=on
RewriteRule ^ http s://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

------------- end htaccess redirect ----------

I'm not sure if lines 6/7 are doing the right thing?


texts: Errors while performing searches - SUPER SEARCH

texts:
i am having a small problem with the super search add on. When i use a single word to perform a search everything is just fine; however when i try a sentence (children in need) for example i am getting lots of error messages in the header.

A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: libraries/super_search_lib.php
Line Number: 682

the above comes up about 100 times followed by

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/happysimon/webapps/adcs/system/codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 475

You can try yourself at http://adcs.happytesting.co.uk/

Any idea anyone what could cause this messages?

Thanks

Kind Regards


texts: How to get default language in an add-on?

texts: Is there a way to get the default language set in Admin -> General Configuration in an add-on(module, extension, plugin)?


texts: Exp:resso registered members not mapped to Zoo Visitors

texts:
I know this is question has already been asked, but I just can't get it to work properly.

I have a member field called: member_billing_first_name

In my Exp:resso checkout form I have a field called billing_first_name
which is mapped to member_billing_first_name in the backend

{exp:store:checkout
    form_class="form-horizontal"
    return="store_example/order/ORDER_HASH"
    error_handling="inline"
    error_delimiters='|'
    payment_method="PayPal_Express"
    register_member="yes"
}

    Name
    {field:billing_first_name}

    Email Address
    {field:order_email}{!-- this field is required --}

    Password
    {field:password}{!-- this field is required --}

{/exp:store:checkout}

other html/links removed from example

What am I doing wrong?

I've tried this method, but no joy:
Expresso Store 2: not mapping to Zoo Visitors fields on checkout

Thanks in advance


texts:
I'm using Low Search 2.1.2 on a Shop page.  The search works fine, but the padlock for the SSL cert is coming up as broken.  Inspecting it in Chrome gives the following error: The page at example.com was loaded over a secure connection, but contains a form which targets an insecure endpoint 'example.com'. This endpoint should be made available over a secure connection.

It seems to be Low Search form, which is creating the following HTML:

<form id="main_search" method="post" action="http://example.com/index.php">

I've used the following tag to generate the form:

{exp:low_search:form form_id="main_search" collection="products" search_mode="all" result_page="/shop/results" force_protocol="https"}

Is there a way to make Low Search generate a secure action URL?


texts: Freeform Pro - using VM Chosen as a field for searching a member?

texts:
I want to create a form on frontend that has a Chosen fieldtype that lets you search all the members on your site and filters it as you type.  Is this possible with freeform pro?

I'm using template (custom markup and just putting fields where i need them), so I'm not using Composer.

As an alternative solution I'm thinking of creating a hidden text field, and in my markup just have a typical VM Chosen fieldtype that searches members as you type... and then use jQuery to take that name and put it as the user for Freeform's text field.  Not sure if that would work but want to see if there's any other way first.  I have over 2,000 members that someone needs to choose from in this form so Chosen is best option I think.


texts: Store module is working only the control panel logged in members

texts:
I am new to the Store module. Store module is working only the Control Panel logged in members. If I'm not logged into the Control Panel, Side bar Cart is showing that: "Your cart is empty". When I click on Add to Cart it's not working either. It is working only when CP is logged in.

How can I solve this? any Configuration settings please.

I am using ExpressionEngine 2.6.1
and Store module is: 1.6.4


texts: Javascript Notification Plugin - Capture message and params

texts:
Please see JavaScript Notification Plugin for reference.

Question: Is it possible to "capture" the message and params of $.ee_notice() any time it's run in the CP?

I'd like to use destroy to hide the default notification but, still be able to use the message and params as I see fit via my own js/jQuery.

One place this appears to run is when saving publish layouts for what ever it's worth.

Thanks!


texts:
I'm trying to search inside 'Matrix' cols with Simple Search module - but it's just not happening.

I've ensured that the field is 'Searchable' and that all columns in the Matrix are 'Searchable' also. The entries themselves are not closed & not in the future - but they still won't show up in the search results.

This is the code I have for the Simple Search form:

{exp:search:simple_form result_page="search/results" no_result_page="search/no-results" results="10" channel="shop_product" where="all" search_in="everywhere"}

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

<input type="image" src="{site_url}assets/images/icon-search.png" width="32" height="32" name="search"/>

{/exp:search:simple_form}

Any ideas why this wouldn't work?


texts:
I was trying to install Safecracker Registration with the steps from the site.

I was able to do all the steps with no problems...except the last one.

  Configuring Safecracker

  Since you are using Safecracker as a registration form (at least in
  this case), you must allow it to accept data from guests. Go to
  Add-ons > Modules > Safecracker and find your Member channel, and
  assign a member as a guest. It is recommended you create a new member
  named Anonymous.

This is the page that the above paragraph refers to

I am just confused about

  Go to Add-ons > Modules > Safecracker and find your Member channel

since I don't see "Member Channel" anywhere.

I am doing it correctly?

P.S. I am using ExpressionEngine 2.5.5 and Safecracker Registration 1.2.0


texts: Channel Entries - possible to search relationship field?

texts:
I need a list of all entries filtered by a relationship field. I thought I might be able to use the search parameter: http://ellislab.com/expressionengine/user-guide/modules/channel/channel_entries.html#search-field-name, but it apparently only works on “Text Input”, “Textarea”, and “Drop-down Lists”.

I'm tempted to convert my relationship field to a Drop-down list and figure out another way to make the relationship between my channels. What are my options? Should I be using Category module somehow?


texts: EXP template inside another EXP template dosent work

texts:
I have install a plugin to get channels. And that was i have used in template

{exp:getchannels}
{channel_name}
{/exp:getchannels}

From this I got the result i.e. list of channels. thats ok. working good.
and then I need to execute a query like this

{exp:query sql="Select CONCAT('field_id_',field_id) 'field_id', field_name, BASE64_DECODE(field_settings) 'field_settings', field_label
     from exp_channel_fields f join exp_channels c on c.field_group = f.group_id where c.channel_name = 'programme' order by field_order"}

{field_name}

{/exp:query}

from this I got the result of particular channel that is "Programme"

Now my query is that, I would like to use that query EXP inside the getchannel EXP, like below mentioned

{exp:getchannels}
{channel_name}
{exp:query sql="Select CONCAT('field_id_',field_id) 'field_id', field_name, BASE64_DECODE(field_settings) 'field_settings', field_label
     from exp_channel_fields f join exp_channels c on c.field_group = f.group_id where c.channel_name = '{channel_name}' order by field_order"}

{field_name}

{/exp:query}
{/exp:getchannels}

Now problem is that, that query EXP returns blank when i execute that inside getchannel EXP.
Here I would like to get the fields of each channel what channels are getting by getchannel EXP, yes same like FOREACH LOOP.

If i echo this query and execute that inside PHPMYADMIN it returns result exactly what i want.

I think there is something wrong with that. Don't getting the idea whats wrong in that.
Can Anybody help me to solve that.?
I stuck at this point.

Thanks in Advance.


texts: Extension Development - Use existing settings column or create a new table?

texts:
I was pondering this today and trying to decide on the best route when it comes to storing data for an extension.

The data I am storing in an extension involves a many to many relationship with two entities.

When do you use the settings column in exp_extensions versus creating your own table where the data isn't serialized?

Let's say I have multiple instances, but with each single instance there will be the need to update data, delete, and relate to a member group id in the extension settings view.

One route I thought of is to unserialize the data, update the array, and then update the db? Yet with a table, you can utilize CI's active record functionality with data that is stored nicely. I'm confused on when to use one over the other. Help?


texts: Assets in Grid In Low Variables - multiple files

texts:
EE 2.10.1
Lv 2.6.1
Assets 2.6

I've got a Low Variables grid with a once cell Assets and in the assets you can upload multiple images.

Using this thread I was able to successfully display a single image, but there is no way to loop through the assets to pull up all files.

My current partially working code looks like this where title, image, and copy or cells in the grid.:

        {exp:low_variables:pair var="lv-deal-sidebar-widget"}

{lv-deal-sidebar-widget:title}

                {exp:ce_img:single src="{lv-deal-sidebar-widget:image:url}" width="300" height="240" crop="yes" attributes="class='img-responsive'"}

                    {lv-deal-sidebar-widget:copy}

        {/exp:low_variables:pair}

If I try to get more than one image using this thread as a guide and this simplified code:

        {exp:low_variables:pair var="lv-deal-sidebar-widget" var_prefix="assets"}

{lv-deal-sidebar-widget:image:url}

                {assets:image}
                    {assets:url}

                {/assets:image}

        {/exp:low_variables:pair}

the assets pair doesn't render it just outputs the code as is. Any ideas on how to fix this?


texts: Why do I get database error when I log into my updated ee site

texts:
I wondered if you could help.

I updated my local site to new ee 2.7 and that went swell. I pushed up my files to the server and I can get the /admin.php login page but when I press login i get this error:

A Database Error Occurred
Error Number: 1054

Unknown column 'used' in 'where clause'

UPDATE `exp_security_hashes` SET `used` = 1 WHERE `used` = 0 AND `hash` = '04ec7161468a13c61c984f39f646a76073bdab56' AND `session_id` = 0 AND `date` > 1381249552

Filename: core/EE_Security.php

Line Number: 169

Has anyone ever come across this from updating the ee cms before?

Cheers


texts: Should be simple... Playa field with categories

texts:
There are only two channels: 'videos' and 'products'

There are several categories all set by the managers.

Videos are entered as single entries and are given a category or multiple categories, depending on the usage.

Products are entered as a single entry as well. The only field is the playa field where you drag over the related videos for that product.

The page is simple as well. In the product template, I just need to render the {title} of the product for that page/entry. Simple enough.

Then there is a side nav listing the categories of the related/selected videos in the playa field. I only need to show them once, so if there are 30 videos and 3 categories total, it would show something similar to:

Category A (14)
Category B (12)
Category C (4)

An finally in the main page, show the videos per category like:

Category A

VIDEO 1  -  VIDEO 2  -  VIDEO 3...

Category B

VIDEO 1  -  VIDEO 2  -  VIDEO 3...

* EDIT *

A little more info...

I run into trouble reading the product entry which has the playa field. The categories are attached to the videos and not the products. I can list out the playa fields in the videos section of the main page, but the side nav is still getting me.

How would I get the list of categories for the videos which are related to the product via playa? (And a count on top of that.)

I could write a query to do this, but I would like to keep it all intact if possible.


texts: Does Multisite Manager work the same with sub-directories, or is it better to use sub-domains?

texts:
We have a site where we need to be able to control both front-end and back-end permissions on a per-site level.

Our site structure is as follows:

Main Site / Main Domain: All can access is ok
State Site / Sub Domain: Restricted access - front-end via cookies, back-end via permissions

They, for SEO reasons, would like their URLs to look like this:

Main Site / Main Domain: www.mydomain.com
State Site / Sub - Domain: www.mydomain.com/state

Does it matter if we use sub-directories, or would we need to use actual sub-domains for this? Or is there any other reason to use a sub-domain vs a sub-directory with MSM?


texts:
I am currently trying to debug some of the page load times on a website we host, and am running into something I find odd.
Global Variables parsing seems to be taking up half the page load time...

(0.977187/31.55MB) - - End Template Processing -
(0.977237/31.55MB) - Parse Global Variables
(1.541043/36.24MB) - Template Parsing Finished
(1.547675/36.55MB) - Calling Extension Class/Method: Eedt_memory_history_ext/ee_debug_toolbar_init_settings
(1.548767/36.62MB) - Calling Extension Class/Method: Eedt_perf_alerts_ext/ee_debug_toolbar_init_settings

Am I correct in thinking this?

How can I reduce this time?

I feel like it shouldn't be taking half a second to parse a few variables.

Details

Expression Engine version: 2.10.1
PHP Version: 5.3.3

As for plugins, we don't have that many, on this page specifically, I am running a homebrewed plugin that takes in a single parameter and then queries the database and builds a response.
This was made to bypass the standard channel entries queries in EE, because with a ton of entries, it started taking a very long time.

Other addons we have (but are not running in this page) SEOLite, trunchhtml, searchfields


texts: Im new and need help with expresso-store

texts:
I need to turn off express store, but NOT delete or remove it altogether. How is this done please?
using expression engine 2.6

thanks
Roo


texts:
I was wondering if there is a way or a plugin that I can apply a discount to a product that is related to another channel.

Basically the same way that 'Percentage Off Categories' type works.

On my site there are products that have a relationship with a channel called 'Maker'. This channel shows who made the product.

What I want, this that any product that is made by this 'Maker' to automatically discount 25%.

Is there any way of doing this using Discounts? Or will I have to take of the price manually for each product?

Many thanks,

Hugh


texts:
I've setup a page that shows news from four different sites that are all within the same MSM (Multi site manager) build, the page is working great but I want to be able to filter by site. I basically want the following:

News listing (domain.com/all-news)
- news from all sites

News listing filtered (domain.com/all-news/site1)
- news from one site

Or alternatively it would be great to have the filters working with ajax

Any ideas?

Cheers!


texts: Exclude recurring events from {exp:calendar:events} loop

texts:
Is there a way to exclude recurring events from the {exp:calendar:events} tag output? I need to display a maximum of 6 upcoming events but only if they are non-recurring events. Example :

{exp:calendar:events
  dynamic="no"
  event_limit="6"
  date_range_start="today"
}

...

{/exp:calendar:events}

Looking at the DB tables Calendar uses I see there is a column in the 'exp_calendar_events' table called 'recurs' which could act as a flag (n/y). Is there any easy way within Solspace Calendar to tap into this so I could exclude events with 'recurs' set to 'y' (without trying to recreate the call with the Query Module)?


texts: Exporting Freeform Entries returns a .csv file that does not exist

texts:
I'm using Freeform Pro (4.2.0) with EE 2.10.1, and Freeform exports have stopped working. The issue might or might not be related to updating EE: I'm not 100% sure (e.g., Freeform exports might have been "broken" a long time ago).

When I attempt to export form entries (964 entries), everything works fine: I get the options to specify how I want the form exported, and then I'm told the export is building and will download when ready.

The download, however, is a 1KB file with the following text:

File freeform_contact_form_export_20151125_0621_40.csv does not exist.

That file exists on the server in the cache folder: /system/expressionengine/cache/freeform/freeform_contact_form_export_20151125_0621_40.csv.

So all the plumbing seems to work; client just can't download the file via the Control Panel. They have to FTP, and, for obvious reasons, I'd rather not make them do that.

What's causing the broken download? You'll note that my cache path is above the webroot. Is that it?


texts: Mx Notify Control doesn't work when bulk-editing

texts:
My client has been using MX Notify Control for some time to notify authors when their entries have been approved (status switched from Pending to Open). She tells me that when administrators approve a single entry, it works. But if they select a few entries and set all their statuses to Open at once, the notifications are not sent.

Should it work when editing multiple entries at once, or only for one at a time?


texts: Assets UI fails (goes white) on local/dev, but works perfectly on prod

texts:
I've got an odd issue where essentially the same Assets on production works fine, but fails on local/dev.

Asset's native file manager does not display any images and just spins
Inline-file manager within an entry does pop-up the Assets window, but is completely blank

The local/dev DB is imported from prod, and we're using Erik's Multi-config setup.

Is there a setting I need to check?

Thanks!


texts: Wygwam better source view using CodeMirror

texts:
I've been trying to integrate CodeMirror code editor into Wygwam's source view without much success. I have tried using the "wygwam_config" hook as well as adding a config.js file to Wygwam's advanced settings configuration screen which is supposed to enable the code mirror plugin.

Basically I would like this plugin to override the native source view: http://ckeditor.com/addon/codemirror

Is this possible?


texts:
What am I doing wrong?
What I try to reach is getting all entries that DO contain a grid-row.
video is name of grid field, fragment is name of the column.

{exp:channel:entries channel="news" dynamic="no" search:video:fragment="not IS_EMTPY"}

    [here-content]

{/exp:channel:entries}

Thanks in advance.


texts: Assets upload with channel form to sub folder with userid

texts:
I´m trying to make users upload files to a folder in assets that contains only user files. But i want them to, when they open to select files and upload files, to have a folder with the memberid as folder name. And that this folder is the base for the user, so that they can make subfolder. To make subfolders is not a crucial function.

I know assets don't have this functionality and that i have to hack it to make it work until assets get this functionality of some kind.
I have tried to use channel images for this, but channel form didn't like that one bit. i have tried the member_id on files fix but that doesn't work with assets 2.4.

I use zoo visitor for users, so i can make and delete folders when a user is made and deleted.
The user groups that are going to use this dont have access to the controlpanel, only the channel forms, thats why i think a hack of some kind may work.


texts: Can I use CartThrob as an AdManager for my site?

texts:
I'm thinking if it is possible to use cartThrob as an Advertising manager for automating payments and recurring subriscriptions ad-banners?

Like if i have a link on a website 'Advertise w/ Us' and when click shows up a table for vacant advertising slot with prices per month and types of banners...Is that possible?


texts:
I have a client that was purchased by another company, and they've asked to have several pages redirect to analogous destinations on the new parent company's site, but they want to maintain access to their current Control Panel.

I'm using DetourPro to manage most of the redirects, but can't figure out how to get it to redirect the home page.

Thoughts?


texts: Hiding/Showing Google Maps for ExpressionEngine

texts:
Using Objective HTMLs "Google Maps for ExpressionEngine" we can get the 3 maps from this query to show:

{exp:channel:entries channel="events" orderby="events_start_date" sort="desc"}
    {if count == 1}
    {exp:gmap:init id="map{entry_id}" class="google-maps" style="width:100%;height:380px" scrollwheel="false"}
    {exp:gmap:marker id="map{entry_id}" latitude="{events_map_latitude_field}" longitude="{events_map_longitude_field}" zoom="16"}
    {if:else}
    {exp:gmap:init id="map{entry_id}" class="google-maps" style="width:100%;height:380px" scrollwheel="false" script_tag="false"}
    {exp:gmap:marker id="map{entry_id}" latitude="{events_map_latitude_field}" longitude="{events_map_longitude_field}" zoom="16"}
    {/if}
{/exp:channel:entries}

The maps are in a div that uses jquery show/hide and the maps only show the first tile and the map is not centred correctly. If the show/hide is disabled the maps render correctly.

Is there a way to overcome this issue with maps and jquery?


texts: DevDemon Channel Videos searches return "The vimeo request failed!"

texts:
Trying to add vimeo videos in a channel entry and all attempts return "The vimeo request failed!"

EE 2.11.9 and CV 3.2.0

What I have tried:
 - search with or without kewords
 - search with or without author
 - enter vimeo's Video URL

Don't see anything in the logs.


texts: Validating CC while using Membrr and Stripe

texts:
When a new user is created on my site, its suppose to bill the account a recurring fee of $8 but for some reason an account can be created without entering any Credit Card information at all.  Heres a picture of the plans from the Membrr Module.

The Transaction doesnt even show up in Stripe which I'm not sure if its suppose to in test mode, but just in case it is I thought I would mention that. The API Keys I used were the Test Secret Key, and Live Secret Key if that helps any

How can I stop the user from getting pass the registration page if they enter incorrect or no Credit Card Information?

Edit after nonprofit_tech's reply:

I'm trying to allow users that are logged into the "members" member group to have access to specific content on the website.  On the registration page, the user is asked to add in their Billing Information and Login Details.  They are given a 30 day free trial and the credit card would be charged when the trial period ends.

Here is my form

After registration the user is moved to the group "members" and on expiration they are moved to "expired members"

So with the way the registration process is here, would it be possible to validate the Billing Information at this point, or is the only option after the 30 days when the card is to be charged?

In OpenGateway, I have stripe set up as the only Gateway.

Stripe Details In Open Gateway:

Enable This gateway?: Enabled
Enabled Mode: Live Mode
Test API Key: sk_test_xxxxxxx
Live API Key: sk_live_xxxxxxx
Accept Visa: Yes
Accept MasterCard: Yes
Accept Discover: Yes
Accept American Express: Yes


texts: Get a range of entries based on a custom date field

texts:
I have a custom calendar I am building for a client. I wanted to filter the fields before I started displaying so I could avoid conditional statements.

Here is an example channel tag

{exp:channel:entries channel="calendar_events_and_entries" search:start_date="&gt;1422748800" search:start_date="&lt;1425081600" orderby="start_date" sort="asc" dynamic="no"}

I need to know if the search:start_date is over ridden by the second one.

Thank you for any help you can provide.


texts: Text field with formatting "None" being wrapped in  tags EE2.9.2

texts:
ExpressionEngine (pre 2.7.2) used to have an issue where it would start outputting p tags around normal text fields that have default formatting set to "None".

The very-temporary fix (which still works) is in the answer here: Why is Text Formatting: None wrapping <p> tags around my text?

This bug has returned on a website we have running EE 2.9.2 and keeps breaking functionality on the site.

Has anyone else noticed the return of this issue? Or does anyone have a fix?


texts: I just installed this module hoping to have the nice multi-select interface, but not so!  I'm seeing a javascript conflict in the console.  See screenshot attached.  Any thoughts to resolve?


texts: Sorting / showing entries by author in control panel

texts:
Is there a way when you are viewing entries via the Content > Edit section to pull back all entries by author?

Currently if I sort the entries by Author I guess it is using the ID to sort by and not the Author Name. We have over 8000 members so for the editor to try and find one is going to be a lengthy exercise.


texts: How to get channel fields in {exp:structure:siblings}

texts:
How can I access channel fields in {exp:structure:siblings}? I've tried the following code and title and url get output fine but {page_listing_icon} doesn't get parsed.

{exp:structure:siblings}
   {prev}
      {page_listing_icon} {title}
   {/prev}
   {next}
      {page_listing_icon} {title}
   {/next}
{/exp:structure:siblings}


texts: I want to show the date format in european style (dd-mm-yyyy). I changed and configured all settings to European. $config['default_site_timezone'] = Europe/Amsterdam doesn't solve the problem. Can anyone help me with this? I am running on EE 2.6.1.


texts: display the latest entry only that meets criteria

texts:
How do i display the latest entry only that meets the criteria?

Overview:

I have a channel called new. Within that channel there are two fields.  File_upload = where you can upload a file. Pull down menu field with an option called "Hero Image"

Desired:

I would like to go through the entire channel and display only the first item that meets the criteria of having a file uploaded and pull down menu selected as "Hero Image"

{exp:channel:entries channel="new"}
    {if file_upload != '' && newType == 'Hero Image'}

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


texts: Expresso Store v2.5.1 and EE v2.8.1, WorldPay doesn't redirect after successful order?

texts:
For some reason after a successful test order I am not being redirected back to the site after paying via WorldPay.

I have made sure that the settings tally up and are correct as per the docs here: https://www.exp-resso.com/docs/payment_gateways.html#worldpay

I have also checked the return URL is correct and even tried making it an absolute link, but again no luck.

I have also tried disabling secure forms via the config file using the below as v2.8.1 doesn't have the option to turn off secure forms now:
$config['disable_csrf_protection'] = 'y';

The orders are successful as I can see them in the CP afterwards, it also works when registering a new member, but again doesn't redirect.

Another small issue I have, which may or may not be related, is the Freemember logout link gives an error regarding not being authorized, see below:
"You are not authorized to perform this action"

Any ideas before I resort to trying an EE upgrade to v2.9.3 would be helpful please? Ideally I'd rather not have to update it at this time.

Thanks in advance!

EDIT: Latest update

After updating EE to v2.10.2 the issue is still present (no redirection after payment at WP TEST server), orders go through successfully and are added to the CP as status 'new'.

I am now receiving error emails from WP to see what's happening, I get the following:

Error reported: Callback to http://www.example.com/?ACT=39&H=9daf75637f356b4deff064a7aa93333e: NOT OK, recevied HTTP status: 302

And the response attachement shows the following:

HTTP/1.1 302 Moved Temporarily
Server: nginx
Date: Mon, 01 Feb 2016 11:03:37 GMT
Content-Type: text/html
Content-Length: 0
Connection: close
X-Powered-By: PHP/5.4.45
Set-Cookie: exp_last_visit=1138964616; expires=Tue, 31-Jan-2017 11:03:36 GMT; path=/; httponly
Set-Cookie: exp_last_activity=1454324616; expires=Tue, 31-Jan-2017 11:03:36 GMT; path=/; httponly
Set-Cookie: exp_csrf_token=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/; httponly
Set-Cookie: exp_csrf_token=1afab38559e3fdd5f89351e6bae32f562a49b981; expires=Mon, 01-Feb-2016 13:03:36 GMT; path=/; httponly
Location: http://www.example.com/shop/order/2defc3fdfcc028fc36a4c1b3e3607ec9
X-Powered-By: PleskLin
MS-Author-Via: DAV

I'm not sure what any of this means as I haven't experienced this type of issue/error before.

Any ideas please anyone?


texts:
I've gone through all the steps of installing and activating the Multiple Site Manager for EE. It was all pretty straight forward. Everything appeared to work correctly, but when I click the "Edit Sites," button at the top I'm sent to just a plain white screen. No errors or anything. From what I can tell the URL is correct, it points to the page "manage_sites".

Wasn't sure if anyone had a similar issue like this when using Multiple Site Manager.


texts: Is there any way to create 301 redirects while only having access to the clients CMS?

texts:
I'm a FED but I've never even heard of Expression Engine. I googled and poked around with no luck.

Unfortunately we've only been given access to their CMS (EE) and we're getting a request to create some 301 redirects. Any help is appreciated! Thank you!


texts:
My question is..
I have a calendar:event channel with a custom Playa field
In the related playa field i have Tagger.. How can i filter the event i show using the tags!?

I already have this -->
{exp:calendar:cal calendar_id="9" date_range_start="today @ now" date_range_end="tomorrow @ 2359" dynamic="off" pad_short_weeks="n"}{event_start_date format="%d-%Hh%i"}{calendar_serie var_prefix="serieX"}{serieX:title}{/calendar_serie}
 {/exp:calendar:cal}

Then i was able to filter the "serie" using this
 {exp:tagger:entries tag="horaire_accueil" limit="4"}
{tagger:entry_title}
    {/exp:tagger:entries}

How can i "merge' these 2!?

Regards
Ben


texts: change from file to assets does not show thumbnails

texts:
I imported a lot of pictures via datagrab to a file field.
this all worked as expected. the thumbs of the file is displayed etc.

then I changed the file field to an asset field. with the same upload directories.
now the thumbs are not showing!

If I upload another image, then suddently both thumbnails are displayed...

how could I display the thumbs directely?

could I downgrade to assets 1 somehow?

cheers
stefan


texts: I'm creating a single-page portfolio site using jquery scrollto and easing, etc.  For ease of editing, I'm seriously considering creating each "Section" on the main page as its own template and then embedding them on one main index page.  I'm concerned about the increase in load & processing by doing this.  Does this seem like a good or a bad idea, all in all?


texts:
My client runs a women's clothing store where they need to enter size "0" for some of the items. However, it seems like Store interprets this entry as an empty field and does not allow it as an option in the modifier field. As a workaround we've used size "00", but I've been told that "00" and "0" are actually 2 different sizes in women's clothing.

We're running Store 1.6.1.


texts: remove question mark with .htaccess rewrite module

texts:
i want to remove  ? from url with .htaccess rewrite module.

http://example.com/?/test/downloads

in this url i want to remove /? .
 how to remove this any idea

i am using Query string in expression engine i think this is the reason so that this question mark comes.


texts:
ExpressionEngine greenhorn here...

I'm trying to output some pagination and run into blank pages when I click any of the links (page 1, 2, 3, Next/Last etc...). The numbered list of pages also jumps up by multiples 6... which sets of alarm bells because my channel below has a limit of 6.

{exp:channel:entries channel="news" limit="6" dynamic="off" orderby="date" sort="desc" paginate="bottom"}
                 {paginate}

Page {current_page} of {total_pages} pages {pagination_links}

                    {/paginate}

{/exp:channel:entries}

Any help would be much appreciated! Thanks!


texts: If statement when layout variable contains whitespace

texts:
I'm using an if statement in a layout to check if a layout variable contains any content.

{if layout:sidebar}

    {layout:sidebar}

{/if}

This works well if {layout:sidebar} hasn't been set at all by the template that is using this layout, but sometimes {layout:sidebar} will have spaces or newline characters in it, but nothing else (because contents get set conditionally in the templates that use this layout).

Things I've tried:

{!-- Will display the sidebar if there are newlines/spaces in layout:sidebar --}
{if layout:sidebar}

    {layout:sidebar}

{/if}

{!-- Same result as above...which makes sense --}
{if layout:sidebar != ''}

    {layout:sidebar}

{/if}

{!-- Will never display the sidebar --}
{if {exp:streeng trim="both"}{layout:sidebar}{/exp:streeng} != ''}

    {layout:sidebar}

{/if}

{!-- Will never display the sidebar --}
{if {exp:streeng find='SPACE|NEWLINE' trim='' }{layout:sidebar}{/exp:streeng} != ''}

    {layout:sidebar}

{/if}

{!-- Breaks if {layout:sidebar} contains a double quote --}
{if "{exp:streeng find='SPACE|NEWLINE' trim='' }{layout:sidebar}{/exp:streeng}" != ''}

    {layout:sidebar}

{/if}

{!-- Breaks if {layout:sidebar} contains a single quote --}
{if '{exp:streeng find='SPACE|NEWLINE' trim='' }{layout:sidebar}{/exp:streeng}' != ''}

    {layout:sidebar}

{/if}

Other than combing through templates that use this layout and set layout:sidebar and removing any newlines or spaces, what is the best way to conditionally include or exclude the sidebar in this scenario?


texts: Error module Solspace Friends when using standard code from the manual

texts:
EE v2.7.2, Solspace Friends v. 1.6.4

EDIT Updated Friends module, still same PHP errors. And they increase.

I get this error with several messages, of which this is the first:

A PHP Error was encountered
Severity: Notice

Message: Undefined property: Friends_groups::$aob

Filename: libraries/Friends_groups.php

Line Number: 1365

when using this code

                {exp:friends:groups type="all_groups" friends_group_id="{segment_4}" limit="1" dynamic="off"}

Weblog Entries for this Group

                        {exp:friends:group_entries
                        channel="groups_publications"
                            group_name="{segment_4}"
                        }
....my channel

fields....

    {/exp:friends:group_entries}
{/exp:friends:groups}

The EE tag does return the right data, so my question, is there something there should be done about this, or can I just ignore it?
Thank you for looking at it.


texts:
I've just updated the paypal express settings to use the LILVE api/creditials/signature and now the cart button is not working.  I presume this is because the settings are incorrect. Is there anything else that could cause this to happen.  Everything was/is working fine with the sandbox details.

Is there anything I need to do on paypal?

Thanks
Dave


texts: Matrix search:cell="foo" - if no results then display default copy

texts:
I'm trying to have a matrix field display a fallback row if there are no results from the search parameter. The field contains some copy that changes depending on the language of the site being viewed.

Here is my current code where the low_variable is a matrix field:

{exp:low_variables:pair var="lv-location" search:language="={transcribe:language_abbreviation}"}
    {copy}

    {if '{total_rows}' < '1'}boo{/if}
{/exp:low_variables:pair}

The if total rows condition is not returning anything.

Ultimately what I need is to have the copy display depending on the language currently being view ({transcribe:language_abbreviation}) but if there is no translation available then default to English which would have {transcribe:language_abbreviation} == en

Is this possible?


texts: CartThrob Product - Simple FT not rendering

texts:
I recently upgraded CartThrob 2.61 to v 2.71 on my development server.

After updating modules, everything seems to work fine except for when I try to render a CartThrob Price - Simple fieldtype in my templates.

Using the following test example on a development page, the page loads continuously before timing out. So I have no use of the template debugger or the profiler to help me out. There are no PHP errors or Apache errors for me to trace either.

{exp:channel:entries channel="products" limit="10"}
    {exp:cartthrob:add_to_cart_form entry_id="{entry_id}"
    }
        Title: {title}

        Price: £{product_price}

    {/exp:cartthrob:add_to_cart_form}
{/exp:channel:entries}

Has anybody come across anything similar? Can anyone give me any tips on how to begin to debug this?


texts: List of distinct categories assigned to entry

texts:
I need a NON-duplicated list of distinct Category Names assigned to a range of entries.

-- Show non-duplicated list of (CAT GROUP 2) for Entries --

Summary:
- Products are assigned to TWO categories (one in Group 1 and one in Group 2).
- I have a page that displays a list of all Entries (Products) in Category A (Group 1).
- I want to display a non-duplicated list of Categories from Group 2 that are assigned to the range of selected Entries.

I was hoping to do this without using {exp:query} or a plugin.

Crappy Code Example:

{exp:channel:entries channel='products' dynamic='no' category='{segment_2_category_id}' category_group='1'}
    {categories category_group='2' style='linear' backspace='2'}
        {category_name} <!-- Category Name unduplicated -->
    {/categories}
{/exp:channel:entries}

NOTE: This question might be a duplicate of: Show categories associated with a list of channel entries


texts: New member registration set to require activation, but new registrants are working without it

texts: I'm using Freemember plugin to manage member forms. I just setup a registration form and tried both activation methods, "self activation via email" and "manual activation by administrator". But a registrant can log in immediately and they never appear under "pending members" in the CP. Any ideas why they are being activated immediately? Thanks!


texts: Thumbnail error when uploading after upgradeing to 2.5.5

texts:
Error: Thumbnail could not be created for the image. Please make sure the thumbnail directory is writable.

I've recently upgraded a client's site to v2.5.5 and they are now not able to upload images. I've verified all permissions are correct and I've also reviewed the EE Wizard details (no errors there either). They were successfully uploading images in the weeks prior to the upgrade.

Any idea what could be causing this?

EE 2.5.5
Windows 2008 Server
PHP 5.3.10


texts:
hey i'm running through a serious problem , i found a lot of answers about this topic nothing really helped, theres no direct obvious answer

  heres a PHP page that i want to do with EE matrix+jQuery instead of
  PHP+mySQL+jQuery: http://egyptianartsgroup.com/videos.php
  look at "Featured Videos" section

and this is my code for just looping the matrix , outputting the featured items for isotope blocking

   {exp:channel:entries channel="featured" url_title="main-featured" limit="1"}
   {featured_items search:active="Yes" sort="asc" limit="5"}
   {if type == "Video"}

         {thumb_image}

        {/thumb_image}

{overlayed_title}

   {if:else}

            {thumb_image}

            {/thumb_image}

{overlayed_title} -- {row_count} of / {total_rows}

   {/if}

   {/featured_items}

   {/exp:channel:entries}

any ideas to ajax paginate the matrix entries for isotope ?


texts:
I want to make a Bootstrap carousel with matrix when the user adds 2 or more images. the first part i get, but how can i make matrix deal with the complex code from bootstrap?

{visitor:profiel_fotos}
    {if total_rows=="1"}
        {exp:ce_img:pair src="{profiel_fotobestand}" width="600" height="350" crop="y" allow_scale_larger="yes"}

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

            {if row_count=="1"}
                    {exp:ce_img:pair src="{profiel_fotobestand}" width="600" height="350" crop="y" allow_scale_larger="yes"}

                    {/exp:ce_img:pair}
                {if:else}
                    {exp:ce_img:pair src="{profiel_fotobestand}" width="600" height="350" crop="y" allow_scale_larger="yes"}

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

          <
          >

    {/if}
{/visitor:profiel_fotos}


texts: we have an issue with our store and tax rates. We've created a taxable category for products that need sales tax, and this works well. However, when a non-taxable product is added to the cart, it is still charging tax on the shipping on these non-taxable items, which is incorrect. Is there a fix for this?


texts: EE Empty File Field Triggers - The uploaded file exceeds the maximum allowed size in your PHP configuration file

texts:
EE 2.8.1, non-required file fields when trying to publish a channel entry all trigger the below error if they are left empty.

  The uploaded file exceeds the maximum allowed size in your PHP configuration file.

Has anyone else come across this or had a fix? I haven't found anything but my Google-fu could be weak.


texts:
This doesn't give me an error, but it also doesn't display any results.  I'm trying to display only the entries that don't have a relationship.  My relationship field is field_id_57, and I only want to display entries from channel_id_30.  Am I doing something wrong?

{exp:query sql="SELECT * FROM exp_channel_data WHERE field_id_57 IS NULL && channel_id = '30'"}

content should display here

{/exp:query{


texts: Possible idea why the smileys window for forum module shows homepage?

texts:
having an issue with the {path:smileys} tag in the submission form.html in the Forum module not showing the smileys in the popup window, but showing the entire homepage within the popup.

i've checked javascript, no issues.
site is on a subdomain (dev.domain.com) and all other forum functions work.

here is the entire link:

{lang:smileys}

want to replace that above code to a lightbox, but path isn't working correctly.

not sure what could be causing this issue, so any pointers or tips will help.

thanks


texts: Why does Template Morsels not seem to work?

texts:
Template Morsels works (incredibly well) when I manually cache via its CP panel, but then after the scheduled 5 minutes passes the page takes as long to display as it would without Template Morsels. Am I misunderstanding how it works?

Edit--I set interval to 0 and now the cache sticks. Will have to see if editing or adding entries refreshes cache. Preferences is set up for this so fingers crossed.

Edit Again--Tried adding an entry and it works but, wow, every time you click the publish button it takes as long to publish as it would to load the front end page without Template Morsels. I get why this is, but that kind of makes it unworkable.


texts: How can I re-send member activation email

texts:
Is it possible to re-send activation emails? I am looking at a member profile in the back-end who is "pending". For some reason they haven't received the initial activation email and I would like to send it to them again.

Also, when they try to login, it tells them that they need to activate there account. I would like to have a link in there so they can re-send the activation email to themselves.

Thanks


texts:
I Use the Multilanguage Add-On from Bieber ltd. I now want also to ad caching to my site with CE Cache. I almost works but ce cache doesn't take the language segment in the url into account. The sites are delivered in one language no matter if domain.com/de or domain.com/en

I already fount a devot:ee thread but I don't know where to place and how to alter the string mentioned in this thread so the URI is correct. Anybody solved this problem?


texts:
I need to implement UTM tags to all of the links I have in my site to track their progress, campaigns, sources etc. The following tags are being used to build a UTM tagged link:

utm_campaign
utm_source
utm_medium
utm_content
utm_term

How would I be able to go about creating a module for EE to build these tags and append it to a landing page url to track? I would like it to be as dynamic as possible. Any guidelines would be very helpful!

Here is an awesome blog post about UTM tagging.


texts: Solspace Primary Category returning the primary category id twice

texts:
I recently upgraded to Primary Category 2.2.1
The following code is returning the primary category id twice

Has anyone had a similar problem with duplication?

{exp:primary_category category_group="2"}
    {primary_category_id}
{/exp:primary_category}

regards,
Ciaran


texts: Getting the chosen option of a Relationships fieldtype field

texts:
I recently upgraded from 2.5.5 to 2.7 and I am doing a number of fixes to make my code up compatible with the new version.

I have a channel field called foo which is of the Relationships fieldtype.

When I tried outputting {foo} it outputs 0

{exp:channel:form
   channel="a_channel"
}
...
{foo} <-- outputs 0
{/exp:channel:form}

My problem is, how do I get the value/id of the currently chosen foo value?

I haven't seen any documentation about this. This is a generic, common to do so I thought they have something for it.

UPDATE:

I tried this as per documentation

 {exp:channel:form
       channel="a_channel"
    }
    ...
    {selected_option:foo}
 {/exp:channel:form}

But it did not work also

It is also important to note that this is a custom field


texts: Store modifier value not being output inside Matrix

texts:
I'm not sure if this is a problem with Matrix or Store.

With the following code:

{modifiers}
{if modifier_name=="Linen"}
{modifier_options}
<input type="radio" name="{modifier_input_name}" id="{modifier_input_name}-{option_id}" value="{option_id}">

  {product_fabric_swatches search:product_type="=Linen" search:product_swatch_name="={option_name}"}

  {/product_fabric_swatches}

{/modifier_options}
{/if}
{modifiers}

I get this output:

 "}

You can see it outputs the label and associated image but it's not filtering on the {option_name} and there's a stray "} after the label which appears to be the closing of the Matrix tag.

If I replace {option_name} with one of the values entered into Matrix, then I get the output I expect, but obviously only for a single row.


texts:
I use the official EE rewrite rule to remove index.php. This has always worked for me just fine... until now. I am using a hosting company that I've not used before and it is acting funny.

The problem: all routes are getting passed to the main index template, as if there were no additional url segments.

Here is what I'm using:

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond $1 !\.(gif|jpe?g|png|pdf|doc|mp3|mov|mp4|tiff|ico|tif)$ [NC]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>

Anyone seen this issue before?

Update: I am using an A Small Orange shared plan.

The solution:
In config.rb, I needed to change this...

$config['uri_protocol'] = 'AUTO';

to...

$config['uri_protocol'] = 'REQUEST_URI';


texts:
I'm using P&T Fieldpack (2.1.1), EE 2.9.2 and Matrix 2.6. I have a column in my Matrix field that has 2 checkboxes: "text" and "picture".

If only the "text" checkbox is checked then this works to determine that:

{if my_matrix_column == "text"}popup{/if}

But if both are checked, that never returns true. So I try this:

{if '{my_matrix_column:selected option="text"}'}popup{/if}

and that resolves to true every time - even if nothing at all is checked.

So, any ideas on how I can tell if the "text" checkbox is selected no matter if the "picture" checkbox is selected or not?


texts: Exp-resso Store Shipping Country being ignored

texts:
I have a store that is doing international shipping. In this store I am giving the option to do international shipping but bill to the US. However, when the billing address is set to the US and the Shipping options are set to another country, I am still getting US billing prices.

What must you do to have the Shipping Region choices override the Billing Region choices?

Brad


texts: Combining the zoo visitor {member_firstname} {member_lastname} field automagically into one field {member_name}

texts:
Zoo Visitor has an elegant setting that makes {screen_name} very nice:

  Set screen_name as a combination of the following fields

The default setting is {member_firstname} {member_lastname}. Perfect.

However, in Exp-resso Store, the 'billing_name' field is one field, so i'd like to automatically combine both fields to another field {member_name} which i can map to the {billing_name} field.

How can I combine to custom fields into one other field without the user ever noticing?

I'm not too fond on using a hidden field and some javascript in my registration process.


texts: How to show the contents of one folder in Assets?

texts:
I'm totally confused about Assets. I'm just trying to show the contents of a folder in a template. Here's my folder structure (dashes indicate subfolders):

Docs
-staff
--board
-public
Images
Logos

How would I display the contents of, say, the "public" folder? For some reason I'm not getting it.

Thanks for any help.


texts: Cartthrob: How to allow checkout with zero shipping for collection but charged by weight for normal orders?

texts:
Using Cartthrob 4.6.2
I need to be able to allow a customer to select an option to make online payment as usual through the current gateway but select whether to be able to collect from store (which zeroes the shipping) or have the order shipped (which incurs the charges as set out in the 'by weight - threshold' shipping options)


texts: Solspace tag - display entries for multiple tags

texts:
How can I display entries for multiple tags?

For example http://www.my-domain.com/products/by-tag/color/blue+red+white should to display all entries which were tagged with blue and red and white "color tags"

I have try to split last segment by "+" and then loop through that array as separate {exp:tag:entries channel="products" tag="<?php echo $tag; ?>"} but final result is kind of messy, especially when multiple pages were returned.


texts:
Is the Offline Template a physical .html file?

What I would like to do is write a database failure check in the config file so that if for some reason the database fails it will turn on maintenance mode which will display the offline template.

If the offline template is served from the DB this obviously will not work.


texts: Problems removing index.php from development site

texts:
I'm trying to set up a development site with a specific development URL. The development site is a clone of a live site, but I'm not able to get the htaccess code to work to remove index.php.I've tried all the configuration options I can find*, but nothing is working. This is the first time I've never been able to get this to work. The development server has a non www url (ie http://dev-domain.com). Could this be a problem?

<IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /

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

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

*ie adding '?' to index.php, removing the first slash, changing system to the actual system name, trying the $config['uri_protocol'] options. All to no avail.


texts: JavaScript tag striped out from templates when editing from Admin

texts:
I am running ExpressionEngine 2.5.3. Happens something weird: when I save a template from the admin panel, javascript tags in it gets transformed from <script> to [removed].
I have checked file permission, configuration etc, but I can't figure out why this happens.


texts: Getting categories assigned to a related entry when using {parents}

texts:
I'm displaying some related entries by means of the {parents} tag pair. Whilst I can get all the field information as I need it doesn't seem possible to display the categories that are assigned to the related entry.

I've tried

{parents}
    {parents:categories backspace="2"}{parents:category_name}{/parents:categories}
{/parents}

and many other combinations - but I only seem able to get it to display the tags themselves.

Does anyone have an idea for this (which ideally doesn't involve embeds).


texts: Is there a way to not show entries from a sub-category?

texts:
I have a category (cat1) with 2 sub-cats (cat1a and cat1b).
19 entries belong to cat1, but 9 are in the sub-cats.

On the 1st level category page (cat1) is there a way to not show the 9 entries that are in the sub-cats?

Sub-categories aren't set in stone either, meaning client will add more sub-cats periodically.

Channel entry tag is being used by the way.

Thanks


texts:
When I try and access channels in Expressionengin I get 404 pages...

A URL like http://www.nameofsite/news/index.php tells me 'The requested URL /news/index.php was not found on this server."

However when I set the template for the channel to be the homepage it works.

What would be the best way to figure out what the issue might be?

Does Expresssionengine use URL rewriting?

Update 1:

When I enter the following it works:
nameofsite.com/index.php/news.index.php

Is there anyway to clean up the structure so it is:
nameofsite.com/news

Update 2:
I turned of the "template as home" option and nameofsite.com/index.php/news.index.php no longer worked. Still stumped.

The .htaccess code

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

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

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


texts:
How can one encode the search query to hard-code it in the results tag?

I would like to have a "related content" section on a page whereby the related content is gathered by low search.

The keywords are based on the entry title of the entry the related content is shown on.
At the moment i'm embedding the related content section and passing the {title} to the embed.
I would like to use the {title} as search query.

If 'Encode query' is set to 'yes', this does not work, because the query is not encoded (if set to no, it works).


texts: Expresso Store, automatic member registration fails

texts:
I am using the latest version of Expression Engine, Zoo Visitors and Expresso Store 2.

I would like to use the automatic member creation functionality that comes with store 2.

However I'm having some difficulties.

I have the following code in my template (unrelated stuff removed)

{exp:store:checkout
    form_class="form-horizontal"
    return="store_example/order/ORDER_HASH"
    error_handling="inline"
    error_delimiters='|'
    payment_method="PayPal_Express"
    register_member="yes"
}

  {field:register_member} Register Member Account?

    Password
    {field:password}

        Back
        <input type="submit" name="submit" value="Place Order" class="btn btn-success" />

{/exp:store:checkout}

After completing payment on Paypal I get the following errors, which area presented in the standard ee error screen.

  The form you submitted contained the following errors

You must submit a username
You must submit a username
You must submit an email address

  Return to Previous Page

It says in the documentation that the username will use the order_email field.  I have not explicitly requested that a username be entered.

Not sure where I'm going wrong here.  Just wondering if Zoo Visitor is impacting on this process.

I'm expecting the user to receive an order confirmation email, and also an email with their account details.

Any help greatly appreciated.

Thanks
Dave


texts: Solspace Freeform Pro: custom name for file upload?

texts:
We have a working form using Solspace Freeform Pro 4.x. Our page lets non-members of the EE site fill in a form and attach 3 items in 3 separate fields:
Company logo
Game under development logo
Screen shot of their game

However, once the form is submitted, when we login and review the pending submissions, only the first form upload field show an attachment. The other two upload fields have no attachments.

We know this is wrong as the email that arrives has all three attachments, and the directory where the logo's are stored, all three items are there.

Presuming this is a bug, but in case at is something we might have overlooked, how might I fix this issue?


texts: How to display Related Elements and Hubspot Call to Action items on a page

texts:
I'm working on an ExpressionEngine website that someone else built and trying to figure out how to make some edits.

When editing an entry, there are lists of Related Elements and Hubspot Call to Action items which I can add or remove from the page by clicking the left/right arrows.

In the template for the same entry, I see this: {display_related_elements}

However, when I go to the list of functions, I don't see anything called display_related_elements. So perhaps the template is trying to call a function that doesn't exist. In any event, the Related Elements do not display.

All I want to do is display Related Elements and Hubspot Call to Action items on my page. Is there a built-in function for this in ExpressionEngine or do I need to write my own database query?

Thank you!


texts: Is there a way in EE1 (nice to know for EE2 as well) to check and see if a page_uri exists and if not redirect them to a 4040 page? Since page_uri's can be just about anything and any depth it's impossible to use common conditionals to see if a segment is empty or uses a specific keyword. This question came up in regard to an EE1 site but if it's possible to do this in EE2  as well it would be helpful to know.


texts: Solspace Freeform sent through Postmaster returns multi-part MIME format error

texts:
Using Freeform (free version) for two forms on my site. Both forms send a message to admin as well as a confirmation back to the sender.

I have Postmaster setup to send all system emails, so all Freeform notifications are routed through Postmaster to be sent (through Mandrill, not EE).

I get strange results in my email sent emails like this:

  This is a multi-part message in MIME format. Your email application
  may not support this format. --B_ALT_53168daed37f9 Content-Type:
  text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit

Followed by a text only version of the email, and then...

  --B_ALT_53168daed37f9 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable = =20

My HTML version of the email is also slightly disfigured and loses its CSS styling.

The issue appears to be that Freeform is sending a multi-part message and headers which is then being embedded inside the Postmaster email template (which is HTML). Even if I make the Postmaster template blank and include all the HTML in the Freeform template, I still get the same problem.

The only way around this issue that I can see is to force Freeform to not send a multi-part message (and no headers) so they don't double-up or conflict with what Postmaster sends out. Is this possible?

If not, how else can I make Freeform compatible with Postmaster? If I can't resolve this there's no way I can use Postmaster to send me system emails.

Just wanted to note that this is specifically a Freeform & Postmaster issue. All other system emails send out fine with this setup so it must be due to the way Postmaster formats the email.


texts:
this may be a dumb question im slightly new to EE and have read the docs for Solspace rating plugin. Basically I have a ratings for trainers. But the avatar being displayed is of the user id that i am on the {name} is fine is displaying the right name for this rating just the avatar is the same for all..

here is my code

{exp:rating:entries
    entry_id="{entry_id}"
    limit="10"
}

{review}

{stars}{rating}{/stars}

    {if screen_name}

{name}

    {if avatar}

    {/if}

    {if rating_no_results}

Sorry, no ratings have been submitted for this entry yet.

    {/if}

{/exp:rating:entries}


texts: Add on development. Database class not executing correct queries

texts:
i'm developing an addon. While developing i'm encountering a strange problem that I don't know how to solve. It's like EE is executing the wrong queries or something.

For example, when I call this function:

$channel_info = ee()->api_channel_structure->get_channel_info(2);

The result is completely off:

echo '<pre>';
echo 'CHANNEL INFO:';
print_r($channel_info->result());
echo '</pre>';

Giving me this information:

CHANNEL INFO:Array
(
    [0] => stdClass Object
        (
            [child_id] => 11
            [order] => 3
        )

    [1] => stdClass Object
        (
            [child_id] => 4
            [order] => 2
        )

    [2] => stdClass Object
        (
            [child_id] => 2
            [order] => 1
        )

    [3] => stdClass Object
        (
            [child_id] => 10
            [order] => 4
        )

)

This is a result from a former executed query like this:

$result = ee()->db->query($sql);
$this->_result_array = $result->result_array();

Do I need to clear the db class or something? I'm not sure what's causing this. Hopefully someone can give me a push in the right direction here? :)

EDIT: Ok, I have solved the problem by adding this line:

ee()->db->_reset_select();

Before calling:

$channel_info = ee()->api_channel_structure->get_channel_info(2);

Still, I'm not sure why I have to call this manually...