texts: Conditionally returning result from a plugin

texts:
I'm writing a custom plugin to tap into an external database, and I'm getting the overall results I want. However, I want to wrap my return values around a conditional to avoid processing unnecessary queries further down the line - this bit doesn't seem to be working :-/

Basically I want to check whether the current date is Christmas Day. So I have this early on in my logic:

    if($date[2]=="25" && $date[1]=="12") {
        $this->return_data = '
Sorry, there are no sailings on Christmas Day.
';
    }

If it is 25/12, then obviously output the above message and ignore the rest of the plugin, otherwise run the SQL and return a timetable.

Whats happening is (when I change the date to today) it continues through the plugin, always outputting the timetable, presumably because I've nothing to stop the plugin after it returns the data in this conditional.

Do I need to wrap this in an if/else structure? Or can I break the processing somehow?


texts:
Good evening folks,

I recently enquired what the best way to build a UGC site using ExpressionEngine would be. I decided to go down the route of a custom module and that side of things is now working: a table is being created, users are able to add jobs from a form on the front end and there are tags available for me to use in my templates to 'list' and 'single' jobs.

However, I still can't get my head around the EE URL structure.

The site has a number of top-level sections which each of the listing types fall under. The example I gave in the previous post was 'jobs' but this actually falls under the 'opportunities' section. Therefore, the URL structure I'm trying to achieve is:

/opportunities/jobs/                           jobs listing page
/opportunities/jobs/*id*-*job-title*/          job single page
/opportunities/jobs/add/                       add job page
/opportunities/jobs/edit/*id*-*job-title*/     edit job page
/opportunities/jobs/delete/*id*-*job-title*/   delete job page
/opportunities/jobs/success/                   success page for add/edit/delete job
/opportunities/jobs/filter/today/              jobs posted today
/opportunities/jobs/filter/this-week/          jobs posted in last 7 days
/opportunities/jobs/filter/2013/oct/           jobs posted in october 2013
...                                            (previous 12 months)
/opportunities/jobs/filter/2012/nov/           jobs posted in november 2012
/opportunities/jobs/filter/archive/            (including those with a status of 'closed')

I'm baffled as to whether this URL mapping is something that I would build into my module (in which case, could someone please point me in the direction of documentation as I can't find anything about it anywhere...) or whether I'd just create an 'opportunities' template group and the use the 'index' template as a controller to embed the correct sub-template (based on {if} statements checking the value of the third segment).

Or, is this a job for Router, or even some good old .htaccess rules?

Many thanks, as always, for any advice.

Edit: I've found the pages module, which allows me to add a page with the URL /opportunities/jobs but then /opportunities/jobs/add returns a 404. I doubt this is the correct route as it re-introduces the problems I originally faced when using Structure...


texts: CKfinder / CKeditor / Wygwam on a CMS in a subdomain

texts:
Due to high traffic, we had to spread our website over two servers and a load balancer on top.

The master and slave servers are synced one way, from master to slave.

We set a subdomain (cms.domain.com) to point to the master server just for CMS purposes.

All seems to work fine-ish, except CKfinder and CKeditor when uploading images as the frame that they open still points to www.domain.com and that throws the following error on Chrome:

  Unsafe JavaScript attempt to access frame with URL
  http://cms.domain.com/system/index.php?S=2cefbd42dfa263be59dd3f5a725939749a29de90&D=cp&C=content_publish&M=entry_form&channel_id=4
  from frame with URL
  http://www.domain.com/themes/third_party/wygwam/lib/ckfinder/core/c…pload&type=Images&id=1&CKEditor=field_id_345&CKEditorFuncNum=4&langCode=en.
  Domains, protocols and ports must match.

Now, I read on the Wygwam changelog that on version 1.1.2 there was this fix:

  Fixed file browsing and uploading for EE installs with relative Fieldtype Folder URLs and/or varying CP subdomains

Has this anything to do with what I'm trying to do?

If not, is there any way I can make this work?

Thanks.


texts: Cartthrob cart isn't properly tracking sessions or cookies/Can't add to cart on Ubuntu 12.04

texts:
Our setup

We were previously running a load balancer with a 4gb cloud server and 4gb DB server on the Rackspace Cloud. We were using Ubuntu 10.04 + PHP 5.3.2, EE 2.7.2 + Cartthrob 2.4. Everything was running smoothly on both the EE and CT side of things.

We recently added additional, identical servers to the load balancer (total of 3) and upgraded to PHP 5.3.27 on Ubuntu 12.04. Nothing has changed with our EE or CT code.

On our transaction page, we use CT Ajax calls to add to cart and checkout without the user leaving the page.

The Issue

Since moving to the new servers, no transactions have been processed.  We did some digging and found via the response headers that values were being added to the cart; however on the checkout request, the response returned a exp_cartthrob_session_id instead of exp_session_id.

Because of this mismatch, the system thinks the cart is empty and doesn't allow a transaction to process.

When using a browser that has previously processed a transaction and has cookies stored, we're able to make a sale successfully. When logged in, transactions process successfully. It only returns a cart empty response on machines that have cookies cleared or are in an incognito window.

What We've Tried

Looked through possible XID issues, but those appear to be updating successfully.
Checked the db and confirmed a mismatch in session ids: 3 are being created, 2 of which match, and the 3rd that happens on checkout doesn't match.
Confirmed that all of our php config is identical to the old server.
Tried multiple fingerprinting methods and cleared out all existing sessions.
All tests on old server are successfully processed.

Any ideas on what could be causing this?

Update: 11.18.2013

Works locally on os x lion + php 5.3.14 & 5.4.4
Breaks consistently on dev server with ubuntu 12.04 + php 5.3.27 OR php 5.4.21

After further digging, it appears that our sessions/cookies aren't being properly set.  They appear in as a response cookie, but never as a request cookie.

We setup a non-ajax form to add to cart + checkout, and found that items are never being added to the cart.  In the exp_cartthrob_sessions table, a new row is added on each attempted add to cart.

Because CT runs all commands through XSS filtering and ignores the EE global config, we believe there's a possible issue with the xss filtering of cookies. Our current theory is that the filter function is stripping out needed characters, causing a session mismatch, thus creating a new session.
See similar issue: http://ellislab.com/forums/viewthread/237467/

It seems that the issue is only present on Ubuntu 12.04


texts: Solspace Friends: Is there a way to show a list of all friends of certain member?

texts:
When viewing a profile (member_id in segment_3), can I show all the friends of this person? I seem not to be able to find it in the docs.
Thanks a lot for clearing this up for me.


texts:
Doesn't seem to be a way to:

Update a subscription on the front end or
Update a subscription in the CP.

Am I missing something?

I'm in "Test" mode, and using EE 2.7.1.


texts: I have a form with two yes/no radio buttons. Is it possible to create a validation for Freeform if the 'No' option is selected?


texts: If conditional using category selections

texts:
Is there a way of saying

If a category contains two selections, display this CSS
If a category contains one selection display this CSS instead.

I can't seem to find the right formula of {if} conditional with a category selection.

Any help much appreciated.


texts: Blog categories without having to use Structure?

texts:
I've read a few tutorials on how to use blog categories in conjunction with Structure. Is there a way to do this without Structure?

I've never used categories before. Any thoughts on displaying results for categories?

Typically do the following for displaying entries... Something similar for categories?

{exp:channel:entries channel="blog_entry|blog_link|blog_photo|blog_quote|blog_video" search:title_permalink="{segment_2}" limit="1" dynamic="yes"}


texts: Creating a "standard" page template at root

texts:
I'm wanting to allow my client to be able to create unlimited pages at the root of their site, for example, these will be used for confirmation pages etc:

http://www.url.com/test-page
http://www.url.com/test-page2

I've created the following template using Switchee, however when I goto the url for the page I simply get a 404 page. I've created a "standard_items" channel and they have the url of test-page:

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

  {case value=""}

{embed="site/header" page_name="home"}

{exp:channel:entries channel="home" limit="1"}

{title}

{/exp:channel:entries}

  {/case}

  {case default="yes"}

{embed="site/header" page_name="detail"}

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

{title}

    {introduction}
    {image}

    {/image}
    {body}

  {/exp:channel:entries}

  {/case}
{/exp:switchee}

{embed="site/footer"}

Any idea why?


texts: channel:entries and segment with Low Variables

texts:
This is my Low Variable var="lv_article":

{exp:channel:entries limit="1" channel="{segment_1}"}

{title}

{/exp:channel:entries}

When it's parsed inside Stash, the channel data is not parsed when channel="{segment_1}" is used:

{embed="structure/.model"}

{exp:stash:set name='main'}
   {exp:ifelse parse="inward"}
          {if segment_1 == 'science' AND segment_2 == ''}
                  {exp:low_variables:parse var="lv_article"}
          {/if}
  {/exp:ifelse}

{/exp:stash:set}

I tried {exp:channel:entries limit="1" channel="{segment_1}" parse="inward"}, it doesn´t resolved the problem.
Does someone knows how to resolve this problem??

Thanks in advance,

Stéphane


texts: Error: Unable to locate the model you have specified: discount_model on Cartthrob

texts:
I'm running EE v2.9.2 and Cartthrob 2.61

The store processes the order and send the notification, on return, I receive the following error:

"Unable to locate the model you have specified: discount_model"

Any help & insight is appreciated.  Thanks.


texts: File manager issues since upgrade to 2.6.1

texts:
I recently upgraded to 2.6.1 and i have had a few buggy issues in file manager since. Firstly i get a white screen of death on file sync and also when i click on a image link in the file manager table the light box is gone and it opens the image in the browser.
Thanks for any help


texts: 'Add file'/'Remove file' in channel entry not working, console errors

texts:
All of a sudden, I'm unable to add/remove files (using a vanilla file field) from channel entries. No dialog appears, no error in the page.

The console does show errors - but I'm not sure how to address them:

> Found third party scripts in <head> tag.
  Please use cp->add_to_foot() to add scripts. jQuery and the EE global will be moved down in a future release.
  [Inline Script]
x Uncaught TypeError: Object [object Object] has no method 'uniform' admin.php?S=41030c226a249b2e59509a17309f7282&D=cp&C=content_publish&M=entry_form&channel_id=6&entry…:2005
x Uncaught ReferenceError: _EE_uploader_attached is not defined

Thanks.


texts: Getting a file directory tag {filedir_1} out of a query module result

texts:
I'm using a query module to get the results of a channel entry. I've retrieved the correct url:
 {filedir_1}/newimages/img1.png

but it does not replace the {filedir_1} with the necessary prefix like it normally does. Will the query module parse tags from its results?

this field happens to be an assets field but i would think it would parse like a regular image url would.

thanks in advance for any help.


texts: deny access to directory but allow to sub directories, how?

texts:
Im using native EE image manipulations to create small images. How ever, EE saves the original files, and everyone can access to those.

I need to deny access to these original images but allow access to sub directories EE is created.

So, simple example:
/myimages/_cropped/image.jpg and
/myimages/_customsmall/image.jpg

Those are the files that I need to serve to visitors.

But I want to deny access to original images that are saved to
/myimages/image.jpg

How this can be done with something like via htaccess?
I've tried to google but did'nt find any articles about this.
I do not wat to use any password protection, but deny from all (the main directory) and yet to allow needed sub directories.

Thanks in advance.


texts: single quotes not escaping in category_description

texts:
I am having trouble with single quotes being output in my category_description field, i have attempted removing them using ce_string without success.

Also i am outputting category_description through low Seg2Cat.

Any suggestions?


texts:
I have a simple setup, but it's not sending the "Nodify Admin" email.

I create a Composer form with just "Email" and "Submit" fields.

Using the Freeform fieldtype (http://www.solspace.com/docs/freeform/channel_entry_fieldtype/), I include this form into my channel entry.

I submit the form, and it successfully enters into the database, but I get no email.

The simple EE contact form (exp:email:contact_form) and Tools > Communicate both work fine. Checked email address spelling + spam folders.

Using EE 2.7.3 and Freeform Pro 4.1.5. Any ideas?


texts: Blank Order Confirmation Page with Invisible Order Data

texts:
Perhaps someone can help me find out why this is happening and how to fix it.

I have an add-on for EE 2.7.0 (CartThrob v 2.3.9) that we're using for orders. Once an order successfully goes through the payment gateway, it should show an order confirmation page (and has in the past). However, now it "appears" blank, because the source code shows that some styling is being added automatically to the body tag so that the opacity is zero (0)- rendering it invisible. If I change the styling in the "Inspect Element" mode of my browser so that I can see what is being hidden, I see all the correct order information and exactly what it should look like if it would only display. The order goes into EE just fine, sends out a confirmation email great.

This pseudo blank confirmation page happens whether I'm logged in as a Super Admin or not. When errors are turned on, there are no PHP errors or even notices. In my settings, "User Must Be Logged In" is set to "No". Session Expires in 18000 seconds. Clear Cart on Logout/Session is No. It does use Fingerprinting for sessions.

If I refresh the page, the invisible information is still there, so I don't think it's clearing the cart or the session at that point.

Any help or insight is greatly appreciated!


texts:
I am having some difficulty understanding why I can't get some shipping rules to work.

I am using the 'By Location - Price Threshold' shipping set in Cartthrob.

I have checked and the country code is being saved in the correct field etc, so I am guessing its something to with how I have set out my shipping rules. I have looked on the CT website, but the documentary doesnt particular explain how the correct layout should be.

I have attached the image below. Is say 10-20 the correct way to enter thresholds?

UPDATE

The shipping rules I need are for Great Britain, and the rest of the world. GLOBAL covers everything as far as I know in CT. I then want to have different shipping costs dependant on the price. So if the price is between 0-10 and the users shipping country code is GBR £1.20. if between 10-25 £2.50 etc


texts: Can postmaster send post dated emails through a hook?

texts:
I'm aiming to send a post dated email through postmaster. I'm (successfully)  sending out emails though a custom addon, by triggering a hook inside the custom addon and passing some data through the hook.

However, I'm trying to send out a post dated email in the same fashion and I'm not sure if it's the 'correct' way to do it.

Basically, I've set up a hook in postmaster, this is being triggered and it's also queuing the email in the exp_postmaster_queue table. In this table it's storing the to_name, the to_email and even a fully parsed message.

Now, when I trigger the ping url it removes the email from the queue and chucks it into the the mailbox - however the message fails to send as it's trying to send to the non parsed email variable (and the message also contains non-parsed variables) - {hook:participant_email}.

Does anyone know if sending a post dated email is possible through a hook, and if so how can I parse variables through?

The data seems like it's all in the queue table, so it must be reparsing (I started to pick the addon apart at which point I got a touch stuck).

Thanks

Dave


texts:
I'm building a page with the twitter bootstrap at the moment and in particular am using the bootstrap datepicker to give users a particularly nice UI for selecting an entry date for their channel entry.

However, SafeCracker keeps telling me that the format of the date is incorrect - What dateformat should I be supplying? I've tried DD/MM/YY, MM/DD/YY, YYYY-MM-DD and none of them work. Do I need to supply a time as well?

I don't want to have to supply a time, since it's irrelevant for this purpose - but even putting into the formatting a default time (so using format dd/mm/yy 00:00), but this doesn't work either).

Anyone offer an insight?


texts:
I have this search form in test/low-search-test

{exp:low_search:form collection="foo" secure="no" search_mode="all" result_page="test/low-search-test-results"}
<fieldset>
    Job:
    <select name="job" dir="ltr" id="job">
    {exp:low_options:job}
         {options}
            <option value="{option:value}">{option:label}</option>
        {/options}
    {/exp:low_options:job}
    </select>
</fieldset>
<button type="submit">Search</button>
{/exp:low_search:form}

and the results form in test/low-search-test-results

{exp:low_search:results}
  {if count ==  1}
{/if}

{title}

  {if count == total_results}
{/if}
  {if no_results}No search results{/if}
{/exp:low_search:results}

My problem is that the results page does not filter by job.It doesn't even respect the "collections" param in the search form. It returns all results including some channel entries not defined in the collections param.

Am I doing something wrong here? How do I filter results in Low Search based on their Channel Fields?


texts:
I've got a site with six contact forms, and was hoping to be able to use a single return page for all of them and then filter the {exp:freeform:entries} data using something like Switchee (using it to examine the variable {freeform:form_name}. My freeform:entries tag has the form_name parameter populated with a pipe-separated list of all six forms, but I only seem to be getting entries from the first form displayed. Is it not possible to set up a catch-all 'Thank you' page in this way? Here's my code. First a truncated version of one of the forms (they all follow the same pattern):

{exp:freeform:form
    form_name="new_client"
    return="contact/thank-you/%%entry_id%%"
    }

    --- form inputs --

{/exp:freeform:form}

And then the template code on the return 'Thank you' page:

{exp:freeform:entries status="open" form_name="new_client|maintenance|payments|sales|complaints|work_with_us" limit="1"}

Thank you, {freeform:field:name}

    You submitted contact form:

    {!-- now check for which form submitted this entry --}

    {exp:switchee variable = "{freeform:form_name}" parse="inward"}
        {case value="new_client|complaints|work_with_us"}

NEW CLIENT, COMPLAINTS or WORK WITH US

        {/case}
        {case value="maintenance"}

MAINTENANCE

        {/case}
        {case value="payments|sales"}

PAYMENTS OR SALES

        {/case}
    {/exp:switchee}
{/exp:freeform:entries}

No matter which form I submit from the return page shows the first entry (not even the most recent one) from the first form. I tried rearranging the order of the forms in the form_name parameter in case whichever was listed first gets used and the rest get ignored, but it makes no difference. What shows in the thank you template is the form-filler's name from the earliest form entry submitted, and Switchee uses the first case. the entry ID appended to the URL seems to do nothing. What's the correct way to set this up?


texts: Postmaster, preventing further emails after the initial status change

texts:
Just purchased Postmaster, and its working great. Kind of wish I had got it ages ago and saved myself loads of manual emails!

My users submit entries via a safecracker form, that come to me with a status of "pending".
I have set up two parcels.
The first one sends the user a notification that I have received their entry. This is easily achieved by using the "New" entry trigger & "Pending" status trigger. Works fine.

I then review the entry, make any edits where needed, set the status to "open" and publish the entry.

My next parcel send the entry author an email to tell them the entry is now live on the site. I have set this up via the "edit" entry trigger, and the "open" status.

This works very well. However, if I was to go in and edit that entry again, say simply for a typo, when I save it, it will fire of the original email again.

i do not want this, I only want the original first email to go out, so I am wondering what would be the best way to achieve this?

The only ways I can think, are to have a custom field that maybe identifies that the entry has been edited, and use that in the extra conditionals, or to set up another status of "edited" and ensure that if I make an edit, I change the status to edited.

Can anyone think of an easier way? Ideally I would like it to be as automated as possible!


texts:
I have a list of Solspace Calendar events that I would like to paginate. According to the documentation, the pagination parameter and variable pair should work the same as channel:entries. I am able to limit the events to 10 with the limit="" parameter, but the {paginate} variable pair does not display the pagination links.

{exp:calendar:events calendar_name="Events" limit="10" date_range_start="" orderby="event_start_date" sort="ascending"}

{title}

{event_start_date format="%j %F %Y :: %g:%i%a"}&ndash;{event_end_date format="%g:%i%a"}

{event_location}

            {paginate}Page {current_page} of {total_pages} pages &nbsp; {pagination_links}{/paginate}
{/exp:calendar:events}


texts:
My EE install are having issues with channel fields.
Normally, when changing field "Type", you get different options.

But in my install, no matter what I set the "Type" field to, I get none options other than the standard "Field settings".

Example: setting "Type" to Assets, should give me lots of Assets options (thumbnail size, folders to upload/select images from etc.). But I get none. Same applies no matter what "Type" I select. I have no clue why.

Anyone know where to start? This is on a clean install with just a few things set up.

Regards
Kristoffer


texts: Channel Forms - How to set Custom Form attributes

texts:
How do I set custom form attributes for {exp:channel:form} tag?

I want to set this attribute role="form"


texts: Updating images (using File ft) within a Grid updates other File fields

texts: I'm finding, since updating to EE 3.4.0, that when I have a Grid field of rows, each with a File field (to upload an image), I'm finding that updating one File field is then updating other File fields on the same page (some not even in the Grid field) with the same image. I then switch the other File field back to the image it should be and the first one switches to this one too - it's making it impossible to update entries, and has only been seen since upgrading EE to v3.4.0.


texts: Solspace User - Allow non-SA to send Key Invite?

texts:
Does anyone happen to know of a way to allow member groups other than Super Admins to send key invites via User from Solspace?

Their docs state that it's SA only, but I had four separate user groups that need to be able to access this function via the front end while not having CP access, thus they can't be Super Admins.

Anyone else run into this and/or discover a workaround?


texts:
I would like to wrap every 3 rows that the matrix fields output with some required html like this:

{exp:channel:entries channel="pages" disable="categories|member_data|pagination"}
 {my_matrix_field}
 {if rows are: FIRST FOURTH SEVENTH etc}

 {/if}

{text} Read more

 {if rows are THIRD SIXTH NINTH etc}

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


texts: FreeForm Pro - How do I edit my confirmation screen?

texts:
How do I edit the confirmation screen that a user sees after selecting "Submit"?

Right now it says "Thank you for your submission!" and I'd like to add more engaging content.


texts: Textarea seems to be converting plain text to html entities

texts:
I have a textarea field (which i'm using to paste some custom CSS for a page) that has no formatting set on it.

However, when I paste the following in;

h2 {background-color: #03c7e1;}

ExpressionEngine automatically outputs it as;

h2 {background-color: #03c7e1;&#125;}

It's real confusing and wondered if anyone else had this issue before?


texts:
I am setting up an EE website for a non-profit start-up, but the budget is extremely limited.  Donations would include one-time payment, recurring payments, and purchasing bracelets, etc.

I would like the process of donations to be as painless as possible and ideally all on my site (without having to be redirected back and forth), but I am not a fan of PayPal.  I have heard/seen that Stripe seems to be a good service with fair rates, but without spending hundreds of dollars, I don't see many options for using something other than PayPal.

I am a developer myself and would be willing to get into the weeds to customize the simple commerce module, but wouldn't even know where to start since this is my first EE site.

Is there a way for me to achieve using a different payment gateway for the simple commerce and a custom donation form without spending much, ideally any, money?


texts:
I want to create a £100 discount on a product costing £600 (inc tax)

In the UK I charge 20% tax so:

Sub Total: £600
Discount: £100
Total: £500 (£83.33 tax)

A sale to the USA would not include tax so:

Sub Total: £500
Discount: £100
Total: £400 (£0 tax)

The problem is that to get the £100 discount for the UK buyer I have to input £83.33 in the discount field. This actually works out the total taxes correctly but I have to multiply the discount by 1.2 to show it in the invoice as the discount is saved as £83.33 in the order channel.

The buyer from the USA now only gets a discount of £83.33 and his totals look:

Sub Total: £500
Discount: £83.33
Total: £416.67 (£0 tax)

If I input £100 as the discount value the sale to the USA is correct but the sale to the UK gets a bonus discount of £120.

Sub Total: £600
Discount: £120
Total: £480 (£80 tax)

Is there anyway around this problem?


texts: Is there a way to parse a template tag inside an extension hook handler?

texts:
As you know, we can't use template tags inside extension hook handlers because those will not be parsed.

However is there an alternate way to access them inside extension hook handlers? Or something like given a tag string, have a function that can parse it?


texts:
I have a safecracker file displaying the URL twice:

 View Contract

It's displaying like so:

http://figdoylestown.com/figdoylestown.com/uploads/web-08.jpg

Any thoughts?


texts: Creating Custom Libraries In ExpressionEngine

texts:
In EE I am trying to create a php class that will query an API. When I look at the documentation for creating your own library classes (here: https://docs.expressionengine.com/latest/development/legacy/libraries/creating-libraries.html) I see that it says this about storing the library:

  Your library classes should be placed within your
  system/ee/user/addons/addon_name/libraries directory, as this is where
  ExpressionEngine will look for them.

I don't see this directory anywhere in my project. Out of exhaustion I tried creating it and made a test class (just copied the example from the documentation except with an echo in the method) and loaded it, which resulted in an error... which I was expecting.

This is in system/ee/user/addons/addon_name/libraries/Someclass.php

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

class Someclass {

    public function some_method()
    {
      echo 'test';
    }
}

With this in a template:

<?php
    ee()->load->library('someclass');
    ee()->someclass->some_method();
?>

This gives me a load error:

Error
Unable to load the requested class: someclass

At this point I'm not sure if I'm simply too tired and not understanding the documentation or if I'm in the Twilight Zone.

Can anyone clarify this for me? I would greatly appreciate it.


texts: CartThrob stock management for rentals/purchases

texts:
I've been looking into CartThrob as an eCommerce solution for a website we're going to be building which allows customers to rent the original artwork (stock of 1) for a specified amount of months or purchase the artwork outright, optionally with a specified amount of prints at different given sizes.

I've seen another thread which asked about purchases/rentals and the answers suggested using price modifiers to differentiate between a purchase and a rental which seems like the correct way to go, but is there a way to add custom data to the product if its a rental to say that it is on rental until a certain date and keep the stock count at 1, at which point the item is still available for rental and purchase but not until that date? I understand that this functionality is probably not available by default so I'm expecting to have to write an extension - would I use the cartthrob_on_authorize hook to do post-checkout processing and set the data values accordingly? e.g. if its a rental then set the stock level back to 1?

There is also the possibility of their salesmen to have an app which should be able to create orders from a remote location (or save the orders to be later added when an internet connection is available) which I believe should be doable via a custom API which would use EE's save_entry API method to insert an order with the specified products. Would adding order entries automatically adjust the stock levels if its a purchase (not a rental) and trigger the same hooks or would that have to be built into the custom API?


texts:
Below is a stripped down version of opening channel entries tag pair I have on a business section of my site:

{exp:channel:entries channel="business" limit="1" dynamic="no" search:business_country_code="**COUNTRY CODE**"}

On arrival of the site I am using IP2Nation to grab the users location. I want this to be added into where COUNTRY CODE is above.

I initially thought I could use a basic plugin to output this using something like :

{exp:channel:entries channel="business" limit="1" dynamic="no" search:business_country_code="{exp:country_code:output}"}

But it appears that the EE parse order prevents this.

I have currently resorted to using a URL segment, but I would much prefer to use another way around this, as I would like to have this work on several pages, and don't want to add country codes segments to every URL.

Does anyone have any ideas how I can achieve this?

I did find this channel_entries_query_result but don't really understand what it does.
I wondered if its possible to modify the channel entries tag to something like:

{exp:myplugin:entries channel="business" limit="1" dynamic="no"}

and have the search completed in the module/plugin/extension.

Thanks


texts: DIsplaying a list of months, with calendar summary of items

texts:
Is there an easy way to display a list of 12 months, with the events displayed for each month. Therefore, not dividing each month into days?

A parent summary view to the calendar month page, if you will?

Thanks,
Ian


texts:
I currently have a block of code that looks like

And the problem I'm trying to resolve is that I have a section on a different page using all of these statuses in their own divs to create a sort of Editor's Choice area.  shown here:

THE FEATURED STATUS
{exp:channel:entries channel="news|blog|misc" limit="1" dynamic="no" status="Featured"}

    an image

    text that links to article view template

Full Article&hellip;

{/exp:channel:entries}

EDCHOICE STATUS
{exp:channel:entries channel="news|blog|misc" limit="1" dynamic="no" status="EdChoice"}

    an image

    text that links to article view template

Full Article&hellip;

{/exp:channel:entries}

EDCHOICE STATUS
{exp:channel:entries channel="news|blog|misc" limit="1" dynamic="no" status="EdChoice"}

    an image

    text that links to article view template

Full Article&hellip;

{/exp:channel:entries}

And those populate perfectly fine.  And the articles pulled with EdChoice status work when clicked on basically pulling up their respective channels view template and displaying the article.  HOWEVER, anything with the status of Featured shows and goes to the correct url, but does not display and obviously redirects to my 404 page.  Here is a block of what's in my view template, of which all the articles (EdChoice, Featured, Open, or otherwise) are pulling:

 {exp:channel:entries site="{site_short_name}" channel="news|blog|misc" url_title="{segment_3}" limit="1" dynamic="no" status="Open|Featured|EdChoice" require_entry="yes"}
    {if no_results}{redirect="404"}{/if}

{title}

            etc etc
 {/exp:channel:entries}

And when I changed THE FEATURED STATUS block status to status="EdChoice" the view page works fine.  I'm not sure what's going on here.  Has anyone encountered this before? Or know what I'm doing wrong as I am new to using multiple statuses


texts:
I have an ee4 site - migrated from ee2. The simple-registration addon (v1.6.3) does not work anymore. Also everything is entered, it throws errors:

Could you please give some support? What might be the problem?


texts:
I have the following code:

{exp:channel:entries channel="Sectors"}
{parents field="publication_sector" channel="publications" orderby="publication_date" search:parents:publication_type="Book" sort="desc" limit="1"}

However the search attribute doesn't make any difference to the results returned by parents. I have also tried search:publication_type="Book". The orderby also doesn't work. How can I get the parents tag to behave the way I want it to??


texts:
does anyone know why this code will not display correctly?
It looks right to me.

{if "{current_time format='%d.%m'}" >= "06.11" && "{current_time format='%d.%m'}" <= "07.01"}
6 Jan

{if:elseif "{current_time format='%d.%m'}" >= "06.01" && "{current_time format='%d.%m'}" <= "21.02"}
20 Feb

{if:elseif "{current_time format='%d.%m'}" >= "20.02" && "{current_time format='%d.%m'}" <= "28.03"}
27 Mar

{if:elseif "{current_time format='%d.%m'}" >= "27.03" && "{current_time format='%d.%m'}" <= "16.05"}
15 May

{if:elseif "{current_time format='%d.%m'}" >= "15.05" && "{current_time format='%d.%m'}" <= "04.08"}
3 Aug

{if:elseif "{current_time format='%d.%m'}" >= "03.08" && "{current_time format='%d.%m'}" <= "12.09"}
11 Sept

{if:elseif "{current_time format='%d.%m'}" >= "11.09" && "{current_time format='%d.%m'}" <= "07.11"}
6 Nov
{/if}


texts:
First time user of MSM here. I'm building 3 sites that all have the same channels. In some cases, I want only the default site to make channel entries, but want all 3 sites to have access to those entries. In other cases, I want the individual sites to insert their own channel entries and only display those entries in their respective sites.

Can I do the above in MSM?

(I thought MSM allowed me to share everything across sites. I found out during setup that I can make copies of channels, templates, etc. This means each site is working on its copy of the default site, not sharing resources. It's cause a bit of a problems for me. For templates, I will be sharing across sites via symlinks. Now, I'm trying to figure out how to deal with channel entries.)


texts: If statement failing in with custom field on a specific post with certain value length

texts:
A very weird problem, but in a specific channel that has many custom fields I get a very peculiar problem with just one entry (as far as I can tell) where a particular custom field is failing only inside an if statement. Example:

{if my_custom_field}
  {my_custom_field}
{/if}

This causes the entire template to fail, resulting in a white screen. I've switched on every form of debugging (index file and admin area). There are no errors.

If I remove the if statement and simply output the field, it works fine. If I empty the field it works fine. If the field has only up to ~67 characters in it, it works fine.

Please bear in mind, this is only a problem with this entry; other entries don't experience this issue.

Things I've tried:

Creating a new entry with the same data
Rewriting the content of this field by hand (not copy-pasting in case of a malformed character)
Renaming the custom field
Adding the same content to a different field
Reducing the number of if statements in the template
Increasing the memory available to PHP

So my question really is: has anyone ever come across this before? Where can I look to solve it?


texts:
I am using EE (v 2.5.2),super search (v 2.0.8) and Tag module (v 4.2.3),I want to know if we can get the tags of any channel entries in search result?,if yes then how to do that because I was not able to find any documentation in getting tags in search results using SUPER SEARCH

Cheers
Nisar


texts:
I am looking for a way to store animated GIFs using Channel Images.  I'm OK with the re-sized options not working.  I figured I would just link to the original image.  Unfortunately, the original image is not so original because it gets converted to JPG.

Is there any way to configure Channel Images to store the original file type?


texts:
I want to list out all posts based on the category_id of the current entry. But how can I get the category_id before the loop?

Basically, what I could do is this:

{exp:channel:entries channel"mychannel" category_id="2"}
 {title}
{/exp:channel:entries}

The problem is, I don't know the category_id at that point.
As of now, I'm doing a basic channel entries loop, and run an embedded template that I pass the category_id to. And that template lists out all the posts with that category set.

So using gwcode_categories, I can get the category_id and pass that along with the embedded template, like this:

{exp:channel:entries channel="mychannel"}
    {embed="include/get_posts"
    category="{exp:gwcode_categories entry_id="{entry_id}" last_only="yes" style="linear"}{cat_id}{/exp:gwcode_categories}"}
{/exp:channel:entries}

My categories are nested, so that's why I'm using last_only btw.

But, is there a plugin of some sort that I can use to get the category_id of the current entry before the loop? Like some sort of global dynamic variable?


texts: Changed Domain, but Old Domain Still Referenced... Somewhere!

texts:
I have a site which was on a different domain. We changed it ages ago.

I am now adding a Safecracker form, and when I click submit, it goes to the OLD domain, and ignores the return parameter I add.

I have searched all files in the website for the old domain, and searched the database, there is no reference to this old domain. I have cleared my browser cache, and EE cache. Still the same.

Somewhere, this old domain is referenced and Safecracker is using it. Does anyone have any idea?

Thanks


texts: Fixed day in different years lists with Low Events

texts:
I'm using a Low Events field to store member birthdays, it's easy to calculate ages, display all members who were born in a given year, etc... and even to account for deceased members if necessary with the end date, but I'm having problems making a list of birthdays on a given day, ie, display everyone who was born on September 10th, is there a way to do this that I'm missing?

I'm using EE 2.9 and the latest versions of add-ons, I have Low Search too, just in case it helps any.

Thank you!


texts:
I came up with this odd issue. If i surf around my forum as usual, LikEE works, but when i come from outside of the site, or click internal links in forums,
this wont work:

{exp:likee:js skip_jquery="true"}

The javascript wont come, and the tag itself shows as is, in the sourcecode.
Because i dont know the actual java, i cant "hardcode" it into end of the head-tag, neither i dont know if that even work then, because dont know how LikEE actual works.

I know this should be and have done into channels, but i just cant see why it wont work nicely in forums also.

And i do not use this with all posts, just if there is attachment in first post. (yep, i know, if someone replies and add another attachment, then all replies between first and last post has like - dislike buttons).

But somehow i have feeling that there might be a way to get this working with forums also? Any ideas or has someone even tried this?


texts: Wygwam upload directory to with MSM problems

texts:
I have a site that seems to be having problems with the Wygwam upload directory. It is a MSM site so there are about 4 sites total. Each site has it's own upload directory on the server.

The problem is when I change the upload directory on one site it changes the main sites upload directory. This is the first time that I have ran into this problem. Has anyone else ran into this problem? Also how do I fix it?

The version of Expression Engine for the site is 2.5.2 and the Wygwam version is 2.7.


texts: Channel Entries Tag Will Not Sort Using Category Parameter

texts:
This is a strange issue, I can't get the channel entries tag to sort by category.  I only want entries that are in this category to display.

When you remove the category="13" it produces results but if it's there it will not.

{exp:channel:entries channel="people" category="13" limit="10" paginate="bottom"}

          {exp:ce_img:single src="http://XXXX.com/images/member_photos/{photo_filename}" max="125" }

{title}

{person_excerpt}

    {paginate}

              {pagination_links}

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

Any tips will be appreciated!


texts:
i 'm working on a project about events in a city using Solspace calendar. What i want is the user to select some data in a form (date range, category -music, theatre, etc- and area). The data are going to the results page. Everything works on the results page apart the area which is a custom text field.

My code is

{exp:calendar:events
    channel="events"
    category="{segment_3}"
    show_recurrences="yes"
    load_resource_consuming_data="yes"
    date_range_start="{segment_4}-{segment_5}-{segment_6}"
    date_range_end="{segment_7}-{segment_8}-{segment_9}"
    limit="10" paginate="both"
}

The area text field is "event_city2" and values can be "Athens" or "Piraeus", etc
Now, i have tried to include it inside the above code as a parameter like event_city2 ="segment_10" or calendar:event_city2 ="segment_10" or search:event_city2 ="segment_10" with no success

I saw in the solspace calendar documentation that a custom field can be a variable but not a parameter.

So i'm asking the community if there is a solution to that

Thanks


texts:
How do I make a field require with the new composer? in the past I would create the form and include:

{exp:freeform:form require_captcha=“yes” required="name|email"} (which still work on the site).

With the new composer forms I try to do it the same way and I am not getting an indication to required fields.

{exp:freeform:composer form_name="contact-form" composer_template_name="general_template"  required="name|email" require_captcha=“yes”}

Any ideas?


texts: Change H3s into H2s + H4s into H3s for entries in specific channels in one-go

texts:
For a while the site editors have been using the wrong HTML headings (to get headings to look "right" instead of asking for the style sheet to be modified).

We have hundred of entries (in two specific channels) which we need to go over so headings that have been marked up as H3 are changed to H2, and headings marked up as H4 are changed to H3. The headings are in the body field as part of the main content for the entries.

Is there an automated way of doing this?

Thanks


texts: Error when sending email via Communicate

texts:
We just moved from development server to live server and are having issues with email settings, we get the following error when trying to send an email:

Fatal error: Call to protected method CI_Email::_str_to_array() from context 'Tools_communicate' in .../system/expressionengine/controllers/cp/tools_communicate.php on line 627

Any ideas as to why this would be?

Cheers!


texts: When CE Cache is disabled via the config variable, is there still processing overhead?

texts:
I have a current site in development on EE 2.5.3. I'm using the latest CE Cache but have it disabled via the ce_cache_off global in my config.

I'm running into some really slow performance in general, most notably refreshing the Structure view.

That view only has 53 queries, which seems normal to me. It's taking upwards of 8 seconds to load, however, and this is at EngineHosting on their Virtual Server Cluster plan that costs $400 a month.

I can't imagine that this is normal and I'm hoping to rule out a server issue. (I currently have a ticket open with EngineHosting and even Greg Aker is going to take a look.)

Does anyone know if CE Cache still does its cache busting and refreshing when disabled via config?


texts: Loading of data (40+ fields) for multiple (250+) entries on single page

texts:
I am querying whether this is a good idea, and if so best way to do it.

I have a channel (club_listing) that contains 40+ fields.
There are 250+ club_listing entries.

On my clients current/old site, they have a Club Listing page which lists each of the club names. When you click on name a popup window appears with all the relevant details.

(I would prefer not to have a popup or new page displaying each clubs info.)

What i wanted to do was have hidden divs on the page that contains all the data for each entry. When the user click the club name, the relevant hidden div appears displaying all the info.

Now i already have a nice script that is doing this for the FAQS (click question, answer displays below it). I wanted to use this same script, but on test the page takes ages to load.

My initial template embeds the template with the club listing. This club listing template (uses parents tag so opens channel tag for the parent (zone) not club_listing) embeds the data for each club (snippets don't work).

Is it NOT a good idea to have a single page load the data of so many entries (eg, 40 fields x 250 entries = 10000), or is there some way that it can all load quickly and is acceptable to do?

Any response is much appreciated!


texts: If I set my PHP instance to 5.4.10 any Playa tags are rendered as raw tags but under 5.3.20 they render correctly. Is this too new a version to play with?


texts: Is it safe to initiate a temporary session in plugin for use with the Channel Entries API?

texts:
I have a plugin that will accept posted form data from a member group and then create or update a channel entry which that member group is not given permission to post or update in (via the control panel settings for member group permissions).  The reason for the permissions restrictions is due to the way that the Channel Forms Module is implemented, and that allowing permissions gives users in that member group the ability to edit things they should not be allowed to unless the member group is restricted.  It also seems best to follow the principle of least privilege in this case.

However, I do actually want the member group to be able to create an entry in the restricted channel when they initiate it by posting valid data through my plugin, but not be allowed to edit it after doing so.  Thus, it becomes necessary to initiate a temporary session for a user from a member group with elevated posting/editing permissions to use the Channel Entries API save_entry function.

My question is whether this poses any security implications?  If the session is set in the plugin and the php script somehow gets aborted before the session is closed, that gives the user elevated posting permissions and they will be logged-in as the elevated temporary session user.  How can this be avoided?  Is there a way to trigger EE to notice a new or edited entry by something like database query without initiating an elevated session?


texts: All CartThrob settings screens are white screened

texts:
About a month I was working on a client site and was able to access and edit all of the CartThrob settings screens, including Shipping, Taxes, and Payments.  Now, as of last week, whenever I try to access any of them they are all white screens.  No changes were made to system files in that time (i.e. no commits to the repo).

I have turned on all debugging with no results and upgraded all the plugins and extensions that I can with no change.

This was originally on an EE 2.7.2 platform, so I tried a direct upgrade to the latest 2.9.0 and was completely unable to access the control panel due to the following error: An Error Was Encountered. Unable to load the requested class: services_json  Unable to resolve that issue I reverted back to 2.7.2 and tried the next sequential update to 2.7.3.  That update worked but the CartThrob settings pages are still white screened.  I've emailed EllisLab to request the install files for 2.8.0 to try the next sequential update.

I can't find any reference to conflicts between CartThrob and another extension but maybe someone here has come across something before.  Here's a list of current modules:

Extensions:

and Plugins:


texts: Using custom field in freemember registration form

texts:
I have a Select custom member field, how do I display this in the Freemember registration form?

it is called "school", the below code does not seem to work, maybe I am doing it wrong?

{field:school}

EE 2.7

                    {exp:freemember:register return="{segment_1}/{segment_2}/register-success" error_handling="inline" error_delimiters='|'}

                        Username
                        <input type="text" name="username" value="" class="txtbox" />

                        {error:username}

                        Email Address
                        <input type="email" name="email" value="" class="txtbox" />

                        {error:email}

                        School
                        {field:school}
                        {error:school}

                        Password
                        <input type="password" name="password" value="" class="txtbox" />

                        {error:password}

                        Confirm Password
                        <input type="password" name="password_confirm" value="" class="txtbox" />

                        {error:password_confirm}

                    {if captcha}

                        Please enter the following characters into the box below:

{captcha}

                        <input type="text" name="captcha" value="" class="txtbox" />

                        {error:captcha}

                    {/if}

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

                {/exp:freemember:register}


texts: CartThrob 2.5 with Profile:Edit 1.1.8 Member Field Mapping Issue

texts:
I am using CartThrob 2.5 with Profile:Edit 1.1.8 and it will not let me map the the Profile:Edit member fields. All the dropdown menus are blank. Is this a bug?

Has anyone found a solution for this issue?  I ma using EE 2.7.3, CT 2.5 and PE 1.1.8 and still can't map PE fields in CT.  I have many fields setup in the channel but they do not show up on mapping page.  Can anyone help?


texts: Fatal error: Call to undefined method EE_Loader::libary() in EE_Pagination.php

texts:
I receive this error from a new installation, 2.8.0

I have only a channel and a template.

If I display a single item, all works fine, if I use pagination, receive this error.

My code is very simple, this is my first site in ee.

{exp:channel:entries
    channel="blog"
    limit="10"
    paginate="bottom"
}

    {title}

    {paginate}

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

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


texts: General question regarding installed modules and performance

texts:
I probably have a few modules installed on some of my sites that aren't being used. Simple question: will uninstalling them improve general memory usage and performance?

One module in particular that definitely isn't being used is the Comments module.

Cheers

Jim


texts:
I upgraded one of my EE sites tonight to EE 2.6 and also went to upgrade to the new Field Pack v2.0 but I am receiving a series of errors like so:

A PHP Error was encountered
Severity: Notice
Message: Use of undefined constant PT_FIELD_PACK_VER - assumed 'PT_FIELD_PACK_VER'
Filename: api/Api_channel_fields.php
Line Number: 117

I receive one for each of the fields. Any thoughts?

Thanks,
John


texts:
So I'm returning an array of all the information I need from my function, but I can't seem to figure out how to parse through the array once I get to the template.

Module:

Class main{
 function data(){
      blah blah blah
      return $array;
 }
}

Template:

{exp:main:data}{data}{/exp:main:data}

{data} returns “Array”

How can I parse through this in EE code or is there another to parse this variable?

I have also gone down another path which follows:

Module:

Class main{
 function data(){
      blah blah blah
      $this->return_user(14);
 }
 function return_user($var){
      return '
'.$var.'
';
 }

}

Template:

{exp:main:data}{exp:main:return_user}{/exp:main:data}

{exp:main:return_user} returns

, but not
14
.

Any ideas?


texts:
How can I show an Assets image within my Low Search Results?

Ive tried the variable name and using the pair {my_assets_field var_prefix="file:}{file:url}{/my_assets_field}


texts: Super Search throws a "You are not allowed to search." when not logged in

texts:
Implementing Super Search (3.1.4) on a new site (running EE 3.3.1), all is fine and dandy and works better than expected, but only whilst one tab in my browser is logged in, in the CP. As soon as I log out, I get a "You are not allowed to search." error thrown in my face.

I also installed the Super Search demo-pages, just to error-hunt, and any search done in those templates also throws an error.

I've googled, but can't seem to find a reason for why this happens.

Any ideas?


texts: Bug in Grid row_id as a limiting parameter?

texts:
I'm getting some odd behaviour from my Grid field in the template (unless I'm misunderstanding the Grid docs). I have a custom Grid field used for placing images (columns are file, alt text and caption). In one of my channel entries I have three images set via this field. The following template code displays all three images, as expected:

{my_image_grid}

{my_image_grid:caption}

{/my_image_grid}

And, also as expected, this code displays only the contents of the first row of the grid field:

{my_image_grid row_id="1"}

{my_image_grid:caption}

{/my_image_grid}

However, when I try to display all rows other than row 1, with the following:

{my_image_grid row_id="not 1"}

{my_image_grid:caption}

{/my_image_grid}

I get just the first row again. Just the first row is also displayed if I try to display a specific row other than 1:

{my_image_grid row_id="3"}

{my_image_grid:caption}

{/my_image_grid}

Can anyone else verify this behaviour before I report it as a bug? Or am I doing something wrong (eg. misunderstanding how rows are ID-ed)? This is EE 2.7.2.

Thanks.


texts: RSS Feed works with template type 'web page", but not type 'RSS Feed'

texts:
I'm using the sample Ellis Lab code almost verbatim for my RSS feed. When I set the template type to web page, it outputs correctly. When I change it to RSS, I get an empty feed. Right now it is set to RSS. Ideas?
http://sequentlearning.com/rss

{preload_replace:master_channel_name="blog"}
{exp:rss:feed channel="{master_channel_name}" status="open"}

<channel>

<title><![CDATA[{channel_name}]]></title>
<link>{channel_url}</link>
<description>{channel_description}</description>
<dc:language>{channel_language}</dc:language>
<dc:creator>{email}</dc:creator>
<dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
<dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
<admin:generatorAgent rdf:resource="http://expressionengine.com/" />

{exp:channel:entries channel="{master_channel_name}" limit="10" disable="member_data|pagination" dynamic="no" status="open"}
<item>
  <title><![CDATA[{title}]]></title>
  <link>{title_permalink='site/index'}</link>
  <guid>{title_permalink='site/index'}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
  <description><![CDATA[{summary}{body}]]></description>
  <dc:subject><![CDATA[{categories backspace="1"}{category_name}, {/categories}]]></dc:subject>
  <dc:date>{gmt_entry_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
</item>
{/exp:channel:entries}

</channel>

{/exp:rss:feed}


texts: Bug? When selecting a date range within product report, an order report is generated instead

texts:
Within the CartThrob Order Manager, on the product report tab, under the the initial report, there is an option to choose a date range. When I select a date range and generated the report, an order report is generated instead.

Is this a bug?


texts: Can I use a conditional to match a string in a url segment?

texts: The issue I’m coming up against is that a client’s site has a series of nested units, tasks and segments, and they want different conditionals run depending on the various segments. Now, I could use the url_title to find each url segment’s channel, but that seems like I’d potentially have too much overhead. What I’d really like to do is use the channel preferences to prefix each url_title with the channel name, and then in my conditional, query the segment in order to run various templates/changes/etc. Is there any decent way to accomplish this, or is this adding too much overhead, still?


texts: How to work with the new channel forms and the new grid fieldtype ( and updateing it)

texts:
My little test looks like blow (fecthing a static channel entry 2 - works getting the data out )

When I submit my grid fields gets empty'ed Can somebody please help with the right syntax to update the grid values - plus if I want to add a new row.

my grid field is called mylist , in this i have two textfields text3 and date4

How is it done ??

{couldn't get the code to display so attact a image}


texts:
is there a way to enable users to upload files that only the user is able to see/download.

Admin needs to be able to manage the user's files and upload/delete these from the backend.

So a user registers an account -> can access user area with his files and upload/download -> admin can upload files for that user and manage user's files

Each user had his own area

Any addons that can do that?

Thanks


texts: Writing a link to web page with javascript fails

texts:
I'm an Expression Engine newbie, so this might have some obvious fix in EE land.  This javascript code works fine when I put it on a page that is not rendered by Expression Engine:

 $(myDivName).append("click here");

And this works fine on an Expression engine page:

$(myDivName).append("" ");

However, the first snippet of javascript above does not work on an EE page- I get a javascript error at the time the page the is loaded saying "unidentified symbol":

$(myDivName).append("click here");

If I look with Chrome inspector, I can see that EE changed the url to wrap it in what seems to be a redirect.  Is there some formatting I need to put around dynamically written links to get them to work?

Thanks for the assistance!


texts: How do you hook NewRelic monitoring into ExpressionEngine

texts: I use NewRelic to monitor site performance, but since everything runs through index.php, the amount of data I get back regarding controller performance is limited and clumped together. How can I get more granular performance data?


texts: low_search Field Grid and a relationship inside a column of the grid

texts:
I saw a similar question from 5 years ago, but I stumble upon the same question concerning low_search and combination with grid field and inside a column with a relationshipship.
Does low_search allow for a combination search of the two?
I presume it would have syntax like this:
search:fieldname_of_grid:child:columnname_in_grid
Does anyone have a lead how to manage a search like this?
The question from 2015:
Channel Entries - searching relationship field?
Or do I need to write a custom filter for this?


texts: Solspace User Login Form - Custom Error page

texts:
I can't get the "error page" parameter to work with the Solspace login form.
https://solspace.com/expressionengine/user/docs/error_page/

Anyone know if it is supported by the login form? See my code below:

{exp:member:login_form
    return="{last_page_visited}"
    error_page="site/login-error"}

If not, any other suggestions outside of the "Custom System Msgs" module.


texts:
I'm having trouble getting my P&T Checkboxes field to display properly.

My field is {job_type} and it's options are:
full_time : Full-time
part_time : Part-time

This is the code I'm trying to use, but it doesn't ouptut anything:

{exp:channel:entries}
  {job_type backspace="2"}{option}, {/job_type}
{/exp:channel:entries}

If I change it to just {job_type}, it outputs the selected value as part of a list; but if I try to use the proper :ul tag, {job_type:ul}, it doesn't output anything.

I'm using EE 2.5.5, and P&T Checkboxes version 1.0.3.


texts:
In our backoffice, I'm seeing this, which, of course, renders our Admin area almost unusable:

Has anyone seen this or know how to fix it? I can't find ANY instances of jqv4zpf or even cycle.min ANYWHERE on my system.

Apparently this only happened recently.


texts: Working with EE Discussion Forum when Structure is installed

texts:
We've taken over a site at work and they were originally developed in Expression Engine with Structure installed. They recently asked us to install the Discussion Forum module on the site, which we have installed now, but I'm having a hell of a time trying to get it working. My assumption is that real problem here is Structure, but I'm also fairly new to EE, so maybe it's just a lack of knowledge?

I've got the forum working on a new template page using:

{exp:forum}

I created a page in Structure and assigned it to the template, so when you navigate to the page the forum shows up properly; however, when you try and do anything within the forum, like trying to view a forum or thread, it sends you back to the main site to a blank landing page for the forum page.

The only thing I can think of is that structure is seeing that the "viewforum" or any other page beyond the forum landing page doesn't actually exist.

I ended up installed Freebie hoping that would help solve some of my problems - the forum stopped redirecting back to the main site, but it won't actually work now because it relies on EE's core uri->segment and freebie stops that from being processed (at least from my understanding)

I've also tried adding a new channel for the forum and creating the page in Structure using that channel, it still does the same thing when you try to click into a forum.

I really hope someone knows a fix for this, I'm  literally pulling my hair out trying to figure this system out and the documentation on this stuff is very minimal.

Thanks in advance to anyone that can help!


texts: With Assets 2 is it possible to restrict upload access to a folder within an S3 bucket?

texts:
Currently I have about 20 upload paths set in the native EE file manager. all of them point to a variation of subfolders within my main /images folder.

I was originally planning to use Assets 2 to host all of my images in a single Amazon S3 bucket like images.domain.com and use the same structure I currently have to restrict access to specific sub folders.

After playing around with Assets 2, it doesn't apear that you can restrict to a subfolder as restrictions are set on a per bucket basis.

Is there a way to do what I'm wanting?


texts: Run extension after file upload? Need to extract IPTC data

texts:
I have a bit of a tricky one.

A client of mine wants the IPTC keywords data within files to be searchable through the default EE simple search (or at least via a db query).

I have searched around and can't find anything that offers this, with channel images coming the closest, but it doesn't appear its possible to search the IPTC data, only display it in templates.

Is there a way I could run an extension after each file upload is complete? I could then build an extension which uses PHPs IPTC extraction and enter it in a database table.

If anyone has any ideas on this, I would be greatful to know, as I am slightly surprised this doesn't come up more often.

Thank you.


texts:
Lets say I have this form

{exp:low_search:form collection="members" secure="no" search_mode="any" loose_ends="yes" result_page="flatmates/"}
    <fieldset>

Age

        <select class="span5" name="range-from:age" id="age_from">
            <option></option>
            <option value="18">18</option>
            <option value="19">19</option>
            ....
            <option value="65">65</option>
        </select>

        <select class="span5" name="range-to:age" id="age_to">
            <option></option>
            <option value="18">18</option>
            <option value="19">19</option>
            ....
            <option value="65">65</option>
        </select>
    </fieldset>
{/exp:low_search:form}

What happens to the search results when I make it so that the "from" is greater than the "to" value or the "to" value less than "from"(for example, if I choose 40 for the "from" and then 18 for the "to"?

How does Low Search handle this? Does it somehow swap them or intepret the lesser value as the "from" and the greater value as the "to"? Or does it do nothing(no swaps, no errors, etc)?


texts: Expresso Store + UPS Shipping add-on - shipping method is not showing up during checkout process

texts:
I have added and enabled UPS Shipping add-on for Expresso Store, configured all settings but it seems not working in a current (even store_example) checkout flow. Described below how to reproduce that issue.

  During the checkout process on the /checkout page there will be no
  shipping methods available on the drop down. Then I went to "Continue
  Billing Details", typed all my billing/shipping details and clicked on
  "Review Order". From the Confirm Order screen I clicked on Back button
  and then Back again to /checkout page and now I have got Shipping
  methods available, but when new cart is created Shipping methods are
  gone again.

Any clue what is going on there? So far now word from Expresso Store dev team on that issue and it is kind of serious stuck for me (shipping comes as 0 each time when customer follow checkout steps).

Thanks


texts:
I have just finished rewriting a custom payment module for Barclaycard ePDQ, and it's working up to a point.

The problem comes on the return from ePDQ, whereby the user is returned to the checkout_confirm page instead of the /store/order/ORDER_HASH as expected.

I just have a pretty standard purchase_return function with

return new Merchant_response(Merchant_response::COMPLETE,'',$orderid);

The gateway is being sent $this -> param('return_url'); as you'd expect, and if I trap the return I get www.mydomain.mysite/?ACT=16H=  etc etc as expected

Any pointers as to why I'm not getting sent to my order page?


texts:
This is super weird. I have this channel entries loop:

{exp:channel:entries
  channel='resources_webinars'
  dynamic='no'
  limit='5'
  disable='categores|member_data|pagination'
  orderby='webinars_date'
  sort='asc'
  search:webinars_featured='=not_featured'
}
  {if webinars_date > current_time}

    {if count == 1}

Upcoming Webinars

    {/if}

            {exp:ce_img:single
              src='{webinars_thumb}'
              width='210'
              height='100'
              crop='yes'
              allow_scale_larger='yes'
              alt='{title} preview'
            }

{title}

{webinars_date format='%F %j, %Y'} / {webinars_date format='%g:%i%A'}

{webinars_summary}

            Register

    {if count == total_results}

      {if count == 5}

View All Upcoming Webinars &raquo;

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

It basically shows all non-featured upcoming webinars, sorted by a custom date field. What's weird is that adding sort="asc" causes the {if count} conditionals at the top and bottom not to work, so the opening and closing
 tags aren't output.

What's even weirder is that if I put sort="desc", everything works fine.

Anybody ever seen anything like this before?

EE 2.5.5


texts: Assests + MSM + Indexing new site = Uh oh!

texts:
SO, I have assets installed on site1 - works great.
I add site 2, index the uploads, cool.

I can add images in the module, but when I try to add images within an entry, the buttons are grayed back. Any idea why I can't add images within an entry in site2?


texts: Freeform pro - Error in Dynamic Recipients

texts:
I am having a problem with Freeform PRO - when I create dynamic recipient select lists using composer they are not rendering correctly, here is an example output:

    Venue

        <select name="recipient_email"></select>
        <option value="0">--</option>

        <option value="5359413bda2ea9.89526262">Sandinista Manchester</option>
        <option value="5359413bda3007.33768703">test</option>

So you can see the select list is not wrapping round the options, so it doesnt render correctly on the page.

Feels like a bug in Freeform. Can anyone from Solspace help please?

Thanks,
Martyn


texts:
I've been a bit frustrated with the process of updating EE in past few months so I'd like to learn best practices from the community so I can alleviate my pain a bit. I manage my site with Git and Github and deploy to two bare repos (dev, prod).

Here it is how I do it currently:

Download the latest version from Ellislab
Dump my prod database and import it locally
Create a separate branch for the update
Follow the instructions on Ellislab on how to update
After update is done I merge the branch onto master
Import database to prod
And finally push my merged master branch to Github and then dev.

On average, this process takes somewhere between 30 min to 1 hour. It depends on the size of your site (database, configuration, modules, etc).

What's flawed with my process? Is there a better process, if so what do you recommend? I'm eager to hear your suggestion and learn from you all!

Thanks,

Juliano


texts: MS Outlook sets start and end times one minute later with iCal plugin

texts:
Thread title explains it all. With output like this:

DTSTAMP:20130226T150037
DTSTART:20130226T150037
DTEND:20130226T170037

Outlook will set the start time as 3:01pm and the end time as 5:01pm. Probably a bug with Outlook but I thought I'd ask here anyway to see if anyone else had reported a similar problem.


texts: Duplicating a site using MSM with Low Variables

texts:
I need to be able to duplicate a site as a new MSM site and keep my Low Variables settings, values, titles, descriptions, field types, etc.

Is there a solution. I would hate to have to recreate 80 of these every time I need a new MSM site.


texts: How can I find out the file extension of a Safecracker file within matrix?

texts:
I would like to attach different CSS classes for different types of file within a Matrix field. I have tried:

{group_files}{group_files_title}{/group_files}

But this always defaults to txt. Any ideas where I'm going wrong?

Thanks in advance


texts:
I want to have a radio button field where it acts as “is default” field for all my rows.

That is, across all the rows, only one radio button should be checked.

Is this type of radio button supported in Grid?

I am at 2.5.5 and I am using Matrix/Playa. I am contemplating on upgrading to 2.7.0. If this type of field is supported, then I I think I will upgrade.


texts: Image info, from relationship nested within grid

texts:
I have a grid field, which contains a relationship field. The related entries have an image field. I want to dig down to the image credit, description, etc.

Here's what I thought ought to work:

{grid_field}
    {grid_field:relationship}
        {grid_field:relationship:image_field}
            {credit}<br />
            {description}
        {/grid_field:relationship:image_field}
    {/grid_field:relationship}
{/grid_field}

It didn't work, and I've tried so many variations with syntax, etc., that I don't even want to try to post them all here. Suffice to say it's been a lot and I haven't hit on an answer yet.

Any thoughts?


texts: Updating status with hook does not trigger email

texts:
First, thanks in advance for any insight.

I'm using the following in a simple extension to set the status for new orders with the aim that I can send an email template based on the customer's member group:

public function store_order_complete_end($order)
{
  $status = Store\Model\Status::where('name', $status_name)->first();

  if (ee()->session->userdata('group_id') == 10)
  {
    $status->name = "Commercial";
  }
  else
  {
    $status->name = "General";
  }

  $order->updateStatus($status);

  return $order;
}

When processing an order, the system correctly sets the status to either Commercial or General. However, no email is sent. If I switch to another status and then back to the desired status, the email does send. In other words, it seems that the emails are only triggered when manually selecting the status.

Note that I have default order status of "Received" that does not trigger any email templates. I've done this because I've found that if no default status is set no email templates ever get sent -- even when manually selected.

Also, when looking at the bottom of the order detail, I do see that both order statuses are logged: Received and Commercial (or General).

Any thoughts?


texts: Cancel Entry Update / Display Error using EE3 Extension Hook

texts:
I am using a 'Channel Entry Model Extension Hook' in EE3 to allow me to carry out further validation of a selection of fields.

This is working fine, currently with the 'before_channel_entry_update' hook.

https://docs.expressionengine.com/latest/development/extension_hooks/model/channel-entry/index.html#before-channel-entry-update

However, If the validation fails, I am unable to cancel the 'update' to the entry.

Can anyone shed any light on how I can:

Cancel the update
Display an error message of my choice


texts:
I heard about ExpressionEngine beta 2.10.0 for developers with the Zoo Visitor, and DevDemon Updater updates.

Does someone knows what will are the new features of EE 2.10.0 ?


texts: How to get attempted url before access restriction?

texts:
this might be a simple fix, but it certainly doesn't seem to be.

I have built a EE-based web application, and as is part and parcel with web applications, users are required to log into the system.

With our application, users are often sent links like profile links, sort of like a social network works. However, at the moment, when users click on the links, they are required to login, and then they are brought to a generic template after logging in. I've tried using this http://devot-ee.com/add-ons/preevious but the value is coming up as blank regardless of how many times I try to use it.

Any ideas? Realistically, this is a massive deterrent for our users. If they are sent a link to a page, they need to log into the system, and then go back and click on the link in an email or via whatever other medium they were sent the link.

Any help or input would be massively appreciated. By the way, we are using standard access restrictions on this web app, which are set in the Template Manager. So if I try to go to domain.com/contacts, it will redirect me to domain.com/login and then once I login it will bring me to domain.com/home because that is our index page.

Cheers in advance,
Conor


texts: Is there a way to disable CE Cache DB references?

texts:
We have a heavily trafficked site, where we keep running to bottleneck issues with cache trying to clear and that bogging things down.
The issue is the DATABASE is being taxed by CE Cache maintaining the list of cached files.
Additionally, when we've tested clearing the cache via the admin, it doesn't seem to actually clear the DB references, nor the files on the server.
Is there a setting that would allow us to NOT record the references in the database at all? (We do not use the admin to clear the caches so we don't really need the DB references, and it doesn't seem to really work well anyway). If we could disable this somehow, I think that would be a significant help!
Is there a way to do this?
EDIT / a bit more info:
EE: v5.3.2
CE Cache: v2.0.2
Cache Driver: "dummy"
PHP: v 7.2.33


texts:
What do I have to do to get files into the stash_templates-folder so I can use {stash:embed:test}.

I have been iterating through the new stash-docs over and over but I cant figure it out. Apart from that the new documentation is a great aprovement. Thanks for that!

/David


texts: Testing add-on with Mockery without rewriting all $this->EE->db calls?

texts:
I'm attempting to write unit tests for my EE module using Mockery. Throughout my module code I have lines like:

$this->EE->db->select('channel_title, channel_id');
$this->EE->db->from('exp_channels');
$query = $this->EE->db->get();

Of course when I am attempting to test my functions I don't want to actually load the EE framework, I rather want this db object to be a mock. But I can't set variables on mocks, so Mockery can't tell the function under test that when it looks at EE->db it should actually use my mock. Based on this answer it seems like in order to use Mockery I'll have to rewrite the above code to:

function db() { return $this->EE->db}

db()->select('channel_title, channel_id');
db()->from('exp_channels');
$query = db()->get();

Is this my only option? Have I missed some trick for how to get Mockery to mock variables too?


texts: Better way to define "Date Published" field for channel field?

texts:
I would like to add a field called "Date Published" to a channel field group. Naturally I selected the "Date" field type but this is useless because:

It takes too long to navigate to past years.
It confuses the user by placing the time into the field.

Is there a way to improve upon this?

Note: It is important that it will be easy to perform a custom channel query that shows entries that are >= N years old.


texts:
I'm trying to show content based on the day and time of day. Specifically, the site I'm working on offers a live-stream every Sunday from 9:45 - 1:45 and we want to feature the live-stream on the homepage while it is live.

I have created a channel called "featured" which has an entry called Sunday. Using the following code, I can show the Sunday entry on Sunday.

To display the entry at a particular time, I created a Start Time and End Time field. Using that, I can display what I need to during the specified time.

The problem is that the entry has to be updated weekly to have the correct date. Is there a way to use start_time and end_time without a date? Or, every Sunday? Or, only Sunday?

    {exp:channel:entries channel="featured" url_title='{current_time format="%l"}'}
    {if current_time > start_time && current_time < end_time}

    {if:else}

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

As I said, this works but I'd like to not have to touch the entry each week to update the date. I'm not opposed to some other workflow, PHP, etc.

Thanks for any advice.


texts: Devdemon Updater error: Unable to load the requested class: localize

texts:
I'm trying to update my install of expressionengine from 2.5.3 to 2.7.3 using DevDemon's Updater module. I installed Updater and then dragged the EE2.7.3 zip into Updater and clicked Start Queue. It then said it was Waiting for a response from the server but didn't do anything. Now when I go to the control panel it just gives me the error

{"error":"

Unable to load the requested class: localize</p>"}

I then deleted the Installer folder which it had created and it went back to normal but it hasn't managed to update EE. What's the next steps to take to work out what's gone wrong?


texts: How to publish content to multiple site channel categories from admin

texts: I had setup the multiple sites using MSM and want to publish content to different sites different categories in a single submit from the admin.


texts:
I had client of mine contact me this morning about them not being able to login to the CP of the site. I thought at first it was a cookie/session issue, but after having them clear their browser history numerous times, try other browsers, etc., it was doing the same. So I asked for their password and tried locally myself and the same thing was happening, it would just redirect back to the login page. However, I'm able to login since my user is in the Super Admin group. Anyone else experience this before or know of any fixes?

EE 2.7.2


texts: Why does the word Signature appear in Forum responses?

texts:
I am setting up a Forum for a client (running EE 2.5.5) and have Signatures enabled, however, whenever anyone posts a reply the signature shows up like this:

Signature
Mark Twain
CIO

I checked the template code and it shows like this:

{lang:signature}

{if signature_image}

{/if}

    {signature}

If I can just get rid of the word Signature I will be content.
Thanks.


texts: Random = characters in freeform html notifications

texts:
A client has just recently seen this happening on Freeform (Free) notifications. We've set the notification settings to HTML and Word Wrap, and added just basic HTML (ie. we've not included html, head, body tags etc.) but just started with < p > tags.

The output looks like this:

Thank you for choosing our company.

---------= ------------------------------------

Your 60-day application evalu= ation and agreement was successfully sent and a member of our team will be = in contact with you shortly.

Anyone else seen this, or know why its happening?

FreeForm 4.1.3 + EE 2.7.2


texts: Convert Content Elements field to Fluid field

texts:
I am in process of upgrading EE2 site to EE5.

One of the fields is Content Elements, and since it does not seems to be available for EE3/4/5, I'm thinking that best approach would be to convent it to Fluid field.

Has anyone went through the process before? Maybe there is some script that can be used? If not, what would be the best approach here (other than manually copy/pasting each entry)


texts:
How can we link a low variable to an existing channel entry?

Let's say a matrix low variable needs to be displayed only on a certain channel entry.


texts: Installation hacked - rogue link inserted onto page

texts: I've got a very old installation v2 that I think has been hacked. I've found a URL that is a clone of a template on the system, and has a rogue link inserted. I know that I need to update the whole install, but is there an obvious place to search for the hacked code and remove it as a temporary fix?


texts:
I'm working on a site that is online in a dev environment. I'm getting tons of new member spam. I have snaptcha installed and it's set to High and it doesn't seem to be helping. Anyone have any ideas how to fix this?
Thanks!


texts: Template Debugging: which entry is actually slow?

texts:
I'm trying to see why it takes almost 3-4 seconds for my template render. I enabled template debugging. Looking at the output, I have computed 0.7 seconds between two steps in the templating process:

I'm not exactly sure what it means. Did the HTML Minification take .7 seconds? Or was it Mo' Variables?

Also, should I be concerned about memory usage when trying to figure out bottlenecks in my templates?


texts: Any way to make Bloqs modular/reorder-able

texts:
So I'm using bloqs (https://eebloqs.com/) for a project. On the backend, it seems to allow the content to be re-ordered:

but in the code on the front end the bloqs are hard coded in place in the template:

    {sub_page_blocks}
        {content_and_image_50_50}

{section_title}

                {section_content}

        {/content_and_image_50_50}
    {/sub_page_blocks}

    {sub_page_blocks}
        {secondary_page_3_column_with_header}

{section_content_second_page}

        {/secondary_page_3_column_with_header}
    {/sub_page_blocks}

Is there a way to code the template to allow the user to reorder the bloqs and have that order be applied to the front end? I've checked the plugin site for help but the documentation does not exist. I'm really shooting in the dark here.

Thanks!


texts:
I have a client that wants to setup a system that they can upload serial numbers for their products for warranty information. Then users can submit their serial number on the front-end and it would check against what was entered to see if that serial number is valid.

I'll use Solspace's Importer to allow them to upload the data to the website and build a Safecracker form for visitors, but what do you guys think would be the best way of comparing what serial numbers are valid and checking that against what the visitors enter?

There are many approaches I could take with this and wanted to hear your thoughts first!

Thanks again!


texts:
I have a P&T matrix field with a series of cells: images/title/dimensions/date/price

I display all the images in a row and if I click on the image I would like to go to a single entry page that shows ONLY that one image with the other cells (title/date etc)

Is this possible or am I better off makeing each row it's own entry?


texts:
We have a very large EE installtion for one of our clients.

Our server set up / workflow is Local >> Staging >> LIve

We need to carry out some work for the client. So we pull the database and files down from live. We make the changes and then we push the database and templates from staging back up to live.

HOWEVER in doing this, if the client has added anything else to live while we were working on staging, this is lost when we push the database and templates back up and overwritten with our version.

What work flows do people have for getting round this?


texts: Expresso-store: Shpping rule and descrtiption

texts: Is it possible to display related description from shipping rule at the checkout process for particular shipping method?


texts: Cartthrob Subscriptions 5017 Rebill Sage Pay Error

texts:
Have an installation of Cartthrob Subscriptions 2.6 installed and semi working with a SagePay Offsite test account which has token and repeat enabled and a continuous authority merchant number attached. I can successfully purchase a subscription using the Sage Pay test CC details, however when it comes to rebill the subscription the following error appears:

  The transaction was not registered because although the data sent to
  the payment gateway was formatted correctly, some information supplied
  was invalid. E.g. an incorrect vendor name or currency code was
  sent.5017 : The Security Code(CV2) is required.

Anybody else seen this before with Sage Pay or have any ideas?

Many thanks


texts: EE2 Content>Edit Filter Bug Gives access to entries regardless of permission

texts:
The quick gist of it all is. I have a member group that has access to Channel A and Channel B and Channel C, but does NOT have access to Channel X,Y,Z.
When you go to Content > Edit you are presented with all the entries you have access to.
BUT! If you select "All" from the filter by channel dropdown, then sort by Date or even search for an entry you know you shouldn't see, you'll actually see Entries you should NOT have access to, and their Channel Column will be empty, so when you click on the entry it will Error out.
Is anyone aware of this bug, is there a fix?


texts: Frontend public message with close or hide button

texts: I'm looking for a way to display entries from a channel as a message on the homepage that are able to be hidden once the visitor has read it.  Anyone know of a simple way to  achieve this or an add-on that would help? Thanks!


texts:
I am undertaking a rather complex upgrade from 2 to 5 and one of the things my current ee2 site relies on is the routing stuff on index.php being commented out as we have a couple custom controllers installed in /system/expressionengine/controllers.
//$routing[‘directory’] = ”;
//$routing[‘controller’] = ‘ee’;
//$routing[‘function’] = ‘index’;

If I comment this stuff out in ee5 I get “Error: Unable to load the requested controller.”
I have loaded my custom controllers from ee2 into the ee5 system/ee/legacy/controllers folder but still get the error. IS there a different method of accomplishing this in ee5? I have looked just about everywhere on the web regarding this and am coming up short.
Anything to do with controllers in the ee5 docs is only about addon development.
Any help would really be appreciated.
Thanks
Mike Keller


texts: Where do I install DevDemon's Channel Images in EE 3.3?

texts:
I'm trying to install Channel Images on my EE 3.3 site. The install says:

Installing

Within the /system/expressionengine/third_party/ directory, copy the channel_images folder into your sites ./system/expressionengine/third_party/ directory.

Within the /themes/third_party/ directory, copy the channel_images folder into your sites./themes/third_party/ directory.

Go to the Modules area in the ExpressionEngine control panel, find Channel Images in the list, and click Install.

But my back end is not organized that way. In fact, I can find no folders for "third_party." I tried to intuit where the add-on was supposed to be installed, and indeed after doing it I could activate the addon within my site's addon manager.

However, after activating it, I cannot create any new fields. I get the following error:

Error: Unable to load the requested language file: language/english/channel_images_lang.php

What can I do?


texts: Does playa support other languages? (Arabic)

texts:
I'm using playa in one of my channel fields and I tried to publish entries in Arabic, but the Arabic entry doesn't render at all on the home page. Do I need to add something to this code in order to enable the Arabic language? I checked the documentation, and unfortunately  it doesn't mention anything about the use of other languages.

  {venue:ul}


texts:
I think I’ve found a possible bug when uploading files via a template form (both channel and Freeform Pro forms).  When a file is uploaded with the same name as an existing file a number is appended to the end of the file name.

This is now a particular problem on one specific site where photos are added from iPhones which always uses the filename image.jpg.  There seems to be a limit to the number of duplicates as it was working fine, but now the error message “A problem was encountered while attempting to move the uploaded file to the final destination” is displayed.  Looking at the file table in the database there’s now lots of versions of image.jpg with numbers appended (https://www.dropbox.com/s/rcjj55qo676qnjt/Screen%20Shot%202014-04-13%20at%2021.04.32.png), so I guess the limit of the filename length has been reached.

Has anyone else encountered this issue?  Is there a workaround for it, maybe by being able to specify a filename with a timestamp or something?


texts:
I'm trying to get a count inside a loop of a Matrix field. Normally I could just do:

{field}
  {row_count}
{/field}

And BAM, that would work perfectly. But not in this case. Because I need to do something like this:

{field}
  File 1: {image_field_1}
  Count: {row_count}
  {if image_field_2}
   File 2: {image_field_2}
   Count: ?!
  {/if}
  ------
{/field}

Which would output something like:

File 1: images/bobafett.jpg
Count: 1
------
File 1: images/lukeskywalker.jpg
Count: 2
------
File 1: images/jabba.jpg
Count: 3
------
File 1: images/darth.jpg
Count: 4
File 2: images/obiwan.jpg
Count: !?
------
File 1: images/r2d2.jpg
Count: 5
------

I've tried doing this with PHP:

<?php $count = 1; ?>

{field}
  File 1: {image_field_1}
  Count: <?php echo $count; $count++; ?>
  {if image_field_2}
   File 2: {image_field_2}
   Count: <?php echo $count; $count++; ?>
  {/if}
  ------
{/field}

But I think because of parse order, even entries that don't contain {image_field_2} render the PHP, so the count goes completely out of sync:

File 1: images/bobafett.jpg
Count: 1
------
File 1: images/lukeskywalker.jpg
Count: 3
------
File 1: images/jabba.jpg
Count: 5
------
File 1: images/darth.jpg
Count: 6
File 2: images/obiwan.jpg
Count: 7
------
File 1: images/r2d2.jpg
Count: 8
------

I've tried changing PHP to Output and Input and Output works best for me, because Input just parses '1' for the count every time. I think mainly down to parse order again.

I tried looking for a small plugin to do something like this for me, that would stop PHP being in the template AND would sort any parse order issues.

help


texts:
I have a News & Highlights section on a site homepage where I'm trying to pull in entries from either a News channel or the Calendar. For both it should pull in the latest 3 entries that are tagged with a category (Featured). I have it working for the most part, except that I am unable to show the date of the event from the Solspace calendar. I realize this is due to the fact that the date is not stored in the channel entries, but needs to be pulled in via calendar:events. However, when I do this, I am getting the same date for all events output.

News and Highlights

{exp:channel:entries channel="news|calendar_events" category="17" limit="3"}

    {if news_body != ""}
    {if:else}
    {/if}

            {if news_picture==""}
            {if:else}
            {/if}

              {if news_date != ""}{news_date format="%F %d, %Y"}
              {if:elseif news_body != ""}Announcement
              {if:else} {exp:calendar:events limit="1"}{event_start_date format="%F %d, %Y"}{/exp:calendar:events}
              {/if}

{title}

{if news_author != ''}{news_author}{/if}

        {if news_body != ""}{exp:sk_excerpt chars='200'}{news_body}{/exp:sk_excerpt}
        {if:else}{exp:sk_excerpt chars='200'}{event_summary}{/exp:sk_excerpt}
        {/if}

          Read More

        {/exp:channel:entries}


texts:
I am trying to create links to the next and previous entries NOT using pagination.

I tried the plugin Next / Previous Links Anywhere from McFly but it is not working as described and no longer supported.

Can anyone suggest another plugin that takes the current entry ID from a single page entry and provides a link to the next and previous entries based on the sort order?


texts: How do I send item descriptions from Store to PayPal Express?

texts:
Please can anyone help, my EE Store is working fine and is sending the correct details to PayPal Express, however, is there any way I can send item descriptions too? At the moment, the PayPal descriptions area remains blank.

Thanks in advance,

Mike


texts:
I'm trying to replicate one of those "Order By" options that you see in eCommerce websites with Low Search.

The options usually are:

Most Popular
Newest
Price - High to Low
Price - Low to High

I've worked out I could do something like:

<select name="orderby">
    <option value="">Most Popular</option>
    <option value="date">Newest</option>
    <option value="matrix:price">Price - High to Low</option>
</select>

But I'm struggling to understand how (Or if possible) to add the Price options in there along with a sorting option.

Also - the prices are set inside a Matrix field, so is it possible to order by using a Matrix field.

It would be good if you could combine the Order By and Sort parameters in EE, without needing to do 2 seperate selects.


texts: Filter comments by Entry Author in the Control Panel

texts:
I've been looking up the hooks that can be used with the Comment Module. But I don't think there is one I could use to filter the list of comments by entry author in the Control Panel. I'm trying to filter that list so users only see the comments on entries they've added.

Is there any existing add-ons that can do this? Or are there any hooks I could use to write an add-on myself?

Thanks in advance!
Diederik.


texts:
Good Afternoon EE StackExchange,

I was wondering if anyone had experience keeping their development environment in sync with production content. The problem being that a content freeze is not permissable on long-term projects, and our client insist that they need to see the latest content from production. Is this matter of dumping specific tables from the database and moving them down to development. I've seen a few strategies, but all of them seemed overly manual and not in line with just moving content. To be short, I am looking for a strategy to move content from Production to development, after changes have been made to development (so overwriting the database is not an option). Thank you for your help.


texts: Previous and Next tags with conditional to display pipe character

texts:
This is my template code

{exp:channel:prev_entry channel="events"}
    PREVIOUS EVENT
{/exp:channel:prev_entry}

{if '{next}' !='' AND '{prev}' !=''}|{/if}

{exp:channel:next_entry channel="events"}
  NEXT EVENT
{/exp:channel:next_entry}

Notice the conditional in the middle {if '{next}' !='' AND '{prev}' !=''}|{/if} I've tried every which way to get this pipe character to only display if there are both a next and a previous entry but not if there is only one of them. I've tried AND XOR OR and also checking for != or == but nothing seems to work. I either get the pipe for all results or it never displays.

What is the correct way to get the pipe character to display only if there are both a next and a previous entry.