texts: New & Empty Matrix Field Does Not Validate as Empty

texts:
I have an optional matrix field for a page banner in one of my channels. If someone publishes a new channel entry or edits one where the banner matrix field has never been touched, then the conditional {if banner_matrix_field}banner matrix field has content{/if} validates as true, even though it's empty.

For example, if I publish a new page, and leave the banner matrix field empty, then the class graphic will still display in my template:

{exp:channel:entries
    channel='test'
}
<header class="banner clearfix{if banner_matrix_field} graphic{/if}">
    {!-- Banner Content --}
</header><!--/.banner-->
{/exp:channel:entries}

If I add a row to the matrix field then delete it, then the field correctly validates as empty.

UPDATE: The add/delete row workaround actually only works every time you edit the entry. So if I edit the entry once, add/delete a matrix row, save, then come back and edit the same entry again and save without adding/deleting the matrix row, the conditional validates as true again.

It doesn't seem to matter what kind of fields are inside the matrix cells, I've tried it with Assets, File, and the default plain text cells with the same result.

EE 2.6.1
Matrix 2.5.5


texts: Member Activation Redirect conflicts with Twomile Login Redirect

texts:
The add-ons Member Activation Redirect and Twomile Login Redirect don't play nicely together - has anyone gotten that to work?

It seems like the "welcome" page set under the first extension gets hijacked by the "last page" set with Login Redirect. I've tried setting Activation Redirect to have a lower priority (4) in exp_extensions, but that didn't help.

Some background from somebody who had the same problem: http://devot-ee.com/add-ons/support/member-activation-redirect/viewthread/6897

Ideas? Thx!


texts: What's the best way to search for specific terms in files?

texts:
I have a situation where the client will be uploading a ton of pdf files, and then on the front-end we need a tool to search for key-terms within these files. Sometimes that key-term is in the file name (could possibly break apart with php to get the terms?) and sometimes the key-term is just in the file itself.

php to break apart the terms:

                <?php
                    // break apart file name, grab first word
                    $str = '{title}';
                    $arr1 = preg_split("/[_,\- ]+/", $str);
                ?>
                <?php echo $arr1[0]."\n"; ?>

Which takes a file name like: FFOBBULUSE000002_Harlequin GDP 3.5g TruFlower Cup.pdf and outputs the first term like: FFOBBULUSE000002

I've looked into Channel Files, and of course native EE search and File Entries, but none are really giving me what I need. Native search doesn't seem to be able to search native files, nor Channel Files?

Plus, there are thousands of these files, so I don't really want to load them all into a template and then filter. Hoping for a less resource-heavy way of doing this.

Example:

Uploaded file: FFOBULN2F000004_9lb 600mg Vape Cartridge.pdf

Someone may search for the term: FFOBULN2F000004 - that term needs to be able to pull up this file in the results, and also shouldn't be case sensitive.

Any ideas?

UPDATE:

I'm getting really close via using Stash. Here's what I have so far:

{exp:stash:set_list parse_tags="yes" name="my_entries"}

    {exp:file:entries directory_id="19" orderby="date" sort="desc" limit="3000" disable="relationships|categories|category_fields|member_data|pagination"}

        {!----}
        <?php
            // break apart file name, grab first word
            $str = '{title}';
            $arr1 = preg_split("/[_,\- ]+/", $str);
            //echo $arr1[0]."\n";
        ?>
        {stash:batch_value}<?php echo $arr1[0]."\n"; ?>{/stash:batch_value}

        {stash:batch_number}{exp:stringer:striptags words="1"}{title}{/exp:stringer:striptags}{/stash:batch_number}

        {stash:entry_title}{title}{/stash:entry_title}
        {stash:count}{count}{/stash:count}
        {stash:url}{file_url}{/stash:url}

    {/exp:file:entries}

{/exp:stash:set_list}

{exp:stash:get_list name="my_entries" match="#(?i){freebie_3}#" against="batch_number"}

{entry_title} // {batch_value} - Download

        {if no_results}
            {exp:stash:set name="my_message"}No results{/exp:stash:set}
        {/if}

{/exp:stash:get_list}

This is working almost perfectly.

But now, when I have php parse set to input, I get the full file name (doesn't break it apart and give me the first word). When I have php parse set to output, I get this error:

  NOTICE
  UNDEFINED VARIABLE: ARR1
  ee/legacy/libraries/Functions.php(682) : eval()'d code, line 46
  Severity: E_NOTICE

I've tried using stringer to get the first word, but it doesn't break on underscores, and I need that :/


texts:
I'm trying to pull some data from a relationship child (design) to the parent (packages), but it's simply not parsing anything.

{exp:channel:entries channel="packages" orderby="date" sort="asc" limit="3"}
    {design:title}
{/exp:channel:entries}

The above code renders nothing on the page, just white space in the source. The parent entries tag is correct, I have omitted other variables from the example.

I tried including the relationship as a tag pair:

{exp:channel:entries channel="packages" orderby="date" sort="asc" limit="3"}
    {design}
        {design:title}
    {/design}
{/exp:channel:entries}

Which renders the {design:title}{/design} preceded by a digit of which I can't figure out the significance. I don't think it's an entry ID or anything, but it seems to render in place of {design}.

Ultimately I'm trying to pull an image from the child's Channel Images field, but I can't seem to access anything.

The site is using EE 2.5.2 (old, I know).


texts:
Hi is there any posibility to get this working?

{exp:cartthrob:arithmetic expression="{option_price_numeric} -({option_price_numeric} * {exp:low_variables:single var='early_bird_discount'} / 100)"}

In {exp:low_variables:single var='early_bird_discount'} is 30 in this example
I'm getting an "undefined variable" error and I know this is correct but I don't know how exactly get the right result for this

Update:

Using the first option Rob Sanchez suggests gives me the following error: Unparsed EE tags in expression, check parse order. Perhaps it is important for you that the tag is nested into several tags in an embed template:

{exp:channel:entries channel="events" require_entry="yes" entry_id="{embed:entry_id}"}
  {exp:cartthrob:item_options entry_id="{entry_id}"}
    {categories show_group="24"}
      {options}
        {if option_value == "{embed:option}"}

          {if category_id =="160"}
            {if "{event_early_bird_date format='%U'}" >= "{current_time format='%U'}" && "{exp:low_variables:single var='siteA:early_bird_discount'}" >"{embed:another_discount}"}
{!-- ##### --}
              {exp:cartthrob:arithmetic expression="{option_price_numeric} -({option_price_numeric} * {early_bird_discount} / 100)"}
{!-- ##### --}
            {if:else}
              {exp:cartthrob:arithmetic expression="{option_price_numeric} -({option_price_numeric} * {embed:another_discount} / 100) + {embed:membrr_price}"}
            {/if}
          {if:elseif category_id =="161"}
            [....]
          {/if}
          [...]

        {/if}
      {/options}
    {/categories}
  {/exp:cartthrob:item_options}
{/exp:channel:entries}

Update 2

I figured out the problem I think. early_bird_discount is a low variable of siteA but I'm trying use this variable on siteB so using {early_bird_discount} does not work here. Is there any possibility to get the global variable from siteA on siteB?


texts:
I'm trying to filter using supersearch and checkboxes. Multiple checked checkboxes should create a get parameter like &myfield=value1&&value2. However, when I submit the form it escapes characters and fails to work.

Here's the bit of code with the checkboxes. It's a bigger form, but isolating this block won't work either:

<form method="get" action="/destinations/search">
    {exp:super_search:search}
    <fieldset class="amenities">

Filter by feature

        {exp:low_options:amenities}
        {options}

            <input type="checkbox" name="amenities[]" value="{option:value}">
            {option:label}

        {/options}
        {/exp:low_options:amenities}
    </fieldset>
    <input type="submit" class="update" value="Update results">
    {/exp:super_search:search}</form>

The resulting url gives something like:
?amenities%5B%5D=barbecue&amenities%5B%5D=car-essentials

In the example I'm using low_options but I've also tried simply coding the fields.
Am I missing something obvious? This is the last piece of a big project and has me scratching my head over and over.

Thanks in advance!!

Best,
Santiago.-


texts:
Currently I am using Expresso Store for my checkout module using EE2. When I add a product - which got a 50% discount - to the cart, the {order_discount} tag displays half the price of the product which is correct.

However, when I remove the product from the cart and remove the sale from that product via the backend and re-add the product (which previously had the sale), the {order_discount} still displays half the price as this discount is already recorded in the database. Should the removal of the product not reset/retract the discount from the {order_discount} tag or database? Is there a way to work around this?


texts:
The safecracker form related custom fields are being submitted, the problem is the select drop-down categories. After having chosen the category to associate the entry with, the respective category does not remain selected in the CP.

I'm using the User Guide Code

<select name="category[]" id="categories">
{categories}
<option value="{category_id}"{selected}>{category_name}</option>
{/categories}
</select>


texts: Channel entries category tag only showing last category

texts:
Within my exp:channel:entries tag, I am using the categories tag pair to show the categories that the entry is in. However, it is only showing the last category that the entry is in:

{exp:channel:entries}

{title}

    {image_upload}

    {/image_upload}
    Print this photo

    Categories: {categories backspace="2"}{category_name}, {/categories}

{/exp:channel:entries}

This is the same on both the development and live sites.

There are a number of categories in the database (a couple of hundred), but each entry is only in around 2 or 3 categories. The correct categories are all selected when editing the entry in the admin panel.


texts: With the hook entry_submission_end, is it possible to know if the entry is inserted or updated?

texts:
I'm working on an extension that indexes the content of the entry when publish form is submitted, but I need to know if the entry is a new one or an updated one, and in both case, I need the entry_id (the new one juste created or the old one).

Do you know a way to do that? Should I use an other hook?

--Solution--

In fact, entry_submission_end come with 3 parameters: entry_id, meta and data. If the entry is a new one, entry_id contains the new entry_id but $data['entry_id'] is 0, so you can have a condition on that to check if you are editing or creating an entry.


texts:
So we have our navigation cached within stash to help rendering time. And as you can imagine, the navigation is present on every page.

The problem is, for some reason this is creating a cache for every page... For example, there's an [index]:navigation, as well as an about-us:navigation and a contact-us:navigation. There's also a partials:navigation that gets created, but I think this is just stash saving the template to the database.

As our navigation takes a good amount of time to render, this become a problem when we need to apply the cache breaking rules as now every single page load needs to re-render the navigation and cache it to it's own specific cache.

The tag I'm using for the cache on the navigation is {exp:stash:cache name="navigation"}. I have the default scope set to site in my configuration file, and when I look in Mustash it says the scope is site. For the Label in Mustash though, it says @URI:navigation and I'm not really sure why that is happening? I believe that's the problem here.

How do I get my navigation cache fragment to be a global one, and not one generated for every single page?


texts: What do you need to do to make a Fieldtype Addon SafeCracker compatible?

texts:
I've built a Fieldtype Addon and have a request to make it SafeCracker compatible.

The docs are not very clear on how to achieve this.

http://ellislab.com/expressionengine/user-guide/modules/safecracker/development.html#section_getting_it_to_work

I am including my own JS files for EE's CP and this works, if I add the JS file to the theme's folder will SafeCracker just work?


texts: Disable X-Frame-Options header in Channel Form

texts:
I have a site that, by necessity, needs to load into an iFrame on another site.
Part of the site is a Channel Form however this page won't load into the iFrame because the X-Frame-Options header is being set. I see the addition of this header was an update in 2.5.

Does anyone know how I can stop this header from being set?  I don't think I have any option other than to modify the Core but I can't find where it's being set.


texts: Error in admin.php or system/index.php when trying to upgrade to 5.4.0

texts:
I know I submit a lot of questions that are likely basic. I still haven't solved the last one that was asked.
I noticed that the "5.3.2" in the bottom of my control panel was now yellow, indicating an update. I was expecting it to be a simple update, but it instead provided the following error:

It looks like your ExpressionEngine installation is using an out-of-date /admin.php or /system/index.php file.
Please make sure you have the latest version of each file in place and then try upgrading again.

I did a Google and found this page regarding the same issue from a year ago (and version 4). Unfortunately, when examining my admin.php and system/index.php files and comparing to what he linked in the GitHub, it looks like I have the same file. I followed the manual update instructions when going all the way from 2 to 3 to 4 to 5, but it definitely felt like there were some holes in the process that EllisLabs themselves haven't addressed. Any advice or answers?


texts: How do I search reviews on information in custom ratings fields using Solspace Rating and paginate results?

texts:
I am using Solspace Rating to allow users to review and rate entries from several different channels. I have set up custom rating fields in the Rating module to store different rating criteria for the different channels, using up to a dozen different custom fields for reviews in one channel.

I would like to allow users to search for reviews based on different criteria stored in the custom fields. The Rating module has no facility for doing this so I am having to work out my own way.

So far I am able to build a custom SQL query, based on POSTed form field data, to use the EE Query module to successfully get the particular results I am after. However, I have not been able to find a way of paginating the results as the data from the form fields is lost when you click on the link to view the second page of results.

Has anyone else come across this problem with the Rating module before? If so, how have you managed to implement search for reviews, based on information that is only stored in the Rating custom fields and not in the channel entries that have been reviewed?


texts: Solspace User and/or EE member management on screen messaging

texts: I have a user:edit form so members can update their profile. When user submits the form it redirects to the same page. How would you print a message about the successful submission/update?


texts: Upgrading and moving a site at the same time

texts:
I have a huge website which gets a lot of traffic so it can't be down for very long. The site is still running 1.6.7 (I know, shame on me!). I'd like to move it to a new directory on my server and take my time upgrading the back end before going live with it. Do I need to install 1.6.7 in this new directory and then upgrade from there? I've been putting this off for ages because frankly, I'm terrified of it.

Also, assuming it takes me a month to get the new site the way I want it (I'm redesigning as well), when I switch to the new site, all of the information that's been added to the live site in the meantime will be missing. Is there any way to prevent this other than doing double entries using the two different dashboards?


texts: expressionengine stopped parsing some tags after adding some content

texts:
asked this on stackoverflow before realizing there was a stackexchange site for expression engine, hope nobody minds i'm copying my question to here.

i am modifying an expression engine channel entry, there are a number of fields for this channel in a group and two are grids. in the template, i have loops that go through the rows in the grid and output various fields. this is all working as expected.

i recently wanted to add some content, and when i did my existing loops were no longer parsed, just output

{grid_name0}

stuff

{/grid_name0}

and any {grid_name0:fieldname} were replaced with empty string/nothing. other tags continued to work correctly, including tags and a grid loop in the new content i added.

after debugging a bit, i discovered that there is a specific amount of text that will break it, i can add a comment to the template like

that when i get to a certain length it will break the page. this seems like maybe a memory limit is being reached before expression engine processes all the content, i checked various areas for memory limits and they seem to be set at reasonable values (and this is a pretty simple/light site), however i suspect there is a limit set somewhere that i am not aware of.

this is on expression engine 2.7.2 with php 5.2.17, i can provide additional details from phpinfo if desired but the php memory_limit is set to 512M (which, frankly, seems like way overkill).

possibly related, but one of the things i was adding is an "advanced" condition with an {if:else}, if i have this present but less text than is required to break the page it will also break in the exact same way.

thanks in advance for any help!


texts: Can Expresso Store or CartThrob be used without the shopping cart?

texts: I'm preparing to redesign my employer's website that features more than 18,000 items. We're not ready to open the site for online sales but may do so in the future. I'm considering integrating an e-commerce system from the beginning for the benefits --- search, sort, filter, product-focused display --- and to make it much simpler to open the site for sales later. Do either Expresso or CartThrob allow the shopping cart and Buy Now functions to be turned off while the rest of the features are in use?


texts: Sandbox Recurring Payments with SCM are just regular payments?

texts:
So I'm trying to test recurring payments/subscriptions with EllisLab's Simple Commerce Module.

I've got sandbox buyer/merchant accounts setup. Former has generated verified bank, latter has enhanced recurring payments enabled, encrypted payments enabled, IPN enabled (I receive DEBUG emails and logged in member purchases appear).

Everything seems to be in order... but when I make a recurring payment via the {subscribe_now_url} link it only seems to be a regular payment.

These are individual test purchases from the buyer's account screen:

And here is a sample of daily recurring payments from another project that used the Express Checkout API (note the "Recurring Payment To" as opposed to "Payment To"):

In the Simple Commerce Module Edit Purchases tab it shows the purchases as "Recurring". However, there is no sign of it being a recurring payment anywhere else, neither on the sandbox Buyer's end, nor on the sandbox Merchant's end. Is it still somehow a recurring payment? Does it start recurring payments the next day (testing as daily subscription)? Am I missing something?

EDIT

Tested with encrypted payments turned off and it works. My head hurts.


texts:
I am trying to edit the option names which appear in a drop down in a contact us form. I am really struggling to find where the ability to change this is located.

Attached is a screenshot of what I am talking about... If anyone could please offer some advice or help this would be much appreciated.

thank in advance


texts: Running an EE site on IIS. What are the "gotchas"?

texts:
I may be taking on a project for a large EE site that would most likely be running on IIS. Although I have some very minor experience of IIS I have never run PHP on it let alone an EE site. I don't envisage problems with getting things sorted on the server since the company I will be working with are an IT firm.

Are there any specific things I should be looking out for with regards to running an ExpressionEngine site in this environment?


texts: Issues with counter when using exp:zoo_triggers:catergories

texts:
Note: This is a duplicate of a support request in Devot:ee but unfortunately I haven't had a response.

I’m having an issue with counter which could really cause me headaches further down the line in the site that I'm developing. Counter doesn’t appear to update according to my url. I am using several categories to filter a list of products, and while the filter works perfectly with the entries that it outputs, the counter doesn’t. This means that the code is also outputting category options (on the second or third stage of filtering) which are empty. Hopefully my code helps explain this:

// EXAMPLE URL - domain.co.uk/paper-card
{if triggers:cat_name_1 == ""}

Colour Range

  {exp:zoo_triggers:categories status="open" channel="pm_paper_card" style="list" cat_group_id="1" show_counter="yes" show_empty="no"}
{/if}

// EXAMPLE URL - domain.co.uk/paper-card/category/whites
{if triggers:cat_name_1 != "" AND triggers:cat_name_2 == ""}

Sheet Size

  {exp:zoo_triggers:categories status="open" channel="pm_paper_card" style="list" cat_group_id="2" show_counter="yes" show_empty="no" path="{triggers:original_uri}" all_path="no"}
{/if}

// EXAMPLE URL - domain.co.uk/paper-card/category/whites/a4
{if triggers:cat_name_2 != "" AND triggers:cat_name_3 == ""}

Pack Size

  {exp:zoo_triggers:categories status="open" channel="pm_paper_card" style="list" cat_group_id="3" show_counter="yes" show_empty="no"  path="{triggers:original_uri}"}
{/if}

// BELOW HERE IS WORKING FINE
// EXAMPLE URL - domain.co.uk/paper-card/category/whites/a4/small-box
{if triggers:segment_5 == "small-box" OR triggers:segment_5 == "midi-box" OR triggers:segment_5 == "mega-box" OR triggers:segment_5 == "a3-box"}

Pick &amp; Mix - {triggers:cat_name_3}

  {exp:stash:get_list name="products"}

{title} - {weight}

  {/exp:stash:get_list}
{/if}

{if triggers:segment_5 == "packs"}

{triggers:cat_name_3}

  {exp:stash:get_list name="products"}

{title} - {weight}

  {/exp:stash:get_list}
{/if}

My problem is, in stage one I have 3 categories:

Whites (13)
Colours (1)
Pearlised (1)

If I select Whites, in stage two I have 2 categories, however the total count for each category is taken from all entries, not the filtered list as I would expect:

A4 (14)
A3 (1)

Also, this becomes an issue if I select Colours or Pearlised, where I have only 1 product, neither of which have A3 as a category but it still shows A3 as a category option (and the incorrect counters).

This is the first time I’ve used Zoo Triggers so I appreciate I could be making some glaring mistake or have overlooked something in the docs.

If anyone can point out where I am going wrong it would be greatly appreciated as I feel I have exhausted the docs. Thanks.


texts: How to pull and host an image file pulled from DataGrab[EE module] instagram feed

texts: I am having trouble pulling images into my site using the DataGrab module. I am pulling in all the data just fine- including the image URL. But I need to take that url and pull the image to my own server. What is the easiest way to do this?


texts: Scheduled email campaign with expressionengine

texts:
I'd like to schedule the sending of emails, created with Firemail, to selected mailing lists.

I can see the postmaster module may do this, but the client has invested in Firemail and I have the mailing lists and campaigns set up, so I'd rather find another way to do this.

I've looked at Email Cron and ExpressionEngine cron, but I can't see a way to schedule emails to mailing lists.

Any help appreciated!


texts:
I am working on my first EE installs: a church (firstdomain.org) site and school (seconddomain.org) site. The main site is behaving fine. On the second site, however, if I enter the index.php (which I'll take care of, later), the correct page is called. If I enter only the domain address, I get a 404 and the address bar has reverted to domain1.org/public_html/short_name.

Index.php is set as:
     $assign_to_config['site_name']  = 'short_name';
     $assign_to_config['cp_url'] = 'xxxx://seconddomain.org/admin.php';
     $assign_to_config['site_url'] = 'xxxx://seconddomain.org';

Admin.php is set as:
    $assign_to_config['site_name']  = 'short_name';
    $assign_to_config['cp_url'] = 'xxxx://seconddomain.org/admin.php';

URL to add-on site on Gen. Config. page is xxxx://seconddomain.org.

I'm a staff of one -- design (all aspects), write, maintain, and chief bottle washer, so I while I'd like to think this is a serious problem, I'm probably just overly tired or overlooking something. Your (gentle) correction would be appreciated!

Thanks,
Jo


texts:
EE 2.9.3
CV 3.2.0

I'm having some trouble getting channel videos to ouput code. For troubleshooting purposes I set up a test template with nothing in it except the example code from the docs - bottom of the page. The only thing I've done different is hard code an entry_id that I know has channel videos content.

{exp:channel:entries channel="not foo" entry_id="131"}

{title}

    {exp:channel_videos:videos entry_id="131"}

{video:title}

        {video:embed_code}
    {/exp:channel_videos:videos}

{/exp:channel:entries}

Any idea why this would not be working? The title of the entry is displayed correctly but nothing from the channel:videos tag shows up.


texts: Can I use a PLAYA field as a search parameter in channel entries tag

texts:
I would like to use a custom playa field as a search parameter in my EE channel entries tag, something like this:

{exp:channel:entries
                        channel="media_images"
                        search:media_v_location="Denver"
                        status="open"
                        dynamic="no"
                        disable="categories|category_fields|member_data|pagination"
                    }

I have the field set as searchable. I presume I should be passing in the {title} of the entry and not the {entry_id}?


texts: We need to be able to show the total amount of items sold for a specific item.  How would we go about doing this?  So basically the amount that have sold in the past, this is more so for our own reporting reasons.


texts: Cartthrob 2.7 SagePay failing with Security Signature is not valid

texts:
On returning from a successful transaction on SagePay (server), I am getting the following error: Security Signature is not valid

In

cartthrob>payment_gateways>cartthrob_sage_s.php

the check against the VPSSignature is intermittently throwing an error.  This is because the md5 hash needs to include the SecurityKey (given by SagePay) but Cartthrob is losing this somewhere.

Although the sage_key is being saved successfully in

Cartthrob_payments.php -> save_cart_snapshot

on occasions this item from $this->EE->cartthrob->cart_array() is no longer available and therefore the md5 hash created for verification is incorrect.

Strangely, most of the other data in $this->EE->cartthrob->cart_array() are available.

cartthrob>payment_gateways>cartthrob_sage_s.php extload($post)

where is it getting $this->order from?  It is at this point that the sage_key has already got lost.

I've tried setting the Website Session Type to "Cookies and Session ID" and also to "Session Only".  The problem remains.

Do you have any idea why the sage_key in the cart array is being lost?


texts:
Overnight the following php error is being reported on our EE (2.6) site for pages requiring pagination:

A PHP Error was encountered

Severity: Notice

Message: Undefined property: Pagination_object::$pager_sql

Filename: ab_pagination/ext.ab_pagination.php

Line Number: 159

e.g. here:

http://www.tutor2u.net/blog/index.php/business-studies/

Any thoughts on why + how to fix?

Jim


texts:
I'm needing to add a Quick View/Quick Buy feature to my client's products page. Basically when they click the Quick Buy button a modal/div containing product details and a Buy button should display. My client would rather have this than a separate product details page. Is there a recommended way to do this? I was thinking that I could pass the product id as a parameter in the call to open up the modal and have the product details functionality hidden in the modal div.

I've added the code below.

    {exp:channel:entries channel="assets" dynamic="no" sort="asc" category="22" limit="1" entry_id="23"}

Date: {asset_date}

Price: {product_price}

Status: Available

Reserve Asset

  {/exp:channel:entries}

    {exp:channel:entries channel="assets" category_id="22" limit="1"}
      {exp:cartthrob:add_to_cart_form id="add-cart" entry_id="{entry_id}" no_tax="{no_tax}" no_shipping = "{no_shipping}" return="checkout/view_cart"}

Date: {asset_date}

Price: {product_price}

Status: Available

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

      {/exp:cartthrob:add_to_cart_form}
     {/exp:channel:entries}


texts: Use of undefined constant Error in Low No Spam

texts:
I'm updating a client site to EE 2.9.2 from 2.5.1. Along the way I'm also updating the build of Low's NoSpam extension. Once installed it's throwing the following CP error:

  A PHP Error was encountered
  Severity: Notice
  Message: Use of undefined constant LOW_NOSPAM_CLASS_NAME - assumed 'LOW_NOSPAM_CLASS_NAME'
  Filename: libraries/Accessories.php
  Line Number: 106

I've re-downloaded/installed the files and uninstalled/reinstalled a couple times to no avail...

Any ideas?


texts: How do I hide or delete "open" and "closed" statuses from a custom status group?

texts: I've created a custom status group in EE 2.6.1. I'd like to use my own statuses (draft, ready, send, sent) and I want to remove "open" and "closed", or rename them. What's the easiest way to get rid of the default open and closed status choices?


texts: Solspace Importer not importing members in their member group

texts:
Using EE 2.7.0 and Importer 2.2.3 and trying to set up a members import. The csv has been saved out of open office as a utf-8 " enclosed and comma-delimited.

I have 3 lines to test this with, using the first lines as headings.

On import, it recognizes my file, then does the import 'successfully'. However, nothing gets entered into the members group I have designated. I have checked to make sure the group is unlocked, and that my file is formatted correctly. It tells me it runs correctly, but nothing happens to the fields.

2013-10-14 18:50
Start Time:
Run Time: 0.024 seconds
Import Location: Control Panel
Number of Queries: 10
Member Inserted: 0
Members Updated: 0
Total Members Processed: 0
Member IDs:
End Time: 6134-10-15 18:50
* Press the ESC key to close window.

Incidentally, I ran this on the full sheet of 700+, and it noticed I had batche processing and said it did the amount on my sheet, but again, nothing went in.

Any ideas?


texts: Replace a variable within a plugin tag pair?

texts:
So if I have a plugin, with a tag like this:

{exp:reggy mask="yes"}
    {head-type}
{/exp:reggy}

And I want to replace {head-type} with "horse mask" in the plugin code, how do I do that?  EE docs account for replacing the whole text or modifying it, but don't specifically address variable replacement.


texts: Recommendation for dynamic Store product data updates

texts:
I'm wondering of the best way to tackle the development of some custom logic for a product inside Store 2.

I'm trying to update other Store fields of a project (Length, Width, Height, etc..), based on what Modifier has been selected. For example, if a user chooses Modifier A, add 3 inches onto the height; Modifier B, add 4 inches.

The Store product fieldtype doesn't provide any hooks for extension, so I'm wondering if all this should be done using other custom fields and updated on template run time, or if there is a way to hook into the product custom field and do this when a product is updated in the CMS.

Any thoughts, suggestions, or ideas would be appreciated. Thanks!


texts: Sharing live file upload folders with dev

texts:
I have a scenario where I would like to share the live file upload folders for a site with the dev environment. Both environments are on the same server so I've created a symbolic link in the dev environment pointing at each of the corresponding folders in the live environment. This works perfectly well over SFTP, I can click into one of these folders in dev and I see the contents of the folder on live.

However I'm unable to access files in these folders via HTTP requests. Is there something I'm missing? It seems like an obvious approach to the problem but maybe it's not that simple?

This is a pretty old site so we're stuck with 1.x (1.7.1 at present) else I would use the lovely new file upload location config vars to resolve the situation. :)


texts: Standard category fields for all cat groups?

texts:
I do not see a way yet to do this within EE. But would be a huge time consumer not to mention pain on the front end to manage different custom field names that I want to display using the same field name across multiple category groups.

I could manually create the field for each group with the id of the group appended or something and just swap it in but still that would be a lot of extra work for when all I want a set of custom fields for all category groups similar to how I can use the same channel fields group between multiple channels.

Any ideas of a way to handle this without manually creating custom fields for each group would be much appreciated.


texts: I have a strange issue login issue for super-admins. The site is up and running and all other users can login as normal but it hangs when ever a super-admin logins in. I have manually cleared the cache but to no avail . I am running expression engine 2.4.0


texts: 1 include - 2 templates - 2 different results

texts:
I have an include / embed file that is being shared across two templates. However one template is displaying a result of the channel:entries tag in the embed whilst the other refuses to display a result.

I have tried updating the channel:entries tag and the second refuses to load content from any channel at all.

Below is the log information from template debugging:

Template 1:

https://www.dropbox.com/s/1g8dw1npd1ysge1/Screenshot%202014-07-29%2017.50.53.png

Template 2:

https://www.dropbox.com/s/29redguruvjy5am/Screenshot%202014-07-29%2017.50.01.png


texts:
I'm opening this issue here on StackExchange because the folks at Ellis seem to be incapable of resolving this issue https://support.ellislab.com/bugs/detail/20748/relationship-parents-php-parse-error-ignores-condition

If there are any PHP gurus out there who can troubleshoot this issue, please weigh in. PHP is not my forte.

This is what I've found:

{parents field="doctors_locations" limit="1"}
    {if parents:doctors_locations:total_results >= 1}
        View Doctors
    {if:else}
        {!-- RETURN NOTHING --}
    {/if}
{/parents}

This returns more than 100 PHP errors in a search results page with 10 results. This is the most common error:

A PHP Error was encountered
Severity: Notice

Message: Undefined index: 66

Filename: relationship_parser/Tree_builder.php

Line Number: 544

Towards the end of the errors, I found this:

A PHP Error was encountered
Severity: Notice

Message: Undefined offset: 4529

Filename: relationship_parser/Parser.php

Line Number: 52

And finally this:

A PHP Error was encountered
Severity: Warning

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

Filename: core/Common.php

Line Number: 479

If I remove the conditionals like this:

{parents field="doctors_locations" limit="1"}
    View Doctors
{/parents}

I only get 3 PHP errors that are basically the same:

A PHP Error was encountered
Severity: Notice

Message: Undefined offset: 4530

Filename: relationship_parser/Parser.php

Line Number: 52

The only difference between the three errors is that the Undefined offset increments from 4528 to 4530.


texts: Playa total_parents tag vs search parameter

texts:
I'm using the {exp:playa:total_parents} tag with a search:comment_matrix_row='={segment_3}' parameter, but it appears to ignore the search-parameter. Is that expected behavior?

Thanks,

Steven


texts: Getting a true base url when sharing a system folder

texts:
This is a little difficult to explain, but let me try.

I've built a portal site with three separate domains that share the same system folder. So the portal_domain uses "./system/" and the other child domains are housed in subdirectories, so portal_domain/child_domain/ uses "../system/".

I built it this way, so members could log into one central system and manage content on three separate sites without having to jump from one system to another.

It works great, except for one thing. I'd like to make some redirects based off the url you are using, but it doesn't matter what the base url is, the system only sees the current_url as the base.

I want to be able to say if you go to a child domain, redirect to a custom home page for that child domain, but I can't find any way to target that.

If you visit the portal domain http://portal-domain.com
the code {current_url} yields http://portal-domain.com

And if you visit the child domain https://child-domain
the code {current_url} still yields http://portal-domain.com

Is there any way around this?


texts: Assets 2 Database Update Error on EE 2.5.1

texts:
Just ran into the following database error while upgrading from Assets 1.2.2 to 2.0.1. I'm running EE 2.5.1

A Database Error Occurred
Error Number: 1050

Table 'exp_assets_folders' already exists

CREATE TABLE `exp_assets_folders` ( `folder_id` int(10) UNSIGNED AUTO_INCREMENT, `source_type` varchar(2) DEFAULT 'ee' NOT NULL, `folder_name` varchar(255) NOT NULL, `full_path` varchar(255), `parent_id` int(10) UNSIGNED NULL, `source_id` int(10) UNSIGNED, `filedir_id` int(4) UNSIGNED, PRIMARY KEY `folder_id` (`folder_id`) ) DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;

Filename: third_party/assets/upd.assets.php

Line Number: 430

I made sure the extension was enabled, then went to run module updates, confirmed DB was backed up and encountered this error.


texts: Deleted Pages URI Module and my site crashed..!

texts:
I had an issue with my MSM where it didnt allow me to "Submit" my entry and I have googled for the error and then I came across an answer which said to delete the "Pages" module. I did so and I didnt realize that I was going to hit hard by that step. Alfter I did that all my URLs got messed up.

I have around 1000 channels which basically make up my college website.

Is there anyway I can restore all the URLs..?? Please help me out with this.

Its really urgent and Please Please Please help me out ...!!


texts: Where is the status of a channel entry stored?

texts:
In my plugin query, I basically just want to know what the status of an entry is.

I checked exp_channel_entries and its not there.

I see status field in exp_channel_entries_autosave but the table is empty.

Any ideas?


texts: Simple Search results limiting not working

texts:
The search is working fine however the search results are not being limited. Any ideas?

    {exp:search:simple_form
        channel="about|approach|blog|job-ads|solutions|who_we_help"
        search_in="entries"
        results="3"
        result_page="search"
        no_result_page="search/no_results"
    }
        <input type="hidden" name="XID" value="{XID_HASH}" />
        <input id="keywords" name="keywords" placeholder="TYPE AND PRESS ENTER" type="text">
    {/exp:search:simple_form}


texts: I'm new to e-commerce implementation and have a few general questions on what to expect

texts:
I've been developing EE sites for the past 4 years but haven't had an opportunity to build a site using ecommerce yet. I now have an opportunity to build a simple an ecommerce site and I'm confident that I can implement it with any of the ecommerce modules available, but since I haven't actually done this before I have some VERY basic questions that have more to do with set-up, cost, testing, etc.

If anyone has a second to share any info I'd really appreciate it!

Are there any hidden costs? I know the payment gateways charge a percentage of the sale and have a yearly fee too. The SSL has a fee and setup cost too? Anything else I should be aware of? Payment gateway recommendations?
Speaking of getting an SSL set up is that difficult? I'm think of using EngineHosting any other hosting suggestions or recommendations?
This is a broad question ... What's the most difficult part of creating an online store? I'm just trying to discover any universal pitfalls or annoyances that might be out there.
How do you test the store when you're building it? Do payment gateways allow this? Can I test locally or do I need to use a production server?
Anything else I should be aware of? Words of wisdom?

Thanks!!!


texts: How can I load different CSS files, depending on the channel?

texts:
I have four different channels and three different channel-specific CSS files (two get the same CSS). What's the best way to go about loading these CSS files depending on the channel?

NOTE: I'm using Structure, so my URI won't necessarily contain the channel information.


texts: Getting Error number 1054 on one channel entry in CP

texts:
I've just imported a copy of a live site into my local development environment in order to make some changes, but almost immediately I've found that there is one channel entry that I cannot edit in the CP. Attempting to do so generates:

  A Database Error Occurred Error Number: 1054

  Unknown column 'can_access_admin' in 'field list'

  SELECT can_access_admin, can_access_edit, group_id,
  group_title FROM (exp_member_groups) WHERE site_id = '1' AND
  can_access_content = 'y' ORDER BY group_id, group_title

  Filename: models/member_model.php

  Line Number: 1065

Other entries in the same channel seem to be okay, and the entries of other channels seem okay also. It's just this one entry (and the entry shows up on the front end okay). I am able to access the entry on the 'live' site, so I did try re-exporting the live database and re-importing it into the dev environment, but the problem persists.

Can anyone shed any light on this or give me a clue about how to resolve it? (I guess I could just recreate the entry, but I'd prefer not to). I'm not much of a MySQL wrangler, I'm afraid.

EE2.9.3


texts: CartThrob - Deposit & Installment Payments with special timing

texts:
We are evaluating CartThrob for a client's site that has some quirky requirements for recurring charges and the timing of these charges. I'm trying to figure out if CartThrob can provide the necessary functionality, be adapted to meet the requirements, or connect to a payment gateway that has these built in.

Client is selling a product that requires a deposit of $X amount and subsequent installment payments of $Y amount (installment payments are all equal). The deposit must be charged right away, and the installment payments must be charged on the 1st or 15th of the month (recurring monthly for a few months) for accounting reasons.

From the docs, it appears CT (using CT Subscriptions) would allow for the $X deposit to be treated as a trial subscription and the $Y installments to be a set number of rebillings (e.g., 1x per month for 4 total_occurrences). I see that we can set the start date of the subscription; however, I do not see a way to have the trial billed immediately but have the rebillings occur on a different date of the month. (Client is not willing to wait until 1st of 15th to charge deposit.)

Is there a way to do this 'out of the box', or could something simple be coded to update the rebilling date after the deposit is received? We really appreciate any input on this ... and thank you Vector for acquiring CT!


texts:
I'm seeing a very strange thing where the EE installation wizard won't fully render. I'm getting a couple of sites ready for a system update. After backing up the sites and databases I always run the server wizard to make sure I'm not missing something. For this particular server, the wizard is just not working. All the little php items are failing.

Instead of rendering out the page elements, I see things like:

<?= $title ?> or <?= $heading ?> or <?= $content ?>

These sites already have EE2 installed, so I'm scratching my head as to what's going on.

I've checked php, and it's running at 5.3.29

In both cases, the existing website and CMS are fine.

Any thoughts?


texts:
Have a site that has hundreds of PDF files which users can access once they create an EE member account.

Client is asking if there is a way to track which files the user has downloaded and either log them against their account or email the client with a report at the end of a session.

Has anyone come across a plugin or third party system that would achieve this?


texts:
I'm using the Antenna plugin to display a YouTube video on a website. The strange thing is that there's a close bracket ')' being inserted after the video.

I can't for the life of me figure out where it's coming from as there are no closing brackets in the template anywhere.

Here's a link to the page (click on the video on the right-hand side): http://dev.whelanservices.com/pest-prevention

Here's the code:

        {exp:channel:entries channel="videos" dynamic="no" status="open" entry_id="57"}
            {exp:antenna url='{video_url}' max_width="900" max_height="" cache_minutes="120" youtube_rel="0"}
                {embed_code}
            {/exp:antenna}
        {/exp:channel:entries}

Any help is appreciated.


texts:
I have EE 2.7.3 with a grid-field.
In this grid I have 3 fields. Two of them are date-fields, one is a text-field.

By the import i can only see the main customfield for this grid. I take this field for all the options i can fill in.

When I run the import it will not import the dates from the two date-fields.

Thanks!


texts: channel entries tag seems to run before my module function

texts:
The {exp:bmi_favorite:list_ids entry_type="recipe" site_id="1"} outputs 18|19 to be passed to the entry_id parameter. It does not work, unless I manually add the 18|19 into the entry_id, like entry_id="18|19". That leads me to believe my module function (list_ids) is running after the exp:channel:entries tag. Is it possible to run list_ids first, without having to tweak the settings for the template the code is in?

I also tried changing the single quotes to double quotes and that did not change anything.

{exp:channel:entries
    channel="recipes"
    entry_id='{exp:bmi_favorite:list_ids entry_type="recipe" site_id="1"}'
}

    <h2>{title}</h2>

{/exp:channel:entries}

public function list_ids()
{
    $entry_type = $this->EE->TMPL->fetch_param('entry_type', false);

    if($entry_type == false)
        return 'Please provide valid entry_type';

    $site_id = $this->EE->TMPL->fetch_param('site_id', '1');

    $where_data = array(
        'site_id'       =>  $site_id,
        'user_id'       =>  $this->EE->session->userdata('member_id'),
        'entry_type'    =>  $entry_type,
    );

    $query = $this->EE->db->where($where_data)->get('bmi_favorite');

    if($query->num_rows == 0)
        return false;

    $i = 1;
    $output = '';

    foreach($query->result() as $row):
        $output .= $row->entry_id;
        $i++;

        if($i <= $query->num_rows)
            $output .= '|';
    endforeach;

    return $output;
}

UPDATE: I added parse='inward' to the end of my list_ids template tag, that did the trick, but I'd like it to do that without the user having to put parse='inward' themselves, is that possible or the user will always have to append parse="inward" onto my module tag?


texts: I have a current project that uses Expresso Store and I need to make the site multilingual (including the products available in the store). I am debating on using Transcribe to handle the heavy lifting of making the site multi-lingual and the products on sale, but I'm thinking there may be a problem. If Transcribe basically creates a duplicate related entry for the translation will this also duplicate the products in Store? (i.e.; Inventory items)


texts: How to show entries for next week or last week

texts:
Related to this question new channels shown by week
How could you show entries, not for the current, but for next week?

If you have many future entries, show_future_entries="yes" display_by="week" limit="1"
will show one week worth of entries, but it's showing the furthest away future entries.

What are some of the options to display entries for next week?


texts: Optimization: Need to cut-down on server load

texts:
Our predicament is that we are using 3 media queries with different layouts which means that we're essentially generating all of the content 3 times. For instance:

  {embed="template/view_small"}

  {embed="template/view_medium"}

  {embed="template/view_large"}

You can see how ridiculous this is. We have tons of things being pulled in and we're starting to see overages on our data for doing it this way.

We're wondering if there's a way to use PHP (or EE itself) at the top of the document to load everything once and then send only the pertinent data to the nested templates at each media query.

Thanks for any input on this.


texts:
Is there a way to check if a template page exists?

When we embed pages we do it like this

{embed="foo/bar"}

I was thinking if it was possible to do something like this

{if {template_exists path="some/path"}}
  PAGE EXISTS
{if:else}
  PAGE DOES NOT EXISTS
{/if}


texts:
I’m creating an ExpressionEngine extension. I want to get the IDs of any records that are deleted. I’m aware of the delete_entries_end() and delete_entries_loop() hooks, but they both return void which isn’t much use.

Is this possible out of the box with ExpressionEngine? I wanted to steer away from editing core files to make any future core upgrades seamless.


texts: Undefined property session in cp_js_end hook

texts:
Currently facing the following error in the cp_js_end hook.

Undefined property: Javascript::$session

it looks like the session class isn`t loading anymore in EE 2.6+ It whas working in older versions.

Is this a bug, or did EL change the way of loading the session class in some other order?

Example:

function cp_js_end()
{
   print_r(ee()->session);
}


texts: P&T Playa not submitting into Channel Form (EE 2.8 & Playa 4.3.3)

texts:
In 2.5.3 with Playa 4.3.3, the following setup worked, but after an upgrade to 2.8.1 and a rebuild of the channel:form, submissions are not working.

I have a channel:form, with several input fields that are submitting correctly. I also have an embed that contains a channel entries loop, so I can display video previews, plus the checkbox for the Playa field. I had this working before in the same setup (same field and channel), but now when it submits, no relationships are made.

{exp:channel:form dynamic_title="[order_tv_retailer_name]" channel="store_tv_orders" return="{segment_1}/{segment_2}/order/ENTRY_ID" entry_id="{segment_4}" error_handling="inline" datepicker="no" use_live_url="no" include_assets="no" include_jquery="no" class="form-horizontal form-bordered" site="msm_site"}

{!-- INSIDE OF EMBED {embed=""} --}
{exp:channel:entries channel="tv_commercials" disable="category_fields|member_data" site="msm_site" search:tv_commercials_brand="{site_short_name}\W"}

{tv_commercials_asset kind="=video" var_prefix="file"}

<input type="checkbox" id="order_tv_selection_{entry_id}" value="{entry_id}" name="order_tv_selection[selections][]" class="form-control" required>

{/tv_commercials_asset}

{/exp:channel:entries}
{!-- END OF EMBED --}

.....more input fields that submit correctly.....

{/exp:channel:form}

The intention is to make a Playa relationship using channel:form and an embed that loops through the channel entries I would like to relate. I'm following the documentation for a channel:form checkbox for Playa to a tee (http://docs.pixelandtonic.com/playa/templating/channel_form.html).

Thank you for any suggestions and assistance!


texts: EE Store 2 and paid UPS extension seems to be broken

texts:
I am trying to implement the UPS Shipping Extension purchased and it appears to be broken. I've uploaded the extension, enabled it, entered in the Access Key, User ID and Password. I've setup the shipping options and entered in the source destination. Based on previous issues found here, I've made sure the country is "US".

Within my template I've added {field:shipping_method} in the checkout tag. All I get is an empty drop down. The UPS account exists and is set up as a personal account with one access key generated.

I'm using Store 2.04 and UPS extension 1.02

I'm out of options here. I can't even troubleshoot anymore. Where did things break in this super basic setup I have?


texts:
I have a zoo visitor channel for all my members.  My zoo visitor has multiple category groups.  I am trying to create a category drop filter menu to filter the members by category.  In the drop menu I need each group name displayed and then all the categories:

ie:
Filter by Category:

--Category Name A--

Category 1

Category 2

--Category Name B--

Category 1

Category 2

The 2 categories I am using right now are group ID 39 and 41

<form name="catmenu" action="">
  <select name="selcat" onchange="location=document.catmenu.selcat.options[document.catmenu.selcat.selectedIndex].value;">
  <option value="">Filter by Category</option>
  {exp:channel:categories cache="yes" refresh="60" channel="zoo_visitor" disable="category_fields" style="linear"}
{if parent_id == '39'}{if count != '1'}</optgroup>{/if}<optgroup label="{category_name}">{/if}
{if parent_id != '39'}<option value="{path='home/directory'}">{category_name}</option>{/if}
  {/exp:channel:categories}
 </select>
</form>


texts: Since updating to Assets 2.2.2, any images that were uploaded with spaces in the file name are now completely absent from the front end. Is there a quick fix for this or do I need to go into Assets and rename all of the images?


texts:
I trying have a SQL query pass some information to a playa.
I can fetch the entry ID and even the field output, but can't pass to exp:playa:

Here is a cleaned up snippet of the call

{exp:query sql="SELECT DISTINCT entry_id AS id FROM exp_channel_data WHERE entry_id IN (100,101,102)"}
    {exp:playa:children var_prefix="widget" entry_id="{id}"}
        {embed="widget/{widget:channel_short_name}" entry_id="{widget:entry_id}"}
    {/exp:playa:children}
{/exp:query}

The playa call isn't successfully embedding the templates. I can however grab the playa field directly, but I would have to manually parse it.


texts: In Freeform, where is the 'from' email address set?

texts:
I'm using freeform for a simple contact form. Notification emails are being sent when the form is submitted, but they are coming from my gmail.com email address, and I would like them to come from my info@mydomainname.com address. Where can I set the email address that the form submission notification emails originate from?

I appreciate your help!


texts:
After the Upgrade from EE 2 to 3:
A certain fieldgroup I can not open to change it. I have 5 fieldgroups, I can edit all, except:
.../index.php?/cp/channels/fields/4
If I want to open it, I land on CP Home. A bug? What can I do?


texts:
We have a production and dev database. The dev database is typically only used to change core features, channel setup, add-ons, etc. Never content.

We’re in a situation where we need to pull some posts for a channel down from the production version, but I’m not sure if it’s possible.

Is there a way to do this manually and safely, or an add-on that can help take care of it?


texts: Entries still displaying after their expiration date has passed, possible cache issues?

texts:
I'm developing a slideshow feature for a client where they enter entries into a particular weblog (the site is running on EE 1.7x) and set entry and expiration dates on each entry to determine when they start and stop displaying.

In theory, the client could add two entries -- "Entry A" and "Entry B" -- and give them different expiration dates, so that "Entry A" will stop displaying and allow "Entry B" to display. (Only one entry will be displayed at any given time.)

I have a jQuery script that will count down to the expiration date for "Entry A". When the countdown reaches 0, it reloads the page, and then "Entry B" will be displayed. (There's probably a more elegant way to handle the refresh, but I wanted to keep things simple initially.)

However, that isn't what happens. Even after "Entry A" has expired, which should stop it from displaying, and the page reloads, "Entry A" still displays instead of "Entry B". "Entry B" doesn't display until I go into the CP and clear all of the caches.

Here's the code that I'm using to display the entries:

{exp:weblog:entries weblog="foo" status="spotlight" dynamic="off" limit="1" disable="categories|member_data|pagination|trackbacks" orderby="date" sort="desc" show_expired="no"}

So here are my questions:

1) Am I handling/treating the expired entries correctly? Or is my understanding flawed?

2) If this is a caching issue, is there a way to disable all caching for this particular page? I've disabled all of the caching that I can in the CP, and yet, something is still obviously being cached.

3) If there's no way to completely disable caching, is there a third-party add-on that lets you clear caching on the front-end via, say, a special URL, e.g., http://www.domain.com/?cache-refresh=1 (I know there are some performance implications here, but I'm kind of at wit's end right now.)

Any ideas?


texts: Channel Entry sorting refuses to sort in the right order?


texts:
I am using a jQuery Chained Select Plugin.

But getting stuck loading the data dynamically to select options from my Expression Engine template. Seems pulling the value from the JSON url is causing the error, manually changing the mo'variable from url_title="{get:series}" to an entry url_title="test" makes the drop down work. What could be going wrong? How can I check what the URL is the plugin is outputting?

<form>
    <select id="mark-remote" data-variable="bar" name="mark">
        <option value="">--</option>
        <option value="bmw">BMW</option>
        <option value="audi">Audi</option>
    </select>
    <select id="series-remote" name="series">
        <option value="">--</option>
    </select>

    <button id="button-remote" type="submit">Button</button>
    <script>
        $(function() {
            /* For jquery.chained.remote.js */
            $("#series-remote").remoteChained({
                parents: "#mark-remote",
                url: "http://example.com/json",
                loading: "--"

            });
        });
    </script>
</form>

Expression Engine JSON template

{exp:http_header content_type="application/json"}

[
    {"" : "--",
    {exp:channel:entries channel="articles" dynamic="on" url_title="{get:series}" disable="categories|trackbacks|member_data|pagination"}
    {relatedarticle backspace="3"}
"{relatedarticle:url_title}":"{relatedarticle:title}",
    {/relatedarticle}
    {/exp:channel:entries}
    }
]

JSON output (Adding this manually to the template loads the data perfectly)

[{"" : "--", "data":"data" , "data":"data"}]


texts: Matrix with a Playa field which has a Playa Field

texts:
To set the stage, I've got 3 Channels:  Agenda, Sessions, and Speakers, with a breakdown of the custom field types as follows.

Agenda contains a Matrix field with 3 columns - the start time, end time, and a Playa field to select the session to add to the time slot
Sessions contains a title and description field along with a Playa field to choose the Speaker(s) for that session
Speaker contains several custom fields that describe the speaker.

I'm trying to create the Agenda, and read about a few different options.  This is what I have so far, but obviously it's not working.

{exp:channel:entries channel="agenda" dynamic="no" limit="1" show_future_entries="yes" }

{title}

{agenda_description}

{agenda_date_monday format="%l, %F %j"}

{agenda_monday}

{am_start_time format="%g:%i%a"} - {am_end_time format="%g:%i%a"}

    {am_session}
{title}

        {session_speakers}

{title}

        {/session_speakers}
    {/am_session}

{/agenda_monday}
{/exp:channel:entries}

Thanks for any suggestions, and please feel free to ask clarifying questions!


texts:
Using, for instance, {current_time} you get the time according to your server timezone setting. I see I can format it with {current_time format="{DATE_COOKIE}"} to get a result in UTC, but I need it in another format than cookie.

I know I can write a plugin or some direct PHP to pull it out, but is there anything within what EE gives us to return the UTC time?


texts: Replacing Controller and function name with attribute in Codeigniter?

texts:
in htaccess or route.php where from you want you can give answer for this issue.

I Need some thing like this.if i have url :

http://tageto.pnf-sites.info/developer/headcategory_controller/head_category/Agriculture

than it must be replaced into

http://tageto.pnf-sites.info/developer/Agriculture

and if i have url like this

http://tageto.pnf-sites.info/developer/headcategory_controller/sub_category/Rice

than it must be replaced into

http://tageto.pnf-sites.info/developer/Rice

and if i have url like this

http://tageto.pnf-sites.info/developer/products/view_product/nokia-internet-stick-cs-17-hsdpa-144mbps-logo-nokia-black-1

than it must be replaced into

http://tageto.pnf-sites.info/developer/nokia-internet-stick-cs-17-hsdpa-144mbps-logo-nokia-black-1

Can anybody solve my this issue? Please reply rapidly.

.htaccess

 <IfModule mod_rewrite.c>

RewriteEngine On

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

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

To remove index.php i need all i mentioned above for url so that url becomes canonical.


texts: Expesso Store - ratings / reviews add-on?

texts:
Expesso Store

Looking to add a ratings / reviews facility for each product in the Store.

Could anyone recommend an EE Add-on that would be suitable & would 'play nicely' with Expresso Store?

Many thanks for your help!


texts: URL errors of URI submitted has disallowed characters

texts:
In google webmaster tools i seem to be getting of 503 pages and other errors
The website is old.
Mainly from old url's that don't exist anymore.

For example
page.com/meubels?page=75&%24Version=1&%24Path=%2F
=> returns "Disallowed Key Characters."

Another url error is the following: page.com/brands/brand%3Fpage=1?page=1
=> returns "The URI you submitted has disallowed characters."

Related Invalid Get Data was solved here.

Is it possible to have a 301 redirect to such url's through htaccess or any other way to redirect visitor's to the correct pages in staid of having them stuck on old url's with error pages.

Thanks


texts: Why can't I call {event_summary}, but I can call every other event property? (Solspace Calendar)

texts:
Here's my template file:

{embed="_includes/header"
    entry_title="{exp:channel:entries status="Open|Closed" channel="settings" disable="categories|category_fields|member_data|trackbacks"}{title}{/exp:channel:entries}"
    entry_id="{exp:channel:entries status="Open|Closed" disable="categories|category_fields|member_data|trackbacks"}{entry_id}{/exp:channel:entries}"}

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

&nbsp;

&nbsp;

                {exp:structure:nav start_from="/en/{segment_2}/" max_depth="1" current_class="active"}

{events_page_title}

            {if title}
{calendar_title}
{/if}

            {calendar_description}

                    {exp:calendar:mini
                        calendar_name="events"
                        enable="pagination"
                        date_range_start="2013-10-01"}
                    {/exp:calendar:mini}

                {exp:calendar:events}

                        {if event_all_day}
                            {event_start_date format="%F %j, %Y"}
                        {if:else}
                            {event_start_date format="%F %j, %Y"} - {event_end_date format="%F %j, %Y"}
                        {/if}

                            {event_title} ||

                        {event_id} ||
                        {event_author} ||
                        {event_summary}

{location}

                    {if no_results}

No Results

                    {/if}
                {/exp:calendar:events}

{/exp:channel:entries}

{embed="_includes/footer"}

About 3/4 of the way down you can see me attempting to call {event_title} and {event_summary}, as per the documentation here.

And the output....

output http://puu.sh/4Teja.png

It doesn't output summary, but it IS outputting title, ID, etc.... Why can I call every property of the event BUT the summary?

Investigating further, I went into PHPMyAdmin, into the exp_calendar_events table -- and found out that there is no field for event summary.

Why is this? Is my installation bugged or am I missing something?

(I created Test Event Numba One by going Content -> Publish -> Calender: Events in the CMS)


texts: How do you prevent admins from being locked out of the control panel even with correct password?

texts:
This has been a continuous issue with ExpressionEngine - admins having to clear their cookies to login to the site.

Even when typing in the correct username and password, the user is return back to the control panel login page with no error message. How do you prevent this?


texts:
A client is complaining about an increase in SPAM so I'm looking into using the "encode" tag  on email addresses on the site. All email addresses are generated from channel entries from a text field within a Grid field cell.

I use this code in my template...

{facility_contact_info}
{encode="{facility_contact_info:email}" title="Email Us"}
{/facility_contact_info}

I get this output on the front-end...

Email Us

So besides the span tag with the data-attribute, the email address looks normal in the html. Did I do something wrong, is this a bug? Does "encode" even work anymore? Thanks for any info!


texts: Safecracker Channel selection from radio selection

texts:
Is it possible to choose which channel a safecracker form should post to if you leave the safecracker's channel to ="" and then having a radio selection of the channel_id's??

is this even possible?


texts:
Does anyone know how to remove the E-commerce tab? It's not really useful for us and can't be removed as far as I can tell — which is a problem on MSM sites that cannot have access to CT.

I'm hacking it with ZooFlexible Admin but it's a pain configuring this every MSM install (there are many and it's growing).

Thanks


texts: Removing Directory from URL with .htaccess

texts:
I have a site setup with a template directory called “pages” so I can call to the pages with the following URL:

http://sitename.com/pages/page-name

However, for SEO reasons I would prefer to remove the “pages” part of the URL so that it reads as:

http://sitename.com/page-name

A search on Google has presented some possible solutions but there is some type of conflict. Perhaps with the my rules to remove “index.php”? Can anyone offer any pointers? Below is my current redirect conditions.

<IfModule mod_rewrite.c>
  Options +FollowSymlinks
# Options +SymLinksIfOwnerMatch
  RewriteEngine On
# BEGIN ExpressionEngine Rewrite
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
  RewriteRule ^(.*)$ /index.php?$1 [L]
# END ExpressionEngine Rewrite
</IfModule>


texts: PHP filtering not working consistently with stash

texts:
{exp:tag:related_entries
    entry_id="{embed:entry_id}"
    orderby="relevance" sort="desc"
    limit="10"
    {if '{embed:channel}' != ''}channel="{embed:channel}"{/if}
}

<?php if (!in_array('{entry_id}', $filtered_ids)) { ?>

    {exp:stash:append_list name="my_list" parse_tags="yes"}
        {stash:id}{entry_id}{/stash:id}
        {stash:item_title}{title}{/stash:item_title}
        {stash:item_category}{categories}{category_name}{/categories}{/stash:item_category}
        {stash:item_category_url}{categories}{category_url_title}{/categories}{/stash:item_category_url}
        {stash:item_channel_name}{channel_name}{/stash:item_channel_name}
        {stash:item_channel_name}{channel_name}{/stash:item_channel_name}
        {stash:item_hero}{hero}{/stash:item_hero}
    {/exp:stash:append_list}

<?php } ?>

{/exp:tag:related_entries}

Why is the above not filtering entries, when the code below works as expected:

{exp:tag:related_entries
    entry_id="{embed:entry_id}"
    orderby="relevance" sort="desc"
    limit="10"
    {if '{embed:channel}' != ''}channel="{embed:channel}"{/if}
}

    <?php if (!in_array('{entry_id}', $filtered_ids)) { ?>

    do display - {entry_id}

    <?php } else { ?>
    do not display - {entry_id}
    <?php } ?>

{/exp:tag:related_entries}

I'm trying to filter entries, I have a list of entries that I dont want to display, which I've converted to an array, but when I add the stash append_list code it contains all the entires, even those that will get printed as 'entry_id do - not display' when I run the first code.


texts:
I'm working on two templates which use the same snippet for outputting data. One is a HTML template which displays a table, the other forces the download of a CSV.

With some conditionals I've set up my snippet to replace all table tags with either nothing, spaces or commas for the CSV delimiters, but the CSV output still has all the line breaks which I'd ideally like to keep in place so that I can still actually read the template when I need to edit it.

The template that downloads the CSV looks like this:

<?php
    header('Content-type: text/csv');
    header("Content-Disposition: attachment; filename=file-{current_time format='%d-%m-%Y'}.csv");
    header("Pragma: no-cache");
    header("Expires: 0");
?>
{sn_filter_urls}

Inside the snippet is

{if segment_2=='html-template'}

      Line type
      Campaign
      Labels
      Campaign Daily Budget
      Campaign Type
      Networks
      Languages
      Bid Strategy Type
      Enhanced CPC
      Ad Rotation
      Delivery Method
      Ad Group
      Max CPC
      Final URL
      ID
      Location
      Criterion type
      Keyword
      Description
      Headline 1
      Headline 2
      Path 1
      Path 2
      Comment
      Link text
      Feed name
      Header
      Snippet Values

  {/if}
  {if segment_2=='csv-template'}Campaign,Labels,Campaign Daily Budget,Campaign Type,Networks,Languages,Bid Strategy Type,Enhanced CPC,Ad Rotation,Delivery Method,Ad Group,Max CPC,Final URL,ID,Location,Criterion type,Keyword,Description,Headline 1,Headline 2,Path 1,Path 2,Comment,Link text,Feed name,Header,Snippet Values{/if}
    {exp:channel:entries}
        {embed='_embeds/.filter_url_activity_title'}
    {/exp:channel:entries}
  {if segment_2=='filter-urls'}

{/if}

And inside the embedded template:

{exp:channel:entries}
  {exp:super_search:results}
    {if segment_2=='html-template'}
{/if}
      {if segment_2=='html-template'}{/if}DATA{if segment_2=='html-template'}	{if:else},{/if}
      {exp:loopee forint="1" to="17" by="1"}{if segment_2=='filter-urls'}	{if:else},{/if}{/exp:loopee}
      … other table markup …
    {if segment_2=='html-template'}
{/if}
    {sn_sitelinks}
  {/exp:super_search:results}
{/exp:channel:entries}

There's another snippet in there which also has similar table markup but the problem with the line breaks exists in the short example above. Wherever I'm using loopee to output markup or , the , all come out on one line which is what I want, but where I've put line breaks in my template so a new td starts on a new line, that's showing up in the CSV output.

Is there a way I can have the contents of sn_filter_urls run through a process to remove the line breaks before it's then downloaded?


texts:
In a channel, I've removed the Structure tab, but there's no way to get it back. Or at least, I'm missing it. The tab is gone, but all fields that were in it too and they're not in the Fields list.

I'm talking about 'Structure Parent Entry', 'Structure Page URL', 'Structure Template', 'Hide from nav' and 'Listing Channel'.

Any way of getting them back somehow?


texts: I want to update a channel entry and save it as a draft. I am the admin but I need someone else to review the changes before it is published. This would be either a new channel entry or an updated one. Much like it's done in WordPress. Is there an adon or can I do it natively in EE.


texts: Take user straight to checkout (without adding items to a cart) using CartThrob

texts:
I've got a site where I'd like each order to contain just one product/item. Therefore, I want to bypass the step of adding an item to a cart, and being able to keep adding items to the cart (the reason I want to skip this is because I don't want the user to end up with more than one item in the cart when they go to the checkout).

I just want to take the user straight from a 'Buy Now' button to the checkout page, where they enter their payment details and complete the order. How would I go about doing this with CartThrob?

My usual workflow would be to use the Add to Cart form, then from there, go to the checkout page. I'm a bit unsure on how to cut out this 'Add to Cart' step in the middle though - I've tried using the checkout form with my 'Buy now' button, but I just get a message saying my cart is empty so I'm obviously going about this the wrong way.


texts: Solspace Calendar: Only show next occurrence of recurring event in list of recurring and non-recurring events

texts:
I have another interesting challenge to solve with Solspace Calendar and I've not been able to find a solution so far, which is not to say there isn't an obvious solution I've missed.

I have a custom field on events (event_featured) which allows an admin to flag individual events as 'featured' and I want to show a list of these featured events on the homepage. However, if an event is recurring, I only want to show the next occurrence of that event and not all occurrences.

On the homepage, I'm pulling out a list of the featured events with this code:

{exp:calendar:cal date_range_start="today" date_range_end="2 years" enable="custom_fields"}
  {if event_featured == "y"}

{event_title}

      {if event_all_day}<time class="eventdate" datetime="{event_start_date format="%Y-%m-%d"}">{event_start_date format="%l %j%S %F %Y"}</time>
      {if:else}<time class="eventdate" datetime="{event_start_date format="%Y-%m-%dT%H:%iZ"}">{event_start_date format="%l %j%S %F %Y at %g:%i%a"}</time>{/if}

{event_summary}

  {/if}
{/exp:calendar:cal}

This correctly displays events that are flagged as featured but obviously if an event is recurring, it shows all future instances. Can anyone suggest a solution?


texts: Expresso Store - How to use the checkout tag without any items in the cart?

texts:
I would like to use the {exp:store:checkout} tag to amend a members details such as order_email, shipping_country etc on an account page. Members fields are all setup being mapped to the correct place.

However, when viewing the account page (using the checkout tag) it will only show the member fields for editing when there is something in the shopping cart. I want to be able to show these details when there is nothing in the cart.

It must be possible, any ideas please?

Thanks.


texts:
I'm trying to get some pagination at the bottom of my search results, and I can't seem to get it to work.  All the results display as expected, but there's no pagination at the bottom.  Here's my code:

{exp:search:total_results} Result(s) for "{exp:search:keywords}"

            {exp:search:search_results paginate="bottom" limit="4"}

{title} from {channel}
{excerpt}

        {if count == total_results}

        {/if}
        {paginate}

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

        {/paginate}
        {/exp:search:search_results}


texts:
Is it possible to use the new EE 2.6 native relationships in parcels.  I cant seem to get it to work... tried a few different syntax styles?

Your application for {parcel:application_related_fair}{application_related_fair:title}{/parcel:application_related_fair}has been submitted and will be reviewed shortly.

Your application for {parcel:application_related_fair}{parcel:application_related_fair:title}{/parcel:application_related_fair}has been submitted and will be reviewed shortly.

Your application for {parcel:application_related_fair}{title}{/parcel:application_related_fair}has been submitted and will be reviewed shortly.

Your application for {parcel:application_related_fair:title} has been submitted and will be reviewed shortly.

none of these seem to work?


texts:
I was wondering if someone has successfully implemented both Facebook Connect and Zoo Visitor on a single site. Are there any issues I should be aware of? Does creating an account through Facebook also trigger the creation of a Zoo Visitor member-channel entry? Client has requested a quote on this functionality and I don't want to promise something that's dead in the water before I've even started.

Thanks,

Steven


texts:
My category group looks like this:

car seats
strollers

travel systems

gear

walkers
swings

nursery

When I'm on the URL /products/category/gear, I want to display:

gear (here)

walkers
swings

When I'm on the URL /products/category/walkers, I still want to display:

gear

walkers (here)
swings

I don't want to display the entire category group, just the current category's parent and/or children and/or siblings.


texts:
We're integrating a new client site that has a rather unique need. We have a matrix field with two columns. The second column needs to be output in the template in a list format (LI tags). Originally we planned on integrating P&T List for the second column but we found that it doesn't allow carriage returns, which is another requirement.

Here's the template we'll be integrating:

http://www.itistic.com/projects/radiologyassociates/html/radiologists/kedar.asp

We're using Matrix to output custom designations for each radiologist. In the page above, the USF Associate Professor list would be an example of a custom designation. So in our Custom Designations Matrix field we'd have the following columns:

USF Associate Professor   |   - Body Imaging
                              - Musculoskeletal

.. and here's another example:

http://www.itistic.com/projects/radiologyassociates/html/radiologists/feldman.asp

In this entry, the Cross Sectional Imaging Fellowship would be a custom designation that's input via this Matrix field. You can see here that we need the ability to do line breaks/carriage returns in a single list item.

Cross Sectional Imaging Fellowship   |   - Mayo Clinic
                                           Jacksonville, FL
                                           Body Imaging

Any options?


texts: Low Search: find channel entries with relationships to it?

texts:
I have a Products channel and an Images channel. The Images has a relationship field to Products (basically: a product can have 0 or more images).

Since most of my products do not have images, I'd like to showcase the products with images over the products without images. Meaning, I'd like to create a page that lists only the products that do have images, random order, and allow users to paginate through them.

In Low Search, is there a way to get a list of products that have images?

Products without images will still be viewable by doing a full text search or getting a list of entries based on the EE category they are associated with.


texts:
Just wondering if it is possible to show the {author}, {entry_date} and {comment_total} in the Prev/Next entry links? Here is what I have currently for the Next entry link, but only the {title} field is working—

{exp:channel:next_entry channel="news"}

{title}

by {author}

            posted {entry_date:relative}

          with {comment_total} Comments

Read more

          →

{/exp:channel:next_entry}


texts:
This is very similar to Matrix File Upload not displaying contents of directory, upload silently fails

I've just begun to work on an existing MSM site.
I set up some new upload directories, added them to my bootstrap array.

I had the faded upload button, etc.
When I updated my indexes, it returned to normal but the upload still just silently failed.

I updated Assets to the latest version because I read in the changelog "Failed uploads now display a proper error message."
Upon trying the upload again, I had to laugh... the alert simply said "undefined".

When I try to upload to an existing upload directory, I can't upload either, but the error says: "Could not upload the file - server returned an unexpected response. Please check the server settings."

In my web developer toolbar, the network tab shows a 200 OK POST to ?folder=35&ACT=36&qqfile=test.jpg.
ACT36 in my DB is Assets_mcp/upload_file.

All the folders have 777 permissions.
I believe all the file paths are correct because I can see files in Assets, I just can't upload.

What am I missing?


texts: CartThrob Is Calling It Quits... Can't Download Final Build 2.6.1

texts:
Edit (7.25.2015):
CartThrob has been acquired by Vector Media Group!  This question no longer really applies, but it will be left up for archival purposes.

So apparently and rather abruptly, CartThrob / MightyBigRobot is calling it quits and they are closing their business.  I do hope nothing catastrophic has happened and it is just a time for change for them.  I also wish them well on their future endeavors.  You can read their official statement at their website:

http://cartthrob.com/

Now, I have a CartThrob Pro license and after logging in to the site my purchases and downloads are not appearing.  I have not yet had a chance to download the most recent/final build of CartThrob, and as I transition to a new shopping cart solution I was hoping I would be able to get the most recent files for safekeeping.  If any CT support staff are still active and possibly reading this, is there any chance you could reactivate the purchases and downloads on the site for my account?

Are there any other CartThrob customers who are having the same issue not seeing their purchases and downloads on the site?


texts:
I am using expressionengine 2 and trying to compress css and js files, i can see the cached in the cache folder on my site root folder but the site does not display, it keeps loading.
has there been anyone with this issue, are there any other alternatives for doing the above without slowing down the site.

thanks


texts: Logging into CP returns to Site Homepage

texts:
I have a live site that I used to be able to login to without any issue.  I hadn't tried logging in for a month or so and when I tried to login again, it just redirects me to the homepage of the website.  I'm using EE 2.2.2 with some 3rd party addons including structure and some others.  I've checked their support forums and can't seem to find anything similar to the issue I am having.

Trying to figure out if its an EE issue or an add-on issue...


texts:
Using Dropdate 2.2.0 and EE 2.5.1

Outputting the field gives me this:

A PHP Error was encountered

Severity: 4096

Message: Argument 2 passed to Dropdate_ft::replace_tag() must be of the type array, boolean given, called in     /Users/Chad/Repositories/hhc/site/system/expressionengine/libraries/channel_entries_parser/components/Custom_field    .php on line 125 and defined

Filename: dropdate/ft.dropdate.php

Line Number: 338

A PHP Error was encountered

Severity: Warning

Message: array_merge(): Argument #2 is not an array

Filename: dropdate/ft.dropdate.php

Line Number: 357

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at     /Users/Chad/Repositories/hhc/site/system/codeigniter/system/core/Exceptions.php:170)

Filename: core/Common.php

Line Number: 412

Can someone direct me to a fix for this? I couldn't see anything obvious in the code. Line 338 is

public function replace_tag($field_data = '', Array $params = array(), $tagdata = '')

and the param in question is Array $params = array()


texts: Is there a better way to link to pages than by entry_id?

texts:
I have a need to place a few links into various templates to pages that might have their names changed as other individuals do SEO things that I do not agree with.  I was thinking the easiest way to add a url in a header as a callout would be by the entry_id.  I am not finding any way to get the URL from the entry_id other than writing my own plugin, which I did using the help of a stackoverflow answer that clued me into the url's being stored in the global array:
https://stackoverflow.com/questions/8245405/expressionengine-how-to-get-the-path-of-a-page-given-its-entry-id-with-the-str

I suspect that this is a problem others have a better solution for already, but being so new to EE I just do not know of?  Or maybe the need to change a pages url and title is not common enough for the need for a solution?


texts: Multi Environment config/config.php - Staging not working

texts:
I've just updated a site from EE2.9.3 to 5.1.1 and am attempting to deploy to a staging location so my client can preview it.

I've added a switch statement to users/config/config.php in order to keep things working locally and on staging. Locally all works as expected. However on staging I get an error about database connections:

SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)
ee/legacy/database/drivers/mysqli/mysqli_connection.php:81

Here is my switch statement with real paths and user/password replaced

    switch (strtolower($_SERVER['HTTP_HOST'])) {

        // Live
        case 'livedomain.com' :

  // Live stuff here

        break;

        // staging
        case 'staging.com' :

  // Staging stuff here
     // local stuff here
  $config['cp_url'] = 'http://staging.com/admin.php';
  $config['database'] = array (
   'expressionengine' =>
   array (
    'hostname' => 'localhost',
    'password' => 'password123',
    //'user' => 'user123',
    'database' => 'dennis',
   ),
  );
  $config['site_url'] = 'http://staging.com/';
  $config['base_url'] = 'http://staging.com/';
  $config['base_path'] = 'path/to/public';
  $config['theme_folder_path'] = 'path/to/public/themes/';
  $config['theme_folder_url'] = 'http://staging.com/themes/';
  $config['new_version_check'] = 'n';

        break;

        // main local site
        case 'dennis.test' :

   // local stuff here
  $config['cp_url'] = 'http://dennis.test/admin.php';
  $config['database'] = array (
   'expressionengine' =>
   array (
    'hostname' => 'localhost',
    'password' => 'root',
    'database' => 'dennis',
   ),
  );
  $config['site_url'] = 'http://dennis.test/';
  $config['base_url'] = 'http://dennis.test/';
  $config['base_path'] = 'D:\sites\dennis-drenner';
  $config['theme_folder_path'] = 'D:\sites\dennis-drenner/themes/';
  $config['theme_folder_url'] = 'http://dennis.test/themes/';
  $config['new_version_check'] = 'y';

        break;

    }

I tried adding this 'user' => 'user123', on staging but that didn't help. I"m not sure where to set the database user - it's not in local but connects correctly and I need to override that so it works on staging.

Please advise.


texts: I have tried using all three methods in the Email Configuration method and when I test these methods via the Tools >> Communicate all three of them work. However when an order is submitted on the website we do not get an Admin Order Notification nor does the customer receive anything. What am I missing here?


texts:
I am trying to upload a 30MB PDF file. I keep getting the "“The uploaded file exceeds the maximum allowed size…” error. I have turned off XSS filtering and here is my PHP info:

memory_limit    100M
post_max_size   12M
upload_max_filesize 80M
max_execution_time  300

I am a Super Admin. Any ideas on what might be going wrong?


texts: Uninstalled the Pages URI module and then re-installed it again... lost all my data and my site crashed.... HOW TO RESTORE

texts:
I had an issue with my MSM where it didnt allow me to "Submit" my entry and I have googled for the error and then I came across an answer which said to delete the "Pages" module. I did so and I didnt realize that I was going to hit hard by that step. Alfter I did that all my URLs got messed up.

I have around 1000 channel entries which basically make up my college website.

Is there anyway I can restore all the URLs..?? Please help me out with this.


texts: Solspace Super Serarch Returns No Results

texts:
I am having some trouble with Solspace super search not returning results on some channels. For example

{exp:super_search:results limit="3" channel="getting_here"}
    <li>
        {title}
    </li>
{/exp:super_search:results}

And my URL that this query is on

/search&keywords=journey/

There are entries in the getting here channel with "journey" in the title.

Searches of other channels return results but this one does not.

Running ExpressionEngine v2.6.1 & Solspace Super Search v2.1.3


texts:
I've just upgraded from 2.6.1 to 2.7.2 of EE and when I log in I get this message at the bottom of the screen  below the EE copyright message:

    You've gone idle, please enter your password to continue

If I enter my password I am logged out and when I log back in I see the same message at the bottom of the screen.
Yet I am logged in and can continue working.  Not a show-stopper but it is an indication that something has gone wrong.
Any ideas what is causing this?

Cheers,

Dorothy


texts: How to clear EE native cache and CE Cache

texts:
I have got a site that has both EE caching applied and CE Cache module. I have updated the html mark-up in the template but my changes aren't showing through.

There are several cache parameters for EE tags which I have set to one minute. I have reloaded the pages couple minutes later and still have the old version.

Also, I have set CE cache module tag that's wrapped around the template ({exp:ce_cache:it id="page" seconds="1"}) to one second and have cleared the "Clear Driver Site Cache" in the admin/control panel.

Anything else am suppose to be doing?

Thanks


texts:
Low Search Shortcuts look really neat, and I want one for Christmas, trouble is it keeps throwing 404s at me. I tried it on a couple of EE builds with no luck, so I can eliminate version compatibilities.

Looking out there I found some mention of mod_security, I've only ever had this on new server setups, and not on MAMP PRO, plus when I deployed to the staging server I still get the problem.

I've run out of steam on this and I can easily use http://domain.com/home/search?keywords=hello as an alternative, but would be nice to know what's going on, so any tips on using Shortcuts will be most welcomed.


texts:
It appears that reporting is not quite working. On several of my sites I have noticed the reports barely work, crash, and/or just go back to the cp home. This is on both "view" and "pdf". I can't get the dates to really work right either. Is this a known limitation, or am I doing something wrong on my side?

Brad


texts: Output categories of related entry within grid field?

texts:
I have a grid field (EE 2.7.2), within which is a relationship field. I want to output the categories associated with the related item within the grid field. Is this possible? I thought this might work, but it might be a step too far, tag-nesting wise:

{organisation}
    {organisation:related_organisation:title} {!-- outputs related entry title, yay! --}

    {!-- this doesn't output anything --}
    {organisation:related_organisation:categories}
        {category_id}
    {/organisation:related_organisation:categories}
{/organisation}


texts: Objective HTML, Google maps info window height and width

texts:
I am using Objective HTML Google Maps i have a title getting pulled through on my map markers when they are clicked it displays the info window, how can i increase the size of the info box window because at the moment the info box is too small and i have to scroll to see all the text.

{exp:gmap:marker id="map" latitude="{latitude}" longitude="{longitude}" clustering="true"}
{title}
{/exp:gmap:marker}

Thanks.


texts: Populate Custom Order Fields for Logged In Members

texts:
I have the pre-populated fields working but it doesn't seem to work for custom fields. This is the code that I am using. I am mapping the custom member field to the custom field in store but it's not pulling in the info. The other ones I set up worked but they weren't custom. Any thoughts?

    Cell Phone

        {field:order_custom2} {error:order_custom2}


texts: Errors after migration of ee 2.9.3 to new host

texts:
I have imported the database and all website files to my inmotionhosting.com VPS hosting environment via FTP.

I have followed steps #7 and #8 as seen in the migration guide:
http://216.243.142.229/rick/user_guide/operations/moving.html

but run into the following error:

  The following tag has a syntax error:

  {exp:strip_html}

  Please correct the syntax in your template.

when I attempt to view the new website environment here: http://198.46.84.39/~steame6/

I'm unsure how to proceed.  Can anyone advise?


texts:
I have a new page that I am pulling the most recent entry to feature on the page. I need to list out the rest of the entries except for the most recent entry.

How can I use the channel entries tag to show all entries except for the most recent?

Thanks.


texts: Upgraded to 2.7.2: Fatal error: Class Matrix_cat_col_ft

texts:
I just upgraded to EE 2.7.2 and am getting an error when I go navigate to Addons > Field Types.

Fatal error: Class Matrix_cat_col_ft contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (EE_Fieldtype::display_field) in *\expressionengine\third_party\matrix_cat_col\ft.matrix_cat_col.php on line 167

I've also upgraded to Matrix 2.5.8

Any help is greatly appreciated.


texts: Updating a client's EE installation from 2.3.1 to 2.9

texts: I have a client whose site was basically abandoned by the previous developer. I've managed to get ownership of the license transferred and was in the process of updating EE from 2.3.1 to 2.9.0.  I followed the instructions to the letter and then logged into the control panel. The only difference was an alert that index.php had changed. Nothing else.  How do I activate the update wizard? Is there something missing in the instructions?


texts: Sharing an entry on two pages in Structure

texts:
I have a head-scratcher here.

I’m working on a site that I'm building with Structure where I have at least 50 services that the client would like to promote in two different sections. I'm trying to conceptualize a possible way to have each service as a single entry and associated with two different pages.

Section 1

Consulting
Economic Research
Training
Business Evaluation

Section 2

Training
Consulting
Economic Research
Business Evaluation

A few things to note:

I need to keep each service as a page in Structure because the client wants it in the navigation's mega menu.
The services will be arranged differently in each section - one alphabetically and the other in a random order of importance.

At this point the only solution I can think of is maintaining two identical entries for each service and was wondering if there were some plug-in that I'm not aware of that would allow me to do this within the confines of structure and a mega menu.

Any insight will be appreciated. Thanks!


texts: Disabling transcribe for Expresso store pages

texts: Wondering if there is a way to disable or redirect Transcribe to the english version of Expresso Store.


texts:
I have a (P&T) Matrix storing related entries from a channel where the entry_date for each entry is being used as a go-live date. Each row with its related content and more displays as its own page.

I need to somehow grab this date or create a similar functionality within the matrix, to either close the row before a certain date, or be able to create display parameters that only show rows marked by this date or before.

The only sticking point right now is paging - which pages into rows where the related content is not yet live, and this shows empty images and content. I need to skip these instances entirely.

PHP is an option.

Thanks in advance for any tips, references, or advice that might solve this! Again, it's all about row-to-row paging, though I suppose a solution that worked for more than just paging would also be awesome.

Many thanks.

EDIT!

`

    {the_matrix limit="1" sort="asc" row_id="{segment_4}"}

{title} - Page {if page}{page}{if:else}{field_row_count}{/if}

                    {if prev_row}{prev_row}Previous{/prev_row}{if:else}Previous{/if}
                {if next_row}{next_row}Next{/next_row}{if:else}Next{/if}

                    <!-stuff->

Page {if page}{page}{if:else}{field_row_count}{/if}

                {if prev_row}{prev_row}Previous{/prev_row}{if:else}Previous{/if}
                {if next_row}{next_row}Next{/next_row}{if:else}Next{/if}

            {/the_matrix}

`

So that's my Matrix code, abbreviated in obvious places. Hope it's helpful.
I need to query this in such a way to prevent next_row and prev_row from pulling rows with related content that isn't live yet.

Thanks!


texts: Conditional for newest item in a loop limited to one

texts:
You probably looked at the title and said, "what the heck?".

I have this on a detail page, a loop limiting to 1, but I want to conditionally do something for the newest item.
{if count == 1} won't help me here because it's already limited to 1.

{exp:channel:entries channel="insights" limit="1" dynamic="off" orderby="entry_date" sort="desc" disable="  categories|category_fields|member_data|pagination"}

{if you are the newest entry}
DO THIS
{if:else}
DO THAT
{/if}

{/exp:channel:entries}