texts: Update breaks site, htaccess rules, and third party add-ons

texts:
I've updated from 2.7.2 to 2.8.1 for a new project by running the installer update. Once that finishes I get two different errors.

First, if I try to access the site at domain.com I get

An Error Was Encountered

Unable to initialize ExpressionEngine. The EE core does not appear to be defined in your autoload file. For more information please contact technical support.

Second, if I try to access the admin at domain.com/admin/index.php I get

url: http://domain.com/admin/?/cp/login%3freturn=

Disallowed Key Characters.

I can change the admin/index.php to admin/admin.php and login fine. However, the site still produces the core error. I've applied this fix to the core file and still no resolution.

All third party add-ons produce an error when trying to access them as well. If I try to access Structure or Low Variables, or really any other add-on I get the error:

Fatal error: Call to undefined method Cp::set_variable() in *pathname/*


texts:
I have a problem with url in js file
First, in Snippets i have code

In that init.js i have that

(function($) {

skel.init({
    reset: 'full',
    breakpoints: {
        global:     { range: '*', href: '{stylesheet=global_embeds/style}', containers: 1400, grid: { gutters: 50 } },
        wide:       { range: '-1680', href: '{stylesheet=global_embeds/style-wide}', containers: 1200, grid: { gutters: 40 } },
        normal:     { range: '-1280', href: '{stylesheet=global_embeds/style-normal}', containers: 960, grid: { gutters: 30 }, viewport: { scalable: false } },
        narrow:     { range: '-980', href: '{stylesheet=global_embeds/style-narrow}', containers: '95%', grid: { gutters: 20 } },
        narrower:   { range: '-840', href: '{stylesheet=global_embeds/style-narrower}', grid: { collapse: 1 } },
        mobile:     { range: '-736', href: '{stylesheet=global_embeds/style-mobile}', containers: '90%', grid: { gutters: 15 } },
        mobilep:    { range: '-480', href: '{stylesheet=global_embeds/style-mobilep}', grid: { collapse: 2 }, containers: '100%' }
    },

In template group global_embeds i have all this files

BUT link {stylesheet=global_embeds/style-mobile} doesn't work on js file

What to do? Who know? =(


texts: Javascript errors when using Exp-resso Store with requireJs

texts:
We are trying to setup Store in /webshop and are using RequireJs to setup the deps for each main part of the site.

When loading a page with (from what i can see) any of Store's own javascripts, forms and such 1-2 errors are thrown.
I am guessing the first one has to do with the storeJs not liking that we are loading requireJs.

Uncaught ReferenceError: accounting is not defined

  Update:
  The error above breaks every page where Store's JS is used when i use require-jquery.js

And the other one is thrown from require.js.

Uncaught Error: Mismatched anonymous define() module: function (){return n}
http://requirejs.org/docs/errors.html#mismatch

I load a combined requirejs+jquery build (tested with a clean build) in the head of every page using js and require that pages specific .js in the footer.

The error seems to originate från line 338 in themes/third-party/store/store.js
Adding an id to the define method seems to supress the warning but i cant say for effects elsewhere.

Has anyone had the same problem or know of a solution?


texts: Newb: Need help with integrating P&T Matrix into JQuery

texts:
I have Matrix installed into EE and am getting single pictures out. I need to add a JQuery light box to manage my pictures. I have added ColorBox and it is working with hard coded hrefs. The Matrix docs says I need to use:

Matrix.bind('fieldtype_class', 'event_name', function(cell){
  // custom code here
});

I presume "custom code" means the ColorBox finction call ?

Also I am not too sure what is meant by 'fieldtype_class' and 'event_name'.

MANY THANKS for your advice - sorry it's such a newb Q.


texts: I'd like to add in a carousel feature within the body of a webpage. I have successfully embedded generated code from sites where i've generated a small animation but i can't seem to find anything online for a carousel - there are older entries i've come across which mention doing this with native EE function but the posts are several years old. help?


texts: Expresso Store: Inventory not showing in CP menu for client's member group

texts:
I'm having the same problem as this post, only the accepted answer doesn't work for me.

Sorry for re-posting the question, but I didn't if I can carry on a "me too" conversation in the answer thread?

When setting up a client's Member Group, I can't get Inventory to appear in the Store menu. I even duplicated the Super Admin's Member Group with all its privileges, but yet still couldn't get this to work. It seems that only {group_id==1} is able to see the Inventory tab.

This is an MSM site and even with the client's member group having access to all store-related channels in all sites, it's still a no-go...

EE 2.6.1, Store 1.6.4


texts: ExpressionEngine control panel links use wrong URL

texts:
I'm attempting to set up a staging server for a live EE powered website. I decided to use xampp but I'm having problems getting everything working.

On the live website EE's control panel links look like this

index.php?S=098f6bcd4621d373cade4e832627b4f6&D=cp&C=content_publish&M=entry_form&channel_id=8&entry_id=87

But on my staging setup the same link looks like this

index.php?/cp/content_publish/entry_form&channel_id=8&entry_id=87&S=098f6bcd4621d373cade4e832627b4f6

The result is an immediate refresh back to the main page of the control panel: I'm unable to navigate further.

I've updated the config.php, index.php, database.php files with the correct paths. Does anyone have any experience with an issue like this?


texts: How to display a product image on the checkout page for store

texts:
I would like to display an image from the products channel on the checkout page using STORE by Exp:resso.

If I use the normal channesl tag the image display's, but seems to show all products in the channel. If I use limit="1" it only shows the one image.

Many thanks

Graham


texts: MD Character Count Duplicate Display Issue

texts: Just installed MD Character Count on a site. Everything is working as expected, with the exception of the extension's output. It's duplicating on render. See the attached screenshot for an example. Curious if anyone familiar with this add-on has crossed this bridge before. Thanks


texts:
I'm using freemember on a user registration form and custom fields are not being passed to the member profile on registration.

I've tried both standard m_field_id_22 and freemember member_newsletter field names but neither are getting saved and the database is logging a value of null.

Any thoughts on solving?


texts: Playa hidden field with safecracker not (completely?) creating relationships

texts:
Going crazy here - I can't get any results to display in exp:playa:parents when specifying a particular channel. If I don't include the channel= parameter I get a result from another channel which is correct, but when specifying the channel I want I get no results, despite being able to see in the CP that they are related.

No custom statuses involved for either parent or child channel. Playa 4.3.3 and EE 2.5.5 I've tried specifying the entry_id for a particular entry I want the parents of and still get nothing. What could be going wrong?

Edit: Ok, I've figured out it's only for parent entries that are created with safecracker. In the CP, if I open an entry created with safecracker and save it, the entry appears in the list of parents. So it's a playa/safecracker issue.

Edit 2: Hi Lisa! Thanks for your help. This has changed so much I've completely changed the title. Important thing I should have mentioned: I'm using the playa as a hidden field method in safecracker as described here: https://getsatisfaction.com/pixelandtonic/topics/sending_playa_field_value_hidden_in_safecracker

So my field in safecracker looks like:

<input type="hidden" name="cm_community[selections][]" value="{exp:url_title_to_entry_id url_title='{segment_3}'}">

where I'm using a plugin to get the entry id from a urltitle in the url.

When I go into the CP, the correct entry is selected in the Playa field, which is why I thought the relationships were being created but I don't think they are. If I just open the entry and save it I see this in the 'View Entry' screen:

[18026] [double-bay] Double Bay

Which is the entry id, url title and Title of the entry I assigned in the Playa field, and also makes me think the relationship exists.

However if I open the entry in the CP, use the Playa select input to choose that entry (that already appears to be chosen) and save, the relationship is 'properly' created and I can see it on the front end.

I'll paste my template code as well though I don't think that's the issue:

{exp:playa:parents channel="community_messages" field="cm_community" limit="1"}

    {if no_parents}
No messages.
{/if}

{title}

        {cm_message}

{/exp:playa:parents}

Edit: Adding full safecracker code

{exp:safecracker channel="community_messages" return="communities/{segment_2}/messages/" author_only="yes" include_jquery="no"}

Message Title
<input type="text" name="title" id="title" value="{title}" maxlength="100">

Message Content
{field:cm_message}

{if '{segment_4}'!='edit'}
<input type="hidden" name="cm_community[selections][]" value="{exp:url_title_to_entry_id url_title='{segment_2}'}">
{/if}

<input type="submit" name="submit" value="Post">

{/exp:safecracker}


texts: Control Panel won't login on one single computer

texts: ExpressionEngine 2.5.2 site. I can login as me (super admin) and my client (non-super admin) on several browsers on my computer, and from iPad and iPhone via LTE, and my client could login on her old laptop. At the same location on her new laptop, she can't login. I stopped by and couldn't login as me or her on her computer, using IE9 or Chrome. Checked cookies, they are on, and working, but none get set on the Control Panel login page and it reloads the login page with no error. Caches cleared, cookies cleared, browser and computer restarted. I'm puzzled.


texts: EE2: How-to replace existing image keeping same name

texts:
In an existing site running EE2, with the following working code to upload an image:

ee()->load->library('filemanager');
$uploaded_file = ee()->filemanager->upload_file($directory_id);

The image will appear in the EE File Manager as it should. The problem arises when we want to update this image, replacing the existing file with a new one of the same name. To do this I've tried:

ee()->load->model('file_model');
if (ee()->file_model->get_files_by_name($file_name, $directory_id)->num_rows() > 0) {
    ee()->file_model->delete_files_by_name($dir_id, $file_name);
}

Which in theory would delete the existing image and then let me upload the image again. However it doesn't appear to do anything.

Is there a way in EE2 to upload a replacement image, giving it the same name as the existing image and update the corresponding file manager record?


texts:
I just purchased Store a few weeks ago and my clients added another request is that she want to be able to track the change in her stock, not just the remain stock number after order/sale but also the newly imported ones.

For example she has a product call T-Shirt, original stock level is 10.
At the end of the month, she sold 9, has 1 remaining in stock.

Now she wants to add 9 more from a certain supplier to make sure the stock level at the beginning of next month is 10 again. How would you suggest her to do so and how we can track the number of T-shirt we have import from a certain supplier during a certain period of time?

Please let me know if I didn't explain clearly enough.
Thanks!


texts:
I've upgraded EE to 2.9.2 and have found some strange behaviour with Transcribe.  The problem is that some channel entries did not have a language set in the exp_transcribe_entries_languages table.  This was not a big problem because I could just run a script to fix the issue.

However, I have found that entries created via channel:forms do not even get an entry in the exp_transcribe_entries_languages table which means that these entries will not get displayed to the user.

e.g. A member entering a delivery address.  This address is stored but no record is created in the exp_transcribe_entries_languages table so that address will never be of use.  There must always be a valid language_id mapped to each channel entry for it to be displayed correctly.

How can I fix this?


texts: I am testing my first install of Store in a Paypal sandbox. The one issue i would like to fix is that the billing details are not pulled through from the site. Only the email address, name and telephone are carried through. As it is a bit annoying to have to type them again, can these not also be populated in PayPal?


texts:
I try to understand better Stash Bundles, so I tried to use Stash code to save a group of variables as a single variable in a defined bundle.

The variables:

{exp:stash:set_value name="un" bundle="default"}
{exp:stash:set_value name="deux" bundle="default"}
{exp:stash:set_value name="trois" bundle="default"}

The group of the variables inside a defined bundle:

{exp:stash:bundle name="bundle"}
        {exp:stash:get  name="un"}
        {exp:stash:get  name="deux"}
        {exp:stash:get  name="trois"}
{/exp:stash:bundle}

Call the defined bundle

{exp:stash:get name="bundle"}

Results (in the html page):

a:3:{s:2:"un";N;s:4:"deux";N;s:5:"trois";N;}

Why the variables appears like this, and not display:

un
deux
trois

What it means a:3:{s:2: ;N; ? I'm totally lost. How to display only un deux trois?

Thanks.

Additional information.

I tried with:

  http://site/stash/bundles

    {exp:stash:bundle name="segments"}
            {exp:stash:get name="{segment_1}"}
            {exp:stash:get name="{segment_2}"}
    {/exp:stash:bundle}

   <h1>{exp:stash:get name="segments"}</h1>

Results:

  a:2:{s:5:"stash";N;s:7:"bundles";N;}

So a is the number of variables into a bundle, S: the number of characters of each variables. What is N ?
I do not understand this output format, it seems as JSON. What can I do with this output:

a:2:{s:5:"stash";N;s:7:"bundles";N;} ?

How to use it, and only extract stash, bundles data, coming from {segment_x} ?


texts: Is ExpressionEngine Right for iPhone App Development

texts:
I am in the process of deciding if ExpressionEngine can be used for a project where I am creating both a website and a native iPhone App.

I would need cron background worker jobs, to pull data with JSON, Geocoding, and Ad Tracking.  Also API integration with Urban Airship would be a plus?

I know there are mods from researching Devot-ee.com that may work but I don't know to what extent.

Has anyone attempted this?  I don't what to get too far into development only to find EE won't work for this.

Thanks for your time.


texts: Advanced Conditions: {if:else} tag not getting read

texts:
So, I think I've caught on that advanced conditions and EE tags don't play like expected.

So, I downloaded Mark C's "IfElse" plugin and things are looking up.

However, my default condition, doesn't work. EE is NOT parsing the "last/default" condition so therefore the content is not appearing from the channel and only text versions of the field names (e.g. {title}, {body}) appear.

Any help would be appreciated.

{exp:ifelse parse="inward"}

        {if segment_3 =="1"}
           {exp:channel:entries channel ="about" entry_id="33"}

        {if:elseif segment_3=="2"}
           {exp:channel:entries channel ="about" entry_id="32"}

        {if:elseif segment_3=="3"}
           {exp:channel:entries channel ="about" entry_id="34"}

        {if:elseif segment_3=="4"}
           {exp:channel:entries channel ="about" entry_id="35"}

        {/if}
{/exp:ifelse}

{title}
{body}

{/exp:channel:entries}

Also, for the last condition, I've tried the normal:

 {if:else}
   {exp:channel:entries channel ="about" entry_id="35"}

 {/if}
 {/exp:ifelse}

But no cigar.


texts:
I'm new to Exp-resso store. According to the docs; I can view an order through its order hash as per below:

{exp:store:orders order_hash="xxxx"}

How do I retrieve the order hash?

Edit: Referring to this answer: Printing Order Summary in Expresso Store

It seems that order hash only available via success page? Is there a way I can retrieve it for later viewing; ala url_title or entry_id?


texts:
I need to reassign all uncategorised entries into a certain category, I've managed to create an SQL query which selects all the entries for that channel which aren't assigned to any categories, but I'm getting a bit stuck when it comes to updating the exp_category_posts table. SQL isn't my strongest area so help would be appreciated.

This is my SQL for selecting the entries:

SELECT exp_channel_data.entry_id FROM exp_channel_data LEFT JOIN exp_category_posts ON exp_channel_data.entry_id = exp_category_posts.entry_id WHERE exp_category_posts.entry_id IS NULL AND channel_id = 5;

So the exp_category_posts has two columns, entry_id and cat_id, I need to pull in the entry_id from the exp_channel_data table and hardcode the cat_id column to a certain value.


texts:
Yet another parse order problem!

I'm trying to use http://devot-ee.com/add-ons/rest. This works:

{exp:rest url="/api/get-default-profile-image/175/" format="json"}
    {default_profile_image}
{/exp:rest}

But this doesn't work:

{exp:rest url="/api/get-default-profile-image/{member_id}/" format="json"}
    {default_profile_image}
{/exp:rest}

(I changed the 175 with {member_id}. Any suggestions how I can get this to work?


texts: Embedding PHP in EE tags or using equivalent expressions in PHP

texts:
There are so many essential things you simply can't do with EE; this is one I'm having issues with.

What I want to do:

Use AJAX to GET a template while sending data via the URL segments.

In the ajax, we're preformatting integers to strings so that all single digit integers get preceding zeros (e.g.: 1 becomes 01 by using JS var seg1 = '' + {segment_1}, etc.).
We send these integers in date format to a template /.../.../.../01/03/2014/

On our template called via AJAX we embed another template using those values

However, during the AJAX request all preceding zeros are truncated :p

So doing something like

{embed="calendar/event_landing" range_start="{segment_4}-{segment_5}-{segment_6}" range_end="{segment_4}-{segment_5}-{segment_6}"}`

will only represent the above example as /.../.../.../1/3/2014/ with no zeros.

To circumvent this oddity, I thought I'd try to do something like

<?php
// Pad the segments with zeros because the preceding zeros on single digit segments are truncated during the $.ajax(...) GET request.
if (strlen($seg4 == 1) {
    str_pad($seg4, 2, '0', STR_PAD_LEFT);
}

if (strlen($seg5 == 1) {
    str_pad($seg5, 2, '0', STR_PAD_LEFT);
}
?>

then try something as audacious as it is ludicrous:

 {embed="calendar/event_landing" range_start="<?php echo $seg4; ?>-<?php echo $seg5; ?>-{segment_6}" range_end="<?php echo $seg4; ?>-<?php echo $seg5; ?>-{segment_6}"}

While that doesn't work at all (and really shouldn't anyway) I think it explains what I'm trying to do: pass the newly zero-padded integers to the embedded calendar/event_landing template where I'm using their values as follows using the Solspace Calendar plugin:

{exp:calendar:cal date_range_start="{embed:range_start}" date_range_end="{embed:range_end}" pad_short_weeks="n"}

In case it wasn't implied, the Solspace Calendar uses EE date formatting (as found here: http://www.solspace.com/docs/calendar/date_formatting/), and will not accept single digit numbers. If single digit numbers are passed to it, then it causes an error and instead of throwing it, it simply reverts to the value of the current day.

(The beginning of this rabit-hole inquiry started here one day ago: Solspace Calendar embed range not registering)


texts:
If I have a function in a plugin that is normally called with parameters that are retrieved like this:

public function eventtitle() {
    $eventCode = $this->EE->TMPL->fetch_param("event_code");
    $_type     = $this->EE->TMPL->fetch_param("_type");
    // do other stuff
    return $value;
}

How do I call that same function from another function WITHIN the same plugin passing the same parameters?

$coursetitle = $this->eventtitle($eventcode);


texts: How to get article count with a single entry view

texts:
I want to get the current article count with a single article view. So I've I'm currently viewing the fifth of ten articles, it will output '5'.

If I do this:

{exp:channel:entries channel="articles" sort="asc" limit="1"}

{count}

{/exp:channel:entries}

This always evaluates to 1, as it's the single entry view.

I've tried {absolute_count} but this provides the same result.

Any ideas, I'm open to using {query} tags but I can't work it out.


texts: Is there a way to filter Playa relationship in {exp:gmap:results}?

texts: One of the "filters" so to speak on my gmap search is a playa field. Is there a way to filter my results by that relationship? I tried running the {exp:playa:parents} loop inside the {results} but naturally, it is a double loop. If on the search form, I only want parents of entry_id 1, how would I go about that? The data is in the post var, but I need to get the playa parents loop combined with the results loop - else I'll tear in to PHP.


texts: Changing entry_id: possible, but asking for trouble?

texts:
We have an internal system for assigning three digit numbers to the various accounts where we accept donations. These are set in stone and cannot be changed. If we could match these three digit numbers to the entry_id that would make a several things better:
-url would have the account number and not a different number when donating
-carthrob uses the entry_id to send info to the gateway, but that is meaningless to us. If it matched our account numbers that would be very useful.

I know I can go in and muck around the database and change these, but is that asking for trouble? What happens if we have 300 entries and we've set one of these accounts with an entry ID of 301? Will EE skip 301 or create two 301s...or just crash in a blaze of white screen?

THe site will be live tomorrow or Friday. It is not very content heavy. Maybe 30 pages, 20 members right now (using Zoo Visitor so they are in a Channel),  and the 75 accounts stored in the CartThrob product channel. The entry ID count is nearly 300 with all the test orders we've placed to test the donate function.

Anyone do this and want to talk me off the ledge? Or is it safe to jump?


texts:
I'm having a slight issue with expresso store, was wondering if anyone can help me out.  The problem is on the last step, when they enter the credit card details.  I've set the following

return="shop/thank_you/ORDER_HASH"

and

secure="yes"

The final page with the order confirmation doesn't display properly as there's extra text in the url.

I should be getting mydomain.com/en/shop/thank_you/ORDER_HASH but I'm actually getting

mydomian.com/en/https:/mydomain.comm:443/https:/mydomain.com/shop/thank_you/ORDER_HASH

Just to note, the order does complete successfully, it just doesn't display the final page due to the extra details in the URL.

Final Confirmation page code:

Step to Purchase

   1 2 3 4 5 6

 Thank you for your order!

{exp:store:orders order_hash="{segment_3}"}

Your order ID is: {order_id}

{/exp:store:orders}

It is currently being processed by our sales team. You will receive an email confirming your details. Please contact us at (01) 123 4567 if you have any queries about this purchase.

Return to Our Products

ht access file:

AddHandler php5-script .php

RewriteEngine on

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

<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "public"
Header set Expires "Thu, 15 Apr 2013 20:00:00 GMT"
</FilesMatch>

Header unset ETag
FileETag None

ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpg A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/x-icon A2592000

<IfModule mod_rewrite.c>
    #------------------- remove trailing slash -------------------
    RewriteCond %{REQUEST_URI} !^/system [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.+)/$ /$1 [R=301,L,QSA]

    #------------------- CE Cache Static Driver -------------------
    RewriteCond %{REQUEST_URI} !^/system [NC]
    RewriteCond %{QUERY_STRING} !ACT|URL [NC]
    RewriteCond %{REQUEST_METHOD} !=POST [NC]
    RewriteCond %{DOCUMENT_ROOT}/static/ce_cache/0158f6/static%{REQUEST_URI}/index\.html -f [NC]
    RewriteRule (.*) /_static_cache_handler.php%{REQUEST_URI}/index\.html [L,QSA]
</IfModule>

Thanks.


texts: Template Routes Manager remove index.php and template group?

texts:
I've read all of the eecms documentation on Template Routes Manager to no avail. I don't see any simple tutorial on how to use template route manager to remove index.php or template_group name.

Is there an easy example of how to do this?

This user guide is garbage: http://ellislab.com/expressionengine/user-guide/urls/template_routes.html

I've read it three times and somehow know less about template routes manager than I did before.

I've asked this question multiple times before with crazy suggestions. Suggestions that aren't scalable or user friendly.

Any takers? Not looking to use anyone as a crutch... If there's an awesome article you've read on this, you can share that! Anything, as long as it makes sense!

As well, I don't want to use Structure. It has caused many of my sites to crash over the past few years.


texts: Can I make a Matrix Fieldtype and put in a row another Matrix fieldtype that contain file fieldtype?

texts:
I need to make a Matrix fieldtype where i have:
1 Column -> Text field -> Label: Chapter
2 Column -> Matrix -> 1 Column -> Text field -> Label: Slide
                   -> 2 Column -> File field -> file

I need to do it like a PowerPoint slideshow where Members can make a new slideshow with an entry in a channel "presentation", and add "chapter 1" -> add slide 1, add slide 2, add slide 3 ... Then add "chapter 2" -> add slide 4, add slide 5, add slide 6 ...

Can you help me to understad how?


texts: No Head or Footer HTML Loading in CP - v2.8.1

texts:
v2.8.1
Build Date: 20140314

Having an issue where the header and footer HTML doesn't load randomly. Sometimes it does, sometimes it doesn't. This happens randomly when navigating the CP control panel. It happens more often when submitting or updating a category under Admin > Categories > Create a New Category.

For example, I create a new category and hit the submit button.
The next page returns a response of 200 text/html that looks like this and nothing else.

URL looks this: http://mysite.com/myadmin.php?/cp/admin_content/category_update?S=dbcc62fcecfde00324b7db8e87cef88b

{"message_success":"Preference Updated"}

This happens about 80% time. Sometimes it doesn't.

This is hosted on the Media Temple GS. The system folder is above web root. I never remember seeing a question mark after the admin PHP file followed by a slash. My guess is that the CP urls have changed recently?

Anyone have any ideas on what could be causing this?

EDIT: This has been fixed. FastCGI enabled on Media Temple's GS was causing this. Switch FastCGI to just CGI. Thanks Alex.


texts: Can Expresso Store pass billing details to Worldpay?

texts: Is it possible for Expresso Store to pass billing details on to Worldpay so the buyer doesn't have to add them again?


texts: How do I make a file field required in a Channel Form?

texts:
I have a channel form so logged-in members in a specific group can create and edit channel entries. One of the fields is a file upload field.

I have it set as a required field but the file field isn't showing an error if there is no file uploaded. Other required fields are.

I've tried it with errors inline and through the default template. Does anyone have some template code with this working?

EE 2.9.2

Update.

I have set-up a hugely simplified template to test.

<!DOCTYPE html>

    <meta charset="UTF-8">
    <link href="{site_url}themes/cp_themes/default/css/channel_form.css" type="text/css" rel="stylesheet" media="screen">

    {exp:channel:form
        channel="{segment_3}"
        entry_id="{segment_4}"
        include_jquery="no"
        status="pending"
        return="applications"
        rules:cf_appli_photograph="required"
        }

        {!-- set author as current logged-in member - uses https://devot-ee.com/add-ons/channel-form-author --}
        <input type="hidden" name="cfaid" value="[{member_id}]"/>

        {!-- set title of entry as member id and time --}
        <input type="hidden" name="title" id="title" value="{member_id} {current_time format="%d %m %Y %H:%i"}">

        <fieldset>

            Photograph

Max 1Mb

            {field:cf_appli_photograph}
            {if error:cf_appli_photograph}

{error:cf_appli_photograph}

            {/if}

        </fieldset>

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

If the image size exceeds the Maximum File Size set in the File Upload Preferences I get an error saying so.

If there is no file included at all the form successfully submits although the field is set as required.

No Console errors.

Apologies for the slow reply and thanks for taking a look.


texts:
I have a future project that I am working on quoting and they have a need for a pretty active community forum. I would love to be able to use the EE Discussion Module but would have a few things that would be preferred to be included. Here are a few...

A WYSIWYG editor for forum posts. Most of the people who use this forum would not be considered techinical gurus, and anything that looks like code would decrease the usage.
Multiple file upload, without previewing or reloading the page.
"like" or rating for forum topics or posts.

Beyond that there are other things the client would like but can be handled by using the forum templates, - social sharing, light boxes for images, etc...

I have already purchased teh Scaffold theme which gives a great starting point for theming and moving forward but I think what is going to be more difficult is core functionality of the module.

Ideally it would be perfect if I could just replace each section of the forum with a field type add-on and then i could extend it on the fly anytime, but that's impossible from my understanding. I did have one twitter reply that discussed creating your own forum with channels and SafeCracker but as discussed performance could be an issue and I dont see the need to reinvent the wheel if its not needed.

Anyone who has had experience or could forward me in the right direction from some more advanced Discussion module usage please let me know.


texts: Stash set variable from POST variable and use in Entries Loop

texts:
I have the following code, and the stash variable doesn't seem to parse. I believe it's an issue with parse order. Apologies, this is the first time I've used stash. I'm trying to show a multiple entry page filtered by categories sent from a HTML form:

<form action="" method="post">
    <input type="checkbox" value="62" name="recipe_type_categories[]">
    <input type="checkbox" value="63" name="recipe_type_categories[]">
    <input type="checkbox" value="59" name="recipe_type_categories[]">
    <input type="checkbox" value="64" name="recipe_type_categories[]">
    <input type="checkbox" value="61" name="recipe_type_categories[]">
    <input type="checkbox" value="60" name="recipe_type_categories[]">
    <input type="hidden" name="XID" value="{XID_HASH]">
    <input type="submit" name="submit" value="GO!">
</form>

An array of category IDs are POSTed to the page, it then sets the ids to a stash variable.

 {exp:stash:get name="recipe_type_categories" dynamic="yes" save="yes"}

My template looks like this:

{exp:channel:entries channel="recipes" dynamic="no"
limit="18" uncategorized_entries="no"
disable="member_data|comments|category_fields"
category="{exp:stash:recipe_type_categories}"
status="not Closed" paginate="both"}

{title}

{paginate}
    {pagination_links}
        page {current_page} of {total_pages}

        {first_page}

first

        {/first_page}

        {previous_page}

&lt;

        {/previous_page}

        {page}

{pagination_page_number}

        {/page}

        {next_page}

&gt;

        {/next_page}

        {last_page}

last

        {/last_page}

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

Unfortunately, I see this in template debugging:

(0.012391 / 8.23MB) Tag: {exp:channel:entries channel="recipes" dynamic="no" limit="18" uncategorized_entries="no" disable="member_data|comments|category_fields" category="{exp:stash:recipe_type_categories}" status="not Closed" paginate="both"}

Hopefully someone can suggest a solution.


texts: Can you use {if category == "[category name]"} to redirect a blog entry?

texts:
We have a client's multi-language site, and are NOT using any plugins to differentiate the site.  The different languages are under different url paths (/fr /nl) using pages.  However, for the blog element, the client wants all entries to be in one universal blog, but once you go to a French blog, the nav and other elements are French (this is done with segment_1 of fr).  Because of that, I want all blog posts in the French category to go to /fr/blog/entry/{url_title} instead of /blog/entry/{url_title}.

This isn't working:

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

     {if category_id == "41"}

{title}

    {if:elseif category_id == "42"}

{title}

    {if:else}

{title}

    {/if}

{entry_date format="%j %M %Y"}

                    {if summary != ""}
{summary}
{if:else}
{entry}
{/if}

    {/exp:channel:entries}

However, it's the if category statement that seems to be the culprit.  I can replace the
{title}
 with anything and it still shows the h1 title with a link to the /blog/entry/{url_title} page.


texts:
I am working on a site that has a main entry but as I post new entries, it pushes existing content down into summarized items the user can click on for more. I want to have a little summary so the user can read a quick outline of what is being discussed or viewed without having to click on it. I would like to have the typical "Read More" link, however I am not exactly sure how to set that up or code it.

I came across this article while I was searching for possible solutions.

http://colly.com/comments/more-more-more-links-in-expression-engine/

However, I see that it was posted in 2006 so I was curious if this was what I was looking for and secondly if this is still the method used today. I currently have my entries set up with a title, a vimeo link and also a text entry about what the video is going to cover. Thanks for any help, as always it is greatly appreciated.


texts: Questions about the Google Maps modules and more

texts:
what are the main differences are between the Gmaps and Google Maps for ExpressionEngine modules? Anyone know? My preference is now going towards Gmaps because of the price, but I don't have a good idea of what the difference really are currently, in terms of futures etc.

In relation to the abilities of those modules:

What I want to do is have entries with a location marker field type. Those entries will then show that marker (and that marker only) in Google Maps on the front end.
I'm sure that's possible, but what I'm not sure about are the other things I want to do, which are...

1) When I add a new entry with a location marker I want that location marker to be part of a "master map" also where ALL the different location markers from all the different entries are shown. Is this possible?

2) There will be different kind of location markers, for example, restaurants, hotels etc. Can I make it so that those different categories automatically use their own custom makrker type when I add them in an entry?

3) When looking at the master map, can I also filter the markers shown by showing only hotels for example (excluding the restaurants)?

I hope someone can clear those things up for me.


texts:
I'm trying to make a very simple date based entry page. But I'm just wondering if there's a way to only display one entry per date. So if there's 5 entries for one day and 10 for another, the page should only show the first entry per day?

Any help is appreciated, thanks!


texts: How can I add configurable variables to my add-on?

texts:
I have developed a module, and now I would like it to make it configurable by admin users. How do I go about adding editable variables (I assume to the control panel page) and how do I later access these values in my code please?

I can't find any useful tutorials or references on this subject.


texts: "User" add-on not showing up in EE add-on list

texts:
I've attempted to install the "User" add-on to a EE3.0.5 site. I have the latest version of User. I've followed these instruction:

Within the /system/user/addons/ directory, copy the user folder into your sites ./system/user/addons/ directory.
Within the /themes/user/ directory, copy the user folder into your sites ./themes/user/ directory.
Go to the Add-On Manager area in the ExpressionEngine control panel, scroll to down to the Third Party Add-Ons section, and find User in the list, and click Install.

But the User add on doesn't show up in the list. I refreshed my CP page, but still no luck. I double checked the user theme and addons folder locations and we're good. I refreshed the page again but still no User in the list. The permissions for both user folders is 755 (which I assume is correct). What do I do now?


texts:
Unfortunately the documentation for CE Tweet is unclear so I would like to query the set up and to be guided in the right direction. How do I configure my twitter account details into the plugin?

As mentioned in the CE Tweet documentation I have a created a channel named twitter and a channel field group titled {tweet_feed}. I am trying to setup a single tweet feed on my site. First I have added
 into my template, then I have embedded the following code into my template:

{exp:ce_tweet:user_timeline field="tweet_feed" screen_name="CharlesCompany" lang:en' count="1"}

            {user_name}
            {user_screen_name}

{text}

             {created_at_relative}
            Reply
            Retweet
            Favorite

{/exp:ce_tweet:user_timeline}

My confusion is what else I need to add in order for my tweets to be visible on my site?


texts:
Having difficulty getting the reset password functionality to work.

I've got the forgot password template set up which then sends you to the reset password template on submission.

On the reset password page I just get an instant message of "Sorry, the link you clicked on does not appear to be valid, or has expired"

I receive the reset password email but clicking on the link gives me the following message "The password reset token does not appear to be valid. Please check the link you followed."

Not sure what I'm missing.


texts: Render User Submitted HTML in Freeform Notification

texts:
I have a form where I need to have a table submitted to Freeform in a text area. This is working correctly, however in the notification the table is not being rendered but is rather outputting raw html, see image.

I've set the notification template to allow html, I've also set the textarea to NOT prevent user html rendering.

Is there soemthing I'm missing?

UPDATE - I also set up freeform:entries and this field with the table inside it is outputting the table as entities and not html. Is there some way to get this working?


texts: DevDemon Updater - can't find "EllisLab" folder

texts:
Updating an older site, and I'm getting an error using the DevDemon Updater (v3.2.15), while trying to bring a site from 2.5.5 to 2.8.1

It stops during the update process on an error. And that message says: Unexpected server response, probably a php error. Show Error - which I click through, it says this:

A PHP Error was encountered
Severity: Warning
Message: copy(/var/www/vhosts/mysite.com/sitehomedir/blog/system/expressionengine/cache/updater/1407520245_589541/system/EllisLab): failed to open stream: No such file or directory
Filename: libraries/updater_transfer.php
Line Number: 827
{"success":"yes","body":""}

Not sure why it's looking for an Ellislab folder in /system/ - Is this a bug in the updater? Or something with my code?

Caveat: my site is in a subfolder (i.e. mysite.com/blog/ ) All the other functions work fine, but I just can't get EE to update.


texts: How to crop images with the Blocks module?

texts: I was wondering if there's a module/add-on around which lets me crop/resize images with the Blocks module?


texts: How to check total amount of entries in a channel

texts:
If I'm using expression engine just using backend (for example I just write the blogs I don't code with the developer), no exposure to the code, how do I view the total amount of entries?

How do I filter those entries to show me how many drafts, how many published and so on?

Seems trivial but I don't know the answer.


texts: EE 253 > 273 upgrade not "progressing" - just skips to "finished" screen

texts:
I ran the update locally and it acted as expected. On the dev server, it goes right from the "begin" button to the "finished" screen. The DB definitely isn't getting touched, as i'm getting "field not found" db errors when i try to login afterward.

I've tried disabling extensions with no change. Anything else you can think of that might cause this? Anyone seen this?


texts: Updating store from 2.5.1 to 3, can i copy DB tables to keep them in synch?

texts:
I just updated Store from 2.5.1 to 3.0.1
Now since this has been done on a separate server, the orders database is out of synch. Can i just copy the tables from the live website to the new website?
And which tables would that exactly be?

Thanks in advance

jelle


texts:
I have an EE category name that contains an ampersand-- i.e. "Coffee & Tea." I'm displaying this name as the header for a listing of cafes and tea houses using the {category_name} field, and I'm trying to figure out the best way to properly escape the character for output to HTML. It seems that I can actually name the category within EE as

"Coffee &amp; Tea"

so that it will be properly rendered, although I'm not sure if this approach is at all problematic? Ideally, I'd like for EE to handle it automatically. Any thoughts? Thanks for any insight here.


texts: Expresso Store display custom field on checkout page

texts:
I'm trying to display a custom field (a product picture) in the checkout page but it's getting buggy.  I'd like to display a picture of each product next to it's info.  When the page is processed, it displays the first picture correctly, but loops the same image for the rest of the products.  I can't figure out why (I'm new to EE).  Please help.   My code is as follows:

    {items}
    {exp:channel:entries channel="products"}

        {title}
        {item_qty} &times; {item_subtotal}

    {/exp:channel:entries}
    {/items}


texts: “You are not authorized to perform this action” with Low Search

texts: I'm using Low Search on a site and during testing we are seeing the error “You are not authorized to perform this action” pretty frequently on the site after submitting the search form. Does anyone know why this is happening?


texts:
I have a number of entries containing videos with the language options contained in an ee2.7 grid field (ie. English / Irish).
I am using the following code to output each video link in a fancybox lightbox. However the code I have at present does not work for ie8 and ipads etc.

{parents field="related_story"}

{parents:title}

{parents:video}{parents:video:video_title}&nbsp;&nbsp;{/parents:video}

                     {/parents}

Ideally I need to have a separate piece of js for each video similar to the following which I am using elsewhere on the site to pull in specific videos:

$(window).load(function(){
$("a.fancybox-myths").fancybox({
  content:'
Loading the Video...
',
  maxWidth:"100%",
  maxHeight:"100%",
  fitToView:false,
  maxwidth:"100%",
  autoSize:false,
  closeBtn:true,
  openEffect:"fade",
  closeEffect:"fade",
  scrolling:"no",
  autoDimensions:!0,
  helpers:{closeClick:!0,
    title:{type:"inside"},
    overlay:{
      locked:!1,
      css:{
        background:"rgba(40, 33, 33, 0.80)"
      }
    }
  },
  afterShow:function(){
    jwplayer("videospace").setup({
      playlist: [{file: "http://webaddress.com/assets/video/title.mp4"}],
      primary:"flash",
      autostart:true,
      rtmp:{bufferlength:5},
      width: "100%",
      aspectratio: "16:9"})
  }
})
});

Essentially, what I need to do is automatically output the following line of the script dynamically with each link:

[{file: "http://webaddress.com/assets/video/title.mp4"}],

Apologies, this probably sounds very complicated!


texts: Can you query a grid field to return a list of distinct fields?

texts:
EE 3.1.4

I need to get a detail field from a grid field, but I also need the results to be distinct. The issue I have is the grid field returning a pipe delimited field set.

So running something like this:

{exp:query sql="SELECT DISTINCT field_id_23 AS bedroom_count FROM exp_channel_data WHERE channel_id=3"}
    {bedroom_count}
{/exp:query}

yields results similar to:

315,000|3|2|2|1|2374

...but be able to return the distinct values from a particular segment inside that set like just the field that, in this case, was '3'.

Is there a way to better do this? I need to stash them in a stash list to be used in a ddl selection.

* ANSWER *

I wish I could accept two answers for this. Derek provided what I asked for, but Stuart made me fix my original mistake.

I originally had this being done with stash. My mistake was that I had this:

{!-- BATHROOMS --}
{exp:channel:entries channel="house" dynamic="no" limit="999999"}
    {exp:stash:set_list name="bathroom_counts" parse_tags="yes" parse_depth="2"}
        {house_details}
            {stash:bathrooms}{house_details:bathrooms}{/stash:bathrooms}
        {/house_details}
    {/exp:stash:set_list}
{/exp:channel:entries}

And fetched it like this:

{exp:stash:get_list name="bathroom_counts" unique="yes"}
    <li>{bathrooms}</li>
{/exp:stash:get_list}

The problem I was having, besides being extremely tired at the time, was creating my list within the channel:entries loop.

I needed the following:

{!-- BATHROOMS --}
{exp:stash:set_list name="bathroom_counts" parse_tags="yes" parse_depth="2"}
    {exp:channel:entries channel="house" dynamic="no" limit="999999"}
        {house_details}
            {stash:bathrooms}{house_details:bathrooms}{/stash:bathrooms}
        {/house_details}
    {/exp:channel:entries}
{/exp:stash:set_list}


texts: Loop through entries, one category at a time

texts:
I'm having a bit of trouble with this, and I can't even describe it very well. Anyways, what I want to do, is list through all the entries I have in a certain channel, just like usual. Except I want to sort it by categories. So on the page, I want category 1 title, then all the entries assigned to category 1, then category 2 title, and all the entries assigned to category 2, etc. Like this:

**CATEGORY 1 TITLE**
 _______
|       | {title}
| {img} | {description}
|_______|
 _______
|       | {title}
| {img} | {description}
|_______|

**CATEGORY 2 TITLE**
 _______
|       | {title}
| {img} | {description}
|_______|

**CATEGORY 3 TITLE**
 _______
|       | {title}
| {img} | {description}
|_______|
 _______
|       | {title}
| {img} | {description}
|_______|

Hopefully that makes sense. This is what I've tried,

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

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

{category_name}

{title}

{description}

{/exp:channel:categories}

{/exp:channel:entries}

But that doesn't work at all, because for each entry it shows all the category titles, and then under each title displays that entry's info once.

I really hope that was clear enough. Any help would be greatly appreciated. Thank you


texts: ExpressionEngine v.s. Database.Mangement System

texts:
I'm really confused! I've been trying non stop to connect to an Oracle database through ExpressionEngine throughout the last two weeks. I've finally given up when I saw a previous post(Is it possible to use ExpressionEngine with an Oracle database?) that stated that EE will not work with Oracle.

the error I'm getting is 'driver not found' when I use the PDO oci or undeclared function connect_oci().

If this is true, why doesn't Oracle connect to EE?
Why can Filemaker connect to EE?
If this is true, is there a way to create documents that will allow Expression Engine to use Oracle?
Can EE only use MySQL and Mysqli?


texts: How to set "Admin Notify" preference based on form input value?

texts:
I have a {exp:freeform:form} in my template and would like to set the admin_notify paramter based on value selected from a radio button or drop down.

Is this possible? I am building a simple form that needs to be send to the relevent person so the admin email address depends on the option selected..

Thanks


texts: Stash set_list not working as expected when used with playa, not outputting data

texts:
I'm trying to extract from a list of products in the cart the (playa) related entries (i want the entry_id's), put them into stash and then i need to use those id's somewhere else to build a "related products" type thing. But as the products in the cart could have the same related entries, i need to make the list it spits out unique. Oh, and there are two playa fields i need to get data from that both have related products but from two different product channels!

So, first we have the setting of the data:

{!-- Get the current items in the basket --}
{exp:cartthrob:cart_items_info}
{!-- Check the products we're getting the info from are in the channel that actually has the related product fields --}
{if channel_id == 7}
    {!-- Channel entry loop to get the product data out from the id's the cart_items_info has given us --}
    {exp:channel:entries channel="events" entry_id="{entry_id}" dynamic="off"}
    {!-- First playa related products field--}
        {product_sub_product}
    {!-- Stash using unique name the list of entry_id's from playa --}
            {exp:stash:set_list name="sub_prods" parse_tags="yes"}
    {!-- Stash set name as item_id --}
                {stash:item_id}
                    {entry_id}
                {/stash:item_id}
            {/exp:stash:set_list}
        {/product_sub_product}
    {!-- Second playa related products field--}
    {product_related_races}
    {!-- Stash using unique name the list of entry_id's from playa --}
        {exp:stash:set_list name="rel_races" parse_tags="yes"}
    {!-- Stash set name as item_id --}
            {stash:item_id}
                {entry_id}
            {/stash:item_id}
        {/exp:stash:set_list}
    {/product_related_races}
{/exp:channel:entries}
{/if}
{/exp:cartthrob:cart_items_info}
{!-- End of current items in the basket --}

And then we have the getting of the data:

{!-- Get the data out from both sets --}
{exp:stash:get_list name="sub_prods" unique="yes"}
    prods - {item_id}

{/exp:stash:get_list}

{exp:stash:get_list name="rel_races" unique="yes"}
    races - {item_id}

{/exp:stash:get_list}

What's odd, is that i can see the data in the database so it is all working as expected. But stash get_list is not outputting the data.


texts: How to show the current position of an entry within all entries

texts:
Is there a simple way to show all entries for a channel, and the current entry 'position' from the count without using Pagination (don't want to affect URLS).

So the first entry from three entries for a channel would show:

1 of 3

Last entry from same set of entries:

3 of 3

I've looked at count, absolute count, total_results and absolute_results but can't find a simple solution... Any guidance would be appreciated. I'm sure I'm missing something easy here.

Ta, Liam


texts: Strip line breaks, quotes, HTML out of SQL query result for CKEditor field contents (for CSV output)

texts:
I have a very simple "PHP allowed" EE template that queries the EE db and generates CSV reports from it. I need to add to one of these reports the contents of one particular channel field, which happens to be a CKEditor field. The double quotes and line breaks within the contents of this field in some rows are wreaking havoc with my CSV output, and other HTML doesn't actually break the CSV but is useless at best in the context of readable CSV output.

So what's the most straightforward way to strip out line breaks and doublequotes, and maybe also all HTML, without having to install any new add-ons, which to my eternal chagrin I cannot do on this site?

My full template code is below... you obviously won't be able to run it because my channel field definitions are unique, but it shows you the simplicity of what I am doing, so I'm hoping for a likewise simple solution to my HTML stripping issue.

<?php
header('Content-Type: text/csv; charset=utf-8');
header('Content-Disposition: attachment; filename=report.csv');
?>"Title","URL title","First name","Last name","Notes"
<?

    {exp:query sql="SELECT title, url_title, field_id_128 AS 'FirstName', field_id_129 AS 'LastName', field_id_132 AS 'Notes' FROM (exp2_channel_data cd JOIN exp2_channel_titles ct ON ct.entry_id = cd.entry_id) WHERE cd.site_id = 3 and cd.channel_id = 19 GROUP BY cd.entry_id ORDER BY field_id_129"}
        ?>"{title}","{url_title}","{FirstName}","{LastName}","{Notes}"<?
        print "\n";
    {/exp:query}
?>


texts: If not conditional not behaving as expected (== works, != doesn't)

texts:
I'm using DevDemon Forms, on two of my pages, which requires that jquery be included in the the document head. On other pages however, I want to include jquery in the footer.

So i thought I would post this in the header:

{if "{segment_2}" == "skjema" OR "{segment_2}" == "nyhetsbrev"}
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="{site_url}js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
{/if}

Then post this in the footer:

{if "{segment_2}" != "skjema" OR "{segment_2}" != "nyhetsbrev"}
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="{site_url}js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
{/if}

The first part works fine, as jquery is now only included in the header on page "skjema" and "nyhetsbrev".

The second part does not work, as it includes jquery no matter what, which means I'm including jquery twice on pages using Forms.


texts: Safecracker Registration - Custom Confirmation Page

texts:
Is there a way to customize or replace the account confirmation page?

I want the page to align with the design philosophy of the site. So I want it to look close to the other pages I have.

Is there a way to do this?


texts: How to stop Matrix NSM TinyMCE field from converting HTML tags to entities

texts:
I have a matrix with a text field and a NSM TinyMCE field. For some reason the NSM TinyMCE field keeps converting HTML tags to entities. So I get things like:
<p>&lt;p&gt;&amp;lt;p&amp;gt;&amp;amp;lt;p&amp;amp;gt;&

Everytime I save the entry I get a new set of <p>&

I checked NSM TinyMCE field on its own and that works fine. No entities conversion.

I checked the channel for "Default HTML formatting in channel entries" and it's set to "Allow all HTML".

I also tried adding entity_encoding : "raw" in my TinyMCE config file.

My EE2 is v2.5.3
Matrix 2.5.2

What am I doing wrong?


texts: Freeform Pro - display form results for user to print after submission

texts: I am going to setup a Freeform Pro form on a website to replace a downloadable PDF form. The user will still need to print the form results off, so after a user fills out the large form and submits I want to display the results on a page or in a popup window that the user can then print. But I don't want that page to be accessible to the general public, so maybe it has a obfuscated URL that is time-sensitive or something. Any ideas about how to do this? Thanks for any info!


texts: WYVERN not showing images due to relative paths (Multi Site Manager, EE2.11.7)

texts:
I've got a secondary site using WYVERN. Everything works fine, and when I insert an image, WYVERN puts

/files/imagePath/image.gif

In the code. So the code is correct, but since I am viewing the EE control panel from the primary site's URL, the image doesn't appear within WYVERN.

Is there some setting I can change in Assets or elsewhere that will prepend secondary-domain.com within WYVERN so the image appears?

[EDIT]
Adding to the complexity - this site needs to run over SSL or non-SSL (allowing for visitors in China and other unfree places to access). So code output on the website needs to be relative, i.e.,
/path/img.gif

not

http://domain.com/path/img.gif


texts: Using Supersized.js & Channel Images in EE2.7 segment_3 problem

texts:
Im stuck - Ive got a simple portfolio site with a few channels, lists, search and so forth. Im using Supersized with Channel Images to run galleries. I made the first gallery (for the background full screen slides) using an entry in a dedicated channel, uploaded a bunch of images, and used the following code to run the script:

 {exp:channel:entries channel="gallery" entry_id="18" enable="custom_fields" parse="inward" limit="1"}

       jQuery(function($){

    /... all the supersized stuff before the slides list .../

    slides  :
       [
       {gallery_image}
       {image : '{image:url:full-size-op}', title : '{image:title}', thumb : '{image:url:thumbnail}'},
       {/gallery_image}

        ]
      });
          });

    {/exp:channel:entries}

This works fine* in all sections of the site, except the (single) entry pages. Why is it breaking, has anyone come across anything similar? Even though it has a last trailing comma, that doesn't seem to be a problem. In other words, by segment_3, it breaks, like this: www.mydomain.com/channel/entry/entry_title
(Im running the site without index.php.)

(* - Caveat: in IE8 the script breaks as it returns an error to do with 'thumb_links' being undefined, even though they are. My code isn't the cause of that break, but its a separate issue). UPDATE ON THIS: My code was the cause - removing the last comma sorted this issue out, using backspace="5".


texts:
i am using "example.com" URL for magento and "example.com/info/blog" URL for expression engine blog access now client want to access expression engine blog in root URL "example.com/blog" is it possible with coding ?

i want to remove "info" from URL i installed expression engine in "info" folder but i want to access expression engine from magento URL "example.com" not from "example.com/info/"

please guide me
thank you.


texts:
I've started having issues with old EE sites on my development machine now that I'm running newer versions of PHP and MySQL. I've been able to sort most of these out except for the following MySQL errors from the Assets module.

This error displays when trying to view an Assets field in the admin:

 A Database Error Occurred
 Error Number: 3065

 Expression #1 of ORDER BY clause is not in SELECT list, references column 'mysite.ae.sort_order' which is not in SELECT list; this is incompatible with DISTINCT

 SELECT DISTINCT a.source_type, a.folder_id, a.file_name, a.file_id, af.source_id, af.filedir_id FROM exp_assets_files AS a INNER JOIN exp_assets_selections AS ae ON ae.file_id = a.file_id INNER JOIN exp_assets_folders AS af ON af.folder_id = a.folder_id WHERE ae.col_id = '1' AND ae.row_id = '115' AND ae.entry_id = '36' AND ae.field_id = '2' ORDER BY ae.sort_order

 Filename: third_party/assets/ft.assets.php

 Line Number: 682

This error displays on the frontend when using the asset fieldtype pair tags.

Error Number: 3065

Expression #1 of ORDER BY clause is not in SELECT list, references column 'mysite.ae.sort_order' which is not in SELECT list; this is incompatible with DISTINCT

SELECT DISTINCT a.* FROM exp_assets_files AS a INNER JOIN exp_assets_folders AS af ON af.folder_id = a.folder_id INNER JOIN exp_assets_selections AS ae ON ae.file_id = a.file_id WHERE ae.entry_id = "28" AND ae.field_id = "2" AND ae.col_id = "1" AND ae.row_id = "107" AND ae.is_draft = 0 ORDER BY ae.sort_order

Filename: third_party/assets/ft.assets.php

Line Number: 1538

I'm using:

EE 2.11.2
Assets 2.6
MySQL 5.7.9
PHP 5.5.30

It looks like EE had some compatibility issues with MySQL 5.7 and I wonder if this is related.
https://support.ellislab.com/bugs/detail/21444/a-database-error-occurred-this-is-incompatible-with-distinct-mysql-5.7.10

Any help would be really appreciated.


texts: ExpressionEngine control panel shows raw source

texts:
this is happening randomly, but when I go to my login page, it sometimes just shows

on other occasions, I tried to view the filemanager but got a page with

{"rows":[{"file_id":"686","title":"logo220.png","file_name":"logo220.png<\/a>","mime_type":"image\/png","upload_location_name":"emails","upload_date":"2014-10-20 03:43 PM","_actions":"<a href=\"loginURL.php?

it doesn't happen all the time so I'm a bit stumped.

does anyone have experience with that?

EDIT: it's happening on a couple of our sites now (on mediatemple's grid service) and sometimes, the login screen just shows "C=login"


texts: Menu with sub-items from channel entries

texts:
I have a channel called services. The entries from that channel are used to populate a dropdown menu & a sidebar menu.

The problem is that there are some services that have sub-services.

I need to display only the parent services in the dropdown menu but need to display the parents with their children in the sidebar menu.

How can I do this when all services are in the same channel and there are no categories to create a nested list of parents & children services?


texts:
Using Assets 2.x in a recent site build. When we initially built the site, we didn't opt for S3 as it wasn't approved by the client. Since then, the site has yet to launch and thinking has changed - S3 is now the preferred option.

Question: Is there any relatively painless way to migrate existing Assets to S3 - mind you we're using WYGWAM, Matrix, Playa on the site. Essentially, looking to know whether or not we can avoid manually accessing each entry and migrating those Assets.

Thanks in advance for your advice!

Cheers,
Michael


texts: Freeform entries show users submitted entry

texts:
How do I show a users submitted entry using Freeform entries? For example I need to show an immediate response to a users form submission on a return page. ie:

            {exp:freeform:entries
                form_name="apply"
                orderby="entry_date"
                sort="desc"
                limit="1"
                status="pending"
            }

               {if '{freeform:field:age-range}'=="Yes" AND '{freeform:field:health}'=="Yes"}Your'e OK{if:else} You're not OK{/if}<br />

            {/exp:freeform:entries}


texts:
Is there a way in the control panel to differentiate between channel entries that have the same title? We have a 'related course' field that looks at courses and have several 'science' courses that are further defined by category but there's no way to see this.

We need to be able to choose any course but also see its category.


texts: Cartthrob: Shopping cart with over 100 products in cart

texts:
Has anyone used Cartthrob with a super stuffed cart of 100 to 200 items in cart?

I'm attempting to create a system in the style of an online supermarket shopping cart where you can see all your products in a single cart.

Adding products works ok (could be quicker, 5s load time), but when using the update cart form takes minutes to load.


texts:
I can't get it work. Ik use structure, low events and freebie in a ee website.

My code looks like this:

{exp:switchee variable="{segment_3}" parse="inward"}
{!-- --------------------------------- All agenda items ----------------------------------------------  --}
{case value="''"}

{exp:low_events:calendar channel="ch_agenda" date="{freebie_3}"}

{if '{prev_month format="%Y%m"}' >= '{current_time format="%Y%m"}'}

{exp:low_events:prev_date date="{freebie_3}" unit="month" format="%F %Y"}{/if}

{next_month format="%F %Y"}

{this_month format="%F %Y"}

{/exp:low_events:calendar}

{exp:low_events:entries channel="ch_agenda" date="{freebie_3}" unit="month" show_passed="no" no_results="yes"}

{title}

{agenda_datum:start_date format="%j %F %Y"}
{if '{agenda_datum:end_date format="%j %F %Y"}' > "{agenda_datum:start_date format='%j %F %Y'}"} tot {agenda_datum:end_date format="%j %F %Y"}{/if} {agenda_plaatst}

read more...

{/exp:low_events:entries}

{/case}

{!-- --------------------------------- 1 detail item  ----------------------------------------------  --}
{case default="Yes"}

{exp:channel:entries channel="ch_agenda" limit="1" dynamic="yes"}

{if agenda_image != ""}{/if}

{title}

{agenda_datum:start_date format="%j %F %Y"}
{if '{agenda_datum:end_date format="%j %F %Y"}' > "{agenda_datum:start_date format='%j %F %Y'}"}
 tot {agenda_datum:end_date format="%j %F %Y"}{/if} {agenda_plaatst}
{agenda_tekst}

{/exp:channel:entries}

{/case}

{/exp:switchee}

When I go to agenda I get this URL and what I see is what I want.
http://site.nl/actueel/agenda/

In the Freebie settings I have as Breaking Segments: agenda

I did this to be able to use this link:  without problem with structure.
I get then this URL: http://site.nl/actueel/agenda/2014-11

But I have a problem with my read more… link: read more...
I know it's because of my Freebie settings but how can I get de detail page to work.


texts: How to create custom PHP/Mysql page in ExpressionEngine?

texts:
I'm currently assigned to create custom page in ExpressionEngine (because that's the old code). I'm not getting used to ExpressionEngine and CodeIgniter either. I do inspecting the structure of current code then I decide to put my script to the template so I just choose the template when I create new page in ExpressionEngine admin page.

The question is: How to put my custom PHP script to that template because I could not find one PHP script in other template before? or If my way is wrong, How to create custom PHP page in ExpressionEngine?

FYI: custom script is want to connect to other server DB and google map API.


texts:
Have just updated Matrix to 2.5.6.

When I go to Add-ons > Fieldtypes > Matrix to trigger the update script I get this error.

  A Database Error Occurred Error Number: 1060

  Duplicate column name 'var_id'

  ALTER TABLE exp_matrix_cols ADD var_id INT(6) UNSIGNED AFTER field_id,
  ADD INDEX (var_id)

  Filename: third_party/matrix/ft.matrix.php

  Line Number: 496


texts: Exp:resso Store tax free no longer available in channel entry

texts:
Prior to Store 2.0 there was the option to have a product be tax free by selecting the option in the channel entries product details field. Why has this been removed and what is the best way to accomplish this task now?

This image shows the difference


texts: How to return the right {site_short_name} in a Channel Entries Tag when using MSM

texts:
I'm using MSM to manage a number of sites, but on one of them I need to list ALL news items across ALL sites (which is easy!) ... however I need to identify which site each item has come from by either site_id or site_short_name, etc.

So... I'm looking for:

{exp:channel:entries channel="news" site="siteA|siteB|siteC"}
{count}. {title} - {site_short_name}

{/exp:channel:entries}

To result in:

1. My great title - siteB

2. Another great title - siteA

3. Yet another great title - siteC

Unfortunately, the {site_short_name} is only coming back with the site_short_name of the site I am actually on.  For example if the above code is on Site A, it comes back with the results:

1. My great title - siteA

2. Another great title - siteA

3. Yet another great title - siteA

Anyone able to help?

Cheers.


texts: Is it possible to span an entry over multiple pages with Structure?

texts:
I would like to have a Structure managed page span the content of that entry over multiple pages using the method in the EE Docs.

My code:

 {exp:channel:entries channel="articles" paginate_type="field" paginate="bottom" limit="1" }
        <h1>{title}</h1>
        {multi_field="page1|page2|page3|page4|page5"}

        {paginate}
        Page {current_page} of {total_pages} | {pagination_links}
        {/paginate}
{/exp:channel:entries}

The first page shows the content from {page1} however each addition page is empty.

I have also tried adding dynamic="no" & url_title="{segment_2}" to the exp:channel:entries tag with the same results.

Are there any other options that I might be missing or is this just not possible?

Thank you


texts: Use Custom Field as Timezone Parameter in Date Field

texts:
I have a custom field where the publisher can choose what time zone they want the entry date to display as, but I'm having trouble when trying to use it in the template:

{exp:channel:entries
    channel='events'
}
    {entry_date format='%g:%i%a %T' timezone='{events_tz}'}
{/exp:channel:entries}

Since both tags are parsed at the same time, the {events_tz} field doesn't get parsed in time to be applied as a parameter to the date field.

How would I accomplish this? I'm willing to use Stash, if necessary.


texts: Parse some data with a plugin before sending as a email (plain text)

texts:
I'm trying to create a plugin to greet depends on the time of a day with a different phrase.

The plugin works correctly on the ExpressionEngine environment but at the moment is not able to send any data parsed, rather than plain text in my email.

My email works with a plugin (user) which use the default email for expressionengine to send an email like so:

        ee()->email->wordwrap = true;
        ee()->email->from(
            ee()->config->item('webmaster_email'),
            ee()->config->item('webmaster_name')
        );
        ee()->email->to($email_data['to']);
        ee()->email->subject($email_subject);
        ee()->email->message($email_template);
        ee()->email->send();

My plugin instead looks like that:

class Time_greeting {

    public $greetings = "";

    public function greeting()
    {

        $ee = $this->EE =& get_instance();

        $tagdata = $ee->TMPL->tagdata;

        $time = date("H");
        $timezone = date("e");
        if ($time < "12") {
            $greetings = "Good morning";
        } else
        if ($time >= "12" && $time < "17") {
            $greetings = "Good afternoon";
        } else
        if ($time >= "17" && $time < "19") {
            $greetings = "Good evening";
        } else
        if ($time >= "22") {
            $greetings = "Good night";
        }
        return $greetings;
    }
}

And I'm calling it in a template like that:

{exp:time_greeting:greeting} {name},

To reset your password, please go to the following page:

{reset_url}

As you can expect, it works fine inside ExpressionEngine in any template.

Is there any way to parse the plugin before sending the email so I can get a phrase like I explained?


texts: Emails not being sent from CP after 2.6 update

texts:
Site is using Sendgrid (Smtp) to send newsletters via the Communicate Tab or Firemail and also using  Freeform for form notifications.

Since the 2.6 upgrade none of these work: Freeform is storing the form submissions in ths CP but no mails being sent. Communicate tab not working - error below - and notifications like 'lost password' not being sent either. These are the errors in Communicate tab:

An Error Was Encountered
Unable to send email at this time.

The following SMTP error was encountered: 110 Connection timed out
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

This is in a screen pop-up/overlay which obscures another error beneath:

A PHP Error was encountered

Severity: Warning

Message: fsockopen(): unable to connect to smtp.sendgrid.net:587 (Connection timed out)

Filename: libraries/Email.php

Line Number: 1884

Not sure if this is an EE bug - tend to think it is - anyone else had issues with this?


texts:
There is an EE extension (Ctrl+S) I want to install, but when I download it, it is just a php file, with no ReadMe file as to where to install it.

I am stuck, I don’t know where to put this, to make it work. I know I am missing something basic, can someone tell me what to do.

Thanks


texts: How to retrieve/pass current entry id within another channel entries tag pair?

texts:
I am currently trying to loop through channel "promos", where each entry has a Playa field designating which entries that particular promo should display on:

{exp:channel:entries channel="promos" orderby="promos_order"}
    {exp:playa:children field="promos_show_on_page" child_id="{current_entry_id}" var_prefix="playa"}

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

My issue is that I don't know how to pass in the current_entry_id to the child_id parameter.

Is this possible with or without any particular plugins or extensions, or am I going about this in the completely wrong way?


texts: FreeForm Pro, Dynamic Recipients field - where is this data stored?

texts: I have a long dynamic recipients field defined for one form, and a client wants that same field in another form. Instead of re-typing it all manually I'd like to edit a database somewhere, but I can't find where this field is located. Can anyone point me to the right place? Using EE 2.7, FreeForm Pro 4.2.5


texts: We're running EE5.  Some of our links (which go to Sharepoint) contain a string of chars that EE doesn't like, specifically : r : (without the spaces in between.)  Links containing that string look fine in the database, look fine when editing en entry in EE, but then end up being replaced by a bunch of characters when someone views the resulting web page in a browser.  This same string is no problem when coming from a template.  I've searched for answers and had zero luck.  Any help, even a point in the general direction, would be greatly appreciated.


texts: Need some help with GWCode Categories, url segments, and conditionals

texts:
I have a products section where I give each product group a main category. Initially I had it setup where each product had a main category and a sub category. GWCode generated a side nav from the catgories that looks like this...

Shampoos ( /products/shampoos/ )

Brand1 ( /products/shampoos/brand1/ )
Brand2 ( /products/shampoos/brand2/ )

Soaps ( /products/soaps/ )

Brand3 ( /products/soaps/brand3/ )
Brand4 ( /products/soaps/brand4/ )

URL setup...

/products/shampoos(category)/ = list of all shampoo products
/products/shampoos(category)/brand1(subcategory)/ = list of all shampoo products with the Brand1 category
/products/shampoos(category)/brand1(subcategory)/flowers(url_title) = single entry displaying the "flowers" entry

In my template I use Switchee to show a list of products when segment_3 is blank. If segment_3 is not blank I use if statements to detect if segment 4 is blank or not. If it is I show a list of products. If it is not blank I show the single entry product details. This worked GREAT until the client informed me that the products won't always have a subcategory. Which means this url setup is possible as well...

/products/shavinggel(category)/
/products/shavinggel(category)/coolmint(url_title)

So now the switchee and if statements I have setup won't work in this situation. I'm trying to figure out if there is a way to detect if segment_3 is a url_title or a category_url_title and   display the appropriate code. Or if you have any other ideas.

Simplified template setup...

{exp:switchee variable = "{segment_3}" parse="inward"}

{case value="''"}
    {exp:channel:entries channel="products" category="{segment_category_ids}" disable="member_data|pagination" sort="asc" dynamic="no"}
        <!-- display list of entries from main category -->
    {/exp:channel:entries}
{/case}

{case value="" default="Yes"}
    {if segment_4 == ""}
        {exp:channel:entries channel="products" category="{segment_category_ids}" disable="member_data|pagination" sort="asc" dynamic="no"}
        <!-- display list of entries from sub category -->
        {/exp:channel:entries}
    {/if}
    {if segment_4 != ""}
        {exp:channel:entries channel="products" disable="member_data|pagination" sort="asc" url_title="{segment_4}" dynamic="no"}
        <!-- display single entry detail page -->
        {/exp:channel:entries}
    {/if}
{/case}

{/exp:switchee}


texts: Playa only returning children in same channel

texts:
EE 2.3.1
Playa 4.4.5
I'm just looking to return the children for a given entry.
Playa is only returning the children that are in the same channel as the parent.
This works as expected on my testing server (EE2.6.1).
This is all that is in the template.

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

{title}-{entry_id}

{slider_articles}

{title}

{/slider_articles}

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

yet specifying  {exp:playa:child_ids entry_id="1234"} returns all the correct related id's.
All the data looks correct in the exp_playa_relationships table.


texts: Custom Extension Help (entry_submission_absolute_end() hook)

texts:
I'm making a custom extension to add a channel entry's data to another remote database, but I only want to do this with certain channel(s).

How do I check inside my extension hook what channel the entry is being published in?

/**
* Adds new EE product to Infusionsoft products table.
*
* @return bool
*/
public function entry_submission_absolute_end() {

    // if the channel being published is "products", continue..

    // get the product details from the channel entry form
    $newRow = array(
        'ProductName' => '',
        'Description' => '',
        'ProductPrice' => ''
    );

    // add the new row(product) to the infusionsoft db
    if ($this->app->dsAdd('Product', $newRow)) {
        return true;
    }

} // END


texts: Twitter and Facebook login support in EE

texts:
What do you recommend for implementing EE member sign-on support using Facebook and Twitter accounts?

We are having a lot of trouble with our CAPTCHAs with EE comments and so we are considering dumping the captcha and just requiring an account to be able to comment. In order to make it a little more open though, we'd like to let people use their Twitter or Facebook log-in to sign-in. Someone has recommended Social Login Pro, but are there other add-ons that are recommended or are we better off implementing our own solution using the Twitter and Facebook APIs?


texts: are reverse relationships still possible in 2.6.1

texts:
There are several portions of my site that rely upon self referencing relationships, that are (or rather were) gathered through the reverse_related_entries tag pair.

Quick example:

I have a channel for press releases. One of the attributes of that channel is a relationship called translations, which points to its own channel, press releases.

When a PR is entered it is usually in English only. Often though, there will be other translations of that same PR, so when they go into the system, the relationship attribute is used to “point” to the origin press release.
Then in a template where the origin press release is being shown, I used a reverse_related_entries pair to loop through and show me all the other language press releases that pointed to “this” one.

Well, I’ve just upgraded to 2.6.x from 2.5.x and all my templates which used relationships in any way are now broken, because there is no backwards compatibility here. Sucks big time, but what can ya do…

The problem is, as sexy as the re-designed relationship functionality looks to be at first glance, I cannot for the life of me figure out how to reproduce what I was doing before. Everything seems to rely on being
inside of a exp:channel:entries call where the channel in question has clear relationships downward to children. It’s a bit confusing.

Given the scenario I’ve described above, is there anybody alive who can tell me how to duplicate the reverse_related_entries functionality in the new format?

I’m truly desperate here and any help is hugely appreciated.

Andy


texts: Is there any module available for Export data?

texts:
I wants to export all data from my expression engine website (2.8.1.0) and import to Wordpress site. Can you please suggest any module?

Thanks.


texts: Adding a Link in Wygwam causes the link to break

texts:
I have a Wygwam 3.2.1 field inside ExpressionEngine 2.5.3. When I add a link to a PDF like so using the Source editor;

You can download the guide to find out more about .

It renders like so in the view source on the front end;

You can download the

In the browser, this obviously just cuts the text off after '... download the '.

Anyone else experienced this issue?


texts:
Using Freeform Lite 1.5.2 for EE. How do I find and review the spam folder? It appears it may be catching too many false positives. What can i do to ratchet back the sensitivity?

Also, why am I the only person who can successfully upload a file through these forms?
Thanks.


texts:
I have a notification setup that is pulling the top 5 most viewed entries within the specific channel, and I want to send this email with the top 5 most viewed entries, and I want to send this notification out every 2 weeks. Below is the line of PHP code that I embedded to the notification as well as the channel entry calling it. Its showing just the top 5 most viewed overall still and is not resetting.

<?php
        $start_time = ee()->localize->format_date('%Y-%m-%d %H:%i', ee()->localize->now - (60*60*24*14));
?>

    {embed="_embeds/two-weeks-php"}
{exp:channel:entries start_on="<?php echo $start_time; ?>" site="example" channel="blog" dynamic="no" limit="10" status="open|Preview" {global:disable_basic} orderby="view_count_one"}

Any help would be greatly appreciated!


texts:
I have this markup:

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

Bla Bla

{/exp:channel:entries}

I'd like to add the current category as a class. With this markup all categories are added. But I only want the one from this channel entry. How do I do this?

Thank you


texts: How many size options are allowed per item?

texts:
Excuse my ignorance but I know very little about Expression Engine and CartThrob.  Of course if I knew it all, I would need to ask this question would I?

So, I'm in ExpressionEngine and I click on CartThrob ->Products ->Store - Products, I click on one of the items listed under the Title column.  It brings up a form where we can enter "Size Options"  In there we can enter the following informaiton.

Option Short Name {option_value}
Option Label {option_name}
Price {price}
Inventory {inventory}
Weight {weight}

My question is how many of these size options can I enter?  I have been told that the limit is 150 but find that difficult believe, but I haven't been able to find documentation to support or refute that claim.


texts:
I have a client who has found that when one user is locked out of the CP, all others are locked out too. This makes me think that this is based on IP address alone rather than username.

Anybody got any experience with this issue?

Thanks

EDIT IN RESPONSE TO QUESTIONS:

This happened over a weekend so I wasn't online to check the database at the time. However the message received was 'You are only permitted to make four login attempts every 30 minute(s)'. So one user locked triggered this lockout but it affected all other users in his company.

Looking at the check_password_lockout() method in Session.php it looks like the check is based on username OR useragent. So it would appear that if he locked himself out in a particular browser, all other users on that IP would be locked out if they were using the same browser.

I'm not a security expert in any way, but shouldn't that SQL check be AND not OR? Any thoughts?


texts: Exp-resso Store Custom Payment Gateway / Sagepay Form

texts:
On the Expresso Store documentation it says that making custom payment gateways is dead easy, but i cant find the documentation on how to do so. Does anyone know where i can look / have any info?

Also i am going to be integrating using Sagepay Form. This is different from Sagepay server and direct. I assume i need to code my own custom gateway and that is not anything else available that i may have missed?


texts: What is the best method for exporting channel entries as a spreadsheet?

texts: My client has asked me to export all data as a spreadsheet. This includes playa and matrix data. What method would you suggest for accomplishing this?


texts: Multiple ExpressionEngine sites/installs on cloud server

texts:
I have a simple question regarding the installation of multiple EE sites on a single cloud server: I have a basic LAMP stack (w/ Ubuntu 14.04) on my RackSpace server that runs several websites. The primary website is already running on EE, and I'm just wondering if I can install another instance of ExpressionEngine for a different site on the same server, without issue, assuming I create a separate MySQL database for the new site?

Thanks for any insight here.


texts: Exp-resso Store not registering Shipping Country

texts:
I've just added a new country to my client's webshop (Belgium), and I've added a rule to their Shipping method which checks for this country, and then sets a shipping-rate. Belgium shows up in the dropdown on our checkout-process now, but when I select it, and go to the next step (order confirmation before payment) it'll show our other country (The Netherlands) instead... so apparently selection isn't coming through, even though the dropdown renders fine and the value is set properly... Any thoughts on this?

Thanks!


texts: Right way to list entries within a category (that's specified within a URL)

texts:
Going through old templates and trying to clean up some stuff.

One page I have is a category page. This displays a list of entries within a category that is specified within segment 3 of a url like so example.com/walks/category/myexamplecategory

My template is currently like so (some bits stripped out)...

{exp:gwcode_categories channel="walks" cat_url_title="{segment_3}" output_depth="1" entry_count="yes"}

{cat_name}

We have {entry_count}
  {if entry_count == 1}walk{/if}
  {if entry_count != 1}walks{/if} in {cat_name}

{/exp:gwcode_categories}
{exp:cat2:id category_url_title="{segment_3}" category_group="2" parse="inward"}
  {exp:channel:entries channel="walks" status="open" category="{category_id}" disable="member_data|category_fields" show_expired="yes" paginate="bottom" limit="12"}

{title}

{description}

    {categories}
        {category_name}
    {/categories}
  {/exp:channel:entries}
{/exp:cat2:id}

So as you can see, I'm using Cat2 and GWCode plugins. I'm wondering if theres a simpler way to achieve this, potentially using native tags as opposed to third party ones?
Many thanks!


texts:
We've just pushed a website on to a clients server... Sadly, he's chosen his own hosting and gone with Fasthosts, and Windows!?

After activating PHP and MySQL on the server, we've hit two problems:

When it's in the root folder, it gives us a "500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed." error. No matter if we go to the front end or ExpressionEngine admin itself
When it's in a sub-folder, we get a different error - "The service is unavailable."

Would you say this is a hosting issue, or some settings we need to tweak?

We've ran the Server Wizard and everything is marked as yes.

Is there anything we coudl check to see whats going on? It's a shared host, so there is no logs on the server, or CP that I can see of!


texts: Channel Entries Search Returning No Results

texts:
I have a routine that searches for an existing customer, based on their member email address. I'm passing the email address as an embed variable:

{embed="delivery/charter_customer_form" cust_email="{email}"}

The variable returns the address correctly. If I put {embed:cust_email} in the template, it displays the correct address.

However, when I plug it into the channel entry tag, I get no results, even I though I know for a fact that there is a match there:

{exp:channel:entries channel="customers" search:customer_email="{embed:cust_email}" dynamic="no" limit="1"}

Also, if I replace the variable with the hard-coded address, it returns the entry I'm looking for.

Am I overlooking something?


texts: Website's Company Information Stored In A Channel - good or bad?

texts:
I created a channel that has fields like:

company name
address
a matrix of daily working hours
etc

Throughout the site, I need to display bits and pieces of this data. Does that mean I need to use exp:channel:entries every time to get the info? Seems expensive.


texts:
wondering if anyone can help me convert this to EE6. Thanks
<?php

/**
* @package ExpressionEngine
* @author Wouter Vervloet
* @copyright  Copyright (c) 2010, Baseworks
* @license    http://creativecommons.org/licenses/by-sa/3.0/
*
* This work is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/
* or send a letter to Creative Commons, 171 Second Street, Suite 300,
* San Francisco, California, 94105, USA.
*
*/

if ( ! defined('EXT')) { exit('Invalid file request'); }

class Royal_titles
{
  public $settings            = array();

  public $name                = 'Royal Titles';
  public $version             = 0.6;
  public $description         = "Enable EE global variables for the default weblog title setting.";
  public $settings_exist      = 'n';
  public $docs_url            = '';

    // -------------------------------
    // Constructor
    // -------------------------------
    function Royal_titles($settings='')
    {
      $this->__construct($settings);
    }

    function __construct($settings='')
    {
        $this->settings = $settings;
    }
    // END Super_titles

    function parse_preferences($data = array())
    {

      global $LOC, $PREFS;

      $val = $data['default_entry_title'];

      if( ! $val ) return $data;

      foreach($data as $key => $var)
        {
            $val = str_replace(LD.$key.RD, $var, $val);
        }

        if (strpos($val, LD.'current_time') !== FALSE && preg_match_all("/".LD."current_time\s+format=([\"\'])([^\\1]*?)\\1".RD."/", $val, $matches))
        {
        for ($j = 0; $j < count($matches['0']); $j++)
        {
            $val = preg_replace("/".preg_quote($matches['0'][$j], '/')."/", $LOC->decode_date($matches['2'][$j], $LOC->now), $val, 1);
        }
      }

      $data['default_entry_title'] = $val;

      return $data;
    }

    // --------------------------------
    //  Activate Extension
    // --------------------------------
    function activate_extension()
    {

      global $DB;

    $sql = array();

    // hooks array
    $hooks = array(
      'publish_form_weblog_preferences' => 'parse_preferences'
    );

    // insert hooks and methods
    foreach ($hooks AS $hook => $method)
    {
      // data to insert
      $data = array(
        'class'     => get_class($this),
        'method'    => $method,
        'hook'      => $hook,
        'priority'  => 1,
        'version'   => $this->version,
        'enabled'   => 'y',
        'settings'  => ''
      );

      // insert in database
      $sql[] = $DB->insert_string('exp_extensions', $data);
    }

    // run all sql queries
    foreach ($sql as $query) {
      $DB->query($query);
    }

    return true;
    }
    // END activate_extension

    // --------------------------------
    //  Update Extension
    // --------------------------------
    function update_extension($current='')
    {
      global $DB;

    if ($current == '' OR $current == $this->version)
    {
      return FALSE;
    }

    if($current < $this->version) { }

    // init data array
    $data = array();

    // Add version to data array
    $data['version'] = $this->version;

    // Update records using data array
    $sql = $DB->update_string('exp_extensions', $data, "class = '".get_class($this)."'");
    $DB->query($sql);
  }
  // END update_extension

    // --------------------------------
    //  Disable Extension
    // --------------------------------
    function disable_extension()
    {
      global $DB;

    // Delete records
    $DB->query("DELETE FROM exp_extensions WHERE class = '".get_class($this)."'");
  }
  // END disable_extension

}
// END CLASS


texts: Contact form vs phpmail/sendmail vs mail()

texts:
Symptom: Contact Form does not send mail, but reports success.

maybe someone has an idea how to proceed. I have a standard contact form that DOES return a thank you (success) message but no email is being send.

I tried both sendmail and PHPmail in the email settings - and when I try to send an email from the tools > communicate form I get errors on both ("Unable to send email using PHP Sendmail/PHP mail")

But if I enable PHP in the template and write a simple piece of PHP:

<?php
$to = "name@example.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "name@example.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>

This works. So PHP mail() works. ....

What the heck could be possibly wrong? What do I miss here?


texts: What is the best way to set geolocalised variables?

texts:
I have a site that was happily outputting variables based upon a user's IP address. I was using code that looked to see if a cookie for a user's region was already set and if not, looking up the user's country and then setting said cookie and the appropriate variables.

My code was in a PHP enabled template parsing on output and included the following…

$sql = 'SELECT country FROM exp_ip2nation WHERE ip < INET_ATON("'.$_SERVER['REMOTE_ADDR'].'")
ORDER BY ip DESC LIMIT 0,1';
list($country) = mysql_fetch_row(mysql_query($sql));

But since updating the site in question I find that EE now uses maxmind.com data instead of ip2nation.com, and that what was a single ip field is now 2: ip_range_low and ip_range_high. As a consequence my code no longer works.

Can anyone suggest how to fix my code or suggest a better way of achieving the same end?


texts: I am using Solspace Calendar. I would like to know how to hide the out of range dates (last month and next month day cells) and only display the current month dates.


texts:
Would like to setup an EE template that I can run cron jobs through. With Solspace Calendar's {exp:calendar:ics_update}, I can create a template to include selected calendars and can dynamically set different update cycles (e.g. one a week, twice a week, daily) on the template via a custom channel field for calendar_calendars.

Some calendars which we want to import from don't have ICS files or have more information on other export formats so we use Solspace Importer for these.  The only way I see setting up cron jobs for these is doing it directly and not with a template.

I think I know the answer, but would there be a way to do the same for Importer imports as Calendar imports?  If not, would be great to add a similar feature for Solspace Importer.


texts:
I have a basic channel and I want the pagination to be at the top.

I have got a pagination limit of 20 and output it like this

{if '{count}'=='20' OR '{absolute_count}'=='{total_results}'}
  {paginate} {pagination_links}{/paginate}
 {/if}

This is fine but the pagination appears after the div. I really need it inside to control my responsive layout. Can this be achieved by adding a class to the pagination tag or some other way. It must be parsed last I guess which is causing the issue.

FIXED - add the class inside the {paginate} tag I thought this would wrap around EVERY link but it just adds a wrapper

{if '{count}'=='20' OR '{absolute_count}'=='{total_results}'}
  {paginate}
 {pagination_links}
{/paginate}

 {/if}


texts:
I used a customised control panel theme for my EE2 websites. Does anyone know how I would go about creating a custom theme stylesheet for EE3?

Thanks in advance,

Tom


texts:
What's the best way to clear the EE cache periodically without having to do it manually on sites?

I know there's the Cron Clean Cache plugin but was looking for something more like a system URL that we could hit on a CURL request in cron.

Or is setting up a template with this plugin the only route?


texts: Load Entry Via Ajax - After filtering from dropdown menu

texts:
I am wondering if you can point me in the right direction here. Here is what I want to happen.

1) Site visitor visits the site and sees an elected official displayed on the home page. Next to this elected official is a dropdown list with a listing of all the counties for their state.
2) The user can select another county from this list and then hit a submit button.
3) That portion of the web page refreshes (filters) and the picture and content of the elected official is displayed to match the county (entry) for that official per the users selection.

Because this is housed on the home page, I would like for it (the entry) to load via ajax. So when a visitor chooses a new county and hits the submit button, you see the new entry displayed without reloading.

The county for the official is saved as a custom field text box within their entry.

Any recommendations on how to do this? Does this make sense?


texts: Postmaster + Zoo Visitor + custom fields

texts:
I'm using Zoo Visitor to register members and I've set up Postmaster to email based on a checkbox group (using extra conditionals in Postmaster).

Postmaster sends the email fine, but it uses Zoo Visitor's default email address instead of the one the user put in during registration. This is using a parcel, and the email code looks like this:

Hello! This new member is interested in joining the Marketing Committee. Here is their contact info:

Name: {parcel:member_firstname} {parcel:member_lastname}

Email: {member:email}

Phone: {parcel:member_phone}

{member:email} ends up getting parsed like so: zoo_visitor@yourdomain.tld

I read in a couple of threads over at Devot:ee that using the installed Zoo Visitor Hook in Postmaster would solve this. It does, but then I can't get the custom fields to output properly. The code for that is like so:

Hello! This new member is interested in joining the Marketing Committee. Here is their contact info:

Name: {member:member_firstname} {member_firstname}

Email: {member:email}

Phone: {member_phone}

{member:email} outputs properly, but the other tags don't, and I'm not sure what the proper syntax is for those.

I need to be able to output all the info in the Zoo Visitor channel entry.

Any ideas?