texts: Exp:resso Store - Auto-Calculate Shipping Based on Address

texts:
Looking for a bit of help with Exp:resso Store's USPS shipping plugin. Either I'm not looking at the correct page in the documentation, or it just isn't fully documented. Being new to this, it makes no sense to me. Your help is appreciated. :)

I WAS using the native, built in shipping feature that comes with the Store module itself. I had 2 shipping rules in place, but as my husband pointed out, if they only order one, tiny thing, it's unfair to charge the flat rate postage. Indeed.

Thinking it would help, I purchased the USPS shipping plugin. I have it installed, and have my USPS API username in place. I have it set to Variable Container Size, International Mailtype set to ALL, even though I do not ship outside of the U.S, and have "Priority" checked under "Service - US Only". (As a sidenote, regardless of unchecking all of the international options and saving my preferences, I come back only to find them re-checked.)

I implemented this code on my FIRST checkout page:

Shipping

<select name="shipping_method">
<option value="">Select a shipping method...</option>
{shipping_methods}
<option value="{method_id}">{method_title} ({method_price})</option>
{/shipping_methods}
</select>

{if error:shipping_method}

{error:shipping_method}

{/if}

{order_shipping}

What I'm aiming for is shipping to be calculated based on the customer's address, which I realize isn't input until the 2nd checkout page; however, what's happening on the first page is one of 2 things: If I already have shipping rules in place in the native shipping feature, it automatically puts the shipping amount next to the dropdown, regardless of whether or not it's selected, or B) if I delete the native shipping rules I created, I'm left with a select field with no options.

I presumed that the USPS Shipping plugin would have automatically placed "Priority Mail" in the dropdown list, but it isn't.

What am I doing wrong? Is there a fully detailed example code somewhere that I can peek?

Sorry for the length; just trying to give all the details...

Thanks!


texts: MSM site - cannot get addon site to use its own template

texts:
I have installed MSM and set up three sites, “live”, “beta” and “internal”.
Edited the “live” site, created a default template group called “Live” and edited the index template in that group.
Now I’m editing the “beta” site.  I created a default template group there called “Beta” and edited the index template in that group.
The problem is: when I go to the URL for the “beta” site, I still get shown the index template for the “live” site!
How do I debug this problem?
I have tried changing uri_protocol to PATH_INFO in the live site’s config.php and it did not fix the problem.


texts: Channel Form with Matrix File Upload Field

texts:
EE v2.7.3
Matrix v2.5.8

I have a Channel:Form where I need to do a ton of custom styling, so I have manually built the form markup, using exactly what is rendered out by {field:my_matrix_field}.

I am not able to upload a new file or replace an existing file through this method.

I can:
 Upload files in the control panel
 Upload files by using {field:my_matrix_field} inside the form
 Upload files by using my own markup tied to a single, non-matrix file field.
 Post & updated data in text fields within the matrix field, using my own markup.

I cannot:
 Upload files using my own markup to a matrix field.

Markup created by {field:my_matrix_field}:

<input type="file" name="cb-video[row_id_22][col_id_7]" class="file-chooser">
<input type="hidden" name="cb-video[row_id_22][col_id_7][existing]" value="logo.jpg|3" class="existing_file">

Markup created by me:

<input type="file" name="cb-video[row_id_22][col_id_7]" class="file-chooser">
<input type="hidden" name="not_cb-video[row_id_22][col_id_7][existing]" value="logo.jpg|3" class="existing_file">

Notice I change the name attr of the hidden field to be prepended with "not_".  This mimicks what the Matrix JS does to file fields on edit.  The {field:my_matrix_field} version will successfully post the data and my markup will not.

Am I missing an additional hidden field or JS file that should be included?  I feel like it should work with the manually created markup, so long as it is identical.  It works with the other field types just fine.

Thanks!


texts:
I am new to Stash's saving/caching system and from what I've seen so far it looks really useful.

Here's my thinking: I have a special offers section on a site, in the immediate future it is likely to have hundreds of entries in it.

Would this be the correct course of action?

Set a stash list called "special-offers" and grab all of the data from a channel entry loop and save that with the scope of site
Put that into a snippet, {sn_set_special-offers} and call this whenever I need a special offer
Whenever I need to read from that list, for example an individual special offer page I would use match="#{segment_2}#" against="url_title"} to emultate dynamic="yes"

Is this the correct way of doing things? To grab all of the data from EE channels into a stash list, cache that away and then use get_list whenever data is needed?


texts: MX Notify sends emails to some members, but not all

texts:
I have no idea where to start troubleshooting this problem, but it seems that MX Notify is sending emails to some of my members, but not others.

I have several triggers set up to send emails to the authors of SAEF entries whenever an admin changes their statuses. (Members can submit recipes as entries, and admins can reject them by switching the status to Closed or Request-Resubmision or whatever).

Apparently some members are not getting emails. I've checked the database, and they all have "Accept email from administrators" checked in their profiles.

Any tips on how to solve this?


texts:
I can not get the fields of a channel to be fused in a form.

I created a Partial Template with the following code:

{sidebar}

<form action="{path='{s_url}/{s_url_search}'}" method="GET" id="">

    Contratto
    <select class="form-control" name="contratto">
        <option value="all">Tutti i contratti</option>
        <option value="Vendita">Vendita</option>
        <option value="Affitto">Affitto</option>
    </select>

    Comune
    <select class="form-control" name="comune">
        <option value="all">Tutti i comuni</option>
        {exp:channel:entries channel="comuni"}
        <option value="{title}">{title}</option>
        {/exp:channel:entries}
    </select>

    Tipologia
    <select class="form-control" name="tipologia">
        <option value="all">Tutte le tipologie</option>
        {exp:channel:entries channel="tipologie"}
        <option value="{title}">{title}</option>
        {/exp:channel:entries}
    </select>

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

This works if the url is of type mysite.it/Template_Group_name/Template.

It does not work instead if the url is of type mysite.it/Template_Group_name/Template/item

I give an example.
I have the Blog Channel where I have the articles inside.
example article: Hello Worl
The code written above works if I go to mysite.it/blog/all
Which shows all the articles
But it does not work for mysite.it/blog/view/hello_world showing the article

Link info: https://docs.expressionengine.com/latest/urls/url_structure.html#entries-and-other-things

The template all and the template view inside are very similar to each other only the channel display changes but for all the form is shown with the generation of the fields from the other channels but it does not work if the url also has the name of an article.

What is wrong? I also copy the view channel code.

Picture mysite.it/template => mysite.it/immobili the Partial Template works fine. Example

{exp:channel:entries channel="comuni"}
    <option value="{title}">{title}</option>
    {/exp:channel:entries}

this code works and generate the field's option.

Instead into picture mysite.it/template_group/template/my_url_title => mysite.it/immobili/view/villa-alessandro the Partial Template NOT works.


texts: Forum Registration where submit also sends info Campaign Monitor

texts:
I have a client who would like to have members register for the discussion forums and when the user submits the form if they selected the checkbox to recieve a newsletter the form would both register the member (save info to EE) and submit their name, email and phone number (not sure if CC takes phone numbers) to campaign monitor.

First question - is it possible to have one form that submits to two different action urls?
If so what would be the best way to set this up in the forum templates? I'm using a modified scaffold theme.

Second - assuming this can be done the next step involves getting the email, name and phone inputs to be used for both forms. The issue I see here is that the inputs have different names for the EE end and for Campaign Monitor.


texts: ExpressionEngine - Structure styling error

texts:
I randomly get this error as displayed n picture when using the structure module. Not sure what causes it or how to fix

EE version: v2.10.1 - Build Date: 20150501
Structure version: v3.3.17


texts: using exp:stash:get as filtered category returns no results despite exp:stash:get returning a result

texts:
{exp:channel:entries dynamic="no" category="{exp:stash:get name="current_category_id"}"}
    content
{/exp:channel:entries}

returns no results. However,

{exp:channel:entries dynamic="no" category="1"}
    content
{/exp:channel:entries}

returns the expected results, and

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

returns 1.

It seems to me that the first example should work. What am I missing?

Edit: here is how the stash is set. Apologies for its being somewhat contorted. segment_2_category_id is powered by seg2cat.

{exp:stash:set name="current_category_id"}
{if {segment_2_category_id} == "91"}91
{if:elseif {segment_2_category_id}=="90"}90
{if:elseif {segment_2_category_id}=="4"}4
{if:elseif {segment_2_category_id}=="3"}3
{if:elseif {segment_2_category_id}=="2"}2
{if:else}1{/if}{/exp:stash:set}


texts: Recovering from a site hack, preventing another one

texts:
I am trying to help someone recover from a hack and prevent a further incident.  They are running version 1.7.3.  The result of the hack was modified index.php files in the root and system folders with javascript added to the files.

The hosting company assures us that it is not possible for other users to exploit php and web server privileges to modify the site files, so, taking that with a grain of salt -I'm looking at other possible vulnerabilities.  So far all I can think of is:

A vulnerability in a plug in
A vulnerability in the php used in some templates

So far I'm not finding any issues in trying to investigate in the plugins, but not a whole lot of information either.

What specific steps can I take to locate the vulnerabilities and prevent another attack?


texts: Assets - "The file cannot be found" error

texts:
We have a few entries that work well on the live site, but when editing on staging server we get the following error:

An Error Was Encountered
The file cannot be found

This might be the same issue as this question:
Editing entry in backend: "The file cannot be found"
but I can't comment so I decided to open a new one.

We did a text search through the entire EE files and the only one with that exact text string ("the file cannot be found") was Assets. We tried updating the addon, updating databases, double checking all files to make sure nothing was missing.

We could copy the contents from the db as the other question suggests but we'd rather have this fixed so it doesn't happen again. Any ideas? Thanks in advance.

Santiago


texts: Module actions returning "File not found." for staging site, not local site

texts:
I am currently developing a website in EE (2.10.3), and everything is working great except one difference between my local version (running on XAMPP) and my staging version on a linux server.

I have written a module that my site makes a call to through ACT id, but this isn't working on the staging site, unless I am currently logged in to the control panel! If I'm not logged in, the request returns a 404 error, with the text "File not found.". If I am logged in, visiting the ACT url will return the correct information.

Just to sanity test that it isn't my module causing the issue, I tried loading a url with some other ACT id, with the same issue. For instance, in my installation, the ACT id for the "Channel" method 'combo_loader' is 4. The url for my local version http://local.example.com/?ACT=4 loads just fine, while the URL for the staging version http://staging.example.com/?ACT=4 returns 'File not found.'! If I log in to the control panel in my staging version, then that url works just fine.

Anyone have any info that can help me debug this?

EDIT:
I've narrowed this down a bit. The problem lies in my .htaccess file. Specifically, the section used for Static Cache for the Mustash add-on. If I disable that, things work...

<IfModule mod_rewrite.c>

RewriteEngine on
RewriteBase /

#################################################################################
# START MUSTASH STATIC CACHE RULES

# -------------------------------------------------------------------------------
# default_site
# -------------------------------------------------------------------------------

# Exclude image files
RewriteCond $1 !\.(gif|jpe?g|png|ico)$ [NC]

# We only want GET requests
RewriteCond %{REQUEST_METHOD} GET

# Exclude CSS/ACT EE URLs and 'preview'
RewriteCond %{QUERY_STRING} !^(css|ACT|URL|preview)

# Uncomment this if you want to disable static caching for logged-in users
#RewriteCond %{HTTP_COOKIE} !exp_sessionid [NC]

# Remove index.php from conditions
RewriteCond $1 ^(index.php/)*(.*)(/*)$

# Check if cached index.html exists
RewriteCond /chroot/home/example/staging.example.com/html/_cache/stash/static_cache/1/$2/index.html (.*\.(.*))$
RewriteCond %1 -f

# Rewrite to the cached page
RewriteRule ^(index.php/*)*(.*)(/*) /_cache/stash/static_cache/1/$2/index.%2 [L]

# END MUSTASH STATIC CACHE RULES
#################################################################################

# -------------------------------------------------------------------------------
# Officially supported method to remove index.php from ExpressionEngine URLs
# See: http://ellislab.com/expressionengine/user-guide/urls/remove_index.php.html
# -------------------------------------------------------------------------------

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

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

</IfModule>

It's not the last two sections, either. I removed them and the problem persists. The problem only goes away when I remove all that other stuff.


texts:
I have a couple questions regarding Expresso Store:

Is it possible to add custom dimensions to a product? Our client sells Sofas which have more than just Length/Width/Height (Overall Depth, Seat Width, Seat Height etc), so we need to be able to add new dimension fields.
Is it possible to group variations? The customers need to be able to choose the materials and colours for the sofas, so we have multiple ranges of materials and colours available.

Thank you


texts:
I followed the documentation to upgrade here from 2.5.5 to 2.7

However, doing the steps, I saw nothing that would help me update the database. No wizard, no tutorial or documentation.

What is the proper way to update the database?

UPDATE: Here is the image  after upgrading


texts: EE url for news (like /news/2014/11/title for news)

texts:
Cant find how to do url for all news like this

http://example.com/news/year/month/day/title_for _news

Now my current news have url
http://example.com/news/title_for _news/


texts: Since upgrading to CT2.5 I have started to get a Site ID value output with my order items tag in my invoice template. Is there a way to hide this?


texts:
Is it possible to set the template location (when using template files) to refer to a location outside of the system folder?

For example, imagine we have two sites with a shared root, site A and site B:

/public_html/site_a/
/public_html/site_b/

If the primary/default site is site A is it possible to have the templates for site b situated within the site B folder, rather than within the default system folder.

Cheers,

Cole


texts:
I am trying to set up the dynamic price feature in Expresso Store. I have set the dynamic price setting to 'yes' for my channel field but the product form in my template does not display unless I set a price for the product.

Any help is appreciated.


texts:
I have problem with the page_padding parameters in paginate.. there's my code

{exp:channel:entries channel="serie_emission"  url_title="{segment_2}" disable="categories|category_fields|member_data" limit="1" status="open|OffMEO"}
    {exp:playa:parents channel="episode_emission" limit="6" var_prefix="ep" paginate="bottom" disable="categories|category_fields|member_data"}

                TEXT
                {ep:entry_date format="%j %F %Y"}

        {ep:paginate}
            {pagination_links   page_padding="5"} {!--  page_padding NOT WORKING --}

                {first_page}
                        <<
                {/first_page}
                {previous_page}
                        <
                    {/previous_page}
                    {page}
                        {pagination_page_number}
                    {/page}
                    {next_page}
                        >
                    {/next_page}
                    {last_page}
                        >>
                    {/last_page}

            {/pagination_links}
        {/ep:paginate}
    {/exp:playa:parents}

{/exp:channel:entries}

Even if i have 10pages,, i only see 2 page on each 'side'..

Thanks


texts: Update User-Added Resources to SSL-Friendly URLs?

texts:
I have a field in my publish form where users can add embed code for a video, and they can also embed videos using Wygwam.

The entire site has SSL enabled, but the video embed codes use the insecure "http://" protocol, which breaks the site's SSL.

I don't want my client to have to remember to check the "use https" option on YouTube (and some of the videos are from obscure hosting services anyway).

Is there an add-on or technique I can use to automatically convert those embedded video URL protocols to "https"?


texts: CartThrob checkout with cart_total = 0,00

texts:
In certain cases customer check out with a {cart_total} <= 0,00. This happens eg. if a customers redeems a coupon code worth, lets say € 20,00 but in his cart there is only an item worth € 10,00 (shipping neclected for ease of understanding).

Whenever this happens I'd like the customer to overjump the page where he would have to decide on which payment method to choose.

This is my basic flow: Cart > Adress > Payment method > Confirmation with purchase Button.

Now, when a customer is on the Adress page and the cart_total <= 0,00 they should be redirected to the Confirmation page directly.

How would I go about this? I have tried using if conditionals in the {exp:cartthrob:save_customer_info_form} tag but it won't work (parsing issue I guess).

Something like this:

{exp:cartthrob:save_customer_info_form
     {if {cart_total} > 0,00}
          return="cart/payment"
     {if:else}
          return="cart/confirmation"
     {/if}
class="validate" secure_action="yes" secure_return="yes"}

Thanks for any ideas! Cheers


texts: Channel Entries displays all Entries on Single Entry page instead of one

texts:
I have a template that is supposed to display only one entry.

Instead it is pulling all entries from the particular channel and not paying any attention to the dynamic='no' parameter.

I have created many versions of this template, removing more and more code including changing the template group and name but nothing seems to work. It even ignores the "limit" parameter

Version: EE 2.9.2 using Switchee to parse segments 2 and 3

Channel Entries Tag:

{exp:channel:entries channel='products' dynamic='yes' disable='categories|category_fields|member_data|pagination|trackbacks'}

Sample Url:
http://example.com/products/wardrobes/cover
Segment 1: products - Template Group
Segment 2: wardrobes - Category not used by anything in channel entries
Segment 3: cover - URL Title

Switchee Template: products/index.html

{exp:switchee variable='{segment_2}' parse='inward'}
{case value="''"}
    {embed='products/_products-home'}
{/case}

{case default="Yes"}
    {switchee variable='{segment_3}' parse='inward'}
        {case value="''"}
            {embed='products/_products-category'}
        {/case}
        {case default="Yes"}
            {embed='products/_products-entry'}
        {/case}
    {/switchee}
{/case}
{/exp:switchee}


texts:
It looks like when you have template caching on, a page gets cached after it's visited. Then subsequent visits are served from cache.

When something triggers the cache to empty, such as an entry being edited, the "user visiting the page for it to cache" process starts again.

But my non-cached page speed is around 3 seconds, and I'd rather avoid anybody hitting this. Is there any way to load pages into cache en masse? If not, maybe a server script that gets all pages via cURL might work?


texts: structure of menu with stucture (3.3.13)

texts:
i'm working on a website with structure ( 3.3.13) and expression engine (2.7.2). I'm struggling with the menu. The html of the menu has to be like the image (with the same classes and data options):

Can i create this menu with structure?


texts:
Trying to force SSL on the admin area only (/admin.php) but running into some issues. I've installed the http support add-on (http://devot-ee.com/add-ons/https-support) and the SSL certificate is up and running with this the admin area all works fine.

However when logged in if you visit the main site it also tries to force to SSL, but for some reason pages 404 unless they have /index.php/ in the URL, making me assume this is a .htaccess issue. I'd rather not have the main site on SSL when logged in, but if this isn't possible with the https support add on then I'd be happy to just get the https site working without /index.php/

Our current .htaccess looks like this:

<IfModule mod_rewrite.c>
        RewriteEngine On

        # Redirect index.php Requests
        # ------------------------------
        RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
        RewriteCond %{THE_REQUEST} !/system/.*
        RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,L]

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

Not being an expert I can't see why the removal of /index.php isn't working for https? Any ideas?


texts: Set sender email address in frontend using Solspace Freeform (v4)

texts:
I'm trying to make a form, using the free version of Solspace Freeform (v4). And I would like to set the "from" field in the email.

{exp:freeform:form form_id="2" required="message|email|recipient_email" recipient_user_input="yes" recipient_user_limit="1" recipient_user_template="original" }

    <fieldset class="message">

        <legend>Your personal message</legend>
        <textarea name="message" id="message" placeholder="Hello..."></textarea>

    </fieldset>

    <fieldset class="emails">

        Your email address
        <input type="email" name="email" id="email" placeholder="email@example.com" />

        Receivers email address
        <input type="email" name="recipient_email_user" id="recipient_email_user" placeholder="email@example.com" />

    </fieldset>

{/exp:freeform:form}

Can this be done?


texts: Is there a way to change EE Control Panel menu/submenu to open on click instead of hover?

texts:
I'm wondering if there is a way to disable EE control panel menu/submenu appear by hover. Instead I would like to set it up to open on click.

(i know that base menu initiate on click - first time, and then all other appear on hover), i would like to disable hover totaly.

Why this, well, i'm building nice custom EE control panel theme, with left vertical menu, but i'm having problems with submenu appearing when i don't want them to...

Thanks everyone in advance


texts: Possibility to use orderby="random", limit="10" and paginate="bottom" together?

texts:
I tried somthing like this:

{exp:channel:entries channel="images" limit="10" orderby="random" paginate="bottom"}
{title}

{paginate}

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

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

but it doesn't work!

Every time i switch to previous page i got random images.
I there any add-ons that can do this?

Thanks,
Sam


texts:
Assets looks a bit wonky in a Safecracker form. See attached image. The image container gets calculated wrong.

Is there a different CSS file I have to reference when using Assets as a Safecracker field?

Template code:

<!doctype html>
<html>
    <head>
      <meta charset="utf-8">
      <title>test</title>
    </head>
    <body>
    {exp:safecracker channel="items" return="add/next"}
    {field:item_temporary_photos}
    {/exp:safecracker}
    </body>
</html>

EE 2.6.1 / Assets 2.1.3


texts:
am trying to set up a kind of project management type site and am using matrix and assets. The idea being that over the course of the project multiple galleries could be uploaded, so in  the custom field have got Matrix set up with a date column and an asset column, have entered in one sample gallery, but it's only outputting 1 image - the images are there in the entry and in assets, but am stuck how to get it to output all of the images, my code is:

{images}
    {date format="%d %F %Y"} - {images}
{/images}

Any ideas what I've done wrong

Cheers Jonny


texts: Freeform Pro disrupting Channel Entries count variable

texts:
I have a {exp:channel:entries} loop inside of an {exp:freeform:form} pair tag. When I call the {count} variable inside the channel entries loop, I'm expecting the count of the channel entries. Instead, it is only returning 1.

When I use this same exact channel entries loop outside the freeform tags, it correctly increments the count with each entry. I know that {freeform:count} exists and the I presume this is done in order to not interfere with the CE count.

Does anyone have any idea why this might be happening?


texts: How do I get the resized version of an image in a fieldtype plugin?

texts: I have a custom fieldtype on my site which allows you to upload an image and draw on it. However, while the site uses a resized version of the image, the fieldtype displays the full-sized version when the user draws from it. How do I get the resized url from the full sized version from within the plugin's code?


texts: low search pagination does not working with structure

texts:
Low Search pagination does not working with structure. Its only displays first page of pagination. I have also used paginate_base with low search results but issue as it is.

I think issue is low search query which display in url as encrypted.

FYI:

EE: 2.7.2

Low Search: 2.4.2

 {exp:low_search:results query="{freebie_5}" paginate="bottom" paginate_base="/{freebie_1}/{freebie_2}/{freebie_3}/{freebie_4}/{freebie_5}/paginate" loose_ends="both" limit="15" status="not closed" disable="member_data|category_fields"}

            {date_heading display="monthly"}
{week_date format=" %F, %Y "}
{/date_heading}

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

                    {title}

Release Ref #: {press_number}

Posted by: {author}

Viewed: {view_count_one} times

        {paginate}
          {pagination_links}

                Page({current_page}):
                  {first_page}
                          First
                  {/first_page}

                  {previous_page}
                          Prev
                  {/previous_page}

                  {page}
                          {pagination_page_number}
                  {/page}

                  {next_page}
                          Next
                  {/next_page}

                  {last_page}
                          Last
                  {/last_page}

          {/pagination_links}
        {/paginate}
        {if low_search_no_results}

              Sorry, your query did not return any results.
              Check your spelling or try a different search term.

        {/if}
    {/exp:low_search:results}

Please let me know if you have any solution.

Thanks.


texts: After Upgrading Matrix 2.4.3 → 2.5.3 P&T Dropdown Fields Fail in Templates

texts:
After upgrading from Matrix 2.4.3 to 2.5.3 on EE 2.5.5, P&T Dropdowns (1.0.3) used within Matrix fields are no longer parsing in templates. They simply return nothing.

Nothing looks out of place in the CP following the upgrade and I'm not receiving any errors. I haven't touched my template code.

I've tried removing a matrix row from one of my Channel Entries, saving it empty and then re-inputing the value with no luck.

Any thoughts?


texts: Add character limit on a channel entry tag field?

texts:
I want to add a character limit on the display portion of expression engines channel field, not on the back end entry.

for example, If i have a field "Description" I want to be able to display a "preview" of it, at 50 characters, and then if clicked, or on another page, I want to show that same field, but with no character limit to display the full text.


texts: Guest checkout email/username and existing users with CartThrob

texts:
I am allowing guest checkout through my store as well as checkout by registered members. I have noticed that if I use the create_user parameter in the checkout form the guest gets registered, and the next time he visits and uses the same email he is unable to place an order because the email address already exists.

So I assume I have to remove the create_user parameter, however when I do this the guest visitor is able to checkout using the email address of currently registered members. This means that in the order admin the guests orders are associated with the unknowing registered member.

I realise this is fairly unlikely to happen, but was wondering if there is a way to stop guests checking out with the email address/username of currently registered members?


texts:
A recent import using Solspace importer where I just wanted to update a standard file field (NOT an asset field) has had the unfortunate side effect that in my assets file manager and assets fields all subfolders have gone missing.
When I try to recreate a subfolder I get an alert telling me the folder already exists, but it's not visible in the asset file manager.
All the data that's in the entry form is still correct but when trying to upload a file all subfolders have gone missing as well as in the assets file manager.
Any suggestions on how to get these back?


texts:
This is in response to the thread posted here: https://getsatisfaction.com/pixelandtonic/topics/matrix_in_ie9_hides_row_options which is no longer active.

Matrix 2.5.3 and Internet Explorer 9, the numbered tab on the left should give row options and the ability to reorder by dragging a dropping. In Firefox it works fine, however in IE9 no indicator shows there are row options and dragging to reorder doesn't work. Has there been any progress of resolving the issue?

Thanks!
-Steve


texts: How to remove -EE warning about a deprecated function from the NCE LDAP plugin

texts:
The system has detected an add-on that is using outdated code that may stop working or cause issues with the system. What does this means and how can I solve the issue?

  Deprecated function hash() called in
  C:\xampp\htdocs\intranet3\system\expressionengine\third_party\nce_ldap\ext.nce_ldap.php
  on line 265. Deprecated since 2.0. Use Security_helper::do_hash
  instead.


texts: How can I return entries within a certain (non-date) range?

texts:
I'd like to make an improvement to how I'm displaying related products on a product detail page. Right now, the list of related products will...

be limited to the same type and category (Playa relationships)
be ordered by dollar value in descending order (numeric field)

Sometimes the price alone can make an item dissimilar; for example a $1.5M gum production machine isn't relevant on the detail page for a $0.75 pack of gum. What I'd like to do is limit my related entries to anything within ${x} of the current item.

Here's the (simplified) related products template, to which I pass the IDs of related category pages:

Related Products

{exp:playa:parents entry_id="{embed:category_ids}" orderby="product_price" sort="desc"}

{title}, ${product_price}

{/exp:playa:parents}

If I wanted to limit by date, I could use EE's start_on parameter. If I wanted to match a specific value, I know I could use the search paramater. In this case, I simply want to add WHERE product_price <= x, with x being a dollar amount I've already calculated in PHP to be reasonably close to the currently-viewed product. Is there a way to accomplish this without going straight for the query module?


texts: Why doesn't product get added to cart in Carthrob?

texts:
A site running EE 3.5.7 and Carthrob 3.2
The site was moved from another domain and now I am not able to add items to the cart.
The item is sent to the product_detail page using:

On the product page I have the following code:
...
{exp:cartthrob:add_to_cart_form
        class='form-horizontal'
        entry_id="{entry_id}"
        no_tax="{no_tax}"
        no_shipping = "{no_shipping}"
        return="{template_group}/view_cart"
    }

            {exp:cartthrob:item_options entry_id="{entry_id}"}
              {if dynamic}

                    {option_label}

                    {input}

                {if:else}
                    {if options_exist}

                        {option_label}

                        {select class="input-medium"}
                            <option {selected} value="{option_value}">
                                {option_name}{if option_price_numeric != 0} +{option_price}{/if}
                            </option>
                        {/select}

                    {/if}
                {/if}
            {/exp:cartthrob:item_options}

        {if "{inventory}" == "0" }

This item is out of stock

        {if:else}
            Quantity

                <input type="text" id="product_quantity" class="input-medium"  placeholder='1' name="quantity" size="8"  />

        {/if}

                <button type="submit" class="btn btn-primary">Add to Cart</button>

    {/exp:cartthrob:add_to_cart_form}
...

When I click Add to Cart it goes to view_cart but the I get the following message:

Shopping Cart You have no items in your cart. Continue shopping.

I have reinstalled the default templates but to no avail.
Any help in getting this resolved would be appreciated.


texts:
I have problem with related entries. I want to get related entries into a related entry. We are a travel agency and want to show selected travel packages in a "deals template".

Channels are:

deals, travel_packages, destinatios

Deals
    deal_01     relationship (to travel_packages)
    deal_01     relationship (to travel_packages)
    deal_01     relationship (to travel_packages)
    deal_01     relationship (to travel_packages)
    deal_01     relationship (to travel_packages)

travel_packages

date        text input
price       text input
taxes       text input
date        date
destination relationship (to destinations)
hotel       text input

destinations

pictures_name   text input
maps        text input
description textarea

In "deals" template we have 5 relationship fields than are related with travel_packages. In deals template we chose the deals that we want to show.

Then in the template we have the follow code:

{exp:channel:entries channel="deals"}
{related_entries id="deal_01"}
Date: {date} (travel_packages field)
Price: {price} (travel_packages field)

Here we want to show travel_packages relationship with destinations channel

we want to show
{title}
{pictures_name}
{maps}
Description: {description}
But those tags are from destinations channels.

{related_entries}
{/exp:channel:entries}

We tried to use related_entries again:

{related_entries id="destination"}
{title}
{pictures_name}
{maps}
Description: {description}
{/related_entries}

but it doesn't work.

Thanks in advance.


texts: Get average rating from a Super Search results set

texts:
I have a series of super search results listing pages displaying lists that are all rated with the Ratings module.

I want to get the average rating of all the entries in the list to put into schema markup (as opposed to the average rating for each entry which is what the exp:rating:stats tag would do).

I thought I could do it with the query module because I've used it for a similar case elsewhere on the site, except that there it's working out the average of all the ratings on the site, not just those from a particular page.

I can save the list of IDs to a variable with Stash:

  {exp:super_search:results}
        {exp:stash:append_list
              name='ids'
              context="@URI"
        }{stash:id}{entry_id},{/stash:id}{/exp:stash:append_list}
  {/exp:super_search:results}

which outputs as expected, i.e. 1,2,3 etc. but if I try to input that into a query like

  {exp:query
        sql="SELECT count(entry_id) as `count`, avg(rating) as `avg` FROM exp_ratings WHERE entry_id IN ({exp:stash:get_list
        name='ids'
        backspace='1'
        process='end'
        context='@URI'
  }{id}{/exp:stash:get_list})"
        parse='inward'
  }
 {/query}

I get a WSOD.

I've also tried the above with all the line breaks removed.

If I replace the get_list in the query with the actual values that the list outputs if used outside the query, e.g.

  {exp:query
        sql="SELECT count(entry_id) as `count`, avg(rating) as `avg` FROM exp_ratings WHERE entry_id IN (1,2,3)"
        parse='inward'
  }
 {/query}

I get the expected output. So the query itself is fine, it's just trying to use a dynamic Stash variable which seems to be causing the WSOD.

Does anyone have suggestions as to how I could accomplish the task?


texts:
I didn't think this would give me any trouble, but it is. I just want to run a query depending on the URL segments.

I have this now:

        {if segment_3 != ''}
            {exp:query sql="SELECT a.cat_id, a.parent_id, b.cat_name FROM exp_categories a, exp_categories b WHERE a.cat_url_title = '{segment_3}' AND b.cat_url_title = '{segment_2}'"}
        {if:else}
            {exp:query sql="SELECT cat_id, parent_id FROM exp_categories WHERE cat_url_title = '{segment_2}'"}
        {/if}
            ...
        {/exp:query}

But every time I wrap it in the IF statement, I get nothing...


texts:
I am relatively sure this can't be done yet, but worth checking. Is it possible to create an Expresso Store promo code that is only available to a specific member/user?

The idea here is to generate a discount promo code as a sort of credit/reward to a user for something he/she did, like register on the site.

The only thing I can think of at the moment is to create an additional table that will link a member to a discount promo entry. And then validate this myself during the checkout process.

Anyone with a better idea without hacking Expresso Store self?


texts: Access data from grid field in a related entry, linked by a grid field

texts:
Not sure if that title makes sense, but here is the problem I'm having.

I have a grid field with four rows (home-featured-lesson). This grid field has one column, which is a relationship(lesson-plan). You select the entry you want to relate, then I pull data from that.

It mostly works, apart from one bit - I have another grid field in the related entry (lesson-images) and I can't seem to pull anything from it. Here is my code:

{home-featured-lesson}

        {home-featured-lesson:lesson-plan:lesson-images}

{home-featured-lesson:lesson-plan:lesson-images:image}

        {/home-featured-lesson:lesson-plan:lesson-images}

{home-featured-lesson:lesson-plan:title}

{home-featured-lesson:lesson-plan:lesson-summary}

{/home-featured-lesson}

And here is my output:

Lesson Plan 1

Lorem ipsum

Lesson Plan 2

Lorem ipsum

Lesson Plan 3

Lorem ipsum

Lesson Plan 4

Lorem ipsum

As you can see, the tag pair for the grid field inside the related entry is not returning anything at all. I've tried a few variations on the tag pair but nothing seems to work. Does anyone know where I'm going wrong here?

Thanks in advance!


texts:
I'm going nuts with this. I'm new to EE and Channel Images and just cant see why this is not working.

Gallery page with a bunch of thumbs:

  {exp:channel:entries channel="some_images" limit="20"}
    {exp:channel_images:images entry_id="{entry_id}"}

    {/exp:channel_images:images}
  {/exp:channel:entries}

The thumbs link to the main image on another page:

{exp:channel:entries channel="some_images" limit="1"}

Back To Portfolio

      {exp:channel_images:images entry_id="{entry_id}" limit="1"}

{image:title}

{image:field:1}

{image:description}

      {/exp:channel_images:images}

{/exp:channel:entries}

No matter which thumb I click on it only ever displays the first gallery image. The 'myview' page displays ok but with the wrong image. Its like url_title_path is not working. Seems like I'm missing something very basic but too tired and not enough knowledge to see it! Frustratingly I had it working perfectly until I involved Channel Images and I broke it somehow.

Any help gratefully appreciated.


texts: Low search returning results from other channels when no options are selected

texts:
I have a (low) search form set up like so (stripped out example) to search a collection Ive set up called 'walks'. This collection is for the 'walks' channel.

{exp:low_search:form collection="walks" query="{segment_3}" result_page="walks/results"}

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

  and then a category dropdown and two sets of checkbox fields to
  search within checkbox fields in the entries.

{/exp:low_search:form}

It all works perfectly, apart from whenever I perform a search without entering a keyword, selecting a category from the dropdown, or checking any checkboxes. When doing this it returns entries from other channels.

Any idea why it would do this?


texts: Is there a config setting for disabling page cache in EE? I've found a setting for disabling tag caching $config['disable_tag_caching'] but not one for pages. I'm using the Focus Lab master config setup and would like to easily turn off page caching in development. I usually use CE Cache and are missing this option.


texts: Login problem with Safari on single machine

texts:
I'm having the strangest problem.

I have ExpressionEngine 2.5.2 site using Zoo Visitor to manage my members. I have multiple accounts setup so i can test the site from different member ship groups.

From my machine Mac 10.8.2 with Safari 6.0.2 everything works fine. I can login/logout on both frontend and control panel in both Safari, FF and Chrome. My client with the exact same software versions however can't.

His machine refuses to login while using safari, firefox shows none of these problems. On the frontend i'm able to login when a select the auto_login function. But without selecting that, no dice.

On the backend I have the same problem, until i switch the admin_session_type to cookie only. And then i'm only able to login when i select the auto_login function.

This however isn't a solution because i want to be running the backend using admin_session_type Session ID + Cookies.

This i've already tried

Removing securit:ee
Security and Session Preferences -> Require IP Address and User Agent for Login?
Security and Session Preferences -> Allow multiple log-ins from a single account?
Checking apache/php logs and error logs

Does any of you have a clue in what direction i should be looking?


texts: How to change default C2 - C3 base cateogry urls to their actual name

texts:
For the life of me, I don't understand why EE uses C's for category urls by default and not their actual names.  I get the concept but it's not that SEO friendly.

For instance, using normal channel tags to pull entries in, if I hack the URL to /sandbox/C2 it displays all entries within Category 1 (electric)

If i have a child category, the child category id is 10 so /sandbox/C10/ displays the correct child category. /electric/flat-wound-electric

But if out use the actual url_title sandbox/electric outputs all products in the parent category electric

But...When I hack the url to /electric/flat-wound-electric it only displays the parent.

Are there any add-ons anyone is aware of that handles this without using bulky tag pairs and conditionals to display categories properly?


texts:
Www.batterywarehouse.co.uk

All forms except the simple
Front page add to basket forms are failing.

The checkout form redirects to the same page and fails to direct to the external payment provider.

Please help.

Thanks,
Ian


texts: DM Force SSL based on Stash not_empty variable

texts:
Somehow I can't seem to get this right. I have a Stash variable that I'm setting if certain pages need to be redirected to their HTTPS version.

Tried it a number of ways, but very similar to this:

{if {exp:stash:not_empty name="secure" parse="inward" process="inline"} == 1 }
      {exp:dm_force_ssl:force parse="inward"}
{/if}

This code resides in an embed btw (template partials approach, where the "secure" variable is set in the parent template partial, then the other variables are pushed into the wrapper). It ends up redirecting every page, not just the ones that fall into the conditional.


texts:
I've been working with Stash and Mustash on every single one of my EE projects. What I usually do, is caching my detail-pages to a bundle. So sorta like, for example:

{exp:stash:cache bundle="products"}

If I then go and look at my cached variables inside this bundle, I get stuff like product/1:cache or product/2:cache. Which is good, as each possible detail-page has it's own stash variable.

On my most recent project though, I use the same workflow, and get this instead:

[index]:cache

This is not good. This is not unique, so everytime I visit a detail-page in this bundle, it's always exactly the same as the first one viewed and stuffed as a stash variable.

The big difference in this project is that I've updated it from 2.1.2 to 2.10. I've never used Stash and Mustash on EE2.10 before.

What's happening? And how can I fix this? :)

Thanks!


texts:
EE v1.x had nice tools to prune data. EE 2.x seems to have removed these features.

What I want to do is delete Pending user accounts (never activated their account). I can go through and manually delete them 50 at a time. Not fun. Even less fun when the site gets hit by a spambot.

Are there any add ons that do this? Proven methods that get right into the database?


texts: Date input field formatting problem in channel form

texts:
# Goal

Display multiple entries using {exp:channel:entries} and within each entry use a {exp:channel:form} to allow editing the entry’s content.

# Problem

Using this method, I’m able to display and edit entry select fields and checkboxes but a custom field using the native date type does not work.

For example, if an entry’s custom date field contains the value 2013-11-29 12:00 AM, the corresponding date input field in my channel form has the value: ‘1385704800’

Additionally, clicking the date input field does not display the date picker.

This problem only arises when a channel form is wrapped in a channel entries tag. Creating a new entry with the channel form by itself works fine.

I’m running 2.7.2.

Edit: Here's the simplified template code:

{exp:channel:entries channel="projects" disable="pagination|categories|member_data" status="Open"}
    {exp:channel:form channel="projects" return="graphics/manager" entry_id="{entry_id}" json="yes" id="publishForm{entry_id}" include_jquery="no" preserve_checkboxes="yes" disable="categories|member_data"}
        {cf-form-proj-due format='%M. %d'} <!-- This works -->
        <input type="text" name="cf-form-proj-due" id="cf-form-proj-due" value="{cf-form-proj-due}"> <!-- This does not work -->
    {/exp:channel:form}
{/exp:channel:entries}


texts: How to rename template folder in EE 2.9.2 ? (Free version)

texts:
Who know, how to rename template directory?
From /themes/site_themes/agile_records
To /themes/site_themes/custom_name


texts: How do you Suppress Core File Modification Notices?

texts:
Is it possible to disable the core file modification modification notices/alerts in the control panel?

When we commit updates into version control, the next page load in the CP on our staging server will get the "One or more core files have been altered," and whatever action a user was doing in the control panel (writing an entry, editing a setting, etc.) will be lost.


texts: EE 2.6.1 Relationships field options "Limit entries by status" does not work

texts:
I have entries with the statuses open and featured in my channel "articles".
I configured my Relationships field "related_articles" to show articles with "any" status.
I use this code in my template (all entries belong to the same channel "articles")

{exp:channel:entries channel="article"}
         {related_articles}
        <p>{related_articles:title}</p>
         {/related_articles}
{/exp:channel:entries}

I expected to see all titles of all related articles but I got only the entries with the status "open".

I tried to explicitly choose the statuses "open" and "featured" or even only "featured" in the field settings page.

I added a status="open|featured" to the channel entries tag.
The result was always the same: EE gave me the "open" entries. When I limited my entries to "featured" I got nothing.

I even added another custom status and tried to display those entries, but that didn´t work either.

I checked with PhPMyAdmin, but on the database-level all is fine. My entry has the
parent_id of 12 and the two articles I added as related have the child_IDs 6 and 2.
child_ID 6 has the status "open" and will be shown in the template, child_ID 2 has the status "featured" and will not be shown in the template.

Since the Relationships field defaults to "any" for all settings options I´m completly clueless, why EE shows this behaviour.

Does anybody know, where EE saves the Relationships-Field settings?
At least it´s not exp_fieldtypes in the database.


texts:
Want to display entry_id's in a numeric list so they can be sorted with jquery plugins.

Heres current code to achieve this, basically adding appropriate amount of zeros before entry_id so all are 5 digits:

 Entry ID {if entry_id < '10'}0000{/if}{if entry_id < '100'}000{/if}{if entry_id < '1000'}00{/if}{if entry_id < '10000'}0{/if}{entry_id}

There has to be a cleaner way!?


texts: Solspace Supersearch grid compatibility?

texts: I've been looking but was unable to find an immediate answer within the Superseach documentation, but does Supersearch work with the new EE grid field?


texts: Broken IMG urls using Channel Images, Publisher Lite, and Wygwam

texts:
EE 2.7.0, CI 5.4.8. Wygwam 3.1.2, and Publisher Lite 1.0.10.

I’m using CI to handle uploads and then the Wygwam/CI button to insert images directly into a body of text. Publisher Lite drafts and previews are turned on.

When saving or publishing entries with images inserted into a the Wygwam field using Wygwam/CI, the images are broken.

Here’s what I can deduce: Images inserted into the wygwam field are broken because they are generated using the temp_dir version of the image url. For example, if I insert an image, this is the img src prior to saving (and thus prior to CI saving to the filesystem):

http://example.com/?ACT=26&f=nyu12001_details_114__post.jpg&fid=1&d=1380212844&temp_dir=yes

Before hitting save, I can open that URL in a browser and see the image just fine. After hitting save, the URL is broken and in Publisher's draft preview I get a borked image. If I publish to the front-end, it is published with the temp_dir version as well, and thus also borked.

If I hit edit entry to return to the entry form, I see the image just fine in the CI field, but there is a borked image in Wygwam.

When I use the CI button in the Wygwam toolbar to insert the image again, this time I get the following URL:

http://example.com/?ACT=26&f=nyu12001_details_114__post.jpg&fid=1&d=418

And the image shows just fine on in the Publisher preview and on the front-end if published. This is expected, since this image has been saved to the filesystem.

Any thoughts? The temp_dir is system/expressionengine/cache/channel_images/path/to/image, which CI will auto-prune on submission, but I need to somehow update the img src to new URL after that happens.

I can confirm this only happens when Publisher is activated, as I believe Publisher co-opts the entry save/submit process.


texts:
I'm sure this is a basic question (EE is not my bag): I am trying to create a fallback for an image's alt text where if the image does not have a description then to use the title of the entry in its place.

But obviously if I use

{image}
  <img src="{url}" alt="{if description}{description}{if:else}{title}{/if}">
{/image}

Then it uses the image's title.

How do I make it display the entry title instead?

TIA.


texts:
ExpressionEngine 2.5.2 - Build Date: 20120606
Postmaster 1.2.0

I was wanting to try to create a hook for Postmaster but when I click "add hook" I get the following error.

Parse error: syntax error, unexpected T_ENDFOREACH in /var/www/html/teamnet/system/codeigniter/system/core/Loader.php(727) : eval()'d code on line 249


texts:
Using EE v2.9.0. and Latest MSM

I created a new category group and created a category called miscellaneous.

I already have a seperate category group with a category called miscellaneous.

This caused a web page to stop pulling through entries when the category in the url was 'miscellaneous'.

As soon as i changed the category_url_title to something else the entries on the web page started to pull through once again.

I searched online and someone said it was a bug? But also said it should be been fixed in v2.4.0 or there abouts.

I saw a post from someone with an even newer version to me claiming they had the same problem.

Does anyone have a fix or a solution other than chaning url_title?

Cheers,

Wes.


texts: Matrix and Playa | Loop Through Row As Many Times as Playa Relationships that Exist

texts:
I've run into a bit of a roadblock. I'm relating two channels via a Playa relationship. The two channels are 'positions' and 'locations'. The 'locations' channel contains a Matrix field with a Playa relationship.

Currently, I have template code that looks like this:

{exp:channel:entries channel="locations" dynamic="no" disable="member_data"}
  {locations-listing search:locations-position="General Manager" limit="1"}
    {exp:playa:children channel="positions" category="26" disable="member_data" var_prefix="loc"}

          {loc:title}

          {locations-city row_id="{row_id}"}

          {title}

  {/exp:playa:children}
{/locations-listing}
{/exp:channel:entries}

How do I get the output to loop through the first Matrix row 2 times (in the screenshot, there are 2 Playa relationships) before moving on to the next row (and repeat that process for each row).

Any assistance would be hugely appreciated!


texts:
I have this peice of code:

          {exp:channel:entries
          channel="rotator-slides"
          disable="categories|category_fields|member_data|pagination"
          orderby="random"
          dynamic="no"
          category="262"
          }

                  {exp:imgsizer:size src="{slide-image}" width="960" height="430"}

                  {/exp:imgsizer:size}

          {/exp:channel:entries}

The problem is that I do not want the first two "div" tags (and therefore the last two closing tags) to appear if the channel with that category has at most 1 entry. How do I get the total number of entries before using the channel tag?


texts: SafeCracker Calendar (Solspace) Entry - Limit Shown Calendars

texts:
We are utilizing Solspace Calendar, and are allowing Guests to post calendar events (that post as pending), but ONLY want them to be able to post to ONE of the available calendars (we have 4).

Currently the widget displays all 4 calendars...how can we limit to only show the single "Public Events" calendar within this SafeCracker form?


texts: Control Panel locking me out after uploads and template changes - says no data

texts:
Prolem:

I am using ExpressionEngine Core 2.6.1. After I click around the control panel for a bit, sometimes updating templates and sometimes uploading images, I get kicked out. When I get kicked out, instead of just logging me out and showing the login screen, my browser tells me that there is no data available. This is the message that Chrome sends:

  Unable to load the webpage because the server sent no data.
  Error code: ERR_EMPTY_RESPONSE

Solutions I've tried:

I have tried in Chrome, Firefox, and Safari, and the same thing is happening everytime. It usually happens when I repeat the same action about 3 or 4 times (i.e. I upload 4 images, or I update a template 4 times in a row). I try to refresh my browser, clear browsing data, etc. and it keeps showing no data for about 1-2 minutes. After 1-2 minutes, I refresh and the login screen will show up again and I can log in. Throughout the whole process, the front end of my site loads images and displays perfectly fine.

My Control Panel Session Type is set to 'Cookies and Session ID',
and my User Session Type is set to cookies only.

After doing some research and finding, not the exact but, a similar issue here Keep Getting Logged Out of Control Panel, I added the following sections of code to my config.pfp file:

$config['cookie_domain'] = "";
$config['cookie_path'] = "";
$config['cookie_prefix'] = "someprefix";
$config['require_ip_for_login'] = "n";
$config['require_ip_for_posting'] = "n";
$config['secure_forms'] = "n";

and

$config['cp_session_ttl'] = 14400;
$config['user_session_ttl'] = 3600;

In regards to the ERR_EMPTY_RESPONSE code, I found this help thread. http://ellislab.com/forums/viewthread/178569/
I tried putting php_value memory_limit 128M  into my htaccess file, but that causes my site to have an error. Maybe I'm not adding it correctly? Should I be putting this within any tags in my htaccess file?

It seems that nothing is fixing the issue. This is happening very frequently and disrupting my work flow.


texts: Order ID Start Number field having no effect

texts:
I've updated my Order ID Start Number to 12421 but it is having no effect in either the backend or the frontend.  Orders are still incrementing from the previous value.

I've tried removing all of the previous order, cleared the cache, and it still does not work as expected.

Any ideas?

I'm using ee v2.10.1.


texts: I'm working on a local install of EE 2.10.1 in Windows 7 with XAMPP. Everything is cooperating, but the control panel navigation is broken - mouseing over/clicking nav items shows no drop-down. It appears my JS and CSS are all loading. Default theme. Has anyone seen this before?


texts: Is it possible to set the return email address based on user input?

texts:
So if the user enters their e-mail as part of the form that's submitted, and the administrator gets a notification, could that notification's "reply to" field be from the e-mail that was submitted?

This would be convenient because if the person notified wanted to reply to the user, they'd just hit reply, instead of having to copy/paste the e-mail into the e-mail field.

Currently notification "from e-mail" field is always set to the e-mail address that's set in Admin / Email Config / Return email address for auto generated emails.


texts: How should I migrate an ExpressionEngine 1 site with Photo Gallery Module?

texts:
I have an existing site that I'm upgrading from ExpressionEngine 1.6.7 to ExpressionEngine 2.7.0 but the problem that I'm running into is that the Photo Gallery Module is installed. Of course there is no upgrade available for ExpressionEngine 2. Can someone suggest the best upgrade path for this situation?

Thanks


texts:
I've made a little script to be able to select entire rows in a table.

$(".clickableRow").on("click", function() {
    location.href="{path='leerlijnen/school/{entry_id}/#toevoegen'}";
});

However the href doesn't produce a valid URL: ../leerlijnen/school/{entry_id/#toevoegen'}   where I expected: ../leerlijnen/school/3964/#toevoegen.

Any glues?


texts:
I have a EE 3.5.6 project. "Save templates as files" is enabled. When a change is made to a template in the Template Manager and saved, I get the notice that the template has been saved, however the change does not appear to be saved to the file (nor on the site). Templates folder permission is set to 777.

I tried dumping the cache, to no avail. The only fix so far is to delete the template and recreate it.

Any ideas why the changes aren't saved to disk?


texts: Wanting to return individual variables for different "types" in the Google Map json object

texts:
Using the GMaps geocoder field and using the parse parameter on the template to return the data stored in it.

Is there a way to access just each address componoent individually? For instance, I want to return the zipcode only.

{types} does not appear to be a loop. I also tried {types:var} and no dice.

https://objectivehtml.com/google-maps/fieldtype#parse

This is what the JSON object looks like from Google Maps API:
https://developers.google.com/maps/documentation/geocoding/#JSON

{retailers_geolocation parse="markers"}

    {markers}

        {marker:address_components}

            {short_name}

        {/marker:address_components}

    {/markers}

{/retailers_geolocation}


texts: Antenna: a href='http://www.site.com' works but a href='{url}' doesn't

texts:
I am using ExpressionEngine 2.8.1 with Antenna 1.26

Here is my code:

{exp:channel:entries channel="uploaded_videos" orderby="title" sort="asc" status="open" dynamic="no"}

{title}

{ee_video_url}

            {exp:antenna url='{ee_video_url}' max_width="232" max_height="323" cache_minutes="0"}

            {if embed_code}
            It worked! {embed_code}
            {if:else}
            No video to display here.
            {/if}
            {video_title}
            {/exp:antenna}

            Watch Video&hellip;

          {/exp:channel:entries}

Within exp:antenna url='' hardcoding a youtube video url works perfectly fine. However as soon as I enter {ee_video_url} it doesn't work. But I have displayed {ee_video_url} above this within the p tags so i know it is not empty.

This is baffling me as logically it should work to remove a hardcoded url and replace it with a variable one, any help on this would be appreciated.


texts: Usually with WordPress sites you have to run a find and replace in the Database to find the test site URL and replace with the live URL. Is this necessary to do that for sites using Expression Engine?


texts: Expresso returning logged out and to the wrong page

texts:
When a user purchases a product they are redirected to the Home page of: return="/shop/order_complete/ORDER_HASH"

They are also returned to the site logged out.

Checkout code

{exp:store:checkout
    payment_method="PayPal_Express"
    return="/shop/order_complete/ORDER_HASH"
    next="/shop/checkout"
}
  {!-- usual stuff, removed for example --}
{/exp:store:checkout}

I can't see anything in my htaccess file that could be causing this issue.

Any ideas?


texts: Solspace User (edit) allow member to change their own group?

texts:
I'm using Solspace User and {exp:user:edit}.

I notice there is a form field <input type="text" name="group_id" value="{group_id}" />  but docs say its only visible to SA's.

Is there any way to make this visible to the logged in user so they have permission to change their own member group?

In {exp:user:register} new users have the option of picking their member group from your list of "allowed groups" yet they don't have the ability to edit that group later if they pick the wrong group.

This becomes more important when you also implement Solspace Facebook Connect, which allows passive registrations but all passive registrations must go to the same member group. Since passive registrations don't get the choice of choosing their member group on sign up, I need a way for them to edit the member group later.

Is this possible?


texts:
If a channel entry uses a file that has been uploaded that contains special characters (I've noticed this so far with brackets and commas), it now produces a PHP error saying the file does not exist. The error shows that the file is being searched for with a percent encoded name, so the original file can't be found.

For example, if an image was uploaded called 'image (large).jpg', the PHP error says 'File /var/www/.../image %28large%29.jpg does not exist'.

I think this error was introduced with EE v2.10.0, as these images were used previously with no error. Upgrading to v2.10.1 doesn't change anything.

Has anyone else encountered this error? The only way around it I've found is to download, rename, and reupload any files with special characters in, which is hardly practical.


texts: Recording clicks on banners using the native 'views' columns

texts:
A site I'm working on allows a client to place banner ads in various locations using a 'sponsors' channel in EE. The channel is fairly simple and has fields for the banner image itself, a target URL etc.

I would like to record both impressions and click throughs from the banners to the target URLs. In a perfect world the banners when displayed will link directly to the sponsors target URL so that they can gain some SEO value from the link.

Recording banner impressions is easy, I can just use the native 'views' parameter to do this:

{exp:channel:entries track_views="one" ...

However, how can I ensure that a 'click' on a banner also records a 'view' to the 2nd view column for that entry before the user is redirect to the target URL in the href?


texts:
Need help with creating a MySQL query to create a list of users that have not logged into the site within the past 6 months.

Needs to contain Username, Email address and last login date.

Will use the list to send email regarding upcoming site purge.

Can use the CP and see them, but need to export to a XLS or CSV file.

Thanks!


texts:
Likely a new n00b question:

I'm having trouble getting my RSS setup and am hoping it's just something simple you can help me out with.

My RSS feed is coming out like this:

For some reason it's picking up the title correctly, but not the right field. Here's the HTML that I'm using

<channel>

<title><![CDATA[matt-steele.com Blog]]></title>
<link>{site_url}</link>
<description>{channel_description}</description>
<dc:language>{channel_language}</dc:language>
<dc:creator>{email}</dc:creator>
<dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
<dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
<admin:generatorAgent rdf:resource="http://expressionengine.com/" />

{exp:channel:entries channel="{blog}" limit="10" dynamic_start="on" disable="member_data|pagination" status="open"}
<item>
  <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
  <link>{title_permalink='blog'}</link>
  <guid>{title_permalink='blog'}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
  <description><![CDATA[{blog_body}]]></description>
  <dc:subject>{exp:xml_encode}{categories backspace="1"}{category_name}, {/categories}{/exp:xml_encode}</dc:subject>
  <dc:date>{gmt_entry_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
</item>
{/exp:channel:entries}

</channel>

Any advice would be appreciated.

The feed is at http://matt-steele.com/feed


texts: Expresso - Store : How to create a "Notify me when product is available" when product is out of stock

texts:
Is there a plugin or method to create a "Notify me when product is available" when a product is out of stock? I will like to let the CMS send an email to users who opt in to the notification whenever the project stock is replenished.

Regards,
Rin


texts: Creating a custom word list using system/user/config/captcha.php seems to have no effect

texts:
I created a file in system/user/config/captcha.php to overrule the standard captchas. It has the following content.
<?php

return [
  'accordion',
  'guitar',
  'bagpipes',
  'banjo',
  'drums',
  'bugle',
  'cello',
  'clarinet',
  'cymbals',
  'drums',
  'flute',
  'horn',
  'harmonica',
  'harp',
  'keyboard',
  'maracas',
  'organ',
  'piano',
  'recorder',
  'saxophone',
  'sitar',
  'tambourine',
  'triangle',
  'trombone',
  'trumpet',
  'tuba',
  'ukulele',
  'violin',
  'xylophone',
  'bassoon',
  'castanets',
  'didgeridoo',
  'bass',
  'gong',
  'harpsichord',
  'lute',
  'mandolin',
  'oboe',
  'piccolo',
  'viola'
];

?>

When I load the page that contains my form I can see it still uses the standard dictionary. Anybody knows where it goes wrong here?
Thanks!


texts:
I have finally managed to get some kind of control panel area created, but cant figure out how to transfer my array over to the view page.

My aim is to create an array from the database, then display the value of that field in the view page.

mcp index function

    public function index()
    {

$this->EE->cp->set_variable('cp_page_title', $this->EE->lang->line('currency_module_name'));

    $this->EE->load->helper('form');
    $this->EE->load->library('table');
    $this->EE->load->library('form_validation');

    $query = $this->EE->db->query("SELECT * FROM exp_currency");

    $data = array (
        "usd" => $query->row('usd'),
        "eur" => $query->row('eur'),
        "gbp" => $query->row('gbp')
    );

    return $this->EE->load->view('add_currencies', $data, TRUE);

}

View file

<?=form_open()?>

    <?php

        $this->table->set_heading(
            lang('USD'),
            lang('EUR'),
            lang('GBP')
        );

        $this->table->add_row(
            form_input('usd', set_value('usd', $data['usd']), 'id="usd"'),
            form_input('eur', set_value('eur', $data['eur']), 'id="eur"'),
            form_input('gbp', set_value('gbp', $data['gbp']), 'id="gbp"')
        );

        echo $this->table->generate();

        $this->table->clear();

    ?>

    <input type="submit" class="submit" value="<?=lang('update_currencies')?>" />

<?=form_close()?>

If anyone can point me in the right direction, that would be great :)


texts:
Hope your all doing well!

All the transaction on the website are charged in USD instead of CAD do I need to change something? Or Push some information in the Checkout Form?

input type="hidden" name="currency_code" value=""

My second point I have downloaded CartThrob Multi Location Settings Manager Does it's work?

Do I need to make something different from here?


texts: Quantity based discount for single product in Expresso Store

texts:
I'm using latest build of Expresso Store, 2.3.1. I need to apply quantity based discounts to products, but the discount needs to apply to a single product. For example:

I have 10% off discount for all products in store when you order 10 or more of a single product, but the discount only applies to the particular product. So I order 11 of Product 1, 10 of Product 2 and 5 of Product 3. Products 1 and 2 will get the discount, product 3 will be full price.

As far as I can see this is not possible in Store. If so are there any ways I can handle this in the template? As our discount will likely be pretty simple, with the same discount being applied store wide.

Failing that, what are our options for extending Store to achieve this?

Update: Just to clarify, we are looking to apply this discount at a category or store wide level, rather than updating the pricing of an individual product, as there are thousands of products this would not be viable, in particular as we will likely just have one percentage discount that is the same for all products.


texts: How to best store simple transactional data

texts:
I'm adding a simple transactional element to a client site to allow their users to pay a bill online by completing a simple form with a payment amount and a bill reference. Payment will be handled by a payment gateway via a POST.

Simples.

However I'm unsure what the best practice might be in terms of storing this data on the EE side.

In the past I've used the Solspace Freeform module to capture the data, re-display it on a confirmation page and then use that to POST the data to the payment gateway.

One other option is to use a SAEF to submit the data as an entry and do much the same after that.

Which to do... the benefit of using entries is that they are more flexible - the disadvantage is they cannot trigger a notification email to the user and/or client but that can be handled with a simple plug-in if required.

I'm interested to know how others have handled this in the past. Specifically in a scenario like this where an e-commerce module would be complete overkill  and the Simple Commerce module isn't an option.


texts:
Has anyone set up a 'by - category' type shipping plugin in exp:resso store?

I want to allow the client to use the category list to manage their own categories for products, but at the same time put in a flat rate for shipping per category.

For example, if a category falls under the category of books, the shipping is $4. If it is something small like seeds, shipping is $1, etc etc. If they pick one of each, the larger is taken as the final shipping price.

I am looking at the: per_item_rate, per_weight_rate fields in the store tables and I am thinking of adding a: per_category_rate table, but don't want to modify core stuff, only extending what is there for easy upgrades.

So taking the default shipping plugin - would it be best to start from this and build upon it, making change to the database fields and logic within it?

Or, would it be better to pull from a category group, and use a custom shipping field for the category, and roll your own plugin for shipping this way?

Any points in the right direction will ensure I don't go too far down one route when another is the best practice or more flexible way of going about it.


texts: Wygwam character limit for Cyrillic text

texts: I'm finding that Cyrillic text entered into a Wygwam field is truncated. Is this because there is a limit for character rendered in unicode?


texts: Store2 fails to map member fields during account creation in checkout

texts:
I know that not being able to create accounts during checkout was a bug in the initial release of Store 2 which was fixed in a recent update, so I'm wondering if this is a bug as well, or if i shall continue troubleshooting? This was working for me in the previous version of Store (pre 2), but i could still of course be doing something wrong.

I have of course created and mapped the member fields in ee/store admin.

Thanks in advance


texts:
I've inherited an ee site, having never really worked with one before, and the robots.txt has multiple things that I would normally assume shouldn't be in there, such as:

/assets/
/images/
/themes/
and some specific files.

Given my understanding these items will now never be crawled by the search engines.

Also putting specific files in there just easily reveals them to the wider world, it's not really helping security is it? In fact the opposite.

Anyone with any advice would be appreciated, if there are folders that should be in there for ee then that's fine.


texts:
I've turned on the ExpressionEngine blacklist module (V3.0.1 on EE2.8.1) and despite black listing a series of IPs (including one of my own for testing) it has made no difference. I can post to Safecracker forms from the black listed IP without any trouble.

Note I am not letting EE write to my .htaccess file as it isn't supposed to be necessary.


texts: JqueryUI appears to be very old version, how to update?

texts:
Been building a new form with Expression Engine 2.9.2, however when trying to use the datepicker, it seems to be using a very old version of JQuery UI, so old that it only actually functions at all in Chrome.

Both Firefox and IE (latest and older versions I've tested) don't actually get a working date-picker at all, they literally get no field. I've tried using it as a date field, a text field and several classes the datepicker is mean to pick up (datepicker, hasDatepicker).

Looking at it, this seems be a very old version of JQuery UI from several years ago which explains why it doesn't function, however when I download the latest version, the file layout and names are all completely different so its not just a simple matter of replacing the files with the more up to date versions.

So, is there a relatively simple way to update the version of JQuery UI that EE use or is it easier to just disable the EE built-in datepicker and use an external one to do the same job?

I'm also curious as to why EE would be using such an old version of JQuery UI?


texts:
I am a somewhat newbie with Expression engine but I cant seem to find a solution to this problem. I have a simple relationship between two channels and for some reason the correct channel # is the only think that is displayed. (Code below) Link to view the public page. Any help would be appreciated.

http://staging.stitchmedia.ca/ee/index.php/bookcase/circus-of-mirrors

Seems to be happening in two spots

    {exp:channel:entries channel="adventure" url_title="{segment_2}" limit="1" require_entry="yes"}

.... SOME HTML CODE HERE .....

{related_authors}

{related_authors:author_name}

{related_authors:author_bio}

{/related_authors}

.... SOME MORE HTML CODE HERE .....

{related_chapters}

{related_chapters:chapter_position}:{related_chapters:chapter_title}

        +

{related_chapters:chapter_description}

{/related_chapters}


texts:
i just had fresh installation EE 2.4
and i worked with this copy on other hosting and its working charm
now when i go to Template Manager
trying to update Template in Template group
it redirect me to

http://mydomain.com/admin.php?S=aa84c50e6774e629815f32e012534c99c1b24f6c&D=cp&C=design&M=update_template&tgpref=1

and no changes save

and when i remove wrapping html  tag
it work and save

any idea ??


texts: This form has expired. Please refresh and try again

texts:
I see this is a time-honored problem...

I am using Freeform 4.1.3 on EE 2.9.2. This has been a stable solution for a long time. I have changed nothing with the system. I have been successfully collecting data as recently as last week. I have created a couple of new forms that are essentially clones of forms that still work. And yet I get the dreaded error.

Have tried two browsers, one with no related history. Source code shows hidden fields for both XID and crf_token values. I have cleared the cache. I cannot turn off caching, getting the "Cannot connect to Dummy, using File driver instead" error message.

I see other threads with solutions that work some of the time for some of the people, but I hate to go twisting knobs when the current configuration has been working fine.

Any help? Simple code:

{exp:freeform:form
    form_name="council_nom"
    required="first_name|last_name|email"
    notify_user="yes"
    user_notification_template="default"
    user_email_field="email"
    notify_admin="yes"
    admin_notification_template="default_template"
    admin_notify="webmaster@4sonline.org"
    return="http://www.4sonline.org/prizes/carson/got_it"
}

Nominated by

    First name:
    {freeform:field:first_name}

    Last name:
    {freeform:field:last_name}

    Email:
    {freeform:field:email}

    Institution:
    {freeform:field:institution}

Nominee

    First name
    {freeform:field:nominee_first}

    Last name:
    {freeform:field:nominee_last}

    Email:
    {freeform:field:nominee_email}

    Institution:
    {freeform:field:nominee_institution}

    Rationale (limit 2,000 words)
    {freeform:field:rationale}

Not so fast!

      {freeform:captcha}

      If you are not a robot, please type the text above into this box:
      <input type="text" name="captcha" />

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

{/exp:freeform:form}


texts: Search Results Tag Pair - Limiting Results

texts:
How do you limit the amount of results on the...

  {exp:search:search_results}

tag pair. I can see nothing in the EE documentation?


texts:
Has anyone had any luck with using EE 2.7.0 with the new Channel Forms to perform inline/on page editing for logged in users? I was attempting this using a similar approach to the ajax driven form entry sample from the docs here by opening the form in an embed template, but I am having a hard time sending the template field to the embed.

What is the best way of retrieving the field name and making it, say the ID of the element being edited? Would this need to be handled vie PHP in templates or can I extract that another way?


texts: Submit useragent information with Freeform or similiar

texts:
I am maintaining an ecommerce site running with EE and CT. We have a Freeform Form set up on the Contact page. A lot of incoming emails from that form center around technical problems, e.g.. people not able to checkout for whatever reason.

To nail the problems down and to be able to better reproduce the problems I'd would ideally have the user-agent info at hand directly. I am thinking about (probably secretly) submitting this whenever a user fills out the Freeform form so I don't have to ask the people and send emails back and forth (it's tedious and to be honest most people having problems are the not so tech-savvy so telling them where to find the information needed isn't easy and most of the time results are never returned or are incomplete, like "I'm using Firefox on Windows").

I am totally open on what to use here. This means I don't necessarily have to use Freeform although it's pretty nice. I'd probably even upgrade to Freeform Pro for this but couldn't find any valuable information on the website regarding this.

Thanks and Cheers!


texts:
I need to send an email notification to an specific address after channel form is submited.. The email address depend on the selection of a field in the form..  I know there's might be a hook for that but i don't know how to use it..

Thanks!


texts:
I need to add a random class from a selection of pre-defined classes to the body tag of a template.

I did it with JS but the change is visible so I would like to do it before the page is rendered.

Any ideas?

Many thanks
Mikee


texts: Is there a public repo for the EE User Guide?

texts: I came across some missing documentation, and I was hoping I could create pull request to add the missing information. If there isn't a repo, any idea how to file a bug about the issue? The link at the bottom of the page - "Report a problem with this page" - is 404-ing.


texts: Expresso Store add text area for customer to add details per product

texts:
How can I add a text area to product so a customer can add some content to submit with the order.  Ideally  only on certain products.  Kind of like if you want to have a product engraved the customer could add a message in the add to cart form.

It would be nice to have this product dynamic so it doesn't appear on all products.


texts:
I have created a module on my local installation which appears correctly in the Modules list. I can install and uninstall it without a problem.

However, when I upload it via FTP to the remote web server, it does not appear in the list of Modules. I uploaded it into the correct location (/system/expressionengine/third_party/) and the folder structure is correct.

Has anyone else come across this problem?


texts: templates not being served, could it be .htaccess?

texts:
I've tried the tips here:
404 on Every Template and TPL group
and here:
404 error on all templates but homepage after removing index.php

I can access the index by using the default url (on my localhost, port 8040)

http://localhost:8040

But I cannot access any other templates:

http://localhost:8040/cursos
http://localhost:8040/programas

Here is my .htaccess

RewriteEngine on
RewriteCond $1 ^(cursos) [NC]
RewriteRule ^(.*)$ /index.php/$1 [L]

RewriteEngine on
RewriteCond $1 !^(images|js|css|crmi_cms|themes|favicon\.ico|robots\.txt|index\.php) [NC]
RewriteRule ^(.*)$ /index.php/$1 [L]

And here is my template directory structure:

expressionengine
    templates
        default_site
            cursos.group
                index.html
            programas.group
                index.html
            site.group
                index.html

site.group/index.html is default site home page.

I've even tried moving the cursos.group index to the site.group and renaming it to cursos.html.
Still nothing...

Please help me.


texts: Sorting pictures with matching dates into galleries

texts:
I am attempting to build galleries of photos based on {photo_date}, a custom field containing the date on which each photo was taken. My list of photos looks something like this:

Photo#   {photo_date}
1        11/1/14
2        11/1/14
3        11/1/14
4        11/16/14
5        11/16/14
6        11/22/14

My goal is to have a loop that allows only one photo to appear from each date "group." This photo will serve as the photo group's cover image. So, after running the script, I will end up with  this:

Group 1: Photo#1 (11/1/14)
Group 2: Photo#4 (11/16/14)
Group 3: Photo#6 (11/22/14)

I am attempting to use a php variable inside of an EE loop to check to see if it matches:

           <?php $clip = "0"; ?>
           {exp:channel:entries channel="event_photos" dynamic="no" sort="asc" orderby="photo_date" search:photo_date="not IS_EMPTY"}

                {if "{photo_event}{photo_event:url_title}{/photo_event}" == "<?php echo $currentSegment; ?>"}
                    Before add: <?php echo $clip; ?>

                    {if "{photo_date format='%m/%d/%y'}" != "<?php echo $clip; ?>"}
                        {title}

                    {/if}
                    <?php $clip = "{photo_date format='%m/%d/%y'}"; ?>
                    After add: <?php echo $clip; ?>

                {/if}

            {/exp:channel:entries}

I think this should work, but it doesn't. It seems that the PHP variable ($clip) is getting assigned at the end of the {if} loop, but gets erased at the beginning once the loops starts over. This prevents me from checking to see if the {photo_date} in question has been used or not in the previous iteration. I'm wondering how to get the variable to retain the intended value?

I appreciate any thoughts or maybe a more elegant solution!


texts:
I've got EE running in a subfolder on a dev environment, such as:

http://website.com/folder_name/

But somehow, the folder keeps being removed from the URL for certain things. E.g. the "Home" icon on the home button in EE errors, because the URL looks like this:

/themes/cp_themes/default/images/home_icon.png

Not:

/folder_name/themes/cp_themes/default/images/home_icon.png

How can I fix this? There is no .htaccess file at the moment


texts: form validation for module mod file template tags

texts:
I am creating a dynamic form on the fly for use in EE templates. I create the tags using the mod.module_name.php file of my module.

I am trying to run validation on the form, every field is required so I have a separate array in the loop that assigns the fields to template tags, to be returned to the template for the user to use those template tags to construct the form in their template.

I have a separate function in the mod.module_name.php file that I have registered as an action in the actions table for it to process/post that form to that function. I tried to store the form validation in a session to check to make sure all those fields have a value in it, but it does not allow me to store that in session.

Below is my update_form function that will display opening and closing form tag and within it will be the form fields

public function update_form()
{
    $action = $this->EE->functions->fetch_site_index(0, 0).QUERY_MARKER.'ACT='.$this->EE->functions->fetch_action_id($this->classname, 'process_update_form');

    $form_details = array(
        'action' => $action,
        'secure' => TRUE,
        'id'        =>  $this->EE->TMPL->fetch_param('form_id', 'profile_update_form'),
        'class'     =>  $this->EE->TMPL->fetch_param('form_class', ''),
    );

    $out = $this->EE->functions->form_declaration($form_details);

    for($i = 0; $i < count($missing_fields); $i++)
    {
        // this array will be used for setting the form validation rules
        $missing_field_validation[] = array(
            'field' => 'm_field_id_ ' . $missing_fields[$i]->m_field_id,
            'label' =>  $missing_fields[$i]->m_field_label,
            'rules' =>  'required',
        );

        $vars = array(
            'field_id'              =>  $missing_fields[$i]->m_field_id,
            'field_name'            =>  $missing_fields[$i]->m_field_name,
            'field_label'           =>  $missing_fields[$i]->m_field_label,
            'field_type'            =>  $missing_fields[$i]->m_field_type,
            'field_list_items'      =>  format_list_items($missing_fields[$i]->m_field_list_items),
            'count'                 =>  $i+1,
            'total_fields'          =>  $total_missing_fields,
        );

        $out .= $this->EE->TMPL->parse_variables_row($this->EE->TMPL->tagdata, $vars);
    }

    return $out;
}

Below is the form that is triggered (it is registered in the actions table), I need to set the form_validation with the $missing_field_validation array without the need of using front-end validation.

public function process_update_form()
{
    // get form data and update it
    if ($this->EE->security->check_xid($this->EE->input->post('XID')) == FALSE)
    {
        // No data insertion if a hash isn't found or is too old
        $this->EE->functions->redirect($this->EE->functions->form_backtrack());
    }
}

Template tags, just in case it helps you understand what I am trying to accomplish:

{exp:profile_reminder:update_form}

{field_id}

{field_name}

{field_label}

{field_type}

Total: {total_fields}

    {if count==total_fields}
        <input type="submit">
    {/if}
{/exp:profile_reminder:update_form}


texts: If the seg_to_cat can't be analyzed, (the category doesn't exist), the resulting page shows all the entries in the channel. What can be done to show instead a "no results found" page?


texts:
I'm working on a project where new members will create a channel entry using Safecracker. I have something in place but have decided I'd like to break the form up into multiple pages to better walk them through things.

I've seen this post at Ellislab forums, http://ellislab.com/forums/viewthread/166104/, and it looks to be workable.

What I'd like to do is create pages with 4-5 fields each, and have the form saved when moving to the next page, where they'd just edit the next set of fields, through to the last page where the form is saved again.

In theory, this means that I can link back to a page if they need to redo something and they would just be re-editing those fields.

Am I off-base on this? I haven't set up Safecracker this way before.


texts:
I'm having a really odd issue with Assets. The problem is that we don't seem to be able to rename files - right clicking gives only the delete option. We're sure this worked before, but a) we can't prove it and b) if so, I don't know before 'what'.

Have discovered that if I upload a temporary image into Assets, the right click > rename option is available again (on the image I want to rename originally, as well as on the newly uploaded image).

If I then delete the temporary image, we're back to square one - no option to rename images, only delete.

Anyone have an idea what this might be?

Thanks,
Andy.


texts: Call to undefined method EE_Localize::human_time() after matrix update

texts:
After updating matrix to 2.5.9  (EE 2.5.5) I'm getting a blank screen and error message both on the front-end and in the control panel:

Fatal error: Call to undefined method EE_Localize::human_time() in /www/eh7377/public_html/cmssystem/expressionengine/third_party/matrix/celltypes/date.php on line 92

on an entry form that uses a date field inside a matrix (along with a few other fields).
Any suggestions?


texts:
I keep getting random "502 Bad Gateway - nginx" errors cropping up on a clients website when using Cart Throb.

For example I tried to install the example templates & chanmels inside Cart Throb, but it through the 502 error, when it got to this URL:

https://website.co.uk/admin.php?S=3299b90f3382da657f76b0fb2746336bdb26ebd9&D=cp&C=addons_modules&M=show_module_cp&module=cartthrob&method=install_templates

It also does it sometimes when a customer pays for something, using the SagePay gateway.

What could be causing this? I've tried turning off secure forms in the settings and its still doing it.


texts: Trigger set_flashdata when method called via ajax

texts:
Is there any way to use $this->EE->session->set_flashdata(); when calling a method via ajax without having to do a page reload to get the message to appear as it normally would under a non-ajax situation?

I tried and the message shows up after the next page load which of course isn't ideal.

I read a few posts over at SO that said it requires the page reload though, just wanted to double check to make sure it was in fact not possible to trigger the message via an ajax request without the load.

Thanks!


texts: Channel entries entry_id parameter issue

texts:
EE2.8

If I reorder the IDs in the following entries tag the output order remains the same, why?

{exp:channel:entries
  entry_id="2680|396|"
}

{title}

{entry_id}

{/exp:channel:entries}

I can only get the order to change if one of the IDs are changed.


texts: EE - move channel entries from one channel to another ( they share the same channel fields )

texts:
I accidently created two channels ( news & press-releases ). They share the same custom-fields - how do I merge them ( news into press-releases ) ?

Tried this ( 23 being the id of press-releases and news is 1 )

UPDATE exp_channel_data
SET exp_channel_data.channel_id=23
WHERE exp_channel_data.channel_id=1

But my News-entries are is still showing up under the edit news in the control panel.

Any ideas ? ( hope I don't have to do it manually :) )


texts:
In my navigation snippet I have some immutable external links and I just used a standard a tag with a hard-coded href attribute. No problems and it worked nicely.

So I figured there was "no trick" to external links, but ...

I am trying to display news which is actually created offsite at our financial reporting service website. I created a news channel with fields for an excerpt, a pubdate and the external url (which stores the URL as an absolute link [http://www...com].

When I tried to display the news in my template (code below), I am getting the text of the external URL field displaying as a hyperlink and the title of the article as static text (no link). Also, when I click on the exposed link, the URL that tries to load is "http://dev-edrweb.edrtrust.com/%3Ca%20href=".

It's pretty obvious I don't understand templating and external links. Any help is appreciated.

Here's the code from the template:

  {exp:channel:entries channel="news" limit="5" disable="pagination"}

              {title}

              {publish_date format="%j %M %y"}&nbsp;|&nbsp;

              {excerpt}

  {/exp:channel:entries}


texts:
If i create a new membergroup, based on the users membergroup. All the images from a custom field are not showing. If i switch the user to the default membergroup, it works again.
users that are not logged in, can see the images.

So basicly, if i move a user to a new membergroup (based on the default "member" group), all the images from custom fields are not showing.

Do i miss something, or is it a configuration?


texts: Conditionally output code every nth entry for Bootstrap grid

texts:
I'm building a grid with Twitter Bootstrap. How do I add the closing row
 tags after every 2 entries?

I need the HTML to look like this:

...

...

...

I think I need something like this:

  {exp:channel:entries channel="channel_name" dynamic="no"}

    ...

  {/exp:channel:entries}

I think I could use {switch} tag to accomplish this, but I also need a way to close the row if there are an odd number of entries as well. Is there an easy way to do this without using PHP and modulus somehow?


texts: Solspace FreeForm Pro radio group default value

texts:
We're using Pro so the client can use the GUI to easily create forms.

I've got a custom composer template to output these forms.

With radio groups I need the first radio to be pre-selected (who wouldn't want that?!), ie checked="checked". In fact it doesn't have to be the first radio button, any will do, this will simplify client-side validation.

In the Docs: http://www.solspace.com/docs/freeform/form/#freeform_field_field_name outlines default_value="VALUE", this is available to pre-select a default value.

But there's no further explanation in 'Default Fieldtypes'.

In my composer template I have this:

{freeform:field:{composer:field_name} default_value="Yes"}

When 'Yes' is available as a value for a radio button it does pre-select it. But I don't know what the values will be as the client will build the forms.

I need this (pseudo code):

{freeform:field:{composer:field_name} default_value="{composer:field_name[0]:data:value}"}

Anyone done this? Help from Solspace?


texts: Modifying .htaccess to include or remove

texts:
Has anyone had any luck combining the new .htaccess rules for removing index.php with a rule to add (or remove) the www string? Previously, we would use the following:

    RewriteEngine On

    RewriteCond %{HTTP_HOST} ^example\.com$
    RewriteRule (.*) http://www.example.com/$1 [L,R=301]

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

However the new suggested code:

    RewriteEngine On
    RewriteBase /

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

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

...is throwing all kinds of errors for me when combined with the www rule set:

    RewriteCond %{HTTP_HOST} ^example\.com$
    RewriteRule (.*) http://www.example.com/$1 [L,R=301]