texts: tracking site searches in google analytics

texts:
In google analytics, you can track site searches by setting the query parameter.
EE does not have search result URLs with a query parameter in them though i.e. search result URLs look like http://mysite.com/search/270ab420bad324607c6286bf28767910/ instead of http://mysite.com/search?q=keyword

So is there an easy way to track site searches using the native EE search module in google analytics - either natively (ideally) or using an add-on? I want to keep using the native EE search module if at all possible.

From searching I've seen various code snippets altering the _gaq.push(['_trackPageview' line in the analytics code, but I'm not sure exactly how to implement this and would rather not mess up the main site tracking, so I was hoping someone may have some working code for this.

Many thanks for your time.


texts:
I have the following simple EE query:

    {exp:channel:entries
    channel="australia"
    url_title="{segment_2}"
    limit="1"
    dynamic="no"
    disable="categories|category_fields|member_data|pagination"
}

This code works fine. I now want to harden this code for better 404 management, so I added "require_entry" like so:

    {exp:channel:entries
    channel="australia"
    url_title="{segment_2}"
    limit="1"
    require_entry="yes"
    dynamic="no"
    disable="categories|category_fields|member_data|pagination"
}

But now the query does not return any results. I'm lost as to why.
'Enable Strict URLs' is set to 'Yes'.

I've tried eliminating the other parameters, but they don't change the result.

Thanks for your help!


texts: Cart Throb - Failed to connect error [SagePay]

texts:
I’m Struggling to get SagePay to play nicely. The error I’m getting is:

  Error

  Failed to connection 195.170.169.8: Permission Denied (7)

and it looks to me like it’s in and EE message box (See screenshot attached)

We’ve got everything in place such as HTTPS redirect, SSL, secure forms, IP addresses added to SagePay, in testing mode and using testing details but we keep hitting this error when we press “Pay” on the last step.

SagePay are saying it’s not on their end due to nothing even getting to their system (Transactions / Errors) and our host is saying it isn’t their fault and the firewall isn’t blocking anything!

Sigh


texts: How can I create a category listing which has its own template?

texts:
Use custom category listing template 'news/category':

/site/news/category

Use custom template to present “Legal Politics” 'news/category-legal-politics' entries:

/site/news/category/politics/legal

I assume that I must create a custom template called "news/category" which then dynamically picks between:

category-listing
articles-in-category
special-news-category

And I am also guessing that custom URL fragments will need to come into play to achieve this. But what I do not understand how to convert the URL into the category ID:

{exp:channel:entries channel="news" category="??{get-from-url}??"}

{title}

{summary}

{/exp:channel:entries}

Interestingly I find that the following URL works (almost) for regular category listing

/site/news/category/category/politics/legal

when using the following template:

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

{title}

{summary}

        {categories}

{category_name}

        {/categories}

{/exp:channel:entries}

If I could somehow skip the second category slug in the URL then this would be half way there!

In WordPress this would be achieved by providing a custom template "category.php" and special categories "category-legal-politics.php" or "category-42.php". What would the equivalent be for EE?


texts:
EE 5.3.0

I have a feature that compares and updates data from different services using various APIs. I set it up to trigger based on url ACT id and a key. The script works fine and now I want to make it run automatically two times per day.

To do this I wanted to use a cron job. My webserver is HostGator, dedicated server, which has a cron job section in the cPanel. I've set up a test to run every minute and return the results to me via email. This is not working and I have changed the command to many different things, none of which work.

The script is set up to return a reply of testing when there is the ACT ID and the key of test in the url, so https://www.domain.com/ACT=42&key=test prints testing.

I've tried setting this up as a cron job using cURL in several different ways.

curl --silent --compressed https://www.domain.com/ACT=42&key=test

curl -s "https://www.domain.com?ACT=42&key=test"

curl "https://www.domain.com/ACT=42&key=test"

Nothing is sending an email so I have no idea if this is even working.

When I contacted HostGator support the rep gave me a bunch of links on how to set up a cron job, which didn't help. I've done this before on a shared HostGator server for an import addon and it worked fine, ran the script, got the email, etc. But for this I'm not getting anything and I'm at a bit of a loss.

Any help would be greatly appreciated.


texts:
I am running EE 2.10.1 and LowSeg2Cat 2.8.1/3.0. On this page more than 20 photos from the Ming Tomb category should be showing, however, only one appears.

This is the only category of many that does this. The other category images all display fine.

{exp:channel:entries  channel="photos" limit="20" category="{segment_3_category_id}" disable="trackbacks" pagination="bottom"}

{paginate}
{if "{total_pages}" != 1}

Page {current_page} of {total_pages}  {pagination_links}

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

Any clues as to why this is not working correctly along with a solution would be greatly appreciated.


texts:
I'm having a problem similar to this one where I can't save large matrix fields on my site. Large, in this case, is > 200 rows with 3 fields each where 2 of those are asset fields. EE/Matrix/Assets/Fieldpack are all up-to-date and I've increased max_input_vars to 1500, max_execution_time to 600 and memory_limit to 256; still no luck. I just get a blank screen, no error message, no error in logfile.

Should I just stop trying to use matrix for this and adopt a different design, or should this work?


texts: is there any Payway Net payment gateway module for exp-resso store

texts:
I am planning to use Exp-resso to built a new online store. But i want to know if we can integrate is there any "Payway Net" payment gateway module for exp-resso store.

Payway Net is an advance version of Westpac Quickweb

Below mention re the links to these payment gateway
https://www.payway.com.au/core/AboutView
http://docs.woothemes.com/document/westpac-payway-net-payment-gateway/

Kindly confirm so that i can proceed accordingly


texts: Is it possible in out of the box Expression Engine to make a channel private and viewable only by the administrators member group?


texts:
How can I send an order as gift in Expresso Store? I tried the Gift Wrapping add-on but I'm not sure how to make it work.

Appreciate your help in achieving the above. Thanks!


texts:
I'm trying to create a dropdown of matrix field data using the search form. It's outputting the matrix data, but I can't seem to figure out how to remove duplicate content. Say I'm using the data "john doe" on multiple entries -- it's showing for every entry, not just once. Is there any way to fix this? Thanks in advance.

{exp:low_search:form query="{segment_3}"}
    <label>Arranger:</label>
    <select name="search:tags:arranger">
        {exp:channel:entries channel="products" dynamic="no"}
            {tags}<option value="{arranger}">{arranger}</option>{/tags}
        {/exp:channel:entries}
    </select>
    <button type="submit">Search</button>
{/exp:low_search:form}


texts:
If I had a folder with a series of subfolders that matched the username, could I show those files to that specific user?  Looking to try making a download portal, but the files are not small enough to be uploaded through PHP. Example:

File Manager Settings:

/home/www/files/

Assets Folder tag:
parent_folder="{filedir_x}"

But I wanted to show a single folder in the files directory:

/home/www/files/{username}

Assets Folder tag:
parent_folder="{filedir_x}{username}"

The entire tag would look like this:

{exp:assets:folders parent_folder="{filedir_20}admin" recursive="yes"}

{folder_name}

        {exp:assets:files folder_id="{folder_id}"}

{if title != ""}{title}{if:else}{filename}{/if}

        {/exp:assets:files}

{/exp:assets:folders}

Using just {filedir_x} worked, but adding {filedir_x}{username} did not.  Is it possible without using entries and just the two Assets tags?  And I would assume from previous posts that if it could, it would show all files as a flat list, and not nested within subfolders?


texts: EE3 Image cropping when image is uploaded

texts:
So I know EE3 have a built in image manipulation where you can either crop or constrain the image.

I'm using picturefill to swap images for Desktop, Tablet and Mobile. But the images for some reason are not showing up. Get empty src for images. I believe there is a special way to display images for Desktop, Tablet and Mobile in my case.

{banner}
        <picture class="bg-image">
            <!--[if IE 9]><video style="display: none;"><![endif]-->
            <source srcset="{banner:home:desktop}" media="(min-width: 1000px)">
            <source srcset="{banner:home:tablet}" media="(min-width: 760px)">
            <!--[if IE 9]></video><![endif]-->
            <img srcset="{banner:home:mobile}" alt="" />
        </picture>
{/banner}

Can you spot what am I doing wrong here? Basically images that are uploaded I need to crop them to 3 sizes and then display them.


texts: In one site I'm getting a lot of spam via a contact form created with Freeform. Is there a good solution, besides adding a CAPTCHA?


texts: Overriding price-based shipping profiles with weight in Store

texts:
I have this issue with Shipping costs.

We have 4 profiles setup

0-£100 - £6
£100 - £500 - £12
£501 - £4000 - £20
£4001+ - £25

The issue comes as we have a product that is in the £12 shipping price bracket however we only charge £6. Which we set a weight to compensate for this issue and it worked. But the issue comes when someone orders another product in £100 - £500 category. It still only charges the £6.

Any suggestions?


texts:
Is it possible to move the themes folder above the root?

I am using MSM and want to move the folder away from the main site.


texts: Securing files that are linked through a Wygwam field

texts:
I'm working on a site that has certain pages that are going to be restricted to members only. It's using an external membership database to authenticate members, not EE's native members. Some of the secure pages have a Wygwam field and users can add links to files within that field. I'm trying to figure out how to secure the links to files that are contained within the Wygwam field and looking for any help or guidance on best practice for this type of thing.

We're using LinkVault on other sections of the site where we have file upload fields and it works great, but I can't figure out how to do something similar with links that are contained in the wysiwyg.

Here's what I've got so far:

Store all the secure files above the web root
Use the upload directory URL stored in the EE upload directory settings to point to a location that is set up as an alias for the directory stored above the root
Use htaccess to redirect the user to a php file that checks if they are logged in.

I'm not sure what to do past that or if I'm thinking about this the wrong way. Once I check that they are logged in do I use the same php page to serve up the file somehow? Can anyone think of an easier way in EE to point to those files, check to see if the user has logged in, and then serve up the file if they have?


texts:
I have a rescue site where Solspace Tag is in use and seems to be randomly not working even though there are tags in entries.

EE 3.5.11
Tag 5.0.7

Most entries the exp:tag_relate_entries tag is working correctly. However on a couple of entries it is return no results despite there being results.

code:

      {exp:tag:related_entries channel="blog|self_help|books|music|bija-in-the-media|film_and_video|services|about_pages" orderby="relevance" limit="4" url_title="{embed:urltitle}"}

        {if tag_no_results}

No Related Entries

        {/if}

{title}

      {/exp:tag:related_entries}

I have also added a testing div where I have hard coded tags that are in the entry looking for related tags and it outputs dozens of tags

    {exp:tag:entries tag="breath|breathing|breathing into life|poem|poetry|practice"}
        title: {title},
    {/exp:tag:entries}

See attached screenshot


texts:
I'm new to Low Search, and i'm trying to get Low Search to work. But when i use the expample codes and after a while of experimenting with some parameters i don't get it to work.

What i noticed is that after i build a index a collection, and when i go directly back to manage collection, i says "Rebuild Index" again.

What do i miss here? Because all i get is - no results.

My test code is pretty simple

Search form:

    {exp:low_search:form
    collection="nieuws"
    form_class="navbar-search pull-right"
    search_mode="any"}
        <input type="text" class="search-query input-small" name="keywords" id="keywords" placeholder="Zoeken">
    {/exp:low_search:form}

Search results page:

    {exp:low_search:results
    collection="nieuws"
    search:field="title"
    loose_ends="yes"
    query="{segment_3}"
    search_mode="any"
    limit="10"}
            {if count ==  1}
{/if}

{title}

        {if count == total_results}
{/if}
        {if no_results}Geen resultaten gevonden{/if}
    {/exp:low_search:results}


texts:
Hey I am trying to use conditionals with Playa. I can't seem to get the following code to work

{if {exp:playa:total_parents channel='listing'} > '0'}

Our Listings

{title}

              {exp:playa:parents channel="listing" status="not closed" show_expired="no"}
                    {lv_listing_card}
              {/exp:playa:parents}

        {/if}

I don't want to show the .listing-cards section if there are no results. What am I doing wrong?


texts: Using hyphens opposed to underscores with in page URLs

texts:
Someone told me the other day that Google likes url's with hyphens (e.g. a-page-title) opposed to url's with underscores (e.g. a_page_title).

Assuming this is correct is there a way to make Expression Engine use hyphens in it's page url's opposed to the underscores it uses by default?


texts:
I need to take {segment_n} where the segment is either a Month, Day, or Year value and add values to it. For example, I need to be able to add values like so:

{embed="calendar/landing" month_start="{segment_2}" month_end="{segment_2} +1 month"}


texts:
I got a problem with “Export entries as CSV”
Few months ago, this one was working well. When I click it, I can get/download an excel file which contains all the entries.
Few days ago, I still could download excel file but it did not contains anything.
Now, I can download excel file but it shows something like ‘your storage is full’.

I think the database which stores the entries is full. But I asked the host guy and he said the database on my plan is unlimited. So my question is:

Is there an option to control the limitation for storage of database in expression engine (control panel) ?


texts:
I am hoping to use store with omnipay, as it has tokenized payments.  I am prepared to code the plugin for my particular payment gateway, but is exp-resso planning to use omnipay in future releases?

If so, when?


texts: Solspace Calendar Export Single Occurrence of Repeating Event

texts:
I have a client that presents weekly webinars that are set up as recurring events within Solspace Calendar. When a user registers for the event, they receive a link to the following icalendar tempate:

{exp:calendar:icalendar
    event_id="{segment_3}"
    limit="1"
}
{/exp:calendar:icalendar}

The problem is that the ICS file contains all occurrences of the event, which then prompts Outlook to create a new calendar, and iCal and Google Calendar to create multiple events.

How can isolate a single occurrence, and only output that to the ICS file?

I've checked the documentation, and there is no mention of using occurrence_id tags in that context.

Any help is appreciated.


texts: {field:payment_method} doesn't output anything

texts:
I'm struggling to get a payment method to be output in the checkout tag.

I'm using this code:

<div class="field">
    {field:payment_method}
    {error:payment_method}
</div>

I just get an empty select element:

I've got the "server" option enabled in the backend:

Though there doesn't seem to be any extra option that I have to pass, shouldn't there be a username/password normally?


texts: Can I use EE fieldnames in Freeform form tag?

texts:
This isn’t a code question - yet - but here’s a quick overview of my setup so that you have some context:

EE 2.5.3
Freeform 4.0.08

I have a template that includes a form. The template displays an individual person’s information, which is held in an EE channel entry (one entry per person). There are upwards of 20 people whose information is displayed via this particular template.

I would like the person whose information is currently displayed, to receive any notifications that a user may send in using the form on the page. I have an EE channel field, {lo_email}. As long as the Freeform tag is contained within the exp:channel:entries tag, can I use that fieldname in the Freeform tag, to target the person receiving notifications from the form? Example:

{exp:freeform:form admin_notify="{lo_email}"}

(I haven’t tried this yet - but this needs to get done quickly, so I thought I’d ask if this is possible before doing some template restructuring on this site that I’ve inherited.)


texts:
I have a template route like the following:

/{static_country:regex[(zh|cn|usa)]}/{alpha_dash} which matches a URI like website.com/usa/about-us fine and points to my template I've called static - this works fine.

However, when I navigate to something like website.com/usa/sdfsdfsdfsd which is a fake route and isn't a route matching an entry in my channel, it still points to the first entry in the static channel instead of throwing a 404.

I know I can limit this using regex like /{static_country:regex[(zh|cn|usa)]}/{static_page:regex[(about-us)]} but that isn't very dynamic if the client adds their own pages as we'd have to update the regex each time.

Is there a way around this at all?


texts:
I'm doing a large redesign on an OLD EE1 site. It was built in a way that doesn't make sense to try converting. It is also going to a subdomain flow. Originally I was going to just keep all of the subdomain segments as separate sites since it is operating under the DEV -> QA -> PROD server flow and will be released live in waves. However, I don't want to rely on a third party search engine to crawl the site and return data. I also have needs for the native search in EE.

What is the best way of expanding a site to include new subdomains as they are developed while keeping them from being visible during development? I know I could keep the subdomain/msm site turned off while everything is being worked on and then turn it on when it is ready to go live, but this doesn't allow for the requested flow mentioned above with DEV -> QA -> PROD. To my knowledge there isn't any way to properly import a new site into an msm build. (Anyone?) If so, I could keep them separate and then import it when ready. This would at least allow me to fulfill the flow request.

Does anyone else have any nuggets of hope they could provide from doing anything similar?


texts:
I am working on a fully-developed site that is currently live, with hundreds, perhaps thousands of images and files in preset folders using File Manager in EE.

As a pre-purchase question, I guess... I would like to migrate the files & images to Assets, and was wondering if it was as easy as changing the channel fields from a File field to an Asset field?

Any help would be appreciated, thank you.


texts: Should EE error messages give HTTP 200 responses?

texts:
The Google crawler sometimes hits URLs have ExpressionEngine error messages on them and caches them because they respond with HTTP 200.

These error messages are handled by the show_user_error() method. Before I go and start hacking core, am I correct in suggesting that these error messages show return an HTTP error?

If so, which HTTP status should it show (I'm thinking 403 Forbidden but perhaps there is a more precise status)


texts: Conditional to show entry by date range?

texts:
Have an instance where there are two entries - one needs to be shown for six months of the year and the other for the second six months.... looking at a conditional which essentially says:

  if date_range = January-June

  Show this

  If else

  Show this

Is it doable with EE's native conditionals or does it need another approach?


texts:
I have a channel form set up here where non-registered users can submit upcoming event information. The form works fine except when you try to upload an image. It generates an error message about file upload permissions.

In the file upload permissions area there isn't an option to allow uploads for non-registered users. Is there a way to allow for this?

Here is the code for the form.

{exp:channel:form channel="calendar_events" class="artist" return="calendar/confirmation"}

*Name of Event
<input type="text" name="title" id="title" value="" size="50" maxlength="100" onkeyup="liveUrlTitle();">

*Organization
<input type="text" name="submitting_organization" id="submitting_organization" value="" maxlength="75" size="50">

*Contact - Full Name
<input type="text" name="submitted_by" id="submitted_by" value="" size="50" maxlength="100">

*Contact - Phone Number
<input type="text" name="contact_phone" id="contact_phone" value="" maxlength="75" size="50">

*Contact - Email
<input type="text" name="submitters_email" id="submitters_email" value="" maxlength="75" size="50">

*Date and Time
{exp:calendar:date_widget}

*Event Location
<input type="text" name="event_location" id="event_location" value="" maxlength="75" size="50">

*Event Address
<input type="text" name="event_address" id="event_address" value="" maxlength="75" size="50">

*Description of Event
<textarea name="event_summary" rows="5" cols="65" >{event_summary}</textarea>

Photo (optional)
{field:event_thumbnail}

*Cost of Admission
<input type="text" name="admission" id="admission" value="" maxlength="75" size="50">

<input type="submit" class="submit" name="submit" value="Submit">
{/exp:channel:form}


texts: Freeform edit entry in the same order as the from

texts:
I know this issue has been mentioned before, but I can't find a solution to the problem anywhere.

I don't understand why when you edit a form submission, the fields don't appear in the same order as the form. I know you can edit how they appear in the main entries listings, but this doesn't carry over to the edit page for each individual entry.

I've tried to edit the plugin to do this, but am getting no where as my knowledge of object oriented PHP isn't great enough.

Is there something simple that I'm missing?

I've also tried deleting all forms and creating all the fields in the correct order. But even then, when you add an entry and try and edit it, the submission still appears alphabetically.

Can someone please shed some light on this issue?

Thanks.

Andrew


texts: Field pack pixel and tonic strange php error

texts:
This is when I am creating a fieldpack download channel field.

Message: Array to string conversion
Filename: fieldpack/ft.fieldpack_pill.php


texts:
I am using MSM, i have two subdomains with expresso store.

If i add an item to a cart on (sub1.domain.com) and then go to (sub2.domain.com) and try to add an item to the cart it gives {no_items}.

If i empty the cart on (sub1.domain.com) the products Will appear in the (sub2.domain.com) cart that i added previously and vise vera.

Does anyone know what could be causing this?


texts: Limiting channel entry results per channel

texts:
Assuming I have this:

{exp:channel:entries
    channel="news|tweets"
    disable="member_data|pagination|trackbacks|categories|category_fields"
    status="open"
}

    <h2>{title}</h2>

{/exp:channel:entries}

Is there any way I can limit the results of each channel? For example 5 from tweets, 10 from news. I'm assuming not...


texts: Insert Link dialog hangs using wygwam in Internet Explorer - not other browsers

texts:
When editing an entry ... highlight text, click ‘Link’ icon > the wrong dialog appears with ‘Select an Anchor’ and ‘E-mail Address’ (see image).

There are similar problems in inserting an image

Under the ‘Upload’ tab it displays a progress bar in place of the ‘Browse’ button.
The OK and Cancel buttons do nothing and the only way to remove it is to crash the browser using Task Manager

The problem has appeared within the past month (November 2013) and has affected all three people using IE. It does not occur with FF, Chrome or Safari.

Windows 7
IE 11
EE 2.7.2 (but also occurred with 2.5.2)
Wygwam 3.2.2 (but also occurred with 2.6.3)

This seems to be an IE issue but is there anything I can do to prevent it?

Kip!


texts:
I can't get the cp_custom_menu hook to run. Here's my code. The activate_extension() function runs and successfully adds the extension to the db but it never gets called.

public function activate_extension()
{
    $hooks = array('cp_custom_menu');

    foreach ($hooks as $hook) {
        ee()->db->insert(
            'extensions',
            array(
                'class'    => __CLASS__,
                'hook'     => $hook,
                'method'   => $hook,
                'settings' => '',
                'priority' => 10,
                'version'  => $this->version,
                'enabled'  => 'y'
            )
        );
    }

}

public function cp_custom_menu($menu)
{
    // this never runs
    $menu->addItem('Title', ee('CP/URL')->make('/xyz'));
}


texts: DevDemon FORMS 3.4.12 Coupons Field Security issue

texts:
Has anyone come across with the COUPONS field within DevDemon Forms 3.4.12 and it's security implications with regards to disclosing the codes along with the discounts within the HTML source code to the end-user?

{"DEPOSIT":{"label":"DEPOSIT 40%","code":"DEPOSIT","discount":"60%","limit":""}}

As implemented anyone would be able to see and effectively apply the discounts they want!!

If anyone here had changed the code as to 'APPLY' the COUPON and recalculate based on an AJAX request or Server Side check, please let us know!!

Regards


texts:
Good Afternoon, Today I experienced a strange issue with Postmaster 1.4.3 on an EE 2.5.2 site and I'm hoping someone might have some tips to resolve this. What's happening is when I visit my control panel, then pull up the Modules list and click on Postmaster, I'm getting a blank white page. I went to the admin.php file in the root and changed the debugging to 1 and refreshed the page, the following error message was then received:

A Database Error Occurred
Error Number: 1054

Unknown column 'exp_channel_data.field_id_867' in 'field list'

SELECT exp_channel_data.entry_id, exp_channel_data.channel_id,    exp_channel_titles.author_id, exp_channel_titles.title, exp_channel_titles.url_title, exp_channel_titles.entry_date, exp_channel_titles.expiration_date, status, exp_channel_titles.`entry_id`, exp_channel_titles.`channel_id`, exp_channel_titles.`title`, exp_channel_titles.`author_id`, exp_channel_titles.`entry_date`, exp_channel_titles.`expiration_date`, exp_channel_titles.`status`, exp_channel_data.`field_id_867` as 'employee_access_code', exp_channel_data.`field_id_866` as 'assignment_period', exp_channel_data.`field_id_865` as 'employee_title', exp_channel_data.`field_id_864` as 'employee_needing_access', exp_channel_data.`field_id_863` as 'areas_needing_access', exp_channel_data.`field_id_862` as 'branch_name', exp_channel_data.`field_id_861` as 'access_requested' FROM (`exp_channel_titles`) JOIN `exp_channel_data` ON `exp_channel_titles`.`entry_id` = `exp_channel_data`.`entry_id` WHERE `exp_channel_data`.`channel_id` = '121' ORDER BY `exp_channel_titles`.`channel_id` DESC LIMIT 100

Filename: third_party/postmaster/libraries/Channel_data/Channel_data_lib.php

Line Number: 1189

I have a staging copy of this same site and the Parcels list for Postmaster is coming up just fine on staging when I pull up the Modules list and click on Postmaster. At this point I made some backups of the main site and attempted to copy over the parcels table from staging. I thought perhaps one of the recent parcels I created caused this and the staging site was two parcels behind, so I took note of the two parcels I would need to recreate then I deleted the exp_postmaster_parcels table from the main site and imported the one from staging. This did not resolve the problem though and I have since restored the original parcels table. I also tried restarting the Apache service and clearing all caches using Tools, Data, Clear Caching. The last thing I have tried so far was to copy over the postmaster folder (/system/expressionengine/third_party/postmaster) from staging to the main site. This didn't resolve the issue either. The error message received seems to be the result of a field Postmaster is looking for in exp_channel_data that doesn't exist. Could I safely create this field in the exp_channel_data table to prevent the error and proceed to the Parcels list?

The good news is I can see my existing Parcels are still working as there is activity in the exp_postmaster_mailbox table from recent Postmaster notifications. I just can't add any new Parcels at this time or edit any of the existing ones due to the database error I'm getting in the control panel when I attempt to access the Parcels list. Any tips or suggestions for resolving this issue and restoring my access to Postmaster in the Control Panel would be greatly appreciated, Thanks!!


texts: Is there a way to persist a login across MSM sites?

texts: I'm exploring MSM for a new site and need to provide a single login for members and allow them to jump from site1 to site 2 with a single session. Is this possible?


texts: BuiltWith: Info about Content Management System

texts:
I am asking myself for quite some time on how BuiltWith for example works in determining what CMS is being used for a site.

We are running an online store and at times I believe it would be good to disguise which CMS we are using. Weird thing is that I just tested it and BuiltWith doesn't return any info about the CMS, although it did in the past. I can't really tell why or when it stopped doing it which confuses me even more. When I head over to ellislab.com the info will be displayed. Maybe it's just temporary for our site?

Does anybody know what one would have to do to "disguise" the CMS informations for tools like BuiltWith and the such?

Thanks and Cheers,

Marc


texts:
I'm probably being a bit dim, but how do you use CE Image with AWS?

I've added the CE Image and the CE Image - AWS plugins, and added the AWS config stuff, what next, I expected to see new field types or something?

How do fields know they should upload to AWS?


texts: PHP interfering with entry field embed rendering?

texts:
(See my 'solution' at bottom of this question.)

Disclaimer: I'm new to EE; I inherited a system and am looking to be able to extract entries.
I'm trying to create a template to extract entries in JSON format. This is what I've got so far:
<?php
  $entries = array();

  {exp:channel:entries channel="blog" limit="1" dynamic="no"}
    $entries[] = array('title' => '{title}', 'author' => '{author}', 'body'=>'{exp:allow_eecode embed="y"}{blog_body}{/exp:allow_eecode}');
  {/exp:channel:entries}

  header('Content-type: application/json');
  echo json_encode($entries);
  exit;
?>

I've enabled PHP, set the PHP parsing stage to Output. This mostly works, except one field doesn't render correctly; it has embed EE tags in the field data on output:
[
  {
    "title": "9 Gorgeous Wedding Color Palettes for Autumn",
    "author": "WeddingExpert",
    "body": "{embed=\"photos\/_embedded\" entry_id=\"50808\" context_channel=\"blog\" }\n<p>\n\tIn keeping with our ..."
  }
]

If I do not use the allow_eecode tag, then the output shows the html entity codes for braces, etc. If I turn off PHP, I can get the output for the problematic field to render 'correctly', but then I get the PHP code rendered as HTML - ie it doesn't render the JSON I need, obviously.
Is there a reason why PHP is preventing this from working? Is there another approach I should take?
Note: This is on an old version of EE: v2.1.3. I don't have the luxury of upgrading; I'm basically retiring this system once the data is extracted.

EDIT: I made two changes: I removed the PHP exit() call and changed the Template Type to 'Javascript' from 'Web Page'. Here's the template now:
<?php
  $entries = array();

  {exp:channel:entries channel="blog" limit="1" dynamic="no"}
    $entries[] = array('title' => '{title}', 'author' => '{author}', 'body'=>'{exp:allow_eecode embed="y"}{blog_body}{/exp:allow_eecode}');
  {/exp:channel:entries}

  header('Content-type: application/json');
  echo json_encode($entries);
?>

and here is the output, which is slightly different (no embed tag visible, but it also didn't render the embed tag!):
[
  {
    "title": "9 Gorgeous Wedding Color Palettes for Autumn",
    "author": "Azure",
    "body": "\n<p>\n\tIn keeping with our ..."
  }
]

Of course, now I'm even more confused.

Solution: As pointed out by Derek Hogue, there is no JSON solution due to the order of the EE rendering pipeline.
That having been said, as I need to migrate the data out and in my case it doesn't need to be in JSON format, I can simply change my template to have a consistent layout per entry and then I can parse it using any language I desire. For example with this template, I can get Entry data in a parseable format:
{exp:channel:entries channel="blog" limit="5" dynamic="no"}
ONEWEDMIGRATION-TITLE:{title}
ONEWEDMIGRATION-AUTHOR:{author}
ONEWEDMIGRATION-BODY:{exp:allow_eecode embed="y"}{blog_body}{/exp:allow_eecode}
<======================>
{/exp:channel:entries}

I can split the data on <======================> to get a list of Entries, and then parse each Entry based on the tokens at the beginning of lines.
This is simplistic and would need to be further developed for multiline fields, etc. But the idea is sound.


texts: Problems using the Italian language pack in the EE control panel

texts:
I've got an EE 2.5.5 site and I'd like to be able to set the control panel language to Italian. I've followed the instructions on how to do this from the user guide.

I downloaded the Italian language pack from EllisLab's GitHub account, and I've uploaded the italian folder to system/expressionengine/language/italian. But when I set the language from english to italian, I get the following error:

An Error Was Encountered
Unable to load the requested language file: language/italian/core_lang.php

I have added an issue on GitHub, but not sure if that is being monitored closely by EllisLab so thought I'd post here for help.

Is that language pack out of date (as there's not even a core_lang.php file within the repository), or do I need to be doing this in a different way?


texts:
I have a channel form that users can enter their own calendar events into from behind a login. Randomly, some of the event dates do not get entered into the database. Looking at the tables, it appears that everything enters correctly except for the entry into the exp_calendar_events table. For the events that come through with no date, there is no corresponding row in this table.

I have tried to recreate this issue, but can't. The issue seems to be completely random based on who is entering the event.

The channel form code is:

{exp:channel:form channel="calendar_events" return="add-edit-events/updated-event" class="eventedit" include_jquery="no"}
    <fieldset>
        <legend>Event Date</legend>
        {exp:calendar:date_widget}
    </fieldset>
    <fieldset>
        <legend>Event Information</legend>
        Event Name:
        <input type="text" name="title" value="{title}" />

        Event Category:

        {category_menu}
                <select name="category[]" id="categories" size="4" multiple="multiple">
                        {select_options}
                </select>
        {/category_menu}

        * Please select as many categories as applicable. Selecting multiple categories can be done by holding the Ctrl key while clicking on categories.
        Location:
        <input type="text" name="event_nolisting_location" value="{event_nolisting_location}"  />

        Facebook Page Title:
        <input type="text" name="facebook_page_title" value="{facebook_page_title}"  />

        Facebook Link:
        <input type="text" name="event_facebook" value="{event_facebook}"  />

        Cost:
        <input type="text" name="event_cost" value="{event_cost}"  />

        Event Description:
        {field:event_description}
        Event Photo:
        {field:event_image}
    </fieldset>
    <fieldset>
        <legend>More Information</legend>
        Website Title:
        <input type="text" name="event_sponsor" value="{event_sponsor}"  />

        Website:
        <input type="text" name="event_sponsorlink" {if event_sponsorlink}value="{event_sponsorlink}"{if:else}value="http://"{/if}  />

        Please format the website address with http://
    </fieldset>
    <fieldset>
        <legend>Contact Details</legend>
        Contact Name:
        <input type="text" name="event_contact" value="{event_contact}"  />

        Contact Phone:
        <input type="text" name="event_contactphone" value="{event_contactphone}"  />

        Contact Email:
        <input type="text" name="event_contactemail" value="{event_contactemail}"  />

    </fieldset>
    <input type="hidden" name="author_id" value="{member_id}" />
    <input type="hidden" name="allow_comments" value="n" />
{if freebie_3 != ""}
    <input type="hidden" name="url_title" value="{url_title}" />
{/if}
    <input type="hidden" name="status" value="closed" />
    <input type="submit" name="submit" value="Submit" class="calendar_submit button" />
{/exp:channel:form}

What would be causing the MySQL insert queries to not be happening?


texts:
I am having trouble figuring out how to get my paragraphs to wrap in < p >< /p >

Need to implement p tags inside < content > element:
http://www.free-times.com/arts/rss_arts

Using EE v2.7.2


texts: Where to find dev documentation for multiple fieldtypes

texts: I have looked at the docs for 2.6, but am unable to find an explanation for how to set up multiple fieldtypes in a single package. Can anyone enlighten - I really need this ability.


texts:
I have the following code:

{paginate}
    {pagination_links}

        {previous_page}
        Previous
        {/previous_page}
        {next_page}
        Next
        {/next_page}
        {current_page}

                {page}

{pagination_page_number} -  {current_page}

                {/page}

    {/pagination_links}
{/paginate}

Which returns:

Why is {current_page} losing scope?


texts:
I have this form

{exp:low_search:form collection="foo" query="{segment_2}" secure="no" search_mode="any" loose_ends="yes" result_page="test/"}

<label for="foo_gender">Gender:</label>
<select class="span12" name="search:foo_gender[]" id="foo_gender" multiple="multiple">
    <option></option>
    {exp:channel:entries channel="genders" orderby="entry_id" sort="asc"}
        <option value="={gender}">{gender}</option>
    {/exp:channel:entries}
</select>

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

{/exp:low_search:form}

In the database I have 3 entries

 Entry 1, foo_gender = Male
 Entry 2, foo_gender = Female
 Entry 3, foo_gender = Transgender

I tried selecting entry 1 and 2 and submit.

I got only 1 entry from the result, entry 1.

That search form was supposed to be returning 2 entries, entry 1 and 2

Why is this the case?

P.S

The output of {low_search_search:foo_gender[]} was "=Male|=Female"


texts: Filter channel entries tag by category url title

texts:
Articles on my site are structured as /[category_url_title]/article/[article_url_title].

Now, I want to have at the bottom of my articles a section that says "related articles", and then list a few more articles from the same category. I have the same template for all articles.

This works perfectly fine:

{exp:channel:entries category="100" limit="3" dynamic="off" url_title="not {segment_3}"}
{title}

{/exp:channel:entries}

But I need the category parameter to be set dynamically from {segment_1} which is the category's url title. However, the channel:entries tag will only accept category id, not category url title as a parameter.

I have cat2 installed, but this doesn't work:

{exp:channel:entries category="{exp:cat2:id category_url_title='{segment_1}'}" limit="3" dynamic="off" url_title="not {segment_3}"}
{title}

{/exp:channel:entries}

I've also tried saving the value of the cat2 tag output as a php variable, but that doesn't work either.

I assume my above efforts don't work because of mixed parse order of EE. So how can I make this work?


texts:
Looking to build multiple sites with EE. How many licenses would have to be purchased as require integration with Expresso Ecommerce. Do I have to get 3 separate licenses or just 1 license and run multiple sites sitting on the same server?

Thanks,

Huzza


texts: Passing ID’s from a query to Channel Entries

texts:
I'm using quite a complex query using exp:query to generate the member ID's of members who have certain data in a custom field.

I'm struggling on how to pass the generated ID's onto a channel entries tag.

I gather that I can't put a channel entries tag inside the query, it certainly didn't work correctly she. I tried, so should I be using php?

I've virtually zero knowledge with php, so does anyone have any suggestions on the correct way to pass a pipe delimited list of member ID's from a query?

Thanks.


texts:
I'm using Freeform 4.1.8 and EE 2.8.1 . I have a Freeform form with an upload file field.  It's uploading all files ok, except docx .

I've checked that docx is in the mimes.php file, the upload directory is set to all file types.  I've tried adding in allowed_file_types="*" to Freeform but it's still not working.

My Freeform code looks like this:

 {exp:freeform:form collection="applications"
  return="careers/apply/thank-you"
  notify_admin="yes"
  admin_notify="email@address.com"
  admin_cc_notify="email@address.com"
  template="admin_notify"
  send_attachment="yes"
  file_upload="uploaded_CVs"
  allowed_file_types="*"
  send_user_email="no"
  notify_user="no"
  require_captcha="yes" }

My File upload Field looks like this:

 {freeform:field:upload_cv show="1" allowed_file_types="*"}

Edit: I set up a Channel Form to see if I could upload docx files through that, and it worked fine.  It looks like it's just Freeform that won't let me upload them.


texts: Best ways of categorising/tagging properties of entries?

texts:
I'm setting up ExpressionEngine to list a variety of holidays. We'd like tickboxes to store "tags" about these entries.

For example, a holiday might have multiple departure months (e.g. it could depart in January, February, and April). It might have a certain duration (14 days, 7 days, etc.), or it might be seasonal (Summer/Winter/Spring/Christmas).

My holidays will be Channel Entries, so what's the best way to categorise this information within the channel entry, ideally so that it can be filtered and pulled through individually to entry pages at a later date?

Should I create a Category (e.g. "Season") with Category Items (e.g. Summer/Winter/Fall)
Should I create a Status (e.g. "Season"), with Statuses (e.g. Summer/Winter/Fall)
Is there an Addon that would work best for this kind of thing?

Thanks,

Jack


texts:
Does anyone know a way to automatically synchronize a file directory? Possibly through a cron?

I need to have an image manipulation done to the member photo directory, and I don't see a way to do that automatically through the Members module.

Using EE 2.6.1

Thanks!


texts:
I have an event calendar page:

site.com/events/event-calendar

that lists all upcoming events on that one page. Next to each event listing i want there to be an 'Export' button that links to/exports the ics for just that one individual event.

My export button currently links to the 'export' template - a href="export" - with:

{exp:calendar:icalendar
    show_days="1"
    limit="1"
    dynamic="off"}
{/exp:calendar:icalendar}

but that does not export the ics for the exact event. I have tried playing around with the parameters date_range_start, date_range_end, event_id but can not get it to work. Is it even possible? What do i need to add?

Any help is appreciated!


texts: Multilingual Discussion Forum - how to set default language

texts:
I'm building out a multilingual site (English and French) with a discussion forum. The multilingual aspect of the site is being powered by Transcribe and is working great.

I'm in the middle of setting up my forums and have them skinned correctly. There are two boards with unique urls one for English and one for French. Is it possible to set the language pack to French when visiting the french forum by default. Currently it's English and when a new visitor comes in French the registration forms and login forms are in English with no way to change them to French that I can find. At least until after the user has successfully registered, logged in and edits their profile.

I've looked all through the forums CP and can't find a way to do this.


texts:
I've looked all over for this and can't seem to find anything for this. I've also found an unresolved similar question about this in stack exchange from many months ago that wasn't answered, so I thought I'd put this forward again:

Is there a simple date picker that will work as a Grid field that will output ONLY the date without the time? All I need is Month, Day, and Year in any order so I can use the search: option in the Grid loop without having to use the "format" parameter.

I know there is a way to build a fieldtype to do this, but I'm not this advanced (yet) with PHP (still learning on Lynda).

I would HIGHLY appreciate any help!


texts: Solspace Freeform Pro + composer and Error Page

texts:
Based on Solspace Freeform documnetation

  The Error Page function allows you to bypass the native EE error message template and create and customize your own. Simply create a new EE template and add in the applicable variables below, along with anything else you typically use in your templates (template tags, variables, or embeds). This function is available for all use in all form functions such as Freeform:Form, Freeform:Composer, etc. Make sure you specify the error_page="freeform/error_template" parameter in the form you'd like to use this error template.

but where I can define error_page="freeform/error_template" parameter when I'm on a composer editor? I have try to add it to the Composer Template as Template Params but still is using default EE errors message page.

Thanks


texts:
It would be nice to have a config option to control a confirmation dialog before performing a drag and drop operation.  There would ideally be two options: one that controls the dialog for folder moves and one that controls the dialog for file moves.  When a folder or file is dragged/dropped, a dialog would ask the user to confirm his or her intentions.

While I can't consistently reproduce it, there are times where folders are accidentally dragged/dropped.  This appears to occur most often when Assets is busy trying to load its thumbnails and you go to click a different folder.  It's as if the first folder selection hasn't released yet, so Assets tries to drop it on the newly selected folder, things go crazy, and now there's an accidental drag/drop.


texts: Simple Search and Grid field not returning results

texts:
EE v2.8.1 - Build Date: 20140314

I have a Grid field that is set to searchable, the columns are also set to searchable. It is in the about channel and is populated using the pages module. I have a simple search form and I continue to get '0' results. I even went so far as to specify the exact channel of the entry I was testing, copy and paste the text from the entry form itself, and still I return nothing.

I went into the field to re-save the field type thinking something was "off". I then went into the entry and re-saved the entry to make sure nothing was "out-of-sync".

My simple form is here:

            {exp:search:simple_form
                channel="about"
                where="any"
                form_id="searchForm"
                result_page="search/results"
                no_result_page="search/no-results"
                results="20"
                show_future_entries="no"
                status="open"
            }

                    <input type="text" class="form-control search" name="keywords" id="keywords" value="" placeholder="Search...">

                        <button type="submit" class="btn btn-default"></button>

            {/exp:search:simple_form}

I am currently using this to see what is returned, if anything.

Your search for {exp:search:keywords} had {exp:search:total_results} results.

Am I doing something wrong here? I've never fought something so simple for so long.

* EDIT *

I have done some further testing with a new channel, new fieldset, and new entries. It appears that the rich text field inside of the grid is NOT being included in the search. I have ALL searchable fields selected and am not able to return any results from these entries.


texts:
Trying to setup a sub-directory with a separate EE installation. All is well with the installation, I got a few templates and tpl groups setup.

Whenever I try and view the template (Template manager -> TPL Group -> view) I always get a 404.

For a better understanding here is my site: http://warpedcoders.com/ here is the subdomain: http://warpedcoders.com/charlie/ and here is the 404 http://warpedcoders.com/charlie/news/page_content

My .htaccess currently looks like so:

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

Could anybody help me out?


texts:
My frontend has a sidebar that is embedded by most of my frontend's pages. In that sidebar template, there is a conditional that goes something like this:

{if logged_in}
   ...
   ...
   {embed="foo/bar"}
   ...
   ...
{/if}
{if logged_out}
   ...
   ...
   ...
{/if}

(The ... indicates plain HTML stuff.)

Everything works as expected -- except on my /sign-up/ page. On the /sign-up/ page, it's as if I am logged in. I see the markup inside the {if logged_in} conditional and the results of the embed. I do not see the markup inside the {if logged_out}.

Other parts of the page has similar logged_in and logged_out checks -- and they all seem to be working fine. The problem is isolated to just the sidebar. This is very strange to me. Any ideas what might cause this problem?

UPDATE 1:

Note the {embed="foo/bar"}. It contains a SafeCracker Registration form. Here's the opening tag:

{exp:channel:form
    channel="profiles"
    class="form-horizontal apply-nolazy"
    datepicker="no"
    dynamic_title="[email]"
    error_handling="inline"
    id="registration-form"
    include_assets="no"
    include_jquery="no"
    loggin_member="no"
    register_member="yes"
    return="/sign-up/verify-email-address/"
    rules:birthdate="required"
    rules:gender="required"
    rules:profile_name="required|max_length[25]"
    rules:user_provided_address="required"
    secure_action="yes"
    secure_return="yes"
}

When I comment out the embed, the {if logged_in} and {if logged_out} checks in the template that embeds the SafeCracker Registration form are respected. It's as if the embedding of the form causes the conditionals to misbehave. Is this somehow a problem with SafeCracker Registration Form?


texts:
I am working on a client site and they have a search form which we are using Low Search for. Two current search fields for keywords and topics (a Playa field) work fine.

I am working on the third field where we need to filter by the position (text input) field of a related employee (Playa field).

Here is the code I currently have:

<select id="position" name="child:news_related_employees[]">
    <option value="">All</option>
    {exp:query sql="SELECT GROUP_CONCAT(entry_id) AS entry_ids, field_id_34 AS p_position FROM exp_channel_data WHERE field_id_34 != '' GROUP BY field_id_34 ORDER BY field_id_34 ASC"}
    <option value="{entry_ids}">{p_position}</option>
    {/exp:query}
</select>

The query works fine, I get a comma separated list of entry_ids per unique position, however the form does not return any results. I assume that's because it is trying to match the entire string of entry_ids to an employee in the Playa field.

Can anyone shed some light on this or know of a way to do what we need? Thanks.


texts:
I'm using this code for my 404 redirect:

{exp:channel:entries channel="about-us" limit="1" require_entry="yes" {gv_param_disable_default}}
        {if no_results || last_segment != url_title }

        {redirect="404"}

        {/if}
<!--content here-->
{/exp:channel:entries}

Why wouldn't this work?  It seems to stop an additional segment from being added to the url, but if I just change the last segment to an invalid path, it just goes to the blank index template for that channel.


texts:
Our store runs Expresso Store 2.5.1 on EE 2.10.1

Checkout is via Paypal Express.

Certain orders go off for payment via Paypal and the order system records a successful payment and the status in the database for the order is 'New' (as expected) however when viewing the orders in the admin, the status shown is 'incomplete'. The option to print invoice also doesn't then work.
The order (or more accurately 'the cart' as it isn't technically marked as an order yet) shows the successful payment from Paypal.

I'm guessing that this could be because a user hasn't left Paypal and gone to the order success page thereby not generating the URL and leaving the order unconfirmed?

If anyone can suggest a reason as to how this can happen and more importantly, how to avoid it?


texts: Can't stop spam registrations, using Freemember

texts:
I'm having a nightmare with spam registrations! Can't seem to stop them.

We have changed the Profile Trigger Word to something completely random, and use Freemember to register members.

We have added the following Extensions:

Accessible Captcha
Hon-ee Pot Captcha
VZ Bad Behavior

All work for me when I answer the wrong question, or enter the honeypot field.

I emailed one of the spammers email addresses (which are just random character emails at aol, gmail, and others), and got a bounce back saying it did not exist. I thought human spammers may at least use working emails.

Does anyone know why spam registrations can still happen?

Using EE 2.7.3

Thanks


texts: EE date timestamps have different values for the same date/time

texts:
i have a list of movie screenings sorted by date. now the client wants to be able to order additionaly with a custom order field, i don't get to the second order_by however...

it seems when you enter a date random seconds are added to the EE timestamps.
if they enter "2013-03-01 08:00 PM" it always has a different timestamp:
1362186000,
1362186018,
1362186025,
1362186032,...

where are those seconds coming from? and how can i solve it?

my template:

{exp:channel:entries channel="screenings" status="open" dynamic="off" category="3&21" orderby="screening_datetime|screeningorder"  sort="asc|asc"  limit="200"}
            {screening_datetime} - {screening_datetime format="%d %M %Y  %G:%i"} hrs {screeningorder}
            {related_entries id="screening_movie"}
                {title}
            {/related_entries}
{/exp:channel:entries}


texts: Remove Custom Button from the Control Panel Menu

texts:
I've created some menu buttons I no longer need, and want to remove them from the top menu of my ExpressionEngine control panel. Could someone please teach me how to do that?

Thank you!


texts: If statement with OR always returning TRUE

texts:
I'm doing lots of checks against segments to try and perm redirect a very large list of old URLs and seem to have run into an issue with conditionals.

{if segment_1 == 'category' OR segment_1 == 'Category'}

Seems to always return true, even if segment_1 == 'sajdhjknsdjksad'. Is there a known bug, or am I doing something incredibly stupid?

UPDATE

The cause of the issue appears to be the redirect plugin I'm using getting evaluated before advanced conditionals, and then proceeding to redirect even if it shouldn't have actually been called. I'm using RedirectURL by Rodrigo Passos


texts:
I have recently started using the model service to query channel entries.

$query = ee('Model')->get('ChannelEntry')
                    ->filter(...);

I have been using EE's documentation to get by for most queries, but am now stuck.

I need to filter entries where a field matches a specific date. There is no mention of this in the documentation.

Previously, when I was able to query channel entries with a database call, I was using the following in a where clause:

 DATE_FORMAT(from_unixtime(field_id_xx),'%d%m%y')

Does anyone know of how this can be achieved using the model service?


texts: HTTPS BrilliantRetail checkout page not loading stylesheets

texts:
I am using the BrilliantRetail e-commerce extension with ExpressionEngine and there is an option to serve up the checkout page using the HTTPS protocol. This is working correctly, however, my HTTPS pages do not show the proper layout because the CSS files are not being served through HTTPS. If I use the inspect window to edit the HTML and change the CSS paths to HTTPS it works fine.

Anyone know how I can resolve this issue? Thanks in advance!


texts:
This is a bit of a complex one, and a bit tricky to explain - but here it goes.

I'm trying to build an advanced filter system for an eCommerce website. Hypothetically, it would look like this (with [ ] symbolising a checkbox)

BRANDS

[ ] Brand 1 [cat id=1]

[  ] Brand 2 [cat id=2]

[  ] Brand 3 [cat id=3]

SIZE

[  ] Small [cat id=4]

[  ] Medium [cat id=5]

[  ] Large [cat id=6]

Currently I have built a prototype using dynamic_parameter that allows me to filter by those categories.

But if I were to check Brand 1, Brand 2 and Small (which would in English mean "Show me small products by either Brand 1 or Brand 2) it of course is still effectively running

category="1&2&4"

Which instead is "Show me all small products by both Brand 1 and Brand 2" - which isn't so useful for filtering purposes.

For this website, combinations within a category group (Brand, Size, among others) should be OR and outside of the groups should be AND.

In a perfect world, this would work...

category="(1|2)&(4)"

So, is there a workaround to this?

Thanks in advanced, it's quite a complex one and I may be completely over complicating this!


texts: Item description from STORE to PayPal Express

texts:
I want to pass the item description from STORE to PayPal Express. At the moment in PayPal I see only the order number. All the other details are passed such as billing details, but not an item description.

I installed the CI Merchant GitHub Forkbut its still the same? I made sure I replaced the current file with: system/expressionengine/third_party/store/ci-merchant/libraries/merchant/merchant_paypal_base.php

Does anyone have any idea what I am doing wrong or if anyone knows if its possible to pass an item or product description from STORE to PAYPAL.

I'm using the latest version of both EE and Store.

Many thanks

Graham


texts: Disabling Cartthrob via database - How to?

texts:
I have large scale website with cart throb added version 2.00xx. I have updated the EE from 2.1.3 to the latest 2.8.1 and I've got a lot of errors, but at least I had cp available. Under extensions section I had list of extensions - some of them was disabled - including Cartthrob pro. Since I enabled it, I completely lost the CP. Now it shows blank page.
I'll really appreciate somebody to give me a tip how can I disable this extension via my sql admin by directly changing a record in the database?


texts: Wygwam 3.1.1 + GWCode syntaxhighlighter 1.0.0 - does this work for anybody?

texts:
I am trying to use GWCode syntaxhighlighter plugin with wygwam. I get the [code] icon in the toolbar, but then when I click it, I get a javascript error attempting to open the syntaxhighlight dialog box.

I suspect the problem is that wygwam updated to a newer version of ckeditor and left syntaxhighlighter behind.

(I asked this initially about wygwam 3.0.2, but update to 3.1.1 unfortunately changed nothing)


texts: Plugin development: How do you support date formatting in parse_variables?

texts:
I'm trying to support date formatting of a tag's output, per the Plugin Development & Template Class documentation. I have this code on the backend, with some redundancy on the timestamp value to ensure that, yes, this is a timestamp!

$append = array(
        'timestamp' => strtotime(date('Y-m-d H:i:s',$row['timestamp'])),
        'username' => $row['username'],
        'screen_name' => $row['screen_name'],
        'email' => $row['email']
    );
$output .= $this->EE->TMPL->parse_variables($this->EE->TMPL->tagdata, $append);

If I use the tag {timestamp} in my template, I get the timestamp value: 1363956000.

If I use {timestamp format="%l, %F %j, %Y - %g:%i %A"} in my template, the output is: {timestamp format="%l, %F %j, %Y - %g:%i %A"}.

According to the docs, this should just work, though – Template Class/Date Variables.

How do you support formatting of timestamp values in a plugin's output?


texts: Zoo Visitor / Store 2 validation based on radio value

texts:
I have a registration and checkout page where I give users the choice to register as a business or a private person (radio input).

If the user clicks on the 'business' radio, a pane slides down with inputs for company name and VAT number.

I would like to make these fields required, if chosen for business registration type.

I can do this with jQuery but can it be done with conditionals / hard coded too, in the template?


texts: PDF Press and generated PDF header/footer part

texts:
I have working PDF Press generator which uses save_to_pdf method because I need to have a name of generated PDF based on an entry title.

Based on DOMPDF FAQ https://code.google.com/p/dompdf/wiki/FAQ I can add footer/header image to generated PDF, but I'm stuck on which PDF Press file do I need to edit to have accomplish that part?

Thanks


texts: Add to cart: "Store: Can't find product (entry ID: 3242, modifiers [])"

texts:
I found a question posted based on the same error, but my issue happens in a different scenario.

Example: I have "Product A" with status "Status 1".

Adding it to cart works as expected.

When I use channel:form to change its status to "Status 2", and then try adding it to cart, I get this error:

Store: Can't find product (entry ID: 3242, modifiers [])

If I change from "Status 1" to "Status 2" in the control panel, adding the product to cart works as expected. It seems that channel form is causing a problem here.

My channel form code:

{exp:channel:form
 channel="inquiries"
 entry_id="{entry_id}"
 return="wallpapers/sms"
}

 <input name="title" type="text" value="{title}" readonly hidden>

 <select name="status" id="status">
  <option value="Status 2" selected="selected">Status 2</option>
 </select>

 {/exp:channel:form}

Does anyone have a clue about this one? Cheers!

Edit: To be clear, editing the status with channel:form works (at least the status change is reflected in the control panel, it's just that Store throws a fit)


texts:
I am trying to get the default Password Reset form working. I receive the email in my inbox, as expected, then I am taking to form asking for a new password and to confirm it. I click Submit and I am sorta taking to my index page. I say sorta because I have to refresh the page to actually see the page. Is this possibly why the password is not resetting?

I have tried this in Safari, Chrome and Firefox on the Mac.

Any suggestions?

Thanks,

John


texts: {video:img_url_hd} not working after 3.2 Channel Videos update

texts:
The {video:img_url_hd} tag is no longer working after we updated the plugin to the 3.2 version. It displays this gray image:https://i.ytimg.com/vi/GrdZjkNCp8I/sdhqdefault.jpg on the front end, even though the back end shows the correct thumbnail for the video.

I was able to change it to the {video:img_url} version since that is working, but wanted to make sure the DevDemon folks knew about it and check to see if it's just our site that has this issue.

Thanks


texts: Triggering Cartthrob shipping options with country select?

texts:
I'm using default CT store template and Shipping by Location Weight Threshold w/Options shipping plugin (https://github.com/CartThrob/cartthrob-shipping-by_location_weight_threshold_w_options) on EE 2.9/CT 2.6, and running into issue on Shipping template where toggling between countries doesn't correctly reset the shipping options select display.

It does generate the correct shipping price for the leftnav display, but the select itself doesn't refresh to show the proper rates. So, if you switch from USA to UK (or any other country), it'll change the leftnav from USA to correct UK shipping amount, but the select still shows the USA options.


texts: Channel form error with grid file field, comma in file name

texts:
I'm running into a problem using Channel Forms on EE 3.4.4 with a file field inside a grid. If the filename contains a comma it will initially submit but subsequent saves return an error message: 'There was a problem with one or more grid fields'.

Everything works as intended through the Control Panel, it only appears to be affecting Channel Forms. As soon a I remove the file with the comma in the name it works perfectly fine.

Has anyone had any similar problems with this at all?


texts: Writing update queries more efficiently in EE

texts:
I've got two queries that I'm running separately in a template, one after the other, like this:

<?php
  $sql = "UPDATE exp_channel_titles SET status = 'Registered' WHERE channel_id = '12' AND entry_id = {entry_id} AND status != 'Hidden';";
  $this->EE->db->query($sql);
?>

<?php
  $sql = "UPDATE exp_channel_data SET field_id_119 = 'Yes' WHERE channel_id = '12' AND entry_id = {entry_id} AND field_id_119 != 'Yes';";
  $this->EE->db->query($sql);
?>

Can someone tell me if and how to write these more efficiently within a single PHP tag/database call please? When I tried running them one after another within a single PHP tag, they failed to work. Thanks.


texts: How to deploy from localhost development server to live server?

texts:
When working on localhost the URLs have begun with http://localhost/~macuser/example.com/ and the file paths have begun with a local file path.

What is the best way to deploy a site once it is finished?


texts:
Is it possible to do conditionals for embeds? For example,lets say I have this very simple template, test/foo

{if foo}
   yes
{if:else}
   no
{/if}

In other templates, I want to use this embed in a conditional.

{if '{embed="test/foo"}' == 'yes'}
   Output is yes
{if:else}
   Output is no
{/if}

Unfortunately, when I tried this approach, what I got was always a no, even if I set test/foo template to yes.

Am I doing something wrong? Or is this just not possible?


texts: displaying spanish version of date while using transcribe

texts:
I am using transcribe and I was wondering if there is a way to display the entry_date in spanish.

I could probably build a plugin that captures the entry date and returns the appropriate format based on transcribe's current language session, but I was wondering if there is anything out there first.

Thanks


texts:
Does anyone have a neat solution to using pagination URLs? I would like to set up a simple structure like articles/article-entry with the listing and entry in one template. But once I include pagination in the listing I always end up putting the article-entry into a new template to avoid clashing with the pagination URL (ie articles/P2 etc). I then have articles/entries/article-entry or something equally as clunky.

I could use paginate_base to create a different URL for the paginated pages. But then I have duplicate templates for the listing. Is there any other way?


texts: Automatically registering a member upon new channel entry form submission (from front-end)

texts:
I want to be able to put an enquiry form on my website which, upon submission, will store those details in an Enquiries channel in EE4. No problem.

I would also like to register a new member at the same time, as I already have their name (Screen Name) and email address (Username) from the enquiry as they are compulsory fields and there'll be validation. A random string of characters can be created when the enquiry form page loads to be used as a temporary password. The user will receive an email when the enquiry form submits (from the return template) which will contain their temp password and they will be asked/forced to change the password before continuing when they next log in to the site (I'll probably use a custom member field to identify if they're still using a temp password).

I can't work out how to register a member without them submitting a second form (a Member registration form). There doesn't seem to be an EE tag that can process this if supplied with required variables.

Why? I want the enquirer to receive one email upon submission, thanking them for their enquiry and giving them login details so they can log in to the site and monitor the status/progress of their enquiry in a member area. I don't want to have to register them myself manually, or have them complete a second form.

I can think of other scenarios where this might have cropped up before ... a purchase form which allows the customer to select a checkbox to create an account at point of checkout for ease of future purchases? So this must be possible, somehow.

Any ideas?

Thanks in advance!


texts: Solspace Calendar Create Event: Disallowed Key Characters Error

texts:
I am implementing a Solspace Calendar 1.8.5 on an EE 2.7.3 a site and get the following error when I try the built-in sample form:

  Disallowed Key Characters

Here is the code:

   {exp:channel:form channel="calendar_events" return="calendar_main/event/{segment_3}/updated"}

Title:

   <input type="text" name="title" value="{title}" size="80" style="width: 600px;" />

   {exp:calendar:date_widget}

Summary:

   <textarea name="{event_summary_field_name}" rows="5" cols="65" style="width: 600px; height: 100px;">{event_summary}</textarea>

Location:

   <input type="text" name="{event_location_field_name}" value="{event_location}" size="80" style="width: 600px;" />

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

   {/exp:channel:form}

I would appreciate some help diagnosing this.

Thanks.


texts:
I'm working in EE v2.9.0 and Postmaster 1.5.0. Every time I save a parcel or a hook, I get the same error:

Error

The page you requested was not found.

The information saves, however, I need to go all the way back to the Postmaster home page to get back into the entry. Otherwise it creates a duplicate entry. Any thoughts?

Screenshot of error


texts:
I see from another question that it's possible to pass query strings through the URL in EE1 but the question itself and its answer didn't really answer how this is done or help solve my specific question which is, can I pass a query string through the URL and have it fill out a form in EE1? I know you can do this easily with PHP and for this case I'm OK with enabling PHP on this single template. However, my quick test didn't seem to work. I added the following php to the head of the template:

<?php
$first_name = $_GET['first_name'];
$last_name = $_GET['last_name'];
?>

and added the following value parameter to the appropriate input fields:

value="<?php echo $first_name; ?>"
value="<?php echo $last_name; ?>"

I've tried setting PHP to render on input and output and have tried an embedded template for the form as well as placing it in the template but the query string values aren't populating the form fields.

What am I missing here? Is it even possible to get query strings to populate a form in EE1?


texts: Can the target tab drop down be defaulted to "open in new window" when linking to uploaded docs?


texts: exp_online_users table corrupt after PHP upgrade

texts:
We have a server with several sites running various version of Expression Engine.  We upgraded PHP last night and after the upgrade 2 sites has the table exp_online_users corrupt.  I ran a repair command on the tables and the number of rows was reduced by 2 in each database and then the site ran fine.  These 2 sites run older versions of Expression Engine.

Ideas of what could have caused the table to be corrupt?


texts: No segment variables - Zoo Triggers and MSM

texts:
We running a site which uses MSM and Structure. To get around the 'category' issue in Structure, we've added Zoo triggers, which works great on the default_site but not so well in the MSM sites.

In the MSM sites, we're pulling team entries from the master site, but in doing so, we seem to have lost all segment variables.

I've tried {segment_4}, {triggers:cat_name_1}, {segment_4_category_id} (Low seg2cat), {last_segment_category_id} (seg2cat), {triggers:cat_id_1} and {triggers:cat_id_last} and none of them return a value.

The triggers variables just output the tag to screen, but I would have expected the native tag to work in this case, or seg2cat. My guess is the parse order gets borked by the structure/triggers combination, but without segment variables, we're pretty limited in terms of what we can do on the page.

We're running 2.9.0 with the latest version of structure and triggers.

Anyone any thoughts?


texts: Displaying entries from two channels from same category on single-entry page

texts:
I have a channel called "offices" with a limited number of entries. Every entry is assigned to a different category from a Category Group called "office-categories". For instance the first entry is assigned to a category called "office-1".
I have another channel called "files" with  unlimited entries assigned to categories from the same Category Group "office-categories".
In time a lot of entries will be assigned to the same category "office-1".
I cannot use the Relationship in the first channel because there are so many entries in the second channel that make difficult to find the ones that belong to a specific category.
In the single-entry page of the first channel I like to have the details of the first channel entry and all the entries (all the files) from the second channel that belongs to the same category "office-1".
Can someone tell me if this can be done in EE and how?
Thanks a lot


texts:
I am trying to get the {extra:...} tags to work (per the docs) in EE4 but am having no luck.

In my config.php file, I have the following:

$config['seolite_tab_title'] = 'SEO';
// Pull additional info for SEO Lite
// channel_id => array(field_id => tag_name)
$config['seolite_extra'] = array(
  // home channel:
  '5' => array(
    'robots' => array(
      'field_id' => 62,
      'field_type' => 'text'
    )
  ),
);

The SEO Lite template (in the CP) is as follows:

<title>{title}</title>
<meta name='description' content='{meta_description}'>
<link rel='canonical' href='{canonical_url}'>
<meta name="robots" content="{extra:robots}">

The output is fine for the first three lines, but the robots tag outputs like so:

<meta name="robots" content="">

On the Devot:ee site, someone noted that the extra tags don't work in EE4. Is this correct? If so, does anyone have a workaround/fix (besides just using the field natively with EE code/syntax)?


texts:
I am making my site multilingual and the solution that I went with is to leverage CI's language system(that is, I am using language files).

I am using this addon to access language variables from the language files. Here is the code used to retrieve the language strings

$lang_file = ($this->EE->TMPL->fetch_param('file')) ? $this->EE->TMPL->fetch_param('file') : 'custom_label';

$this->EE->lang->loadfile($lang_file);

$param = $this->EE->TMPL->fetch_param('value');

$string = ($this->EE->lang->line($param)) ? $this->EE->lang->line($param) : '';

return $string;

I noticed though that no languages was set here. So I assumed that it is being set somewhere before this code executes.

I tried changing the languages in the Localization Settings for each member and the addon worked, getting only the strings from that language.

That is all well and good but it does have a problem in particular.

  The current system only works for members. What if a guest(logged out user) wants to
  change language?

Solutions I am currently thinking are

Instead of relying on the saved preferred languaged, I would base it on the url segment

http://domain.com/en/test and
http://domain.com/fr/test
Store the language code in session

However, both of this can only work if I can override the currently set language.

Is there a way to do this?

P.S. Please don't suggest using addons like Publisher or Transcribe. I want to do this without using those addons.


texts: modifying .htaccess to remove index.php? breaks my access to the control panel

texts:
I recently took over from another developer and I'm having some trouble with my .htaccess breaking my admin control panel.

My .htaccess file is as follows:

RewriteEngine On
RewriteRule ^case-studies/(.*) /articles-case-studies/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

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

<FilesMatch "\.pdf$">
  header set x-robots-tag: noindex
</FilesMatch>

<IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /

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

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

    RewriteCond %{REQUEST_URI} !^/php-fpm/*
</IfModule>

which does effectively remove index.php from my urls. The problem I'm having is when I try to log into the back end control panel at:

www.example.com/admin

the page just gets stuck in an infinite redirect loop. What I've noticed is that without removing index.php? when I try to login to www.example.com/admin it redirects to

www.example.com/admin/index.php?/cp/login&return=

What am I missing?

Edit:for grammar mistakes


texts:
Simple commerce permit to define fixed prices.

{item_regular_price}
{item_sale_price}

But no have options, like a form text input, where the user could digit this own price, for a donation.

It possible to achieve this ?

I'm using EE4, it could be achieve with the great Cartthrob,but is not yet EE4  compatible.


texts: Anyone used Sencha Touch and EE for ecommerce?

texts:
I'm looking to build a new ipad and iPhone website for a client. I'm looking at Sencha Touch as the solution with Carththrob running the ecommerce side of things.

As anyone had any experience with this set up?

Looking at the Sencha docs, I'm thinking of using XTemplates quite heavily to accommodate CTs forms etc.

Any heads up would be fantastic!

Cheers


texts: Trigger a 404 on a /news index which has categories and pagination running through it

texts:
I've yet to come up with a decent solution for this so thought I'd throw this out there.

Basically I have a /news/index template, it serves the initial set of news results, and also serves up paginated results and category results, for example:

/news/P10
/news/category/blogging

My question is: What is the best way to get EE to throw a proper 404 error on a url like /news/foo

Most sites I've seen don't cater for this, even Ellislab: http://ellislab.com/blog/foo

But I do see the clever folks at FocusLab have it nailed (http://focuslabllc.com/blog/foo) :)

Any suggestions/tips ?


texts: Using Zoo Visitor, on form submit error, entered values don't fill into form

texts:
I'm doing a Zoo Visitor registration. If there's a problem with the user inputs, the errors show up fine but it blanks the form. I added code that I thought would fill the values in again but nothing gets filled in.

    First Name:*

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

    Last Name:*

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

    Email:*

        <input id="email" name="email" type="text" value="{email}" />
        {if error:email}{error:email}{/if}

And as I'm writing this I'm wondering has it something to do with parse order? We're using stash and maybe it's causing it not to load or is being overwritten during parsing. For the email field, having {email} as the value, always returns the email address of the super admin account. I've tried this in different browsers, logged out, incognito windows, etc. Always the same.

From looking at code examples and safecracker, zoo visitor stuff, I was under the impression that I use the form element name/id as the EE tag to fill it with data. Maybe I need a prefix or I've got something else running that's causing this.

Any help or suggestions would be greatly appreciated.

Thanks,

Dave


texts:
[EDIT - I have posted the answer to my question below]

EE 5.2.4

I'm having issues trying to use $_SESSION in EE.

What I would like to do is save an Amazon cart ID in the $_SESSION. Working in regular PHP I'm familiar with this: $_SESSION['cart_id'] = 1234. However when I try to do this in EE I get errors and/or nothing happens.

I thought that maybe what I'm looking for is the cache-access functionality:

So in my class I have this ee()->session->set_cache('amz_cart', 'id', $value);, and in my view I'm trying to see what returns from this ee()->session->cache('amz_cart', 'id');.

Nothing returns with this. Can anyone point me in the right direction?

Thanks!


texts:
Just wondering whether anyone has come across a replacement / fix for Copee Pastee which no longer appears to work in EE 2.7.

Any insights would be most welcome.

Cheers

Jim


texts: Sync process new image manipulations in child folders (for use with P&T Assets)

texts:
I'm finding CE Image is incredibly slow even with CE Cache and native caching, and so I'm keen to move over to use native image manipulations.

However, because I use P&T Assets, my clients have added images in sub-folders to keep things organised. That means, when I add new native image manipulations and perform a sync, the sub-folders are effectively ignored.

Does anyone know how I can add new image manipulations, and have sub-folders processed?


texts: How i can display all category group name?

texts: I want to display category group name in detail page of articles is it possible and how i can do this ?


texts:
Any idea why if i have french characters for name et first name (First letter only) i got :URL title is required error?

If name or first name start  with ÉÀÖ etc..
My channel form contain .. dynamic_title='{current_time format="%Y%m%d%H"}-[last_name]_[first_name]-[date_de_naissance]'   ( at first i put last_name and first_name at the beginning then i tried like this (time in first position).. but still no luck!

EDIT :
After few tests the problem occur with any capital letter anywhere in the word, not only the first letter..


texts: Freeform file upload not in database table

texts:
Does anyone know why the filename or names do not always record in the freeform table?
Ex. my form is located in exp_freeform_form_entries_1.
the file field is form_field_22.
But on many of my forms, this field is blank.

I'm using ff pro v.4.0.12

My code is below

Please upload your file: (File format: .docx or .pdf)
                <input type="file" id="file_field0" name="file_field0[0]" class="required" />

Any help is appreciated.

Peter T


texts: How to store data that relates to a channel?

texts:
I have a site with a large number of blog channels (literal blogs in this case).

Each channel has a number of pieces of information I need to associate with it - a summary of the channel, an image that displays as a header, a feedburner link, and a couple other text fields.

Currently, I'm storing that information in a matrix in a low variable, and tying it to the channel manually with a text field containing the shortname of the channel.

The problem is that when I use this matrix a lot (for example on a page that outputs entries from every one of my channels) this matrix ends up being hugely inefficient and boosts my memory usage significantly.

So my question is this - how would you store this type of information that relates to a channel as a whole, not an entry?


texts: More than one relationship field per entry not working on tempate

texts:
I have a channel set up where it's necessary to relate 2 other channels using two different relationship fields.

The relationship set up works OK within the CP.

The problem is that I don't seem to be able to output both relationship fields within my template. One or the other works fine but as soon as I put both on the template then neither work and the template tags are shown instead.

Has anyone run into this problem or have a suggestion as to how I can fix it?

Doesn't seem to work with an embed either. When using an embed and passing it the entry id I can display the related entry title but custom fields don't work.


texts: Expresso Store: Send Email X days after purchase

texts:
My client has requested that the site automatically sends users an email X days after their initial purchase.

Whilst I can probably work out some custom DB queries to get customers who had brought stuff X days ago are there any hooks I can use to trigger Expresso Store to send one if its own templates out?

Thanks in advance


texts: Upgrade to EE 2.7.3 login to CP via link not working any longer

texts:
On 2.5.5 I had a link like this on the client's product pages:
http://cl.ly/image/2c3G3m1X0a3D

Very simple, if they are logged into the CP on another tab, they click the edit link and it opens this product's CP edit page in a new tab. The link looks like this:
http://www.domain.com/admin/index.php?D=cp&C=content_publish&M=entry_form&channel_id=12&entry_id=7832

Worked great for years. Note also that the link is only shown if all these are true, so we know they are logged into a current CP session and have the right to see the link:

    $is_admin = TRUE;

    if($this->EE->session->userdata('group_id') != '1' AND $this->EE->session->userdata('group_id') != '6') {
        $is_admin = FALSE;
    }

    if($this->EE->session->userdata('access_cp') != 'y') {
        $is_admin = FALSE;
    }

    if($this->EE->session->userdata('admin_sess') != 1) {
        $is_admin = FALSE;
    }

I updated them to 2.7.3 and now those same links bring up just the CP login page. What has changed in the session/security model that would prevent this from working?


texts:
Fatal error: Call to a member function getId() on null in ~/system/ee/legacy/libraries/Session.php on line 398

The $member object (re: $member = ee('Model')->get('Member', $member_id)->first();) is null.

What's going on?


texts:
I have a  series of performance dates; let's say 5.

 {performance_date_one format="%l, %F %j, %Y; %g:%i %a"}

However,  after a date has passed, I want to gray the date out and remove the link, but I want to keep it on screen until all five performance are finished.

This code doesn't work. It prints two dates one grayed out the original date.

  {if performance_date_one}
  {if "{expiration_date format='%U'}" < "{current_time format='%U'}"}

 &nbsp;
 {performance_date_one format="%l, %F %j, %Y; %g:%i %a"}
{/if}

  &nbsp;{performance_date_one format="%l, %F %j, %Y; %g:%i %a"} PAST
{/if}

I am stuck, any thoughts?


texts: Complex Category Setup // Looking for Best Practices

texts:
Okay so I have looked at How to create a complex stockist list using Structure and/or categories and have studied all of the comments carefully but I don't think any of those setups are going to work for me. Although I'm open to any ideas on how to implement those into what I'm doing.

Okay here's my scenario and setup:

Businesses Channel
State and City Channels as sub-pages with Structure

I have a matrix field setup for each individual business with Playa fields pulling in the State and City.

I have a small set of Categories associated with each individual Business.

What I would like to do is to have a list of States on a Business page (I currently have this setup which pulls a list of each State in the "State" channel". that clicks through to the list of City's under each State.

I figured I would need a relationship (Playa) for each City, so EE knows which State each belongs too. I have this portion setup too.

WHERE MY PROBLEM LIES

I'm not sure how I am going to pull in (for example) Bob's Towing company in Boulder, CO on the business page.

I think using Playa is the way to go, but I'm currently lost at the moment on how to bring it all together. I want to avoid having to setup more Structure pages under each and every City as this will quickly become quite the mess.

I am open to virtually anything.

WHAT I'M GOING FOR

Business Page
Listings of States on Business Page
Listings of Cities from the States page, making it easy for people to find what they are looking for
Have a list of Categories clicked from the States page with individual businesses organized accordingly.

I am certain there's a better way of doing this and am looking to the EE gods for help on this. I am open to setting up a Channel for each State if need be, but again I'm looking for some better suggestions.

Thanks again for reading this and offering any advice on how I can bring all of this together!

Cheers


texts: Freeform get return value wether user recieve email or not

texts:
I have created form using freeform

    when user fill-up form user as well as admin receive the email
    but admin want to receive another email whether user received email or not

for ex: while fill upping form if i enter correct email user will receive email but when i enter wrong it will not.
notification should be  regarding this whether user received email or not

freefrom send mail using  ee()->email->send();

i tried to get return value for this but it always return true if email is correct or wrong ee()->email->send();


texts: Matrix data not showing in CP, but displays in templates

texts:
EE 2.7.3
Matrix 2.5.10
MAMP, PHP 5.5.3

This is a weird one, working on a fresh site build, data from a Matrix field is showing in my template, but when I go to edit in the CP no rows display in the CP. If I save the entry then the data is gone and nothing displays in the template. I'm not sure when the field stopped displaying data in the CP, but it WAS showing in the CP at one point.

I'm also working with Solspace Importer for this particular channel, and the last import I did was for non Matrix fields in the same channel, not sure if this could have anything to do with the Matrix data not showing in the CP… I import the Matrix data via the XML importer, wondering if that needs to be done last? That still wouldn't explain why Matrix data is not showing in the CP though.


texts: Total entry views for all entries in a given category

texts:
We have a basic query, which get us; cat_id, parent_id, cat_name and the total entry_count which is then displayed in the form of a report... the current query is:

SELECT c.cat_id, c.parent_id, c.cat_name, count(t.entry_id) AS entry_count
FROM exp_categories c
JOIN exp_category_posts p ON p.cat_id=c.cat_id
LEFT JOIN exp_channel_titles t ON p.entry_id=t.entry_id AND  t.channel_id IN (2,6,7,8,9,10)
WHERE c.group_id=1
GROUP BY c.cat_id

This works, however we also want to get the TOTAL view_count_one for all entries in a given category...

Any ideas how this would be expanded to achieve this?


texts:
Im using Solspace User addon with Username Is Email settings.
However, one of my users seems to have continue problems with their logins.

First time I did just update their profile and setup timezone that was for some reason not set at all, and user did manage to login after that.

Now I got email again, that user didnt manage to login. I did try this and got also the same error: you are not authorized to...

Here is the login form Im using:

                  {if logged_out}
                    {exp:member:login_form return="{site_url}" form_class="form-horizontal"}

                            Email

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

                            Password

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

                                    {if auto_login}

<input type="checkbox" name="auto_login" value="1"> Remember me?

                                    {/if}

                                <button type="submit" class="btn btn-lg btn-success">Login</button>

                    {/exp:member:login_form}

Forgot password?
Create free account?

                    {/if}
                    {if logged_in}
Ups, you are already logged in!
{/if}

Do I miss something or what's might be going on?
I havent been able to reproduce this error with any other account that I have created nor anyone else has emailed me that they cant login.


texts:
One thing I've noticed when working with Expression Engine, is that when image galleries are created, with images being loaded dynamically from a channel, the images tend to be the same size dimension and so the end result is an equal grid.

There's absolutely nothing wrong with this, but having used this method/layout for so long site after site, I thought I would venture out a bit and see if anyone out there with a bit more know-how could explain 1. If it's possible and 2. how I could go about creating a dynamic gallery with a similar layout to the following example;

I'm unsure how possible it would be to replicate this effect from say, an Assets field full of multiple images. I suppose multiple images being pulled through this way would have a uniformed formatting, such as height and width etc, therefore creating an equal grid layout

I'm aware of plugins such as isotope and masonry which achieve this kind of desired effect. But are those sorts of plugins the only way around?, besides hard coding the images with set widths and heights (which could impact a responsive site).

My gut tells me that it would be tricky to pull through multiple images dynamically from a channel and arrange them in this way. But hey, maybe I'm missing something obvious. That's why I'm asking I guess.

Any advice, as always, is much appreciated.


texts: Solspace Calendar: Calendar name not showing in .ics file

texts:
In case anyone is not aware of this: if you are using Solspace Calendar and are providing a subscription link, if you use http:// for the link, then the browser sends the .ics to the calendar client as a static file. Calendar changes and new events will not sync.

If you build the link using webcal:// the browser will pass it to the user's calendar client as a 'live link' and then will sync events and changes at intervals the user specifies.

Problem: The generated .ics file does not include the calendar title and thus the calendar name in the user's client ends up being the ulr to the .ics file.

According to http://en.wikipedia.org/wiki/ICalendar#Calendar_extensions there is a property "X-WR-CALNAME" used to name calendar… How do we make this work with Solspace Calendar?


texts:
Is there any way to return the playa field's name (or an ID / short name / anything similar) within a playa loop? I basically need to pull two different playa fields, but treat them differently.

Readability-wise, I'd love to keep this as a single playa loop, but that isn't strictly necessary and might be my backup plan.

Ideally, I'm looking for something like:

{exp:playa:children field="missed|content" status="open" limit="10"}
  {if field == "missed"}
    display missed field one way
  {if:elseif field == "content"}
    display content field a different way
  {if:else}
    ...
  {/if}
{/exp:playa:children}

I'm hoping I'm just not seeing something. Thank you!


texts: "Low Reorder for Structure" plugin - links to the wrong reorder list

texts:
Do any of you use the Low Reorder for Structure plugin?

Assuming you're using Structure & Low Reorder, it adds a link next to a page which has listings, and changes the "Add or Edit" link to be "Add, Edit or Reorder."

I'm having a problem where the "Reorder" link is going to the wrong reorder list. And the unfortunate part is that it matches up reorder lists to listings automatically, so I can't manually select one or the other (as far as I know).

I've got two reorder lists that pull from the same channel. The channel is called "projects" and the lists are called "projects" and "area" - Projects is all of the listings, while area is a particular subset.

According to the docs, it should pick up the reorder list with the same name, but it's picking up the other one instead.

Is there a way to override the selection that the plugin is making? Or change my data to get the plugin to select the right list?

EDIT: After some testing, it looks like it uses the last reorder list that uses the same channel. I deleted my first 'projects' list and recreated it, and then it was working. Delete the 'area' one and recreate it, and then it links to that. It's not a fix, but it does work.


texts: Upgrading EE 2 with Zoo Visitor to EE 3 with Visitor

texts:
I'm trying to upgrade EE 2 with Zoo Visitor to EE 3 with Visitor 3.
However, I can't just copy over the add-ons directories because the names have changed from zoo_visitor to visitor.
Also in the database these changes exist.

Does anyone know how to upgrade?