texts:
I'm wanting to use EE2 for a SaaS product where account holders view their instance of the service through a subdomain. I'd like to take advantage of channels that combine similar structured content across all accounts, but have the subdomain help limit the content that is displayed to just that account.

So a structure like this:

my-ee-site.com/  ->  Marketing site
my-ee-site.com/settings -> 404
account1.my-ee-site.com/  -> Account 1's publicly available content
account1.my-ee-site.com/settings  ->  Redirect to account specific login page [logged out] or account owner's settings page [logged in]

I'm considering an accounts channel with a user-editable subdomain mapped to a more permanent account id, that way I can attach more than one member to it. I was also thinking I could also attach this account id to all content during the content creation process so I could easily filter by it (i'd be using safecracker, not through the control panel).

Have you done this before? Are there other routes I should consider?


texts: Playa 4.4.2 MSM - No entries exist for this related channel

texts: After upgrading to Playa 4.4.2 on ExpressionEngine 2.5.5 (Big client and quite reluctant to update to 2.6 until any issues are ironed out) we started getting "No entries exist for this related channel" messages on all fields that linked content from different sites through MSM.


texts:
I was successfully using the following block of code until I upgraded to EE 2.9.0.

{exp:query sql="SELECT COUNT( * ) AS itemCount FROM exp_freeform_form_entries_4 WHERE form_field_52 = 'yes'"}
        {if 15 > {itemCount}}
                  Mon. Dec. 9, Setup/iron - 9am-noon: {exp:query sql="SELECT 15 - COUNT( * ) AS itemNeeded FROM exp_freeform_form_entries_4 WHERE form_field_52 = 'yes'"}{itemNeeded}{/exp:query} needed
                  <input type="checkbox" name="setup_1" id="setup_1" value="Yes" />
        {if:else}
            Monday 9-noon is full
        {/if}
    {/exp:query}

Now however I get the following error message when I try and load the page:

  Error

  You have an invalid conditional in your template. Please review your
  conditionals for an unclosed string, invalid operators, a missing },
  or a missing {/if}.

  Parser State: Unexpected end of Template “apex/volunteer-form” on line
  2; expected ENDIF tag for opening on line 1.

I have carefully checked the page and don't see any missing {/if} or }. Any suggestions for what I am missing here?


texts: Are there any ongoing costs for cartthrob & what upgrades do you get?

texts:
This is more of a sales question about CartThrob, but as we're unable to get through to their offices at the moment I thought I'd ask here.

Basically we want to know if after a year or so we'll get some sort of un-expected renewal request from mightybigrobot. I think the answer is almost certainly no but need to double check.

Secondly, does anyone know what sort of patching, updates, new versions we're to expect with cartthrob?


texts: External links still display wrong after turned off the "Automatically turn URLs into links" feature

texts:
I have a custom URL member field - "Twitterhandle" that contains a link to the member's twitter page. I use the field on single entry template page, within the channel entries tag with the following html:

The goal is to have a clickable image. I have turned off "Automatically turn URLs and Email Addresses into Links" feature for the Channel, but the link still displays the full text of the url and then the image, not as a clickable image.

Any thoughts on why this is happening and how I can get the result I'm looking for?


texts:
Is it possible to remove "related videos" when the video has finished playing?

I know this is possible when using the embed directly, just wondered if i could replicate it with channel videos.

Thank You.


texts: Solspace FreeForm and special characters

texts:
I have an issue with Norwegian characters in FreeForm.

In both my received mail and receipt mail the characters å æ ø don't translate, they are just jumbled.

Ive tried everything but nothing helps.

Paul


texts: Redirecting Cartthrob to a different gateway when cart_total = $0?

texts:
I'm working on a digital downloads site that has free and paid downloads.

When only free items are in the cart at checkout, I want to use the ct_offline_payments gateway without cc data, but for some reason cartthrob is not loading the offline payments gateway called within the conditional, and is loading the default gateway (moneris_direct).

The transaction fails due to missing cc data.

Here is my code.

{if "{exp:cartthrob:cart_total}" > 0}

{exp:cartthrob:checkout_form id="gateway" secure_action="yes" gateway="moneris_direct" return="{template_group}/order_complete"}

{gateway_fields}

<fieldset class="promo" id="promo">

Enter Promo Code
<input type="text" value="" id="coupon_code" name="coupon_code" />

</fieldset>

<fieldset class="payment" id="payment">
<legend>Payment Info</legend>

* All Fields Required

* Credit Card Number
    <input type="text" name="credit_card_number" value="" id="credit_card_number" class="required" />

* Card Security Code
    <input type="text" name="CVV2" value="" id="CVV2" />

* Expiration Month
    <select name="expiration_month" id="expiration_month">
        <option value="11">November</option>
    </select>

* Expiration Year
    <select name="expiration_year" id="expiration_year">
        <option value="2014">2014</option>
    </select>

</fieldset>

<input type="hidden" value="{clear_coupon_codes}">
<input type="submit" value="Complete Purchase">

{/exp:cartthrob:checkout_form}

{if:else}

{exp:cartthrob:checkout_form id="gateway" gateway="ct_offline_payments" return="{template_group}/order_complete"}

{gateway_fields}

<input type="hidden" value="{clear_coupon_codes}">
<input type="submit" value="Download">

{/exp:cartthrob:checkout_form}

{/if}

I have recently upgraded cartthrob to 2.6.1 from 2.05x, so it may be a syntax issue.

I have made sure it's not a (strict) conditionals issue with EE 2.9.x.

Any thoughts, or example working code to share?

Thanks very much for reading.


texts: CP login impossible when cookie_secure set to 'y' despite SSL certifications in place

texts:
I've tried just about every fix one can find searching google and these forums for these issues. (FWIW, SSL is being used for the entire site, both on this relevant subdomain and otherwise, working and tests fine.)

$config['cookie_secure'] = 'y';
$config['disable_csrf_protection'] = 'n';

With the above settings, I get the form has expired error.

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

Changing the latter config to 'y', the login form page just refreshes with a new session ID in the URL but never logs in, whereas...

$config['cookie_secure'] = 'n';
$config['disable_csrf_protection'] = 'n';

.. enables me to log in just fine. As does:

$config['cp_session_type'] = 's';
$config['cookie_secure'] = 'y';
$config['disable_csrf_protection'] = 'y';

Turning off csrf protection results in the same form expiration error. Below are the relevant config settings I'm currently using from config.php (working login):

$config['cp_session_type'] = 'cs';
$config['cookie_domain'] = '.sub.mydomain.tld'; // is correct
$config['cookie_prefix'] = '';
$config['cookie_path'] = '';
$config['cookie_httponly'] = 'y';
$config['cookie_secure'] = 'n';
$config['disable_csrf_protection'] = 'n';

If it's relevant, ExpressionEngine is running on Apache behind an Nginx proxy, and everything else is functioning appropriately, so far as I can tell. I'm at a loss as to what to do at this point. Since the server is only accessible via https, I don't think there's much issue leaving cookie_secure set to 'n', but if anyone has any idea how to resolve this, I'd appreciate the help.

Thank you very much.


texts:
I'm using the following code:

link text

However, when the browser renders the page it's generating a bogus link...

http://domain.com/%7Bentry_id_path='shop/add_to_cart_template'%7D

Anyone know why it would be outputting that code?


texts:
Using exp:store:search I'm trying to get a list of results and order them in price order, and by this I mean the price an item sells for rather then the just the regular price as 9 out of 10 items are on a permanent sale price and to the customer it will just seem a bit confusing and sloppy.

The documentation says:

  If the orderby parameter is set to “price”, Store will order your products based on their regular price. Note that this won’t take into account any currently applicable sale price.

It doesn't say how you can do it or even whether it's at all feasible. I'd have though it would be a pretty common requirement for people. How can I sort by the sale price? Cheers!


texts: Direct access to exp_store_stock exp_store_stock_options tables via Expresso Store tags?

texts:
I was wondering if any tags in Expresso Store just give you direct access to the exp_store_stock and exp_store_stock_options tables.

What I want to do, when I display a store item, is filter the entries in the exp_store_stock table by associated entry_id. Rather than using drop-down options, which seem cumbersome as an interface, I want to have a button representing each SKU for the product that (when clicked) adds one of that variation to the cart.

So, obviously, if there's 16 sizes to a t-shirt available in two colours (2 colour variations, male and female variations for each, and four sizes for each of these), then I'd want to grab just the SKUs associated with these.

Then if there's a zero in the stock_level column, print out a disabled button, and if not, print out an enabled button that (when clicked) adds 1 of that SKU variation to the cart.

What I would like to do -- that's a little trickier -- is filter this list by other product modifiers by modifier_name, and right now, I don't see how I'd do that. So what I'm looking for is to not only filter the exp_store_stock entries by entry_id, but also by the values of modifier_name that apply to that SKU.

So for example, because t-shirt SKUs describe subsets of the stock — gender (male or female), size (S, M, L, XL) and colour (red or green) — characteristics which apply to each SKU, I'd like to product some kind of output in a loop.

colour 1 (red)

     gender 1 (female)

           stock of size 1 (small)
           stock of size 2 (medium)
           stock of size 3 (large)
           stock of size 4 (x-large)

     gender 2 (male)

           stock of size 1 (small)
           stock of size 2 (medium)
           stock of size 3 (large)
           stock of size 4 (x-large)

colour 2 (green)

     gender 1 (female)

           stock of size 1 (small)
           stock of size 2 (medium)
           stock of size 3 (large)
           stock of size 4 (x-large)

     gender 2 (male)

           stock of size 1 (small)
           stock of size 2 (medium)
           stock of size 3 (large)
           stock of size 4 (x-large)

The tricky thing is that while I might be able to accomplish this by filtering by product_opt_id, I want to filter an entry_id's SKU with a common modifier name.

Product_opt_id assumes that the modifiers for every product are different between every product -- the IDs refer back to the exp_store_product_modifiers table. But if it were possible to just filter the SKUs by modifier name then I could output and use conditionals on them the way I describe in my loop. My modifier names are common to all my products: size, gender, colour.

So to sum up, I guess I'm looking for a query that says "show me the SKUs associated with this entry ID that have the value of these modifier applied to them. But a way to do this with tags.

Doable, or do I need to write a query? Can anyone nudge me toward the way to go?

I know I may be asking for more than what Store can do -- thanks for everyone's cogitation about this in advance!


texts:
Background
We are trying to map a subdomain to a regular EE template group, without changing the URL.
Assume that the 'natural' URLs to the templates would look something like this:
my-domain.com/group
my-domain.com/group/url-title
The desired subdomain set up would therefore look something like this:
group.my-domain.com
group.my-domain.com/url-title
The rewrite rule we have set up on the subdomain looks something like this:
RewriteRule ^(.*)$ http://my-domain.com/group/$1 [P]
which, as I understand, will proxy the request to the 'natural' URL.
The Problem
The problem we are having is that by the time the proxied request hits the server, the /group portion of the URL has been duplicated. So the request ends up looking something like this:
my-domain.com/group/group/url-title
which obviously doesn't work.
Debugging

If I remove the [P] flag, the rewriting works correctly. (i.e. the request ends up looking something like my-domain.com/group/url-title).
I have tried using other segments after the domain in the rewrite rule, (just fake ones e.g. /abc) and the same thing happens with them.

Could there be anything ExpressionEngine is doing to handle / map a request which could be affecting a proxied request?


texts:
I'm really stuck on how to get this working. I don't know what I need to include to get the plugin to output data.

Example XML feed:

<quote_feed version="1">
    <latest_price>
        <time>13:24:28</time>
        <mid_price>49.00</mid_price>
        <offer_price>50.00</offer_price>
        <bid_price>48.00</bid_price>
    </latest_price>
</quote_feed>

What tags to I need to output the bid price for example? Thanks for anyone's help!

Tags I'm using:

{exp:ajw_feedparser
    url="feed name"
    cache_refresh="10"
    limit="8"
    debug="true"
    date="pubDate"
}

<p>{mid_price}</p>

{/exp:ajw_feedparser}

Error output:

  Cache file exists

  Cache file is fresh (51 seconds remaining)

  No tags available.

Thanks for your help.


texts: How can I filter entries by category and/or year on the frontend?

texts:
On a current site the I have news entries archived by:

Year (using Zoo Triggers)
Category

In the sidebar of the each news template (index & detail) it simply lists the years entries appeared in and below that is another list of the categories the entries are categorized in. E.G.:

Yearly Archives

2012
2011
2010

Category Archives

Category 1
Category 2
Category 3

Instead of static lists now the client is asking me to make each year and category a check box that can allow the user to select the years and categories of the entries they would like shown.

Examples include selecting:

Category 1 + 2011 | shows all entries from Category 1 AND from 2011
Category 2 + Category 3 | shows all entries from Category 2 OR Category 3
2012 + 2010 | show all entries from 2012 AND 2010

The only catches are:

Site uses Structure
Zoo Triggers is set up for yearly and category archives

My questions are:

Is it possible to do this natively?
Are there any add-ons available that I don't know about that can achieve this?

From my digging it looks like I should be looking at this as a custom "search" but I want to cover my bases first.


texts:
I got a request to redirect the current domain for a website to another one. So the basic scenario is:

Site is hosted on domain.com and should stay there, but all the links should be shown as site.domain2.com. The basic URL structure of the site should remain the same but the parent domain needs to be changed.

Basically another site is buying the current one and they want their subdomain to be the new default one.

I don't have ownership of domain2.com and it will reside on another server.

Is this possible to do with just .htaccess or do I have to change all of my template links to reflect this as well.


texts: Changing the distance metric in ObjectiveHTML's Google Maps

texts: I'm using the Google Map Add-On from ObjectiveHTML. When entering a route using the field type in an EE channel entry the distance (as displayed in "Show Details") is always displayed in Kilometers. Does anyone know how this can be changed to display in miles?


texts: authentication on EE website from another device

texts:
Can i login to EE website from another device, ie iOS device.
Basically i have a website with users, i need to login to it from a mobile phone application. Is it possible?
I know that EE server generates XID entry for protection
Is there any way around it?

We are developing an iOS application and trying to register member to the Member Group by providing fields(screen name, password, confirm password, email), we are planning to post these variables to php script and insert it into the ee database table(s). What are these tables ? Is there any place we can se examples of php script? what else do we need to consider?


texts: Redirecting requests for SVG thumbnails?

texts:
When working with SVGs in the control panel, thumbnails are broken because the system (understandably) can't generate thumbnails for SVGs.

In practice this is mostly fine because the SVGs still work properly elsewhere, but it's annoying to look at a broken thumbnails and to not be able to preview the image you selected.

My thought would be to use htaccess to redirect any request that looks like this:

/assets_content/_thumbs/logo.svg

to this:

/assets_content/logo.svg

What would that redirect look like?

It would require a little extra CSS to make sure the SVGs don't bust out of their containers, but that should be pretty straightforward.

Edit:

For the record, here's the first draft of the CSS I'm adding for SVG thumbnails. It tries to manage the width and adds a checkerboard background (so you can see all-white images):

.publish_field .filename img[src$=".svg"] {
   width: 100px;
   max-width: 100%;
   padding: 12px;
   background-color: rgba(0,0,0,.05);
   background-image: linear-gradient(45deg, rgba(0,0,0,.05) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.05) 75%, rgba(0,0,0,.05)),
   linear-gradient(45deg, rgba(0,0,0,.05) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.05) 75%, rgba(0,0,0,.05));
   background-size: 40px 40px;
   background-position: 0 0, 20px 20px;
}


texts: Are there alternatives to MSM for running multiple sites / sharing channels & templates across sites

texts:
Are there other options for EE MSM? I'd like to use MSM, but the licensing restrictions that EE places on it won't allow me to do it. For example, I wanted to develop real estate agent website and sell it to several real estate agents. I'd like to reuse Channels, Templates, etc. across the sites. Apparently, that's not allowed by EE since MSM needs to only manage sites that are owned by the same entity. Leasing the sites (so that I remain the owner) is also not allowed.

If I have 20 sites and want to change an h1 to an h2 in one of my templates, I don't want to have to do it in 20 sites. I want to do it from one place. I can't use EE MSM. What are my choices?


texts: How to redirect home page to /home in order for structure navigation to work as expected?

texts:
My site lives at something like http://example.com/subdomain/ee. Visiting that site root displays the home page just like I want it to. However, I'm using Structure to output a main navigation like so:

{exp:structure:nav
   css_class="nav-main"
   current_class="active"
   max_depth="1"
}

This works great for the most part, except I have a Home link in the main navigation that is the home page, and it's only getting the "active" class if I'm //example.com/subdomain/ee/home, not if I'm at //example.com/subdomain/ee.

I'm relatively new to EE, so I suspect there may be a simple way to fix this. Is there a good way to still use structure to output the primary navigation and have it apply the active class to the "Home" link when on the site root? Is there a better way to approach this than what I'm doing?


texts:
In the devotee page, Low Options has this description

  Low Options displays the list items or options for a given channel
  field. Compatible with native Select DropDown and Checkboxes fields,
  as well as Pixel & Tonic's channel fields that use options.

I have looked over the documentation and the plugin itself but nothing seems to point that it supports checkboxes.

Is this correct?

EDIT:

Here is my code

<fieldset>
     Pets:
     {exp:low_options:pets}
        {options}
            {option_label}: <input type="checkbox" name="search:pets[]" value="{option_value}" />
        {/options}
    {/exp:low_options:pets}
</fieldset>

"Pets" is a native Dropdown.


texts:
I have an at import rule in my main style sheet. @import url("base.css"); However its not importing the base.css. The base.css is in the same template group.

Any suggestion?

Jim Breen


texts: Solspace User : Edit Profile - Avatar Uploading

texts: How can I get the size of the avatar uploaded and inform the user if the file is too big? Indeed, it seems like the edition does not proceed for a certain size of the avatar file.


texts:
Have a curly one for those who know more then me.

Picture this: A site has a form to submit a warranty registration.
Capture: Name, email, street address, model name and serial number.

All good,this first part is a no-brainer. Fill out the stuff, submit, fire off thankyou emails to client and company then return to a generic "thanks" page.

What the client seeks though, is rarely, straight forward but must be achievable.

Let's alter the params for a moment. Let's say the user has bought several machines and they want to register each of them. Initial thought is to create say 6 duplicate fields in Freeform (6  X machine name, 6 X serial name) and display them –  but a tad redundant to show all 6 if they bought 1 or what happens if they bought 12 ? Plus, too many fields to manage in the backend.

It was suggested that the user fills out all the "personal" details and we only display 1 set of machine/serial fields.

The user then has the choice of 2 buttons, either #1 "submit, I only bought one" or #2 "submit this one and then I'll add another"

If they choose option #2, how could you bring back all the previous "personal" details pre-populated and present a new, empty set of fields for machine/serial#?

Long story short, user submits one entry for one machine (one record per machine, technically speaking), if they choose to submit another, their "personal" details are pre-populated ready for another product registration - how ?

As I write, I see stash in the equation but not sure how to set the variables until they're posted… a good Friday question :)


texts: Search matrix rows with OR instead of AND

texts:
I've setup some time ago a search field for matrix like so

{matrix_field search:matrix_col_01="value"} {Title}... {/if}

But now i need to add an extra value from a checkbox

{matrix_field search:matrix_col_01="value_from_checkbox" search:matrix_col_02="value_from_checkbox"}
     {Title}...
{/if}

The problem now is i don't see any values unless checkboxes from matrix_col_01 AND matrix_col_02 are checked.

Is it possible to to have value_one AND/OR value_two ?

The reason why i need this is to return certain rows only that contain value_01 or value_02 , i don't want to show all rows in one time.
Thanks!


texts: Unable to load requested field type file: ft.relationship.php. after updating

texts:
I upgraded my Expression Engine installation to 2.7.3 (from 2.3.1). But after upgrading I get an error when trying to view the site.

Error

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

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

I can see that there is a expressionengine/fieldtypes/relationship/ft.relationship.php and if I go to the admin page I see a field type as being installed there (As “Relationships Version 1.0”).

Why is EE giving me an error at that point?


texts: search=field_name: and special characters from URL segment

texts:
I am using the following tag to get only channel entries with a custom field matching the last URL segment:

{exp:channel:entries search:collection_name="={last_segment}"}

This works fine for most values, but I've found that when the field contains double quotes, no entries are returned.

For example, the following URL segments work, and only the matching entries are shown: Collection, Collection 43

However, this URL doesn't return any entries, even when there are matches in the DB: The "new" collection.

So I need to somehow escape these characters to allow this to work?


texts: Moving to Content Elements from CE IMG, Matrix and fancybox?

texts:
I'm having a problem with the Content Elements {gallery} function where I would like to take a group of images and put them into a gallery, but display one main image which when clicked opens up into a fancybox gallery.  The current code I'm using that works is:

{if Custom_channel_field}
 {!-- HANDLE SCALING / DISPLAY OF MAIN ARTICLE IMAGE --}
     {Custom_channel_field offset="1"}
         {exp:ce_img:pair disable_xss_check="yes" src="{image}" max="500"  quality="90" allow_scale_larger="yes"}

            {/exp:ce_img:pair}
     {/Custom_channel_field}

 {!-- PREPARE IMAGES FOR THE IMAGE GALLERY --}
       {Custom_channel_field}
         {if row_count == 1}
            {exp:ce_img:single src="{image}" disable_xss_check="yes" width="500" quality="90" allow_scale_larger="yes" class="photo"}
              {if total_rows > "1"}
Image Gallery ({total_rows} Images)
{/if}

         {/if}
       {/Custom_channel_field}
{/if}

And so that works fine, but with the change to using Content Elements I'm confused.  I can get all of the images to show using:

{!-- Content Element GALLERY --}
 {gallery}
   {if element_name=="galleryname"}

{!-- HANDLE SCALING / DISPLAY OF MAIN IMAGE --}
     {images}

           {exp:ce_img:single src="{image}" disable_xss_check="yes" width="500" quality="90" allow_scale_larger="yes" class="photo"} {if total_rows > "1"}
Image Gallery ({total_rows} Images)
{/if}
     {/images}

  {/if}
{/gallery}

So when this runs it spits out HTML that looks like:

So, all of the images are displaying on the page at once and within a fancybox gallery that is linked to each other.   Now where I'd like to get is where one of the images is displayed and the others display on a click to the gallery.   Such as this HTML:

Which when I manually edit the HTML in Firebug displays exactly what I'm trying to achieve.  I have contacted KREA (creators of Content Elements) about this same issue and received an email that replied:

{gallery}

{if element_name == "maingallery"}

...here goes your code...

{/if}

{/gallery}

But I'm sure there has to be more to this.

Any feedback and suggestions of how I can properly get to this point are much appreciated.


texts: database problem checkboxes? Profile:edit form, checkbox error

texts:
Spending several hours to tackle this, completely exhausted and see no solution any more.
Do hope for some help here.
Code 1 no problem.
Code 2 throws error
Field niveau has three items. all throw error.

The form you submitted contained the following errors

Invalid Selection
Invalid Selection
Invalid Selection

In a form this code:

Code 1

                 {options:gender_{language_code}}

        <input type="radio" id="gender_{language_code}" name="gender_{language_code}[]" value="{option_value}"{checked}>
        {option_value}

                {/options:gender_{language_code}}

code 2

                 {options:niveau_{language_code}}

        <input type="radio" id="niveau_{language_code}" name="niveau_{language_code}[]" value="{option_value}"{checked}>
        {option_value}

                {/options:niveau_{language_code}}

I swear, the two fields are the same, except for the name.

What is going on here?

Thanks a lot for saving may days.


texts: Per author enable/disable comment notification

texts:
Is it possible to enable/disable comment notifications for each author?
Some authors want to receive comment notifications. Others prefer not to get notified.


texts: Field Pack Dropdown Channel Form Problem

texts:
The following code doesn't work.

<label for="intent_of_posting">Intent of Posting</label>
<select name="intent_of_posting" id="intent_of_posting">
    {options:intent_of_posting}
         <option value="{option_value}"{selected}>{option_name}</option>
    {/options:intent_of_posting}
</select>

How to make Field Pack Dropdown work with channel form?

Am using EE 2.11.3 and Fieldpack 2.2


texts: Has anyone ever tried using P&T Assets as a field with Carthrob? More specifically, I'm looking to sell photos that are located on my Amazon S3 account. Do you think this will work?


texts:
We have a registration form using freemember, and it works about 95% of the time.  In rare instances we get the notification email that someone has registered, but it does not save in the database to approve the pending user.  The member just doesn't exist in our system.  I have tested the registration and it works fine for me, I just can't figure out why it would fail in some instances.  Does anyone have any idea about what could cause this issue?  It is strange that it would pass field validation and get to the point of sending the registration notification email but not save.

We are running EE 2.10.3, and I checked the change logs for newer versions and there is no reference to registration issues in the bug fixes.  We are also running the latest version of Freemember.


texts: Requiring Admin approval for profile changes

texts:
So I'm looking for some suggestions. I have a client who needs to import user data from an old application they'd like to deprecate into an EE4 installation and integrate how they listed member data the same way on the old app. Most of this stuff is easy, but one of their requests is that if a Member can edit their own profile, that those edits be approved first by a SuperAdmin before going live.

I'm looking over these three add-ons:

User: https://eeharbor.com/user
Visitor (previously Zoo Visitor): https://eeharbor.com/visitor
Zeal Smart Members: https://devot-ee.com/add-ons/zeal-smart-members

And so far this functionality doesn't seem to be implemented anywhere.

The closest thought was using Visitor, which creates Channel Entries to store member data. Then I thought maybe something like Better Workflow was still out there, and I could use that so when a member profile entry is updated, it automatically goes in to the draft/review status, where a Super Admin could approve. But of course, that add-on is deprecated, and I can't seem to find any modern equivalent.

I know that EE isn't really built to be a full featured member management system, but I was hoping there was some middle ground. Has anyone successfully created anything like this? Or have any suggestions?

If an add-on like Better Workflow exists and works for EE4, I can probably build the whole thing out with Channel Entry tags and the Channel Form, as the member data being imported are members that already have accounts in the EE4 system, so I could cobble together a simple version of Visitor without it, but I still need to allow for profile edits to be reviewed.


texts: Is it possible to reset Expresso Store order count?

texts: During development, I sent some orders through to confirm that payment processing was working. Is is possible to delete those orders and reset the order count?


texts: Help requested with CE Cache cache-breaking rules

texts:
I have a large site that uses Structure for most of the static page content. I'm also using CE Cache for performance on those pages since some of them are pretty complicated and heavy.

I'm using the database driver.

Since the content doesn't change very frequently I have the cache set to never refresh. So far I've been forced to manually clear the cache for a specific content path since clearing the entire site cache just for one small section of the site seemed wasteful.

Since the site's secondary navigation shows the current section's pages and immediate siblings, the cache would need to be flushed for the current section as well as one level up just in case the structure URL changes. (see screenshot)

Is there a way to configure Cache Breaking in such a way that I can automatically clear all pages that are siblings as well as the immediate parents and their siblings?


texts: can I Use dynamic parameter more than one time on a template in expressionengine

texts:
can I Use dynamic parameter more than one time (conditionally) on a template in expressionengine.

like

{if case1}
{exp:channel:entries ..... dynamic="off"}
stuff
{/exp:channel:entries}
{if:else}
{exp:channel:entries ..... dynamic="off"}
stuff
{/exp:channel:entries}
{/if}


texts: Freeform Pro fieldtype- how to set the return path?

texts:
In upgrading an ExpressionEngine site from 3.x to 5.2.3, I am switching from using Freeform Classic to Freeform Pro 1.7.12.

In Freeform Classic, there was a Freeform fieldtype where you could set the return path individually per entry (http://docs.solspace.com/expressionengine/freeform/classic/getting-started/channel-entry-fieldtype.html). In the new version of Freeform, while that fieldtype exists, I cannot find that same return path functionality (http://docs.solspace.com/expressionengine/freeform/v1/overview/channel-fieldtype.html#creating-a-freeform-field).

Does this feature still exist in the new version of Freeform?


texts: How can I put last edited timestamp in matrix row

texts:
How would you to post the 'last time viewed' or the 'last time modified' for a matrix row. Not just the whole entry but specific to Matrix. I also need this to appear in the Cpanel and not on the front end.

EDIT

So I updated this and am just using a form to update the Matrix Row when I click on the link to view the proof image.

Unfortunately it is not updating the row.  Below is my code:

{exp:channel:entries channel="projects" entry_id="{last_segment}"}

{title}

                            {project_proof}
                                {if proof_file}

                                    {exp:channel:form
                                        channel="projects"
                                        entry_id="{last_segment}"
                                        return="images/uploads/proofs/{proof_file:filename}.{proof_file:extension}"
                                    }

                                    <input type="hidden" name="field_id_77[row_id_{row_id}][col_id_19]" value="{current_time format='%F %d, %Y - %g:%i:%s'}" />
                                    <button class="button" type="submit">View details</button>

                                    {/exp:channel:form}

                                {/if}
                            {/project_proof}

Submit changes</button>

                        {/exp:channel:entries}

Thanks!


texts: Packing Slip data not sent with Paypal Payments Pro Gateway in Expresso Store

texts:
we're using EE 2.6.1 and Store 1.6.4, and are utilizing the Paypal Pro payment method. We got things working mostly, however there are some issues with the data as we see it within Paypal, so I'm thinking the data isn't getting passed to Paypal correctly or completely.

The first issue I noticed was after I submitted an order, in PayPal when I viewed the details of the order, it would have something like "Order #242" as the "Item Title". This wasn't very useful for me. It would be ideal if this could list all of the individual items and their quantities, but I'm not sure how to get it to do that. I did modify the payment gateway to list the individual items and quantities in this "Item title" section... so that kinda works.

The remaining issue is with the Packing Slip in Paypal. When I view the packing slip for the order in paypal, for "Address" it says "No Address Provided"... not showing the buyers address. That is crucial! Also, it doesn't list each individual item, but instead lists Qty: 1, Website: (our website url), Item Number: n/a, Description: (Buyer Name), Amount: (total amount). Then it lists $0.00 for shipping and handling and $0.00 for Sales Tax.

Is anyone else having this issue? Am I doing something wrong, or is this Paypal Pro payment gateway just really not fully fleshed out?

Thanks!

Gary


texts: Would User categories be a good way to allow one user group to manage a subset of members?

texts:
I'm envisaging an 'account manager' group, who would be able to view and edit the profiles of other member groups ONLY if they were in the same category.

Different organisations each have multiple employees using the site, and a manager from each organisation needs to be able to edit their employees' details. So the categories would be organisation names, which allows the creation of a User list for each manager, showing only members in their category. They click through to an edit form, which of course should also check that the member really is in their category.

Of course we could create multiple member groups to achieve this, but there are hundreds of organisations, so that's not really an option.

Does this sound feasible? Any security flaws, for example?


texts: WYSIWYG editor/upload functionality strange behaviour (after changing host)

texts:
I am running EE 2.1.4 and I needed to make a copy of the website on a new domain (my localhost) for some development. A strange thing happens with the wyvern editor. If I leave (from general configuration) the themes folder and path from the live site, the WYSIWYG editor works ok. If i add my local themes path/folder, the editor gets visibiliy:hidden from a *.js file ckeditor and I can see the editor and the toolbar.

Also the upload functionality for a new entry is not doing anything. No upload popup appears except this error in console "Cannot call method 'dialog' of undefined" in some EE js file.

Did you had this problem before ? I saw that in ckeditor.js line 160 it’s a condition if (!a.editor). That is affecting my editor… Don’t know how to fix this.

Thanks


texts:
RE: How to display Channel entry page?

The accepted solution doesn't seem to work for me. My "products/index" template has something like this:

{exp:channel:entries channel="products" limit="10" orderby="date" sort="desc"}
   {name}
{/exp:channel:entries}

Then in "products/detail" template, I have something like this:

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

{name}

{description}

{/exp:channel:entries}

The "products/detail" page always shows the same record (and when you look at the tag pair, it make sense I think). How is this template supposed to know which record specifically to access? What is it about {url_title} that hints to which entry to retrieve? Is there something I need to put in the tag pair to tell it to use the {url_title} segment?


texts: How to redirect empty url to a specific page

texts:
I have an event website and I want visitors to www.example.org to be redirected to www.example.org/todays-info

"todays-info" is an entry, and I have "Enable strict URL'S" set to No so that I can leave out the template group.

I'm using Cloudflare, and want to cache the html of www.example.org/todays-info to reduce the load on the server, so I want everyone sent to that specific page on visiting so they hit the cached page rather than the homepage.

I'm using the standard htaccess from Ellis Lab to remove index.php and when I try this redirect I just get into a loop

Redirect 301 /  http://www.example.org/todays-info

I'm guessing that the rewrite to remove index.php is part of the problem.
Any suggestions?


texts:
After upgrading assets most pages work fine, but I do have problems with empty assets entries. When viewing such a page the following error occurs:

  Uncaught exception 'Exception' with message 'unknown_source' in .../expressionengine/third_party/assets/libraries/assets_lib.php:1188 Stack trace: #0 .../expressionengine/third_party/assets/ft.assets.php(1114): Assets_lib->instantiate_source_type(Object(stdClass)) #1 [internal function]: Assets_ft->pre_process('{filedir_3}foto...') #2 .../expressionengine/libraries/api/Api_channel_fields.php(350): call_user_func_array(Array, Array) #3 .../expressionengine/modules/channel/mod.channel.php(3790): Api_channel_fields->apply('pre_process', Array) #4 ...expressionengine/modules/channel/mod.channel.php(323): Channel->parse_channel_entries() #5 .../expressionengine/libraries/ in .../expressionengine/third_party/assets/libraries/assets_lib.php on line 1188

I've managed to solve this by re-saving all entries that cause the conflict. Since this is not a huge site that was doable. But it might be worth knowing what's the cause.

It's an MSM site, 2.4.0


texts: Upgrading Stash from 2.3.6 to 2.5.9 breaks a template

texts:
I am running ExpressionEngine 2.7.2 with Stash 2.3.6.  I tried updating Stash to 2.5.9 but found one of my templates using Stash now does not obtain the stashed variables.  Here is the salient portion of my template:

{exp:stash:set_list name='mystash' parse_tags='yes' parse_depth='1'}
{exp:channel:entries channel="group_photo_tags" entry_id="2078"}
{group_photo_entry}
{stash:my_height}{exp:math formula='([1] * [3]) / [2]' params='{img-width}|{group_photo_entry:file_name}{width}{/group_photo_entry:file_name}|{group_photo_entry:file_name}{height}{/group_photo_entry:file_name}' round='up'}{/stash:my_height}
{stash:my_scale}{exp:math formula='[1] / [2]' params='{img-width}|{group_photo_entry:file_name}{width}{/group_photo_entry:file_name}' decimals='4'}{/stash:my_scale}
{stash:my_file}{group_photo_entry:file_name}{/stash:my_file}
{/group_photo_entry}
{/exp:channel:entries}
{/exp:stash:set_list}

{exp:stash:get_list name='mystash' parse_tags='yes' parse_conditionals='yes' parse_depth='1'}
{exp:channel:entries channel="group_photo_tags" entry_id="2078"}

{title} - {group_photo_entry}{group_photo_entry:title}{/group_photo_entry}

  {group_photo_entry}

<canvas id="mycanvas" width="{img-width}" height="{my_height}">
</canvas>

{/group_photo_entry}

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

A view of the page source after the update shows that the stash variables are now parsed as blank, leaving the formulas to calculate 0 and so rendering no image.  I suspect a parse order issue, but do not see where this is occurring.


texts: Channel Entries Related Entries Filtering with Count

texts:
Lets say I have Channel A and B.

Channel A has a Field X which is a relationship to channel B.

Is there a way for the {exp:channel:entries} tag to get

only those Channel B entries that are referred by current entries in Channel A?
the number of entries in Channel A that are associated to each respective Channel B entries?

For example:

If Channel A has these entries

Entry 1, Relationship to Channel B entry 1
Entry 2, Relationship to Channel B entry 1
Entry 3, Relationship to Channel B entry 2

and Channel B has these entries

Entry 1, Foo
Entry 2, Bar
Entry 3, Test

then

No. 1 should return

Entry 1, Foo
Entry 2, Bar

No. 2 should return

Entry 1, Foo, Referred 2 times
Entry 2, Bar, Referred 1 time


texts:
I'm currently rebuilding an EE1 site in EE3. The EE1 site is using Rating v2.3.4 and the new EE3 site is using Rating v4.0.4.

What's the best method for migrating ratings between the two sites? Rating v2.3.4 has a rating export utility, with which I created a CSV file of all of the ratings on EE1 site. However, I can't find any method for importing those ratings into EE3 using Rating v4.0.4.

Should I just look into importing the ratings straight into the EE3's DB (after, of course, making sure all of the related entries exist, IDs match up, etc.)? Or is there a different method?


texts: On Form submit save values to cookie to repopulate form again - FreeForm

texts:
EE 2.9.2
FreeForm 4.2.0

I have a somewhat large form where the client expects users to submit it multiple times per visit. They would like to have 8 of the fields be pre-populated after the first submission.

I'm thinking this needs to be done with cookies but am unsure of how to get the cookies set using the info entered into the the form. Any thoughts on how best to achieve this?

Have looked at cookie addons, but not sure if they will work or if I should approach this with javascript/jquery.


texts: Is there a way to get the member_id of a user that was just logged out?

texts:
I currently have the core file Session.php modified a little to keep track of login/logout information and member_ids - create_new_session() for login, destroy() for logout.

I realize that this can be better achieved with an extension using hooks - member_member_login_single after login, member_member_logout after logout.

The issue, though, is with the logout hook the system doesn't pass along any data (documentation), so there's no way for us to know the member_id of the user who just logged out.

Is there a way to accomplish this at all aside from modifying core files?  I already have a hacky solution (editing core files), so I'm looking for the "right" way to do this.


texts:
When I link a file in a WYGWAM field, the link seems to be created correclty. If I look at the source of the HTML, the link is displayed as,

File

If I look at the DB for that field, it is saved as,

File

However when the template is parsed, the final output is,

File

If I manually remove the "{filedir_2}" from the DB record, everything works fine and the output is,

File

I'm using all the latest versions,

EE 2.6.1
Assets 2.1.4
Wygwam 2.7.1
Structure 3.3.10

Thanks for any help you guys can offer!


texts: Issue with Fedex Extension in Expresso Store

texts:
I am using Expresso Store in my sitewhich is built using ExpressionEngine.
I am also using Fedex Shipping and UPS Shipping extensions.

We have noticed an issue in our Fedex Shipping Extension.
When some of our customers order products, then the Fedex Shipping cost is calculated and displayed wrongly.

This is a very severe issue and we are receiving a lot of customer complaints due to this.

Our From Address:

Place - select 'Massachusetts' (US)
Zipcode - 02339

Shipping Address

Place -'nevada'
Zip-code - 89423

Following shipping methods are displayed in our site during order process:

 Local Pickup - $0.00
 Use Your Own Shipping Account - $0.00
 Contact Me to Discuss Shipping Options/Cost - $0.00
 Fedex Priority Overnight - $81.68
 Fedex Standard Overnight - $207.30
 FedEx 2 Day - $146.91
 FedEx Express Saver - $109.01
 FedEx Ground - $34.91
 UPS Domestic Ground - $35.08
 UPS Domestic 3 Day Select - $98.73
 UPS Domestic Second Day Air AM - $168.78
 UPS Domestic Second Day Air - $147.19
 UPS Domestic Next Day Air Saver - $208.57
 UPS Domestic Next Day Air Early AM - $249.86
 UPS Domestic Next Day Air - $216.56

My issue is with the 4th option - Fedex Priority Overnight. It's showing wrong value and that too lesser than the Fedex Standard Overnight option.
The actual cost for Fedex priority Overnight should have been around $200.

I have used the shipping calculator available in the Fedex website for this.
Ref : https://www.fedex.com/ratefinder/standalone?method=goToPackageInfoPage

The shipping calculator was showing the cost as $233 for Fedex priority overnight, which should be the correct cost.

This clearly shows that there is something wrong with the Fedex Extension. It was wrongly displaying the value as $81, which is much lower than the actual value.

Options:

From : US
zip -code : 02339

To : US
zip-code : 89423

No. of packages - 1
Weight : 28lbs

Package type : Your packaging

Dimensions:

Length => 16
 Width => 8
 Height => 8
 Units => IN

Can anybody help me in this.


texts:
My plan is to use EE as an admin portal for users so they can update my CI application. The way I need it to work is, EE template Login -> give them access by using an external source API for the login Validation. Once they have access they will hit a search Template-> on typing a search query they will get results from an external database not exp_database (I'll be using a custom search module here.)

Like CodeIgniter I would like to connect my login template in EE to a custom controller in EE. Would I need to make a custom module for this functionality?

I did look up something on
https://stackoverflow.com/questions/6588954/expression-engine-controllers and followed their ideas but it doesn't seem to work. I get errors like

  "The following errors were encountered This form has expired. Please
  refresh and try again. Return to Previous Page"

Below is the index login page, I created: url is localhost/login/index.php

<title>Login Screen </title>
<link>bootstarp file</link>

                        <form class="form-horizontal" action='controllers/LoginController.php' method="POST">
                          <fieldset>

                              <legend class="">Login</legend>

                              Username

                                <input type="text" id="username" name="username" placeholder="" class="form-control input-xlarge ">

                              Password

                                <input type="password" id="password" name="password" placeholder="" class="form-control input-xlarge">

                                <input name="submit" class="btn btn-success" type="submit" value=" Login ">

                          </fieldset>
                        </form>

here is the controller url (which is a template is the same login.group): login/CheckLogin
-CheckLogin has Allow PHP enabled
-php Parsing Stage - input and Output (tried both still gives me the same error)

<?php
    class CheckLogin extends CI_Controller {

            public function index() {
login_name     = $_POST['username'];
login_password = $_POST['password'];
            //Login Validation
        }
    }
?>

I have also disabled/commented out the routes in config.php as well

$route['default_controller'] = "ee/index";
$route['404_override'] = "ee/index";

It still doesn't work ... I'm hoping it will be something very very stupid (most of the time it is). Any kind of suggestion or example code structure would help.


texts: Conditional statement error inside relationship field

texts:
I have a relationship problem and I figured Stack Exchange can help ;)

I'm using the standard relationship field in EE 2.8.1 but the conditional statement just keeps throwing an error;

{cf_campaign_accommodation}
{cf_campaign_accommodation:placetostay_addressline1}
{if "{cf_campaign_accommodation:placetostay_addressline2}" != ""}{cf_campaign_accommodation:placetostay_addressline2}, {/if}
{/cf_campaign_accommodation}

{cf_campaign_accommodation} is the relationship field. When I load the template, Google Chrome throws a "This site can't be reached. ERR_CONTENT_DECODING_FAILED" error.

I have also tried the following but neither of these work;

{if '{cf_campaign_accommodation:placetostay_addressline2}' != ''}{cf_campaign_accommodation:placetostay_addressline2}, {/if}

{if cf_campaign_accommodation:placetostay_addressline2 != ""}{cf_campaign_accommodation:placetostay_addressline2}, {/if}

Wondered if anyone else has seen a similar issue or knows of a solution?

Thank you.


texts: What does the “Word Separator for URL Titles” setting alter

texts:
I would like future entries on my site to automatically create the URL titles with dashes-as-separators instead_of_the_default_underscores. I found the setting in Admin > Channel Administration > Global Preferences > Word Separator for URL Titles. There’s a simple switch that you can toggle between underscores and dashes.

Now before I change this, I’m wondering about what this will affect. Will it only alter auto-generated URL titles for entries created within the control panel? Will it alter any behaviour of file paths on the server?

I found this article on EllisLab’s docs that says:

  When creating an entry in the PUBLISH page, if you do not manually
  enter a “URL Title” then the system will automatically create one
  based on the entry Title. This preference determines whether
  underscore characters (_) or dashes (-) should be used when
  automatically creating the URL Title.

Basically what I’m wondering, is, how can I confirm (prove) that nothing else will be altered before changing this setting?


texts: Wygwam and IE10, Enter key doesn't function in IE10

texts: Just visited a client that has Wygwam v2.4.0.2 and EE 2.4.0. The Enter key wouldn't function in IE10. Worked fine in Chrome. Is this a known bug that was fixed in an updated version of Wygwam? Thanks!


texts:
I am using an add-on that that outputs a list of messages.

As is the same with the other native ExpressionEngine tags, it is dependent on the pagination value on the URL to determine the offset.

The problem lies in a specific use case where if no "P" value is set in the URL, I want the add-on to get the "10 latest messages". Since 'P' value is not available, I don't know if the "10 latest message" is possible to get.

I was thinking if there is a way to set the "P" value when page is just starting to load.

Is there a way to do this? If not, any suggested alternatives to this issue?


texts: Is it possible to not require shipping info, my client wants pick up one but when I remove the shipping fields it doesn't process.


texts:
My Channel entry page's URL is something like the following:

http://site.com/template_group/entry_id/{field_1}-{field_2}-{field_3}...

The {field_1}-{field_2}-{field_3}... part is actually just something I add to the links I generate. They aren't actually being used on the Channel entry page. Only the template_group/entry_id/ matters (from what I can tell).

I'm adding those additional details at the end to hopefully generate SEO friendly URLs. Am I on the right track or is there a better "EE way"?

Also, I want to offer some SEO features when making a Channel entry. I'm not well versed into SEO, but the only 2 fields I can think of are meta keywords (which is pretty much useless from what I know), meta title (same as <title>?), and meta description. Should I just add these 3 fields and let the SEO person fill these out? Or is there a better approach than this? It would be nice if there was some logic I could implement that would auto populate these fields in case the user doesn't populate them.


texts: Can a customer save their cart to an invoice?

texts:
We have a client whose shipping needs are complicated enough that they currently only allow checkout for customers with their own shipping accounts.  They would like to be able to open up their checkout process to allow purchases where the customer may not have their own shipping account.

I don't have any experience with CartThrob Invoice, which seems like it may make it possible for our client to create an invoice and add their own shipping cost.  But would it be possible for a customer to somehow save their order as an invoice?  Or maybe use the Save Order payment gateway, and then convert that saved order into an invoice so the shipping could be updated?


texts: No Files Included in the CartThrob Download Zip

texts: I'm not seeing any files included in the CartThrob download zip when I download or attempt to view the contents of the zip. I'm having the same issue with a previous license as well. First time I've had this problem. Anyone have any ideas what the issue could be?


texts:
I have a matrix in my channel fields. and a Wygwam for text. I want in the end for the content creators to be able to load images to be interspersed with the text and then as they write the text specify where said images will go.

I figure the best way to do this is to have them add a little snippet of code where they want the image to appear. But I don't really even know where to begin to build this.

Thanks


texts: Advanced conditional in Category_Archive Channel to show "active" entry (using Structure)

texts:
I have wrapped this in a Snippet to advance the parsing order, but I cannot seem to get this to work...hence the {?}.

{exp:channel:category_archive channel="hurricane" style="linear" dynamic="on" }

           {categories}
        {if segment_3 == '{?}'}
 {if:else}
{/if}

{category_name}

{/categories}

           {entry_titles}
           {title}

           {/entry_titles}

         {/exp:channel:category_archive}


texts: Need help with long forms using Solspace Freeform Pro

texts:
I've set up normal forms using Freeform, but now we have a client who has these massively long forms that require something I've never done before.

Currently all the forms are built with Google Forms, which provides a way for whoever is filling out the form to stop, submit the form so far, and come back later to continue.

Solspace support assures me this has been done with Freeform Pro. Does anyone have any ideas or code examples that can point me in the right direction?


texts:
I'm using Assets almost since day one. And 7 years ago was, well, a whole other time. ;-) Many things changed, but the Assets-Configuration on one quite large project stayed the same since. Those days we configured many individual Upload-Folders. Nowadays, we actually only need a few of them. So we want to «clean up» our assets and upload-dirs.

Is there a easy way to do that? There are 9 different upload-dirs we do use with Assets. We now would like to merge 8 of them to one, so we would have only two dirs left.

What's the easiest way to do that? I guess I have to move the files on the server and re-index everything in the controlpanel, and somehow update all the filedirs in the DB … right? But how? :see_no_evil: :-)


texts: Using Contact Form and passing data to a second script

texts:
I'm using the Contact Form in an ExpressionEngine 3.5.10 website to send an email from the "Contact us" page to our sales department. All of this works fine.

However, they also want this form to feed data into Salesforce. I have a separate form - on another page of the website - which does this by making a jquery ajax call to a PHP script which I set up to do this. This also works fine, but as mentioned, is on a separate web page to my contact form.

What I'm trying to do is make it so that my Contact Form will make the ajax request to this PHP script - and then afterwards - carry on as normal by using the ExpressionEngine Contact Form functionality.

So I tried to do this...

My Contact Form has an ID, #contactForm.

The button that sends my Contact Form has an ID, #sendBtn. So I have used jquery to target this and prevent normal form submission e.preventDefault:

$('#sendBtn').click(function (e) {
    e.preventDefault();
    //...

I then run my ajax call to a script (at ajax/index - this is actually an EE template with PHP enabled):

$.ajax({
   type: "POST",
   url: '/ajax/index',
   dataType:"JSON",
   data: $("#contactForm").serialize()
   // ...
});

I then allow the form submission to occur as normal - because it had been "stopped" with e.preventDefault() earlier:

$("#contactForm").submit();

In the Network tab of my browser I can see it making 2 requests, one to /ajax/index and another to /contact-us (which is the URL of the contact form page). However, it's giving odd and random results. The email always seems to arrive, but the data doesn't always appear in Salesforce.

Sometimes there is a HTML response message from one script saying "thank you - email has been sent", whereas other times there is an error saying something about not being able to send more than 1 contact form every 20 seconds. These messages and their responses come from ExpressionEngine, they are not something I have coded in.

What's even more bizarre is that the HTML response from /ajax/index looks like the response I'd expect from EE's email/contact form functionality. But that should only occur on the POST request to the contact page (/contact-us). Because /ajax/index script is all custom code, and has nothing whatsoever in it to do with EE's email functionality! In fact my /ajax/index script returns a json response - the file sets those headers - and has no HTML response whatsoever, so clearly EE is "doing something" with the way it's processing/handling my scripts.

Am I going about this the wrong way? Is it even possible to do this, i.e. post the data to Salesforce and then have it carry on with the normal contact form script execution?

Any advice would be appreciated.


texts: ee 2.9.2 can't login to cpanel infitive loop

texts:
Hi I am sick and tired of stupid mistakes of ee after every upgrade!
my problem is that I can't login to cpanel I put my username and password and it keep refreshing the page.
this is my config.php

$config['app_version'] = "292";
$config['install_lock'] = "";
$config['debug'] = "1";
$config['cp_url'] = "http://createjewelry.gr/system/index.php";
$config['doc_url'] = "http://ellislab.com/expressionengine/user-guide/";
$config['is_system_on'] = "y";

$config['allow_extensions'] = "y";

$config['disable_csrf_protection'] = "y";
$config['cookie_domain'] = "";
$config['cookie_path'] = "";
$config['cookie_prefix'] = "";
$config['admin_session_type'] = "c";
$config['user_session_type'] = "c";
$config['require_ip_for_login'] = "n";
$config['require_ip_for_posting'] = "n";
$config['secure_forms'] = "n";
$config['cookie_secure'] = "n";
$config['expire_session_on_browser_close']  = "y";

I have tried everything disabling the extensions from config or phpmyadmin every single on of them clearing cache trying from another browser enabling debugging changing files deleted htaccess nothing at all.

does anybody has any suggestion?


texts:
First time using MSM, and I was wondering if it's possible to make logged out users use Site 1 and logged in users to use Site 2?

This will be on the same domain by the way.


texts: Contains operator not working for channel field that uses checkboxes

texts:
I am using a checkbox channel field named "destinations" that allows an entry to have multiple values checked off. I then want other fields from that entry to be displayed if the destinations field contains, rather then == (is equal to). So, an entry that has both Hawaii and New Zealand checked off for the field destination, will show up in either, rather then having to equal both.

So, this works:

{if destination == "Hawaii"}

{term}
{title}

 {/if}

For a destination that only has Hawaii checked off, in the destination field. But, for an entry that has both Hawaii and New Zealand checked off, it won't show.

I tried using the Contains Operator, https://ellislab.com/expressionengine/user-guide/templates/conditionals.html#contains-operator

{if destination *= Hawaii} xyz {/if}

But it causes the page not to load.

I also tried using the http://devot-ee.com/add-ons/pvl-check-if plugin, but that didn't work either.

Any advice greatly appreciated. The page is here:http://www.sea.edu/destinations/destinations_testing

Note for the destinations that don't have any Upcoming Voyages, its because the Voyages go to multiple destinations, so have more than one item checked off for the destinations field.

Thanks.


texts: Can I Edit (make dynamic) the Subject of an Exp:resso Store Order Confirmation Email Template?

texts:
How can I alter the subject of an order confirmation email? My client does different promotions throughout the year, and I'm looking to put a variable in the subject, if possible. For example, right now "Cool Company Order Confirmation - Spring Promotion", and then later in the year "Cool Company Order Confirmation - Fall Promotion"

The alternative is to rename the Email Subject periodically, but I'd rather pull a promotion name from the checkout form that generated the order.


texts:
I would like to rotate between two entries each hour depending on the time of the day.

Any ideas on how to do this?


texts: Taxonomy breadcrumbs - only show one level back

texts:
I have a taxonomy tree with two levels.

When I am on a page at the second level, i.e., Sales & Management Training, breadcrumbs look like this

< Careers < Training Programs

But I only want to see the level immediately above the current page, which is:

< Training Programs

I don't see a way to do this built in the the Taxonomy breadcrumb tag.


texts: using low variable as parameter in exp:channel:entries

texts:
I'm having an issue I can't get around (even not after reading Low variable as channel entry_id parameter across MSM sites that looks a similar problem)

{exp:channel:entries channel="references" limit="5"
sort="desc" category="{embed:cats}" entry_id="NOT {exp:low_variables:single
var='elv_excluded_entry_ids' preparse:target_channel='references'
preparse:from_subsite='innoviso' }" }

I'm trying to exclude certain entries to be shown based on some logic build in a low variable

{if from_subsite=="innoviso"}
{exp:dandy_cat:entries channel="{target_channel}" category="(17)&(not 16)"}
{entry_id}|
{/exp:dandy_cat:entries}
{/if}
{if from_subsite=="solutions"}
{exp:dandy_cat:entries channel="{target_channel}" category="(16)&(not 17)"}
{entry_id}|
{/exp:dandy_cat:entries}
{/if}

I've made generic so it can be reused on different parts of the site.  When outputting the low variable in a template I get an list of entry_ids as expected.

When I do the same in the exp:channel:entries tag i get something like this

entry_id="NOT M00o93H7pQ09L8X1t49cHY01Z5j4TT91fGfr"

I've tried the solution mentioned in the other post, but that does not work for me unfortunately.  Any ideas anyone?

rg,
Tim


texts: How to change "P4" paging number format in url?

texts:
In our site we have a news section, where we are showing a list of 10 news per page.

The pagination is created OK, but when I click on page number link it creates urls like http://example.com/news/P10 we want to change it to something more readable by users and Google as http://example.com/news/page=1, http://example.com/news/page=2 something like this.

We tried a few plugins but most of the plugins are out-dated and doesn't work.

Can anyone please tell us the correct way to fix this?


texts: Cartthrob 2.70's Auto-Install Template issue with Bootstrap and Affix

texts:
I recently installed Cartthrob version 2.70. I used the auto-install templates during installation and have been altering them to suit my needs from there but I can't seem to fix a problem with the store's left nav (the div that includes the total, subtotal, discounts, etc.) When the store is viewed on a tablet or mobile device, this left nav follows the page as you scroll down and completely overlaps the content underneath it.

I'm new to Bootstrap but all my research and reading has lead me to believe that the issue has something to do with Affix. I assumed if the screen width was small enough, the div wouldn't scroll and would remain fixed at the top of the page. I'm also not sure if the problem is on the css or javascript side (or both). Has anyone else noticed the same issue and if so, is there an easy resolution? Thank you!


texts:
I recently installed the forum module on a site (currently running ee 2.5.2) and while the installation and set up went fine, any attempts to preview or post topics simply reloads the topic form page and does not successfully post the entry.

No code to post at this point but I would sure be interested in solving the problem of not being able to add entries.

Thanks.


texts: Solspace Calendar : Only retrieve calendars that have events

texts:
I have a drop down that lists all the Calendars. However I would like to only show Calendars that have an event assigned to them.

I need something like the show_empty tag for EE Category Archive: http://ellislab.com/expressionengine/user-guide/add-ons/channel/category_archive.html#show-empty


texts:
I'm using Assets 2.6 on EE 2.10.2 running with Publisher 1.6.8

I'm able to define Assets fields within Grid fields.

The resulting Asset Fields work insofar as they open Assets and allow the selection of items. However upon saving the selected items are not stored in the Grid field.

Other fields within the Grid work fine, and there are no apparent problems with the rest of the site.  Assets entries stored in Matrix fields are fully accessible / work OK: but need to move to Grid as Matrix not being updated to EE3... :(

Editing a Grid with Assets entries previously saved within (created by external importer) results in the entry being deleted (or not saved).

Is this something that has happened elsewhere?  Any ideas what I can do about it?

Thx


texts: {sale_end_date} not working (tag not recognised?)

texts:
I can't get sale_start_date or sale_end_date to work in expresso store.

The following code (inside {exp:store_product})

{if on_sale}
På salg: {regular_price} {price}

Du sparer {you_save}

Salget varer til {sale_end_date format="%m-%d-%Y"}
{if:else}
Pris: {price}
{/if}

simply outputs {sale_end_date format="%m-%d-%Y"} as plain text exactly as is. It doesn't seem to be a recognized tag. All other tags seem to work.

What am I doing wrong? I can't see anything else in the docs.


texts:
I've installed (new) seg2cat on  a new EE upgrade (2.7.2) and it isn't behaving as expected:

(1.143091 / 6.09MB)      Snippets (Keys): segment_category_ids|segment_1_category_id|segment_1_category_parent_id|segment_1_category_group_id|segment_1_category_name|segment_1_category_description|segment_1_category_image|segment_2_category_id|segment_2_category_parent_id|segment_2_category_group_id|segment_2_category_name|segment_2_category_description|segment_2_category_image|segment_3_category_id|segment_3_category_parent_id|segment_3_category_group_id|segment_3_category_name|segment_3_category_description|segment_3_category_image|segment_4_category_id|segment_4_category_parent_id|segment_4_category_group_id|segment_4_category_name|segment_4_category_description|segment_4_category_image|last_segment_category_id|last_segment_category_parent_id|last_segment_category_group_id|last_segment_category_name|last_segment_category_description|last_segment_category_image|freelancer_version|site_id|site_label|site_short_name|last_segment|current_url|current_path|current_query_string
(1.143106 / 6.09MB)

Note the blank values here:

Snippets (Values): 241|||||||||||||||||||241|0|6|Attire for Grooms + Groomsmen||grooms.jpg|241|0|6|Attire for Grooms + Groomsmen||grooms.jpg|FALSE|1|Ashley's Bride Guide|default_site|attire-for-grooms-groomsmen|http://ashleysbrideguide.com/abg.php/nashville-wedding-ideas/gallery/attire-for-grooms-groomsmen/attire-for-grooms-groomsmen|nashville-wedding-ideas/gallery/attire-for-grooms-groomsmen/attire-for-grooms-groomsmen|

Any ideas why a multitude of snippet values would output blank values without keys? Or numeric values like 241, without keys?

All advice appreciated.

Edit: Posting under low-seg2cat because this bug lead to blank seg2cat values. Thanks.


texts:
I have noticed a odd glitch on my CP log in page. When logging in adding my name and password I often find it takes two attempts to get into the CP ... the first loads but blanks the log in form and remains on the CP log in page.

I was wondering if anyone else had experienced this issue?


texts: Safecracker related(?) error: "Unable to load the requested language"

texts:
I'm using a safecracker form for guests to submit entries. When I'm logged out and I visite the page with the safecrackerform I get this error thrown at me:

"Unable to load the requested language file: language/dutch/upload_lang.php"

This happens also when I change the language settings in the general config to English. The member_id to use for guests also uses English settings.
The upload_lang.php file I can only find in system > codeigniter > system > language > english.

Any suggestions?
Thanks in advance!


texts: Does anyone know of a working color picker plugin for Expression Engine 2.x?

texts:
I've found all the plugins on devot-ee.com, but none of them seem to work. Most of them seem to cause some sort of javascript conflict. The "modal" that the pickers use show up at the bottom of the publish form and the picker fields don't work.

I'm using EE 2.7.3.

Here's a screenshot of what it looks like.

http://cl.ly/image/2t3f1W3j153k


texts: Channel Loops, Conditional Statements, Grids and Whitespace

texts:
I'm running into a bizarre issue with EE that I've never noticed before (using v2.10.1). I'm using a "justified" grid where you set your column container to text-align: justify, give them the right width and they float themselves without having to deal with margins and all that mess.

Works great in my static code until I start using channel:entries loops.

Here's how it should look:

However, whenever I put the columns in a channel loop and use some sort of conditional statement, EE is stripping the whitespace and the end of each column so that they all end up on the same line which totally jacks up the spacing/floating that the justified grid does.

  {exp:channel:entries channel="channel"}
   {if any_conditional}{/if}

   {/exp:channel:entries}

Gives me:

I've tried adding an &nbsp; after the last dive inside the channel loop, and that helps, but it adds extra space and makes the grid end up being off enough that it's really frustrating.

What's going on here? Is there a way to make EE stop stripping this linebreak/whitespace out?

Help!


texts: Can a Matrix table be forced to scroll horizontally to allow for usable column widths?

texts:
So I have way too many columns, let's get that out of the way first. But, be that as it may, I find that entering Matrix field data on a 13' laptop to be quite cramped.

Here's a sample of what it looks like on my 27" iMac.

Nice, plenty of room to edit all fields.

Now let's look at that same field on a much smaller screen.

Most of it is tedious to work with at this width.

What I'd really like is if the Matrix field would automatically stretch to be as wide as it needs to be, and the containing DIV would just scroll horizontally to accommodate it.

Has anyone encountered, and found a solution for this problem?


texts:
I know you can import members by using the built in import function, but that uses XML. Who keeps their data in XML...?
There's the CSV to XML converter, but its hardly client-friendly.

Are there any alternative methods to import members?

A client of mine takes down member details manually at their store, and they want to upload them in bulk on a semi-regular basis.
Ideally I'd like the client to just have to upload a CSV (in a format we can define).


texts: Text format disappears after moving Matrix field in IE9

texts: We are using Matrix version 2.5.10 (Expression Engine v2.5.5) and, when the field is moved up or down, all the formatting in the text disappears (happens only in the IE versions 9 or earlier). Any ideas?


texts: htaccess: remove trailing question mark and value after amp at the end of a url

texts:
i'd like to remove question mark and value at the end of a url ending with amp.

For example, i want the following url:

http://www.domain.com/category/page.html/amp?value=12

to be like this:

http://www.domain.com/category/page.html/amp

What is the right way to do it using htaccess? Thank you.


texts: GW Code Categories: Variables Not Correct Inside {depthX_end} Tags

texts:
I want to output a list of Category A's child categories, then at the end of that list, display a link to Category A itself (.review):

Category A

Category Child 1

Category Child 2

Category Child 3

Category A Review

Basically just an upside-down category list. So I did this with GW Code Categories:

{exp:gwcode_categories
    cat_url_title='{segment_2}'
    style='linear'
    show_empty='no'
}
    {if depth2_start}

{cat_name}

    {/if}

    {if depth == 3}

{cat_name}

    {/if}

    {if depth2_end}

{cat_name} Review

    {/if}
{/exp:gwcode_categories}

This almost works perfectly, except for the .review list item at the end. Instead of displaying the URL and name of Category A (depth2), it displays the URL and name of the last child category (depth3).

What am I missing here?


texts: EE 2.8.1 mailing list This form has expired

texts:
when SOME people try and add their email to the mailing list they get this error:

The following errors were encountered

This form has expired. Please refresh and try again.
Return to Previous Page


texts: Show entries in a single category and then again in all categories except the previously excluded category

texts:
This one's got me.

I'm using Stash to capture a list of entries into a set_list. I want to get this list in two different areas on the page with different categories. If I were simply trying to display 2 different categories, match/against would work. However, what I'm trying to do seems to be a little more complicated. Here's what I want:

In the first get_list, I want to show entries from all but one category.
In the second get_list, I want to show entries from the the single category I excluded in the first list

The exact scenario is that I would like one list to show all articles, and the other list to show only announcements.

Here's what I'm starting off with:

{!-- Articles --}
{exp:stash:set_list name="articles" parse_tags="yes"}
    {exp:channel:entries
        channel="news"
        dynamic="no"
        orderby="sticky|entry_date"
        sort="desc|desc"
        sort_type="numeric|numeric"
        disable="pagination|member_data|category_fields"
    }
        {stash:sticky}{sticky}{/stash:sticky}
        {stash:title}{title}{/stash:title}
        {stash:summary}{article_summary}{/stash:summary}
        {stash:date}{entry_date}{/stash:date}
        {stash:url}{page_url}{/stash:url}
        {stash:image}{article_featured_image}{/stash:image}

        {!-- Get the category_id so we can match against them --}
        {stash:category_id}{categories}{category_id}{/categories}{/stash:category_id}
    {/exp:channel:entries}
{/exp:stash:set_list}

So, that gives me my list of all articles. For my second list, it's as simple as using match/against to only show announcments:

{exp:stash:get_list name="articles" match="#^13#" against="category_id"}

 {date format="%M %d, %Y"} {title}

{/exp:stash:get_list}

It's the first list where I'm stumped. How do I capture all entries except for those in category 13 without having to make another channel entries call?

I know I could just create 2 separate set_lists with 2 separate channel entry calls. One which has category="not 13" and another with category="13".

I also thought I could wrap 2 set_lists in the {cateogries} tag and, again use show="13" and show="not 13", but I don't see a way to do that without repeating my stash variable setters.

How do I keep this at a single channel entry call and keep it DRY?

Update:

romans-8-31-39 pointed out a feature I didn't know existed, which was to NOT match a pattern when filtering a list. That answer is technically correct. When I went to implement that, I realized I'm already using match/against on my first list to match against sticky entries.

Would this be a use case for the stash technique outlined here? I'm having a hard time wrapping my head around the technique.


texts: Automatically delete entries missing from import with Solspace Importer?

texts:
I have a client who will be maintaining a phone directory on their site, updating it on a roughly monthly basis. The import will be a CSV file, and my plan is to use Solspace Importer to turn the data into channel entries.

What I'm wondering is: is there a way to automatically remove entries if they don't exist in a newer import (for example, an employee has left the company and so isn't in the new CSV file).

I found a similar discussion here:
Delete records that were not updated

...but since this directory data won't be be imported on exact intervals, something automated/scheduled with cron won't work.

Thanks in advance for any suggestions.


texts: I have a new channel (locally) about 30 fields long I want to get this into my live site. Is there a way to export and import the actual channel structure into a live site without doing a  full database dump?


texts: Saving Checked radio buttons in safecracker

texts:
I have created a safecracker form that has some fields that with show / hide depending on the previous filed selection.
For example:

 Are you currently taking any prescribed medication?:
    <input
    type="radio" name="med" value="Yes"{checked} id="med2"  />&nbsp;Yes<input
    type="radio" name="med" value="No"{checked} id="med1"  />&nbsp;No

{clear}

     Please detail:    {field:medication}

This code will show the {field:medication} if the yes radio button is selected.
I can't use the normal code provided in the safecracker example as each field option needs to have a different id for the jquery action.

Unfortunately the {checked} code does not save the radio option when the form is saved.
I'd appreciate any advice.
Thanks


texts:
I have a site running v 2.5.3 which all of a sudden has come up with a ton of errors and is not allowing the users to manage files. The errors look like this.

A PHP Error was encountered
Severity: Notice
Message: Undefined index: 1
Filename: cp/content_files.php
Line Number: 369

There's probably 30 errors in that file. Which then ends with

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /Applications/AMPPS/www/ruffinos_lafayette/system/codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 412

Super Admins have the ability to access this just fine, it's just users. I've deleted members, created new member groups, etc. Nothing has worked.


texts: Using Stash variable as Member Categories parameter

texts:
I'm trying to retrieve a category ID to be used in the Member Categories tag pair that is used later on in my template.  I know for sure that the variables is being set (I tested it outside the Member Categories tag), but for some reason it refuses to work as a parameter.  I've tried adding process="end" but that didn't seem to do anything.  Any help would be appreciated!

    {exp:channel:entries channel="my_channel" limit="1" dynamic="yes" disable="pagination"}
        ...
        {exp:stash:set name="my_id"}
            {categories limit="1"}
                {category_id}
            {/categories}
        {/exp:stash:set}
    {/exp:channel:entries}

...

    {exp:member_categories:members category_id="{exp:stash:get name='my_id' process='end'}" limit="4" backspace="1"}
        {screen_name},
    {/exp:member_categories:members}


texts: Solspace Freeform Pro - Add value to field using segment

texts:
Is it possible to use a segment as a Freeform input field value? Essentially, something like this...

{freeform:field:name attr:placeholder="Name" attr:value="{segment_3}"}

I know I could just do a hidden input, but I want to suggest the value and allow the user to modify it if it's wrong.

Cheers


texts: Pagination and conditionals in entry tag not working

texts:
I want to use pagination to paginate article in the "news" section but only those that have a "Yes" statement in the calendar_add field. calendar_add is a switch (pill) field where you can choose from Yes and No.

Pagination does not work. If I remove {if calendar_add == "Yes"} is works fine but paginates all the entries.

Here is the code:

{exp:channel:entries channel="news" limit="1" status="open" orderby="date" sort="desc" disable="categories|category_fields|member_data|trackbacks""}

    {if calendar_add == "Yes"}

      {title}

      {paginate}
           {exp:string:set name="pagination"}
        {if next_page}
            NESTE SIDE »
        {/if}
        {if previous_page}
            « FORRIGE SIDE &nbsp;
            {/if}
        {/exp:string:set}
      {/paginate}

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

{embed="hjem/pagination"}


texts: Zoo Visitor: Members unable to update profile on front end

texts:
I have a profile edit page where members should be able to update their content. The superadmin account has no problems only members. Unfortunately when they try to update the form is submitted and then they see the error in the attached screenshot.

In my form I’ve explicitly set require_password=“no” but this problem is persisting.
Below is the code from my form.

  {exp:zoo_visitor:update_form return="/profile/success" require_password="no"}
  <fieldset>
    <legend>Your Info</legend>

      Your login email:
      <input type="text" name="username" id="username" class="form-text" value="{username}" />

          {label:member_firstname}
          <input type="text" name="member_firstname" id="member_firstname" value="{if member_firstname}{member_firstname}{/if}"/>

          {label:member_lastname}
          <input type="text" name="member_lastname" id="member_lastname" value="{if member_lastname}{member_lastname}{/if}"/>

            {label:mbr_url}: don't forget http://
            <input type="text" name="mbr_url" id="mbr_url" value="{if mbr_url}{mbr_url}{/if}" placeholder="http://cayugahospitality.com"/>

            {label:mbr_location}
            <input type="text" name="mbr_location" id="mbr_location" value="{if mbr_location}{mbr_location}{/if}"/>

            Photo: Upload a square photo of your face. Make sure this is a .jpg or .png and no more than 2MB or 600px by 600px.
            {field:member_photo}

           {label:member_linkedin}
            {field:member_linkedin}

        {label:mbr_bio}
        {field:mbr_bio}

  </fieldset>

  <fieldset id="bios">
        <legend>Cayuga Membership</legend>
        {label:member_divisions}

Select the divisions you represent and drag them to the right side.

        {field:member_divisions}

        {label:member_clients}
        {field:member_clients}

        {label:member_projects}
        {field:member_projects}

        {label:member_testimonials}
        {field:member_testimonials}

        {label:member_speakers}
        {field:member_speakers}

        {label:member_speakers_bio}
        {field:member_speakers_bio}

        {label:member_topics}
        {field:member_topics}

  </fieldset>

    <input type="hidden" name="title" value="{username}">
    <input type="submit" value="Submit" class="button"/>

  {/exp:zoo_visitor:update_form}


texts: Gmap - You must enter a location in the field

texts: I'm using EE 2.8.1 and Gmap 3.2.7.  I'm suddenly getting a message "You must enter a location in the "custom field" field" when I try and save an entry.  This is happening even though we have entered a location;


texts:
I'm trying to collect birthdate information in my Safecracker form. I have a field that is a Date field type. It seems that I am being forced to enter in this format: YYYY-MM-DD HH:MM. I don't want to force my users to enter hours and minutes. How do I work around this such that I only collect year, month, day? I am not using that date picker feature (I have datepicker="no") and would like to implement something "cleaner" (it seems like include_jquery="yes", safecracker_head="yes", etc. mucks up my markup).

Later on, I want to implement a search by age (I'll be using Low Search). Am I on the right track by collecting the birthdate?


texts: Can someone tell me where the Live look button is located in the v3 control panel? In v2 it was alongside the entry title in the edit listing.


texts:
Is there any way if we can block bad words from submitting forum thread. I checked with EE's native module Blacklist/White
but seems it works if any blacklisted URL (or its part) is being submitted. Could anyone suggest me a solution.


texts: {count} of shown/rendered channel entries passed through conditionals

texts:
When I display a couple of entries using the channel tag, and use the {count} var inside the entries template, I simply get 1,2,3,4 etc.

When I use a conditional to filter entries like so:

{exp:channel:entries channel='artworks'}
    {if "{specifications}{type}{/specifications}" == "Painting"}
        {count}
    {/if}
{/exp:channel:entries}

Now I successfully filter my entries to only display those entries that match my criteria, however, my count var renders as (eg) 4,8.

I would like to have a variable that renders as 1,2,3 etc.
So the count var should only count the rendered entries.

Ho to get this to work?


texts: check if an entry has a certain playa parent

texts:
I'm looping through my entries, and I want to check if my entry has a certain entry as his playa parent.

Right now I'm using this code, which works, but I'm wondering if it can be done without PHP.

{exp:channel:entries channel="project"}
    <?php $hasParent = false; ?>

    {project_categorie}
      {if segment_2 == url_title}
        <?php $hasParent = true; ?>
      {/if}
    {/project_categorie}

    <?php if($hasParent){ echo "wooptidoo"; }?>
{/exp:channel:entries}

so, this runs through my playa related entries, checks to see if the url_title matches my quert ( segment_2 in this case ) and displays this once.

Another example of this functionality would be: checking to see if you entry is in a certain category. f.ex:

{exp:channel:entries channel="project"}
    <?php $isInCategory = false; ?>

    {categories}
      {if segment_2 == category_url_title}
        <?php $isInCategory = true; ?>
      {/if}
    {/categories}

    <?php if($isInCategory){ echo "wooptidoo"; }?>
{/exp:channel:entries}

can this be done without having to use PHP ?

EDIT:
--------------------

Ok, I have not idea why I didn't think of this before, but this works perfectly..

{exp:channel:entries channel="project"}
    {project_categorie}
      {if segment_2 == url_title}
        wooptidoo
      {/if}
    {/project_categorie}
{/exp:channel:entries}

stuuupid. :)


texts: Map centering issue in SafeCracker form with Google Maps for EE

texts:
I'm using Google Maps for EE in a SafeCracker form, and the map field is within some jQuery tabs. I previously had an issue with the map not displaying correctly if it wasn't on the first tab that loaded when the page loads (as per this question), but this has been solved by calling the tabs with the following code in my external functions.js file:

$('.tabbed-form .tabs').kosTabs({
  after: function() {
    if(typeof Gmap !== 'undefined') {
      var instance = Gmap.instances[0];
      if(typeof instance !== 'undefined') {
        google.maps.event.trigger(instance.map, 'resize');
        instance.map.setCenter(instance.center);
      }
    }
  }
});

The above solution works fine for creating new entries as the map centres on the latitude, longitude and zoom that I specified in the custom field settings.

But when editing an existing entry that has already had a marker plotted on the map though, I'm finding that the map isn't loading with the marker in view on the map (like it would do in normal circumstances) - instead, it's loading at the map centre (the one entered in the custom field settings), but at a zoomed-in level.

Can anyone show me how to adapt the above JS to make existing entries load with the marker in view please? Thanks.


texts:
Hi I'm looking for a way to repeat this process to build a title with conditionals

In the php version of my site I can use the following

if (!empty($PostKeyword)) {
    $PostTitle = $PostKeyword." Jobs";
    if (!empty($PostLoc)) {
        $PostTitle = $PostKeyword." Jobs in ". $PostLoc;
    }
} elseif (!empty($PostCategory)) {
    $PostTitle = $PostCategory." Jobs";
    if (!empty($PostLoc)) {
        $PostTitle = $PostCategory." Jobs in ". $PostLoc;
    }
} else {
    $PostTitle = "Jobs In ". $PostLoc;
}

I was hoping this could do the same with this in EE but it just throws errors

{if {super_search_keywords} !=""}

{super_search_keywords} Jobs

{if:elseif super_search_category_name !=""}

    {if {super_search_job_location} !=""}

{super_search_category_name} Jobs In {super_search_job_location}

    {/if}

{super_search_category_name} Jobs

{if:else}

Jobs In {super_search_job_location}

{/if}

Sorry for the look I cant find a way to format this nicely


texts:
I've setup a template at test/index that simply contains the following;

{exp:safecracker channel="quote_request"}
   <input name="title" type="text">
   <input name="my_custom_field" type="text">
   <input type="submit" value="Submit">
{/exp:safecracker}

However, the page is simply returning a "This webpage is not available" and "Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error."

I do have a channel called quote_request. I'm using ExpressionEngine 2.5.5 and Safecracker 2.1.

Wondered if anyone else has had this issue before? :/


texts: Securing Form Submissions with FreeformPro

texts: I'm trying to secure a form submission, but can't get it to work. I have SSL installed, I have the csrf_protection enabled on my ExpressionEngine config file, and have secure_action and secure_return set to yes in my exp:free:composer tag. Not sure what else I'm supposed to do. If I go directly to the form page and add https://, it works. But when there's any other link to that page from my site, it goes to the non-secure version. My understanding is that the secure form would load if I added the secure_action variable in the tag. Is this the wrong way?


texts: Conditional on select dropdown field type not working

texts:
I have a select dropdown field with 2 values "yes" and "no".
I want to display an entry when the "yes" is selected. Ive done this many times before but now I can't get it to go. It shows just one entry.

If I remove limit="4" it works??? If set limit="8" it works???

my code looks like this

{exp:channel:entries channel="news" status="open" limit="4" disable="categories|category_fields|member_data|trackbacks" dynamic="no" show_future_entries="yes" show_expired="yes"}
    {if dropdown == "yes"}
        {title}
    {/if}
{/exp:channel:entries}

Any ideas?


texts: Why is this non-formatted member profile textarea stripping HTML markup?

texts:
I have a custom profile textarea, formatting set to none, with simple HTML markup in it. According to the EE docs, it should be left "as is." But when I view a template pulling this field into it, all markup is stripped out.

I've been dev'ing in EE for years, and I'm pretty familiar with most things, yet this has never happened to me (nor have I ever had the opportunity for it to be an issue--rarely mess with member profiles).

Originally, I'd assumed the default member bio field's formatting was set to "none," but I was experiencing the same issue, so I made a custom bio field. Same thing happens.

There's nothing surrounding the field in the template, it is literally dropped into a div by itself. There's nothing special about the {exp:member:custom} tag pair either, the only parameter I include is the member_id. All other fields display properly (screen_name, and a series of links to social profiles).


texts: Protocol agnostic server paths and facebook images in links

texts:
I had a fun time tracking this down. Every time I would copy/paste a link from a site's blog, the title would display, the link would display, but the images would return nothing. The link was correct and clicking the link would take me to the correct post. I went through my settings in NSM Better Meta and included all of the recommended OG meta tags, but still, nothing.

What I found was that by changing my URL of Upload Directory from just "//" to "http://" fixed the issue. That's all fine and dandy, but it doesn't help me keep relative protocols for images. I have both http and https on this site in different locations. It also depends on where they are coming from and if that section of the site has a link that was entered as https. (Not under my control)

Is there any way to set a relative path in the URL of Upload Directory field and have the templates render the path with the protocol from the address bar used?

EXAMPLE:

This renders as:

Which is correct. I can switch from http: to https: without issues of mixed content.

When I copy the link and paste it in FB, the issue is seen:

NOW...
Change over to the http: or https: in the settings...

This renders as:

Which is correct, but not what I want...

When I copy and paste this link into FB, I am given the images...

THIS is why I am confused....


texts:
I have a date and time that works great

format=" %F %j, %Y; %g:%i %a" prints out > December 2, 2017; 7:30 pm

However, in some instances, I don't have the time, but I still want to show the date. I will come back in few weeks and put the time in when its confirmed. In the date picker if I leave the date out it prints 12:00 am Is there a workaround for this.


texts:
I 'm using CartThrob Subscriptions module. In this module area, while clicking at "Add Subscription" button, I 'm getting the message "To create new subscriptions for existing customers, you must already have member data stored with the payment processor. You currently have no payment vaults available for any customers"

Screenshot is here:

Can anyone help me if s(he) faced such a thing and resolve it. I am really stuck here and couldn't understand what more settings I need to do.

I 'll highly appreciate your help.

Thanks,


texts: MSM "You are not authorized to access this page" error

texts:
I'm having problems with an MSM install into an existing site (EE 2.9 / MSM 2.1.7) where non super admins can't switch to the added sites.

The links in the site switching dropdown look like admin.php?/cp/sites&site_id=1&page=XXX and admin.php?/cp/sites&site_id=2&page=XXX and when you click on them as a super admin you get redirected to whatever page you're on. But when logged in as a non-super admin you actually end up on admin.php?/cp/sites&site_id=2&page=XXX which is where the error message appears.

I've changed cp_session_type to cookies only and I've checked that the member group has the necessary privileges.

What else should I be looking at?


texts:
I have a product where there are some physical items as well as a downloadable item variation. So, I'm using matrix to to add these variations. The problem that I am having is that the debug statement for the downloadable item states "[Filename] => No download URL was specified."

In my matrix field "product_variations" the column field name is set up as text and named "product_download_url"

I'm setting up my downloadble item using an absolute path: file="root/www/folder/file-name.pdf"

My code for my order info page is:

{exp:cartthrob:order_items member_id="CURRENT_USER"}
    Download
{/exp:cartthrob:order_items}

I've tried the code a few ways but I can't seem to get this link to work.

Can anyone help? Many thanks!


texts: Channel Entries: Showing #-# of # Total (Outside Tags/Pagination)?

texts:
What's the best way to display "Showing #-# of # Total" on channel category listing page outside -- and before -- the {exp:channel:entries} tags and pagination?

Here's a PHP solution -- but it's inside the pagination:

Show currently displayed results and total results in pagination

Any help would be greatly appreciated. Thank you.