texts: Very slow performance on production, not on local dev, doesn't seem to be the database

texts:
I'm running an ExpressionEngine site using CartThrob for a shopping cart. Some of the pages are loading extremely slowly on the production server (7, 10, 15 seconds of Controller Execution Time as reported by CodeIgniter profiler), even when there is no traffic at all to the site. The same pages running on a dev server with the exact same codebase and exact same database are taking less than one second to load by the same measure. The problem seems worst on pages with lots of database queries, though that could be a red herring.

At first, I thought the issue was with the database or the connection to the database, but the CodeIgniter profiler indicates that the sum of all database queries on production for the slowest page (180 queries) is only about 0.6 seconds. Looking at the CodeIgniter database driver source, that number appears to be measured in PHP, so it seems like the problem is not in the database or the connection to the database.

In addition, looking at the Template Debugging log on production, there doesn't seem to be a single step that takes an inordinately long time. Rather each step seems to take just generally longer than on the dev server.

My local development machine is a Macbook running MAMP, and the Server is a 4GB Linode VPS running Ubuntu. I have separately benchmarked PHP/MySQL performance on both, and the Macbook was slightly faster at InnoDB selects, inserts, and updates, but not considerably so. I also benchmarked disk read/write on both machines, which came back almost identical. Just to check, I also migrated to another Linode server but the results are the same.

What else should I look into as to what might be causing this problem?


texts: CartThrob 2.6.1 and EE 2.7.3 || Guest Add to Cart

texts:
I'm having a couple of issues with CartThrob 2.6.1 and ExpressionEngine 2.7.3. Are there any known issues with Guest Checkout with these versions?

Here's the setup:

User Must Be Logged In? NO

Logged Out Member ID: 383 (which relates to a guest member ID)

Use Fingerprinting For Sessions? NO (also tried all the other options too)

If I'm logged in as a Super Admin then I can add items to my cart, but guests cannot.

I did notice that the member_id field in the Database wasn't being set to 383 either. Another weird item is that Show Debug Info (when using debug_info tag) is set to Show to SuperAdmins only and the use of the debug tag in my templates shows for everyone!

Any help on this would be great!


texts: Devdemon forms not working when there is a 301 redirect

texts:
If I have the following in my .htaccess

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

When I go to submit a form on the website, forms just essentially refreshes the page. There is nothing in the database and no email is received. If I comment out those two lines, then it will work fine. In the general configuration it is set to http://www.domain.com. I'm also submitting the form with the www. in the address bar.

EE 2.6.1
Forms 3.3.5


texts:
EE sites have been plagued with spam accounts targeting the bio field with html links and bbcode to do the same. Including mine. I am sure one of the 2.x releases disabled html code by default but cannot find it in the change log.

Other than hacking the core, any options to disable this?

Thanks.

Update - found this "Altered member profile fields to disallow HTML." in : http://ellislab.com/expressionengine/user-guide/about/changelog.html#version-2-1-1

So looks like it was added, but not to the forum member pages perhaps. Classic EL.


texts:
I just updated a site from 2.6 to 2.9.2.

It's been very buggy since and nothing seems to work. I think I found the problem but I don't know where to fix.

All new entries have the same ID of 0 regardless if an entry, asset, asset folder, user etc.

New Assets load but don't stick to an already created entry(when I add an asset and save the entry and then go back, it is not there). Thumbnails of new Assets are wrong. Duplicate empty Assets folders are created in the CP when I update indexes.

Freeform does not submit because the url passed when submitting the form is .../?ACT=0. I get a blank page.

If I add user, I can log in fine but if I add a newer user, the password is now wrong, again because now both users have the ID of 0.

Anyone know why the ID column is defaulting to 0?


texts:
EE 2.7.2 Build20131008

I am fairly new to expression engine and having a little bit of trouble getting this to work out the way I need it.

I am trying to create a category archive page. Here is the code I have so far:

{exp:channel:category_heading}

Careers in {category_name}

{/exp:channel:category_heading}
{exp:channel:categories channel="careers" category="{category_id}" style="linear"}

{exp:channel:entries channel="careers" category="{category_id}" orderby="date" sort="desc" disable="member_data" dynamic="no"}

{title}: ({career_location})

{/exp:channel:entries}

{/exp:channel:categories}

The issue I have is that is doesn't seem to be pulling the "category_id" in the channel:entries tag. So I currently have 2 posts, both are assigned to 2 categories. So it actually renders a list of 4 posts, instead of just 2.

More Details

Here is a full layout of how things are setup:

Careers Channel with 2 category groups - location and department.

_desktop/careers pulls the careers listing. Currently have a select/dropdown on that page.

<form name="catmenu" action="">
<select name="selcat" onchange="location=document.catmenu.selcat.options[document.catmenu.selcat.selectedIndex].value;">
    <option value="">--Select Category--</option>
    {exp:channel:categories channel="careers" category_group="2" style="linear"}
        <option value="{path='careers/listing'}/{category_id}">{category_name}</option>
    {/exp:channel:categories}
</select>
</form>

I created the careers/listing template as a "landing page" for when a category is selected. So lets say you select "Jobsville, NY" from the dropdown, it points to the careers/listing template with this URL:

domain.com/careers/listing/C37

Jobsville category id is "37". I can't figure out how to get it to spit out /careers/listing/category_name either.

On this listing page is where I have the code from the first part of my question. I currently have 2 posts.

Post 1 - assigned to location 1 and department 2
Post 2 - assigned to location 2 and department 2

The listing page is showing 2 copies of each post - not limiting the list to the category that I am currently viewing.


texts: Cancelling member deletion in member_delete hook handler

texts:
I am trying to implement some codein the member_delete hook in EE. But for testing purposes, I just want the hook to trigger but don't go ahead with the actual delete.

Is there a way to do this? In some other form related extension hooks, I only need to set the error variables to be able to cancel submit. I am not sure if the same can be said of member_delete


texts:
I have created a simple extension in EE to handle PayPal payments on submission of a Channel Form, which seems to be working up to a point.

My problem is how do I get the extension to handle the response after the return from PayPal?

My send parameters need to include a 'returnURL' which means that PayPal redirects to this page on successful completion - obviously this means the function in the extension is no longer in play!

Here's the logic in the extension:

    $response = $gateway->purchase($args)->send();

if ($response->isSuccessful()) {
    // do something with the response

} elseif ($response->isRedirect()) {
         // redirect to offsite payment gateway
         $response->redirect();

} else {
         // payment failed: display message to customer
         echo $response->getMessage();
}

The issue is that on returning from the redirect to the offsite gateway,the 'isSuccessful' branch doesn't get executed, I am just redirected to the page specified in the 'returnURL' parameter sent with the initial request.

How do I process the return from PayPal so I can send the completePurchase() request within the extension?

EDIT
I've just had a thought - should I make the returnURL an '?ACT' and add an entry to the actions table to call the next function in the extension?

... I'll try it

EDIT

Except you can't use actions with extensions, only modules. And you can't use hooks in modules, only extensions. As I need to hook into the form submit AND use an action to process the return, it' back to the drawing board :-(


texts:
i was playing around with Assets 2.1.4 and i was wondering if there is any way of checking for no results.

My code:

{my_assets_field limit="30" offset="80"}

{filename}

{/my_assets_field}

Example of what i have in mind:

{my_assets_field limit="30" offset="80"}
    {if no_results} the end{/if}

{filename}

{/my_assets_field}

I'm doing a ajax call to this template and i need to know when i reach the end.

Thanx


texts: Cartthrob discount settings database table

texts:
Can anyone point me in the right direction for finding the database table that corresponds to the information set in Cartthrob discount/coupon code settings?

I'm writing a query that needs to use the member group that's defined for a discount but trying to find this data in the database is proving a problem.

The exp_channel_data table has entries for discounts set up and exp_channel_titles all the usual data, but I fail to see any clues as to where the settings data for the related discounts reside.

We're using Cartthrob 2.70 in EE 2.10.2, any help is much appreciated!


texts: Safecracker and GWCODE Categories Checkboxes not staying checked

texts:
Here is what I am trying to do.

I am using Safecracker to do the add/edit posting, but when the user click on a checkbox, then
go to edit the posting, the check box is not there.

I am using Gwcode Categories Plugin, outputting my categories as checkboxes
because it has more feature and flexibility then the built in safecracker categories tag

GWCode Categories

        {exp:gwcode_categories group_id="9"}

    <input type="checkbox"  id="categories" name="category[]" value="{cat_id}" {checked} />
 {cat_name}

 {/exp:gwcode_categories}

but when I use Safecracker

     {categories}

&lt;input type="checkbox" name="category[]" id="categories" value="{category_id}" {checked} /&gt;
{category_name}

{/categories}

the checkbox is there.
why I cant just used the {checked}  in the Gwcode Categories and why does it have to be in
{categories}{/categories}

here is the code that I have right now and trying to do with safecracker

{exp:gwcode_categories group_id="9"}
    {if has_children && parent_id == '0' }

            {cat_name}

    {if:elseif depth == 2}

            <input type="checkbox" id="categories" name="category[]" value="{cat_id}" checked="{checked}" />
            {cat_name}

    {if:elseif depth == 3}

            <input type="checkbox"  id="categories" name="category[]" value="{cat_id}" checked="{checked}" />
            {cat_name}

    {if:else}

            <input type="checkbox"  id="categories" name="category[]" value="{cat_id}" checked="{checked}"  />
            {cat_name}

    {/if}
{/exp:gwcode_categories}


texts:
Excuse the title, couldn't really summarise the issue succinctly...

This is what I need to do...

I have a load of entries from various channels (E). And a series of tweets (T) (which are stored in another channel).

I need to output as follows

(E) (E) (T) (E) (E) (T)...

(also, if T doesn't exist output E).

So every third item that is outputted needs to come from the twitter channel.

I'm using stash but can't for the life of me figure out how to output the content like this.

Any thoughts/suggestions greatly appreciated.

Thanks
Dave

Follow on question
Paginate two stash lists in one


texts: ExpressionEngine htaccess with password protected subdomain

texts:
I have inherited an ExpressionEngine site and need to add a password-protected subdomain. The original htaccess file in the root directory was...

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

...but when password protection was added to the subdomain, users could click "cancel" and then the page contents would become visible.

I added...

RewriteCond %{HTTP_HOST} !^mysubdomain\. [NC]

...to the second rewrite rule, and that allowed the password protection to work normally for the subdomain homepage; however, none of the pages or subdirectories in that subdomain work now. It looks like all the page resources are getting URLs like: "http://mysubdomain.domain.com/{site_url}images/uploads/core-images/image.png"

How can I get the password protection working properly without breaking the URLs so that the rest of the subdomain pages and subdirectories will work properly?


texts: Is there a different uploader for the Channel Form that can upload images instantly?

texts:
I am building a channel form for creating entries outside the control panel and I am having a small problem with uploads.

The form allows the user to upload 6 image files and the way I do it is by having 6 separate file upload fields. If try to create an entry from the control panel, I can upload each file separately. So when I am done completing the form and hit submit everything is posted almost instantly. On the channel form though the problem is that the user selects the files to upload for each one of the 6 file upload fields, but ALL the files are uploaded only once the user hits the submit button. Now imagine having 6 separate 1MB files… it could take ages for the upload to complete.

A potential solution could be to disable the submit button once the user presses it and maybe show a message informing them that this might take a while based on the file sizes. But I believe that it would be better to have a different uploader. Something that would upload the files instantly and let the user move one with the rest of the form. A preview of the uploaded image would be nice too. :-)

Does anyone know something like this for ExpressionEngine? Is there an uploader plugin that can do what I want or any other solution?


texts:
I have an issue with submitting on my channel form , the form doesn't work under https but it is ok under http. Its a form to edit user profiles.

I have added secure_action="yes" secure_return="yes" to the channel form tag but to no avail. Note my form is stashed and its called as an stash embed which my the cause of my issue .
Also currently I only have https on the user profile editing part of the site

Thanks for any help


texts: Where can I find the HTML, CSS, and JavaScript files in my dashboard?

texts:
Hello ExpressionEngine community,

My available options in the bar along the top when I log in are:

Content
Members
Site Control
New Entry
Edit Entry
Home

My best guess was "Edit Entry", but I get a message saying "An Error was Encountered You are not authorized to access this page".  Do I need special access rights to find the HTML, CSS, and JavaScript?

Thanks!


texts: Has anyone integrated Livefyre comments with EE?

texts:
I'm interested in using the free version of Livefyre comments to replace my EE native module, at least for new content. Anyone had experience with this? I've seen Disqus plugins... Thanks,
Matthew


texts:
Edit

After some debugging, the issue seems to be around the text content of the tweet or Instagram photo. Looking in the database, if I save the caption or tweet text, the data suddenly cuts of in the parameters column.

I'm trying to create a social media wall pulling in photos from instagram and tweets from twitter with a certain tag. I create a list for each network (Twitter, instagram, EE) and then we join them lists.

I've got this working fine, the tweets and photos pull in fine, but when I try to cache the stash lists, I get some odd behaviour.

On the first load, it works great, the list is created and the list is saved in the database. If I then refresh that page, all of a sudden the list is either empty, has less results or has tags not rendering.

If I tell Stash to replace the list every time, then it works. Any idea's whats happening here?

{exp:stash:set_list name="instagram--{embed:term}{get:ig}" parse_tags="yes" parse_conditionals="yes" save="yes" scope="site" replace="no" refresh="60"}
    {exp:ig_picpuller:tagged_media user_id="1" limit="12" max_id="{get:ig}" tag="{embed:term}"}

        {!-- Instagram Data --}

    {/exp:ig_picpuller:tagged_media}
{/exp:stash:set_list}

{exp:stash:set_list name="twitter--{embed:term}{get:tweet}" parse_tags="yes" match="#^(?!\s*$).+#" against="image" parse_depth="2" parse_conditionals="yes" save="yes" scope="site" replace="no" refresh="60"}
    {exp:ce_tweet:search q="#{embed:term}" count="100" max_id="{get:tweet}"}
        {statuses}

            {!-- Twitter Data --}

        {/statuses}
    {/exp:ce_tweet:search}
{/exp:stash:set_list}

{exp:stash:set_list name="posts--{embed:term}" parse_tags="yes" parse_conditionals="yes" parse_depth="10"}
    {exp:channel:entries channel="channelName" limit="300" dynamic="no" disable="categories|category_fields|member_data|pagination"}

        {!-- EE Data --}

    {/exp:channel:entries}
{/exp:stash:set_list}

{exp:stash:join_lists name="media--{embed:term}" lists="twitter--{embed:term}{get:tweet},instagram--{embed:term}{get:ig},posts--{embed:term}"}

{exp:stash:get_list name="media--{embed:term}" limit="20" offset="{get:offset}" unique="id" orderby="date" sort="desc" sort_type="numeric"}
    {!-- Play with the list --}
{/exp:stash:get_list}


texts: Changed our site IP address, now can't login to EE

texts:
We moved our site to a new server, have a new IP address. Now, when I go to www.nameofthesite.com/admin.php and log in, I get a blank screen.

Do I need to change the IP somewhere in the EE config files?


texts: TMPL->parse_variables_row() not available in model?

texts:
I have a model (core_model.php) with lots of functions in there, however having an issue with the following one in specific :

 Class core_model {
    function __construct(){
        $this->EE =& get_instance();
        $this->EE->load->library('api');
        $this->EE->load->library('email');
        $this->EE->load->library('template');

        $settings = $this->_get_settings();
    }

        .....

    function parse_user_template($data)
    {
     $td = $this->EE->db->select("template_data")
                            ->from("templates")
                            ->where("template_name","user_notification")
                            ->get()->row()->template_data;

     $parsed_data = $this->EE->TMPL->parse_variables_row($td,$data);
    }
}

Basically, I'm calling the $this->EE->core_model->parse_user_template($data) function passing in a $data array of values which I want it to parse against the specific template file for me to do something with once parsed (namely to use it as an email body).

For some reason, I'm getting the following error:

  Message: Undefined property: EE::$TMPL

  Filename: models/core_model.php

  Line Number: 69

Anyone have any ideas why this is the case and I can't parse it?


texts: Channel Form / Zoo Visitor Class & ID Problem

texts:
I've upgraded EE to 2.7.0 which comes with the new Channel From (Previously SafeCracker!)

When I did this all the class & ID's I had on the forms previously have stopped working - they don't show on the form output.

One in particular is the Zoo Visitor Register form, which I'm guessing is doing the same thing due to it running through Channel Form as well. My opening tag for this is:

{exp:zoo_visitor:registration_form return="{site_url}" id="form-account" class="form-register"}

But the output is:

<form id="zoo_visitor_form" method="post" action="http://website/index.php" enctype="multipart/form-data">

Huh?! No Class & the ID is incorrect.

Is there a fix for this?


texts: Server response was malformated error with Mega Upload

texts:
recently all of a sudden I've just started getting the following error messages with Mega Upload. As far as I'm aware nothing has changed, but obviously something has!

  Server response was malformated, probally a PHP error

I'm running the latest version of Mega Upload and EE.

Thanks,
Dan


texts: Moving member to a different group changes group permissions: Is this a bug?

texts:
I just created a new EE member group, then moved a member from group 2 into the new group, and suddenly the permissions for group 2 - the old group - have been changed. That group is no longer allowed to post into any channel.

Anyone ever seen this? Is this a bug?


texts: invalid_filename error when syncing upload directory

texts: When I tried to synchronize my upload directories I kept getting the "invalid_filename" error for all the files. What is happening and how can I fix it?


texts:
I'm building a site where I'm having trouble wrapping my head around the logic needed to accomplish what I would like to do.

I have three channels: Brands, Regions, Business Unit.

Brands have a field, brand_region that relates regions to that brand.
Business units have a field that relates brands to that business unit.

On the each brand page there are a list of Regions that this brand is available in, for example Ontario, Alberta, Quebec. The Region link needs to take you to the business unit responsible for that brand in the region.

Conversely on the Region page there is a list of brands available and the link for each brand needs to take you to the business unit responsible for that brand in the region currently being viewed.

I'm currently focused on the brand page. So if I'm looking at Volvo for instance and it's available in 3 different regions; Ontario, Alberta, Quebec. The link for each of those needs to be different and go to the business unit responsible for Volvo in that particular region. It's possible that one business unit is responsible for Volvo in Quebec & Ontario and a second business unit is responsible for Volvo in Alberta so that the end result would be Quebec links to business unit 1, Ontario links to business unit 2, and Alberta links to business unit 3.

Removed old code. Simplified code is below but still not working exactly.

{exp:channel:entries channel="regions" limit="1" disable="pagination|member_data|comments" parse="inward"}
  {exp:playa:parents channel="brands" var_prefix="brands" orderby="title" sort="asc" entry_id="{entry_id}"}

  {if no_parents}
No Brands available at this location
 {/if}

      {brands:title} |
      {exp:low_variables:single var='lv-brand-biz-link' preparse:pre_entry_id='{entry_id}' preparse:pre_seg='{last_segment}'}

  {/exp:playa:parents}
{/exp:channel:entries}

And in the Low Variables preparse template

{exp:playa:parents channel="business_unit" var_prefix="bu_link" orderby="title" sort="asc" entry_id="{pre_entry_id}" field_id="68" col="region"}

  {exp:transcribe:uri path="{bu_link:comment_url_title_auto_path}"}

{/exp:playa:parents}

What happens now is that it lists out the correct brands, but in the link it outputs links to all business units and not just the one responsible for that brand in the region currently being viewed.

I'm really stuck on the logic of getting this to work. All help appreciated.

/***** UPDATE ***/
adding scan of what I've got written out on paper. May help with understanding.


texts: Member Import Error - Unable to parse XML

texts:
I am trying to import 55 members into a new site. I am using the following format:

<members>
 <member>
  <username>myuser</username>
  <screen_name>First Last</screen_name>
  <password type="text">Password</password>
  <email>myname@email.com</email>
 </member>
</members>

for the file location I have uploaded the .xml file to the root of the site and listed the name of the file without the server path.

Unfortunately the EE documentation on this topic is woefully thin.

Any suggestions as to what might be missing here?


texts: Is it safe to change the MySQL storage engine on a live site?

texts: I've got a site that will not let me create any new custom fields. On a test install I changed the MySql storage engine from InnoDB to my MyISAM, which seemed to fix it. Is this safe to do on a live site?


texts: 404 not working - must not have strict URLs

texts:
I have set the 404 page on Templates > Global Template Preferences, but it is having no effect.

I do not want to turn on 'Enable Strict URLs' as it cause several problems on some pages.
And anyway, I don't mind if http://www.domain.com/product/not-the-right-url defaults to /product, or the last channel entry in /product.

What I do want is that http://www.domain.com/not-the-right-directory defaults to the 404 page.

The problem is the setting in Global Template Preferences is having no effect on the site. All that happens is that you see the home page if you type in the wrong URL.

The site is running EE 2.9.0 on a Plesk 12.0.18 Apache Server.


texts: How can I setup a dev copy of EE before license purchase?

texts: I have built over 70 EE sites in thej last few years.  I noticed now in EE 2.8+ that it is now required to enter a license number even on a local copy.  Is there a new method to allow us to build and test before getting the license?  Maybe like using a .dev or .local domain extension or something?  I have many client licneses I can use if needed, but I do not like that option.  The reason we like to build a bit of the CMS in advance is that we typically we demo it with a client to see if the like the way it works for basic editing.  What do you all do now for your local dev copies of EE?  Is it possible to get a dev license?


texts:
I have 3 channels and relationships between them Theme >> Goal >> Issue where multiple issues can be a part of a single goal and multiple goals make up an issue.

I am flexible with which direction the relationships go (IE can have a single relationship from Goal to Theme or a multiple relationship to select multiple goals from the theme.

What I am looking for is a URL structure like example.com/red-theme/pretty-goal/balloons where red-theme is an entry in the Themes channel, pretty-goal is an entry in the Goals channel, and balloons is an entry in the issues channel.

I have a template group for issue with a template route: /{theme:alpha_dash}/{goal:alpha_dash}/{issue:alpha_dash}/

If I go to http://example.com/red-theme/pretty-goal/balloons I can successfully use channel:entries to get the balloons entry with {segment:issue}

{exp:channel:entries channel="issues" url_title="{segment:issue}" dynamic="no" limit="1" require_entry="yes"}

However - the problem I face - is that http://example.com/foo/bar/balloons also takes me to that page.

My Questions:
1) Am I going about this the right way or is there a better way to dynamically create urls?
2) If so, then how can I do a check for the proper relationship url_title from the url segments to either redirect or throw a 404?

PS brand new to EE and appreciate any help/guidance.


texts: Assets field in a grid field PHP error message

texts:
I have a grid field named 'cf_results', which has a column named 'file' which is an assets data type. The other columns are text types named 'link-text' and 'link-url'. There will either be a file or a link-url but not both.
I'm getting a set of 3 PHP error notices for every entry on the page, regardless of there being data in the assets field of an entry or not see attached screenshot. But it all seems to be working otherwise.

This is the template code:

{if cf_results}

    {cf_results}

        {cf_results:link-text}

    {/cf_results}

{if:else}

Results will be available soon.

{/if}


texts:
Is there a way to apply image manipulations to member avatars like you can with "regular" images? There's a line in the EE changelog that implies this is possible:

  Unified Upload Directories: Everything that used to be a special folder (Member photos, avatars, etc..) is now available in the File Manager and can use the usual file manipulations and other upload preferences.

However, I can't find those settings anywhere.

Or, is the only way to crop/resize avatars to use a third-party add-on?


texts:
I have EE v2.5.3 and Freeform Pro 4.0.10 among other things.

When submitting forms with admin notify turned on I get a server timeout error. The form data still submits to the db and I still get a notification email but the server hangs and eventually times out instead of loading the return page.

If I turn on admin notify it works properly, but obviously no notification, which I very much need.


texts:
I have a news page that should either display 10 results regardless of category or 10 results based on the category information in the URL.

My code is checking to see if there is a category url in the URL and if so performs a query with the category id to limit results to that category otherwise falls back to performing a full query.

I've tested my logic and my conditional and EE queries are working as expected but when I output the Stash list it's displaying results for entries that are not in the category.

Do I need to have two different list names?

{if segment_2_category_id != ''}

        {exp:stash:set_list name="news_list" parse_tags="yes" parse_depth="2"}
            {exp:channel:entries channel="news" status="open|featured" orderby="date" sort="desc" limit="10" category="{segment_2_category_id}"}
                {stash:item_title}{title}{/stash:item_title}
                {stash:item_url}{url_title}{/stash:item_url}
                {stash:item_date}{entry_date format="%F %d, %Y "}{/stash:item_date}
                {stash:item_copy}{news_content}{/stash:item_copy}
                {stash:item_entry_id}{entry_id}{/stash:item_entry_id}
                {exp:stash:set_list:nested name="item_media" context="{entry_id}" parse_tags="yes"}
                    {news_videos_images}
                        {stash:item_image}{image}{/stash:item_image}
                        {stash:item_video}{video}{/stash:item_video}
                    {/news_videos_images}
                {/exp:stash:set_list:nested}
            {/exp:channel:entries}
        {/exp:stash:set_list}
    {if:else}

        {exp:stash:set_list name="news_list" parse_tags="yes" parse_depth="2"}
            {exp:channel:entries channel="news" status="open|featured" orderby="date" sort="desc" limit="10"}
                {stash:item_title}{title}{/stash:item_title}
                {stash:item_url}{url_title}{/stash:item_url}
                {stash:item_date}{entry_date format="%F %d, %Y "}{/stash:item_date}
                {stash:item_copy}{news_content}{/stash:item_copy}
                {stash:item_entry_id}{entry_id}{/stash:item_entry_id}
                {exp:stash:set_list:nested name="item_media" context="{entry_id}" parse_tags="yes"}
                    {news_videos_images}
                        {stash:item_image}{image}{/stash:item_image}
                        {stash:item_video}{video}{/stash:item_video}
                    {/news_videos_images}
                {/exp:stash:set_list:nested}
            {/exp:channel:entries}
        {/exp:stash:set_list}
    {/if}


texts:
I have created a tell a friend form, I am using recipient_email_user to let the user add their friends email address.

In the free form docs it says this data will be posted to the database and be available for viewing in the Freeform CP Found here, I have tested it and the user gets the email, however, nothing is stored in the free form entries?

In there example they have a field named friend_email, don't know why that is a required field in the form when there is not an input with that name?

Do i have to create a field called recipient_email_user in order to store it? or should it store automatically to the form?


texts: ExpressionEngine and Magento integration?

texts:
I am getting a little frustrated with EE ecommerce modules. They are great, but just don't have the flexibility or features for our larger clients. I'm really not too keen on having two systems - it's seems like a step back in time.

However, I have used all the EE ecommerce addons and am starting to think it might be the way to go. A dedicated ecommerce platform will naturally be more powerful for serious online retailers.

I've been looking recently at Magento. I'm not 100% convinced of it yet.

I've been reading all the docs I can find that relate to integrating the two. It seems pretty straightforward on the templating side, however, I'm wondering if anyone ever found a solution to help manage users? Sharing sessions etc?

I'd be interested in hearing your views/solutions to this if you have one.

Anyone found the right solution? Or built an extension that might help?


texts: How do I add custom styles to Wygwam using a hook?

texts: I want to add an extension to wygwam that allows me to add my own customized dropdown to the toolbar with different css styles. No idea where to start. I want simple styles for pull-quotes and lists. Does anyone have an example of what they have done to achieve this.


texts:
I have a problem with one template after enabling Strict URLs - it returns 404 instead displaying content from the channel named News. The URL to open that template is like http://www.mydomain.com/index.php/news/

Template code:

    {embed="includes/header_main"}
    {embed="includes/header_two_column"}

                      {if segment_2 == ''}
                         {exp:channel:entries channel="news"}

{title}

                            {news_summary}
                            Read more

                         {/exp:channel:entries}
                    {if:else}
                         {exp:channel:entries channel="news"}

{title}

                            {news_body}

Back to news

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

                {exp:ce_cache:escape}
                {exp:random_number min="1" max="6"}

                {/exp:random_number}
                {/exp:ce_cache:escape}

&nbsp;

        {embed="includes/footer"}

Any clue why is not loading that template?

Thanks


texts: How to display pagination in following formate?

texts:
I want to display Pagination in following format

page first entry to page last entry of total entry

example : in first page i want to display 10 entry so i want to following output

1 to 10 of 100

this can be possible ? if possible please guide me.
Thank you.


texts: How do I allow users to add a snippet without having to access the template?

texts:
I want to setup a bunch of snippets (or even embeds?) and give users the ability to place these within their pages, but without having to create special templates or pre-defining where in the template each item should be.  I know I can setup channel fields that simply toggle them, but I want users to have more control in terms of where they go.  For example, I want all 'pages' to use a single template {pages/index} which has 3 columns, where the user has the flexibility to pull in different snippets in different places. Here's few examples of the snippets I'd want users to be able to place themselves:

sitemap: user should be able to add page copy then pull in the snippet in whichever column they see fit
latest news/blogs: user may want to show these on some pages and not others - maybe in different places
call to action/advertisements: some pages may need these, some not, again maybe in different places, perhaps to 'fill' blank space depending on how long their main content is
newsletter signup/quick contact forms: the user should be able to put these wherever they want

It would be awesome if you could just add {snippet_name} inside a WYSIWYG, but clearly it doesn't work.  Does anyone know how to achieve this?


texts: Using conditionals to set tag parameters

texts:
I have this opening low search result tag

{exp:low_search:results
  {if segment_2}query="{segment_2}"{/if}
  group_id="7"
  limit="4"
  paginate="bottom"
}

I wanted to do more checks on segment_2 before deciding if I should set query param(checking if the segment is for pagination such as P1 or P4).

{exp:low_search:results
    {if segment_2 == '' OR {exp:segment_search keyword="/^P\d+$/" segments="2" regex="yes"}}{if:else}query="{segment_2}"{/if}
     group_id="7"
     limit="4"
     paginate="bottom"
}

However, I don't think this will work. I think it has something to do with the parse order where you can't set complex conditionals inside a tag.

If so, is there an alternative way to set the query param?

UPDATE: The reason I am asking is because the code below does not work

{if {segment_2} == '' OR {exp:segment_search keyword="/^P\d+$/" segments="2" regex="yes"}}
    {exp:low_search:results
        {if segment_1 == "foo"}group_id="6"{/if}
        {if segment_1 == "bar"}group_id="7"{/if}
        limit="4"
        paginate="bottom"}
{if:else}
    {exp:low_search:results
        query="{segment_2}"
        {if segment_1 == "foo"}group_id="6"{/if}
        {if segment_1 == "bar"}group_id="7"{/if}
        limit="4"
        paginate="bottom"}
{/if}

I always get a Parse error: syntax error, unexpected T_ELSE in the code where I don't set the query param.


texts: Next/Previous Entry Linking + Structure showing entry from different channel

texts:
I have entry linking working in multiple templates on my current EE site. In one of my channels, when I get to the end of the loop, it's displaying a next link to an entry in a different channel. It is the next sequencial entry ID though. There isn't a previous link when i'm at the first entry in the loop. The entry that is displaying in the in correct channel shares the same parent page.

Here's my structure hierarchy

About Us
 - Leadership
   - has listing entries that have next/previous entry linking. Last entry has entry_id 106

 - Galleries
   - Video Galleries
     - Page 1 Child page with entry_id 107
     - Page 2

Next/Previous entry linking logic

    {exp:channel:prev_entry channel="leadership"}
            Previous
    {/exp:channel:prev_entry}

    {exp:channel:next_entry channel="leadership}
            Next
    {/exp:channel:next_entry}

I tried to just do a quick hack and add entry_id="not 107" on the next_entry tag but that broke the next link for all listing pages. Entry ID 107 has it's own channel for videos, so it's not a rogue entry. Any one know how to fix this?


texts:
Is there a way to change the status of a number of entries at one time?

I know you can select a number of checkboxes and then edit all, but thats still time consuming if you have pages of entries. (In my case, many thousands)


texts: Display a list of allowed entries in a different channel's field for a selected author

texts:
I get stucked.
I've to do this:
I've a channel "Projects" where a Super Author write a list of projects.
I've another channel "Articles" where Authors can write articles and make a unique relationship with a single entry in "Projects" channel.
But only Super Author can allow which Author can select that single project.
So in a field in "Articles" entry for that author, it should be listed only allowed "Projects" entries for that author.

EX: There is S_A (Super Author), A_1 (Author 1), A_2 (Author 2).
S_A make Prj_1, Prj_2, Prj_3 and assign that permissions:

Prj_1 -> A_1
Prj_2 -> A_1;A_2
Prj_3 -> A_2

A_1 when write an article in "Articles" channel can select from a dropdown only Prj_1 & Prj_2, and can't see Prj_3 in the list;

A_2A_1 when write an article in "Articles" channel can select from a dropdown only Prj_2 & Prj_3, and can't see Prj_1 in the list;

I've done this steps:
I've created 3 different channels:

- Authors (with plug-in Profile:Edit);
- Project;
- Articles;

In Projects i've created this channel fields:
prj_author that is a Playa field to allow S_A to select allowed Authors.

In Articles i've created this channel fields:
art_projects that is a Playa field to show all the entries in the "Projects" channel, but here i can't filter entries for the selected author in prj_author playa field.

Please can somebody can help me?
I can offer a beer :D


texts: How to edit what is considered safe html for comments

texts: I'd like to be able to edit what is considered safe html for comments. I searched devotee but there's no addon making this easy to do so I guess I need to hack the core files. Where would one go to do this?


texts: How secure is EE? Will it pass penetration tests?

texts:
I'm looking into the possibility of using Expression Engine to build secure sites. How does the EE core hold up against penetration tests and vulnerability scans that check for things like cross site scripting and SQL injection?

Thanks,
RS


texts: Using Solspace Calendar, repeating events with with a start dates over a year old don't show up, if when "Until" field is set to far in the future

texts:
Here is the search we're using in the template.

{exp:calendar:events
    date_range_start="today"
    date_range_end="today"
    calendar="1"}

{/exp:calendar:events}

The events we are looking for have a start/end date in the past but are set to repeat until a certain date (usually in year 2048).

It works fine if the event's start date is less than 1 year old.  As soon as it's older than 1 year, the even won't show up, even if the Until field is set to 2048.  Any ideas?


texts: Problem with ee()->input->post in plugin

texts:
The following plugin code works fine for me locally running mamp and php 5.5.3, but returns nothing on our dev server running php 5.5.8:

$rating     = ee()->input->post('rating');
return $rating;

Both environments are running EE 2.7.3. The template code is as follows:

<form id="ratingform" action="/globals/process-save-and-rate/{last_segment}/10/" method="post">
    <input type="text" name="rating" id="rating" value="4">
    <input type="hidden" name="XID" value="{XID_HASH}">
    <button type="submit">Submit</button>
</form>

What is in 'process-save-and-rate' is as follows (and I know this should be a module to process the form):

{exp:switchee variable="{segment_4}" parse="inward"}
    {case value="1"}
        {exp:pp_general:save_property entry_id="{segment_3}" myaction="1"}
    {/case}
    {case value="2"}
        {exp:pp_general:save_property entry_id="{segment_3}" myaction="2"}
    {/case}
    {case value="3"}
        {exp:pp_general:save_property entry_id="{segment_3}" myaction="3"}
    {/case}
    {case value="10"}
        {exp:pp_general:save_and_rate entry_id="{segment_3}"}
    {/case}
{/exp:switchee}

If anyone can shed any light on why this is not working, I'd be very grateful. As I say, I'm just getting a blank screen whereas it should be outputting the value of the $rating variable.

Secure forms is turned on in EE. Turning it off and removing the XID hash gives the same result.

I'm not seeing any php errors so am a bit stumped.

Jim


texts:
I am trying to use the parameter {category_name} a css class on my site click here

on the slide show, you'll notice a green tag which says, "sport" underneath that tag is another tag labelled "energy" I am using the category name's to call out this css properties. I have noticed in inspector all the category names are appearing in the script however i only want one category name to appear.

I have applied the following code:
              `

            {exp:channel:categories channel="blog" style="linear" show_empty="no" }

    {/exp:channel:categories}`

what other parameters do i need to apply to only display one category name per post?


texts: Charge wont show Card Holders name on success page, ideas why?

texts:
I simplified the form what Im using with Charge atm. to point out with what I have issues.

I have this form:

{exp:charge:form
                form_class="form-horizontal"
                form_id="charge-form"
                return="client/thankyou"
                return_error="client/errors"
                plan_amount="69"
                plan_currency="eur"
                plan_length="12"
                on_success="premium_membership"}

                       Name on the Card

                          <input type="text" class="form-control" id="card_name" value"" data-stripe="name" />

{/exp:charge:form}

and this is on the "receipt" page:

{exp:charge:info hash="{segment_3}"}

 Name on the Card: {card_name}

{/exp:charge:info}

But it does not show the name put to the field. Stripe does take and save that data to proper place on their end, but on my site, its blank.

I've looked at the charge documentation that clearly says card_name is available, even its optional.
http://squarebit.co.uk/software/expressionengine/charge/docs/tags#tag-info

When doing business to business payments, I need the name of the client to be included to receipt to make it legal for added to accounting on the client end.

However, if I use just customer_name, I do not get the right data saved to Stripe end. And I cant use data-stripe for customer_name because it is not the same as the name of whos paying.

What I have might done wrong, or does the card_name has to be inside of specific tags or so?

All other fields like card number, and card used is coming out as normal, and the amount paid.

Please, i've heard that there is thousands of ppl who uses Charge, so this has to be something that has easy solution?

Using EE 2.9.2 running on PHP 5.6.2

Thank you.


texts:
I have a page where I'm outputting news entries. And these all are assigned to categories. And based on these, I have a jQuery plugin that sorts the entries visible based on the categories.

So my markup basically looks like this:

All

    {exp:channel:entries channel="News" dynamic="no" show_empty="no"}
        {categories}

{category_name}

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

Now, this outputs the categories, but I only want unique ones. Right now, this outputs the following:

All
Photo
Courses
Arrangements
Photo
School
Arrangements
School

You probably get the idea. How can I output only unique categories?


texts: Stash not overwriting variable - variable stays same after 2nd setting

texts:
I'm having a bit of trouble with getting Stash to change a variable. I'm using it to output a heading in search results when it's not the same as the last result. Here is my code:

{!-- Set the sorthead variable to something random --}
{exp:stash:set name="sorthead"}flibberdigibbet{/exp:stash:set}

{exp:low_search:results
    channel="magazine-articles"
    status="not closed"
    limit="10"
    paginate="both"
    disable="member_data|category_fields"
    category="1"
    orderby="articles-sorthead"
    sort="asc"
 }

      {!-- check the variable before setting --}
      before: {exp:stash:get name='sorthead'}

      {!-- output heading if it's not  the same as the last one --}
      {if "{exp:stash:get name='sorthead'}" != "{articles-sorthead}"}
          <h2>{articles-sorthead}</h2>
      {/if}

      {!-- set the variable so that next time we can check again
           THIS IS NOT HAPPENING FOR SOME REASON --}
      {exp:stash:set name="sorthead"}{articles-sorthead}{/exp:stash:set}

      {!-- check it has worked --}
      after: {exp:stash:get name='sorthead'}
{/exp:low_search:results}

So I don't really know what is going on, but both before and after output as 'flibberdigibbet' and the setting never seems to happen the second time. unless the first set is happening on every loop of the low search tag - but I don't think it should be!

Hope you can help!


texts: Trouble saving templates especially if there are more than a few lines in it

texts:
I have this weird problem where templates are sometimes saved and sometimes not. I would guess it has to do with a memory issue of some kind but I don't know where to look.
I run EE 5.3.2 fresh install on PHP 7.2
I don't get an error from EE but from the server. So maybe it's a server setting. But again, where to look? Please help me out.
This is the server error message I get in my browser:
Forbidden

You don't have permission to access /admin.php?/cp/design/template/edit/27 on this server.
www.websitename.nl


texts: CP Content>Edit "edits" and Content>Edit>xxxxx "Publishes"

texts:
I have a small but strange behaviour showing up in the CP following an upgrade of ee from 2.4 to 2.9.2.

When you navigate via the top menu bar to content>edit and hover over "edit" the link - it takes you to "CP Home>Edit" page as it should.

But when you navigate further in the drop down menu to any of the channels (Content>Edit>Homepage for example) the link that is shown is ../index.php?/cp/content_publish/entry_form&channel_id....

If you click on Content>edit>homepage you are delivered to an empty Publish screen for homepage channel (the breadcrumb shows: CP Home>Publish New Entry>Homepage)

Although I had quite a bit of fiddling to do to get all my modules and extensions upgraded and working following the big upgrade of ee, the actual ee upgrade seemed to go without a problem, so I'm a bit lost as to why I should be seeing this.

Site otherwise functional - its just very annoying!

Any ideas or help much appreciated.
James.


texts: Simple exp:channel:entries not working on specific template

texts:
I have a very simple exp:channel:entries tag that works on several template files but not on the specific one I want to use it on. I am new to Expressionengine, but from everything I know about it, what data you can should not depend on context. But that is how this is acting sort of. I have also tested to see if it is some error in the template file by deleting everything but this tag and it still does not work in this location. Can anyone please explain why this tag would not work in this specific template? Thanks all for the help.

{exp:channel:entries
channel="insights"
disable="categories|category_fields|member_data|pagination|trackbacks"
limit="2"
} {/exp:channel:entries}


texts:
Can't quite figure this one out. Trying to set and then get "program_sponsor" within stash:content

program_sponsor is returning blank with stash:get

{exp:stash:set parse_tags="yes" parse_conditionals="yes"}
    {exp:switchee variable="{segment_2}"}
        {case default="yes"}
            {stash:content}
                {exp:channel:entries channel="programs" url_title="{segment_2}" dynamic="no" limit="1"}
                    {stash:program_sponsor}

Who loves bacon?

                    {/stash:program_sponsor}
                {/exp:channel:entries}

                {!--
                    chunck of other channel entry code goes in-between here
                --}

                {!-- Need to output this variable set earlier above --}
                {exp:stash:get name="program_sponsor"}

            {/stash:content}
        {/case}
    {/exp:switchee}
{/exp:stash:set}


texts: Error when submitting new entry via the Channel Entries API

texts:
If member publish entry I want publish some info to another channel
I wrote extension, but it doesn't work and always I see 'An Error Occurred Creating the Entry'
I need help

This is my code

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Calladder_ext {

    public $name           = 'Call adder';
    public $version        = '1.0';
    public $description    = 'Add call when publish to channel';
    public $settings_exist = 'n';
    public $docs_url       = '';

    private $settings = array();

    /**
     * Constructor
     *
     */
    public function __construct($settings='')
    {
        $this->EE =& get_instance();
        $this->EE->lang->loadfile('calladder');
    }

    public function add_call($entry_id, $meta, $data)
    {
        if( in_array( $data['channel_id'], array(4,5,6) ) )
        {
            //prepare data
            // some code...

            $datap = array(
                    'title'         => $title,
                    'channel_id'    => 7,
                    'field_id_48'   => $phone,
                    'field_id_47'   => $name,
                    'field_id_50'   => $email,
                    'field_id_49'   => $comment,
                    'field_id_88'   => $entry_id
            );

            $this->insert_entry(7, $datap);

        }

    }

    private function insert_entry($channel_id, $data)
    {
        $this->EE->load->library('api');
        $this->EE->api->instantiate('channel_entries');
        $this->EE->api->instantiate('channel_fields');

        $this->EE->api_channel_fields->setup_entry_settings($channel_id, $data);

        if ($this->EE->api_channel_entries->submit_new_entry($channel_id, $data) === FALSE)
        {
                show_error('An Error Occurred Creating the Entry');
        }
    }

    public function activate_extension()
    {

        $data = array(
            'class'     => __CLASS__,
            'method'    => 'add_call',
            'hook'      => 'entry_submission_end',
            'settings'  => serialize($this->settings),
            'priority'  => 2,
            'version'   => $this->version,
            'enabled'   => 'y'
        );

        $this->EE->db->insert('extensions', $data);

    }

    public function disable_extension()
    {
        $this->EE->db->where('class', __CLASS__);
        $this->EE->db->delete('extensions');
    }
}
?>


texts: Expression Engine MSM with 2 main sites and 5 subdomains

texts:
Our main question is how do we configure Expression Engine to handle 2 main site and 5 subdomains using Multi Site Manager (MSM), keeping in mind that the development version of the main site (ee28.sode.org) is currently running as a subdomain.

We currently have three sites running on two different versions of Expression Engine on Nexcess eep-100 hosting plan. These three sites have three respective folders on the server.

1. www.sode.org

EE1
set up as the master domain for which Nexcess creates a directory
at the root level of the account
This site is live
This site will become members.sode.org running on EE1 so we don't have to recreate
the membership portal

2. www.plungede.org

EE2.8 (base EE install for Multi Site Manager MSM)
set up as a secondary domain for which Nexcess creates a directory at the root level of the account
This site is live

3. ee28.sode.org

EE2.8  (added with MSM to the plungede.org install. Shares system folder w/ plunge and and templates are inside  plungede.org folder on server
Set up as secondary domain for which Nexcess creates a directory at the root level of the account
This site is in development site
This will become www.sode.org
This will hold the 5 microsites (subdomains).

They are each set up as a subdomain and Nexcess creates a directory for each inside the secondary domain directory of sode.org on the server.

Is it possible  to configure Expression Engine to handle 2 main site and 5 subdomains, keeping in mind that the development version of the main site (ee28.sode.org) is currently running as a subdomain.

Please feel free to ask questions for clarification as we are a little confused ourselves!


texts:
The title may be deceiving and I may be missing something exceptionally obvious but I am trying to display a series of entries by category that link to external websites

The basic outcome should be like this:

Category 1

    Site one
    Site two
    Site three

Category 2

    Site four
    Site five
    Site six

I tried the basic Category Archive approach:

{exp:channel:category_archive channel="gardens" style="linear"}
    {categories}

{category_name}

    {/categories}
        {entry_titles}
            {title}

        {/entry_titles}
{/exp:channel:category_archive}

This gets the correct structure but it is looking for an internal reference and simply appends the external URL to the site url.

After some searching on StackExchange I found this option:

  {exp:channel:category_archive channel="botanical_gardens" style="linear"}
    {categories}

{category_name}

        {exp:channel:entries channel="botanical_gardens"}
          {title}

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

However it displays all the entries under each category. I need something that merges the functionality of these two options and allows the URL to be to an external site.


texts:
One of my fields is a channel in a select dropdown. Can I add option groups in

Jumpstart > CP > Home > Administration > Channel Fields >Edit Field ?

<select>
  <optgroup label="Swedish Cars">
    <option value="volvo">Volvo</option>
    <option value="saab">Saab</option>
  </optgroup>
  <optgroup label="German Cars">
    <option value="mercedes">Mercedes</option>
    <option value="audi">Audi</option>
  </optgroup>
</select>


texts: Cannot Upload File Thumbnail could not be created for the image. Please make sure the thumbnail directory is writable

texts:
EE 3.4.0
Windows 10

So I haven't seen this stick it's head out of the closet in a while... I know it's discussed frequently, but nothing is allowing this to go through.

Channel Images is fine, gives me no issues on uploads deletes, etc, but native File (images) is giving me hell. Full permissions given, but still no dice. Tried the usual things first... Delete thumbs folder, etc... Any ideas how to get past this?


texts: Front end login error - "not authorised to perform this action"

texts:
The Problem: When trying to login via the front-end as a member, the error "you are not authorised to perform this action" appears. The url for the error page is that of another MSM site. If I go to original site, I am logged in as that user.

My Setup:
- EE version 5.5.2
- Multisite Manager

Require IP Address : NO
User Agent for Login : NO
Secure Forms: NO
Deny Duplicate Data: NO
Sessions are using cookies only

Blacklist module: not installed
Securitee - Installed but with minimal settings active.

I have tried the following to no avail:

Logging in via default EE member templates and via template created
with Freemember.
Removed "Freemember" and "User"
Tried from different device and different IP Address
Tried disabling all extensions using config.php
Tried removing my htaccess
Clearing site cache, and browser cache
Creating new members,
Signing onto front end as superadmin

I noticed in my config.php I have a token for $config['XID'] =
Should this be there? I have read that this can cause such issues.

Please help - Im not sure what to try next.

I went onto Site3 Front end and I created a user in the Members group. When I login from the front end of either Site1 or Site2, it all works okay, (even thought I signed up as a member to Site3.) But it wont let me login nicely to Site3! The url is redirecting to Site1 first saying im not authorised.


texts: How to correct misformatted URLs in input

texts:
I'm trying to use Low Replace to correct URLs in a standard text field in EE.

Sometimes the URL is inputted correctly, for example http://www.a-website.com other times they are inputted incorrectly ie www.another-website.com

I think I nearly have the solution, but the colon after http isn't being rendered on the page, so the corrected URL for the above example comes out as http//www.another-website.com. Please see my code below.

{exp:low_replace find="www." replace="http://www."}

Website

{/exp:low_replace}


texts:
Has anyone tried or succeeded in building an ExpressionEngine Lexer that could be used to build out customized code hinting and coloring?

I haven't seen one out there, but didn't know if I was just overlooking things or not


texts: How can I get all the possible values allowed in a multi-select in my template?

texts:
I'm using EE 3.5.3 and I have a "use-area" field (in a grid of products) that's a multi-select box.

In the template, i need to make a dropdown so you can filter the products by the use-area. Each product can have more than one use-area.

Is there a way to get the values possible for the multi-select, or do I have to hard-code them?


texts: how to revert to default sort order if segment doesn't exist?

texts:
I have one particular page that is being sorted according to the 3rd segment. If that segment doesn't exist, I'd like to have orderby revert to it's default. Basically, if {segment_3} doesn't exist, then sort this way. How would I acheive this?

   {exp:channel:entries channel="news" orderby="{segment_3}|author_id" sort="desc" limit="9" paginate="bottom"}

or

{exp:channel:entries channel="news" orderby="{segment_3} OR author_id" sort="desc" limit="9" paginate="bottom"}


texts: Template editor malfunction after update to 2.9.0

texts:
Yesterday I updated one of my site to 2.9.0 (from 2.5.x ... yes I know ...) anyhow everything worked well except that the template editor is not working as before. Meaning:

I can't insert tab spaces anymore as then the editor move my cursor to the next field (Preference, Template name)
The Preferences, Access and Template notes block are always visible and I cannot collapse them anymore....

I'm just rebuilding the site of my customer and editing thousands of lines like this will not be easy ;-)

As anyone seen this before? thanks in advance for any hint.

Steven


texts: Is there a way to use Low Search to return results by author?

texts: We would like to be able to perform a free text search using an author name and return all posts credited to that author, is this possible with Low Search?


texts: Exp-resso Store : Trade and web customers

texts:
First post here, have read the faq etc and actually found a similar question, but rules say I should not tag a question onto an answer.

( Trade prices in exp:resso Store )

Scenario : Website currently only sells to trade. Website displays all info apart from price to visitors. Trade clients have a manually assigned login and prices are then displayed. Ordering is carried out off site.

Client would like to offer online ordering to existing Trade customers, and potentially general web customers.

Would it be possible to set up a Trade Store field and a Customer Store field within the channel and then use conditionals to display within the templates? There will obviously be some duplication of entry in the channel entry, but this appears to me to be the easiest work around.


texts:
I have a slight issue.. Actually a major one!

The site I am working on is built in expression engine and it was hacked and whoever has done it has changed the password and the client has no idea what the original email is when the site was first built.

Is there any way at all I can get into the backend of the website?

Hoping someone can help!

Thanks!


texts: I've checked the existing Language Packs for ExpressionEngine and to no avail there is none for Japanese. Does anyone know where I can get this?


texts: I am trying to create my own settings form (EE5) using the documentation, but when i am using the function settings_form() & save_settings() and calling the "return ee('View')->make('my_extension:index')->render($vars);" it will not save. It displays correctly and submits the form but doesn't save. When I run the settings() function it works fine, but I need to create some custom areas. Anyone experiencing similar issues with it not saving.


texts: How do I link entry to the correct section when pulling from multiple channels?

texts:
The search results feature allows you to use {auto_path} to take you to the correct template_group/template, however, I need a similar solution for regular garden variety channel entries.

I have a news feed section on the home page that displays the 3-5 most recent entries from five different channels. The code is like this:

Recent News Posts

  {exp:channel:entries channel="community|government|education|business|history" limit="3"}

{title}

   {/exp:channel:entries}

Currently I have a generic "news" placeholder in the path, but what I need is to direct each entry to its appropriate section. Outside the search results {auto_path} I have not been able to find anything. I am open to suggestions.


texts: ExpressionEngine Automatic Category if not one set

texts:
I have a channel called blog, and i have just created a category group with some categories. I have assigned the group to the the channel "blog", as it stands each entry has no category assigned, is it possible to use a default category for the exisiting and new entries created until another is selected.

For example:

Categories:

General
Another category
Another category
Another category

Basically all the entries to automatically have General as a category unless i go into the entry and chance to a different category.

Or do i have to go into every entry and set a category?


texts: Turn profiler and debugger off for specific templates (called via AJAX)?

texts:
I have a page where I'm calling several separate sections via ajax. When I am logged in each of these sections pull in their own "version" of the profiler and debugger.

Is it possible to disable in these sections while keeping it on for the main template?


texts: Solspace Calendar displaying a list of events and their individual occurrences

texts:
I need to display each calendar and the related events. The events are reoccurring and I want the dates and times for each occurrence to appear under the event title. To save my life I can't figure it out.  I don't have much experience with Calendar and I've already spend a crazy amount of time trying to figure this out.  It has to be simple but no luck.  Below is an example of what I'm needing to display.

Calendar Title

Event Title

Day and Time
Day and Time

Event Title

Day and Time
Day and Time
Day and Time

Calendar Two Title

Event Title

Day and Time
Day and Time

Each event has various days and times throughout a given week and I want to avoid displaying the event name over and over.  I just need it to display cleaner.


texts:
Before 2.8.1 upg i had {if my_matrix_field:total_rows >= 2} but now i have to remove these so my page loads.

All EE and add-ons are current

thanks

Milke2


texts:
this may not be due to EE, but my site runs on EE so I want to ask.

We are randomly getting css and js files returning a 404 error.  They exist, and a refresh loads them properly but it's hardly a good user experience to have a page load without CSS 10% of the time.

ex:     nothing special about that being in a template right?  Been using EE for almost 2 years and this just seemed to crop up.

Any ideas on where to look?  I am running EE 2.8.1 on a windows server with IIS


texts: Details on EE 2.7.0 Markdown Plugin and field format

texts:
Looking at the Changelogs for EE 2.7.0 I see there is now:

Added Markdown plugin and field formatting option

…but I don't see any details in the documentation. Is there any information available on the new plug-in and how it works?


texts:
Does anyone else experience issues with their templates when they nest code comments?

I've inherited a project with some code already commented like this

code code code
code code code
{!-- ... some code here ... --}
code code code
code code code

Then I've come along and commented more code out like this:

code code code
{!--
code code code
{!-- ... some code here ... --}
code code code
--}
code code code

Only to find that the templates completely break.

So i've ended up doing something similar to this:

code code code
{!--
code code code
<!-- ... some code here ... -->
code code code
--}
code code code

Which isn't ideal if I ever come back to this code as it has a completely different (undesired) effect.

Is there something I'm missing here?


texts: admin backend template (CP styles) not fully showing

texts:
Hi Folk I'm trying to learn the basics of EE2 and have setup a test rig using MAMP PRO I got everything working. I'm basically converting one of my basic static websites into a EE2 driven site.
However when I tried to login to the admin area yesterday I've seem to be missing most of the formatting i.e I can still login however the back-end interface is mostly missing. the front end is still working okay. What do you think has happened and how do I get the back-end fully back with out doing a full install again?

Jonathan


texts: Do the Expresso Store shipping methods have to be displayed in a dropdown?

texts: Is it possible, in Expresso Store, to display the shipping methods not in a dropdown, but in radial buttons or tick boxes instead? I'd like to display shipping methods side by side in designed boxes with radial buttons.


texts: Search Members and Channel Entries at the same time?

texts:
Is it possible to setup a search form that searches both Members and Channel Entries.

I want to then show a single results page where i can show both the members and channel entries that come from the search request.

I have Low Search and Solspace User.

Possible?


texts: Get the current entry/template fieldtypes in a plug-in

texts:
I'm working on my first, more complex add-on and had a question on gathering field properties.

If I create a tag pair, which wraps a field inside a template, what would it take to get the tag properties of that fieldtype?

In other words, in the template I would have:

{exp:my_tag}{custom_wygwam_field}{/exp:my_tag}

Then in my pi.my_tag.php file, I would have something like this:

class My_tag {

public $return_data;

/**
 * Constructor
 */
public function __construct()
{
    $this->EE =& get_instance();

    $tag_content = $this->EE->TMPL->tagdata;

    // Gather the tag/field properties here...

    // Make whatever changes here...

    // Return the new content
    $this->return_data = $new_tag_content;
}


texts: Newrelic Application Name set by default to: ExpressionEngine v2.7.0

texts:
Just upgraded to EE 2.7.0. We already use NewRelic for a while to monitor server and application performances.

After upgrading the website to EE 2.7 the site shows up in the Newrelic Application list as: "ExpressionEngine v2.7.0" instead of with the sites name.

Where can I change these, apparently default settings, to show the sites name instead?


texts: If conditional to test if an entry does not have a relationship

texts:
I have a relationship field, and I want to display entries only if they are NOT populated with the relationship.

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

            {series_association}
            here's what doesn't seem to be working --> {if series_association:title == no_results}

{title} -
{message_date format='%F %j, %Y'}

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

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

{message_summary}

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

    {/exp:channel:entries}

How would I code this to make it show only entries without a relationship?


texts: autosave does not work as expected. Specifically RTE and WYGWAM

texts:
EE's autosave is not entirely clear in the Docs. Here are the facts:

Autosave (tested versions 2.5.5, 2.6.1, 2.7.2) is on by default.
http://ellislab.com/forums/viewthread/222582/#1023950

You can 'disable' it by a hidden config var either in a bootstrap file, to your config or through the CP global vars. Set the value to 0.
http://ellislab.com/expressionengine/user-guide/general/hidden_configuration_variables.html#autosave-interval-seconds

In my testing the default is set to 60 seconds. (I haven't searched through the source code, this is from using a stop-watch).

What's not clear in the docs is what triggers an autosave. The timer starts from the moment a value is added to an entry field (Publish/Edit screen). So editing an existing entry does nothing until something has been altered on the page.

To test: edit an existing entry, change the title, wait 60 seconds, autosave posts a message next to the 'submit' button. (in testing changing autosave-interval-seconds to 10, works as expected).

When amending an RTE or WYGWAM field autosave does not execute.

Any help confirming this, help from Ellislab or Pixel & Tonic would be appreciated.


texts:
If have a channel called 'scripts' and i want to display how many entries are in the channel filtered by the categorie they are in.
For the category id 5 it should returns 4 entries. But it is displayed like 4 4 4 4. How can show the {absolute_results} only once?

{exp:channel:entries channel="scripts" category="5" disable="category_fields"}
    {absolute_results}
{/exp:channel:entries}

Update (full code):

{exp:channel:categories channel="scripts" style="linear"}
    {exp:channel:entries channel="scripts" category="{category_id}" disable="category_fields"}
        {if absolute_results == absolute_results}
            <strong>{absolute_results}</strong>
        {/if}
    {/exp:channel:entries}
{/exp:channel:categories}


texts: Uploads to wiki directory fail from form on Special:Uploads page

texts:
I'm using the default wiki theme and can't get file uploads to work from the Special:Uploads page. The form allows me to select a file, submit the form, (no error is thrown), but the file does not appear in the directory or the Special:Files page. I'm logged into EE as Super Admin.

The directory is writable from within CP. (It uses the same preferences as my other working directories). If I upload a file through the CP it still does not appear in Special:Files.

EE 2.8.1


texts:
We're getting a Fatal Error when creating a new entry or update anything in the control panel.
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 61440 bytes) in /var/www/vhosts/DOMAIN/cp/ee/legacy/database/drivers/mysqli/mysqli_connection.php on line 118

Memory limit is set to 256 and should be enough. We've got a couple of modules like Structure, Publisher Lite, Bloqs, CE Cache and a couple more.
There are about 750 entries.

We could increase the memory but it seems a bit much. Is this normal memory usage for an Expression Engine install?


texts: blank lines in parsed templates where template tags / logic exists

texts:
I am noticing a lot of extra blank lines for the lines where my template logic exists.  I notice this mostly when I'm building javascript.

How do I go about preventing this?

Example:

<script>
{exp:....}
{datablock}
//do some stuff here
{/datablock}
{/exp:...}
</script>

will output:

<script>

//do some stuff here

</script>


texts:
New channel entries have stopped displaying on the front end regardless of channel or MSM site.

I see the new entry in EE backend, but it's not showing on the front-end pages/site.

{exp:channel:entries channel="test" site="customers" show_expired="yes" show_future_entries="yes" dynamic="no" status="open|not closed"}
{title}
{/exp:channel:entries}

What's odd is if I add limit="100" (or any number for that matter, and even other tags as well) it will start displaying the new channel entry.


texts: Is it safe to get all tag params in one go with $this->EE->TMPL->tagparams?

texts:
Apologies if this is very obvious for experienced addon devs, but I'm experimenting with writing more bespoke plugins rather than gluing together other people's...

I know the official way to fetch parameters is one-by-one by name with $this->EE->TMPL->fetch_param('key'), but I'm currently writing a plugin in which I'd like to iterate over my tag's parameters without having to define in advance what those parameters are in my plugin class.

I see that I can access the tag parameters array directly via $this->EE->TMPL->tagparams, but is it safe to do so?

As far as I can see from reading the Template parser source, fetch_param() just does a bit of tidying up to ensure tag params are uniformly formatted and returns false if a requested param is not set, neither of which are a concern in my use case. However, I want to be sure I'm not introducing unnecessary fragility (or indeed a vulnerability) into my plugin inadvertently.


texts: How to display ONLY entries that have at a particular field present (like image)

texts:
How can I display entries that only have a particular field completed.

In my case I am displaying all entries but would like to exclude any entries that have no image field completed. The image field is a matrix field.

Thanks
Sinan


texts: Is there a way to hide empty fields from showing up in the email notification when using EEHarbor Forms?

texts:
I would like to "hide" the empty fields in my admin/user email notifications. Right now it's outputting all of them when I do:
{form:fields}
{field:label} : {field:value}
{/form:fields}

I've tried using conditionals as well but nothing works.
(The Forms module was previously known as DevDemon Forms.)


texts: Module development: Any reasons creating catch-all action is a bad idea?

texts:
When developing a website in EE, I often create custom modules to accomplish some task, such as processing a custom form, etc. I started creating 'actions' for each form, but this grew inconvenient during development, because I would have to uninstall/reinstall, or write some 'update' code, to incorporate new action_ids (or manually add them to the exp_actions table.

My current workaround is, for any new module, to create one catch-all 'action'. So if my module was called 'Module', my action would be called 'module_do'. In my mod.module.php file, I would declare that function like so:

function mailchimp_api_do(){

    $function = $this->EE->input->get_post('function',TRUE);

    $accepted_functions = array(
        'do_that_one_thing_you_do',
        'do_that_other_thing_you_do'
    );

    if(in_array($function,$accepted_functions)){
        //call that function
        $this->$function();
    }

}

That way, I could code up my forms to post to a URL like, for instance:

/?ACT=##&function=do_that_one_thing_you_do
/?ACT=##&function=do_that_other_thing_you_do

But if I used a function not in my $accepted_function array, like:

/?ACT=##&function=do_something_you_dont_do

Nothing would happen.

So, as I build out my site, I could add new actions, sort of, by just adding to that $accepted_functions array, and using &function=my_new_function in my URLs...

This has worked nicely for me, and I haven't yet developed any modules that are out in the wild for others to use. My question is, is this a bad practice, or are there any reasons this is bad form, or unsecure?

Thanks!


texts:
SEE: http://ellislab.com/expressionengine/user-guide/modules/channel/custom_fields.html#variable-pair-usage

I have my images resized to multiple thumbnail sizes. How do I access the url, height, and width of a specific image thumbnail? I tried something like this:

{my_image_file:150x100}
   {url}, {height}, {width}
{/my_image_file:150x100}

It didn't seem to work. Instead, it looks like I was getting the original image (instead of the thumbnail). Suggestions?

Note: I'm using Matrix. Not sure if it matters. But there is an outer tag pair to loop through all the my_image_file.

UPDATE 1:

I thought this worked:

{my_image_file}
   {url:150x100}, {height:150x100}, {width:150x100}
{/my_image_file}

It only worked for url


texts:
{exp:ce_img:single
    allow_scale_larger="yes"
    crop="yes|center,center|0,0|yes"
    filter="auto_sharpen"
    hash_filename="yes"
    height="{embed:height}"
    parse="inward"
    src="{exp:stash:get name='default-profile-image'}"
    url_only="yes"
    width="{embed:width}"
}

It seems like CE Image is ignoring the embed values for height and width. I've verified that the calling template is indeed passing the correct values and that the template that this CE Image tag is in can access those values. When I hard code numeric values for height and width, it works as expected. The problem only seems to occur when I try to use the embed variables.

I already have parse="inward", which was needed for the Stash variable to work. Any ideas what is wrong?

UPDATE 1:

Since it appears that the Stash variable works, I decided to try setting the embed variable to a Stash variable:

{exp:stash:set parse_conditionals="yes" parse_tags="yes"}
    {stash:height}{embed:height}{/stash:height}
{/exp:stash:set}
{exp:stash:set parse_conditionals="yes" parse_tags="yes"}
    {stash:width}{embed:width}{/stash:width}
{/exp:stash:set}

Then I used the Stash variable as the parameter value in CE Image:

{exp:config_variables:get name='no_protocol_site_url'}{exp:ce_img:single
    allow_scale_larger="yes"
    crop="yes|center,center|0,0|yes"
    filter="auto_sharpen"
    hash_filename="yes"
    height="{exp:stash:get name='height'}"
    parse="inward"
    src="{exp:stash:get name='default-profile-image'}"
    url_only="yes"
    width="{exp:stash:get name='width'}"
}

It still seems as if CE Image is ignoring the parameter values for height and width.

Within the template with the CE Image tag, I see the proper values being outputted by these:

{embed:width}

{exp:stash:get name='width'}

UPDATE 2:

I enabled template debugger and noticed this:

Embed Variables (Keys): author_id|width|height
Embed Variables (Values): 175|{img_base_dimension_md}|{img_base_dimension_md}

{img_base_dimension_md} and {img_base_dimension_md} are snippets and are being passed from the embed:

{embed='test/get-image' author_id='175' width='{img_base_dimension_md}' height='{img_base_dimension_md}'}

If the values are just the string interpretation of the snippets, then I don't see how I am getting the snippet values when I output them in the
.


texts:
I use %l in a Timestamp which results in eg. Friday. But since I'm on a Swiss server It should say Freitag. How do I set this to grab the correct translation? Is this a server thing?

Thank you.


texts: Using Low Search to ONLY search categories and Solspace Tags

texts:
I'd like to set up Low Search to only search category names and tags. I haven't been able to figure out a way to combine Low Search and Low Search Tag to just return results from category and tag names.

I have two category groups:
Topics (group_id="2") and Audiences (group_id="11").

There are currently 282 tags set by the client using Solspace Tag 4.1.1.
(group_name="default") (group_id="1")

Here's my most current attempt:

{exp:low_search:form
    collection="speakers"
    search_mode="all"
    result_page="search/results"}
{exp:tag:cloud tag_group_name="default"}

  <input type="text" class="text" name="keywords" id="textbox"  style="width:135px;" />

  {/exp:tag:cloud}
{/exp:low_search:form}

...and my results page

{exp:low_search:results
    tag_id="default"
}
  ...
{/exp:low_search:results}

I'm not sure if I should be nesting the low_search and low_search_tag tag pairs within each other. Any help would be appreciated.

I'm using:

-- EE 2.5.5  --  Low Search 2.4.0 -- Solspace Tag 4.1.1


texts: Stash variable in channel entries tag not working

texts:
I’m having trouble getting a stash variable to work as a parameter in a channel entries loop. I have not had this problem before so I wonder if it may have something to do with the nature of the variable. It is coming from javascript code and it is called by the code . This produces the result of a city selected elsewhere on the page  (for example, Portland). Since that code can’t be  used in the channel entries tag I am using the following stash code:

{exp:stash:set
    name="city1"
    parse_tags="yes"
    process="end"
    trim="yes"}

{/exp:stash:set}

This seems to work correctly and both {exp:stash:city1} and {exp:stash:get:blah name='city1’} produce the result of the selected city (for example, Portland). But it doesn’t work in the following expressionengine code:

{exp:channel:entries
    channel="place"
    search:city="{exp:stash:get:blah name='city1'}"
    parse="inward"
    dynamic="no"}

    {title}

    {if no_results}
        No results
    {/if}

{/exp:channel:entries}

I’ve tried as many variants as I can think of using additional stash parameters but I need help.

Thanks,
Geoff


texts: What are some ways to offer stats to users?

texts: I would like to offer stats such as "your article was read 50 times, your profile was viewed 25 times." I know Zoo Visitor does this, but are there alternatives?


texts:
Does anyone have any guidelines/experience/hints for working with Expresso Store and Transcribe?

Are there any particular gotcha's or associated problems? For example, I am unsure how I would change the generated emails?

Many thanks if anyone has advice.

Tom


texts: Store - Discount applied in checkout form, but not on final order

texts:
I've run into an unexpected issue with manual payments: when checking out, discounts are successfully applied on the front-end (discount amount is returned and total amount updates accordingly) but when viewing the order in the Store admin the discount is missing from the order (i.e. displays $0.00).

This does not happen for credit card orders (processed through Stripe).

A note on my checkout process. I'm using Switchee to check the member group. If the member is in our commercial member group they're presented with a manual payment form so that we can process the order and invoice for the payment.

I'm at a loss for what may be happening during the payment processing that would drop the discount. To be sure there are no conflicts, I disabled the two extensions that I use in conjunction with Store (one hooks into store_order_taxes and the other store_order_complete_end), but still no luck.

Has anyone encountered this, or something similar?

Thanks in advance for any insights.

EE 2.7.3
Store 2.2.0


texts:
I recently upgraded to 2.6.1 and I am running into an issue that seems like it could be parse order related, I have the following code that was working before the upgrade.

{if segment_3=="summary"}
     {exp:safecracker channel="jobs"
          return="jobs/application/thanks/ENTRY_ID/{username}/{current_time format="%Y-%g-%d_%H-%i"}"
          {if segment_4 != "new"}entry_id="{segment_4}"{/if}
          preserve_checkboxes="yes"
          include_jquery="yes"
          safecracker_head="yes"
          class="safecracker"
          author_only="yes"}
      {/exp:safecracker}
 {/if}

The global {username} variable is returning the encoded "%7Busername%7D" opposed to actually showing the username.  I tested the {username} global variable inside the safecracker loop and outside of it and it works - just is not parsing in the parameters section of safecracker.

Any ideas or thoughts?


texts: Can Freemember be used for the "Account Activated" EE screen?

texts:
EE 2.8.1, Freemember 2.3.2

I'm working on a site where member registration is set to "Self Activation via Email". When a user clicks on the activation link in the email they receive after initial registration, they get sent to the ugly gray box EE profile template screen that states "Thank You! Your account has been activated, etc". Is there any way for Freemember to manage this screen as well?


texts:
Is it possible to customise PDF generation when, eg, generating PDF Reports?
Client is wanting to know if it is possible to append custom information to the PDF report, eg packaging information and returns information which they are using for packing slips with client orders.


texts: Expresso Store error: Error calculating shipping: No rules match the current cart

texts:
I'm using Expresso Store and getting an error message: Error calculating shipping: No rules match the current cart.  Have read the documentation, couldn't find any answers there.  Do I have to link the products to the shipping in some way, or is there something I'm missing out on?

I'm having the problem with a live site and trying to fix this before I put the store live.  I've set up a copy of ExpressionEngine with Store 1.6.1 on my local machine to play around with, but I'm getting the same error.

I've created a Products Channel and linked it to a Channel Field using the Store Product Details Field type. This is what I get when I go to Content > Publish > Products:

I've set up a dummy product as an example.

Then I'm going to Store >  Settings > Shipping Methods.

I've created a Method called Weight and set a rule as shown here:

But unfortunately, I'm getting the above error message.

It's probable something silly I've done, or something small I've missed.

Edit: Screenshots:
http://imgur.com/WKxw1EC

http://imgur.com/KQrTwEx

Thanks.


texts: NavEE selected_class="on" becomes class="yes" - possible to solve w/o updating styling?

texts:
I assume due to some bug in the parser,

{exp:navee:nav nav_title="header" selected_class="on"}

Outputs

Foo

Bar

Baz

While I am able to change the styles, it would be highly preferable to overcome this issue, as the navigation is being retrofitted.

Has anyone else hit a similar issue?


texts:
Is there any way to preserve leading zeros when using the text input field type? This is getting truncated. :(

0010250107 -> 10250107


texts: Is there any way to change the default statuses displayed by the channel:entries tag to "not closed"?


texts:
I'm building a custom fieldtype that uses Assets. So far, I've implemented Assets.Sheet, as described here: http://docs.pixelandtonic.com/assets/developers/sheet.html.

But when the Sheet slides into view, Assets tries to refresh the files, and no files are being shown. There are no JS errors and the thumbnail list is emty (checked the html code). Only a console message from garnish-0.1.min.js saying: "Double-instantiating a select on an element".

The sheet does work properly with any other standard Assets field, but not with my fieldtype.

Here's a screenshot: http://cl.ly/image/3b2D2t1I3g0f

Anybody any idea how to solve this?


texts: Front end flashdata / system messaging without URL segments

texts: I'd like to be able to display incidental messages on the front end, such as for 'thank-you' content and success/error messages after form submissions. However, I'd like to do this without polluting the URLs with extra segments... Is there a standard solution for this?


texts:
I have Expresso Store set up with PayPal Express as the payment method. Everything seems to be working fine but sometimes there are gaps in the order numbers.

For example, I'll get order #19, 20, 21 and then it will skip a couple and the next order number I receive will be #24.

Any ideas why this is happening?


texts: Which config bootstrap options are available for ExpressionEngine? Which one works best in a multi server environment?


texts: Assets Unable to Connect to S3: Access denied by target host

texts:
I'm getting an "Access denied by target host" error when attempting to connect to S3 with Assets.

In order to troubleshoot further, I've added a var_dump around line 238 in third_party/assets/sources/s3/lib/S3.php:

        if ($rest->error !== false)
        {
            self::__triggerError(sprintf("S3::listBuckets(): [%s] %s", $rest->error['code'],
                $rest->error['message']), __FILE__, __LINE__);

                var_dump($rest);

            return false;
        }

When attempting to refresh the bucket list in Assets via the EE control panel, I can now see the details of the error:

object(stdClass)#162 (3) { ["error"]=> array(2) { ["code"]=> string(12) "AccessDenied" ["message"]=> string(13) "Access Denied" } ["code"]=> int(403) ["headers"]=> array(1) { ["type"]=> string(15) "application/xml" } } Access denied by target host.

Summary: Amazon's response is "Access Denied"

I thought my credentials may have been to blame, but, editing either key changed the error message, so, that wasn't the problem in this instance.

Using the OS X file transfer app Transmit, I was able to connect to S3 with the same credentials, list files, upload a file, and then view it via the publicly accessible URL, so that ruled out configuration/policy issues on Amazon's end.

Upon further testing with Transmit, I found that I could get the same "Access Denied" error if I omitted the "path" (which is the same thing as the bucket name) setting  when I attempted to connect - it appeared that our policy of not allowing the user to perform a list-buckets command was the problem. Is it possible to hard code the bucket name somehow?


texts: Expresso Store orders suddenly not getting past checkout 3 to Paypal

texts: A website belonging to a client of mine suddenly stopped working. She assures me no changes have been made. It's been 5 days since her last successful online order, and she usually gets several per week. Someone trying to order alerted her to the problem. We have both tried buying something through the site, and neither of us can get past Checkout step 3, where you click place order and go to Paypal. I checked the Paypal API credentials (we're using Paypal express as the gateway), and they are correct. I removed the inline errors and it's still spinning and spinning until it times out, without giving any clue as to what's wrong. The page finally shows a Gateway Time-Out. The website has been working successfully for a couple of years. We are running Store 1.6.3 and EE v2.5.5.


texts: Does DevDemon subscriptions work for non logged in users?

texts: There's nothing to say it won't, but for non-logged in users, nothing is rendered between any of the {subs} tags?


texts: In a Matrix Fieldtype, how does one call a function before all the rows are saved using save_cell()

texts:
In a custom Matrix fieldtype I have, the save_cell() function is used to process the fieldtype data for each row. It seems this function is called on a per row basis, so not called once.

What I would like to know is how to call a function just once, before all the rows are saved. A kind of before_save() function or something.

Alternatively if this is not possible, then I wondered how we can obtain the number of the save_cell() row we are on. I can then call a function based on this row number being 1.

Thanks


texts: I know this is a lame question but I have not updated any content for 6 years.  My site is hosted by EngineHosting and I can FTP to the files. How do you access the ExpressionEngine control panel.  The URL I use to use no longer works.  Thank you.


texts: Language File Issue (File Manager Related)

texts:
I am working on a site that I recently updated from 2.1.4 to 2.5.5. I am noticing that certain menu titles and field titles associated with the file manager module are not being pulled from the language files correctly.

Has anyone else seen this issue and/or found a fix for it?


texts: Placeholder value of input cleared on error

texts:
I have a Low Search form with two required fields, and am declaring these as required using the form tag's "required" parameter.

One field is an input connected to a jQuery date picker. The other is a checkbox list. Selecting the date, but not choosing one of the checkbox options, then submitting the form gives me the expected error message. However, the value of the date input is cleared out.

How do I keep the value chosen in the date picker after the error message is fired?


texts: Exp:resso Store - price for additional items

texts:
I'm using Exp:resso Store for the first time, and I've just set-up my shipping method and its rules.
I've created a standard shipping method that includes different countries - this was fairly easy.
The problem is that I cannot find a way to add 1,00 GBP only to additional items.

I tried creating different rules:

if min. Order qty and max. Order qty is 1 then there's no additional
rate
if min. Order qty is 2 then add the additional rate

but in this way if there's more than 1 item then Store adds 1,00 GBP to all items, while I need it to be added to all items except the first one.

I just don't understand if this can be achieved by playing with shipping rules or if I need some custom plug-in.
As I said I've never used Store before, every suggestion would be much appreciated.

Edit

I might add that I have a base rate of 2.50 £:

Base shipping rate for UK: 2.50 £
Shipping rate for additional items (except 1st): 1,00 £

This means that if the customer buys one item total shipping cost would be only 2,50 £ for the shipping.

If the customer buys 2 items, then total shipping cost would be 2,50 + 1,00 = 3,50 £ for the shipping.

For 3 items the total shipping cost would be 4,50£ (that is 2,50 + 1,00 + 1,00). And so on.


texts: Prevent/Purge Local Caching of S3 Files with CE Image

texts:
We're running a portfolio site for a photographer using EE, and he's got about 2 gigs worth of JPEGs on S3. CE Image is used to create two versions of each photo in his portfolio (thubmnail and web-sized).

The problem is, when CE Image does this, it stores a copy of the original source image, as well as the two processed versions, in the local directory specified by ce_image_remote_dir, even though the output is going to S3.

{exp:ce_img:pair src="{url-to-source-on-s3}" quality="85" max_width="980" bucket="s3-bucket-name" cache="yes" refresh="600"}
    {aws_url}
{/exp:ce_img:pair}

As a result, we end up with a full copy of everything the client has on S3 on the EE box; is there any way to prevent the storage of, and/or automatically purge the files in ce_image_remote_dir?


texts: Auto populate Title field with current date

texts:
Is there a way to auto populate the Title field with current date?
Basically Im wondering if the Title field can be auto- filled in with the current date when creating a new entry. EE 6


texts: Display store product prices excluding tax

texts:
Now that all prices are including tax when the option 'included in price' is set in the settings menu, we appear to have multiple tags for prices inclusive of tax to use in templates inside the {exp:store:product} pair, but none to show the ex-tax price or even the current tax amount to run a quick php calculation.

For example, we can use any of the following to show the price:

{price_inc_tax} // deprecated in 2.0
{regular_price}
{price}
{price_val}

...but as far as I can see, there are no tags for _ex_tax or tax_val until the user gets to the checkout stage.

There surely must be the ability to show the price excluding tax now that prices are entered inclusive of tax?

Is the user option:

A - add prices ex tax and have the facility to display prices _inc_tax
OR
B - add prices inc tax and lose the option to display prices _ex_tax