texts: How do I redirect users to group-specific pages on login?

texts:
I have a log-in page that needs to direct users to content based on their member group. Currently it is very simple with just two pages.

I have tried it using the single option and it directs correctly.

Example:

  {exp:member:login_form return="member-area/" }

However, if I introduce a conditional into the mix, it does not redirect correctly:

{exp:member:login_form {if member_group == "5"} return="member-area/" {/if} {if member_group == "1" || member_group == "6" || member_group == "7" || member_group == "8"} return="internal-staff-center/" {/if} }

I suspect I have overlooked something. I would appreciate any assistance in getting this correctly.

Thanks.

Forrest


texts: Combine multiple categories into one select option

texts:
I am creating a website for an apartment complex where the user can find apartments based on a floorplan. I have Low Search installed and am attempting to create a filtered search form using categories assigned to each apartment.

Question: is there a way to combine multiple categories into one option in a select dropdown? For example, I have six categories (floor 1, floor 2, floor 3, floor 4, floor 5, floor 6).

I want two select options where each option returns results for three of the six categories. If you choose the first option, it will return results for entries categorized with floor 1, floor 2 or floor 3. If you choose the second option you get entries categorized with floor 4, floor 5 or floor 6.

I've tried the following, within a Low Search form tag:

<label>What floor do you like?</label>

<select name="category[]">
  <option value="">--</option>
    {exp:channel:categories
      category_group="1"
      show="1|2|3"
      style="linear"
    }
      <option value="{category_id}"{if low_search_category ~ '/\b'.category_id.'\b/'} selected{/if}>
          I'm afraid of heights, lower floors are preferred
      </option>
    {/exp:channel:categories}
    {exp:channel:categories
      category_group="1"
      show="4|5|6"
      style="linear"
    }
      <option value="{category_id}"{if low_search_category ~ '/\b'.category_id.'\b/'} selected{/if}>
          The higher the better!
      </option>
    {/exp:channel:categories}
</select>

But what displays in the select dropdown is:

--
I'm afraid of heights, lower floors are preferred
I'm afraid of heights, lower floors are preferred
I'm afraid of heights, lower floors are preferred
The higher the better!
The higher the better!
The higher the better!

I am on EE 2.8.1 with Low Search 3.5.2. Any insight provided would be most appreciated!


texts: How to show Transcribe language links only if it has entries?

texts:
The Transcribe documentation about the language_link tag:

  Using the entry_id parameter in conjunction with the has_entry
  parameter will only output links for languages that have entries
  related to the entry_id passed in

I can't get it to work, and no example to be found. The documentation mixes variables and tag parameters, it's not clear.

Anybody here that knows how to only show a language link when the current viewed entry has an entry for that language?


texts: Looking for a way to store office holidays to display custom messages on days we're closed

texts:
On our company contact page we have a footer with contact information that should change based on whether or not we're open. I'm using Low Variables to store this information and have standard office hours in there with a Time Select. That part is easy enough. It's the office holidays that are stumping me.

1. Easy Solution:

I build in a Matrix field where we enter, say, the next five years of holidays. Then I match the current date against that list when loading the contact page and show the appropriate footer.

2. More Automated/Awesomer Solution:

? I'm not sure. This is tricky because of things like Thanksgiving, or holidays that span multiple days. Ideally I'd just use some public holiday calendar feed and check off the holidays we honor.

Suggestions? Unfortunately I don't have time to develop something custom. May need to go with option #1 for now.


texts: How do I add .jpf mime type to config.php?

texts: In order to upload JPEG2000 (.jpf) images to a site I need to add a new mime type to config.php. What is the correct way to do this?


texts: After moving EE to a new server front-end hangs and never loads

texts:
Moving EE between QA servers and experiencing an issue. The CP loads right up without issue. Can go straight to the home page as well (which is not managed with EE). However, when going to the blog channel (currently the only content we have managed with EE) the page gets stuck loading and never displays any content or errors. The loader in Safari's address bar just stop at about 10% and never loads.

Suggestions on places to look for issues? I've double/triple checked all paths and everything looks correct.


texts: Exp-resso store Payment order description

texts:
While I'm here I'll might ask the next question as well.

When placing and paying an order on the transaction description from the payment provider it only says "Order 12" or another number.

Is it possible to change this. For example by adding the product title or something else custom. One of the custom order fields perhaps?

I'm setting up Store to work with donations and a little shop. It would be nice to add something extra to the description like "Donation ..."

Running EE 2.5.5 and Store 1.6.3

Tnx, Martijn


texts: How to Setup Redundant DB for ExpressionEngine?

texts:
Does anyone have an experience setting up ExpressionEngine with a redundant db architecture? Per corporate requirements, I must host the EE site within our corporate server structure.

What is the best method for setting up redundant data server? I've read other articles that say EE doesn't work in a Master -> Master replication. I've read other articles that say you can use CI to connect to multiple DB but nothing that is tested for EE.

Any other options?

Thanks


texts:
I changed password correctly according to the procedure but the new password still not working. I can not access control panel of my website to change some contents.
Please help


texts: Expresso Store: AJAX shipping cost update

texts:
I'm kind of stuck on getting AJAX shipping cost update for Expresso Store.

Shipping part in the checkout page looks like:

            Shipping

                {field:shipping_method}
                {if error:shipping_method}
{error:shipping_method}
{/if}

{embed="cart/shipping"}

then "cart/shipping" include looks like:

{exp:store:checkout}
{order_shipping}
{/exp:store:checkout}

All works fine when I use "Update Total", but my goal is to update shipping cost on shipping method select using AJAX below

In that case I'm not able to retrieve updated shipping cost.

Any clue where I have made an error?

UPDATE

"cart/shipping" updated to:

{exp:store:checkout}

{order_shipping}

{/exp:store:checkout}

And AJAX part looks now like:

$(document).ready(function() {
    $("#shipping_method").change(function() {

        var url = $(this.form).attr('action');
        var data = $(this.form).serialize();

        $.post(url, data, function() {
            $("#order_shipping").load("/cart/shipping #oso);
        });
        return false;

    });
});

It can retrieve shipping cost, but initial cost for the shipping, when checkout process is started, it becomes selected first from the shipping method list but with real value of 0. I have try to .prepend empty option field, but no matter what is selecting first shipping method for new carts (I'm using UPS shipping module). Default shipping method for new carts from the Store settings is not working either.


texts: Using Low Replace and Low Nice Date Together

texts:
The database has a string which is a date in the format of dd/mm/yyyy (13/03/2014). No, it has not been saved to the database as a proper date/time.

With Low Replace we are able to change the format of this to yyyy/mmm/dd

{exp:low_replace find="/(\d{2})\/(\d{2})\/(\d{4})/" replace="$3/$2/$1" regex="yes"}
  13/03/2014
{/exp:low_replace}

Is it possible to apply Nice Date to the date after Replace has done it's thing as nice date won't work with dd/mm/yyyy? Or do we need to use something like Stash to create a variable for Nice date to work with once Replace has converted it?


texts: Removing  tag from weblog text input field

texts:
I have a field in my weblog where a price can be entered on my site which is run with EE 1.7.1.  In the template, I have a javascript code that adds a comma and a dollar sign.  The problem is that in the latest weblog entries, it is sending the entry field to the template wrapped in paragraph tags.  The tags don't show up when I look at the weblog itself, but when I inspect where it should be on the page, the source code shows the tags.

I have tried adding script to remove the tags, but it seems like the html tag is crashing the code.

My code, both for removing the tags and for adding the comma and dollar sign is

    function checkP(p){
        if(p.substring(0,3) == "
")
            p = p.substring(3,s.length-4);
        return p;
    }

    function stripTags(p){
        var StrippedString = p.replace(/(<([^>]+)>)/ig,"");
        return StrippedString;
    }

    function addComma(amount){
        if(typeof amount == "string"){
            var a = checkP(amount);
        }else{
            var a = amount.toString();
        }

        if(a.length > 3){
            var x = a.substring(0,a.length-3);
            var y = a.substring(a.length-3, a.length);
            var b = x + "," + y;
            document.write(b);
        }else{
            document.write(a);
        }
    }

My code that is controlling the price is

        {if cf_inv_msrp!=""}MSRP: $
        {if:elseif cf_inv_price !="" AND cf_inv_price!="0"}Price: $
        {if:else}Call for Price{/if}

When I add an alert to addComma, it never gets called which leaves me to believe that the tags are messing up the script's call.

The code works for all of the other entries, and I've tried removing the price and added it again.  For an example of what the script should output, you can look at this site.


texts: Special Characters in Template Group Name (Chinese Characters)

texts:
We have a translated page in Chinese just so we can give the Chinese users a quick understanding in there language what the website is about. We want to display it here: domain.com/中文

Where 中文 = chinese so that part of the URL is also in there language.

Easiest way I'd of thought would be to make a Template group and give it the name 中文 and then create and index page and boom - its done.

Expression Engine however only seems to accept unicode characters or something because characters with accents and Chinese, Japanese Korean etc characters are not allowed. Anyone know of a work around or a way for Chinese characters to be accepted?


texts: MSM: links not working in the second domain, shows only default template

texts:
I’m working on a MSM setup and I’ve got the index template going, but the system won’t show the subtemplates.

To explain the basis situation:

I setup the Multiple Site Manager for two domains. One is the first domain, which worked as expected, The second one is in a subfolder with it's own DNS domain name.

Basically I setup the sites with the index.php and admin php files placed in their folders as instructed in the docs, but for some reason links didn't work in the second domain. Every link just shows the default template.

I've set the index.php file for the second domain as follows:

config settings:

  $assign_to_config[‘site_name’]  = ‘f...._nl’;
  $assign_to_config[‘cp_url’] = ‘........nl/admin.php’;
  $assign_to_config[‘site_url’] = ‘.......nl’;

Thanks!


texts: channel entries starting next at the month

texts: I want to get all the channel entries for next next six months starting at the next month. I can use the month_limit and set it to 6 and I can use the start_on parameter to specify what date to start on but how do I get the 1st of the next month into that parameter?  So today being April 1st I want the start_on parameter to have 5/1/2015 00:00, how to do I get that into the start_on parameter?


texts: Call exp stash multiple times through multiple exp channel calls

texts:
Can I set the entry ids to the same stash name multiple times?
 ie, at one exp channel call , i will call exp:stash:set name='x'.
Again I want the entry ids append to the same 'x' with another exp:channel:entries call. Is it possible?

It seems it's not working if we call exp:stash:set again.

My code:

{exp:stash:set  name="recently_viewed_ids" replace="yes" output="no" parse_tags="yes" trim="yes" append="yes"  }
  {exp:channel:entries channel="blog"  dynamic="no" backspace="1"  entry_id="not 26|24"}{entry_id}|{/exp:channel:entries}
{/exp:stash:set }

{exp:stash:get name='recently_viewed_ids'}{/exp:stash:get}

Outputs 23|22

{exp:stash:append name="recently_viewed_ids"  }
  {exp:channel:entries channel="business"  dynamic="no" backspace="1"  entry_id="8"}{entry_id}|{/exp:channel:entries}
{/exp:stash:append }

{exp:stash:get name='recently_viewed_ids'}{/exp:stash:get}

Outputs 23|22

Please help


texts: How to show related channel entries using Structure?

texts:
Okay first of all, many apologies for the title of this post. Having a bit of a brain drain today and couldn't really think of a better way of putting it.

Here goes though.

I am using Structure on a site running EE 2.6.1. I'd like to have a page which is called 'Winners'. That page is linked to a Channel which will store all the winners names and they will be displayed on that page.

So far so good and easy to do.

Next up I need to have each of those winners names clickable and to go to a new template which will be a blog type page which will show entries from another channel which are related to the winner.

So basically :

1 - A page which lists winners (all entries in a winners channel)
2 - Each name is clickable to another template
3 - When reaching this template a Channel tag is on the page (winners_blog)
4 - The entries in this Channel (winners_blog) have a relationship field to relate them to the winners.
5 - This template will then only show blog posts for that winner.

1 & 2 are done but I'm having a brain drain on how to now only show the blog posts related to the winner once on that page.

If anyone understands what I'm on about here and can lend a quick hand then that would be greatly appreciated.

Thanks.

Best wishes,

Mark


texts: Moved updated site to live hosting, getting white screen on front-end and when trying to view CP login page

texts:
I got an established site running locally on my computer and updated EE from 1.6.9 to 2.7.3. I also made other modifications to the site and it was working fine locally. I moved all the local site files to the live host and renamed the old stuff "system_old, themes_old, etc." like I was doing an upgrade. After everything was uploaded I changed the folder names and dropped the live DB and then imported the updated DB. I get a white page when trying to access control panel and the front-end of site. I have attached an image of the debug error I get. I can see the old local path is still there... I 99% sure my DB is connected ok, and all files have been uploaded. I haven't changed any paths yet, because I cant login to the CP...any ideas? I really need to get this working soon as my site is down :/

EDIT: I've managed to get rid of the PHP errors, but the Fatal Error belwo those is still there causing issues...any idea what that is from?


texts: Sharing content between sites with MSM and Structure

texts:
I have a MSM installation that will be powering 3 different sites.  One site is essentially a small stand-alone brochure site and is running fine.  The other two are Site A - default site w/ most of the content and Site B, a smaller site that is going to re-use some content from A.

The short question is: Is it possible to use Structure and MSM to share content between sites?

Longer details:

All the sites are using Structure to manage pages.  In Site B, I have duplicated the channels and Structure layout for this particular page I'm trying to display.  I have also duplicated the template wich includes the channel:entries tag:

{exp:channel:entries
    channel="businesses"
    limit="1"
    site="default_site"
}

The only difference between Site A template and Site B is the site="default_site" tag.  Everything else in the templates, channels, and entries are the same between sites.

Side note - my navigation templates use a similar channel entries tag (limited to a specific category id) and they display fine.  The correct content entries are being displayed in the nav on Site B.


texts:
I have a client that has an old version of EE running on their site (v 2.1.3) and we just migrated their site to a new server with MySQL 5.7.  This broke several pages of their site, and we are aware of the issue. We are not the developers of the site, and the original developers are MIA.

Problem is, client wants us to fix this as quickly as and inexpensively as possible, and it looks like the MySQL bug was fixed in 2.11.0, but I see no way to get ahold of that build since it's very old, no longer supported.  Willing to pay for it, but just don' know how to download it.

Upgrading to 3 or higher will be problematic with add ons, so we just need to correct this issue asap.

Any advice or help would be appreciated.

Thank you

Tom


texts: How can I build an auto email alert system based on saved searches?

texts:
Ok, what I'm trying to do is build a feature for a real estate website that will allow users to do the following:

register on the site,
do a search of properties stored in a channel,
save the search criteria,
then receive an email alert when a new property is added that matches their saved search

I've done some research on this and there doesn't seem to be a straightforward way to do this in EE. I've seen MX Notify Control addon but it seems that this would alert on all new entries to a channel to all users.

Below is what I'm thinking of doing. I'm hoping I could get some input from the EE community on what they think of this approach, is it overcomplicating things or maybe there's a suggestion for a better approach.

Here goes:

Install Solspace Super Search and Email-from-Template addons
Allow users to register on the site using native EE functionality
Users can then search the entries in a "Property" channel based on keyword, price, location and/or status.
Then allow users to save their search using Solspace Super Search and their Save Search Form tag
I could create a standalone page then that loops through all saved searches using the exp:super_search:history tag, pull out the search criteria, use that criteria to do a search of the property channel and limit the results to ones added in the last 24 hours only.
If entries are retrieved, create an html email with the property details and send the mail using Email-from-Template addon or possibly through Postmark App or similar.
Set up a cronjob to run this page every 24 hours at a quiet time of the day, e.g. 4am

So, that's what I'm thinking. I know this page could become quite resource intensive with loops within loops (the more members and saved searches, the longer it will take to process) but I can't think of another way to do this.

Anybody got any suggestions, ideas or pitfalls I should consider?

Or maybe I should write a custom addon to do this?

Thanks,

Dave


texts: Fatal error on checkout with shipping extension

texts:
I'm using the USPS shipping extension and receiving the below error on the checkout page:

Fatal error: Uncaught exception 'Store\Exception\ShippingException' with message 'Authorization failure. Perhaps username and/or password is incorrect.' in /mypath/assets/third_party/store_usps/ext.store_usps.php:135 Stack trace: #0 [internal function]: Store_usps_ext->shipping_methods(Object(Store\Model\Order), Array) #1 /mypath/expressionengine/libraries/Extensions.php(262): call_user_func_array(Array, Array) #2 [internal function]: EE_Extensions->universal_call('store_order_shi...', Object(Store\Model\Order), Array) #3 /mypath/expressionengine/libraries/Extensions.php(119): call_user_func_array(Array, Array) #4 /mypath/assets/third_party/store/src/Store/Service/OrdersService.php(159): EE_Extensions->call('store_order_shi...', Object(Store\Model\Order), Array) #5 /mypath/assets/third_party/store/src/Store/Tag/CheckoutTag.php(61): Store\Service\OrdersService->get_order_shipping_methods(Object(Store\Model\Order)) #6 /mypath/assets/third_party/s in /mypath/assets/third_party/store_usps/ext.store_usps.php on line 135

This error seems similar to this one. I am sure that I have the correct username in the extension. There's no field to place the password.


texts:
I run a football/soccer site and I am looking to create a feature on my site that asks a member several questions about themselves, club etc.  All they will need to do is answer the questions.  The questions will be predefined by myself and will probably use Channel Form for them to fill in.

What would be the best way to create the question fields.  Is just one field for each question using text area type.  Or is there a better way.


texts: Receiving error code that seems to be locking up the Edit Channel Search function

texts:
I am new to EE and hoping for some help.  Currently using version 2.5.5.  Received the following error code:

A PHP Error was encountered
Severity: 8192
Message: Non-static method Calendar_upd::_default_preferences() should not be called statically, assuming $this from incompatible context
Filename: calendar/data.calendar.php
Line Number: 338

Since this began appearing, the Edit Channel search function is not working. Just get the spinning wheel, no results. Any suggestions on how to resolve would be appreciated.  Thanks!


texts: Trying to add a Captcha to a form created in FreeForm

texts:
First time posting.  Did a cursory search on this subject but didn't find what I was looking for.  If the answer is already in another thread, feel free to redirect me there and I will read it very carefully!

The organisation I work for, a non-profit called Volunteer Bénévoles Yukon, uses ExpressionEngine for our website hosted at volunteeryukon.ca.  We have a contact form (created with Freeform Pro 4.2.2) at this URL http://volunteeryukon.ca/contact/.  It's been there for years without any sort of CAPTCHA and it wasn't an issue, but over the last 6 months or so, the amount of spam messages we've received through it have triggered us to look for ways to reduce such.

Initially, I thought to add a CAPTCHA to the form, and in ExpressionEngine, when I navigate to Forms -> Composer (for said form), which takes me into Freeform Pro 4.2.2, I was able to add a Captcha above the Send button on the form. I saved, came back in the same way, and confirmed the Captcha addition took.  But... when I browse back to the contact form as an anonymous browser, there is no Captcha showing up, and the form can still be filled out by anyone for anything (including, it would seem, spam bots).

I tried to click on Help (in the same menu bar as Forms) but it takes me to a "Whoops! (a.k.a. 404 Not Found)" (the URL is https://docs.expressionengine.com/latest/cp/add-ons/module_manager.html).

I'm not sure what steps I might be missing.  The form looks right (with the added CAPTCHA) in Composer / Freeform Pro 4.2.2, but the Captcha just isn't showing up on the actual form browsers view.  Help?"


texts: How to control which links are automatically turned into links

texts:
I'm working on a site that has a template which shows a range of information.

Firstly the page shows a few paragraphs of text. These often contain email addresses within the text, meaning I'd like to have 'Automatically turn URL's into links' turned on.

Secondly, the page shows some contact information, including an email address, which I'd like to display as 'Email Address: Click here' rather than 'Email Address: Someone@abc.com' due to space restrictions. In this case, if I turn on 'Automatically turn URL's into links' I get a lot of strange code output on the front-end.

I'm trying to avoid splitting this information between two different channels, as it makes sense for the customer to be able to enter or edit both peices of content from the same screen.

Does anyone know a way to enable automatic links for the channel but stop the issue with the 'Email Address: Click here'?


texts: Buy X Get Y for different products in a category

texts: I have an expresso store that we've set up with a "Buy x get y discount". But it's not working as expected as it only works if you buy multiples of the same product. This is not really useful, it needs to apply to all the products selected for that promo code.


texts: What's the proper way to alter a form in the control panel? (Using an extension in EE3)

texts:
I have looked through the hooks and cannot figure out which hook could provide a way to alter a form in the control panel (e.g. the create/edit member form or publish/edit entry form). I don't want to use the CSS/JS hooks because that's altering it client-side.

Is there a way to either:

Grab the output prior to it being sent to the client
(even better) Get the objects used to create those forms and alter them?

I also want my extension to be able to be called on every control panel page.


texts:
Hypothetically...What would be the top ten add-ons for site that is like this?

Lets say they want a blog, be able to change the header sliders on several pages and control the image galleries, suggestions?

More specifically, which ones would be best in regard to security,sustainability and reliability as the site ages?


texts:
I was wondering if it's possible to work out if it is a user's first visit to the site and then redirect them to another site based on their country of origin (perhaps through GeoIP), but if they come back to the uK site then just show them the UK site.

Perhaps storing the first time visit check in a session?

So as an example, if it's someone's first visit to the .co.uk site and they are in Germany, then redirect them to the .de site.

However, if they visit the .co.uk site again - then we can tell their intent is to see the UK site and we let them view it until the session expires.


texts: How do I get the full Assets URL from Low Variables?

texts:
I'm having trouble getting the full URL to an image using Low Variables and Assets.

Using the short name of the variable just returns the file name without the rest of the path. {lv_my_image} renders as image.jpg not http://site.com/images/image.jpg.

I've tried several ways to do this.

{lv_my_image} = image.jpg
{lv_my_image:url} = {lv_my_image:url}

{exp:low_variables:pair var="lv_my_image"}
  {url} = *nothing is returned*
  {assets:url} = {assets:url}
{/exp:low_variables:pair}


texts:
Looking to build a Wordpress inspired "shortcode" for my EE editors to insert stylized content since they can't design their way out of paper bag. I'd like to put these shortcodes into a dropdown on my WYGWAM editors. Basically just a drop-down list that would paste in a series of Global EE variables into the editor instance.

Example:

[DROP DOWN]
-----------
1 Column (value would paste in something like: {column1} Put your info here {/column1}

2 Column

3 Column

4 Column

I know I likely need to dive into the CKEditor config.js and link to a new plugin of some sort. Did some searching and found something someone is working on for CKEditor 4, but not sure what that is going to do with WYGWAM and I believe they are still using CK3.

Any help or insight would be greatly appreciated.

Thanks,
Geoff


texts: MySQL strict mode: disable on a session basis?

texts:
I'm getting mysql errors suggesting that my host's use of strict mode is a problem (with an addon).  The host wants mysql strict mode on their DB server.  Can I override strict mode for my EE sessions?  And if so, how?

I see that codeigniter has a database config setting

  $db['default']['stricton'] = FALSE;

but I'm unfamiliar with how to use it.  Simply putting

  $db['Expressionengine']['stricton'] = FALSE;

into system/expressionengine/config/database.php has no effect.  The mode still stays "STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION"

The EE codebase includes a conditional with 'stricton' = TRUE within system/codeigniter/system/database/DB.php
But its not clear how to invoke that either (or hack an analogous FALSE conditional)

Any ideas appreciated.  Thanks.


texts: "Unable to Load Site Preferences; No Preferences Found" error with HTTPS

texts:
I set "Force HTTPS connection for checkout and order tags" to "yes" in the Exp:resso Store settings and was met with this error when viewing my store pages using https:

Unable to Load Site Preferences; No Preferences Found

All http page loads are fine when I see this error with https page loads.


texts: Logged in member redirected to CP: prompted to log in again

texts:
I am using Membrr and have the following process in place:

Users sign up using Safecracker Registration
Users click on the activation link in their email
Users are automatically logged in and redirected to a "choose your membership plan" Safecracker page (using the add-on: http://devot-ee.com/add-ons/member-activation-redirect)
For 2 of the membership plans, users are redirected to a Safecracker "profile manager". Users remain logged in and are able to access the profile manager. The profile manager has a check {if logged_out} to redirect them to the sign in page, if needed.
For 1 of the membership plans, users are redirected to the EE control panel (/system/).

PROBLEM: users who picked the membership plan in #5 are prompted to log in at the EE log in page. It's as if they aren't logged in anymore. Users can still log in using the credentials they signed up with, though. Any ideas what might be wrong?

In all cases, once the user selects a membership plan, they are redirected to the "profile manager" template that has the following code:

{if logged_out}
    {redirect='/sign-in/'}
{/if}

{exp:membrr:not_subscribed}
    {redirect='/membership-plans/'}
{/exp:membrr:not_subscribed}

{!-- Redirect to EE CP --}
{if group_id == '8'}
    {redirect='/system/'}
{/if}

... profile manager template stuff down here ...


texts: Intermitent failure of Call-backs from World Pay

texts:
Using EE 2.5.3 and exp-resso 1.6.3

Basically we keep getting call-back failures. I'd guess around 5% of orders or maybe slightly less all encounter the exact same error:

Our systems have detected that your callback has failed.

This callback failure means we were unable to pass information
to your server about the following transaction:

   Transaction ID:
   Cart ID: xxxx
   Installation ID: xxxxxx

Error reported: Callback to http://www.mysite.co.uk/index.php?
ACT=66&H=381d0eea799cbf1ebbddbacca7718ee5: NOT OK, recevied HTTP status: 302
Server Reference: ukdc1-pz-pay03:callbackFailureEmail-1182:MerchReq-126-73

Note, it rarely contains a transaction ID which is very strange in and of itself.

World-Pay have insisted that everything is correct at their end and in the World-Pay settings. The only thing they weren't sure about was the call-back URL, which is set by the shopping cart module itself via it's call to WP.

Now, we know the server is working fine, we've had instances of successful payments very close either side of failed payments (as well as ones on their own) and Paypal is working fine with no callbacks ever.

If the server wasn't responding, it also would display a 5xx error, not the 302 redirect, which I believe is how the cart responds normally. We have a script that tests the server's response times from queries to the site and all have them are responding in the below 5 second range at worst.

So we pretty much can't think of anything else left to check.

Hope you can help!

Thanks

Steven Lockey


texts: Expresso Store: How to check if product is already in the cart?

texts:
This is my first time working with Expresso Store, so forgive me if this question is extremely basic, but...

How do I show in my {exp:store:product} tag pair do a test like:

if product is in cart,
 show 'Product is in your cart',
 with option to add another

Make sense?

Thanks for any help.
Alex


texts:
I upgraded to the latest version of playa (unsucessfully with Upgrader then manuallly). The module and field type are showing as 4.4.1 ok but I am getting php errors on all pages that contain playa fileds:

Error Number: 1054

Unknown column 'rel.parent_is_draft' in 'where clause'

SELECT DISTINCT(rel.child_entry_id) AS entry_id FROM exp_playa_relationships
rel WHERE rel.parent_entry_id = 5416 AND rel.parent_is_draft = 0 AND
rel.parent_field_id = 188 ORDER BY rel.rel_order


texts:
I'm building a site that has 20 city markets using a Markets Channel. Each market will have it's own version of a page, so austin/store, nyc/store, austin/about, nyc/about, etc.

I also have a National market that is the catch all version of a page that does not have a market in the first segment, so /store, /about, etc.

The thing is that if we're using the National market channel to display a page I don't want that segment in the URL. It should not be national/store, national/about. A visitor should never see a market in the URL unless it's on a proper market like austin or nyc.

My question is, can I use resource router to accomplish something like this and how would I go about setting it up so I don't have to create two versions of a route, one for national and one for proper markets? And then on top of that only displaying segment_1 if it's a market besides national.


texts: 404 redirects and google analytics question

texts: I read this article and setup my single entry pages with the 404 redirect conditional. I also setup the 404 page in the CP and set Strict URL's to YES. When I try and go to a broken link I do get redirected to the 404 page, but it still has the broken URL in the browser. I have analytics installed on the 404 template but I'm wondering how this will show up in Google Analytics. I want to be able to see what URL people are visiting and getting the 404. Any help? Thanks!


texts: SQL-Error when submitting an entry with Tags

texts:
When trying to create an entry which has a Tag-field in it, I got the following error. (Please note, when creating a entry in a channel that has NO Tag-field, I get no error).

SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sv_dev.t.tag_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by:
SELECT `t`.`tag_id`, COUNT(e.tag_id) AS count FROM (`exp_tag_tags` t) LEFT JOIN `exp_tag_entries` e ON `e`.`tag_id` = `t`.`tag_id` GROUP BY `e`.`tag_id`

Additional info:
Database server
Server: Localhost via UNIX socket
Server type: MySQL
Server version: 5.7.12-0ubuntu1 - (Ubuntu)
Protocol version: 10
Server charset: UTF-8 Unicode (utf8)

Web server
Apache/2.4.18 (Ubuntu)
Database client version: libmysql - mysqlnd 5.0.12-dev
PHP version: 7.0.4-7ubuntu2.1


texts:
I am trying to get the maximum value of the entry_id within the exp_channel_titles field of an ExpressionEngine2 database using the following code:

ee()->db->select_max('entry_id');
$query = ee()->db->get('exp_channel_titles');
echo "<pre>";
   var_dump($query);
echo "</pre>";

Above code only gives me this:

object(CI_DB_mysql_result)[674]
  public 'conn_id' => resource(45, mysql link)
  public 'result_id' => resource(386, mysql result)
  public 'result_array' =>
    array (size=0)
      empty
  public 'result_object' =>
    array (size=0)
      empty
  public 'current_row' => int 0
  public 'num_rows' => int 1
  public 'row_data' => null

How could I get the actual MAX value from the query?


texts: Freeform Pro Composer - Dynamic Recipients always uses default notification template

texts:
I am wondering how I can specify the notification template for a form created using the composer feature which has dynamic recipients. When the form is sent to them it always uses the default template. I have tried adding it to the tag in the template

{exp:freeform:composer parse="inward"
    form_id="{exp:stash:get name='petition_id' trim='yes'}"
    return="act-now/thank-you"
    recipient_user_template="petition_template"
}

But according to the documentation this is not even a parameter of the composer tag but just of the form tag. I have tried setting the user notification template in the settings of the actual form in the control panel but nothing seems to change it from the default.

Freeform Pro 4.2.2 on EE 2.9.2


texts: Wygwam field not completely loading for one channel entry

texts:
We have a client site that uses Wygwam 2.7.1 on EE 2.5.3 and we have an issue on only one channel entry, and only for a few people. When the entry is loaded in the CP, certain users just see this:

All other users see the Wygwam field perfectly fine.

This channel entry has a lot of YouTube video embeds in the Wygwam field (about 20 videos). That's the only thing different from the other entries and this is only happening for two users so far on Firefox. There is a js error that only shows up for the users who are having this issue. The error is:

TypeError: w.filter is not a function
http://www.siteurl.com/themes/third_party/wygwam/lib/ckeditor/ckeditor.js
Line 31

I can't recreate this same error on any other computer. Has anyone come across this before or has an idea of how to fix it.


texts: prev_entry and next_entry not outputting url_title_path

texts:
I have a bit of a weird situation. I have an entry, and want to show next/previous buttons. I'm using Low Reorder, and this is my code:

    {exp:low_reorder:prev_entry
        set='projects'
        url_title='{segment_3}'
    }
         {title}
    {/exp:low_reorder:prev_entry}

    {exp:low_reorder:next_entry
        set='projects'
        url_title='{segment_3}'
    }
        {title}
    {/exp:low_reorder:next_entry}

When the template gets rendered, it doens't render the {url_title_path=''}, but just outputs it raw. This also happens with native next_entry and prev_entry (which I reckon Low Reorder delegates to). When i put in /work/projects/{url_title} that does work however. Anyone have a clue what's going on here?


texts:
I'm new to EE and trying to learn how to use Channels and Categories.

I've created a Channel, then created Channel Fields, then associated the two. I am able to add entries to that channel just fine.

I then created a Categories Group, then created 1 category under that group. Afterwards, I created 3 category fields. They are all Select List field types. The 1 category I created seems to be associated with the 3 category fields automatically.

Then I went into my Channel, under "Edit Group Assignments" and associated the Categories Group.

When I try to add a new Channel entry, the Categories tab has a checkbox for the Category I associated with the Channel. How do I select the appropriate values from my Select List and associate with with my Channel entry?

These Select List fields used to be a custom channel field, but because I am trying to "group by" these fields, it seems like I should be using categories.


texts: ExpressionEngine Control Panel SSL HTTPS Issue

texts:
I have an issue with the HTTPS header for the ExpressionEngine control panel where the JS is being disabled. It keeps generating error messages where HTTP is being loaded over HTTPS (see below):

Mixed Content: The page at 'https://domain.com/sitebox/?/cp/homepage' was loaded over HTTPS, but requested an insecure script 'http://domain.com/sitebox/?S=0&D=cp&C=javascript&M=combo_load&ui=core,widget,mouse,position,sortable,dialog,button&plugin=ee_interact.event,ee_broadcast.event,ee_notice,ee_txtarea,tablesorter,ee_toggle_all,nestable&file=react/react.min,react/react-dom.min,json2,underscore,cp/global_start,cp/form_validation,cp/sort_helper,cp/form_group,cp/modal_form,cp/confirm_remove,cp/fuzzy_filters,components/no_results,components/loading,components/filters,components/filterable,components/toggle,components/select_list,fields/select/select,fields/select/mutable_select,fields/dropdown/dropdown&v=1557994073'. This request has been blocked; the content must be served over HTTPS.
?/cp/homepage:1

Mixed Content: The page at 'https://domain.com/sitebox/?/cp/homepage' was loaded over HTTPS, but requested an insecure script 'http://domain.com/sitebox/?S=0&D=cp&C=javascript&M=combo_load&file=cp/global_end&v=1557994052'. This request has been blocked; the content must be served over HTTPS.

The base and site URLs have been updated to cater for HTTPS. Also, the SSL is being forced in the .htaccess file and the themes URL should pick up the protocol using the PHP rule below—

// Declaring site variables
$domain = $_SERVER['HTTP_HOST'];
$protocol = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://';
$base_url = $protocol . $domain;

// Theme URL
$config['theme_folder_url'] =  $base_url . "/". $themes_folder;

The basic troubleshooting has been covered but not having much success.

Can anyone suggest a way around this please?


texts: Installing MSM 2.1.4 onto EE 2.7.0 Getting blank wwhite screen

texts:
I have installed MSM 2.1.4 onto EE 2.7.0 and I can see the menu when I click on the site name (top-right) in the c-panel but when I click Edit Sites I get a blank screen.

without upgrate is there any solution


texts: Using video links within grid text field

texts:
I have a grid called "attachments" with 2 fields.  They can enter either a File or they can enter a video url through a simple text field.  Any idea what I'm doing wrong?

However, when I try to create an href it gets all messed up for some reason and creates markup such as

https: www.youtube.com watch?etc"">testURL"

I've verified the value without the  and it spits out the url like it should, and I checked the field to make sure None was set for text formatting.

Here's my code:

{attachments}
  {if attachments:image_file != ""}
       testImg
  {if:elseif attachments:video_url != ""}
       testURL
  {/if}
{/attachments}


texts: How do I stop Expression engine from redirecting blog.mydomain.com to mydomain.com/blog?

texts: Please help.  I want to install a wordpress blog under the URL blog.mydomain.com but this seems to be getting in the way.


texts: Expression Engine 1.x Page deletion db query

texts:
Does any one know of a custom query to extract when a page was deleted in Expression engine 1.x. We have a couple pages that just disappeared and the higher ups wants answers. Any help would be appreciated.

Thanks!


texts: Please help me debug this 2.7.3 Upgrade. TypeError: d.ee_focus is not a function

texts:
UPDATE September 25, 2014: I reverted once, but now I'm trying again with an update to 2.9.0 and facing the same issue.  If anyone has any insight it would be appreciated!

UPDATE 2 I think I may have found the source of the issue.  It appears that a parallel install of the site used for QA, was interfering.  When I renamed the folder containing that site, the problem went away.  Now I need to track down why it was loading from the wrong place.  Perhaps a bug in my config_bootstrap.

UPDATE 3 The theme_folder_path variable is set to the location in one of the other installs, so that explains why it was loading incorrectly, now I need to figure out where in the blazes that is being set.  None of the usual suspects seem to have it.

UPDATE 4 I searched my entire database for what I could think of (probably serialized data, and I don't know where to look), and I searched all my configuration files and I couldn't find anywhere that theme_folder_path was being set.  I tried saving an update in the control panel and the change held, so my best guess is that the wrong value was in the database somewhere.  I've now improved my config_bootstrap setup so that it should set the correct themes folder for each version of the site automatically.  Is there any way to see where config items shown in the control panel are being loaded from?  I will post an answer to the question that will hopefully help people with this issue in the future, and will probably award the bounty to Rob Sanchez who put the most effort into trying to help me.

I upgraded from 2.5.5 or thereabouts to 2.7.3 on my local environment some time ago.  After I got my relationship related addons, queries, and templates sorted out it all worked fine.

Today I finally got around to updating the production site, and after applying the above mentioned fixes the front end of the site works fine, but the back end has some issues:

On every page of the control panel I get an TypeError: d.ee_focus is not a function error
On entry form pages, the format buttons don't load and the image and write mode buttons don't work
clicking on accessories pops me to the top of the window but accomplishes nothing else.

There were some permission errors during upload of the files for the new version of EE, but at this point I think I've reuploaded everything at least 3 or 4 times.  I suspected the themes folder, but have reuploaded from 2 different sources of 2.7.3 and nothing fixes it.  I've disabled pretty much all the addons I can without losing data and that hasn't fixed it either.

I've searched the entire systems folder and themes folder for ee_focus and cannot find it.  I do find it in themes/javascript/compressed/jquery/plugins/ee_navigation.js from older versions, but not in 2.7.3.

Where is the error coming from?  Is it causing all the other control panel strangeness?  Help me Obi Wan Kanobi, you're my only hope!


texts: Using a grid/matrix field to set stock levels for different colours with CartThrob

texts:
I'm working on a fabric store where each entry for a type of fabric has multiple colours: each colour is the same price so I don't really need price modifiers, but they can have different stock levels.

How would I set this up using CT and Grid or Matrix?

Also, the error message that comes up when trying to order an item that doesn't have enough stock is:

  There are just X remaining of item 'Y'…

but this site is selling some items which are measured in metres, some in pairs, and some in pieces and the client would like to be able to customise the error message to indicate the type, e.g. 20m of 'Y'. Is that possible?


texts: Displaying entries based on selected category

texts:
I am sure this is possible but not sure how to do this..

My site contains three 'Product' channels: HAIR, NAILS, BEAUTY.

There is also three category groups, HAIR, NAILS, BEAUTY. (Each group relates to the relevant channel noted above.)
Within each group, there is a list of related categories (brands).

There are multiple entries (products) within the site, each product having a brand (category). (There can obviously be more than one product with the same brand).

I have three page templates:

Product Range Hair - being: site.com/product-range/hair
Product Range Nails - being: site.com/product-range/nails
Product Range Beauty - being: site.com/product-range/beauty

Each one of those pages displays ALL of the products (entries) from the related channel.
Now down the side of each page, it displays the entire list of brands (categories) that relate to that channel.

What I want is to make each one of these brands a link, which when clicked will change the products displayed to only show those of that brand. (Layout remains the same.)

It would be great if the URL could also change, eg.
site.com/product-range/hair/brand1
site.com/product-range/hair/brand5

(however that is not really necessary, would just be nice.)

Code that displays all HAIR products (one after another)

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

{title}

{categories}
{category_url_title}
{/categories}
{h_desc}
{/exp:channel:entries}

My current code that displays all the related HAIR brands
(I am using the GWCODE add-on that displays the number of products in each brand.)

{exp:gwcode_categories channel="hprod" entry_count="yes" style="linear"}

{cat_name} ({entry_count})

{/exp:gwcode_categories}

The href shown is how i would like it to work, but once again that does not matter. All I  want is for the link to change the product entries displayed on the page, to change and only display those of the selected brand.

ANY HELP IS APPRECIATED!


texts: What is the easiest way to display author information on channel entries in a template?

texts:
In EE 2.7.2,

If you have a channel where there are various authors to different articles, is there a way using the full version of EE to simply show some fields based on the author?  The goal would be to display custom author fields.  The code might look something like what you see below.

{exp:channel:entries channel="articles" orderby="date" sort="desc" limit="10"}
    {title}

{author_name}|{author_favorite_sport}

{/exp:channel:entries}

I do have Solspace User installed, as well as my own custom module, but it just seems that I'm overthinking this somehow.

TIA for any help!


texts:
One of my clients is having major "re-draw" issues with WYGWAM while using Chrome (Mac):

http://i.stack.imgur.com/n8l4D.png

The only way to temporarily lose the lines is to keep resizing the text area. Does anyone know a more permanent solution or reason why it's happening?

We're using EE 2.5.2 and WYGWAM 2.6.3.

EDIT: Just wanted to note that this is fixed in the latest version of Chrome (24.0.1312.52).


texts: Is it possible to install/create goup channel on theme install automatically

texts:
I am looking to provide my client with the theme.

Is it possible to install/create group channel on theme install automatically.

For eg: In wordpress, We can create custom theme options and meta fields within posts and pages. Similarly is it possible that I can code the extra field portion in my code so that client can simply install theme and create page content rather then creating channels and fields at backend?


texts: Characters are being re-encoded in control panel

texts:
I am having a strange issue.

I have the latest version of EE 2.5.3 installed.

If I update any text inside of a text area in the control panel (including templates, a template for an extension like Better Meta), certain characters are automatically converted to html encoded tags. For example, < becomes &lt;

Working from flat-file templates, this isn't an issue. This only occurs when editing in the control panel.

Any ideas? Here is a screenshot: http://f.cl.ly/items/3u2Q190k3g4506052p0d/wtf.png


texts: How to Implement File Upload Progress Bar with BlueImp JQuery File Upload and Channel Form?

texts:
I have trouble combining Channel Form and BlueImp JQuery File Upload (https://github.com/blueimp/jQuery-File-Upload/).

I always getting "Your channel entry must have a title." although I have set the value of Title in HTML.

Basically I have these:

HTML:

{exp:channel:form channel="artworks" include_assets="no" include_jquery="no" json="yes" return="register/step3/{segment_3}"  class="artwork-form"}
  <input type="file" class="fileupload" data-directory="6" data-content-type="all" value="" name="artwork_image">
  <input type="text" class="form-control artwork_title" placeholder="Title" name="title" value="Title">
{/exp:channel:form}

JS:

$('.fileupload').fileupload({
            dataType: 'json',
            formData: $(this).closest('form.artwork-form').serialize(),
            add: function(e, data){
               var form = $(this).closest('form.artwork-form');

                $.each(data.files, function (index, file) {
                    form.find('.artwork_title').val(file.name);
                });

                data.submit();
            },
            submit: function(e, data) {
                var form = $(this).closest('form.artwork-form');
                data.formData = form.serialize();
                console.log(data.formData);

            },
    });

Here's what I see in firebug:
Params:

ACT 7
RET http://localhost/register/step3test/263
URI register/step3test/263
XID
author_id   3
channel_id  13
entry_id    263
meta    VjpdYFRjVDNWPVEsACcFblFkBD5ZIVd+U3YD.... (cutted)
return  register/step3/263
return_url  register/step3/263

POST:

----------------------------22998389620162591192122547020 Content-Disposition: form-data; name="artwork_image"; filename="debate-ad.jpg" Content-Type: image/jpeg ÿØÿá�Exif��II

Response:

{"success":0,"errors":{"title":"Your channel entry must have a title.","url_title":"Unable to create valid URL Title for your entry"},"field_errors":[],"entry_id":false,"url_title":false,"channel_id":false}

Is there anything I missed?

Thanks a lot for your help!


texts: Low Variables aren't displaying in the Matrix dropdown

texts:
This is the second site I've had this problem on, but when I set a matrix field to low variables, I set the grouping I want, add a low variable to that group, but when I go to the entry, the dropdown in matrix is empty.

Using:

EE 2.5.5,
Low Variables 2.3.4
Matrix 2.5.3


texts: Freemember inline errors are clearing form field values

texts:
I'm having an issue with freemember inline error checking.  The error checking works fine, but when the page refreshes it loses all the correctly entered data.

So for example if I have a registration page; I fill out my name and other details but miss out a required field like email. When I hit submit the page refreshes and an error message has appeared by the email field, but all the values for name etc are blank and the user has to fill them in again.  Obviously I would prefer those details to have been remembered.

Any ideas?


texts: Ordering Entries using Reegion Select field

texts:
I have a channel containing entries with a custom country field that uses Reegion Select.

I need to output the entries in alphabetical order based on this field.

The problem is that Reegion Select stores the 2 character ISO country code for each country and maps it to the English name. So when you list the names alphabetically countries like Germany (DE) and Spain (ES) don't sit in the correct place in the list. I need a way to get the English name to use in the orderby parameter of my entries tag.

Reegion Select has a number of methods to get different versions of the country name/code out by using {field:alpha2} or {field:country} but this won't work in the entries tag parameter.

So, I'm looking for ideas on how to crack this one. Help!


texts: I've just purchased cartthrob 3 and weirdly their documentation only covers installing on EE2. Has anyone had any success installing a fresh version of cartthrob 3 onto a new EE3 site? If so, how did you do it please?


texts: Is there a way of linking a custom field to any entry of your website. I've found this add on http://devot-ee.com/add-ons/entry-layout but it's not compatible with matrix. Thanks Geoff


texts: How does free_shipping conditional work?

texts:
I can't seem to figure out how this works.

{if free_shipping=="True"} this {if:else} that {/if}

{if free_shipping} this {if:else} that {/if}

{if free_shipping} this {/if}

None seem to work, whether I set free shipping on the product, or with a discount.

*edit* And this is in a exp:store:product tag where everything else is working okay.


texts: Variables/example for sending a new member their login details using Postmaster

texts:
I've just upgraded to Postmaster 1.2, and want to set it up to send emails to new users when their new member accounts are created (but not edited). I'm also using EE 2.5.3 and Profile:Edit 1.0.7.

I've created a new Hook using the Profile Register End hook, but what are the variables I'm meant to use for the following items?

New member's username
New member's password (as the client insists on sending this)
New member's screen name (for use in the To Name field)
New member's email address (for use in the To Email field)
New member's custom fields (via Profile:Edit tags?)

Looking through the Postmaster docs, I can see that the member variables are just for the logged-in user so are of no use for this. It'd be nice to have a full working example to go from as it feels a bit different to creating a standard parcel based on channel entries. Thanks.


texts: Add a new menu button in control panel on module installation

texts: For the module I am developing I would like to add a new menu button in the control panel. I could do that manually, but I was wondering if there is a standard EE function to add a new menu button when the module is being installed?


texts:
I'm using both Solspace Calendar and SEO Lite. Was wondering how to get the {event_title} from Calendar to display in the browser title when the event detail page is viewed.

Any recommendations? Thanks very much in advance.


texts: {exp:playa:parents} returning value of {exp:channel:entries} that it's nested within

texts:
{exp:channel:entries}
    {exp:playa:parents}
        {title} returns title from the entry
    {/exp:playa:parents}
{/exp:channel:entries}

If I remove the {exp:channel:entries} tag pair, then the playa returns the correct data. However, I need info from the entry and then I want to loop through all the parents in another channel.

In this case, think of the entry as a product, and then return all the FAQs about that product. The relationship is made on the FAQ not the product.


texts: Why is this comparison check not working on a Windows box?

texts:
I've set up the following code on a site. On my Mac (dev version - identical to the running live code) the template looks like this:

{if '{current_path}'=='/'}
...
{/if}

And this works fine. But the same code on the live version simply does not get past this if statement.

Rendering {current_path} out to the page before or after the if statement shows its value as /, but I can't get anything to evaluate inside the if.

Any clue as to what's going on?

Considerations: the live server is a Windows box.


texts: Simple conditional statement and parse order problem

texts:
I'm fairly new to ExpressionEngine, and I hope the problem I'm running into is a simple one to solve. I'll try to illustrate it as best as possible:

I have a radio button field (created within a channel form) called favorite_food. It has 4 options, namely Pasta, Vegetables, Poultry, and Fruit. The form displays great, and submitted values are saved in the channel entries.

The problem comes in when I'm trying to display the results on another template, and specifically adding a conditional statement that checks if the user selected Fruit or not is causing me to go a little crazy. This is what I've tried:

{exp:channel:form channel="foods" entry_id="{segment_4}"}

{favorite_food}
 (displays Fruit on the screen)

    {if favorite_food == "Fruit"}

You chose fruit!

    {/if}

    <?php echo "{favorite_food}"; ?>

    <?php
        if ("{favorite_food}" == "Fruit")
            echo "
You chose fruit!
";
    ?>

{/exp:channel:form}

I should mention that the PHP parsing is set to "input" on this template too. I hope I'm missing something really obvious here...thanks in advance for any assistance!


texts: How can I create a custom template for a specific content item?

texts:
Use regular news ‘news/index’ template:

/site/news/regular-news

Use special ‘news/special-story’ template:

/site/news/special-story-which-needs-custom-template


texts:
I haven't found a question that i could relate to, so please bear with me.

Using a nivo jquery slider inside a channel loop continually runs on my page. Is there any way to limit and cycle it back to what is already processed? I have set the limit parameter.
It starts off how many entries that are present. After every time it goes to load a slice, it doesn't stop/cycle to where it started. Any tips?


texts:
Ive read the EE documentation, and utilized other "solutions" for getting the forum to work at segment 2, but nothing seems to work - all result in a server error 500 page.

When set to default (forums) - works great.

When set to use template:  discussion/forum - and have the basic code in the template, nothing works.

EE - 2.6.1
Discussion Forum 3.1.12

HELP! - We need our forum to utilize EE modules!!!


texts: Let visitor upload file to expresso store order

texts: Is there anyway to enable a file upload(s) to the expresso store order during any step of the checkout process?


texts:
I'm using Switchee to detect pagination.

Switchee is working fine for: /new/PX/

I also use Zoo Triggers for categories and archives and have the following pagination URL's too:

/news/category/abc/PX (segment 4)
/news/archive/yyyy/mm/PX (segment
5)

It doesn't look like I can pass multiple values to the variable parameter so is it best to call Switchee multiple times in the template or is there a better approach?

{exp:switchee variable="{triggers:segment_2}" parse="inward"}
    {case value="#^P(\d+)$#"}
    // Do something
    {/case}

    {case value="''" default="Yes"}
    // Do something
    {/case}
{/exp:switchee}

{exp:switchee variable="{triggers:segment_4}" parse="inward"}
    {case value="#^P(\d+)$#"}
    // Do something
    {/case}

    {case value="''" default="Yes"}
    // Do something
    {/case}
{/exp:switchee}

{exp:switchee variable="{triggers:segment_5}" parse="inward"}
    {case value="#^P(\d+)$#"}
    // Do something
    {/case}

    {case value="''" default="Yes"}
    // Do something
    {/case}
{/exp:switchee}

Any help would be appreciated!


texts: Exclude certain items on result page in LOW SEARCH

texts:
Does anyone know a way to exclude some results on the result page of LOW SEARCH?
I have been looking everywhere but I cannot find the answer.
I understand I must add a SEARCH form on the resultpage, but do not know what next to do.

My client wants to 'hold' certain results AFTER they made a search and  then save the results for later use.

So filter in results, so to speak.

Thanks a lot for a hint.


texts: Safecracker Registration - Documentation on Hooks

texts:
In the changelog, I see that developer hooks was added as a feature in 1.2.0

But looking that documentation, I don't see any thing about hooks.

Is there any place or site that can point me to Safecracker Registration Hooks?


texts:
I made my first plugin I don't deal allot with variable and parsing.
it was a JSON data to pars to a template.
the problem is when I decode the JSON to an array
Then I use parse the variables to the template I can't get the variables in my plugin tag.
I found a question similar to my question but it did work for me either .

Parsing JSON in EE tag

can i get help please :D

    public function __construct()
{
    $this->EE =& get_instance();
    $find   = array("<", ">");
    $rep = array("{", "}");
    $json = str_replace($find, $rep, $this->EE->TMPL->fetch_param('json'));
    $json = current(json_decode($json,true));
    $json['location'] = array(
        array('lat'=>$json['location']['lat'],'lng'=>$json['location']['lng'])
    );
    $json['social'] = array(
        array('twitter'=>$json['social']['twitter'],'facebook'=>$json['social']['facebook'],'LinkedIn'=>$json['social']['LinkedIn'])
    );

    $vars = (array) array($json);

    $this->return_data = $this->EE->TMPL->parse_variables($this->EE->TMPL->tagdata, $vars);
}


texts: Expresso Store - Modify quantity in backend

texts:
When I want to modify quantity of products up or down in the backend I can change some of the items and some not.

If not possible the save button stays light-gray and nothing happens.

Any idea?
Thx


texts: Pre-populating SEO lite fields: custom extension advice

texts:
I have a client site which utilises the SEO lite module. The client has come back with a feature request which I'm trying to figure out a way to achieve: they want to pre-populate the SEO fields on a number of channels using the title and description channel fields, but then allow the admin user to edit those values before saving/publishing.

(I know that in my templates I can can fall back to channel field content if the SEO lite fields are empty, this is more about providing a convenience for the client in filling out the SEO Lite fields)

I'm thinking I can do this by writing a custom extension to inject some JS into the CP on publish/edit forms.

I can write the JS easily enough, but need some advice on the extension side of things.

Questions:

Is a custom extension the best route?
Can some one point me towards a good template / existing xtn to use as a basis (ie just injects custom JS into the public/edit view, uses similar hooks etc)?


texts:
I would like to create an addon which adds a number of custom RTE formatting buttons to the built-in EE Rich Text editor.

There are two issues here:

How to define the simplest add-on skeleton (plugin, module or extension) to achieve this.
How to get the custom buttons to be recognised by the Rich Text module.

Following the official documentation to the word does not appear to do anything. If I create an extension and add a redundant hook (just so that it gets installed) then EE prompts me to install my custom RTE button. It would be nice to avoid the redundant extension hook.

The Rich Text module only appears to detect one of my custom buttons when I use the hook approach.


texts: Stash, switchee and template caching outputs a random string {6ee64145dfa4ae5926a9c326266d5954499133923}

texts:
I am using EE's next_entry tag to link to the next entry, and then using a stash/switchee combination to evaluate if we are at the last entry in the loop and if so use a channel entries loop to display the first entry.

Everything works fine and it does what I expect with the following code.

But when I turn on EE's template caching, I get a random string as follows:

{6ee64145dfa4ae5926a9c326266d5954499133923}

The problem seems to be inconsistent as this doesn't happen all the time. Template caching right now is at 60 minutes, but after clicking around a bit the string appears occasionally every few minutes and I haven't found a pattern to the issue.

Here's the block of code I'm using:

{exp:channel:next_entry channel="video" url_title="{segment_2}" orderby="date" sort="asc"}

  {!-- If next_entry doesn't run then we are at the end of the loop so this stash won't be set --}
  {exp:stash:set name="st_next_entry"}next{/exp:stash:set}

  Next:

    {title} &rsaquo;

{/exp:channel:next_entry}

{exp:stash:parse process="end"}
  {switchee variable="{exp:stash:get name='st_next_entry' random}" parse="inward"}

    {case value="next"}
      {!-- Do Nothing, link to next entry is already displayed --}
    {/case}

    {case default="yes"}
    {!-- Display start entry link, because the next_entry loop didn't run so stash value was left empty --}

      {exp:channel:entries channel="video" dynamic="no" disable="categories|category_fields|member_data|pagination" status="open" limit="1" sort="asc"}
        Next Video:

          {title} &rsaquo;

      {/exp:channel:entries}

    {/case}
  {/switchee}
{/exp:stash:parse}

I'm guessing that the {6ee64145dfa4ae5926a9c326266d5954499133923} string is actually a placeholder of some sort and that the template parser isn't getting around to filling in the proper value when I turn on the template caching.

Thank you for any assistance you can provide.

Also, if someone knows their way around EE's native tag caching options and how to use the cache="yes" refresh="60" parameters. Are they only for EE native tags, or can it be used across the board for any exp: tag, including also related_entries/reverse_related_entries tag pairs and the output of 3rd party plugins?

oliver


texts: Break CE Cache for a Search Results Template when Any Entry Updated?

texts:
We're caching search results pages with CE Cache. I'm wondering if there's a way to bust the cache on these pages whenever any entry is updated? We have dozens of channels; I'd rather not specify all of the relevant tags in the control panel and/or template to use the normal cache busting process (e.g. add "search" as a tag to all of the channels when configuring them, or adding all of the different tags to the search results template).

Is there a way to quickly grab the date of the most recently updated entry and use that as part of the id parameter in the opening exp:ce_cache:it tag, or something? Perhaps some other trick I'm not thinking of?

Edit Perhaps the ability to specify * as a value for the tags parameter would be a cool feature request?


texts: How do you replace a file in fine manager in ee3? I cant believe this is not possible, there must be a way. :/


texts: Can´t use different Wygwam 3.1.2-fields with Content Elements 1.5.5. because element_name is not working

texts:
This code is not working

{wygwam}
{if element_name=="Kasten"}

{value}

{if:else}
{value}
{/if}
{/wygwam}

When I use this code, all my wygwam fields will be shown, but not with the panel-formatting.
Just as if the code would be

{wygwam}{value}{/wygwam}

Just loop through all wygwam fields and display them.

I have 2 wygwam fields. One is called "Fliesstext" and the other ist "Kasten". The "Kasten" (german for box) should get a grey background + a frame to look like a box.

Is this a Content Elements or a Wygwam issue?


texts: Getting To Know The EE Database Structure

texts: I am new to ExpressionEngine2 and already working with it, but find the database structure very confusing coming from a pure OOP environment. What is an easy, fast way to actually find references or foreign keys / data that you are looking for?


texts: What hook for immediately after user is logged in?

texts:
I'm trying to find what hook there is for immediately after the user logged in?

I've been looking at sessions_start and sessions_end but I'm not sure how exactly they work and nothing seems to be working the way I want it to, the docs arent the clearest.

Thanks.


texts:
I've just run through the upgrade process from EE 2.5.3 to 2.5.5 but when attempting to visit the control panel the following error is returned:

  A Database Error Occurred Error Number: 1054

  Unknown column 'session_id' in 'field list'

  INSERT INTO exp_security_hashes (date, hash, session_id)
  VALUES
  (1358339646,'ab16daea8d642ede81116584166172107d5c30f1','3f3730359d532958f37f4de75c74e92c9747b441')

  Filename: core/EE_Security.php

  Line Number: 118

Has anyone else run into this problem?


texts: Hiding all other members except for the single member group

texts:
We are working on multiple sites within an MSM installation and we need to create an administrative member group that has access to edit and approve members from only ONE single member group. We would like to hide all other members except for the single member group that they have administrative rights to.

Can we do this?


texts: Can Cartthrob credits be used to reward customers?

texts:
I am planning a new site and the client would like to reward regular customers by giving the 'reward points' that can be redeemed at checkout.

Is this possible with credits? I am aware that DevDemon Credits can do this, just winging if CT can do it too.

Cheers


texts:
Using the search_results tags to display results I added a parameter like  when displaying channel entries, status="Open" to specifically show only "Open" entries, but it still shows Closed entries.

Any guidance on this would be greatly appreciated.


texts: Do anyone know if Devdemon's VISITOR 3.0.1 is having hook similar to zoo_visitor_update_end? I couldn't see any documentation and didn't get any response yet. Please let me know. Thanks


texts: Jquery Freeform AJAX submission form error

texts:
I have created a basic submission form using expression engine's plugin free form. From the CMS side of things my data is being submitted into the EE CMS. However after i have submitted my details, rather than receiving a success message i receive the following message on my form object object.
[object Object]

I am assuming this has something to do with my jquery As the function was working when i was validating the submission through php.

Below is a snippet of my code.

var form = $('#ajax-contact');
var formMessages = $('#form-messages');

$(form).submit(function(e) {

e.preventDefault();
var formData = $(form).serialize();

// Submit the form using AJAX.
$.ajax({
    type: 'POST',
    url: $(form).attr('action'),
    data: formData
})
.done(function(response) {
    //  formMessages div has the 'success' class.
    $(formMessages).removeClass('error');
    $(formMessages).addClass('success');

    // Set the message text.
    $(formMessages).text(response);

    // Clear the form.
    $('#name').val('');
    $('#email').val('');
})
.fail(function(data) {
    // Make sure that the formMessages div has the 'error' class.
    $(formMessages).removeClass('success');
    $(formMessages).addClass('error');

    // Set the message text.
    if (data.responseText !== '') {
        $(formMessages).text(data.responseText);
    } else {
        $(formMessages).text('Oops! An error occured and your message could not be sent.');
    }
});

})

HTML

exp:freeform:form
            form_id="1"
            admin_notify="me@email.com"
            form:class="main-contact submit-fade ajax-form"
            form:id="ajax-contact"

        }

                  Name
                  {freeform:field:first_name
                      attr:class="form-control"
                      attr:placeholder="First Name"
                      attr:class="required"
                  }

                  Email
                  {freeform:field:email
                      attr:class="form-control"
                      attr:placeholder="Email"
                      attr:class="required"
                  }

              <input type="submit" class="btn btn-success">

        {/exp:freeform:form}


texts: Iterate child categories inside parent category loop

texts:
I have a simple two-level category structure like this:

Fresh
Fresh Pre PackedFresh Bulk

Frozen
Frozen Pre Packed

Ready To Go
MealsCondiments

I'm simply trying to iterate though the parent categories and for each parent loop through its children and then output the channel entries for that specific category.

I may have overthought this a bit, but right now what I have is this:

    {exp:channel:categories category_group="2" style="linear"}

    <?php
    if({parent_id} == 0) :
        $categories['{category_id}'] = array();
    else :
        if(isset($categories['{parent_id}'])) $categories['{parent_id}']['{category_id}'] = '{category_name}';
    endif;
    ?>

    {/exp:channel:categories}

    {exp:channel:categories category_group="2" style="linear" parent_only="yes"}

{category_name}

{category_description}

                        <?php if(isset($categories['{category_id}'])) :
                        foreach ($categories['{category_id}'] as $category_id => $category_name) : ?>

<?= $category_name ?>

                            {exp:channel:entries channel="products" category="<?= $category_id ?>"}

{title}

                            {/exp:channel:entries}

                        <?php endforeach; endif; ?>

    {/exp:channel:categories}

This works fine in that it properly iterates though the children for each parent, but I can't output the channel entries since the parsing stage is set to output, so the category parameter is never set.

If I do extract that channel entries tag to another template, I run into the same issue as I'd need to pass the category id as an embed variable, which would fail for the same reason.

So right now I'm struggling to identify a reasonable solution or a simpler alternative. If possible, I'd like to avoid utilizing third party addons (not that I don't use them, I just like to minimize their use where possible).

EDIT:

I tried using GWcode Categories to replace the child category loop with the following code (replacing the inner PHP), but I get the same result:

{exp:gwcode_categories cat_id="{category_id}" incl_self="no" style="linear"}

{cat_name}

    {exp:channel:entries channel="products" category="{cat_id}"}

{title}

    {/exp:channel:entries}

{/exp:gwcode_categories}


texts:
I am outputting a list of categories for entries which have prices using the code below, how can I filter it to only show unique categories? Right now it is showing multiple categories with the same name.

{exp:channel:entries channel="channel_name" dynamic="off"}
{if price}
        {exp:gwcode_categories entry_id="{entry_id}" style="linear"}{if depth == 2}{cat_url_title}{/if}{/exp:gwcode_categories}
{/if}
{/exp:channel:entries}


texts: CartThrob / SagePay sudden error 5006 after server move?

texts:
After a recent server move and a new dedicated IP address configuration the site no longer works with SagePay (offsite server), we now get the following error(s) after entering payment details at SagePay:

HTTP Status Code:   500
HTTP Status Message:    The request was unsuccessful due to an unexpected condition encountered by the server.

Error Code :    5006
Error Description : Unable to redirect to Vendor's web site. The Vendor failed to provide a RedirectionURL.

The IP address is valid within SagePay and I have checked that the return path from the checkout_form is correct, both are ok.

I'm not sure why this has stopped working, any help please? Thanks.

EE v2.7.3 and CT v2.5 - I have tried the new SagePay code provided by Vector Media Group but the same errors are issued.


texts: SQL Query to Get count of entries of a certain status inside channel

texts:
Right now I have this inside of a channel entries tag.

{exp:query sql="SELECT total_entries FROM exp_channels WHERE channel_name = '{url_title}'"}
{total_entries}
{/exp:query}

Which provides me with the correct count as expected. (E.g. 8)

But say only 5 of those 8 are of the status I want to count.  How can I have it only count those entries?  Let's say the status is "featured" or "open"?  I feel this is not the correct method.

Thank you!


texts: EE Error: "Unable to Load Site Preferences; No Preferences Found"

texts:
I'm getting this error and can't understand why. This is for a site that I've reset the hosting to it's default state and have uploaded the site files and database to a basically new installation. It works 100% on the local environment.

I've read the threads here and have checked my permissions on config.php and database.php. I've also triple checked all of the database credentials and I still can't figure out what's going on. The host is saying there is nothing wrong and we can access the DB just fine through phpmyadmin. What else am I missing?

Please help!


texts:
Moving an old EE 2.5.5 site to a server with PHP 5.4 instead of the old 5.3, I have run into this error, and can't see how to fix it:

A PHP Error was encountered
Severity: 8192

Message: Non-static method Comment::form() should not be called statically, assuming $this from incompatible context

Filename: libraries/Template.php

Line Number: 3004

Line 3004 is:

$str = str_replace($match[0][$i], Comment::form(TRUE, $this->EE->functions->cached_captcha), $str);

Sadly, upgrading EE is not an option at the moment.


texts: Will Focus Lab EE Master Config work as-is on EE3?

texts:
I have used Focus Lab's EE Master Config on every EE2 site I've built, since I heard about it. Now I am working on a site in EE3, and wondering, will this setup work as-is for EE3, or will it require any modifications? Or is there an updated version out there?

Thanks!


texts: Safecracker Registration Password Field Error

texts:
I have a simple Safecracker form with email, password and password confirm fields.

I tried filling up the forms with the a password less then 5 characters. When I submitted, I get this error

The password you submitted must be at least 5 characters long

in field errors.

My question is that, isn't this supposed to be an inline error? If it is not, how do access it in {field_errors}? I want it to show as an inline error near the field.

P.S. Here is my code, truncated to relevant parts.

    {exp:safecracker channel="members" class="form-horizontal" dynamic_title="[email]" error_handling="inline" include_jquery="no" register_member="yes" return="/sign-up/" safecracker_head="no"}

{if global_errors:count > 0}

General Errors

        {global_errors}

{error}

        {/global_errors}

    {/if}

    {if field_errors:count > 0}

Form Errors

        {field_errors}

{error}

        {/field_errors}

    {/if}

...

    <input type="password" name="password" value="{if post:password}{post:password}{/if}" id="password">
    {if error:password != ''}
       {error:password}
    {/if}


texts: Is there a way to prevent the username being a required field for membership registration. Or use the email field to jointly populate the username field? I'm using the Simple Registration addon to create a front end form.


texts:
Would there be a way in Expresso Store to pre populate a cart with certain products?

And even better, to populate the cart based on a link? E.g to send a link to a customer and when the customer clicks the link he is taken to the cart with products X, Y and Z already in the cart?


texts: Cart throb and expresso store same install

texts: Is it possible to run expresso store and cart throb on the same install for ee 2.9? Both for separate areas of a portal that doesn’t take any payment for orders. It’s used as an internal ordering system.


texts: Store won't pass shipping address to Paypal Express

texts:
Paypal  won't help as they say it's a Store issue, but I'm struggling to get Store to send the shipping address details to Paypal.

The billing address is coming through fine, but the shipping address isn't. This is necessary for my client to retain their Paypal seller protection. If the address is not passed through seller protection is lost.

It is also obviously annoying as they have to fill in details manually to print postage labels etc.

version is 2.1

Any help much appreciated.


texts: Krea Content Elements loses content when there's a validation error

texts: We're using Krea Content Elements (http://www.krea.com/content-elements) on a new site and have discovered that if a standard EE validation issue fires, (i.e. a required field missing content) that on the subsequent page load the content you had added to your Content Elements field is lost! Bit of a showstopper... anyone aware of a resolution to this, in fact can anyone reproduce?


texts: Setting a default for a relationship field

texts:
I have a radio button relationship field that needs to have a default already selected.

Is there a way to set the default selected item for a relationship field?


texts:
I have Forum Subscribe installed.

If I log in as a member and click subscribe it just goes to an ACT URL and then if I go back it says I am subscribed, however if I then login to another account and post into the forum that I subscribed to the member does not get a notification?

Can anyone shed some light on this please?


texts: How do I send meta data fields to Stripe with Cartthrob

texts:
Has anyone been able to get Carthrob to send custom meta data to Stripe? I have the 'Charge' add-on doing it perfectly but haven't managed to get Cartthrob doing it. I've tried

<input type="hidden" id="meta:custom-data" name="meta:custom-data" value="{segment_3}">

in the exp:cartthrob:checkout_form but nothing seems to be passed through. (that is basically what you use in Charge). Anyone got this working?


texts: Focus Lab's EE Master Config Error with MAMP

texts:
I'm getting the following error:

Fatal error: Call to undefined method CI_Config::site_prefs() in ...Dev/cms/ee.dev/system/expressionengine/libraries/Core.php on line 122

My setup is as follows: MAMP, EE 2.10.1

ee.dev
- config
- public_html
- system

Dev is my MAMP htdocs folder and I have custom virtual hosts setup as follows:

<VirtualHost *:80>
  DocumentRoot "/Dev/cms/ee.dev/public_html/"
  ServerName ee.dev
</VirtualHost>

<Directory "/Dev/cms/ee.dev/public_html/">
        AllowOverride All
        Options -Indexes +FollowSymLinks
        Order allow,deny
        Allow from all
</Directory>

I was originally getting another error, so I updated the system paths in the main index.php and admin.php:

Changing $system_path = './system'; to $system_path = '../system';


texts: Posting large amount of content serves 403 error

texts:
Is there a content limit/length for channels? If so, can the limit be removed?

Reason I ask:

When posting a large amount of content (approx 12,700 characters) in a channel (blog) as soon as I submit I get served a 403 Forbidden screen: http://screencast.com/t/9vPuJo4hup6

However, if I post a small amount of content (a couple of paragraphs) and submit there are no problems.

I tested this further by posting the large amount of content paragraph by paragraph and submitting after each one (paragraph). This process was successful up until I reached a certain amount of content and then I was served the 403 again.

It appears that there is some sort of content limit in channels?

Any help would be appreciated.

Thanks,
Dan


texts:
I am busy integrating PayU payment gateway with an EE2 website and need to have payu integration on-site rather than off-page, but the client needs the customer to also pay with Discovery Miles, would there be a way to integrate Discovery Miles with the on-site integration of PayU?

I am using the Enterprise API for PayU and using Expresso-Store.


texts: how to handle responsive content loading?

texts:
I have a few questions regarding loading different content depending on the screen size and or device...

a site I'm working on has one column with 5 entries, when the screen size gets reduced a bit I want to change that to 2 columns with 6 entries so I don't have an empty space in the last row. Now I can always easily just load 6 entries and hide the last one with css on widescreen but I would rather try to do it beforehand

I've downloaded the ress plugin to have some type of variable I can use but it seems kinda silly to me to wrap 2 channel entries tags inside if statements when the only difference between them is the limit="5" and limit="6" parameter.

I'm also in the EU so I'm a bit worried about having to use a cookie for this, and also it's a pain to test this because I have to delete it every time to check how the site looks on a different screen size

I have a similar issue with loading images, I'm using the foundation framework and while it does have a nice solution with data-attributes to load different images for different sizes I am wondering if it's a better idea to use something like ress and just place all my images inside if statements. Not sure which is better performance wise?


texts: How to get category last child url for an entry

texts:
I'm trying to use GWcode Categories to output category last child url for an entry. Code looks like:

    {exp:channel:entries channel="products" category="{segment_2_category_id}" orderby="title" sort="asc" limit="8" status="open" paginate="bottom" dynamic="no"}

        {exp:gwcode_categories group_id="1" url_title="{last_segment}" last_only="yes"}

            {product_image limit="1"}{/product_image}

{title}

        {/exp:gwcode_categories}

    {switch='|||

'}

    {/exp:channel:entries}

but what I'm getting is a list of all last child categories urls from the group 1.

Any clue how to get last child category url per listed entry?

Thanks


texts: Ordering CartThrob products by price when some have options

texts:
I'm working on a small CartThrob site at the moment. The site uses 'points' rather than real currency.

Products are stored in the "products" channel which contains a custom field for the points value of each product. There is also an options field to handle sizes/colours etc.

I have elected to use the points field by default but if a product has options then the points field is left at 0 and the price for each option entered in the options field - I find this easier for the client to understand than have them entering price differences for options.

Now, I need to order the products by price from lowest to highest. This is simple enough where there are no options but is it possible to include those products with option pricing in this ordering?

I'm using the obvious entries tag;

{exp:channel:entries channel="products" dynamic="no" orderby="price" sort="asc"}
... product stuff ...
{/exp:channel:entries}

It would be lovely if I could do something like;

{exp:channel:entries channel="products" dynamic="no" orderby="price|options:price" sort="asc"}
... product stuff ...
{/exp:channel:entries}

I'm hoping I can weave the option products into this somehow without having to resort to setting a "base price" on each one and have the client enter price diffrences for each option.

Is there a way to do this?


texts:
We have a legacy system slowly getting migrated to full EE. We call an SSI include from within one of the files used by both systems.

The problem is, EE doesn't respect the SSI include and just shows a blank area where our content should be.

So, I'm looking at either:

Duplicating the include file and changing the SSI include to an EE include, or
Creating a script to bake the include content into our file before it gets called by either system.

The first just duplicates any work we have to do to our menu, the second seems like overkill.

I'm wondering if anyone else has any suggestions? I feel like I'm missing something obvious.

Thanks!


texts:
I want to give my client the ability to visually select a file from one of my file-folders in safecracker. I was thinking of using an embed with {exp:assets:files} loop in there, something along these lines:

{exp:assets:files folder_id='1' kind='image'}

{/exp:assets:files}

Now what would I feed back to the safecracker-form in order for my assets-field in this entry to be updated with the file I just clicked? Should I feed the file's url to a hidden <input> element?

Thanks,

Steven


texts: How do I obtain the entry_id in the Publish screen for use in javascript (EE1 and EE2)?

texts:
This Fieldtype will need to allow the "profile admin interface" created from the API to appear on the Entry Publish/Edit page. The only thing that I was told I'll need to add to the script (as a variable) is the current entry's ID. I tried to find a fieldtype I could use as a reference and I see fieldtypes like Color Picker http://devot-ee.com/add-ons/color-picker that may be similar but that one doesn't load the entry ID into the script as a variable. I don't believe I'll need to store anything in the database, because the script will send any selections by the author to the remote site to store (associated to the entry ID and an API key from https://electnext.com/) so hopefully it won't be that difficult.

I'm mainly a front-end coder so this is a bit out of my comfort zone, but I'm fairly confident I can pull it off with some guidance.

Thanks!


texts: Exp:resso store add item to cart on load

texts:
So I have a part of a site we are working on that has some unusual needs for checkout that I'm wondering how best to accomplish.  It's an online application with an application fee at the end of the process.  The application is all powered by channel:form and what we are hoping to do is have the last page of the form be a credit card form.  We can't figure out how to do a checkout without having them go through an "add to cart" type step?

We have two channels, applications and products, and we made a product called "application fee" but can't figure out how to add it to a cart automatically?

The second part of the question is that ideally after they pay for an item it would update the application's status field...

Are either of these two things possible?


texts: Setting a Stash variable in the first Matrix row

texts:
I'm sure this has something to do with the parse order or it might be a bug. I'm trying to set a Stash variable in the first matrix row. After looking at the template debugging, Stash sets the variable in each loop of the matrix, thus not listening to the conditional.

{matrix_field}
    {if row_count == 1}{exp:stash:set name="my_var"}{option_value}{/exp:stash:set}{/if}
    ...
{/matrix_field}

If I add a static character inside the conditional, it only parses once.

Update

I added replace="no" parameter to the stash:set tag which fixed the variable from being overwritten once it's set. However, I would still like to know if setting the variable like the above is possible or if I'm approaching it the wrong way.

Update 2

I'm running a CartThrob site that has a ton of price modifiers (PM) for buying sheds online. A user can choose between several options, colors & other upgrades to build and buy a shed online. The site relies heavily on javascript which uses variables to construct files paths and other logic. Some PM fields I need to capture the 'default' options (first row of matrix field) to set variables for file paths and pricing logic. So instead of adding a ton of matrix pairs to the template where needed, I'm trying stay as DRY as possible. Hopefully that makes sense?

Live Example, view console to see some variables (soft launch right now as we are adding more styles)


texts: Is there an easy way to import content from a site built with static files?

texts:
I have a site with a few hundred pages that I've inherited. It is all built with static html files, one file for every page. It's clear that the previous developer didn't really have a plan for the site as each page as many different elements that seem to be all randomly combined.

What I'd like to do is convert the site to be ExpressionEngine based. Building the site is no problem, but importing the content does not look like it's going to be very fun. Does anyone know if there is a way to some how scrape the main content of each page and get it into a form at that EE can use and do it all automatically?


texts: Call for support for Feature request: Search Module parameter: future_entry_channels

texts:
I've got a reply from EllisLab on a feature request, they only want to implement the feature request, when enough of you request the feature, here it is:

The search module is an all the way show_future_entries = yes or no. However, i have only one event channel for which i like to enable future_entries,
the following couple of lines enables a "future_entry_channels" parameter that enables to set channels that allow future entries, instead of a general show_future_entries=yes

*This would enable a future_entry_channels="7|3" parameter for channels that you want to allow search into future entries, please add a comment with +1.*

// ~ line 336 add a parameter
'future_entry_channels' => $this->EE->TMPL->fetch_param('future_entry_channels',''),

// ~ line 664 replace/extend show_future_entries conditional
if ( ! isset($this->_meta['show_future_entries']) OR $this->_meta['show_future_entries'] != 'yes')
{
    // Future entries for some channels, like event-channels
    $future_entry_channels = $this->_meta['future_entry_channels'];

    if(empty($future_entry_channels))
    {
         // regular show_future_entries="no"
         $sql .= "\nAND exp_channel_titles.entry_date < ".ee()->localize->now." ";
    }
    else
    {
        // allow some channels to have future entries
        $future_entry_channels = explode('|', $future_entry_channels);

        $sql .= "\nAND (exp_channel_titles.entry_date < ".ee()->localize->now." OR exp_channel_titles.channel_id IN(".implode(',', $future_entry_channels).") ) ";
    }
}


texts: Solspace Calendar: How to move existing entries to calendar channel?

texts:
So I recently bought the Solspace Calendar Add-On, because my site (that is already running) needed better functionality for the event dates. Problem is that I can't use the calendar field type on the existing channel... I have hundreds of entries in that channel and now I'm wondering how I can easily move those entries to the calendar channel. How would I go and do that?

Thanks in advance,

Marijn


texts:
We typically have a dev/staging/production setup for sites. We have all the configuration stuff sorted out and deploying from one to another is easy.

The problem is the database, specifically channel data, which contains both structural and user contributed data. Is there a good way to sync channel data when new features are added to the site, without bringing the site down?


texts: Inserting HTML into a text area using WysiHat and a custom rte button

texts:
I am trying to create a button which inserts custom HTML into a rich text area.

So far I have added the button, and triggered an alert:

return "
    WysiHat.addButton('insert_slide_show', {
        label:         EE.rte.insert_slide_show.label,
        handler: function(editor)
        {
            alert("hello");
        }
    });
";

I have tried inner html:

this.innerHTML("
something
");

and jQuery html:

this.html("
something
")

both of which seem to submit the page, i suspect this is due to an error with the html.

I also looked threw the documents on this and still have no clue, any help would be appreciated.

So in summery I'm looking to insert custom html into a rich text area on a button click, using a custom rte button.


texts: Assets 2.0 (P&T) not saving field setting for mutiple selection

texts:
I downloaded Assets 2.0 and ran into an issue where the selection for the field "Allow multiple selections?" is not saved.
Thus I can't restrict the user to select only one file.

UPDATE: I'm using Expressionengine v2.5.3

Regards
Flo


texts: CartThrob: Setting no tax on on-the-fly products

texts:
I understand the add to cart form can take a parameter to disable tax on a product like so.. (although the docs seem to indicate it should be 'tax_exempt'?)

{exp:cartthrob:add_to_cart_form on_the_fly="y" no_tax="yes"}

I am using this to create phone orders but sometimes a product may not have tax so I was hoping to add a checkbox, something like this:

<input type="checkbox" name="no_tax" value="yes" />

Unfortunately this does not appear to work for me, just wondering if there are any undocumented features that will do what I want?


texts:
I have a site where there is an uneven depth of categories for a product channel. Previously I've cobbled together a band-aid solution but I'm reaching out to see if there is a better way.

I have a simple category:

RootA
 -- AChild01
 -- AChild02
RootB
RootC

The URL would be:

/products/RootA/ -- Show Child categories
/products/RootA/AChild01 -- Show entries
/products/RootB -- Show entries
/products/ -- Show RootA, RootB & RootC

Basically I need to know if segment_2 has child categories and if so then display Child category links. If segment_2 doesnt have child categories then display entries assigned to it.

Not keen on using a 'category' keyword in the URL, familiar with Switchee and GWcode categories and am using stash (if that helps) and all takes place inside a single template as categories will change over time (names not depths).

How have others dealt with a clean URL structures and uneven category depths ?