texts: How to pull relationship data into another relationship field?

texts:
I'm building a site using relationships and have run into something that's got me stumped. I suspect it's something simple but can't for the life of me see what it is.

I have the following channels and fields:

Channel: training_course_dates
Field: training_course (single relationship to training_course_overview channel)

Channel: training_course_overview
Field: course_testimonial (single relationship to testimonials channel)

Channel: testimonials
Field: testimonials_quote

What I'm trying to do is to show an entry from the {training_course_dates} channel, pulling in the course overview information, including the related testimonial but this is where I'm getting stuck.

Here's the code I'm currently using:

{exp:channel:entries
    channel="training_course_dates"
    dynamic="yes"
    url_title="{segment_4}"
    status="open"
    limit="1"
    cache="yes"
    refresh="1440"
}

            {training_course}
                {training_course:course_testimonial}
                    {training_course:course_testimonial:testimonials_quote}
                {/training_course:course_testimonial}
            {/training_course}

{/exp:channel:entries}

And here's what's getting output:

{training_course:course_testimonial}
{training_course:course_testimonial:testimonials_quote}{/training_course:course_testimonial}

Any ideas on where I'm going wrong?

Thanks in advance,

Tom


texts: Private URLs with Assets or Compatibility with Protected Links

texts:
Does anyone know if Assets, when used in combination with Amazon S3 to store files can create "signed URLs" when serving up files on the front-end?

S3 provides a time limited signed URL option for ensuring links aren't guessed or shared and would generate a URL that looks something like this:

http://s3.amazonaws.com/quotes/nelson?AWSAccessKeyId=44CF9590006BF252F707&Expires=1141889120&Signature=vjbyPxybdZaNmGa%2ByT272YEAiv4%3D

If not, then is it possible to integrate with Protected Links so files can be uploaded via Safecracker on the front-end into an Assets field to create an entry and then later served back up on the front-end using Protected Links to provide a My Downloads area of secure links?

Has anyone successfully used that combination or know if the two would be compatible?


texts: Absolute Results returns one page count when cache is turned on

texts:
Anyone else seeing this issue?

This has been this way since at least 2.81 and I just upgraded to 2.92 and it's still happening

Heres what I have:

{exp:channel:entries channel="artworks" paginate="both" limit="36" orderby="artwork-end_year|artwork-viewing" sort="desc|asc" cache="yes" refresh="360"}
{if count == 1}
All ({absolute_results})
{/if}
{/exp:channel:entries}

This shows "All (36)"

While this:

{exp:channel:entries channel="artworks" paginate="both" limit="36" orderby="artwork-end_year|artwork-viewing" sort="desc|asc" cache="no" refresh="360"}
{if count == 1}
All ({absolute_results})
{/if}
{/exp:channel:entries}

This shows "All (239)"

I've cleared the cache a number of times but still get the same result? Any ideas?


texts: How to get the member id on activation link click?

texts:
I'm trying to trigger some code in an extension when a new member clicks their activation link in the welcome email e.g domain/?ACT=171&id=oZYXwJfcAx

I can access the authcode using $id  = $this->EE->input->get_post('id'); and I can detect that the current hook is activation using:

if ($this->EE->extensions->active_hook('member_register_validate_members') === TRUE){ ... }

but I can't query the exp_members table for the member_id using the auth_code as it has already expired at this point.

Here's the query I'm trying to run:

    $id  = $this->EE->input->get_post('id');

    $this->EE->db->select('exp_members.member_id');
    $this->EE->db->where('exp_members.authcode =', '"' . $this->EE->db->escape_str($id) . '"', FALSE);
    $this->EE->db->limit(1);

    $query = $this->EE->db->get('exp_members');

    if ($query->num_rows() > 0)
    {
         foreach($query->result() as $row)
         {
             $member_id = $row->member_id;
         }
    }

I'm going around in circles on this so any help would be greatly appreciated.

Using EE 2.9.2 with MSM and Solspace User 3.5.0 installed.


texts: Logging in as another member? Skeleton key?

texts: My members have a custom control panel that they log into. Is there a way I can possibly set some sort of skeleton key so I can log in as those members? In some cases, the admin needs to play the role of the members (for troubleshooting, etc.). Is this possible?


texts: How to write a conditional in template code evaluating the result of a Low Variable containing a conditional?

texts:
I have the following line in my template code

    <li class="{if node_has_children}has-dropdown{/if}{if node_id == {lv-seg1-taxonomy-node-id}} is-lvl1-active{/if}">

The conditional that contains the Low Variable
{if node_id == {lv-seg1-taxonomy-node-id}} is-lvl1-active{/if} always returns true despite {node_id} != {lv-seg1-taxonomy-node-id} when output into the template, and I always get the is-lvl1-active class.

The contents of the LV is:

{if segment_1 == 'youth'}41{if:elseif segment_1 == 'open'}42{if:elseif segment_1 == 'competition'}43{if:elseif segment_1 == 'theme'}44{if:elseif segment_1 == 'films'}45{if:elseif segment_1 == 'news'}46{if:else}{/if}

The Low Variable is set to early parse. How do I compare its output to a tag in the main template?


texts: How do I output the full URL for an entry, including the category paths?

texts:
I'm try to output an Entry URL like this, which includes the Category URL Titles:

/products/category/sub-category/sub-sub-category/entry-url-title

But I can't work out how to achieve this.
Any ideas anyone?

EDIT

This is the code I have so far, but I don't know how to inject the category URLs into the link:

{exp:channel:entries channel="products"}
    {title}
{/exp:channel:entries}


texts: Solspace Freeform (free version) {freeform:all_form_fields} not working

texts:
I am looking at the Solspace Freeform (free version) documentation and I see this:

{freeform:all_form_fields}

    {freeform:field_label}
    {freeform:field_output}
    {if freeform:field_type == 'text'}
        hello!
    {/if}

{/freeform:all_form_fields}

I am using this in my code:

{exp:freeform:entries form_name="expert_request"}

    {freeform:all_form_fields}
        {freeform:field_label}
        {freeform:field_output}
    {/freeform:all_form_fields}

{/exp:freeform:entries}

And this is what outputs on my site:

{freeform:field_label}
{freeform:field_output}
{freeform:field_label}
{freeform:field_output}
{freeform:field_label}
{freeform:field_output}

Can anyone tell me why the output on the tags is returning nothing? Thanks for any help.

~DVL


texts: Cartthrob: How do I set the VAT for not logged in visitors?

texts:
I have big problems how to figure out the taxt (VAT) system, I do not understand anything. The settings are very confusing.

How do I set a basic tax for non-logged in visitors?
And why must I set my global rates on New York? This shop shall work in the Netherlands, there is no option for other countries than in the US.

Thanks a lot for replying.


texts: Custom no results page not showing, shows default page

texts:
I am trying to get a custom no search result page working and all I keep getting is the standar white background/ gray box with the text,

Search Results:
Your search did not return any results.
Return to Previous Page

My code for my simple search form is as follows:

                {exp:search:simple_form channel="recipes" id="recipe_search" result_page="recipes/search-result"  no_result_page="recipes/no-results" }

                        Search:
                        <input type="text" name="keywords" id="keywords" class="clear_default" value="Search for a recipe" size="18" maxlength="100">
                        <input id="recipe_submit" type="submit" value="" class="submit">

                {/exp:search:simple_form}

The template DOES exist and lives in the same template.group as the search template.

I have also looked at this thread: Simple Search returns System Message template for No Results even when 'no_result_page' set

But that doesn't seem to have helped me either, I get an error:

Fatal error: Call to undefined function ee() in /home/sites/justmilk.com/public_html/dev.justmilk.com/jmadmin/expressionengine/modules/search/mod.search.php on line 1262

I am fairly new to EE so any ideas hints tips would be appreciated.


texts: PHP Warning running EE2.6.1 on MAMP (not Pro)

texts:
I'm getting the following PHP Warnings being generated when running a dev site on my local machine. I'm using MAMP (not the Pro version)

I have no add-ons installed.

The only 'non-standard' thing is that I'm using CodeKit and the EE files are part of my project in CodeKit - could CodeKit have 'mangled' something (though I don't know why it would)?

Any ideas what this means and what is causing it?

A PHP Error was encountered
Severity: Warning
Message: file_get_contents(/Volumes/Websites/CLIENT/JOBNAME/dev/system/expressionengine/cache/ee_version/current_version): failed to open stream: Device not configured
Filename: helpers/file_helper.php
Line Number: 48
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /Volumes/Websites/CLIENT/JOBNAME/dev/system/codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 412

UPDATE: Forget this. The problem seems to be with the Xserve from which the file is running apparently changing file permissions of its own accord. I got it working, then after a few minutes it stopped and all I was doing was splitting an HTML file and creating a few embeds! I've given up trying to work out why and simply moved the whole lot to a local drive where it seems much happier!


texts: Search results: only display matrix rows that contain the search item

texts:
I've found out how to search and display matrix rows, but the search results page will typically only show ALL rows.

How can I limit the results and show only the row where the item exists?

  {exp:search:search_results}
  {title}
  {matrix_stuff}{matrix_title}{/matrix_stuff}
  {/exp:search:search_results}

EDIT:
There is a hack that works, but not a definite answer:

In mod.search.php add after line 1298( before $pagination):

// hack
// Load the XML Helper
$this->EE->load->helper('xml');

$keywords = $this->EE->functions->encode_ee_tags(xml_convert($query->row('keywords')));
// end hack

And after line 1411 before $channel->fetch_categories();

// hack add keywords
$this->EE->TMPL->tagdata = str_replace(LD.'keywords'.RD, $keywords, $this->EE->TMPL->tagdata);
// end hack

This makes it possible to use this:

{exp:search:search_results}
{title}
{matrix_stuff search:matrix_col_name="{keywords}"}}{matrix_title}{/matrix_stuff}
{/exp:search:search_results}

Not implemented in 2.7.0 :-(


texts:
I am using FL master config and works a treat (brilliant) on local (MAMP) but when uploading/accessing the dev server just a blank screen appears and also the same for the system login (so can't turn on debug), I know EE works okay on this host (and the db is okay – EE runs fine using a default fresh install). I tried another host and the master config approach works fine! so can only think that the dev host has a prob with the master config approach, checked and dbl checked settings so can't be that, looking into using reelocate but spoilt by the ease of FL's master config approach (so easy!), so wondered if anyone had come across this before and found some possible solutions?

Thanks.


texts: 'If' conditional statement not working, returning PHP error

texts:
I am using EE v2.5 and following the documentation from https://docs.expressionengine.com/v2/templates/conditionals.html

I am trying to create an If Statement where if the Channel field labelled 'title' starts with the word 'Weld', it outputs something.

The title outputs on it's own as 'Weld Quip'

My code is:

{exp:channel:entries show_expired="yes" show_future_entries="yes" channel="service_agent_distributor" limit="1" url_title="weld-quip-group-pty-ltd"}
{if "{title}" ^= 'weld'} some text {/if}
{/exp:channel:entries}

I have also tried to create statement based on segments like this:

{if segment_2 ^= "weld"} Some text {/if}

I get a blank screen with one error: Parse error: syntax error, unexpected 'FALSE' (T_STRING) in /public_html/clients/projectname/area51/expressionengine/libraries/Functions.php(683) : eval()'d code on line 350

If I remove the 'if' statement it works again. Does anyone know why it wouldn't be working?

I should point out that this works, but I need the 'starts with' conditional to work.

{if segment_2 == "weld"}HELLO WORLD {/if}


texts: Channel Entry - series of "connected" drop down fields?

texts:
I need to create a Channel wherein it will have a series of drop down fields. When a user selects a value in the first drop down, the next drop down goes from a disabled state to an enabled state and its options are filtered based on the first drop down's selection.

A good example would be for the first drop down to be a list of states. When a state is selected, then the next drop down might have a list of counties. And when a county is selected, then the next drop down might have a list of cities. My data is not geographic like this example, though.

I don't think EE supports this natively, but I'm wondering if there is an add-on that might do this for me? If so, what would be a good approach to solving this?


texts: Show Low Search results with Low Alphabet

texts:
I'm wanting to use Low Search to do a simple keyword search on a single channel, but then show the results using Low Alphabet.

I can't quite figure out if this is something you can do 'out of the box' (ie they just integrate because they are super awesome), or if it's something I can 'hack' together in some way.

Has anyone else tackled this?

Cheers.


texts: Can FreeForm Pro email a user-entered value?

texts:
I have a situation where somebody will submit a form, then somebody else will come back and edit that form. Upon submitting the edit, an email address defined in an open text field in the form will be emailed a notification. Is this possible with FreeForm Pro?

I'm using 4.2.5 with EE 2.7.3, but I'm open to upgrading if a newer release works.


texts: Image request have parameters attached to prevent caching. How do I stop this behaviour?

texts:
The following image requests has parameters appended, presumably to prevent local browser caching.

24 Hour Production

https://www.example.net/themes/user/site_themes/default/responsive/images/24hours-sml.svg?1556660937802

This behaviour seems to be added by Expression Engine and the outcome is several requests for the same image.

Can someone offer some insight?

Is this in fact EE, or is it something one of my predecessors has manually added to the codebase


texts: Cartthrob saving price as base64 in purchased items channel

texts:
I think this may be a bug, but it's not a biggy.

I have a product channel with a price by member group field.
My orders get saved to Orders and Purchased items channels, both based on standard setup iirc.
My purchased items channel includes a Price field {purchased_price} type: CartThrob Price - Simple.

If someone places an order where the price is ZERO (registered members can book event places for free), then the purchased item stores the price as e.g. YToyOntpOjA7YToyOntzOjEyOiJtZW1iZXJfZ3JvdXAiO3M6MToiNSI7czo1OiJwcmljZSI7czoxOiIwIjt9aToxO2E6Mjp7czoxMjoibWVtYmVyX2dyb3VwIjtzOjA6IiI7czo1OiJwcmljZSI7czoxOiI1Ijt9fQ== not £0 as expected.

I realised that is a base64 encoding of something, that turns out to be e.g a:2:{i:0;a:2:{s:12:"member_group";s:1:"5";s:5:"price";s:1:"0";}i:1;a:2:{s:12:"member_group";s:0:"";s:5:"price";s:1:"5";}} - which appears to be the array of member prices available.

The orders channel correctly stores the total order price as £0.00, and the {order_items} price is also 0, this only affects the purchased items channel.
If an order is placed for any price > 0, then it stores the selected member price as expected. So i suspect 0 is being taken for null somewhere?

{exp:cartthrob:debug_info} shows price as 0 (uses customer price) all the way thru the process.

Like I say, it's not critical for me, as the one place I am using a report of individual items, I can use the hilarious grep workaround {if purchased_price ~ "/..................../"}£0{if:else}{purchased_price}{/if} (assume long strings are not for billion pound orders!)
but it would be good to know whether it's a real thing or not.


texts: Solspace User - not accepting new members: Error mbr_addon_builder

texts:
I am running EE 2.7.1 and User 3.4.0

When a new member resisters the redirect does not work just loads a blank page and the membership does not process..

So I updated the Solspace User to 3.4.5 and ran the module update and get this error:
Unable to load the requested class: mbr_addon_builder

The registration seems to be working now after the User upgrade, but I can't run module updates anymore without getting that error

Any assistance would be great!!

UPDATE: Looks like it may be related not to CartThrob.  That file is in the CT Permissions library folder.  Tried to remove it but still getting the error

So I tried to update Cart Throb Permission Manager 2.3.3 and then I get the same error and cannot even log into the control panel


texts: CE String: Twitterfy Function Creates Bad Hashtag Links

texts: The twitterfy function in CE String is creating bad links for hashtags (they go to an old URL for an API that's no longer supported). Is there a quick fix?


texts: PayPal Pro CreditCardType : Invalid Parameter

texts:
I'm using Expression Engine's exp-resso store plugin for our ecommerce store.  I've set it up to use PayPal Pro as our on site payment gateway.

When submitting my form I receive this error "CreditCardType : Invalid Parameter"

Am I missing something obvious?  Wouldn't the card type be set automatically depending on the card number?  Do I need to explicitly place a select with card type options?  Here's my current form:

<input type="text" id="payment_card_no" name="payment[card_no]" value="" />
<input type="text" id="payment_name" name="payment[name]" value="" />
<select id="payment_exp_month" name="payment[exp_month]" style="width:auto">
    <option value=""></option>
<option value="01">01</option>
    etc...
</select>
<select id="payment_exp_year" name="payment[exp_year]" style="width:auto">
    <option value=""></option>
    <option value="2013">2013</option>
    etc...
</select>
<input type="text" id="payment_csc" name="payment[csc]" value="" class="input-mini" />
<input id="checkout_submit" type="submit" name="submit" value="Place Order" class="btn btn-success" />

Thanks in advance!


texts: Postmaster - Switching from Mandrill to SendGrid

texts:
With Mandrill's new change of policies and pricing I'm moving away from using it for my transactional emails and am Switching to SendGrid.

I use the Postmaster add-on to trigger various emails as well as to send my EE system emails.

Switching the email service seems fairly straightforward, all I have to do is update each parcel and hook to use a new email service. I'm then required to enter my SendGrid username and password.

However it doesn't work.

Every email I try to send now get's this error:

  SendGrid Service - Error: The requested URL returned error: 400
  Consult with SendGrid’s documentation for more information regarding
  this error.

Unfortunately their documentation doesn't mention Error 400.

Does anyone have experience with Postmaster using SendGrid as the email service? What do I need to do to get this working?!


texts:
Update:
Thanks to Dom Stubbs, I have an extension to accomplish this now.  It is up on devot-ee and also up on GitHub.  Thanks Dom!

The Original Question

I am nearly through a security review of a new EE2 version of an existing EE1 site that I hope to launch soon.  One of the final issues remaining is to make the cookies HttpOnly.  I've tried doing that through this line in the apache config:

Header edit Set-Cookie "(?i)^((?:(?!;\s?HttpOnly).)+)$" "$1; HttpOnly"

Using the dev tools in my browser I can see that it does indeed append HttpOnly to the Set-Cookie headers, but the issue then becomes that I cannot log in.  When I asked Ellislab they tell me that the cookies should not be being dealt with in javascript, which was what I expected the issue might be.

ExpressionEngine does not seem to use the session libraries from codeignitor, if it did I could set a config variable to turn httponly on, but it looks like the session handling code is in the expressionengine side of things.

The real question that I need answered is how can I make HttpOnly cookies work, but I guess that breaks down into some potential subquestions:

Am I missing an addon that would allow me to do this without a lot more heartache?Is there something wrong with my apache approach?  Are you able to log in if you enable that in Apache, log out and try to log back in?
Is there something wrong with my apache approach?  Are you able to log in if you enable that in Apache, log out and try to log back in?
Failing these, can anybody give me a hint as to where cookies are being set in expressionengine so I can dig in there and try to fix this?


texts: CartThrob: Discount Plug-In - Buy X Get Y not working

texts:
I've recently installed the following CartThrob discount plug-in and it's not working.  I can't get it to add the free product "Y" to the Cart.

Buy X Get Y
https://github.com/CartThrob/cartthrob-discounts-buy_x_get_y

My discount settings...

I'm running EE Version 2.7 and CT 2.5.  Any help would be much appreciated.

Thanks Darren


texts: Structure module - How to display a dynamic page for all my products

texts:
(I am using Structure module version 3.3.6)

Hey guys!
    I have made this structure so far :

Home -> Products -> Commercial furniture -> Showcase counters
So showcase counters is a sibling of commercial furniture, which the last one is a sibling of products, etc..

So right now when I am on my showcase counters page, the url looks like this :
http://www.my-web-site.com/products/commercial-furniture/showcase-counters

In my showcase counters page, I created channel of my products but this is where I am stuck, how can I get on my product page with this kind of url :
[...]/products/commercial-furniture/showcase-counters/product-1

I tried this in my showcase counters page :
{exp:channel:entries channel="products" [...]}
[...]
a href="{title_permalink='/products/commercial-furniture/showcase-counters/'}">{product_name}
[...]
{/exp:channel:entries}

When I created this href, I get the right URL but is there any way to tell which template to use? Cause right now I got this url :
[...]/products/commercial-furniture/showcase-counters/product-1
which is exactly what I want but I can't find where to put a specific template...

Is there any way to achieve this? Thanks!!


texts: How to load different stylesheets depending on the template

texts:
Right now I have an includes.group, that holds different templates that I load. Such as the nav, head, footer etc.

As of right now the head holds all of my style sheets for every template. But I would like a way to only load certain style sheets depending on the template.

How can I go about doing that?


texts: I need to download all the files I have uploaded to my site.  It will take forever for them to download through the file manager.  What is the best way for me to get them downloaded and how?


texts:
We have a site with 1 products channel and the URL's are constructed from the categories that the products fall into e.g.

/template_group/category_parent/category_child/title

This is all fine when generating links (via conditionals based on segments) within an exp:channel:entries tag however on the search results page I'm at a loss as to how to get the appropriate parent and child category entries into the URL to each result.
Can anyone suggest an approach?!


texts: How to insert matrix rows data using channel API?

texts:
How to use channel entries api for creating channel entries which contains matrix field, I have a channel which contains some text fields and one matrix field.The channel api works fine when I insert data of text fields but I was not able to find any documentation of how to insert matrix field data.
  My code looks like this

Can any one please help me out?


texts: How can I get a site running under MSM (not the 'default_site') to recognise that I'm logged in?

texts:
I have a Multi Site Manager set up running 6 sites from a single EE installation.

I am trying to troubleshoot a problem on one of the sites and have turned on template debugging but it doesn't get shown. From past experience I have recalled that this is because the "sub-site" doesn't recognise me as being logged in as a Super Admin - even though I am logged in to the "master" site as a Super Admin.

How can I get the other sites to acknowledge that I am logged in to the CP?

Again, from memory I think I previously managed this by dropping an admin.php file into the sub-site's directory structure and logging in from that site instead of the main one. Not had time to try this again but I wondered if there was a "proper" way to do it?


texts:
I finally managed to get Favorites to show on my page.

I've been testing the adding favorites function on a test page, but I keep on getting the "This form has expired. Please refresh and try again."

Here's how I currently have the Favorites set up:

            {if favorites:no_results}

                    {exp:favorites:form
                            {segment_3}_id="{segment_4}"
                            return="{path='favorites_inc/favorites_info_ajax/{segment_3}/{segment_4}'}"
                            error_page="{path='favorites_inc/error_ajax'}"
                        }

Favorite this to
                            <select name="collection" class="form-control input-sm">
                                {favorites:collections}
                                    <option value="{favorites:collection}">
                                {favorites:collection}
                                    </option>
                                {/favorites:collections}
                            </select>
                                <button type="submit" class="fa fa-heart fa-lg" style="margin-top:-0.25em;"> add</button>
                    {/exp:favorites:form}

            {/if}

                {/exp:favorites:info}

            {/if}

Currently using:
EE ver 2.8.1.
Favorites ver 4.0.4

Any help on this would be much appreciated.


texts:
This is only my second project with Exp:resso, but have been a long time EE user.  I have a really strange problem, which I am hoping someone will be able to help me with.

I have a simple site, based on a template that is highly modular.  Using EE, I have placed the code for the cart into it's own template (called cart_code) and embedded it into every page on my EE site.  That way, if I need to modify the code, it's in one place.

This is fine and seems to work, and the cart code is as follows:-

    {exp:store:cart}

                {if no_items}

                            Shopping Cart
 is Empty

&nbsp;

        {/if}

                {items}
                Your Shopping Cart

&nbsp;

                    Items: {item_qty}
                    &nbsp;&nbsp;
                    Cost: {order_subtotal}
                {/items}

    {/exp:store:cart}

This works just fine from the home page, and if I navigate to a product page and use the "add to cart" button, the cart updates as expected.

Here is the strange part.  If I then move to an alternative product page, and click the "add to cart" button, I get my DIV (cart) rendered twice!  The first is the entry for the 1st product added, the second rendering is for the second product.

I just cannot see what I am doing wrong here.  Maybe I should change the name of the DIV ID to something less likely than "cart"?

Any help is much appreciated.  Again, all pages share the same code!!!!

Thanks, Mark.


texts:
I have a matrix field with an assets column that it is loosing its data when editing the entry.

It saves fine the first time, but upon returning to edit, the file reference it no longer in the column.

any idea why this could be happening?

using ee v 2.8.1, assets v 2.2.4 and matrix v. 2.5.10


texts:
I'm using the Template Routes plugin to add custom URLs to my EE site. Out of the box, it's set up to use the default EE templates:

$config['template_routes'] = array(
  'blog/:category' => 'site/blog-category',
  'blog/:year/:pagination' => 'site/blog-yearly-archive',
  'blog/:any' => 'site/blog-single',
);

but I'm using Stash so my templates are located in /templates/. I was just wondering if it's possible to route the URLs to these templates instead?

I've tried just using '/templates/site/blog-category' instead but no dice :(

Thanks


texts: orderby="random" same results being displayed every time

texts:
I am trying to select 3 random entries from a few channels.  I have:

{exp:channel:entries limit="3" channel="X|Y|Z" status="open" orderby="random" disable="categories|category_fields|member_data|pagination" dynamic="no" cache="no"}

    ....

{/exp:channel:entries}

The issue I have is that the same 3 entries continue to be displayed, in varying order.  I assume the query must be cached somewhere?  I can't figure it out though.

I do have memcached enabled for EE, and I think this is where the issue lies. If I disable caching, every refresh of the page actually displays 3 random items.

Is there a way to prevent EE from caching this query? In my 'Template Manager', this particular template has "No" for "Enable Caching?"


texts:
I am using a hybrid system that is an ExpressionEngine CMS, which is build with CodeIgniter, and Magento as a store "off to the side" and working together.

We cannot upgrade the existing installation because the contractor that initially built the system did some very weird stuff to the core code that keeps us from upgrading so I am looking to start fresh.

I installed Magento Community 1.8.1 alongside EE 2.7.2.

I wrote a plugin for EE that gets the cart info and the logged in user info but when using the plugin, I get the error:

Cannot redeclare now() (previously declared in \codeigniter\system\helpers\date_helper.php:40) in \store\app\code\core\Mage\Core\functions.php on line 123

How do I circumvent this without modifying core code on either system?

I also receive errors in other files because it is declared in them as well, such as \store\app\code\core\Mage\Admin\Resource\User.php; I get this one when attempting to login to the BO.


texts: Calling plugin function depending upon input to template

texts:
I have a template that takes input from a form and and does several operations.
These operations call plugin functions and I'd like one of them to call a different function if one of the input parameters is set.

This is the template code:

{if segment_2 == 'submit'}
    <?
      $embed_params = 'email="' . $_POST['email'] . '"';
      $embed_params .= 'PID="' . $_POST['PID'] . '"';
      $embed_params .= 'DOB="' . $_POST['DOB'] . '" Site="" site="'.$_POST['site'].'"';
    ?>
    {embed='/forgot_password_form' message='{exp:forgot_password:send_email code="{segment_3}" <?=$embed_params?>}' <?=$embed_params?>}
{if:elseif segment_2 == 'reset'}
    {embed='/forgot_password_reset' email='{exp:forgot_password:check_code code="{segment_3}"}' code="{segment_3}" <?=$embed_params?> site="<?=$_POST['site']?>"}
{if:elseif segment_2 == 'reset_submit'}
    {embed='/forgot_password_reset' message='{exp:forgot_password:update_password code="<?=$_POST['code']?>" password="<?=$_POST['password']?>" site="<?=$_POST['site']?>" }' }
{if:else}
    {embed='/forgot_password_form' }
{/if}

They get an email with a reset code when the send_mail plugin function s called and then when they click the reset link, it calls forgot_password/reset to load a reset form and when they submit the reset form, it calls the forgot_password/reset_submit to update their password.

Now, if the $_POST["email'] is set, I want to call exp:forgot_password:send_email, if it is not set, I want to call exp:forgot_password:show_pass.

I'm going to return their actual username and password to show vs. having them reset it.

How would I call show_pass instead of send_email if the email address is not set here? Or should I just use the plugin code to determine?


texts:
I think the answer to this is "no", but is there any way in File Manager to replace an uploaded image?

So if an image is used somewhere on the site, and we want to just replace it with a new one, we can just upload the new version, without needing to know what stylesheet or template file makes reference to it?  Seems like a basic request.  I guess the only other option is to delete the file and upload one with the same exact filename.

-jim


texts: Is there a way to mimic the add item to cart so a product(subscription) is added to cart during a registration process? In short I wanted to automatically add item in the cart using Expresso Store, that is if it's possible.


texts: Best way to access entry data from within Playa field?

texts:
I have a channel items and a channel colors, and the items channel has a Playa field item_colors that links to the colors channel. What is the best way to loop through the items entries and output a construct like this?

{

  "color_1" : "item_1",
  "color_2" : "item_1",
  "color_3" : "item_1",

  "color_1" : "item_2",
  "color_4" : "item_2",

  "color_5" : "item_3",

  "color_2" : "item_4",
  "color_3" : "item_4",

}

The tricky part is outputting the outer entry title from within the Playa field tag pair. I attempted to do this with a Stash variable:

{exp:channel:entries channel="items" dynamic="no" disable="categories|member_data|pagination"}
  {exp:stash:item_title}{title}{/exp:stash:item_title}
  {item_colors}
    "{title}": "{stash:item_title}",
  {/item_colors}
{/exp:channel:entries}

But the result is the Stash variable outputs the same (last) entry title for every instance. Something about parse order, undoubtedly… any help would be greatly appreciated.


texts:
I am working on a contact page that uses Freeform 4.1.5 and for some reason the Captcha does not show.

I have taken the required step of confirming that captcha is required for logged in users, but the Captcha does not show whether I am logged in or not. Am I missing something?

Here is the form:

{exp:freeform:form form_name="contact" required="name|email" return="contact/thanks" require_captcha="yes" }

name

<input type="text" name="name"  placeholder="Your First & Last Name" />

email

<input type="text" name="email" placeholder="myname@example.com" />

Address

<input type="text" name="address" placeholder="123 Coastal Lane" />

City, State, Zip

<input type="text" name="address2" placeholder="Savannah, GA 31401" />

Phone Number

<input type="text" name="phone" placeholder="(912) 555-1234" />

{if freeform:captcha}

{freeform:captcha}

enter the word you see in the image

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

{/if}

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

{/exp:freeform:form}


texts: Link to Assets field doesn't work when multiple sites are listed in parameters

texts:
I'm using Assets to display pdf documents with race results from a news page. This is an MSM site, and the problem I'm having is on the secondary sites. 'results_pdf' in the following code is an Assets field. If the entry is being drawn from the main site, the link to the results_pdf works fine. If the entry is from the secondary site, the link does not work. However, if I remove 'default_site' from the parameters, and the entry is from the secondary site, the results_pdf works fine. So the link is correct, but having multiple sites listed is causing a problem. The non-Assets fields work correctly. I'm using Assets 2.1 with EE 2.5.5. Suggestions on how to fix this?

Thank you
Susan

{exp:channel:entries site="default_site|nwisa" channel="news_and_results|news_and_results" category="25|31|35|36|37|" limit="1"}

{title}

{full_post}

Event Results

{/exp:channel:entries}


texts:
Does anyone know of a straightforward way of securing files which have been uploaded via Solspace FreeForm?

In a nutshell, what I'd like to have is files uploaded to a directory which isn't accessible to the general public, but is accessible once you have logged into the CP as an admin user.

Edit: To clarify, Freeform just uses a standard EE File Upload destination and has a link within it's admin screens to view the uploaded file. I've tried creating a Destination which is above root, but that makes the file inaccessible from within the CP as well (unless I'm doing it wrong that is).

Edit 2: I seems if you try to access the file via the file manager in the CP it works fine if you have the upload destination above root. What isn't working is the link within Freeform itself. It uses the 'URL of Upload Directory' to link directly to the file. This results in a 404 if the destination is above the root.


texts: Getting Site temporarily unavailable. Connection timed out - please try again. when submitting FreeForm Form

texts:
Get the Error message:

  Site temporarily unavailable.
  Connection timed out - please try again.

when submitting FreeForm Form.

The Form data is getting correctly into the table exp_freeform_entries. It is not sending email notifications.

Not sure what is causing this.
It would be nice to know what file is performing the action on the form.


texts: Why is this Low Variable in a snippet not parsing?

texts:
I have a snippet that I use on nearly every page of a site. I need to give the admins some control in the fallback source of an image in that snippet. Now I know there is a parse order issue here as it works fine when dropped directly into the template, I am just wondering if there is a workaround?

    {exp:switchee variable="{segment_1}/{segment_2}" parse="inward"}
    {case value="events/{segment_2}"}
        {exp:low_variables:parse var="lv_fallback_banner"}
            {exp:ce_img:pair src="{event_masthead}" height="270" min_width="1600" max_width="1600" fallback_src="{url}" crop="yes" allow_scale_larger="yes" filter="brightness,-80|grayscale|colorize,80,39,9,10"}style="background:url('{made}') no-repeat 50% 0; height: 270px;"
            {/exp:ce_img:pair}
        {/exp:low_variables:parse}
    {/case}
    {case value="member-directory/{segment_2}"}
        {exp:low_variables:parse var="lv_fallback_banner"}
            {member_photo_gallery limit="1"}
                {exp:ce_img:pair src="{url}" height="270" min_width="1600" max_width="1600" fallback_src="{lv_fallback_banner}" crop="yes" allow_scale_larger="yes" filter="brightness,-80|grayscale|colorize,80,39,9,10"}style="background:url('{made}') no-repeat 50% 0; height: 270px;"
                {/exp:ce_img:pair}
            {/member_photo_gallery}
        {/exp:low_variables:parse}
    {/case}
    {case default="yes"}
        {exp:low_variables:parse var="lv_fallback_banner"}
            {exp:ce_img:pair src="{masthead}" height="270" min_width="1600" max_width="1600" fallback_src="{url}" crop="yes" allow_scale_larger="yes" filter="brightness,-80|grayscale|colorize,80,39,9,10"}style="background:url('{made}') no-repeat 50% 0; height: 270px;"
            {/exp:ce_img:pair}
        {/exp:low_variables:parse}
    {/case}
{/exp:switchee}


texts:
{exp:channel:entries channel="ranking" order="points" sort="desc"}
{team} | {points} | {goals_scored} | {goals_against}
{/exp:channel:entries}

The code works fine,but when there are two teams locked at same points I want the Goal difference to take over the responsibilty of ranking teams.I do have the goal_scored and goal_against field.

How do I do this?


texts: How do you safely delete file directory references with Assets 2 installed?

texts:
I moved most of my images to an S3 source and the migration went well. However I left a couple of images lurking in the old 'filesystem' folders (and thus the associated references)

When I then deleted my old File Upload Preferences references, and then visited a Publish page, I got a PHP exception error with unknown_source referred.

It appears that when Assets still has references to old folders in the DB, and those folders are deleted, it throws an exception.

Any way around this?


texts:
Google seems to be indexing multiple versions of our translated pages, namely with the language abbreviation and without.  The example below is a German translated page that is also showing without the abbreviation (also shows with other abbreviations es, fr etc.)

https://domain/de/library/guided-tests/can-high-und-can-low-diagnostik/

is correct with the abbreviation, and

https://domain/library/guided-tests/can-high-und-can-low-diagnostik/

Seem to be the same page but would ideally be redirected to a 404.
Because the site is primarily in English with established pages we chose to use the original English versions without an abbreviation.

How can we block pages without abbreviations or with the wrong abbreviation being indexed and/or a 404 redirect?

My initial thoughts was that if I could set a conditional checking if the entry was matched to the correct language abbreviation but I can’t figure if that’s possible or not.

Thanks in advance


texts: How to update an existing card in Subscriptions?

texts:
I'm using DevDemon's Subscriptions to maintain a subscription service for a client site.

I see tags for adding cards and deleting cards, but I don't see anything for updating an existing card on an existing subscription?

In their docs, the allude to it:

http://www.devdemon.com/documentation/tag/subs-cards/

Edit

...but there is no cards_edit template in their examples, and I see no tags for accomplishing this?


texts:
I'm using the following (https://github.com/rsanchez/resource_router):

$config['resource_router'] = [
    'news-and-resources' => 'www/news-and-resources',
    'usa/news-and-resources' => 'www/news-and-resources',
    'cn/news-and-resources' => 'www/news-and-resources',
    'zh/news-and-resources' => 'www/news-and-resources',
    'usa/news-and-resources/:pagination' => 'www/news-and-resources',
];

The last array item should match a url of -

http://www.example.com/usa/news-and-resources/P3

But it just throws a 404 error, even though I know it should load more entries.

What's causing this problem? I'm using Expression Engine 3.4.1

Update:

Using the Resource Router plugin (purely because I can’t get this working inside EE’s routing system) I’ve done this:

$config['resource_router'] = array(
    'news-and-resources/:pagination' => 'www/news-and-resources',
    '(usa|cn|zh)/news-and-resources/:pagination' => 'www/news-and-resources',
    'news-and-resources/(news|resource)/:pagination' => 'www/news-and-resources',
    '(usa|cn|zh)/news-and-resources/(news|resource)/:pagination' => 'www/news-and-resources',
);

So, based on the routes above, the following page requests work and load correct content:

http://www.example.co.uk/news-and-resources
http://www.example.co.uk/news-and-resources/P3
http://www.example.co.uk/news-and-resources/news
http://www.example.co.uk/news-and-resources/resource
http://www.example.co.uk/news-and-resources/news/P3
http://www.example.co.uk/news-and-resources/resource/P3

http://www.example.co.uk/usa/news-and-resources
http://www.example.co.uk/usa/news-and-resources/news
http://www.example.co.uk/usa/news-and-resources/resource
http://www.example.co.uk/usa/news-and-resources/news/P3
http://www.example.co.uk/usa/news-and-resources/resource/P3

You’ll notice the only difference is that there is no

http://www.example.co.uk/usa/news-and-resources/P3

And that’s because it’s the only one that doesn’t work, despite there being a route defined

'(usa|cn|zh)/news-and-resources/:pagination' => 'www/news-and-resources


texts: Issues with date output with DropDate add-on

texts:
I'm using Stephen Lewis' now unsupported DropDate add-on to simplify selecting dates in the Control Panel. (Chiefly because I'm trying to use a fieldtype that allows me to disable selecting times. I want my Control Panel users to just pick a date. If there are other options to do this that I haven't seen, I'm open to them.) I'm using EE 2.5.5.

I first noticed that the dates were outputting one day behind when just choosing a date. So if I selected & saved May 1 2013 in the entry, the output from the tag would be April 30 2013. (I'm also using Title Master to put the date into the entry's title using the DropDate fieldtype tag, and the same thing was happening there.)

I assumed that this was because the date saved was UTC and my server is 5 hours or more behind. I could, however, find no way to compensate for that.

After poking around on Devot:ee and in the readme files with the add-on, I found the git repository and the recommendation to use the re-written Dev branch.

I've given this a try, and can report that in my local, Mac/MAMP Pro environment things look right. Why they look right, I don't know. In my template I have:

{wedding-date-date format="l, F d, Y"}

And it just works. I should point out that, for another project, my php.ini file has:

date.timezone = "America/New_York"

in it.

The same tag is storing the correct value in Title Master. (When I configured Title Master to include {wedding-date-date format="F d, Y" timezone="Greenwich"}, it didn't have any impact or output the date differently.

On my server, however, I'm continually seeing this error when Title Master updates the entry title:

An invalid timezone parameter was passed to DropDate.

That's the tag output there, being bundled into the entry title.

I've updated /etc/php5/apache2/php.ini on my server (Ubuntu) to have:

date.timezone = "America/New_York"

in it and reloaded/restarted Apache. I'm still seeing the same thing, including in template output. The output of the tag is simply:

An invalid timezone parameter was passed to DropDate.

Whether or not I include the parameter.

Has anyone run into this and gotten it working? I really need two things to work here:

Admins able to just choose a date in the entry.
Title Master to be able to insert that date field's formatted value into the entry title.

Update I've downgraded MAMP Pro from PHP 5.4.4 to 5.3.14, using the default template which has date.timezone = MAMP_timezone_MAMP & things worked fine locally. Going down to 5.2.17, less than the server's 5.2.4, broke things locally. Think I might see the issue...


texts: SafeCracker + Matrix, jQuery declaration, and Object has no method 'markItUp'

texts:
I'm trying to use SafeCracker with a Matrix field. My jQuery is being included at the bottom of my page, right before the closing </body>. My SafeCracker tag is as follows:

{exp:safecracker channel="foo" datepicker="no" error_handling="inline" include_jquery="no" preserve_checkboxes="yes" return="foo-manager/" safecracker_head="no"}

include_jquery is set to "no" because it will be included at the bottom of the page
date_picker is set to "no" because I don't need it for my form
safecracker_head is set to "no" because I do not want JS being included right after the form declaration; any JS the page needs should be after the jQuery include right before the <body>

Problems:

In order for the JS associated with SafeCracker to work, jQuery must have been already defined. So I get a lot of errors with my current configuration. However, if I put my jQuery in the <head>, those errors go away. How can I make this work such that I can still keep jQuery at the end of my page?
When safecracker_head="no", the Matrix table doesn't work. It doesn't even look like the default Matrix UI. So I am forced to set it to safecracker_head="yes" (or just remove the parameter). Then the Matrix table looks normal again. However, the parameter adds JS right after the form (and not right before </body>). How can I control where the JS is included?
Finally, even when I put jQuery in the <head> and have safecracker_head="yes", I get Uncaught TypeError: Object [object Object] has no method 'markItUp' error. Any ideas why?


texts: ExpressionEngine 1.x - All pages redirecting to homepage

texts:
I'm sure this one is going to be pretty simple - but I'm banging my head against the wall here. It's been a while since I've worked on a 1.x build.

I have a client site which was just migrated to a new server. Following the migration, the homepage template loads correctly, the CP loads correctly. However, all subsequent page loads on the forward facing site redirect to the homepage.

The .htaccess file (removing index.php) is unchanged. I even had this site up on the SAME hosting environment temporarily as staging.clientname.com where everything worked perfectly.

However, as soon as I point the document root of the main domain to the document root of site (which was also in there as staging.clientname.com) the internal templates redirect.

I'm assuming this is an obvious config that I am just forgetting about.

Thanks so much for your help,

Michael


texts:
We're having an issue with a Playa field in Postmaster:

Technically this should work, but it doesn't:

{parcel:company_membership_package}
  {title}
{/company_membership_package}

We're getting these messages which seem to indicate that Playa is at fault. I haven't look at it in detail, so it may actual be Postmaster sending the data wrongly.

A PHP Error was encountered
Severity: Notice
Message: Undefined index: entry_id
Filename: playa/ft.playa.php
Line Number: 2281

Same message repeated with line 2285 and 2287. I wouldn't be concerned about these notices, except that the data isn't retrieved.

Thanks,
Paul

Edit: Screenshots.


texts:
Does anyone have any experience with selling tickets box office style? I have exp:resso store, but I havent seen addy add ons for ticket sales. In a perfect world, it would be awesome for the customer should be able to buy the ticket and then print a ticket after payment.

Does anyone have any suggestions or advice?

Thanks again


texts: I'm currently using EE 2.7.3 and Assets 2.2.2 with AWS (Amazon Web Services), which works beautifully, however when I removed a few files off AWS, the files are still visible after weeks on my EE install.  Is there a way to resynchronize Assets and AWS so that the files I deleted off AWS are no longer being shown in Assets?


texts:
I'm building an accessory based on one I built & use on another site that works without trouble.  For some reason the URL's in my view are getting mangled in this new version.

This

<a href="<?=BASE . "&amp;C=addons_accessories&amp;M=process_request&amp;accessory=the_addon&amp;method=the_mthod" ?>">

Turns into this

http://siteurl.dev/admin.php?/cp/addons_accessories/process_request?accessory=the_addon&method=the_method&S=1234567890

Anyone know why that might happen?


texts:
I upgraded from EE 2.9.2 to 2.11.5

Everything is working good, except I get this error when I view a News entry at domain.com/news/news-entry-title:

Error Number: 1146

Table 'db_name.exp_low_variables_grid_field_27' doesn't exist

SELECT * FROM (`exp_low_variables_grid_field_27`) WHERE `entry_id` IN ('263') ORDER BY `row_order` asc

Filename: models/grid_model.php

Line Number: 413

This happens on every News entry, not just 263.

I can confirm there is no exp_low_variables_grid_field_27 – neither on local or production DB's

Why is the entry referencing this table? I'm not sure where the reference (from entry 263) is coming from or how to fix it.

Any help or advice how to remove this error would be appreciated.


texts: Low Reorder not overriding the default filter settings

texts:
I'm using a Low Reorder set with a limited Statuses list in the filter settings, e.g.

but there is one page that I would like to use different statuses.

{exp:low_reorder:entries status="Current-Store|Store"}

Unfortunately, the status parameter is not overriding the default filter settings, despite not using the force_set_params parameter at all.  Any ideas?


texts:
I want to be able to populate my meta tags with the information for the specific page that the user is visiting.  I obviously can't just plug a variable in there without it being in some kind of a channel entries loop, but I don't want to have to specify the channel because that defeats the purpose of having it dynamically populated.  Is there a way to grab the channel based on the page the user is on?  I'd basically want to have something like this:

{exp:channel:entries channel="{channel}"}
<meta property="og:title" content="{title}" />
...etc.
{/exp:channel:entries}


texts:
Can anyone give me a suggestion on how to make a Product Text Modifier required in Store.  I know this option is available for the Checkout Tag with the "Required" parameter, but not for the Product Tag.

I have a number of text modifiers that need to be filled out before the customer can add the item to their cart.  Is there a better way of doing this in Store instead of having to write Javascript code to test the fields.

EE 2.5.5
Store 1.6.2

thanks,
Shannon


texts: When I test my new story (express-store) in chrome and I get to the checkout part and the https kicks in the style sheet breaks. and  the yellow lock icon appears in the address bar. The images load on the page but not the styles. However, in Safari or Firefox this does NOT happen and it lets me complete the purchase. Running the last version of both EE and Express-Store).


texts: How to add taxes and cardholder name to Charge?

texts:
Im trying to setup Subscription using Charge.
But in test mode i havent yet found a way how I can include taxes and cardholders name to actual form and receipt.

I tried to look at addon dokumentation but only what i found was the tag for cardholders name. I did try to use text input and run one test, but again, in Stripe dashboard, name was missing.

About taxes i didnt find anything but that is a must to include.

Any advice would be more than welcome, thank you.


texts:
I can’t seem to figure out how to do this correctly.

I’m using Content Elements as a field and stashing those values as you would typically do in a Stash list. However, when I call that list the sequence of what is being outputted seems to match the sequence in my code and not in the published entry.

Setting the list:

{exp:stash:set_list name="h" parse_tags="yes" parse_depth="2"}
  {h}

   {heading}
             {stash:h_header}{value}{/stash:h_header}
         {/heading}

   {wygwam}
       {stash:h_wygwam}{value}{/stash:h_wygwam}
   {/wygwam}

   {assets}
       {files}
        {stash:h_assets}{url}{/stash:h_assets}
        {stash:h_assets_alt}{alt_text}{/stash:h_assets_alt}
       {/files}
   {/assets}

  {/h}
{/exp:stash:set_list}

My template:

{if segment_1 == "about"}

   {exp:stash:get_list name="h"}
    {count}
    {if h_header != ""}{h_header}{/if}
    {h_wygwam}
    {if h_assets != ""}{/if}
   {/exp:stash:get_list}

{/if}

Based on the above the {h_header} always gets listed first even though it might not actually be the first entry in the list. Hope this makes sense.

I have a feeling I’m not doing this correctly in Stash and not in Content Elements.

Thanks for the help.


texts: Upgrading EE from very old version to current

texts:
I have an inherited a very old EE multisite installation that is currently running on EE 2.11.3. Due to its old version of Bootstrap, it isn't even responsive. I was thinking about upgrading to the current, open-source version 5.2.4. I can only imagine how many things could potentially break such as the templates and/or add-ons.

Does anyone have experience upgrading from such an old version of EE and is it even advisable? Thanks for any insight you may have, I am completely new to the EE community.


texts: Need help cutting back on embeds when using Tags from Solspace

texts:
I have a channel listing characters in a TV show. On the index page of that channel, I display a visual index to all characters. The index looks like this and it uses Solspace's Tags module to pick out the image for each character:

{exp:channel:entries channel="{current_channel}" limit="500" orderby="title" sort="asc" disable="member_data|pagination"}

{embed="Characters/Snippet_Image_index_GoT" character="{title}" byname="{{current_channel_id}_byname}" actor="{{current_channel_id}_actor_name}"}

{title}

{/exp:channel:entries}

And the embed like this:

{exp:tag:entries channel="channel42" limit="1" tag="{embed:character} Index"}

{/exp:tag:entries}

Now, since the show has a lot of characters, that index ends up with a lot of embeds. Right now it isn't a problem, but the site gets hit with very heavy traffic when the show is on air, so I am thinking it may cause an issue then. Is there any way to cut back on these embeds? I do need to stay with Tags as the method of marking the images that get used for each character, it is the only workflow that really makes sense.


texts: Trying to get category name to show on category page

texts:
I have a template for categories and I am trying to get the catgeory name in the meta title of the page (or anywhere on the page).

I thought it was just as simple as

<title>{category_name} &ndash; {site_name}</title>

But it's not. I've tried trying to find my answer but to no avail.


texts: How to stop auto-increment on either MX Title Control or Title Master

texts:
Both MX Title Control and Title Master add an auto-increment value for each relationship entry for the same name.

Is there any way to prevent that? It causes a problem in my site. Or maybe there's another workaround.

It's a little complicated to explain but I will try to be as to-the-point as possible.

The site is a tool for Schools to request Tutors for their Students.

The Students channel is the Playa relationship between the School and the Tutor.

Schools enter the Students' info.

The admin assigns a Student to the Tutor(s) after the request from the School.

Tutors add their schedule, grades, reports, etc about the student.

The Schools can view the details about the Tutors' activities with the Students.

A Student can have multiple Tutors.

The Title of the Tutor assignment is the Student name which happens via Title Master add-on (MX Title Control has the same ability).

But so the URL Title is unique, and number is added. (I believe EE will do this even without the help of Title Control or Title Master.)

THE PROBLEM

When trying to get the details from one of the Tutor's reports, the extra number gets involved and the link doesn't work.

Works
http://www.vanhove.net/ati/index.php/view-students/student-curriculum-rpt-details/laura-farrell/968

Doesn't work
http://www.vanhove.net/ati/index.php/view-students/student-curriculum-rpt-details/laura-farrell2370/980

Here is my code for that link

{appointment_curriculum_rpt format="%D, %F %d, %Y"}

This is a password protected site as it has a lot of confidential info, but I can share these screen grabs.

This image shows the link that works

This image shows the link that doesn't work

I realize this is a lot of info, hopefully it makes sense. Any fix would be helpful.

Thanks in advance.

Btw, the title of the entry would normally be the Tutor's name, but that would make it really awkward on the back end. The same Tutor handles multiple students, making it difficult to find a specific entry. So I am using Title Master to make the entry the Student's name.


texts: Multiple tags separated by commas don't works in textarea fields

texts:
i've an issue using Tag with Channel Form in front. I've Tag v.4.2.8 and it's setted in the CP

and the code is

{exp:channel:form channel="spots" class="form-horizontal" return="spot/ENTRY_ID/URL_TITLE" }

        Titolo

          <input class="form-control" placeholder="Inserisci il titolo della tua domanda" name="title" type="text">

          {field:spot_desc}

          Tags

            <textarea class="form-control" rows="1" name="tags"></textarea>

Separa ogni tag con la virgola

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

    {/exp:channel:form}

But when try to submit tags commas separate

example, taga, commas

the results is only one tag with the commas

example, taga, commas

Where i'm wrong?


texts: How to allow customers to add a note to each item in a CartThrob cart?

texts:
I am using CarThrob for purchasing places on training courses. Each course type (singing, acting, dance etc) is an entry. Each entry has a Matrix field used for options.

Matrix column names are: option_value (text), age-range (text), time (text), price (text), booked (P&T Pill), student_name (text).

I have CartThrob set so multiple quantities are always added as single items.

On my checkout page in the update_cart_form I would like the customer to be able to fill in the "Student name" field for each item.

At the moment I am getting the student_name input field displayed but as soon as you enter text into it and update it creates a duplicate field next to itself. I can't work out why?

This is my Update cart form.

                    {exp:cartthrob:update_cart_form

                    id="update_cart_form"
                    class="simple"
                    return="weekend-courses/checkout"
                    }

                    {exp:cartthrob:cart_items_info}

                    {if first_row}

                                Subject
                                Quantity
                                Course
                                Cost
                                Student Name

                    {/if}

                                {title}
                                <input class="short" type="text" name="quantity[{row_id}]" size="2" value="{quantity}" />
                                {exp:cartthrob:item_options row_id="{row_id}"}
                                {options}
                                {if selected}
                                {option_value}
                                {price}
                                <input type="text" name="item_options[{row_id}][student_name]" value="{item_options:student_name}" />
                                {/if}
                                {/options}
                                {/exp:cartthrob:item_options}

                                        <input type="checkbox" id="delete_this_{row_id}" value="yes" name="delete[{row_id}]">
                                        Remove item

                    {if last_row}

                                Total

                                {cart_total}
                                <button type="submit" value="weekend-courses/checkout" name="return" class="btn">UPDATE</button>

                    {/if}

                    {/exp:cartthrob:cart_items_info}

                {/exp:cartthrob:update_cart_form}


texts:
Whats the best practice to create a website in EE, that is different country (Not language) and change the content based on this.

I'm considering using MSM, due to the client needing different categories & pages per site, but then plugins such as CartThrob don't support the ability to span products across multiple sites via MSM.


texts:
Is it possible to somehow set internal links in the rich text editor (Or any other wysiwyg field). Instead of copying the links from the adressbar? Maybe with a dropdown?

Thanks?


texts: Solspace-Freeform Pro - Leave Non-Required Select Menu Empty?

texts:
Select menus left empty by the visitor are having values added to them when updated in the CP because FreeForm is showing the first item in a menu's list by default, even though that's not the data in the database.

Once the form is updated, that default item from the top of the list gets added to the data.

For example, the default list of States (which is not a required field in our form) displays "Alabama" by default at: /cp/addons/settings/freeform/edit_entry&form_id=#&entry_id=#

So we can't update this entry without updating Alabama, in the database, even though our user left it blank.

Short of adding "No Selection" as value to all select fields left blank, what is the intent? How should this be working? Should I be pushing a non-breaking space into the value of a nonselected menu?

Is this just a bug?

Please advise. Thanks.


texts:
I have a user setup as a Super Admin. There is one single channel entry that she cannot edit. Her system locks up when she attempts to edit it. She can edit anything else on the site but this one entry, no.

Any ideas of what to look at to figure this one out?


texts: Using Grid and thumbnails to create a photo gallery

texts:
I am building a photo gallery. I have a folder called "_small" which has small thumbnail images in to of the photo gallery images. I am using Expression image Grid to build the page. How do I call the the small image since the code already requires a ":"

Here is my code

{photos}

{/photos}

In other areas I called thumbs by using something like this:

But grid requires the field followed by a : to work, which seems like to many :'s to process. Any thoughts.
Thanks for looking!


texts: Can I get Channel Entry Loop counts by channel?

texts: I have a sort of odd need and I'm not exactly sure how to solve it so I'm coming here for help. I have a channel entries loop that displays all the latest posts for our site with pagination on our home page. We want to now add a new channel, but for it's entries we only want the most recent entry from that channel to show up in the main all channel channel entries loop. Is something like this possible? If so, how would you do it?


texts: Paypal button triggers "This form has expired" error

texts:
Freeform forms work just fine. Only the PayPal button gives me this error. Any ideas what's wrong?

Some answers to similar issues suggest disabling csrf protection (like so: $config['disable_csrf_protection']). But I have no idea where to do/try this.

I'm using the latest EE version (5.1.2)


texts: Low search distance filter as results parameter?

texts:
I wanted to use geofinder to do a simple distance sorted search, but it looks like it's no longer compatible with EE 2.10.1

So I wanted to see if I could use low search to produce the same results. I have a search box in which I ask visitors to enter their postcode(uk)

I can then use the gmaps plugin to geocode that postcode into latlng values (and save as stash vars).

Ideally it would be great if I could pass in those latlng values to the low_search:results tag as parameters, rather than posting them as hidden inputs with the search (as I don't have the values until the results page).

Does that make sense, and is there any way of doing it with low_search?


texts: Default .htaccess files and Apache 2.4 compatibility

texts:
I was just setting up a new site (2.11.2) and noticed (for the first time, I guess) that there are a few .htaccess files at various places in the code tree. They're quite simple, just a single line "Deny from all".
I'm on Apache 2.4, however, and that syntax is no longer valid. For Apache 2.4 the statement should be "Require all denied".
Has anybody ever had an issue with this?
I have a number of sites that have recently been moved onto newer servers and have gone from an Apache 2.2.x environment to one of Apache 2.4.x. I haven't seen any problems anywhere that are obvious, but I haven't really been looking for them.
Anybody out there bumped into this yet?

Many thanks,

Andy


texts:
EE 5.2.2

The title meta tag from the default site html-wrapper template is this <meta property="og:title" content="{layout:og_title}">. It is working great for everything except if there's an apostrophe in the title, in which case the output stops before the apostrophe. So the title Love Doesn't Stop is rendered as Love Doesn.

I've tried other options such as using conditionals to pull the {title} from the channel entry itself, which, when I view the page source, renders Love Doesn&#8217;t Stop but still uses Love Doesn when linking out.

I have also tried changing the actual title from Love Doesn't Stop to Love Doesn&#8217;t Stop, but the same thing still happens: I end up with Love Doesn.

Is this an EE problem or an HTML problem?

Thanks.


texts:
Can I use freemember to display member profile in normal site template? I just want to display the current logged in users details, shipping address etc, and on another page have them be able to edit.

How do I do this?

/// In response to Adrian/// UPDATE
I tried that but its not parsing anything through the member fields (the email etc are ok) but they are global variables. what is not parsing is the custom fields. I have tried putting the billing address directly into the memebrs profile from the backend, but it is still not showing up on the members details page.

{exp:freemember:members member_id="CURRENT_USER"}

My Account

      Name: {screen_name}

      Email: {email}

      Member since: {join_date format="%d %M %Y"}

{username}: {email}

        {billing_address}
                    {billing_address_1}
   {billing_address_2}
      {/exp:freemember:members}

What am I doing wrong?

Also this is my update form which I can seem to get working either-

**{exp:freemember:update_profile return="/decorate/myaccount" form_id="update_profile" form_name="update_profile"}

    Email

    {field:email}

    {error:email}

    Screen Name

    {field:screen_name}

    {error:screen_name}

    Billing Address

        <input type="text" name="billing_address" value="{billing_address}" class="span11" />
        {error:billing_address}

    Current Password

    {field:current_password}

    {error:current_password}

    <input type="submit" value="Update Profile" />
    Create Account

{/exp:freemember:update_profile}**

It will update the uesrname and email, but not this billing address.


texts: Update weight of a product with jquery upon select.

texts:
I am currently using a modification on a certain product.  It's set up basically as a price modifier however, the weight on one of the products has changed.

Is possible to modify the weight on a selected modifier without creating a separate product?

$('modifiers[10]').change(function(){
if($(this).val() == '42'){
$('.store_product_weight').text(' 44lb./ 5GalPails'); // Change Text
}
});

I'm pretty sure I can modify the text but what about the actual value?

Thanks


texts: Freeform Pro confirmation message inside Fancybox

texts: Trying to send message using Freeform Pro in a lightbox (Fancybox). I'd like to have confirmation message display inside of lightbox after successful submit. Not quite sure the best way to accomplish this. Any insight or advise?


texts:
We've got a website that uses EE 1.6.8 (I know very old and soon to be replaced).

The front end website works fine with no issues at all, which is great. The issue that I've got is when I login to the CMS and try to edit certain pages it gives an error 500. This happens on about half the pages if I try and go into them, however the other half work fine without issue.

Nothing has changed from my side of it so I suspect there was some change on the shared hosting platform (Fast Hosts) but I can't get anywhere with my hosting company.

I don't dare change anything too drastic because the live website is working fine, so I don't want to risk this going down or I would have a serious problem on my hands.

Any ideas of what I can check as it's really frustrating.

TIA
P.S I'm a total newbie to EE and have no experience with it apart from the CMS.


texts: I'd like to add a link to an outside site to my {exp:structure:nav} output. Can I do this? In Taxonomy I'd add a node and set it to "Custom Link," but it appears I can only add actual entries within EE to Structure's trees.


texts: url issues - relationship field with multiple channels

texts:
I've got 2 channels, "message" and "message series" and I'm using a relationship field in the message channel to tie a sermon to a sermon series.  My template group is called media, and there is a media-view template that I'm trying to use to display a listing of all the sermons in a particular sermon series.  My issue is that when I click one of the sermon series to view the sermons in that particular series, it goes to a blank page with my header and footer on it, but no content.  It's trying to go to media/media-view/name-of-sermon-series.  However, when I view the rendered template from the EE control panel, it displays correctly at media/media-view.  That would be fine except, if I change my link to go to media/media-view, and click the link to a sermon series, it always takes me to the same sermon series page, regardless of which link I'm clicking.  Something in my code is off, and I can't for the life of me figure out what it is.  Any help would be greatly appreciated.

here's my code from my media template:

{embed="embeds/html_header" page_title="Media"}
{exp:channel:entries channel="message_series" orderby="date" sort="asc" limit="10" paginate="bottom" {gv_param_disable_default}}

{title}

{series_begin_date format='%Y'}{if series_association != ""}, Series{/if}

{/exp:channel:entries}

and here's my code from my media/media-view template:

{embed="embeds/html_header" page_title="{exp:channel:entries channel="message"}{title}                {/exp:channel:entries}"}
{exp:channel:entries channel="message" limit="1" {gv_param_disable_default}}

                    {series_association}

{series_association:title}

                    {snp_social_share}

{series_association:series_summary}

                    {/series_association}
            {/exp:channel:entries}

            {exp:channel:entries channel="message" orderby="date" sort="asc" {gv_param_disable_default}}

{title} -
{message_date format='%F %d %Y'}

{if message_speaker}Speaker: {message_speaker}{/if}

{if message_scripture}Scripture Reference: {message_scripture}{/if}

{message_summary}

                        <audio src="{message_audio}" preload="none" />

{message_date format="%F %j, %Y"}

            {/exp:channel:entries}


texts: Assets Upload Error: "Getting content length is not supported."

texts:
When I try to upload a file to Assets, I get this alert:

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

The console shows a 500 error when trying to access a url: https://www.mysite.com/index.php?folder=16&ACT=24&qqfile=my-file.png

When I load that URL directly in the browser I get this message:

  {"error":"There was an error uploading your file: Getting content length is not supported."}

My server's PHP error logs don't show anything.

EE 2.7.2
Assets 2.2.2


texts:
I'm trying to set a limit to the results displayed from relationship fields:

{exp:channel:entries channel="childChannel"}
  {siblings field="relationship_field"}
    {siblings:title} - {siblings:field1} - {siblings:field2}
  {/siblings}
{/exp:channel:entries}

I'd really like to use the entry_id_to="{var}" and the entry_id_from="var" so I could split the results into two nice columns.  Somthing like this

First line of text

Second line of text

Third line with some text

Fourth line of text

Fifth line with some

First line of text

Second line of text

Third line with some text

Fourth line of text

Fifth line with some

I'd put the first "portion" in the first DIV, and the second, the second DIV.

But in the list of options / parameters in the manual, I don't see the entry_id_to or the entry_id_from as relationship field parameters.

Am I going about trying to solve this the wrong way?

Thanks everyone...


texts: {stash:embed name="test"} vs {exp:stash:embed name="test"}

texts:
I had a parsing problem with:

{stash:embed name="test"}

It was not parsing.

Reading many posts I read about:

{exp:stash:embed name="test"}

And it's parsing fine. What are the difference between them ??? I'm curious, because exp:stash:embed doesn't appears in the Tag reference documentation.


texts: Channel Entries API/Model: Get created Id or Entry by Field Name

texts:
I hope that I can explain this succinctly. Platform is EE 2.10.1 (this is a sandbox, live version will be on 2.11.1).

I am working on an extension which is using Solspace's User Module's user_register_end hook. After entering the user to the member list, we need to process company information into the Companies channel.

I am achieving this by loading the channel entries and channel fields API and then calling the save_entry method:

ee()->load->library('api');
ee()->api->instantiate('channel_entries');
ee()->api->instantiate('channel_fields');

No problem so far. However, I need to process the information further and require the ID of the newly created company entry.

As far as I see, the save_entry method is only returning a success boolean - not the ID of the successfully created channel entry. First thought was to load the channel_entries_model to get the channel entry by field name. But get_entry only accepts the entry ID, which I don't have.
Then I reckoned, I could use the get_recent_entries method of the channel_entries_model. However, when I run it I get the following error:

A PHP Error was encountered
Severity: Notice
Message: Undefined property: EE::$cp
Filename: core/Model.php
Line Number: 50
Fatal error: Call to a member function allowed_group() on a non-object in /var/www/html/system/expressionengine/models/channel_entries_model.php on line 189

How can I get the ID of the channel entry that has just been created through the API? I can create a custom query using Codeigniter - but would rather not.

Thanks for guidance and help.


texts: I've got this error You are not authorized to perform this action using grid field in ExpressionEngine 2.9.0


texts: CAPTCHA not displaying within an internal network

texts:
I have a site that contains simple captchas for a contact form and registration form. The captchas have and continue to function fine on all networks except for the internal network of the client who owns the site. I am at a bit of a loss for what could be causing this issue.

Could the issue be with the firewall? I don't see how the firewall would be blocking anything external since I don't think the captchas rely on external resources? I could be wrong about that.

The only clue I have is that the issue began after the site was migrated to another server. Any help with this would be greatly appreciated.

Using v2.3.1

       Submit the word below:

       {captcha}

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


texts:
Is there a way to select parents from multiple child entry ids? For example, I have a blog channel with a playa relationship,via a blog_staff field, to a people channel (to identify authors of blog entries) and a team channel with a playa relationship, via a team_members field,  to people as well (to group them into teams). I tried to query for blog entries of multiple people but seem to be limited to only one.

I tried the playa field feeding the people entry_ids through an embed to a parents field to grab the associated blog entries:

{team_members}
    {embed="includes/.bp_by_staff" entry_id="{entry_id}"}
{/team_members}

The .bp_by_staff template trying to use those people entry_ids to look up their blog posts:

{exp:playa:parents channel="blog"  entry_id="{embed:people}"}
    {title}
{/exp:playa:parents}

Now, if {embed:people} is just one entry_id, say "18", this works great, the blog posts get found. But if {embed:people} yields multiple entry ids (the team has more than one person), say "18|29", it doesn't work.

Looking through the profiler for the generated sql of the failing case, one can see why.  It seems like including more than one entry_id breaks the sql query which uses "=" rather than " in " for the where clause:

SELECT DISTINCT(rel.parent_entry_id) AS entry_id
FROM exp2_playa_relationships rel
WHERE rel.child_entry_id = 18|29

If the where clause were using "in" as in WHERE rel.child_entry_id in (18, 29) the query works correctly.

Anyone find a workaround for getting results for multiple entry_ids ?


texts: Not sure where to look to make changes to the layout(css) of the email notification submission portion. I have been searching for the View or the module that modifies this. Has anyone made changes to this?


texts: Adding New Grid Entries With Channel:Form

texts:
I am using the grid field as a custom field for one of my channels.  My form is setup correctly from what I can tell.  What happens is, when trying to add to an entry and already having added a few grid rows worth of data from the CP.

After I submit a new entry using Channel:Form it overrides all the other data and leaves me with 1 field only. I am wanting the grid field to just update and leave the other grid data alone in that channel entry, but it replaces all of my data with just the one newly submitted record.  How do I go about simply adding onto the data already present in the Entry with my Grid field using Channel:Form?

This is what I am using in my form, any ideas?

<input type="text" name="field_id_10[rows][new_row_0][col_id_21]">


texts: Display entry title related to (channel images) image if exists

texts:
I have a channel named Projects, and within that channel i have a 'channel images' field (p_feature). It allow the user to upload one image, and if they do so that image will appear on the Home page as part of a carousel slider. ..So a 'feature' image is not uploaded for every Project entry, but only the ones the user wants featured on the home page.

Below is how the html looks:

Title 1 Link 1

Title 2 Link 2

The Captions appear below the slider div, and also link to the Project.
So my code produces the image, but i'm not sure how to produce the caption (project title & url) that relates to the feature image uploaded.

Plus because the captions (have to) appear outside of the slider div, do i have to open the channel entries tag again?

So something like this:

 {exp:channel:entries channel="project"}
    {if p_feature}
    {exp:channel_images:images channel="project" entry_id="{entry_id}"}

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

 {exp:channel:entries channel="project"}
  {if p_feature}
    {exp:channel_images:images channel="project" entry_id="{entry_id}"}

{title} Read More

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

Plus is there a way to 'automatically' add ascending numbers? I would need that for the #htmlcaption1, #htmlcaption2, #htmlcaption3 etc.

Any help is greatly appreciated!

UPDATE: Code has been updated with working solution.


texts: Channel Short Name Fields Length Limitation

texts:
I have a field name with a long "Field Label" name and I want the "Short Name" to be consistent also.

But I notice that ExpressionEngine truncates the "Short Name" to a certain length. So it seems that there is a limit to the number of characters one can put in "Short Name".

Is there a way around this?


texts:
Using EE v2.6.1 MSM
Freeform Pro v4.0.12

When login EE CP using Chrome or Firefox – Under FreeForm Pro Entries listing, when filter using the search keywords or filter selection it kick you out of EE and required to login again.

Is this an error on FreeForm Pro or is this new version functionality? Please advise, thank you.


texts:
I have a question about Low Search. I'd like to create a search field that searches throughout our blog.

Entries in our Blog channel, however, are like empty shells. The only field they have is a Playa field. The actual content is stored in other channels (e.g. Content-Origin channel) and pulled in with Playa.

In other words, when an editor wants to create a blog post they first add pieces of as entries in the Content-Origin channel. Then, they create a Blog entry and select all of those pieces with Playa. Our template serves up the Blog entry.

How would Low Search handle this situation? If a match is found, does Low Search serve the users the entry from Content-Origin? Or from Blog channel? Thank you!


texts: Expresso Store modifier select in checkout

texts:
I would like to add the option the change the product modifiers from inside the checkout. I've done some tried some things already but don't seem to be able to manage this. At the moment I'm using an embed function to display the modifiers select per product in my checkout which is working. Though the update seems to ignore this select.

My current code is like this:

{exp:store:checkout form_class="form-horizontal" return="{segment_1}/order_ok/ORDER_HASH/"}
   {items}
     {exp:channel:entries entry_id="{entry_id}" site="sales"  status="not closed"}

         {title}

           {modifiers}
             {embed="us/_product-modifiers" entry_id="{entry_id}" key="{key}" option_id="{option_id}" modifier_id="{modifier_input_name}"}
           {/modifiers}

               <input type="text" name="items[{key}][item_qty]" value="{item_qty}" class="form-control qty" placeholder="1">

     {/exp:channel:entries}
   {/items}
{/exp:store:checkout}

The embed I'm using:

{exp:store:product entry_id="{embed:entry_id}" disable_form="yes" disable_javascript="yes"}

  {modifiers}
    {if modifier_type == 'var' OR modifier_type == 'var_single_sku'}
        <select name="items[{embed:key}][{embed:modifier_id}]">
            {modifier_options}
                <option value="{option_id}" {if "{embed:option_id}" == "{option_id}"}selected="selected"{/if}>
                    {option_name}
                </option>
            {/modifier_options}
        </select>
    {/if}
  {/modifiers}

{/exp:store:product}

I'm not entirely sure if it's even possible without modifying the store code itself as there isn't really anything about it in the documentation from what I can see. Has someone encountered the same problem already or might know a solution to this problem?


texts: Snaptcha failing if multiple User registration forms on same page

texts:
I'm using snaptcha for Solspace User registration forms. Background info here: User registration failing Snaptcha security test every time

There are two registration forms on the page - one for each of two possible member groups you can sign up for. The form you choose will be displayed inside a modal box.

If there's only one form, it works just fine. User who should pass the security test do. But when I add a second user registration form for the second member group, neither form will submit. They always fail the security test.

When inspecting the code, I see that both User registration forms have the same snaptcha field (same ID and value), and I imagine it's the lack of a unique code for each form that is causing the problem.

How can I use Snaptcha successfully when I have multiple User registration forms on the same page?


texts:
I noticed that my entry dates were being offset by one hour ahead and when I looked into the issue I found the user localization to be the problem. In my config file I have the following line:

$config['daylight_savings'] = date('I') ? 'y' : 'n'; // Autodetect DST

This was shamelessly lifted from Erik Reagan's Master Config file and it automatically sets the DST under Admin -> Localization Settings but it does not affect DST under My Account -> Localization Settings. Is there a way to set DST offsets globally for users like I can for the system or is it up to each individual to set this themselves?


texts: Safecracker: get constants in javascript

texts:
I'm working on a fieldtype with a lot of javascript and I use the following to get EE constants in the js:

$this->EE->javascript->set_global(array('THIRD_PARTY_THEME_URL' => URL_THIRD_THEMES));

This works well in the Control Panel, but not in Safecracker, which seems to reset all the EE js object.

Any idea how I can pass those kind of constants?


texts: I can't log into my control panel and I think the issue is related to "secure forms" being enabled. How do I disable "secure forms" in the EE config file?


texts:
We're using Editor (3.2.3) but we can't add a mailto-link. When using the link-button you get 3 options: URL, Site page and Email. When selecting e-mail we see a dropdown with the label 'link item' but the dropdown is empty. When creating a link this way it creates a empty href.

Any idea how to do this?


texts: Is there anyway to allow HTML into the 'Category Description' field or better add a WYSIWYG editor to this field? Any input would be a big help.


texts: When will DevDemon's Campaigns module "URL Shortener" integration be ready?

texts: DevDemon's Campaigns module has a section within its Settings for URL Shorteners. When you try to set up a service, however, you get the message seen in the following screenshot.  Anyone know when this functionality will go live?


texts: How to change member group from front end with Freemember

texts:
Let me know any one in Freemember how to update member group when update profile from front end.

if not possible in freemember then let me help for any other way for update member group from front end.

Thanks,
piyush


texts:
We have a site originally written in ee 1.5.2 using the classic subdomain method. Can I take  "classic" subdomain folders and move them into subfolders in Structure for organizational purposes and then use .htaccess to get them to show as subdomains in the browser when they are rendered?

Thank you in advance. . . to the remarkable ee se braintrust!


texts:
Is there a theoretical (or practical) limit to the number of rows you can have in a Matrix field?

Let's say each row has 5 single line text fields and a date field.


texts: Assets doesn't refresh after deleting folder

texts:
When a new subfolder is created and deleted right after, the refresh button keeps spinning and the folder still appears in the list. This only happens when no files are uploaded into it. After a page refresh the folder is deleted.

I have updated assets to v2.1.3

Any ideas why the refresh isn't triggering?

support answer:

ahh, the old trick with glob() returning false instead of an empty array on servers with open_basedir set to On.

Can you open up source.ee.php file in third_party/assets/sources/ee folder, locate the method _delete_source_folder and replace it with the one I'm attaching? That should fix your problem. Also, no matter how trustworthy I sound, always back up your files before doing stuff like this :)

Alternatively, you could wait a day and a half - word on the street is that Assets 2.1.4 might be released tomorrow US time, that would have this and a bunch of other bugfixes.


texts: Freeform: sending Composer form submission notification to a dynamic email address

texts:
I have a Contact Us form that is being generated in Composer and being assigned to my template via the Freeform Fieldtype. The template code simply uses the custom_field name:

i.e. {modal_form}

The form has a select statement that allows the user to select a location. Depending on the user's selection I would like that location to be notified via email of the form submission. Currently the site administrator has to manually forward the email to the correct location.

Is this possible?

Thanks.


texts:
I'm having a problem with EE; when updating or creating an entry I get redirected to the 404 page. I've researched a lot because this is getting annoying. I've tried checking the .htaccess as a common response to this question. My index.php is present and my .htaccess is this:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

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

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

RewriteCond %{HTTP_HOST} ^studio24\.24studiohnserver\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.studio24\.24studiohnserver\.com$
RewriteRule ^/?$ "http\:\/\/cumminsca\.com\/" [R=301,L]

Seems fine; I also tried with changing the $config['uri_protocol'] = 'AUTO'; in config.php to all the other options, but no luck.

I changed the Force URL query strings option, tried yes and no, no luck.
My site's root directory is set to full URL, not "/". I'm using version
2.7.0 of Expression Engine, when enabling the debug option my output is this:

 Template group and template not found, showing 404 page

which is weird. I can't create new entries or make changes, and I haven't done any changes to my site configuration, it just stopped working. My only other guess is the hosting company changed something in their protocols and it's making EE go crazy. Any help with this will be much appreciated.


texts:
EE is warning about a deprecated function from the NCE LDAP plugin:

$encrypted_password = $this->EE->functions->hash(stripslashes($user_info['password']));

I see the replacement below, but can't quite figure out how to rewrite this line to use the do_hash...and work.  Anyone able to rewrite this?
http://ellislab.com/codeigniter/user-guide/helpers/security_helper.html


texts: Upgrade failed towards the end and won't continue, CP is blank

texts:
I was upgrading my client’s website from a pretty early version (around 2.4 or something) to the latest. I followed all the steps in the upgrade process and when it started I could see it incrementally making upgrades.

However, it came up with this error after a while:

{“error”:” Error Number: 1060
\n\n Duplicate column name ‘includeseconds’
\n\n ALTER TABLE exp_members ADD \n\tinclude_seconds char(1) DEFAULT ‘n’ NOT NULL AFTER time_format
\n\n Filename: /www/eh20217/publichtml/system/codeigniter/system/database/DB_driver.php
\n\n Line Number: 382
”}

I then tried to do the upgrade again but it keeps carrying me to a blank page. I did some googling and decided to delete the safecracker folder from third party but that’s no help

I’ve tried deleting the installer folder but when I do that the control panel appears as blank.

I tried moving the installer folder to the root and then turned off extensions via config:

$config[‘allow_extensions’] = “n”;

And I actually get to the CP login screen but once I submit it goes to a blank page. I’ve deleted switchee from the third party folder because I also saw that someone was getting issues with that plugin when upgrading, but it hasn’t helped.

I also posted this as an urgent ticket since yesterday but I guess as it's weekend response time is slow.

Any help would be appreciated!


texts:
It's quite a "general" question.

Our site has 60k posts.
Each post has 10-15 relations and almost 50 custom fields and several categories options. Mostly focused in one channel.
One category group has more than 1000 sub-categories inside.
Grows 150 users a day.
Users became "posts" as we use Zoo Visitor.
We use Ce Cache to cache posts.

Just need to know if we are ok to grow this way. We are having several 404 (error 500) after a server migration, and things are becoming slower week after week. Running on a dedicated server @hostgator. Receiving only 4k unique visitor each day.

Should EE be able to handle this db volume without problems?
I read something about php as cgi not a good practice?


texts: ExpressionEngine add javascript to CP head

texts:
I have been struggling with this for a while now and am stuck I am writing an extension for ExpressionEngine 2 (not a module) and need to add a script tag to the header of the page.

I have tried:

$script = "<script type='text/javascript'>alert('added');</script>";
$this->EE->cp->add_to_head($script);

but im guessing this only works when its a module, i have also tried (which i am pretty sure should work):

$this->EE->cp->load_package_js('file');

but i get the following error:

Call to a member function plugin() on a non-object in expressionengine/libraries/Cp.php on line 766

I have also tried using the hook cp_js_end which loads the file but its loaded after everything else thus it does not work as intended.

Any Ideas?

EDIT

After playign around with this it looks as if you can only use $this->EE->cp->load_package_js('file'); for modules and not extensions.

I will close this issue


texts: Suggested keyword or alternative search results

texts:
We've trying to show suggested searches and initially hoped that the new lexicon and suggestions-tag would help but they do not.

Couple of examples:

Added sennheiser as a lexicon, search for sennheizer, sennhiser. it returns the suggestions as we would expect.

So far, so good :)

Searching for senhizer returns no results and no suggestions?

We also have company names we want to add such as i-Movix. When we try adding them as a lexicon it says 'i-Movix' is not a valid word.

Is there a way to improve this?

Current results tag:

{exp:low_search:results
    query="{segment_2}"
    {if get:collection}channel="{get:collection}"{/if}
    require_query="yes"
    limit="10"
    paginate="bottom"
    status="not closed"
    disable="member_data|category_fields"
    orderby="date"
    keywords:loose="both"
    }