texts: CartThrob - Is it possible to have more than one orders channel?

texts:
My client is selling two types of tickets - one is really a voucher that has separate fields for the voucher holder and voucher payer and another is a general ticket. Both are really the email notification that is redeemed at the door. I’ve set up the voucher orders channel and had the shipping information actually be the voucher holder information. Now I want to set up the tickets orders which won’t have any shipping information. After these two, we’re going to set up physical products, such as T-shirts with different colors and sizes, to sell as well which will require separate billing and shipping information.

In short, we’re selling widely different products with different characteristics. Each type of product - tickets, vouchers, physical products will be sold separately - the customer can not buy all three in one order.

It would seem logical to have separate orders channels - one for each type. Is this possible in CartThrob?  I can see that it’s possible to add additional products channels but I haven’t found any way to set up corresponding orders channels. Do I have to combine them all into one large orders channel?

JP


texts: Is it possible to remove but not delete an image from Channel Images?

texts:
Is there a way to remove images from an entry but not delete it from the filesystem?

Thank you in advance.

L.


texts:
Last week I set up a simple commerce section for a client which included two email templates: one to the buyer and one to the seller. In my testing the buyer notice arrived but when other users tested the purchase the notice never came through.

Here is the text of the email:

  Dear {first_name} {last_name},

  Thank you for your purchase.

  You can download the video: http://www.sitename.com/store/success.

  Sincerely,

  Client Name

Is there anything that would be preventing the emails from getting through to the buyer?

Thanks.


texts: Using EE Templates in Custom Controllers Etc

texts:
I've gotten a custom controller set up in my EE install and I'm trying to use an EE template with the custom functions etc I need to use.

    <?php if (!defined('BASEPATH')) exit('This cannot be hit directly.');

    class Example extends EE_Controller {

        function __construct() {

            parent::__construct();

            // get EE
            $this->EE = $this->core->EE;
            // get EE's template library
            $this->EE->TMPL = $this->EE->load->library('template');
        }

        function index() {

            $this->EE->TMPL = new EE_Template();

            //pick our template
            $this->EE->TMPL->run_template_engine('site', 'form');
        }

This controller code successfully loads up my EE template, but I haven't had any luck parsing the tags, or sending in values for the tags. What should I do?

I realize I could build modules for custom code etc, but I need to allow for custom controllers for outside Kohana and Symfony code the EE install needs to make friends with.

I tried using the $this->EE->TMPL->parse_variables() function that didn't seem to let me swap out the variables either.

For example, my template has code in it like this:

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>{meta_title}</title>
    <meta name="description" content="{meta_description}">
    <meta name="keywords" content="{meta_keywords}">

Any suggestions?


texts: How make logged in members auto logout when visiting a certain URL

texts:
Maybe strange question, I put it in the setting of this case.
I have build a shoppingsite (Carttrob, Profile:edit) where members are logged in after registration. I also use Freemember to bypass EE messages for the normal login c.q. logout procedure.

Now the owner wants for certain groups a registration without logging in, because he wants to approve them first.
Profile:edit echoes the settings in Membermodule, which is allright, so now I must make an exception here. I could not find an override tag.

My thought is to send the member* to a redirect page where they, without knowing it, become logged out.
*after completion of the form they are at that point logged_in*

I could of course make a button (with some text)to activate the logout procedure, but what if the user does not use that button, and goes back to the site?

My question, how would I code that page? In order to automate the logout procedure?


texts: Is there a conflict with Solspace Calendar and Twitter Bootstrap 3.3.4? When I enable the date picker field on the channel form, the navigation loses all formatting from Bootstrap. I see current documentation calls for jQuery 1.3 while the new Bootstrap is using 1.11.2. Is there a way to have both?


texts: Low Events …. How do I set repeating events

texts:
How do I set repeating events. If I have a dance show and it plays for three consecutive nights, how do I display that. If I put end date in (:duration), its says 3 days and 1 hour.

I what it to wright it 3 times within one channel entry.

Example:

Event Title

November 4, 2014, 8pm
 November 5, 2014, 8pm
 November 6, 2014, 8pm

Event Description

I am stuck .... I got everything else figured out, first time user.

Best,
Seeingis


texts: Conditional with if and ifelse not working

texts:
Every entry has one image {event_feature_image_01}, however, some entries have a second, third and forth image. I want to count backwards from the forth image {event_feature_image_04}. Every entry has one image. So that is the {if:else}.

I tried to put in 3 images using {if:else if} but Something is not right in the syntax  and I am not sure what it is.

{if event_feature_image_04} <img class="img-responsive osd-border" alt="Photo:{event_name}" src="{event_feature_image_04}" {if:elseif src="{event_feature_image_03}"} {if:else} src="{event_feature_image_01}" {/if}>

Thanks


texts: EE update 2.6 to 2.9 : during update cannot select language

texts: I am trying to update from 2.6. to 2.9 and when asked to select the language the select menu is empty.


texts: Why is my Safecracker form only visible to super-admins?

texts:
I built a safecracker form to allow users to post events to a Solspace calendar, however, for some reason, the actual form is only showing on the page when a superuser is logged in.  If anyone who is a regular member views the page, the form doesn't display.  I've looked at the source and everything is there EXCEPT what would be between the form tags (or the {exp:safecracker} tags.

To be clear, the page itself is visible to the appropriate user groups.  It's just the actual form that seems to be omitted if I attempt to view the page as a regular (logged in) user.

The reason for the safecracker form in the first place is because I found the Solspace calendar pre-fab form doesn't quite work... and if I'm logged in as superuser, the form I built works great! (which is making it that much more frustrating).

The form itself is quite simple, with the required fields set as hidden and some jquery magic to handle the formatting of the values.

  {exp:safecracker channel="calendar_events" return="home" include_jquery="no" safecracker_head="no"}

    <input type="hidden" name="calendar_id" value="23" />
    <input type="hidden" name="start_date[0]" id="startDate" value="" />
    <input type="hidden" name="end_date[0]" id="endDate" value="" />
    <input type="hidden" name="start_time[0]" id="startTime" value="" />
    <input type="hidden" name="end_time[0]" id="endTime" value="" />
    <input type="hidden" name="event_created_by" value="{member_id}" />

 ...

{/exp:safecracker}


texts: expressionengine does not display template page when logged out

texts:
in my project i have a products list page and when you click on each product you see the single project page, i have this structure in many projects and working fine, but in this project the single product page displays only when i'm logged in, very weird. i checked admin panel and couldn't find any option for template login or logout permission.
my project list url is mysite.com/projects and my single project page is mysite.com/project/project-1

i don't know what's the problem.


texts: Problem showing fields in grid channel fields

texts:
I have a strange problem and I think there is a bug in the platform (v2.9.2 - Build Date: 20141004 ), related to Grid field.

I'm trying to access more fields and one of this fields need to be accessed many times in the template for example:

{grid_name search:field_used_for_search="criteria"}
  something
  {grid_name:field1} ........
  {grid_name:field1}........
  {grid_name:field1}......
  {grid_name:field2}.........
  {grid_name:other_field}.........
  {grid_name:field3 status="Active"}
    {grid_name:field3:count}
    ......
  {/grid_name:field3}
  {grid_name:field1}
{/grid_name}

I added two new fields in channel fields for this Grid, because I need to add a new feature in website and when I tried to access those new fields I had a big surprise, the page displayed something like:

{grid_name search:field_used_for_search="criteria"}
  {grid_name:field3 status="Active"}

  {/grid_name:field3}
{/grid_name}

Let's presume that I want to to show a field (doesn't matter if is one of those added recently or olds) somewhere inside grid_name tag. I thought maybe is something with my new fields and I tried to access others (old ones) and is the same behavior. So I deleted some of the old recurrence from my template and I access other one and surprise, works.

The way that I access those fields is right. So if I delete for example two recurrence of {grid_name:field2} I can access those two fields added recently, but if I keep the old ones and I try to display all of them I get the previous error.

Do you have some suggestions ?

PS: The template is very large (320 full lines, without white lines), can be a problem related to this ?

Thanks,
Bobo


texts: Safecracker File client side validation options?

texts:
I'm trying to find the definitive way of validating whether a Safecracker File custom field has been filled in or not. The server side method using the Codeigniter validation class only semi works for me, and I'd much rather get client side validation working first anyway.

Has anyone found a reliable way of doing this? Ideally it'd be a validation library like parsley.js, but I can see that to use that you need to add data-validate="parsley" to the form element - something that isn't possible using Safecracker.

Any help much appreciated.

Jim


texts: Relationship field breaks window-height (jQuery) in Chrome

texts:
I can't figure this out. I have some simple javascript-code that uses the height of the window to do something. When I add a relationship-field to my code the window-height is wrong. It goes from 900px (for example) to 7000px (the whole document).

It's NOT about the added height (the added content is about 50x high), but suddenly jQuery seems to not understand the window-height anymore.

Even when I add a relationship-field tag as simple as this:

{home_projects}
  test
{/home_projects}

it fails. Weird thing is that Firefox doesn't have this issue. I'm also not getting any javascript-errors in the console.

Oh, btw, it's not the javascript function itself. The only thing I'm trying now is:

var w = $(window);
var h = w.height();
alert(h);

Adding the relationship-field code as written above breaks this code and says the window is about 9000px high. Removing it says the window is the height it should be. And again: only in Chrome.

Any thoughts? This is driving me crazy...


texts:
I've been struggling with static content and wanted some other opinions on how to best approach it.

Currently, I have a channel called Static Content where I, obviously, post all the "static" content for the site.  In the past, I've created a template for each page.  I'm trying to make my templates more DRY, so I'd like to avoid that if possible.  Most of the sections/pages are similar, but there are slight differences, so I'd like to have a template group for each main section.

My original idea was to create a template group for each section and then use some embeds to determine some of the unique section content. Basically something along these lines:

"about" template group index:

{header} {!--snippet --}
    {embed="embed/.sidebar" current="about" show_ad="y"}
    {embed="embed/.static-content"}
{footer} {!--snippet--}

.static-content embed:

{exp:channel:entries channel="static_content" url_title="{last_segment}" limit="1" require_entry="yes" dynamic="no" disable="categories|category_fields|member_data|pagination"}
    {if no_results}{redirect="404"}{/if}
    <h1>{title}</h1>

    {exp:allow_eecode}
        {static_copy}
    {/exp:allow_eecode}
{/exp:channel:entries}

This works really well except for the obvious. I can technically go to http://mysite.com/products/history and pull up the content that should really only appear at http://mysite.com/about/history. How do people usually avoid this problem?  Categories?  Add-Ons?  Pages module? Different channels for each section (I hope not)?

Any suggestions would be appreciated.


texts: Is there any way of switching the date around in the url? I currently have /2015-07/ for a month and /2015-07/02/ for a day. But it would be great if i could get UK date range eg: /02-07-2015/


texts: Stock Levels Disappear after adding to Side Cart

texts:
Seem to have something in-correct. As soon as I add a product to the side cart all stock levels disappear from the front end. So your unable to tell if any ticket stock levels of other tours are available.

I have 4 tours, each with an Adult and Child Ticket available with 10 stock each. Limit stock is ticked in the channel's field.

Here is what I have...

 {exp:store:product
  entry_id="{entry_id}"
 }

Tickets available:

Price:
            {if on_sale}
                {regular_price}

                {price}
                Save {you_save} ({you_save_percent}%)
            {if:else}
                {regular_price}
            {/if}

    {modifiers}

            {modifier_name}:
                {if modifier_type == 'var' OR modifier_type == 'var_single_sku'}
                        {modifier_options}
                                    <input type="radio" name="{modifier_input_name}" value="{option_id}" /> {option_name} {if price_mod_val} ({price_mod}) {/if}
                        {/modifier_options}
                {if:else}
                    <input type="text" id="{modifier_input_name}" name="{modifier_input_name}" value="" />
                {/if}
                {if modifier_instructions}
{modifier_instructions}
{/if}

    {/modifiers}

        Quantity:
        <input type="text" id="item_qty" name="item_qty" class="input-mini" value="{min_order_qty}" />

       <input type="submit" name="submit" value="Purchase Tickets" class="button expand" />

{/exp:store:product}


texts:
When embedding a template gets error message described in the image attached.. need an immediate help.. thank you

{html-head}
{global-stylesheets}
{js-header}
{main-nav}
{main-nav-2}
{html-head-end}

{embed="includes/main-nav-3"}
{breadcrumb}

{if last_segment == '{segment_1}'}
{exp:channel:entries channel="se" dynamic="yes"  url_title="solutions"}

        {title}

{body_content}

{/exp:channel:entries}

{if:else}

{exp:channel:entries channel="co" dynamic="yes"  url_title="{segment_2}" }
        {title}

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

{embed="includes/footer"}
{html-footer}
{js-footer}
{html-close}


texts:
EE 5.2.6

I'm trying to install the SuperSearch module and I'm getting an error.

SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes:

I'm not sure if this is a mysql setting or something I can change in a config file somewhere. I'm not experienced with this aspect of development at all.

In any case, if someone has an idea how to proceed on this I would really appreciate it.

Thanks.


texts: Extensions Manager returns "Internal Server Error"

texts:
An EE1 site that I developed many years ago was recently moved to a new server. I logged into the CP to do some work and everything seemed fine, but when I tried to pull up "Utilities -> Extensions Manager", I get an "Internal Server Error".

I FTP'd in, and everything seems to be in place, permissions correct, etc. Is there something specific that I should look for?


texts: php class should return JQ library single time when its calling multiple time in single template

texts:
i am using a php class that returns jquery library if the class calls multiple times on same page it should include that jquery library  single time .

it works if class called single times it works fine but if i call it multiple times it shows js conflict due to multiple times added of jquery library.

how can i make it sigle time include only whenever the class called multiple times....


texts: Channel Field Additional Options not Showing in 2.7

texts:
I have upgraded from 2.5.5 to 2.7. There is a problem that I don’t seem to understand.

When I tried picking any fieldtype for any field, before upgrading, normally JS would show more options at the bottom. This has been the standard behavior ever since I have used EE.

In this case, nothing shows. I looked at my firebug console and I saw this error

TypeError: d.ee_focus is not a function
...ocus(b.find("ul>li>a").eq(0)))},onEscape:function(a){a=c(a.target).parent();EE.n...

I looked at what file caused this and it was

admin.php?S=d3d3f2b7c7030e79c48804e28d9b425b&D=cp&C=javascript&M=combo_load&ui=core,widget,mouse,position,sortable,dialog&plugin=ee_interact.event,ee_notice,ee_txtarea,tablesorter,ee_toggle_all,ee_navigation&file=json2,underscore,cp/global_start&v=1355999354

I disabled Javascript and sure enough, it showed additional options, although in a very messy way.

How do you solve this Javascript problem?


texts: How do you get your modifiers to be on your paypal invoice?

texts:
When a purchase is made with exp-resso Store and the payment is sent to paypal the customer and company both receive an email receipt from paypal.

Problem is the paypal receipt does not contain the product modifiers.  HOw do I get these added to the paypal invoice/receipt?


texts:
Is there any way to add custom Canonical link, title, meta description and keywords
with any addon in EE?


texts:
I'm going down the classic route of 2 sites within 1 install for a client who has a multi-lingual site with Transcribe.

For those not familiar with that approach, here's the background. What we're doing though is routing all foreign language content through different domains.

This approach kind of works but if, for example, I edit the home page template, the primary domain gets updated but the secondary doesn't.

I've narrowed this down to the template path. If I add

$assign_to_config['tmpl_file_basepath'] = '/Users/steven/Sites/ee/multilang.dev/public/assets/templates';

to index.php on the secondary domain, it works as I'd expect. I edit the home page template and both sites update. My issue though is that the template path will change depending on the server configuration.

In the main config file, we're setting

$base_path = $_SERVER['DOCUMENT_ROOT'];
$config['tmpl_file_basepath']   = $base_path . "/../_templates/";

Any suggestions on how I can change the config to work across servers?


texts: Entry date field not showing up correctly

texts:
<h7>{entry_date format="%F %m %Y"}</h7>

This is the code I have for my entries, I want to display the date as to when content was posted. I have 2 videos up right now, their actual dates are Feb 17th and Feb 25th. However with the above code, they both show up on my website as Feb 2nd. So its not a Daylight Savings Time (DST) issue.

I even tried to change entry in the code above to edit and I had the same results. Anyone have an idea of something I can try to get it to display the correct date of entry? Thanks in advance, I appreciate it!


texts: expresso Store: notify admin when an user make an order or payment

texts:
Is it possible with store to send an email to an admin , or another member, or maybe an email, when the user make an order or a payment?

mx notify control doesn't support store

thanks in advance


texts:
The reason for this question is that I was running EE v2.3 which did not have ipv6 support. So users with those ip address where given the ip address of 0.0.0.0

I have now upgraded to EE v2.5 which has ipv6 support.

So I want to know are those members with ip addresses of 0.0.0.0 going to be able to use the site as a member now? Is their ip address going to be updated?

If not, what are my options? Would see strange if a users IP address is set once and never updated?


texts: How can I use Expresso Store Search within dropdowns?

texts:
Is there a way to create the following menu with Expresso Store search tag. I can't seem to get my head around how to do this. I really need a simple way to start filtering products. Very confused.

<select name="range:regular_price">
    <option value="">All</option>
    <option value=";99">$0.00 - $99.99</option>
    <option value="100;199">$100.00 - $199.99</option>
    <option value="200;399">$200.00 - $399.99</option>
    <option value="400;799">$400.00 - $799.99</option>
    <option value="800;">$800.00 and over</option>
</select>

{exp:store:search channel="products" search:price:min="0" search:price:max="99"}

Hi folks. I'm so stinken confused with this. Here's an image of what I'm trying to do with the Expresso Store module. I really want to have a dropdown menu to filter results. I would love it to refresh on the same page. I would even be OK if it used a submit button for the refresh. Is there any easy way to do this. I apologize for my lack of knowledge. Really struggling ;(


texts: Liquibase A Good Replacement for Krasimir Method of Database Syncing?

texts:
Like everyone, a major headache for us has been keeping databases between development and production servers in sync. We had implemented Krasimir's method to great success.

http://krasimirtsonev.com/blog/article/Deploying-ExpressionEngine-based-site

But after upgrading EE to 2.8.x it stopped working. We haven't really had time to troubleshoot and I don't even know how popular this solution was but we haven't had any luck Googling quick answers.

I ran across Liquibase earlier today and it seems like a more generalized implementation of the same idea.

Anyone used Liquibase with EE? Any reason to think it might not be a good solution? Alternatively, anyone had luck fixing Krasimir's method?

Thanks.


texts: Inside exp:channel:entries PHP Variable not working

texts:
From so long facing this issue, don't getting the result if I pass the php variable inside exp:channel's as paramater, I have mentioned the code below.

$entryId = "1";
$entryId = "1|2|3";

{exp:channel:entries entry_id='<?=$entryId?>'}

{title}

    {paginate}

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

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

I would love to allow both of them, One of these atleast. But as of now in my case none of these is working. it didnt accept PHP variable, and returns null or blank. If I write directly like this
entry_id="1" OR entry_id="1|2|3", that will work perfect. and returns the entries and I've print the title of entry, So got the results. And Yes I have allow PHP in my template from preference.
Can anybody find what I am making mistake in this..??

Please to help me, its such a irritating issue for me now..
I am open make any kind of changes.
All of suggestions will be allowed..
Thanks in Advance

Update :

Sir, Here I am not passing the segment, its a php form submit. So, I got the data in php $_POST Variable, I have used that in sql query[i.e. simple basic code like mysql_query and mysql_fetch_array]. I used this code, becuase of the same problem, I am not getting PHP variable inside exp:channel. Otherwise I like to use that {exp:query sql="..."}. Now what should I do.?? In actual its a result of search criteria. In form I have lots of fields with check box, whatever checkbox are checked that will be pass in from post, N here I got the result in $_POST variable[those are channel's fields], and need to pass that $_POST data and then what result i got on the base of channel's fields that is entries that will be display.


texts: Relationship, Stash and Channel Images outputs same image

texts:
I'm working on EE 2.8.1, Stash 2.5.2 and ChannelImages 5.4.15.

I'm new to Stash. In a channel entry with limit 1 if've got the following:

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

            {portfolio_related_home}
                {stash:item_title}{portfolio_related_home:title}{/stash:item_title}
                {stash:item_id}{portfolio_related_home:count}{/stash:item_id}

                {portfolio_related_home:portfolio_images limit="3" prefix="ci"}
                {if ci:count == '1'}
                     {stash:img1{portfolio_related_home:count}}{ci:url:medium}{/stash:img1{portfolio_related_home:count}}
                {/if}
                {if ci:count == '2'}
                    {stash:img2{portfolio_related_home:count}}{ci:url:small}{/stash:img2{portfolio_related_home:count}}
                {/if}
                {if ci:count == '3'}
                    {stash:img3{portfolio_related_home:count}}{ci:url:small}{/stash:img3{portfolio_related_home:count}}
                {/if}
                {/portfolio_related_home:portfolio_images}

            {/portfolio_related_home}
{/exp:stash:set_list}

I know that it would be best to use a nested list for the portfolio images. But I only need three images and they need to be parsed in different order per related entry.
Portfolio_related_home is the relationship field. portfolio_images is the ChannelImages field.

When I output stash. It almost works. The only thing is that the images per related entry are the same. So I'm getting three images witch are the same. The ci:count works but when I output ci:id or ci:url they keep the same.

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

                {if item_id <> '2'}

{item_title}

{item_content}

                {if:else}

{item_title}

{item_content}

                {/if}

{/exp:stash:get_list}

And the final HTML:

        /uploads/images/18/img02__small.jpg">
        /uploads/images/18/img02__small.jpg">

/uploads/images/18/img02__large.jpg

Title

/uploads/images/19/img03__large.jpg

Title 2

        /uploads/images/19/img03__small.jpg
        /uploads/images/19/img03__small.jpg

I must be doing something wrong.  Or there must be a better way to do this. I hope someone can help me out?

Tnx


texts: Channel form submission decryption error

texts:
I'm having an issue with EE Channel form, when I post I just get the following error:

The form you submitted contained the following errors
Decryption of form settings failed.
Return to Previous Page

The code I use to display and submit the form is literally taken from the docs, replacing with the relevant channel name with no other changes.

I've gone through all my sites config in the admin area and even disabled Process form data in Secure Mode? just to test it out, but still received the same error.

I've searched as far as I can think on Google and the EE forums with no luck, if anyone could shed some light i'd really appreciate it!

EE Version : v2.7.3

Edit

The code I use to generate the channel form is:

{exp:channel:form channel="exhibitors" return="success" entry_id="{embed:entry}" author_only="yes" }
  {!-- all field tags --}
{/exp:channel:form}

I ran a clean install of expression engine today and migrated templates etc, the channel form was working perfectly for a while and now suddenly it's happening again.

When I've  looked a bit more into the source this is whats getting generated at the top:

<form id="publishForm" method="post" action="http://localhost/handbook/company_profile?
RET=http%3A%2F%2Flocalhost%2Fhandbook%2Fcompany_profile&amp;URI=handbook%2Fcompany_profile&amp;
XID=&amp;return_url=handbook%2Fcompany_profile &amp;author_id=1&amp;channel_id=1&amp;
entry_id=0&amp;ACT=7&amp;meta=DLauS6rZ7%2BgnIQ%2Bt5HKmwk4ufzbKqkP..etc
enctype="multipart/form-data">

<div class="hiddenFields">
 <input type="hidden" name="RET"  value="http://localhost/handbook/company_profile">
 <input type="hidden" name="URI" value="handbook/company_profile">
 <input type="hidden" name="XID" value="0d2db0442daeaf6dc776353853a581f71ed14de6">
 <input type="hidden" name="return_url" value="handbook/company_profile">
 <input type="hidden" name="author_id" value="1">
 <input type="hidden" name="channel_id" value="1">
 <input type="hidden" name="entry_id" value="0">
 <input type="hidden" name="ACT" value="7">
 <input type="hidden" name="meta" value="DLauS6rZ7+gnIQ+t5HKmwk4ufzbKqkPEXm1hjiftiSGFz..etc">

If I inspect element in chrome, remove everything after the company_profile? part and post the form, it works fine, but for some reason its adding all the hidden inputs onto the action and then I assume when it's posted its all getting added again and failing? :/ how or why it decided to suddenly do this I don't know...


texts: How can I remove thousands of spam members on a non-member site?

texts: My first EE 1.6.8 site is coming back to haunt me. The site crashed and burned the other day. Took a look at the members in the DB and there's about 78000 spam members in there. I have access to PHPAdmin for the DB, but I don't know what I'm doing in there. Any help?


texts:
I'm having issues getting pagination to work, using the same settings I usually do but paging doesn't change the content / listed entries.

I've stripped down my template for testing and currently have this:

    {exp:channel:entries
        channel="blog_entries"
        limit="12"
        orderby="date"
        sort="desc"
        paginate="top"
        paginate_base="blog/"
        dynamic="no"
    }

            {title}
            {entry_date format="%m.%d.%y"}

        {paginate}
{pagination_links}
{/paginate}

    {/exp:channel:entries}

I tried disabling extensions to test if any were interfering but then I get a 404 on pagination URLs.

Also, this part is really odd, but one minute it's displaying posts by date in descending order, and the latest post shows first and then I'll refresh as I'm testing, and it starts from a different date, as if it's lost a bunch of posts.

This one is correct:

And this is what I randomly get:

**Note that yes, these are both the same page, page 1.

EE v2.7.3 Build 20131210

Addons I have installed:

Any ideas what could be going on here? Would any of the extensions I have installed be causing this issue?


texts: Calendar:Month_List to display only months that contain events

texts:
I am using the following code to display an archived list of months from my calendar with clickable links.

    {exp:calendar:month_list date_range_start="{today}"}

                {month format="%F, %Y"}

    {/exp:calendar:month_list}

I only want to display months that have events in them. Does anyone know how this can be done?


texts: Categories not selected correctly with if statements

texts:
Currently I'm trying to use if statements to determine what category to filter on. I'm using a combination of freebie and embed.
However, I can't seem to find the right syntax to filter correctly. I have tried different orders for the if statements.

Broken:
    {exp:channel:entrieschannel="resources" {if freebie_break_1}category='{freebie_break_1}'{if:else embed:category}category='{embed:category}'{/if}   {if freebie_break_2}category2="{freebie_break_2}"{/if}... normal channel params}

Works:

{if embed:category}category='{embed:category}'{/if}

Can someone let me know if category selection simply won't allow me to have this syntax?


texts: Creating entry with channel entries api, redirecting to empty view page

texts:
I am on EE 2.11.2, and I am using the Channel Entries API to create a new channel entry after a user submits a form on the front-end. It saves the entry just fine, but when I redirect the user to the view template for that new entry, most of the time, the page is blank.

If I refresh the page, it displays the entry. Also, if I sleep() in PHP for a bit before redirecting, it seems to show the entry rather than the blank page more often.

Is there a way to get around this? Am I doing something wrong?


texts: Understanding Channel Field Groups/Channel Fields/Status Groups

texts:
What is the difference between channel field groups and channel fields? Is there a difference?

Secondly, how would you explain what a status group to someone who is a novice? I would like to teach this content to someone eventually.

I have successfully used them all on a practice site here.

I am just trying to put my experience into clear words.


texts: {events} variable pair within {exp:calendar:cal} not working the same as in {exp:calendar:events}?

texts:
I have a scenario where I need to access conditionals that work in the {exp:calendar:events} tag, eg this works:

{exp:calendar:events}
    {title} {if event_never_ends}(never ends){/if}
{/exp:calendar:events}

but I need them to work within the {exp:calendar:cal} in order to maintain the chronological order.  I though the {events} variable pair was supposed to allow the same conditionals/variable pairs, but this doesn't work (nor does the {rules} variable pair.  Is there a special syntax or something I need to use to get something like this to work:

{exp:calendar:cal}
  {events}
    {event_title} {if event_never_ends}(never ends){/if}
  {/events}
{/exp:calendar:cal}

Thanks in advance!


texts: Need a Hack: Channel Entries Search Parameter

texts:
I need to display entries by searching a custom field like so:

{exp:channel:entries channel="my_channel" search:my_field="#{segment_2}\W" limit="20"}

Note the # sign. I'm specifically searching for hashtags.

If I leave off the \W it works just fine.  But it does not always return the exact words – (eg. #cat also returns #catnap) – exactly as you'd expect.

So I really need that whole word feature to work.

I believe I've traced the breaking point down to the code below (approx. line 1145-1155 in mod.channel.php):

elseif (strpos($term, '\W') !== FALSE) // full word only, no partial matches
    {
    // Note: MySQL's nutty POSIX regex word boundary is [[:>:]]
    $term = '([[:<:]]|^)'.preg_quote(str_replace('\W', '', $term)).'([[:>:]]|$)';

    $fields_sql .= ' (wd.site_id=' . $site_id
    . ' AND wd.field_id_' . $this->cfields[$site_id][$field_name] . ' ' . $not
    . ' REGEXP "' . $this->EE->db->escape_str($term).'") '
    . $andor;
}

Someone correct me if I'm wrong, but I think that REGEXP escape_str($term) bit is breaking it.

So I'm looking for a workaround.  It would be best not to hack the code directly (of course), but this is the only time that function is being used on the site...  So I'm not totally opposed to hacking a fix right there.

Any ideas?


texts: EE 90 second PHP timeout... where does it live?

texts:
We're running a long, involved template/script (to store the results in a manual cache, of course) and we get:

  Fatal error: Maximum execution time of 90 seconds exceeded in system/expressionengine/libraries/Template.php on line 1112

The thing is, I have ini_set("max_execution_time", "3000"); in the script we're running, and nowhere else in EE can I find max_execution_time set to anything else, so... why/where is it being set to 90 seconds?


texts: Possible to increase password expiration link from 24 hours?

texts:
I'm using EE 2.7.3 and would like to know if it's possible to increase the default expiration time (24 hours) on the outgoing link in the reset password routine.

Any help much appreciated.

Jim


texts: Playa not playing with Zurb Foundation css

texts:
I'm getting a conflict when using Playa with Zurb Foundation.

I have the playa field in a exp:channel:form tag and it works fine in the current site, which doesn't use foundation, but in the responsive site that I'm building using Zurb Foundation framework, Playa just seems to hang the page load.

Taking the Playa field out, the page loads and behaves fine.

Taking the foundation.css out the page loads and behaves fine.

Putting them together and everything slows down.

Anyone come across this ?

Andy D


texts: Expresso Store: 2Checkout gives Invalid key error

texts:
i have a problem with 2checkout gateway. I get "Invalid key" error. What is causing that?
I entered correctly the Account number and secret word in settings. Test mode is "false" in Store settings. Demo setting is "On" in 2co settings page.

No matter witch setting i try:

i get Invalid key error.

I have EE 2.7.1, Store 2.0.6, PHP 5.3.27

Thanks


texts:
Whats the deal to moving a site to a new server? I saved all of my templates as files. And I have datagrab so I can import the entries. I've also grabbed all the plugins.

But do I have to recreate the whole internal structure of the site (channels, fields, etc.)? If so OMG...


texts:
I'm adding Store to a site with a channel of existing products. Store installed correctly and works. I was getting this error when trying to add a product to my cart:

The form you submitted contained the following errors
Store: Can't find product (entry ID: 8238, modifiers [])

I figured out that if I add price to a product and save it in the Control Panel, it will allow me to add to cart. Since there are over 1000 products, I ran a sql to insert a row for each product entry_id into exp_store_products with a price of 0 and the other columns default, as this is the data that appeared to change when I added a price and saved the first product.

I also added [store] to the custom Store field for the products channel, as that is what I saw in the products I had saved already.

I still get the same error with all products, though in the Control Panel edit page for the entries the price shows up. Unless I save each product, its not working. I looked for some array stored somewhere, a cache file, etc. of all the entries that Store considers products, but don't see one.

What else can I do in bulk to get all these products to add to the cart? I don't want to click save on 1000 products in the Control Panel.


texts:
My company currently uses EE2 v.2.1.0, while the current version and User Guide is at 2.5.5. I'm looking for the 2.1.0 User Guide to better understand the older version of the {pagination_links} tag, which seems to fail as a paired tag, and older pagination API in general.

I've Googled and searched EllisLab's site for access to previous versions but have not uncovered any links. Does anyone know if and where this information might be available?


texts:
I'm having an issue with Charge (v. 1.9.2) running on EE (v. 2.10.1). Whenever I try to process a test payment, I get the following error:

Fatal error: Call to undefined method InvalidArgumentException::getJsonBody() in /system/expressionengine/third_party/charge/models/charge_stripe_model.php on line 894


texts: Configure to allow EE site to be accessed from more than one domain?

texts:
Is there a way to configure EE to allow it to be accessed from more than one URL?  Our site has some multilingual capabilities, and we would like to be able to offer users in some areas the ability to access the site from domains that are appropriate for the language.

We are having problems when the Site URL and Themes URL are not based off the same FQDN.

If we put the FQDN in the "Site URL" field, the site overwrites the inbound URL with the site URL on the first click within the site.

If we replace the FQDN with "/" the site works OK for browsing and preserves the inbound DN in the URL.  However resources accessed via the Themes URL setting (e.g. Font Files) fail as browser fail to load them due to 'cross-origin resource sharing' preferences.

If we replace the Themes URL with "/themes" we get various page-link 'not found' errors when trying to access pages via category based links.

Is there an established solution to this issue? I cannot believe we are the first to encounter it...

Thanks a lot in advance for any / all help.


texts: Low search and custome group templates variable

texts:
I have a multilingual site, with one channel and multiple fields for different languages. The site has 20+ different channels. Everything works ok, except the search results page for low_search in 2. language.

The problem is with the creation of entry urls for search results (there are several different channels in serach results)

In other templates i generate the url with code

{preload_replace:my_template_group="news/more/"}
....

    {title-en}

I tried to find out in wich channel the result entry is, and then store his group name in preload_replace var. But that is not working properly. Every entry gets the group name of the first item in IF. The used code:

{exp:low_search:results
    collection_lang="en"
    channel="o-nama|vijesti|kontakt"
    query="{segment_2}"
    limit="10"
    paginate="bottom"
    keywords:mode="all"
    keywords:loose="right"
    status="open|uvodni"
    require_query="yes"
}
{if low_search_no_results}

        No results found for the search term

{/if}

{if channel_name == "kontakt"} {preload_replace:my_template_group="contact/"}{/if}
{if channel_name == "o-nama"} {preload_replace:my_template_group="about-us/"}{/if}
{if channel_name == "vijesti"} {preload_replace:my_template_group="news/more/"}{/if}

        {title-en}

{/exp:low_search:results}

I tried the if with channel_name ,channel_id, channel_short_name...I always get the same result (my_template_group=contact)

It would be a good idea to store the group name in a variable, as I use the generated url in multiple places (img href, h2 title...)


texts: CartThrob price field modifier to minus some amount from cart total

texts:
I am having issue in developing cartThrob tax plugin with fieldtype

Tax plugin have this fields.

I have created a field type that will call that tax settings and populates here.

When I view in frontend everything is good except cart total. In not include in price and add tax to actual price.

It should be $105 where $100 is price (With tax of $17.36) and $5 shipping

Basically I am looking for a solution to deduct price from cart so I can manually just minus tax amount from subtotal

I tried hook cart_total_start but it won’t even call
Don’t know why. Is there any way to call hook in CartThrob?


texts: Let's say I'm making a site in EE and I want to specify a URL on a specific page. As a former wordpress dev, I did that with ease, how would I do that with EE?


texts:
I recently upgraded a client site from 2.5.5 to 2.6.1 and upgraded Freeform to version 4.0.12 in the process the Captcha on all the freeform contact forms generates an error even after careful entry:

  You must submit the word that appears in the image

I contacted Solspace and they could not replicate the problem or help me fix it, so I am looking for something I may have overlooked.

Here is the code I am using:

For security, please enter in the word you see.

{freeform:captcha}

<input style="border-color:#ccc;" type="text" name="captcha" size="18" class="text_input" />

I checked the path to the Captcha images and the folder permissions are set to 777. It is required of logged in members.

Is there anything else I may have overlooked in this?

Thanks!

P.S. Here is the link to the Solspace forum on this topic: http://www.solspace.com/forums/viewthread/17083/. It is marked as resolved, but the problem still exists. They just ran out of ideas.


texts:
I have the below code to display the tags that are returned inside of low_search:results.

{exp:low_search:results query="{segment_3}" limit="100" orderby="title" sort="asc" status="not closed" disable="category_fields|member_data" paginate="bottom" collection="library"}

    {if low_search_keywords}
        Keyword searched for {low_search_keywords}.

    {/if}

    {if low_search_category}
        {exp:channel:categories show="{low_search_category}" style="linear"}
          Type searched for: {category_name}.
        {/exp:channel:categories}

    {/if}

    {if low_search_tag_id}
        Tag searched for:
        {exp:tag:cloud tag_id="{low_search_tag_id}"}
             {tag}{if count != total_results},&nbsp;{/if}
        {/exp:tag:cloud}

    {/if}

    Total results: {absolute_results}.

{/exp:low_search:results}

But instead of returning the total number of tags, the total_results variable is returning the total number of search results.

Is there any way to remedy this? Thank you.


texts: How do I solve this error: Unable to load requested publish tab file: tab.tag.php

texts:
I just upgraded from EE 2 to EE 3 and in the process removed Solspace Tag from the configuration by uninstalling it in EE 2.

Now however while running EE 3.5.7, when I try to edit any entries in the control panel I get the following error:

  Error: Unable to load requested publish tab file: tab.tag.php

Since I no longer need Solspace Tag I need to know how to resolve this issue without having to purchase the add-on.

Thanks.


texts: Remove and Direct all traffic through index.php from .htaccess to web.config in IIS10

texts:
Could someone please help me convert the following .htaccess file to web.config?

<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]

I tried to use Rewrite Module to translate it but it fails for the following:

RewriteBase / This is not supported in IIS
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L] IIS also fails to translate this.


texts: Reason why site_url would work in template, but not current_url?

texts:
I have the following code using the {site_url} variable, like so:

However, when I changed the variable to {current_url}, it doesn't work.

Any idea why one standard global variable would work and not the other?

Thanks!


texts: Matching a Low Variable matrix field with custom channel field

texts:
Hopefully this will be easy to sort.

One of my custom channel fields is a select dropdown.

I have created a low variable matrix field, which contains two columns.

Column 1 is "Name" & Column 2 is "Description"

When displaying the single entry, I want it to show the name & description in my markup, based on what was selected in the custom field.

Not quite sure how to do this.

{exp:low_variables:pair var="lv_custom"}

Random text to display {name}

{description}

{/exp:low_variables:pair}

Thats my starting point, but I need to somehow make it match the Name against the name that is selected in the custom field.

Any ideas? Thanks.

or I'm open to a better way of doing it!

EDIT
I've scrapped it for now. Think I was over complicating things.

Gone with this instead in my within my channel entries tag...

Random Text{custom_field}

{if custom_field =="Option One"}
Description One.
{/if}
{if custom_field =="Option Two"}
Description Two
{/if}
{if custom_field =="Option Three"}
Description Three
{/if}

Ideally I wanted a way to control the Descriptions within the CP, as opposed to hard coding it, but this works fine.

Thanks!


texts:
I am wondering if there is a way to dynamically call an ExpressionEngine home path. For instance, in Wordpress they use <?php echo home_url(); ?>, is there an equivalent for ExpressionEngine? I am wanting to link to my stylesheets without putting the absolute static path into the href.

Thanks in advance!


texts: TextArea field set to Auto br / isn't adding break point tag

texts: I have a field with formatting set to Auto br /. If I add a line of content, hit Enter, and add another line it appears it would work. But on the front end the break isn't there. If I edit that entry again it still appears as two lines in the field. But It appears on one line on the front end. Any ideas? possible bug? Thanks for any info!


texts: Freeform Next - Questions About Dynamic Notification Recipients

texts:
I have a job application form set up that will need to alert a few people by default (owner and admin assistant).  I have those set up in the form settings, under Notify -> Admin Recipients.  The job recruiter (which varies among the jobs) also needs to be notified.  So I'd like to set this in the template using

dynamic_notification_recipients="{recruiter_email}"

and set my template

dynamic_notification_template="test.html"

My questions:

Setting it up this way, will both the "Admin Recipients" (those to receive it by default) and the recruiter be notified?
Is the template that I need to refer to one that I set up via the "Email Templates" settings (similar to the ones I did under Formatting Templates)?
Does just the recruiter receive the email using the TEST template, while the "Admin Recipients" receive the default notification that is referenced in the form settings?  Or does this override that setting, and everyone get an email using the TEST template?


texts: How to have multiple data table layouts on a CP page?

texts:
I'm trying to figure out how to have more than 1 data table (filtering AJAX paginating table like the entry view in the Control Panel) on a page but there's a problem; the div used for pagination is hard coded in the JS. This means that the pagination icons all get stacked onto a single table and becomes unusable.

I've taken a look at the Table class and using a data source but am unclear if that will allow for multiple data tables.

Any ideas?


texts:
I'm trying to display a phrase based on the language_code
This is the code:

{exp:channel:entries
    channel="offerte"
    disable="categories|category_fields|member_data|pagination|trackbacks"
    dynamic="no"
}

{if language_code="it"}
    {if no_results}

Nessuna offerta al momento

    {/if}
{/if}

{if language_code="en"}
    {if no_results}

No offers at the moment

    {/if}
{/if}

{title}

{descrizione}

{/exp:channel:entries}

the result is that it is shown only the phrase with language_code it , even if language_code is en

how can i resolve it? Thanks


texts: combining two sets of custom field groups

texts:
Ive have a site running for a while with two channels each with there own custom field group.

I now find that I need to be able to clone entries from each channel using mx cloner but because each channel has a different field group I cannot assign the new cloned entry to the other channel.

Each channel have 24 fields and approx 100 entries so I don't want to have to create a new shared field group and remake 200 odd entries.

I there a way to combine the two custom field groups into one group?


texts: How do I change the way dates are displayed in channel forms and remove the time

texts:
I need to change the way the date displays on the front end, specifically in channel form date fields.

Currently it’s

18-2-16 2:11 PM

I’d be OK with this if it just didn’t have the time displayed. It’s really unhelpful to have the time displayed here, and all of the users so far that have used the system we’ve built have been confused by this.

The field is asking for a date, but the current time is appended, unnecessarily.

Is there some way to change the field to display more like:

Wednesday, 3 February 2016

or at least just remove the time?

Just to clarify I am not trying to use the date format output tag:

{my_date format=""}

as this OUTPUTS the date only

I am trying to change the way the native date picker INSERTS the date to a channel form field.

Thanks.


texts: Using Solspace Form to add users to a mailing list

texts:
I trying to get solspace form to add users to a mailing list, but no cigar. using the latest free version. any help is appreciated.

{exp:freeform:form form_name="mailing_list" mailinglist="blog" return="contact/thank_you" notify="xx@gmail.com" required="email"}
<form action="" id="contactForm" type="post">
    <input type="email" name="blog[2]" value="" data-msg-required="Please enter your email address."  maxlength="100" class="form-control" id="email">

    <input type="submit" value="Send Message">

{/exp:freeform:form}


texts: How can I strip  tags from entry content, but only if it's wrapped around a ?

texts: On occasion a <figure> tag will make it through WYGWAM with a <p> wrapped around it which breaks my layout (and is incorrect formatting anyway). Can I remove just the <p> tags that appear around specific elements? If so, how?


texts: Structure nav tag changing depth when on page of parent

texts:
This is confusing and not sure why it is happening. I do not commonly use Structure, so apologize in advance if this is a duh!

I have this tag:

{exp:structure:nav add_level_classes='yes' show_depth='2' start_from="shareholders"}

When on any page of the site it shows 2 levels. However when in the actual section that this nav is showing the links to, I get depth of 3. It is almost appears it is pulling them dynamically because if you click on one of those pages you get only that item in the nav.

I didn't see anything in the docs about dynamic navs...

Structure version is: 3.3.8 EE version is: 2.5.5

Thanks.


texts: MSM delete site 500 error if it has entries

texts:
EE v2.7.2 Build Date: 20131008

MSM 2.1.6

When I try to delete a site from MSM, I get a 500 Server error. However, if I manually delete everything, then delete the site, it works. I have tested all stages of a site build to find that this only happens if I have an entry in the site. There doesn't have to be anything in regards to templates, channel field groups, channel fields, etc...

To reproduce this all I have to do is create a new site, add a channel, create entry, (entry has nothing but a name and url), try to delete... 500

Has anyone had this happen? What could be causing it? I looked at the server records, but they told me nothing. It's just happening at the POST on confirmation...

2013-10-28 18:06:42 W3SVC3 [PRIVATE] POST /index.php S=af6796b5075bdafba2d73bf3136677cb5ebf5d39&D=cp&C=sites&M=delete_site 80 - [PRIVATE] HTTP/1.1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/30.0.1599.101+Safari/537.36 - http://adminDomain/index.php?S=af6796b5075bdafba2d73bf3136677cb5ebf5d39&D=cp&C=sites&M=site_delete_confirm&site_id=106 adminDomain 500 0 0 1405 787 1201

* UPDATE *
I have traced it to this portion in the sites.php file (line 1972)

// Just like a gossipy so-and-so, we will now destroy relationships! Category post is also toast.
if (count($entries) > 0)
{
    // delete leftovers in category_posts
    $this->db->where_in('entry_id', $entries);
    $this->db->delete('category_posts');

    {!-- 1972 --}
    // delete parents
    $this->db->where_in('parent_id', $entries);
    $this->db->delete('relationships');

    // are there children?
    $this->db->select('relationship_id');
    $this->db->where_in('child_id', $entries);
    $child_results = $this->db->get('relationships');

    if ($child_results->num_rows() > 0)
    {
        // gather related fields
        $this->db->select('field_id');
        $this->db->where('field_type', 'relationship');
        $fquery = $this->db->get('channel_fields');

        // We have children, so we need to do a bit of housekeeping
        // so parent entries don't continue to try to reference them
        $cids = array();

        foreach ($child_results->result_array() as $row)
        {
            $cids[] = $row['relationship_id'];
        }

        foreach($fquery->result_array() as $row)
        {
        $this->db->where_in('field_id_'.$row['field_id'], $cids);
        $this->db->update('channel_data', array('field_id_'.$row['field_id'] => 0));
        }
    }

    // aaaand delete
    $this->db->where_in('child_id', $entries);
    $this->db->delete('relationships');
}

* UPDATE *

So I ported this to Apache and was given a 'clear' error:

A Database Error Occurred
Error Number: 1146

Table 'db.exp_relationships' doesn't exist

DELETE FROM `exp_relationships` WHERE `parent_id` IN ('217')

Filename: C:\TEST-ENV\DOMAIN\system\codeigniter\system\database\DB_driver.php

Line Number: 330


texts: Set control panel site link to open in new window

texts:
Is there a way to set the upper right hand website link in the CP to open in a new window or tab?

Thanks!


texts: Adding forms to individual entries where only one or two questions change

texts:
A client has requested setting up a channel where they can add forms associated with each entry.

At first Forms from DevDemon looked like a good fit as it has a fieldtype to enable this, but in my case, the forms will be nearly the same for every entry except for one or two questions. For example, every form will capture name, email and phone, but then there will be one or two questions unique to that entry.

So really I need to either be able to save a form for reuse for each entry which can then be modified to include the unique questions, or have a way of defining certain default inputs that apply to every form, and then when the client creates a new form in the CP, the new questions get added to the default set.

Currently it doesn't seem like Forms can do this (saved forms is a feature that may be introduced later) so I'm wondering if there's a way to do this with one of the other forms add-ons?

Or maybe another creative solution?


texts: How to list all members and their custom member fields?

texts: I'm trying to figure out how to have a page that lists all members with basic fields like email, screen_name and then all the other custom member fields I created.


texts: CartThrob - how are orders and members linked?

texts:
Can anyone please help me to determine how CartThrob orders are linked to site members?

We are creating a custom data feed between the site and Sage for a particular project, however we are struggling to pinpoint the exact link(s) between the 3 DB tables below?

Orders - exp_cartthrob_order_items

Customers - exp_member_data

Products - exp_channel_data

Thanks.


texts:
I am very new to Expression Engine .

I have created a module , i want to know how do i load/run it in the current template .

I want to add some custom javascript to the front end website , and i know that i have to use

$this->EE->cp->add_to_head('myscript');
or any other function

But i don't know where should i call this function . I tried to call it in the mod.my_module.php in construct function but nothing happened.

Is there something i am missing ?


texts: Need to prove site-ownership to google.com/webmaster, where to upload their file?

texts:
In preparation for changing domain names, I first have to prove ownership to the  google Webmaster gods. To do this, they ask that you upload a specially crafted .html page to your server, then visit it in your browser. So, the html file is named something like google[randomHashedTag].html. So I upload it in to the public_html folder on the webserver, and go to www.ourdomain.com/google[randomHashedTag].html as requested... and it fails out completely.
Possible approaches (which I have NOT tried... I figured asking experts was better than mucking up my web server!)

Edit the html file in something like Sublime Text, and copy and paste the contents into a new page WITHIN EE.
Try to upload the file into other random, but less "obvious" seeming places like the Public_HTML folder...
Ask you folks.

Very clearly, I went option three. I assume I'm missing something really simple. Google offers other ways to approach this problem (different ways of proving ownership), but now I really want to figure out if you can even upload a pre-built html file and have it somehow interact with the EE site. Thanks!

Oh yeah... due to forces beyond my control, we're still running EE 1.7.1. :-/

Note, a similar (nay, identical?) problem was posted and marked Off Topic, with the suggestion to just ftp the page to the webserver. I've done that, and it doesn't load, so please provide more of an answer before you turn me to n00bhood, where I clearly belong. :D


texts: CartThrob {if error:your_field} conditional not working for item_options

texts:
Trying to use CartThrobs Inline Errors within a add_to_cart_form to validate a simple form with two fields. For the price field, the validation works, but for the item_options[invoice_number] it does not. Here is the code for the form and both fields.

    {exp:cartthrob:add_to_cart_form
        return="/portal/checkout/" secure_return="no"
        on_the_fly="true" allow_user_price="yes"
        title="Invoice Payment" quantity="1"
        error_handling="inline"
        rules:item_options[invoice_number]="required|is_numeric"
        rules:price="required|is_numeric"
        shipping_exempt="yes" tax_exempt="yes"
        }

                {if error:item_options[invoice_number]}{/if}
                Invoice #
                <input type="text" name="item_options[invoice_number]" class="textinput required" value="" />
                {if error:item_options[invoice_number]}
Enter a value.
{/if}

                {if error:price}{/if}
                Amount
                <input type="text" name="price" data-symbol="$" class="textinput required dollar-amount" value="" />
                {if error:price}
Enter a numeric value.
{/if}

                <input type="submit" class="btn btn-large spacebeforesm" value="Enter Payment Info &rarr;" />

    {/exp:cartthrob:add_to_cart_form}

The error

Error
You have an invalid conditional in your template. Please review your conditionals for an unclosed string, invalid operators, a missing }, or a missing {/if}.
Parser State: Unexpected ‘[’ (MISC); expected RD in Template “portal/pay-invoice” on line 27.

Line 27 is the first {if error:item_options[invoice_number]}. It will render if I remove the brackets {if error:item_options} Does not matter what value I insert between the brackets, the page will not render.

Documentation doesn't indicate that it won't work with item_options. And as often as the item_options is used, it is also likely that it works with item_options.


texts: Paragraphs in Matrix field not showing on the frontend

texts:
I have a Matrix field with a Rich Text Cell Type. When I output it on the frontend there are no paragraph tags. How do I add them? Other tags (e.g.  display fine).

{exp:channel:entries channel="channel_faq"}
{matrix_faqs}

{question}

{answer}

{/matrix_faqs}
{/exp:channel:entries}

EE 2.6.1

Matrix 2.5.6


texts:
Any websites I have built before using Expression Engine have been from scratch.

One of my existing clients would like their site rebuilt as its 4 years old. I am planning on using another domain to copy the existing site over and upgrade it from 2.5.x to 2.7.x and then create a new design and edit a few custom fields.

The issue is, this is a high profile e-commerce site that is in 24 hour use. New members, new orders and new products are constantly being added.

If I build the new site on a copy of the site, after I finish the new design, and a few amendments to the system (perhaps a few custom field changes) I am wondering how I should go about getting the new data back into the new system.

Any advice on this matter would be greatly appreciated.


texts: How to make Freeform forms editable without using the entry_id in the URL

texts:
I want to still allow users to edit their freeform entries without being logged in, but I need some security so the entry ID isn't in the URL, or hashed so it's not easily guessed.

How is this possible? Seems it was missed during development but seems short sighted and the nature of forms are usually operated by unregistered members?


texts: Removing index.php but leaving subdirectory

texts:
We're working on a site that has Wordpress installed as the main CMS. EE is installed in subdirectory, and I am wanting to remove index.php. Everything I have tried removes both index.php and the subdirectory, but I need that subdirectory to stay in place, so WP will leave it alone.

So an address like:
site.com/EE_subdirectory/index.php/site/page-url

Needs to change to:
site.com/EE_subdirectory/site/page-url

I tried this .htaccess to my EE subdirectory:

<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]

But it took out both the subdirectory and index.php. Do I need to do something to the WP .htaccess instead? Any ideas?


texts:
I'm working on a site where a user can upload their resume.  I created this folder above root for security.  When the user submits the form, the attached file uploads to the "secure" folder without issue (I can see it).  However, when I go to the Forms module and look at the submissions, clicking on the file gives me an error that "The page you requested was not found."

Not sure if this is normal for files stored above root or if I have a path messed up?

Thanks in advance!

Todd


texts: Showing parents of parents of parents, using Playa to build a pedigree chart

texts:
I am afraid that this is rocketscience for me, I do not understand the principle. I must show related entrees, and their related entrees, and their etcetera. In a grid, like a pedigree chart
Let me explain.

The site is about horses, and bloodlines.
Two channels, horses_father and horses_ mother, with horses_fieldgroup containing two Playa fields: 1)rel_hors_mother and 2)rel_hors_father. When creating a new horse entry the editor can relate to father and mother. I can show these relations in the HTML.

But I do not know how to relate (in principle) infinitive levels deep. Let say we have horse X-1 with father X and mother Y. I can easy show father and mother of X-1, but I must also show the father of X, the mother of X, the father of Y, mother of Y AND their parents as well. I do not know how many levels deep they want it, but the system should not be limited to amount of levels.

Is this possible with Playa? Or is it better to look for other solutions?

Thanks for looking at this.


texts:
FreeForm pagination only works if the entry results of the form is MORE than the limit. If the results are not greater than the limit i get a loop of code.

For example: I have a total of only 5 entries in the form.. however in due time there will be more...

When i limit to 10... I would expect to see no pagination links until my results exceeds 10. At the moment though i get a continuous loop of the following code.

{freeform:paginate}
Page {freeform:current_page}
of {freeform:total_pages}
pages &nbsp;
{freeform:pagination_links}
{/freeform:paginate}

If i set my limit to for example.. "2" the paginaiton works perfectly (because i have more entries than "2").

Can anyone shed some light on this, thanks.


texts: Under the database table exp_cartthrob_order_manager_settings I have updated the 'cp_menu' to 'no' but the eCommerce tab is still showing in the control panel. I would like to remove the tab but does not work in the settings or by updating the database. Any ideas?


texts:
So I've recently moved a blog from Wordpress to ExpressionEngine. Everything transferred over great (thanks to DataGrab!!).

Now the one problem I'm having is in my attempt to redirect traffic from the old blog to the new one. I've implemented an HTACCESS like so:

RewriteEngine On
RewriteBase /
RewriteRule ^([0-9]+)/([0-9]+)/([0-9]+)/(.*)$ http://www.new_ee_site.com/blog/view/$4 [R=301,NC,L]

To redirect the old blog posts to their new counterparts on the EE install.

Here's the problem: This works for post with short titles just fine, the problem is some post titles are greater than 75 characters (the default EE url_title limit). So the post with titles name greater than 75 aren't translating over (since, when importing, the blog titles for the EE blog got trimmed to 75 characters).

Is there a way to somehow truncate incoming URLs, if they match the format /blog/view/..blog-title.., to truncate / trim the blog-title portion to 75 characters so these links go to the right place?


texts: Has anyone set the database on a remote server while the controllers sit on local/hosted system

texts:
I host the MySQL server providing the database functions and the site itself on the same hosting platform (a semi-dedicated server).

I was wondering if I could improve expression engine performance if I separate the two spheres to two separate servers. That is, put the database on some super fast server on a remote database provision service. Maybe even AWS: https://aws.amazon.com/rds/pricing/

Anybody got experience with this implementation?


texts: Worldpay giving callback failure alerts from purchases made using Expresso Store

texts:
I launched a store yesterday after thorough (successful) testing, and once live purchases were made, the client received Callback Failure Alerts from Worldpay. The orders didn't make it through to the dashboard, and the client has had to contact the buyers to find out what they ordered. Understandably the clients are stressed about this. I'm using Store 1.6.1 and EE 2.5.2. I'm desperate for a solution asap. Thanks!

The content of the email from Worldpay is this:

  Our systems have detected that your callback has failed.

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

  Transaction ID: 2479208752
    Cart ID: 8
    Installation ID: 269411

  Error reported: Callback to
  http://www.fabulousflowers.biz/index.php?ACT=37&H=5dfcb904f16e766dcd96781647d779f3:
  NOT OK, recevied HTTP status: 302
    Server Reference: mm2imsps4p:callbackFailureEmail-21277:MerchReq-752-82

  Also, if you usually return a response page for us to display to the
  Shopper
  within the time allowed (1 minute), this will not have been displayed.

  WorldPay will have displayed to the Shopper the response page file
  (resultY.html or resultC.html) held for your installation on the WorldPay
  server. This will be your own custom version, if you have supplied one,
  or,
  if not, the WorldPay default version.

Then there are two attachments:

response.txt:

HTTP/1.1 302 Moved Temporarily
Date: Thu, 29 Nov 2012 16:09:02 GMT
Server: Apache
X-Powered-By: PHP/5.2.17
Set-Cookie: exp_last_visit=1038845343; expires=Fri, 29-Nov-2013 16:09:03 GMT; path=/
Set-Cookie: exp_last_activity=1354205343; expires=Fri, 29-Nov-2013 16:09:03 GMT; path=/
Set-Cookie: exp_flash=a%3A1%3A%7Bs%3A24%3A%22%3Anew%3Astore_payment_error%22%3Bs%3A38%3A%22Invalid+response+from+payment+gateway.%22%3B%7D2fb730b5f1ab336c121b6a75eb8b6a8f; expires=Fri, 30-Nov-2012 16:10:43 GMT; path=/
Location: http://www.fabulousflowers.biz/index.php/store/checkout3
Content-Length: 0
Connection: close
Content-Type: text/html

and request.txt:

POST /index.php?installation=269411&ACT=37&msgType=authResult&H=5dfcb904f16e766dcd96781647d779f3 HTTP/1.0
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Host: www.fabulousflowers.biz
Content-Length: 1062
User-Agent: WJHRO/1.0 (WorldPay Java HTTP Request Object)

deleting personal details of buyer which appears here

Any ideas why I'm getting these errors and the orders aren't showing in the main dashboard?

Thanks.


texts: How to achieve without nested channel:entries tags

texts:
I'm hoping someone can suggest an elegant solution to this. I sometimes need to have the result that a channel:entries loop inside a channel:categories loop can provide. A simple example would be:

{exp:channel:categories channel="main" style="linear"}

{category_name}

{exp:channel:entries channel="main" category="{category_id}"}

{title}

{/exp:channel:entries}

{/exp:channel:categories}

This sort of approach allows for categories to be added/removed on the fly without having to alter the template, but I am aware that such nesting can be bad for performance. What is the better way to do this?

One user has suggested using the category_archive tag but since that tag can only grab title or url_title content from entries it would not permit something like this:

{exp:channel:categories channel="courses" style="linear"}

{category_name}

    Course Title
    Course ID
    # Days
    Description
    Price

{exp:channel:entries channel="courses" category="{category_id}"}

    {title}
    {course_code}
    {course_duration}
    {course_blurb}
    {price}

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

Please note that in the above example {course_code}, {course_duration}, {course_blurb} and {price} are all existing entry fields.


texts: What happens to old Non-Commercial Licenses now that EllisLab doesn't sell these anymore?

texts:
Will I still be able to update to the latest versions of EE?

Does anything change?...

Will they require me to upgrade to the commercial version of EE to be able to keep using it?


texts: File_upload_preferences_model::get_upload_preferences() removed - What to use?

texts:
I've had a plugin for ExpressionEngine developed that uses the File_upload_preferences_model::get_upload_preferences() method, which is now removed.

Is there a way for me to update the plugin to reflect any newly added similar methods?


texts:
Let's say we have a url: http://example.com/section/my-url-title we want to enure that the {url_title} is not used in the URI. We have changed all template tags to point to the {entry_id} instead.

The issue now is we have 600+ url's listed with google. We therefore want a 301 re-direct that checks for a {url_title} and then sends a 301 header with the new URI schema using the {entry_id}

As an example of what we want to achieve, let imagine the URL is http://example.com/section/my-url-title this then re-directs to http://example.com/section/369

We set up as basic template which works as you might expect:

{exp:channel:entries}
   {if '{segment_2}' == '{url_title}'}
      I should re-direct {url_title} | {entry_id} -- <? echo({entry_id}); ?>
   {if:else}
      I should NOT re-direct {url_title} | {entry_id} -- <? echo({entry_id}); ?>
   {/if}
{/exp:channel:entries}

And as you might expect a request to http://example.com/section/my-url-title outputs this into the template:

I should re-direct my-url-title  | 369 -- 369

If we then test the url using the entry ID URI http://example.com/section/369 we get:

I should NOT re-direct my-url-title  | 369 -- 369

...so far so good...

We then added the following php within the true part of the if statement:

<?
    Header( "HTTP/1.1 301 Moved Permanently" );
    Header( "Location: /{segment_1}/{entry_id}" );
    die();
?>

And the template re-directs BUT we get caught in a re-direct loop. This is the same for either URLS:

http://example.com/section/my-url-title
http://example.com/section/369

Both get in a re-direct loop.

We have also tried this plugin: http://blog.builtbyprime.com/php/301-redirect-for-expression-engine-2 which also seems to get stuck in a loop and disregard the if statement.

Any help or advice greatly appreciated.

p.s I'd rather avoid the task of remapping every url using googles webmaster tools.


texts: {if} conditional prevent running module function

texts:
I created a module for GitHub's API and am having trouble preventing the module's function {exp:cl_github:repo_contents_archive} from running given a conditional. The reason this is imperative is that the function actually sends a file to the browser (sets headers, echos, and dies).

{if logged_out}{redirect="member/login"}{/if}

{exp:channel:entries require_entry="yes" parse="inward"}
    {addon_github}
        {exp:cl_github:repo_contents_archive
            owner="{owner}"
            repo="{repo}"
            ref="{ref}"}
    {/addon_github}
{/exp:channel:entries}

I've tried a few things like putting {if logged_out}limit="0"{/if} in the {exp:channel:entries} tag.

Another solution I thought of was to pass into my {exp:cl_github:repo_contents_archive} a parameter like is_authenticated="{logged_in}" but for some reason that wouldn't parse the value of {logged_in}.

I don't really want to hardcode checking for logged_in in the module itself. Can you guys/gals think of any other workaround or something I am missing?


texts: Freeform Next - Field validation options

texts:
Is there a way to control the validation options for fields in Freeform Next forms?

The default processing for email fields, for example, appears to simply be a check that somewhere within the string there is an @ symbol.

HTML5 field checking is more powerful - but  the documentation does not appear to discuss how to enable alternative validation methods.

Is this possible?


texts: Expresso Store: Insert a final confirmation screen AFTER payment interface

texts:
Our client has requested that we add a final confirmation screen in checkout process that appears after the payment screen. This would seem a pretty simple addition, but having tried unsuccessfully to add one I found this in the Expresso Store docs.

'To give the user a choice between payment methods, you can either use the payment_method="" parameter, or submit a payment_method field on the last page of your checkout.'

Which suggests that payment HAS to occur on the last page of checkout wether or not the 'next' parameter is set on the store tag.

Has anyone managed to get a final screen working? If its not possible it would certainly be a useful option in future versions.

Cheers!


texts: How to implement A/B testing (split testing) in Expressionengine

texts:
I was advised on Twitter to post this here for others who might be looking for the same answers I was.

The client wanted to test the user engagement of an auto-play video vs. image slides with a call-to-action. I chose A/B testing over Multivariate testing, because I only needed to switch out one section of my page. I couldn't find many articles or any answers on how to implement dynamic-content split testing with a module or add-on, so I started looking into other non-dynamic options.

Since I am not using Structure in this current project, I had found this helpful article, but couldn't implement it the way the article explained: FortySevenMedia Blog

I was told to look into Google Content Experiments, which looked amazing, but I didn't want to deal with multiple pages/urls, despite that looking like the easiest solution, so had to find something else to use instead. Overview of Content Experiments


texts:
I want to use flat shipping rates for my store and also want to set one rate for orders in the US & another rate for International orders.

Is there any way to do this on a per item basis?


texts: Stash: list of related entries completed by recent entries

texts:
What I am trying to do:

I am in an entry detail page.
Entries have a playa field to create relationships w/ other entries
First, I need the first 4 related entries, in the order specified by the user in the Playa field
Then, I need to add the 4 most recent entries to that list
Finally, I need to display the first 4 entries of that list (Playa entries + Recent entries) and filter out duplicates

3 possible scenarios

I have no Playa entries > display just the 4 most recent entries
I have 4 Playa entries > just display those
I have a mix of Playa entries and Recent entries. In that case, Playa entries have to be displayed first in the order specified by the user

Here is what I have tried so far

{!-- SET Entry data --}
{exp:channel:entries disable="member_data|pagination|trackbacks" channel="articles" status="not closed" require_entry="yes" limit="1"}

    {!-- Get first 4 related items in Playa field (combined with latest article and interviews if less than 4 --}
    {exp:stash:set_list name="st_complementary_items" parse_tags="yes"}
        {exp:playa:children channel="articles|interviews" limit="4"}
            {stash:st_complementaryitem_title}{title}{/stash:st_complementaryitem_title}
        {/exp:playa:children}
    {/exp:stash:set_list}

{/exp:channel:entries}

{!-- Get last 4 published articles / interviews items (completes the list if less than 4 in the Playa field  --}
{exp:channel:entries disable="member_data|pagination|trackbacks" channel="articles|interviews" status="not closed" orderby="date" sort="desc" dynamic="no" limit="4"}

    {exp:stash:append_list name="st_complementary_items"}
        {stash:st_complementaryitem_title}{title}{/stash:st_complementaryitem_title}
    {/exp:stash:append_list}

{/exp:channel:entries}

{!-- BUILD page content --}
{exp:stash:set name="content"}

Total items in list: {exp:stash:list_count name="st_complementary_items"}

Unique items in list: {exp:stash:list_count name="st_complementary_items" unique="yes"}

    {!-- get the list of related items (Playa + latest if less than 4 playa), still have to make rows unique using the unique=yes parameter --}
    {exp:stash:get_list name="st_complementary_items"}

[{count}/{total_results}] - {st_complementaryitem_title}

    {/exp:stash:get_list}

{/exp:stash:set}

That works decently well, unless I have no playa items. Then Stash acts as if I have 5 items in my list with a first one that's not parsed.

Total items in list: 5 / Unique items in list: 5

[1/5] - {st_complementaryitem_title}
[2/5] - Recent Entry title
[3/5] - Recent Entry title
[4/5] - Recent Entry title
[5/5] - Recent Entry title

I am at loss as to why this is happening.

If I completely remove the recent entries loop and just leave the Playa loop, things work as expected and I get 0 entries.

Grateful if anyone can help me out with that.

EDIT: Mark "The" Croxton was quick again: Stash 2.4.4 has been updated to ignore empty list items which apparently was the problem here.


texts: How to Switch Search Channels on the Fly?

texts:
I've asked a couple of other questions about parts of this issue, but I haven't explained the whole thing. I think I'm going down rabbit holes on specific issues; but if I explained the whole thing, perhaps someone could point me in a different, more productive direction.

I have a search page using the simple_form tag. By default, it searches in the products channel. But we want a mechanism which allows users to alternatively search in the blog channel. So when they arrive on the search_results page, in addition to the search results, we also display Product and Blog links. The Product link is highlighted, to show we're displaying product results. If the user clicks the Blog link, jQuery takes over, changes a hidden field called search_type to "blog", and clicks the search button on the search form.

This brings us back to the search_results page, but now we've passed the "blog" flag as a hidden field. We pick it up using stash:get, and use the search_type as the channel parameter in the search:simple_form tag...

Well, that's how it should work, anyhow. As I was writing that last bit, it occurred to me that the channel parameter had been parsed some time ago, so when we hit the search button, the channel is already encoded in teh hidden fields. (I'm guessing that's how it works.)

OK, so how would I handle this product/blog search thing? I've been going round in circles for over a day. Thanks for your help.


texts:
How do I enable pagination in the {store:orders} tag? I tried:

{exp:store:orders member_id='CURRENT_USER' order_by='order_date' sort='desc' pagination="bottom"}
.... snip ....
{paginate}
    <p>{pagination_links}</p>
{/paginate}
{/exp:store:orders}

But it just outputs the paginate tags as they appear in the template.


texts: Logged out redirect not working for cartthrob:add_to_cart tag

texts:
I have add to cart buttons like this:

Book now

'weekend-courses/add-to-cart' contains only this:

{if logged_out}
  {redirect='account/login/return/weekend-courses/'}
{/if}

{if logged_in}
  {exp:cartthrob:add_to_cart entry_id="{segment_3}" quantity="1" return="weekend-courses/checkout/{segment_3}"}
{/if}

Clicking the book now link adds an item to the cart and goes to weekend-courses/checkout/{segment_3} when I am logged-in AND when I am logged-out.

Changing to this

{if logged_out}
  {redirect='account/login/return/weekend-courses/'}
{/if}

{if logged_in}

Logged in

{/if}

Works as expected.

Any ideas why this isn't working as expected?


texts: how to upload image and create channel entry using simple html form in expression engine

texts:
how can i upload image in a channel using simple html form and create a new entry for every individual entry in channel.

i can't use channel form due to some issues so i have to upload it with simple html form

channel API can used for this.

any Idea how to do it.


texts: Database Error - Unable to connect to your database server using the provided settings

texts:
My site won't show up (white screen of death). When I try to access the control panel, I am setting this error:

A Database Error Occurred
Unable to connect to your database server using the provided settings.
Filename: core/EE_Config.php
Line Number: 207


texts: Upgraded to Cartthrob 2.6 - Now can only view cart when logged in

texts:
Since upgrading to Cartthrob 2.6 (on EE 2.7.0) I can only view the items in my cart when I'm logged into the control panel. When anyone else tries to add to cart they just see the page refresh and an empty cart. We're not using or creating members for the cart, everyone uses the cart as a guest.

I'm using the standard add to cart form with the return set to the same page. There is only one product but with a range of options.

{exp:cartthrob:add_to_cart_form return="samepage" entry_id="2720"}

        <label>Card Value</label>
        {exp:cartthrob:item_options entry_id="2720"}
            {select}
                <option {selected} value="{option_value}">${option_value}</option>
            {/select}
        {/exp:cartthrob:item_options}

    ...

{/exp:cartthrob:add_to_cart_form}

If I add to cart when logged out (and see an empty cart) - I can then log in, refresh the page and can see that the item is in the cart. If I then log out and refresh the page again, the cart shows as empty.

I've tried changing the redirection method in EE, setting the cookie domain... I haven't found anything that alters this behaviour so far.


texts:
I'm looking for a way to submit to a mailinglist (standard ee mailing list module) when submitting a safecracker form. Basically a user will click a checkbox "yes, send me the newsletter".

Thanks!


texts: This form has expired. Please refresh and try again. in EE 3.0.5 File Manager

texts:
Attempting to upload a file in EE3 file manager triggers an error that says 'This form has expired. Please refresh and try again'. I have tried some config solutions that seem to have worked from EE2 version users such as disabling secure form protection:

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

Also tried including the following as another user suggested here:

$config['cookie_domain'] = "";
$config['cookie_path'] = "";
$config['cookie_prefix'] = "";
$config['admin_session_type'] = "s";
$config['user_session_type'] = "c";
$config['require_ip_for_login'] = "n";
$config['require_ip_for_posting'] = "n";
$config['secure_forms'] = "n";

This did remove the error message, however now the upload page merely refreshes when you try to submit the upload. The upload does not complete and is not confirmed.

I've not seen many people have this issue when using File Manager, it seems to be mainly a login issue.


texts: What if no entry translated with Transcribe?

texts:
I'm quite new in EE so my question can be trivial.

What to do if one (or more) entry is not translated? If I have translation for English but change language to Deutsch for example - I got an error. I'd like to get the point where if I change the language and do not have translation for any entry the default language will be shown.

I try to work with this code but it doesn't work:

{if title == ""}
{exp:transcribe:language name="english"}{title}{/exp:transcribe}
{/if}

I use Transcribe and EE 3.0.4.

Thanks!


texts: From my templates, I want to link to my CPanel. The template is only accessible by those who do have permission to access the CPanel. How do I link to the CPanel from the template? The URL I see generated when I log in seems to include a session id.


texts: Playa with large number of entries +20,000

texts:
I'm using a Channel Form to enable members to create/edit entries. One of the requirements is to select Relationships between entries. I have a channel containing over 20,000 government agencies and I want to related a few of these agencies (entries) to the entry being edited.

With 20,000+ entries, the standard EE relationship field is unmanageable when it has to be populated with this many entries.

Can Playa be configured to show no entries in the relationship until a member submits a search?


texts: extension error when using function>redirect

texts:
$this->EE->functions->redirect('account/not-found');

When this is triggered in my extension, I get this error:

A PHP Error was encountered

Severity: Notice

Message: Undefined property: stdClassàK´cðËÛ::$flashdata

Filename: libraries/Functions.php

Line Number: 381
A PHP Error was encountered

Severity: Warning

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

Filename: libraries/Functions.php

Line Number: 414

I am not using flashdata, don't care about it. Any reason this error is happening?


texts: ElectricPutty - Thumber add-on not working with EE 2.9.2

texts:
upgraded from 2.8.1 to 2.9.2 and ElectricPutty's add-on Thumber stopped working.  Any ideas?

Getting this debugging output:

(1.414562 / 37.32MB) Calling Class/Method: Thumber/create
(1.414701 / 37.32MB) -> Class Called: Thumber
(1.414785 / 37.33MB) -> Method Called: create
(1.575988 / 37.33MB) Thumber Can't find Ghostscript on your server.
(1.576109 / 37.33MB) -> Data Returned

Ghostscript has been installed for years.


texts: Assets + Safecracker: Preselect folder and/or view type?

texts:
I don't use Safecracker very often, but I'm working on an EE 2.6.1 project where {field:assets_field} is magically bringing the Assets file manager (and uploads) to the front end.

I see that this involves adding a JSON array to the page which configures the field, but I'm not sure if there's a good (or deliberate/preferred) way to get in there and mess with it before the user interacts with the field.

In specific templates where the thumbnail view is worthless without the filename (like a folder of PDFs), I'd like to preselect the list view. In many templates, I'd like to preselect a specific folder – like one belonging to a certain user – not because the person shouldn't see any other files, but because it'd be more convenient if they didn't have to browse through the file tree.

Is it possible to preselect a folder and/or view type?


texts: How to optimise channel entries call with custom fields and lots of matrix data

texts:
The following call is proving problematic from a page load perspective:

{exp:channel:entries channel="channel" limit="1000" disable="categories|member_data|trackbacks|pagination" search:product_year="2004|2005|2006|2007|2008" dynamic="yes"}

Firstly, I call this in a simple if conditional based on url_segments so it should be parsed early but the use of else means it is advanced and not simple in EE speak.

{if segment_2 == ""}

{if:elseif segment_4 == "archive"}

***the code***

{if:else}

{/if}

I cannot disable custom_fields as I need to search them as shown.

Bug debugging the template shows that 5 of the 6 seconds it takes this page to load is repeated calls by Matrix to grab this data.

(0.418034 / 43.67MB) Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata

etc
etc

Annoying it only happens on the template_group/index/ page as the category indexes are limited to just the number of entries for that category and not the site total (approx. 4000). Essentially all the matrix data is loaded for all entries on the index page even though I am only outputting categories.

Anyway I can disable specific custom fields or only make these data calls where it is required? I tried using an embed for the code, but according to the debug the matrix calls are still made.

UPDATE:

Managed to solve this - tried the embedded templates again and it worked this time.


texts: How can I efficiently output a large channel entries query?

texts:
I need to display a large list of channel entires...between 500 and 800 entries. The list is simply a list of names in alphabetical order. When I run this query, I run out of PHP memory. I've tried to disable all parameters that I can, but I still get a memory error. This list can be cached and refresh once a day or so, but I can't even get to that point without running gout of memory.

Is there anything that can be done to output such a large number of channel entries, other than upping the PHP memory limit (which I understand is a bad idea)?


texts: Which technologies are used in Expression engine

texts: Expression Engine is based on codeignitor framework and codeignitor is developed using core PHP but I want to know which technologies are used by expression engine like it uses angular js,ember js etc. ?


texts:
Running EE 2.3 and trying to upgrade, the first error is a message which says:

  We have detected that you are currently running ExpressionEngine
  version Public Beta pb01 If you are ready to update ExpressionEngine
  to version 2.5.0 click the link below:

Which is odd in itself as it is not a public beta but v2.3.

Then there are a slew of errors relating to duplicated tables and no primary key - these are all fixable in PhpMyAdmin by deleting or editing but is a major pita.

Next, with those errors fixed we run into one for which I have no solution: the installer stalls because a field/table prefixed with 'weblog_' does not exist. Which of course it does not as we're not upgrading from V1. Obviously though the installer thinks we are and won't go further.

Is pretty imperative we get this upgrade done asap.

Anyone have any suggestions? This is on EngineHosting and they can't help.. what's next? Can't really abandon the upgrade....

Cheers


texts:
I have a requirement to integrate an Expression Engine website with a third party recruitment system.  I need to be able to make HTTP Posts to a remote server that will return XML.  I also need to be able to filter the resulting XML using XPATH before transforming into HTML using XLST.  I have no requirement to import the information received from the XML files.

What is the best option going forward? Should I be looking to create a custom module for the project or simply allow PHP within given templates.

I know there are a couple of modules that might be a good place to start I.e. Entry API but I'm looking for some advice from seasoned EE developers on the best way forward.

Thanks,
Carl


texts: Updating a Playa select field in a Safecracker form

texts:
Here's my scenario: I've got 2 channels, accounts and leads. The leads channel has a playa field (single select) that relates to accounts. Then I have a safecracker form that allows users to create a new lead entry. Everything works fine.

However, the current workflow dictates that the account must already exist before a lead can be associated with it. The ideal solution would allow the user to either choose an existing account, or create a new one without leaving the page, and updating the playa field with the new account.

I managed to get halfway there by placing a link beside the playa field which fires a modal with another safecracker form for the account creation, and using ajax to refresh playa select field. After adding the account entry, the new entry shows up in the playa select field, but when I submit the lead form, the playa field isn't being saved to the entry.

Has anyone tackled a similar problem? I would love to hear your solution/s.

Thanks,

Fabian


texts: Channel Videos youtube video upload: "not supported since april 15 2015"

texts: I have started to have a problem uploading my videos from youtube since April with Channel Videos. Every time I do I only get a youtube place holder video telling me that the app is no longer supported by youtube. Why is this?


texts: Stash not working while inside exp channel

texts:
I have used exp stash to get entry ids. But the code is not working inside exp:channel
My code:

{exp:stash:set name="recently_viewed_ids" output="no" parse_tags="yes" trim="yes" }
  {exp:channel:entries channel="blog"  sort="desc"   disable="pagination" entry_id="not 26|25" }
    {entry_id}|
  {/exp:channel:entries}
{/exp:stash:set}

Result:

{exp:stash:get name='recently_viewed_ids'}{/exp:stash:get} ---- working fine

{exp:channel:entries channel="blog"  sort="desc"  entry_id="not {exp:stash:get name='recently_viewed_ids'}{/exp:stash:get}" }{entry_id}{/exp:channel:entries}--- not working

Can anyone please help?