texts: button element not working for empty_cart

texts:
Having some trouble getting the empty_cart form element to work as a <button> element.

For example this works:

{exp:store:checkout next="store/checkout/1"}
  ...
  <input type="submit" name="empty_cart" value="Empty Cart" />
{/exp:store}

However using a button element instead of an input will not:

{exp:store:checkout next="store/checkout/1"}
  ...
  <button type="submit" name="empty_cart">Empty Cart</button>
{/exp:store:checkout}

The other inputs such as "update_cart" work fine as button elements. Is this a bug or am I just missing something?

The reason I want to use button elements is for styling purposes and I have to add an icon in the button using the CSS framework the project uses.


texts: Social feeds to display on EE driven website

texts:
I'm going to move one Wordpress site to EE and they have using social feeds (twitter and facebook, I think multiple sources) displaying on their website.

Are there any addons for EE which can handle that or any suggestions? I have take a look at Data Grab and Feed Parser, but both will require to create own tags or templates to display those feeds.


texts: How to create a plugin which returns channel entry data

texts:
I've created a plugin that gets the entry_id's of the most popular selling items in the exp:resso store. I'd like to extend it by letting a user loop through each of those entries and output them on the page (much like the standard {exp:channel:entries} loop.

I can't find any documentation about how to pull together the right information within my plugin as in the example below.

At the moment my template tag:

{exp:expresso_store_most_popular_items category="2" limit="3"}

Exports a list of entry_id's of the most popular products eg:

12,13,2

How do I export each entry_id in such a way that i can be used as a tag {entry_id} in a loop such as in the example below:

{exp:expresso_store_most_popular_items category="2" limit="3"}
    {exp:store:product entry_id="{entry_id}"}
        {title}
        {price}
    {/exp:store:product}
{/exp:expresso_store_most_popular_items}

Any pointers much appreciated, thanks in advance.

Tom


texts: Any reason the Pages Modules would not keep my assigned uri?

texts: It will not keep the uri that I type into the field in my entry. When I go back into the entry, it is back to the example/pages/uri. I have used module on this site in the past, I had uninstalled it and now re-installed it. Could this be a problem?


texts: What can I further do to test these Expresso Store hooks that appear to be not happening?

texts:
EE 2.7.2
Store 2.0.3

It doesn't look like the hook (store_order_recalculate_end) is happening as advertised. Works fine when adding the first item to the cart. But upon cart update or adding more items, not happening.

Here is a dead simple test in my extension. (via template logging)

...
'hook' => 'store_order_recalculate_end',
'method' => 'barfoo',
...

public function barfoo(){

    $this->EE->load->library('Template', null, 'TMPL');
    $this->EE->TMPL->log_item("Hello World");

    }

What else can I be doing? Where should I be looking? This method definitely does not happen after the first item is added to the cart.

Thanks for the help.


texts: Solspace User welcome email no longer being sent after upgrade to EE3/User 4.0.8/PHP 5.6.21

texts:
Our webhost upgraded PHP, so we had to upgrade our EE install from 2.7.3 to 3.5.2.  With that process we also upgraded the Solspace User module from 3.4.5 to 4.0.8.   PHP is now at 5.6.21 CGI(Stable).

New registrants must be manually approved by the admin.  In the older version of EE, when you approved a member, there was a "send member activation email" box we had to uncheck because it would send both the User welcome email AND the default EE activation email, which we didn't need.

Now that box/option is gone, and approving the member does not kick off the User welcome email. The user receives nothing.  I verified that "Notify Members When Approved" is set to yes.  [EDIT:  previously I posted that the default EE activation email didn't arrive either, but it finally did.  So the normal EE function is working.]

Is there something about the new PHP that could be tripping things up, or does EE3/User4 expect PHP 7 (which we can upgrade to if needed) ?


texts: Zeal Smart Members - Reset Password form while logged in

texts:
We're using EE3 and Zeal Smart Members to handle the login, reset password etc.. functionality.

Is there a way to use the Reset Password form while logged in?

Currently the Reset password for seems to detect that your logged in and just displays the message "You are already logged in"


texts:
I need to use a superscript registered symbol ( ® ) in a category title.

There is no unicode character for a superscripted ® and I can't figure out a way to make the category title allow HTML.

Has anyone got a work around for this?


texts: What are current realistic, designer-suitable solutions for converting an EE1 site's image galleries to EE2?

texts:
As we all know, automatic conversion for EE1 sites were promised but never delivered, and there are sites with very sizable image galleries which have yet to be upgraded because of it.

The baseline has likely been writing an entire new gallery solution using Pixel&Tonic Matrix, but this is a developer-level solution, due to the original Gallery's range of features.

EE's practical intents for designers and web-site owners are a very important part of its abilities, so how do we best serve this?


texts: Sorting entries alphabetically in the control panel by default.

texts: I was wondering if there was a quick way to sort entries in the control panel automatically by their titles without modifying core files. Did I miss anything in the documentation and settings?


texts: Need to programatically register users, and validate a code they enter

texts:
This one is a doozy for me, and I really need some input / advice.

Basically, I have a client who runs an independent magazine, and they use a system that can output a list of subscribers, and their account numbers in a CSV file.

I'm doing the online version of their magazine using expression engine. When each reader is sent their magazine, attached will be an account number.  The client wants them to be able to register on the site, and input their print subscription account number at registration. At this time, they want the system to compare the account number they enter, to the active list of account numbers. If they've entered a valid print account number, then they'll be granted access to the special members-only content.

I'm trying to figure out the best way to approach this, because I'm trying to marry two unrelated systems, and it's not negotiable - this is how they want to do it. The subscriber list must come in from their subscription system, and the reader must have their print magazine before they can validly login and create an account.

They also want it so that if a user's print account number becomes non-active (aka, they no longer subscribe to the magazine), then their account should also be demoted to a lower level.

I've had a few thoughts and approaches - all of them have an issue or big challenge of some sort:

1) Somehow, import all the current account numbers from the CSV, and save them as channel entries. Then, upon registration, user enters their account number into a custom field, which then somehow "checks", and if it's a valid registration, change their member group. If an account number is removed from the "valid" list, then the member will need to be downgraded.

or

2) Every day, the administrator will use the CSV file to "import" members. As in, accounts will be automatically created and the subscription account number itself will be used AS the username, with a standard password. They like this idea, but they say that in this case they'd want the user to be able to change their username to a friendly name, rather than existing as numbers like the Borg.

In the above case, I'd have to write some sort of script that creates user accounts, and, if necessary, looks for the CHANGE in active subscriptions.  Meaning, if you are user 323423, and then one day the admin import shows that account number as missing (no longer active), then downgrade the account.

Fundamentally, I think, I understand the process flow, but I have no idea how to code any of this.. user creation.. validation... cross referencing from a channel data source (magazine subscription account numbers)

It's a frustrating cross of a few different sets of technology. I'm wondering if, perhaps, I'm missing something really straightforward? Or, if my above options are truly the directions I have to go, then HOW do I program this? (as in, example code?? - adding a member programatically? Or at registration time, adding in the subscription field validation? :)

I've looked at the DB structure to see if I can "hack" this together, but the user (member) table really looks like it's very specifically managed by EE.

Help!

Thanks,
Glen


texts: Get Zoo Visitor members based on category?

texts:
Is there a way to get Zoo Visitor members based on their category?

I don't see a category filter option in the {exp:zoo_visitor:memberlist} - tag.
Only a membergroup filter option.

Or should I take another approach?

I also tried working with the {exp:channel:entries} tag:

{exp:channel:entries channel="zoo_visitor" category_group="2" category="14" dynamic="no"}
    {title}
    {exp:zoo_visitor:details}
        {visitor:member_firstname} {visitor:member_lastname}
    {/exp:zoo_visitor:details}
{/exp:channel:entries}

But nothing gets returned.


texts: Why does simple commerce module not update member group upon successful completion of the transaction?

texts:
We've setup the simple commerce module in Exp Eng v2.7.2 - Build Date: 20131008 and I've successfully purchased some subscription items through PayPal using live, actual transactions. Everything seems to be working okay except that the Member Group in Exp Eng is not being changed upon purchase as was intended. Notification emails go out and the transaction shows up on my own PayPal account as "Unclaimed".

Is it necessary to wait until the transaction is fully completed before the Member Group is updated? Will we have to do the member group change manually? Is there something off with my IPN setup? How do you view IPN responses in the Exp Eng control panel (or elsewhere)?

Thanks.


texts: Remove "edit", "help", "+add" in Control Panel

texts:
I've created a Member Group and am trying to severely limit what members can access. All I want them to be able to do is to publish and edit certain Channels. So far, I have been able to implement that. However, I've noticed that the Control Panel has the following, too:

"Edit" button: this is redundant as you can get to this UI by going to Content -> Edit. I'd like to remove this
"Help" button: this takes the member to the EE site. I want this removed as I will provide my own help documentation
"+ Add": I want this removed also; there is nothing for the member to do but to manage Channel entries for a few select Channels

Suggestions on how to do these?


texts:
I have created a Safecracker form that uses CKEditor to allow users to update the content of a page. Within this page, I have a slider which displays one Matrix row at a time - an image in one column and a text field in a second.

As I'm trying to keep the form as visually consistent with the actual page as possible, I'd like to be able to separate the Matrix into two individual fields for editing. I've been able to accomplish this with two text fields, but can't seem to figure out how to make it work with the Safecracker file field.

  {orgs}

          {field:orgs[row_id_{row_id}][col_id_61]}

      {description}

  {/orgs}

Here is the code I currently have. The {orgs} tag loops through the  matrix. I would expect that the {field:orgs....} would make the Safecracker file upload field appear, but alas it does not.

I'm hoping this is a relatively easy fix and I'm just not looking for an answer in the right places. :)


texts: What add-on/method do you use to create snippets as files?

texts: For version control purposes, it's better to store snippets as files. What add-on or method would you recommend?


texts:
I'm using the EXP:QUERY tag to get the count of a channel. And I am basically trying to use this for page pagination, and its a custom pagination because of the type of template I'm building.

And I am trying to use the count I receive and use some math to get a page count based on the number of results I have on each page. 5 results per page. So below is what I have.

<?php $foo = {count} / 5; ?>
{if segment_2 <= $foo}

<a class="button next" href="<? $week_count = {segment_2} + 1; echo "/page/" . $week_count; ?>">Next

{/if}

I am trying to use the PHP variable $foo within the expressionengine if statement but I can't, what is a better way to do this? Without having to write out it all in PHP.


texts: I am in the process of upgrading from EE1 to EE2. My EE1 site makes use of the SL Google Maps add-on, which does not seem to have an EE2 version. How do I handle this problem? Is there an add-on available for EE2 which allow me to upgrade relatively seamlessly?


texts: How to achieve desired URL structure: /category/entry/

texts:
I am trying to achieve the following URL structure:

website.com/services/design/
website.com/services/design/branding/
website.com/services/development/
website.com/services/development/front-end-development/

Where:

/services/ is the channel index
/services/category/ is a category for this channel
/services/category/entry/ is a channel entry

And just to clarify, /services/entry/ would not work, the /category/ would be required to view an /entry/.

Has anyone used a similar setup before or know how to?

Thanks in advance.


texts: Solution for cloud hosting images on EE3?

texts: I'm have been using P&T Assets to easily integrate with Amazon S3. Is there any option out there for cloud hosting and EE3? Can I still use Assets?


texts: Seeking an alternative to Title Master that is compatible with 2.9

texts:
Does anyone know of an add-on that offers the same functionality of Title Master but which is compatible with EE 2.9?

If you aren't familiar with Title Master I need something that will auto populate entry titles with an incremental value, prefixed by the value of another field (in this case an entry-id from a relationship field). This also needs to happen on the front end via a Channel Form.

Big ask, but it was working perfectly with Title Master until I updated the site.


texts: Class PT_Fieldtype contains 1 abstract method, must be declared abstract or implement (EE_Fieldtype::display_field)

texts:
When clicking on any of the Channel Fields created by CartThrob, I receive the following error.

I uninstalled pt_fieldpack but the same issue.  Wondering if I need to uninstall and reinstall CartThrob.

Fatal error: Class PT_Fieldtype contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (EE_Fieldtype::display_field) in /var/www/vhosts/deathdirections.com/httpdocs/system/expressionengine/third_party/pt_field_pack/pt_fieldtype.php on line 148


texts: Database connectivity error with EE on Network Solutions

texts:
I'm setting up a staging server on a Network Solutions site before preparing it to go live next week. I created a new subdomain pointing to /htdocs/staging/html so I can move system above root (plan to do the same to the live site; /htdocs/live/html). However I'm getting the infamous error message:

An Error Was Encountered
Site Error: Unable to Load Site Preferences; No Preferences Found

I've double checked the database settings and the tried using both the server alias and IP address. Username and passsword for MySQL have been checked and double checked. I'm sure someone has successfully hosted an EE site on Network Solutions and can hopefully give me an idea of what I might be doing wrong here.


texts: Is it possible to get a guest ticket for free?

texts:
I'm using cartthrob to sell tickets for events. For specific ticket types the user should have the possibility to create a guest ticket.

The guest ticket could be used by a user who is already registered or a new user. For me it's something like a cartthrob checkout for another user or a 100% coupon for this special event created after the successful payment.

Does somebody has any idea how to solve this problem?

Regards


texts: Display channel entries using search:field_name across muitp[le channels

texts:
I need to be able to tell ExpressionEngine to display entries from multiple channels using the search:field_name parameter. The custom fields will be from different channel field groups (set to different channels). Here is an example:

{exp:channel:entries
    channel="channel_1|channel_2|channel_3|channel_4"
    disable="categories|category_fields|member_data|pagination"
    orderby="date"
    sort="desc"
    limit="6"
    search:field_name_1_type="=field name"
    search:field_name_2="=another field name from another channel"
}

    {!-- code --}

{/exp:channel:entries}

Is this possible?

Any help would be greatly appreciated. Thank you.


texts:
EE doesn't allow you to make template groups within groups.

So if you're looking to have "books/chapters/" or "book/chapters/summary" and this didn't happen coincide with channel entries, would the best bet be to use url_segments to simply control with a single template what's  actually displayed?


texts: Expresso Store: Is login required to place orders?

texts:
To place orders or to add the items to the cart,is login required ?

EE version: 2.6.1
Store modules version: 2.0.3


texts:
I place an image on a page using the file manager. I can see it in the editor, but when the image is displayed in the front end, all I see is the image path and not the image. When I look at the source code, I see that the image tag is removed. I am using Wygwam but I have disabled "Restrict Allowed HTML"
ExpressionEngine v2.10.1 - Build Date: 20150501 -


texts: Upgrading EE1 to EE2 database name problem in update script

texts:
I'm trying to get an EE1 site up to EE2.5.5

To do this I created a clone of the live site's files. Exported the SQL from the live database and populated a "dev" database with the data then updated paths and config settings accordingly. This created a working clone (I've done this many times with no problems).

So, to clarify;
I have a live site running from a database named "clientname_live"
I have a dev site running from a database named "clientname_dev"

I have managed to get from 1.6.8 to 1.7.3 with no issues but trying to go from there up to 2.0.0 is throwing up problems.

The site uses ngen file field, structure and gypsy. I have removed gypsy completely, converted any file fields to text inputs and run the Structure update script (which appeared to run fine and do its stuff).

After uploading the necessary EE2 files and starting the update process I almost immediately hit the following error:

Error Number: 1146

Table 'clientname_live.exp_weblog_fields' doesn't exist

SELECT field_id FROM exp_weblog_fields WHERE field_type = 'date'

Filename: updates/ud_200.php

Line Number: 1583

Clearly the problem is that the update script (maybe just at that point) is trying to do something to clientname_live. What I don't understand is where it's getting that information from. The config file points at clientname_dev and the site is definitely running from that data base and not the live one.

Where could this database name be stored other than in the config file?


texts: feel stupid, but, how code checkbox in form?

texts:
I do not understand why the examples in the manual not work. Here in the forum I do not see the ricgt code as well. I feel stupid.

I have a field, defined as checkboxes, values populated by other field. (I do not know how many values my client fills in there)

Please, how do I code this in my form?
In the form, when coding {MYFIELDNAME} it just puts out all the values, no checkboxes there.
This code does not work either:

{options:MYFIELDNAME}
<label class="checkbox">
<input type="checkbox" id="{MYFIELDNAME}" name="{MYFIELDNAME}[]" value="{option_value}"{checked}> {option_value}
</label>
{/options:MYFIELDNAME}


texts: XSS vulnerability - malicious cookie value

texts:
One of the sites I'm working on was subject to a penetration test and this is one of the items of feedback:

I understand the issue in theory however as I've never had to deal with this sort of thing I haven't the slightest idea where to start and am looking for guidance - settings to change, config files to edit etc. I've added sanitization to other forms on the site, however as the search fields are generated by EE I'm unsure how to sanitize these inputs.

Site can be accessed here


texts:
I'm sure this addon was supposed to be making my life easier...

Trying to get the import utility of Google Maps for EE working. I'm only have 9 entries I'm trying to upload at first until I know things are okay, but can't even get anywhere with that. When I run it, nothing happens other than the Total Import Time ticking away. Thirty minutes has passed so far and nothing.

Anyone got any advice for things I can start looking for?


texts:
Based on Solcpase Tag documentation

  Pagination is available for this tag and works just like regular EE
  pagination, but each variable/variable pair is prepended with tag_
  (except for any variables/variable pairs inside of the
  tag_pagination_links variable pair). Used in conjunction with the
  paginate parameter.

so I have converted working pagination snippet to one which has added tag_ to each variable pair, but it looks like like {first_page},{pagination_url},{previous_page} etc are not working with that trick.

Any clue?


texts:
I have a multi-page freeform pro form which breaks every time the user uses the back button to go back to a previous part (the dreaded  "action is invalid error").

I can only get it to work properly by disabling secure forms globally in the control panel - is there no way to disable it just for this one form through a parameter?
Using FFP v 4.1.3 on EE 2.7.3


texts:
I am pretty sure I am just doing something wrong, because this seems to be a straight forward thing I am trying to do, but not having any luck at the moment.

Any help would be greatly appreciated.

I am trying to get a FreeForm form to allow zip files in a file upload field, but I am getting the following error: "The filetype you are attempting to upload is not allowed."

What I have done so far:
- Checked the file upload field's settings and made sure the "Allowed File Types" setting includes "zip". ie. I have it set as "zip|pdf|doc|docx|odt". (Note: uploads work fine with pdf's, doc's, etc.)
- Tried adding the "allowed_file_types" parameter to the {exp:freeform:form} tag, but I think this is deprecated. I am using FreeForm v4.1.3
- Made sure that there is a mime type entry for "zip" in /system/expressionengine/config/mimes.php
- Made sure I have full permissions on the upload directory.

Is there anything else I can try? Like I said, I can upload other files without any problems, so it seems to only be specific to zip files.


texts: A fieldtype with adjustable number of rows & the ability to add or remove columns per row?

texts:
A client would like to be able to ‘build’ each detail page for their portfolio. The breakdown would be something like this:

Each row can have a combination of either a video block (embed), a text block or a photo block.

The elements themselves can be either full width, half width or quarter width, and so a row can accomodate from one to four elements depending.

There can be however many rows.

As a newcomer to expression engine, I’d love to get anyone’s thoughts on how best to execute on this using EE.

Thanks so much for any help!


texts: How do I determine which channel field groups are not being used?

texts:
We've created a lot of channels over the years some of which have been pruned back. This potentially leaves their channel field groups as useless clutter.

There doesn't seem to be a view within expression engine that succinctly displays which template groups are used with which channels -- or if any channel field groups are not being used at all.

How do I see which channel field groups are not associated with any channel?


texts:
I am using the SolSpace user plugin and ran into a minor issue and hope someone can help.

I have an input field that users can change their screen name but when I go to change my screen name it removes my name and replaces it with an ID and not my new screen name (From Tony to 1) I used the sample code from the SolSpace site but just don't know why the screen name is deleted and replaced with an ID.

I know its a silly thing but just don't know what?! Thanks in advance for your help.

Regards,
Tony


texts:
I've got a entry called "town" with a native relationship field, the field name is "parks" and it relates to a channel of entries of parks! Each "Park" has a category too.

In my template i'm showing my "Town" entry and i want to display the related "park" and it's category.

But, i don't seem to be having much luck with it.

My code is as follows:

{exp:channel:entries dynamic="off"}
{parks}{categories}{category_name}{/categories}{/parks}
{/exp:channel:entries}

But i've also tried:

{parents field="parks"}{categories}{category_name}{/categories}{/parents}

I'm sure i'm just being a cretin here, any help would be lovely, cheers :)


texts: Difference $_SERVER['DOCUMENT_ROOT'] on ExpressionEngine and PHP

texts:
I'm currently using the $_SERVER['DOCUMENT_ROOT'] variable inside my config file.

In ExpressionEngine this is returned :

/Applications/MAMP/htdocs/devee

In PHP (no CMS) this is returned :

/Applications/MAMP/htdocs

Is there a place, where ExpressionEngine is changing the $_SERVER['DOCUMENT_ROOT'] ?

Thanks.


texts: MX Select Plus CE - problems with SQL Query

texts:
I've added MX Select Plus CE in a Matrix row. The objective is when the user is digitizing inside the select options, appears "on the fly" the "title" of theses entries of a specific channel.

I chose a SQL query:

SELECT title FROM exp_channel_titles WHERE channel_id = '2'

Inside these {exp:query} fields, appears all the titles of the entries.

{exp:query sql="SELECT title FROM exp_channel_titles WHERE channel_id = '2'"}
          {title}
{/exp:query}

So inside the MX Select Plus CE - DB REQUEST field, I inserted the SQL Query:

SELECT title FROM exp_channel_titles WHERE channel_id = '2'

But in the Channel Entries Edit page, appears error messages:

Message: Undefined index: option_name
Message: Undefined index: option_label

Inside the DB REQUEST field, what are the parameters for option_name and option_label. Does my SQL Query is correct ?

Does someone have a simple example about to show the titles of channel or other parameters and the option_name and option_label parameters?


texts:
I don't know what is the problem, I'm updating EE2.7.3 using the EE documentation upgrading, and when I go in the admin panel do update: admin.php i got a blank page with this url:

http://myurl.com/admin.php?C=wizard&M=license&language=english

config.php and database.php are setted to 666, tried with 777 to.

when i did the update on the wamp local installation, no problems occured.

thanks,

Stéphane


texts: ExpressionEngine versions and MYSQL support

texts:
Does anyone have a link to the MYSQL version supported by different versions of ExpressionEngine? I need to upgrade the MYSQL version on a server containing several EE sites.
Thanks,
Clive


texts: Issue using category_id in IF statement when entry has multiple categories

texts:
this code has worked great for a long time.  I pull entries and use an IF statement around which category they are in:

{exp:channel:entries channel="resources" dynamic="on" limit="1"}

    {if "{categories}{category_id}{/categories}” == “44” OR “{categories}{category_id}{/categories}” == “191” }
    ....
    {/if}

    {if "{categories}{category_id}{/categories}” == “45”}
      ....
    {/if}

All was good until I got an entry with more than one category (84 & 191).  The output is {category_id} = “84191” which doesn't get caught in my conditional.

I don’t want to use the “contains” conditional b/c then an entry with category 84 & 4 would be “844” and would match me looking for category=44.  How do I solve this??

Thanks!


texts: Additional mime types in Focus Lab config - how to add?

texts:
Is it possible to add additional mime types to the $mimes array (/system/expressionengine/config/mimes.php) from the config.master.php when using the Focus Lab config setup?

I really don't want to start changing files in the expressionengine directory to have it potentially be skipped when upgrading EE core software. Need to add in mime types for kml/kmz files.


texts: Does low_search_collection_id work in conditionals?

texts:
I've been trying the following without luck. Any help would be appreciated.

Search Form:

> {exp:low_search:form query="{segment_3}" result_page="search/results"}
> <input type="search" name="keywords" placeholder="Search a word...">
> <select class="form-control" name="collection" id="collection">
>     <option value="" selected="selected">Show results from</option>
>     <option value="1">Collection 1)</option>
>     <option value="2">Collection 2</option>   </select>   <button type="submit" class="btn btn-default">Search</button>
> {/exp:low_search:form}

Results page:

{exp:low_search:results query="{segment_3}" limit="50" orderby="date" sort="desc"}
{if low_search_collection_id == "1"}

show this

{if:else}

show this

{/if}
{/exp:low_search:results}

Thanks in advance.


texts:
I'm trying to use AJAX to streamline the Rating Vote feature of Solspace Rating so the success or error code from the {exp:rating:insert_rating_vote} tag.

In my {rating:entries} template I have this code for the up down voting links:

{exp:rating:rating_vote_stats rating_id="{rating_id}"}
{if not_already_voted}Was this review helpful?Yes&nbsp;&nbsp;|&nbsp;&nbsp;No{/if}
{if already_voted}Was this review helpful?Thanks for your vote{/if}
{if total > 0}{up_votes}/{total} people liked this review{/if}
{/exp:rating:rating_vote_stats}

And the /vendor/rating-vote template those links point to contains this:

{exp:rating:insert_rating_vote
    rating_id="{segment_3}"
    allow_duplicates="no"
    duplicate_check_guest_ip="no"
}
{if failure}Error!{/if}{if success}Thanks for your vote{/if}
{/exp:rating:insert_rating_vote}

This setup works as expected. When I click the link I go to that simple template which returns my failure or success message and the up/down vote is recorded and shows in my stats. I see:

  Thanks for your vote

When I try to load the template via AJAX is doesn't work as expected.

I'm using this JS code:

$(".voters .yes, .voters .no") .click (function() {
    var link = $(this).attr("href")
    var $helpful = $(this).closest(".helpful");
    $helpful.find(".ajax-response").load(link, function() {
        $helpful.find(".voters").hide();
    });
    return false;
});

This works except the content loaded into my span is not the same as the ouput I got before. This is what I get in my template where I would expect the simple success message:

  {"success":true,"failure":false,"message":"Your input is
  appreciated.","already_reviewed":false,"not_already_reviewed":true,"prior_review_count":0,"count":1}

Any advice on how to get this working?


texts: EE 3.4.5 - white screen when using relationship field

texts: We're using EE 3.4.5, whenever we add a relationship field to an entry and view it on the front end, we get a white screen.  Removing the relationship field shows the page as normal.  Is this a bug or has anyone found a fix for it?


texts: Can't upload PPT file; Getting "File not allowed"

texts:
I'd like to be able to upload PPT files in the CP, but I'm getting the "File not allowed" error. Can anyone tell me how to resolve this? This is in EE5 5.3.0--all the solutions I've seen have been in the EE2 format.

I've tried adding this to mimes.php with no success:

$config['mime_whitelist_additions'] = array(
  'application/vnd.ms-powerpoint'
);

Then I refresh the CP and try again, getting the same error.

Any ideas?


texts:
Store 1.6.1 and Latest EE

Using PayPal Express. When a customer is transfered to PayPal but then decides to back out of the purchase, either by clicking the return to vendors website link or simply going else where - the failed order details are not recorded in Store (or am I wrong?). Be nice if they were, as the store owner could then follow up and perhaps make a sale.

Thanks
Lee


texts: Exp-resso won't show states when US is only country

texts:
I only want to sell products to US residents. From the Exp-resso admin panel, I've set the United States to be the only enabled country.

However, when I set up the billing form ( I'm using store_example/checkout2 ) I can't access any states from the state  .

Seems like Exp-resso store is using JavaScript to populate the state select tag after you make a country selection. However, when there is only one country, the change isn't registering.

Setting a default country & state isn't making a difference either ( no matter how many countries are enabled ).


texts: Expresso Store not sending billing details to PayPal Express

texts:
I am using Expresso Store with PayPal Express checkout. When the user goes through the Store checkout they enter their billing details and once they are taken to the PayPal guest checkout the billing detail fields are blank apart from (first) name, telephone and email.  So the user has to enter their address details again.

Is there a way to get these fields automatically populated?

I've also noticed it's possible to enter billing details in PayPal that are different from those entered in Store, and the order in store shows the Store entered details rather than the PayPal details. (not sure if this is an issue or not).

I'm currently doing this on a MAMP install so i don't know if that is an issue, but it seems strange that email, name and phone are being passed through ok.

using store 1.6.1 and EE 2.4.0, with no easy way to upgrade.

Another question, I thought Paypal express had a mode where you would enter your card, shipping and billing details on the PayPal site and not on your site's checkout.  Does Store support that, I can't seem to find any information on how to set that up.

Thanks


texts: Can't login to CP after upgrading to 2.8.1, page refreshes

texts:
I'm unable to login to control panel after upgrading from EE2.7.2 to EE2.8.1. I've read many posts here and on Ellislab site but none of the solutions proposed seems to work for me. Interestingly, it only happens in production; locally works fine. I'm able to login.

THings I've tried are:

deleted my expressionengine/cache/ dir
added $config variables to my config (below)

$config['cookie_prefix'] = '';
$config['cookie_path'] = '';
$config['cookie_domain'] = 'julianomoreira.com';
$config['user_session_type'] = 'c';
$config['admin_session_type'] = 's';
$config['cookie_secure']  = 'n';
$config['expire_session_on_browser_close'] = 'y';

Thanks,

Juliano


texts: Possible to setup Expresso Store default price modifiers and/or options?

texts:
We have a store we're setting and we would like to be able to setup default price modifiers and/or options per channel since there are several modifiers per product and a large number of products need to be added. Is this possible in any way?

Anticipating a 'no', is there a JS API/Event model that I can tap into? If there is a JS event for the field initialisation and a JS API to add modifiers, I could implement this myself as an extension.


texts: Remove index.php and subdirectory in url string

texts:
I moved my site to a new hoster. Everything works fine (Images path's js css templates, all fine).

I adjusted all path's with Reelocate. But all the Link in the Navigation throw back this error message:

Not Found
The requested URL /subdirectory/segment_1/entry was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

It must have something to do with the subdirectory

In the webroot I have a .htaccess with this:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.domain.com$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /subdirectory/$1 [PT,L,QSA]

and then in /subdirectory I have this .htaccess

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

# Remove www.
    RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
    RewriteRule ^(.*)$ http://%1/$1 [L,R=301]

RewriteEngine off

Do I miss something?

Thank you

Edit:

The sollution of Alexa Lohmeyer worked. Here is how it looks if anybody is intrested:

One main error was that I had RewriteEngine off which somehow even disabled removing index.php.

So the root .htaccess looks like this:

RewriteEngine on

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

#Hosting directive for pointing url to subfolder
RewriteCond %{HTTP_HOST} ^domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.domain.com$
RewriteRule ^(.*)$ /subdirectory/$1 [PT,L,QSA]

And then in the .htaccess of the subdirectory it looks like this:

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

# Removes subdirectory from url string
RewriteRule ^subdirectory/index.php?(.*)$ /$1 [L]


texts:
Is it possible to create a perfect table so i can add as many cells and rows as i want?

Any help will be much appreciated, expression engine version 2.7.3 and latest matrix.

Thanks,

Wes.


texts: Expresso Store: Getting all products on sale throws PHP error

texts:
Not sure what I'm doing wrong, but the following code gives me a PHP error.

{exp:store:search channel="treatments" search:on_sale="yes"}
{exp:store:product
    entry_id="{entry_id}"
    input:gcc="Gavekort"
    input:msg="Melding"
    input:recipient_name="Mottakernavn"
    input:recipient_email="Mottakers e-post"
}
{/exp:store:product}

{/exp:store:search}

Error: Fatal error: Using $this when not in object context in /*/expressionengine/third_party/store/src/Store/Tag/SearchTag.php on line 37**


texts: If/else conditional based on categories to choose a freeform form

texts:
I'm trying to show a contact form based on the category that an entry is a member of, i'm using the freeform plugin to generate forms and then have a category group (an id of 7) with three categories in (ids of 41,42,43).

Here's the current code:

           {exp:channel:entries}
             {categories show_group="7"}
                {if "{category_id}" == "42"}
                  {exp:freeform:form form_id="6" return="thanks/index"}
                {/if}
                {if "{category_id}" == "41"}
                  {exp:freeform:form form_id="7" return="thanks/index"}
                {/if}
                {if "{category_id}" == "42"}
                  {exp:freeform:form form_id="8" return="thanks/index"}
                {/if}
              {/categories}
{freeform:all_form_fields}

                      {freeform:field_label}
                      {freeform:field_output}

                  {/freeform:all_form_fields}

{freeform:submit}

              {/exp:freeform:form}
            {/exp:channel:entries}

This however is simply trying to output all three forms and only showing the first one on every page no matter which categories they are assigned to. Any ideas how I should go about this? I'm guessing it's parsing the freeform tag before the conditional at the moment but not sure how to fix it?


texts:
As part of redesigning our site, we want to make sure that every entry for a specific channel is displayed with an image. All the content posted does not have good specific images associated with them, so I am looking for a good way to assign a pool of default images to the channel. Then, if an entry does not have a specific image associated with it, it would instead be displayed with a random image from the default set.

Is this doable? I am on EE 5.x.


texts: Freeform Pro form not appearing in channel entry

texts:
I'm using Freeform Pro and added a new form through the Composer, and then added the new form to a channel entry. After saving the channel entry, the form appears in the preview in the backend. However, when viewing the live site, the form does not appear.

Am I missing a step in the implementation that would cause this not to appear?


texts: Can user edit a freeform entry but save as new response?

texts:
I saw a similar question about Channel Form, but I am wondering if there is a way to save a new form response each time a user edits a previous form response with Freeform.

A second related question to this: if I were to duplicate a form, can the form be prepopulated with a user's answers to the first version of the form, then the response be saved as a response to the new form. (The form is a survey that users will be asked to complete annually; we need to save their responses for each year, but we don't want the users to have to fill out the form from scratch each time as the it is lengthy).


texts: Exp-resso store - do something on status change

texts:
I was just wondering if there is a way to create an extension that allows me to do something if an order's status is changed. There doesn't currently seem to be a hook that allows this to happen, but I'm sure there was in Store 1...

Thanks,
Dan


texts:
I am trying to get my info to set up PayPal express with Store.

When I login to my PayPal account I am not seeing what they are asking:

From Store Docs:

PayPal Express Checkout requires an API Username, Password, and Signature. These are different from your PayPal account details. You can obtain your API details by logging in to your PayPal account, and clicking Profile > My Selling Tools > API Access > Request/View API Credentials > Request API Signature.

When I click Profile I do not see My selling tools.

I do find on my profiel page: Request API credentials, but when I click that I see:
Setting up API permissions and credentials
Choose one of the following options to integrate your PayPal payment solution with your online store or shopping cart.

Grant API permission

Then I see:
Add New Third Party Permissions
Manage permission given to a third-party application to access specific information in your account and take actions on your behalf.

For more information about the permissions you are granting, see Third Party Permissions.

Third Party Permission Username

If I click View API Certificate
I get
API Username    name_api1.gmail.com

API Password    ••••••••••••

Request Date

but no signature??????

Any advice?


texts:
Just wondering how others out there track updates for their EE sites and plugins.

I come from the WordPress world where I had tools like InifniteWP to see all my sites, if updates were available, etc.  I could then update as needed.  Typically pulling down to my dev server, testing the updates, and then pushing those to the live production site.

However now I am taking over a front-end dev team where we have 100+ EE sites.  They've always had a set it and forget it mentality and we are starting to change that.  Are their tools where I can monitor all my EE installs (not being on multi-site)?  What are best practices for when to update plugins and how can I easily be notified when they are available?  I'd like to start a maintenance schedule and a running list of what sites are using what plugins, so we can schedule times when we plan to test and push any necessary updates.
thanks.


texts:
I'm in the middle of upgrading a site to 2.5.3 and just triggered the upgrade script when I recieved the following error.

A Database Error Occurred
Error Number: 1060

Duplicate column name 'show_sidebar'

ALTER TABLE exp_members ADD show_sidebar char(1) NOT NULL default 'y' AFTER quick_tabs

Filename: updates/ud_212.php

Line Number: 53

What is the best way to resolve this. I do have a back up and will revert back shortly if needed.


texts: Backward Slash Added to Search Results Except

texts:
I have run into a strange situation where a Backward Slash \ is being added to the end of each sentence in the search excerpt field just before each period. For example:

Lorem ipsum dolor sit amet, consectetur adipiscing elit\. Vivamus et sodales nunc\. Aenean sit amet massa at ante porttitor euismod a sit amet ante\. Morbi vitae est eu ante rutrum cursus sit amet nec nunc\. Aliquam erat volutpat\. Curabitur eget odio arcu, vel fermentum felis\. Sed pellentesque lorem ac nibh…

It happens no matter what type of field I have set as the excerpt (RTE or Textarea).

The search results template is fairly straightforward:

Resultados de la búsqueda

You searched for {exp:search:keywords}
        and got {exp:search:total_results}{total_results}{/exp:search:total_results} result{if "{exp:search:total_results}" != 1}s{/if}.

            {exp:search:search_results}

{title} {excerpt}

            {/exp:search:search_results}

The slash is not being displayed within the entry template, just in the search results template.

Any thoughts would be appreciated.

Thanks!

Updated to show text with slashes. It was removed by the SE template for some reason.


texts:
Is there a way to see the files I have selected and to be able to remove them if needed from the upload file button?

I am using

So I selected for this example 2 files and it only says you have "2 files selected" next to the file button.  Is there a way to get those files to display with their names and an x next to them to remove them if needed?


texts:
I've been trying to diagnose a problem that I started a thread here:

Solspace calendar 500 error

I have it working somewhat using the following:

{exp:calendar:cal
         {if segment_3 == ''}
          {exp:template_morsels:fetch
            name="events_calendar_cm"
            segment_4="{segment_4}"
            segment_5="{segment_5}"
            }
         {/if}
         {if segment_3 != ""}
            {exp:template_morsels:fetch
            name="events_calendar"
            segment_4="{segment_4}"
            segment_5="{segment_5}"
            }

        {/if}

}

Event_Calendar Morsal

 date_range_start="{segment_5}-{segment_4}-01"
 date_range_end="{segment_5}-{segment_4}-last"

I've also tried using different variable names like seg_4, seg_5, etc. No difference.

The calendar loads, however, it's only loading the first week on both cases:

http://figlancaster.com/events/cal/

http://figlancaster.com/events/cal/month/06/2014/

Plus, the segments don't seem to be parsing for 06/14.

Any thoughts?


texts: Duplicate email address allowed in member registration?

texts: Does EE allow multiple members to use the same email address when registering? I'm able to register members using the same email address, which is something I don't want to happen. This Allow duplicate emails/no email address on Member Registration seems to suggest that EE does not allow it, though. Is this supposed to be a setting or something?


texts: I'm new to ExpressionEngine, for those of you with some experience under your belt ... what are some of the things that you wished you knew when you first got started with EE?


texts: Can EE be installed on my PC for learning

texts:
I'd like to be able to install EE on my PC so I can experiment and learn.  Can this be done?

thank you!!


texts: What might prevent a channel from retaining submitted content?

texts:
I've just created a new channel; after populating it with content, I went to view it in the front end to find the channel:entries tag outputting zero content. On checking the channel's entries in the back end I discovered that none of the data I'd entered had been retained. I've tried re-entering data several times but it's never retained.

There's nothing weird about this channel; it consists of a single Grid field that is basically a near-exact copy of a Grid used in another channel -- which works fine. (The only difference, other than a different field name, is the removal of one column).

I've looked through the channel preferences (which, in any case, I created by duplicating the other Grid channel's prefs at the time I created the problematic channel) but can't see anything that might prevent a channel from storing data.

Can anyone suggest anything that might be causing this refusal to retain data?

[Additional info: when I originally created the channel I set it to make use of the 'Single Entries' add-on. I've removed it from that add-on so that it's now a 'normal' channel again, but it makes no difference; data is still not retained].


texts:
I was asked by the owners to remove the twitter-feed from their website, but untill now I am unable to find the place where to do that. The website I am working on is:

www.werkelijkheid.com


texts: Template routes and Pagination - blank page

texts:
I've got a blog listing template where pagination is not working as expected. I see the pagination links but when I follow one I get taken to a blank page.

My template routes are:

All links from listing template to single template work except for pagination links. I've also tried turning the blog/index tempalte to require segments but that also did not work

My blog listing template is:

            {exp:channel:entries channel="blog" limit="2" dynamic="yes"}

                        {exp:ce_img:single src="{blog_image}" width="290" height="113" add_dims="no" attributes="class='media-object'"}

{title}

                        {if blog_copy:has_excerpt}

{blog_copy:excerpt text_only="yes"}&hellip;

                        {if:else}
                            {exp:eehive_hacksaw
                                words = "25"
                                append = "&hellip;"
                                allow="
"}
                                {blog_copy}
                            {/exp:eehive_hacksaw}
                        {/if}

                        Read More

                {paginate}

                    {pagination_links}

                            {!--
                            {first_page}

First Page

                            {/first_page}
                            --}

                            {previous_page}

                            {/previous_page}

                            {page}

{pagination_page_number}

                            {/page}

                            {next_page}

                            {/next_page}

                            {!--
                            {last_page}

Last Page

                            {/last_page}
                            --}

                    {/pagination_links}

                {/paginate}

            {/exp:channel:entries}


texts:
I have recently purchased Cartthrob Subscriptions and am running into a few difficulties. I have tried support forums, contacting Cartthrob directly but i'm getting nothing back at all, which is strange as their support is usually amazing!

I have set up a subscription plan and set up token vaults on my Sage Gateway, however when testing, Cartthrob is processing the order as a standard product and not creating a subscription/subscriber. The details are all confirmed and going into Sage, but the subscription is not generated.

My add to cart form is as below:

{exp:cartthrob:plans}
  {exp:cartthrob:add_to_cart_form
    return="store/checkout"
    plan_id="{id}"
    subscription="yes"
    price="{price}"
    title="{name}"
    subscription_allow_modification="yes"
    subscription_interval_units="days"
    subscription_interval_length="1"
    subscription_price="10"
    subscription_total_occurrences="-1"
    subscription_name="{name}"
    }

    <input type="submit" value="Add to Cart" />

    {/exp:cartthrob:add_to_cart_form}
{/exp:cartthrob:plans}

I have tried different options to try and make this work but I'm stuck, can't figure put why it isn't going through!

PS. using 1 day interval to test ;)

Any help appreciated, or any advice on how I can get hold of Cartthrob considering I have spent $300 on this module.

Thanks in advance
Ben


texts: Single sign-on solutions for ExpressionEngine in enterprise using LDAP / Active Directory

texts: Can a single sign-on solution be used to share credentials between ExpressionEngine and LDAP/Active Directory?


texts: Removing rows in matrix when having required fields with Safecracker forms

texts:
I have multiple matrix fields in the multiple channels.  In most channels the fields (columns) are not required.  In these cases removing rows means making sure all fields for the row are emptied.

I do have matrix field however that have required fields (columns).  I can't seem to find any way to remove a row completely.  I would have expected a '-' button, similar to the '+' button, but there is none.

I can hardly believe this functionality is missing, so I must be missing something

Tim


texts:
Is it possible to use some sort of stateless authentication to control access to the site front end?

For example oAuth or openID (is this stateless)?

The use case is we are trying to work out a way to authenticate users of an iOS/Android app that will interface with an existing EE site.

EDIT: I think my original question may have been badly phrased. What we were looking for was a means to use HTTP authentication so an iPhone app could interface with the EE front end. Apparently if we used the regular EE authentication this might cause issues getting the app approved by Apple. They prefer "native" over "web"

EDIT:

I feel the need to clarify the reason behind this authentication requirement.

Its more about REST best-practices than getting the app Approved.

REST is by nature stateless (see here: en.wikipedia.org/wiki/Representational_state_transfer), however EE uses Session-based authentication. Turning on Basic HTTP Auth allows us to authenticate statelessly with the API rather than play around with a session cookie on the client side. Also worth noting that the libraries being used on the clients-side have nice support for Basic HTTP Auth, ie: http://cocoadocs.org/docsets/AFNetworking/1.3.1/Classes/AFHTTPClient.html#//api/name/setAuthorizationHeaderWithUsername:password:

In terms of Approval, wrapping a web view in a thin native shell might get the app rejected so consuming the data via REST and caching/displaying it natively is the best option.


texts: Upgrading from EE2 to EE3 at end of 2016 - is it worth the effort?

texts:
we are running a bigger site with EE2. We did not upgrade to EE3 because there have been missing important addons. Now we are relaunching the frontend and we are considering the upgrade.

The upgrade will be a lot of work, because still some addons are missing (like CE-Cache) or will have to be replaced.

We fear that the effort is senseless because maybe faster than expected the next major version appears (let it be EE4 or whatever) and we are facing the same problems, running a legacy version.

I would appreciate your opinion about this very much. Thanks!


texts: ed_imageresizer not working with second site in Multisite Manager

texts:
I am using ExpressionEngine 2.5.2 and I'm having trouble getting my ed_imageresizer to work on my second site, setup through Multisite Manager. ed_imageresizer is installed and working on my primary site, however, when I try to use it on my second site, I see broken images where the resized image should be. In my system's config.php file, I have the paths to my first site setup correctly (these are paths located on my local environment):

$config['ed_server_path'] = '/Users/cplaptop/Sites/site1/html/';
$config['ed_cache_path'] = '/Users/cplaptop/Sites/site1/html/images/resizer_cache/';

In my template, I am including the ed_imageresizer code to find the image:

{exp:ed_imageresizer
image="{image}"
maxWidth="400"
cropratio="400:225"
quality="100"
alt="Portfolio Artwork"}

I tried swapping out those paths just to test if they are directing anything to the second site like this (which didn't work):

$config['ed_server_path'] = '/Users/cplaptop/Sites/site2/html/';
$config['ed_cache_path'] = '/Users/cplaptop/Sites/site2/html/images/resizer_cache/';

When I try directing the plugin to the second site, in my browser I no longer see broken images, I just don't see anything at all.

I have also tried the suggestion found here to create a conditional in my config.php, but I haven't been able to get that to work. When I try using conditionals, here is the code that I'm using in my config.php:

$host = $_SERVER[‘HTTP_HOST’];
if($host == ‘domain.com’ or $host == ‘www.domain.com’) {
$config[‘ed_server_path’] = ‘/Users/cplaptop/Sites/site1/html/’; // Server path to        your site’s web root
$config[‘ed_cache_path’] = ‘/Users/cplaptop/Sites/site1/html/images/resizer_cache/’; // Server path to where your resized images should be stored
}

$host = $_SERVER[‘HTTP_HOST’];
if($host == ‘domain.com’ or $host == ‘www.domain.com’) {
$config[‘ed_server_path’] = ‘/Users/cplaptop/Sites/site2/html/’; // Server path to        your site’s web root
$config[‘ed_cache_path’] = ‘/Users/cplaptop/Sites/site2/html/images/resizer_cache/’; // Server path to where your resized images should be stored
}

Am I missing anything here? When I try this route, neither my primary or secondary sites show images. I'm willing to try any way that works, so all suggestions are appreciated!


texts: Weird text-formatting after upgrade to 2.7.0

texts:
I upgraded a site today from 2.5.5 to 2.7.0. Everything went well except from one ting:

When outputting textareas with text formatting none EE will insert paragraphs and whitespaces - expected behaviour is for EE to do nothing. I wonder what the cause could be?

For example this in the database:

Der er 18 åbne afstemninger, og du kan samtidig seriøst overveje at komme med dit input til debatopslagene i Fri Debat (som stadig er ekstremt meget i beta!)

Nyhedsbrevet udsendes ikke hver uge henover sommeren.

will be rendered like this:

Der er 18 åbne afstemninger, og du kan samtidig seriøst overveje at komme med dit input til debatopslagene i Fri Debat (som stadig er ekstremt meget i beta!)

&nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;

Nyhedsbrevet udsendes ikke hver uge henover sommeren.

even though formatting is none. So both p, br and whitespace added.

Help much appreciated!


texts:
My client want to send a newsletter with a product's catalog to his customers

Is it possible with Postmaster? I thought that I need to create a template with custom fields, then the clients publish entries and use "comunicate" to send the newsletter

I don't know if it's possible or is the right way, 'cause I never developed a site with this functionality

Thanks in advance :)


texts: SIM Payment Gateway Response/Receipt URL not displaying

texts:
I am using the SIM Payment Gateway with Cartthrob but the response/receipt URL is not displaying after submitting the payment on authorize.net. Interestingly, I got it to work previously after adjusting the name of my system directory in the extload.php file. But now I get the following error message:

An error occurred while trying to report this transaction to the merchant. An e-mail has been sent to the merchant informing them of the error. The following is the result of the attempt to charge your credit card.

This transaction has been approved.

It is advisable for you to contact the merchant to verify that you will receive the product or service.

I recently updated to CT version 2.2.2 and now 2.2.91 so that could potentially be related. I did make sure to keep the correct system path in extload.php though.
Any ideas where I might have gone wrong?


texts:
I'm trying out SafeCracker for the first time. What I've done:

SafeCracker module is installed
Channel {test_profiles} is created with 1 field: {full_name}

The following code outputs nothing between the tag pair:

Hello World

<form>
    {exp:safecracker channel="test_profiles" datepicker="no" include_jquery="no" return="registration/form" safecracker_head="no"}
        <input name="title" type="text">
        <input name="full_name" type="text">
        <input type="submit" value="Submit">
    {/exp:safecracker}
</form>

Any ideas what might be wrong?

EDIT 1:
I went to Addons -> Modules -> SafeCracker. I saw a list of my Channels there, including test_profiles. I checked the "Allow guests to post entries?" checkbox and selected one of the members from the "Set the member_id to use for guests." drop down menu. Afterwards, I viewed the template output again. Now I see a


texts: Doubt about a Stash Embed parameter : name"my_var1"

texts:
I have a doubt about a Stash Embed parameter. In the Stash documentation page, there is this example:

{stash:embed name"my_var1" file_name="foo:bar" stash:my_var="value 1"}
{stash:embed name"my_var2" file_name="foo:bar" stash:my_var="value 2"}

I understood how it works, but I have a doubt about the name"my_var1" parameter. I do not understand the usefulness of this name"my_var1"

What is its function ? How to use it? What can I do with the my_var1 variable?


texts: What field type should I use for currency?

texts: Can someone explain in (easy English) the difference between Number and Integer/Decimal? I understand Integer and Decimal... What is the point of Number? Should I use Number for product prices?


texts: Solspace Calendar module timezone entry field empty

texts:
When I go to add a Calendar, the timezone entry field doesn't show up and when I go to add Events, the event date picker doesn't show up.

It all worked fine locally, but not on the live site.

I'm using EE version 2.5, Solspace Calendar 1.8.5

Please help!


texts:
New to P&T Assets, just got it today, v2.  Using a flat out blank template and the two examples from the site docs.  Scanned two directories of images that work in the normal file manager.  It appears the assets:files tag displays nothing.  assets:folders Folders display.  EE2.5.5.

{exp:assets:folders folder="top" recursive="yes"}

{folder_name}

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

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

        {/exp:assets:files}

{/exp:assets:folders}

Shows:

Image

Screenshots

Should it show the list of files?


texts: Code to change the input class when the field is "required"

texts:
I am trying to figure out the code that will allow me to change the class of the input field when the field is required. I have created css that will change the field color and can't figure out how to set this up correctly in the new FreeForm composer template.

I have set this up to add "* required" on the field name:

        {composer:field_label}
        {if composer:field_required}* required{/if}


texts: Only show categories if entries exist in that category AND in another separate category

texts:
I need to create a megamenu for a site which links to a bunch of category pages.

So I have megamenus for Product Type A & B which are also categories.

Under Product Type A there are headings for Materials, Brand & Usage.

Product Type B will also have a megamenu with a Brand subheading.

At the moment I have a category group for Brands and I'm just listing out all the categories in that group under the respective headings.

So what I need to do is make sure that under the Brand heading for Product Type A that only Brands that have entries that are also assigned to the Product Type A category show, and so on for Type B etc.

For most of the options in these menus I'm just dealing with categories because there won't be any overlap.

But there will for Brands and so I need to look at the entries and then build the list of category options from there.

Any idea how I go about that?


texts:
I'm running into an issue with displaying a marquee across pages on a site that has an index page and calendar page outside of Structure, while all other pages are within Structure.  The code I'm trying to run in the header is:

 <marquee behavior="scroll" scrollamount="1" direction="left" width="350">

   {exp:channel:entries channel="marquee" limit="3" status="open"}
     {marquee}
   {/exp:channel:entries}

 </marquee>

It displays fine on /index and /calendar which are NOT the Structure pages. For every other page I can see the marquee loading however the content between the paragraph tags is blank such as:

The reason I'm wondering if this is an issue with how the templates are Structure is because when I try:

<marquee behavior="scroll" scrollamount="1" direction="left" width="350">

Hello, this is a test.

</marquee>

The marquee loads as I would like it across all pages; Structure and Non-Structure.

To get around the HTML  tag I'm using Remy Sharp's Marquee jquery in the footer as such:

  $('div.demo').marquee('pointer').mouseover(function () {
  $(this).trigger('stop');
  }).mouseout(function () {
  $(this).trigger('start');
  }).mousemove(function (event) {
  if ($(this).data('drag') == true) {
  this.scrollLeft = $(this).data('scrollX') + ($(this).data('x') - event.clientX);
  }
  }).mousedown(function (event) {
  $(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
  }).mouseup(function () {
  $(this).data('drag', false);
  });

as found on:
 http://remysharp.com/2008/09/10/the-silky-smooth-marquee/.

Any ideas of what I'm over looking here?


texts: Solspace Tag: Not all tags from the tag group are listed

texts:
I have tagged products with colors and to display list of those colors I'm using code below:

{exp:channel:entries channel="products" category_group="1" category="not 7|8|9" status="retail|showroom|open" dynamic="no" orderby="title" sort="asc"}
{exp:tag:tags entry_id="{entry_id}" tag_group_name="Attributes" websafe_separator="-"}
{tag}
<?php $tags['{tag_id}'] = '{tag}'; ?>
<?php $web_tags['{tag}'] = '{websafe_tag}'; ?>
{/exp:tag:tags}
{/exp:channel:entries}

{!-- Sort tags by name ascending --}
<?php print_r($tags); ?>

and output looks like:

blue ivory lacquer wood wooden black brass chrome lacquer black brass chrome lacquer silver brass chrome white black brass lacquer black brass chrome lacquer black lacquer silver brass glass gold brown wooden black tan beige tan chrome mirror silver steel white black brown gold multicolor black silver black silver multicolor white black silver black gold black white black white black gold white black gold brass leather mahogany red wood wooden black and white acrylic acrylic black glass

Array ( [19] => blue [14] => ivory [137] => lacquer [129] => wood [23] => wooden [12] => black [109] => brass [111] => chrome [31] => silver [33] => white [76] => glass [38] => gold [21] => brown [47] => tan [46] => beige [138] => mirror [114] => steel [16] => multicolor [13] => leather [157] => mahogany [6] => red [166] => black and white [15] => acrylic )

but in the tag group "Attributes" I have 57 tags and above displayed not even half of them.

Any clue what is going on?

Thanks


texts: How to search in a custom field with multiple values using exact

texts:
I have a Field Pack - Checkbox field (named doctors_schedule_now) with the following values:

nephrology : Nephrology
pediatric-nephrology : Pediatric Nephrology

In my entry, I'm checking the box for Nephrology. This populates in my DB field like this:

nephrology

Then I'm using Low Search to search in this custom field. This is the parameter I'm passing in the exp:low_search:results tag:

search:doctors_schedule_now='nephrology'

This search parameter will return entries that have both "pediatric-nephrology" and "nephrology" checkboxes chosen. This is not what I want, so I modified the search parameter like this (with exact matching):

search:doctors_schedule_now='=nephrology'

This will return only entries with the "nephrology" checkbox chosen - great! But wait. If I choose both checkboxes - "nephrology" and "pediatric-nephrology", it populates my DB like this:

nephrology(paragraph return)pediatric-nephrology

Now I can no longer use the exact parameter because the field has multiple values. And, I still need to return entries ONLY entries with "nephrology" chosen. So, I cannot use the parameter like this:

search:doctors_schedule_now='nephrology'

Because it returns entries that have either "nephrology" OR "pediatric-nephrology" checkboxes chosen. In other words, this search parameter returns not only "nephrology" but also "pediatric-nephrology"


texts: Techniques for using "feature flags" / conditional features in EE

texts:
What are techniques you use to show different features / versions of your EE site to different users?

I use "feature flag" techniques in my client-side Javascript (my Javascript Feature Flags library is a temporarily out-of-date example), and want to enable something(s) similar in EE. Scenarios I'd like to support--e.g., on a live, production site, at the same URL:

allow developers to see different templates than regular users
allow developers to see different content than regular users
allow user group A to see one feature, and user group B to see a different feature (e.g., A/B testing, or gradual rollout of new features)

The obvious EE technique that comes to mind is having simple "router" templates, that conditionally embed other templates. Like:

{if member_id==1} {!-- ideally, abstracted to {if dev==1} --}
  {embed="developer/index"}
{if:else}
  {embed="production/index"}
{/if}

I could imagine abstracting that, such that I could set a global feature flag that is triggered by specific conditions (specific member_id, group_id, ip_address or a cookie value). Using Freebie, one could use URL segments as trigger, as well.

I've done this kind of thing on an ad hoc basis within a template, but I'm curious if others have done anything like this, systematically. If so, what technique(s) have you used? Have you found it useful and maintainable over time?

Updated: ideas for ad hoc techniques are appreciated. But I'm especially interested to know of any systematic approaches being taken, and their relative pros / cons for maintainability and ongoing usefulness.

For example, is there some code you make available to every template that allows you to switch things on and off across many templates? Is there an add-on or htaccess technique that gives you top-level control over routing, that allows you to conditionally set routes (based on user, cookie, ip address, etc.)?


texts: Is it possible to build the URL Title of an entry from a different field than Title?

texts:
In EE the "URL Title" field is automatically built based on what you enter in the "Title" field. Is it possible — with an extension or otherwise — to build the URL Title from a different, or better yet multiple fields?

For instance, I have three fields on my publishing page: First Name, Middle Name / Initial, and Last name. I'd like the URL Title to be firstname-middleinitial-lastname.

is this possible?


texts: Matrix sort parameter + Zoo Visitor not working as expected

texts:
I've followed the documentation outlined here:

http://docs.pixelandtonic.com/matrix/templating/field.html

Where my custom field is member_companyname and is assigned as a matrix fieldtype.

{member_companyname sort="desc" limit="1"}
<input type="text" name="member_companyname" id="member_companyname" class="form-text" value="{member_companyname}" />

<input type="hidden" name="member_companyname[row_order][]" value="row_new_{count}">
<input type="hidden" name="member_companyname[row_new_{count}][col_id_20][]" value="[{entry_id}] [{url_title}] {title}">
{/member_companyname}

but it's not rendering it and spits it out as this:

Company Name {member_companyname sort="desc" limit="1"} " />


texts: $system_path for EE setup in subdirectory

texts:
I need to move an EE install into a subdirectory. The site currently has the system folder above web root and uses focus lab's dynamic config setup.

My desired setup would this:

--system
--config
--public_html
   |
   |-my_subdirectory
      |
      | -assets
      | -index.php
      | -admin.php
         etc.

However I could not get the index.php working as yet. Anyone having an idea what the correct value for the $system_path variable located in the index.php would be?

Many Thanks


texts:
I've successfully used WYGWAM (CK Editor) Styles before but I cannot get the Templates to work. I have a relative path in my WYGWAM settings like so:

And I'm just getting this:

I have the following code in my "wygwam_templates.js" file:

    // Register a template definition set named "default".
CKEDITOR.addTemplates( 'default',
{
// The name of the subfolder that contains the preview images of the templates.
//imagesPath : CKEDITOR.getUrl( CKEDITOR.plugins.getPath( 'templates' ) + 'templates/images/' ),

// Template definitions.
templates :
    [
        {
            title: 'Insert Location Map',
            description: 'Using this will add the interactive map to this page',
            html:
                '<img src="/images/layout/locations_map.jpg" usemap="#locations" />' +
                '<map name="locations" id="locations">' +
                    '<area id="corporate" shape="rect" coords="46,97,170,136" href="#" />' +
                    '<area id="brazil" shape="rect" coords="207,246,257,277" href="#" />' +
                    '<area id="uruguay" shape="rect" coords="202,299,265,324" href="#" />' +
                    '<area id="germany" shape="rect" coords="293,76,354,105" href="#" />' +
                    '<area id="italy" shape="rect" coords="350,102,392,119" href="#" />' +
                    '<area id="india" shape="rect" coords="478,158,524,178" href="#" />' +
                    '<area id="china" shape="rect" coords="551,140,595,163" href="#" />' +
                '</map>'
        }

    ]

});

I love the ideas of the Templates but for the life of me I can't get it to work. Any help would be great!

I'm using EE 2.72 and Wygwam 3.2.1


texts:
Brand new to CartThrob - trying to add the add-to-cart form using:

{exp:cartthrob:add_to_cart_form entry_id="{entry_id}" return="store/view_cart" quantity="1"}
    ${workshop_price}
    {title}
    <input type="submit" id="addToCart" class="btn-default" value="Add to cart" />
{/exp:cartthrob:add_to_cart_form}

And I get the error "The RLS field is required.". What's going wrong? I have the latest versions of both CT and EE.


texts: Forcing Preload-Replace variables to parse before conditionals in 2.9.0

texts:
I've been using Low's technique of combining snippets and preload variables (as described here) in order to be able to use a particular snippet repeatedly (and DRYly). The snippet contains conditionals and preload_replace variables form part of the criteria for those conditionals, so the criteria can change depending upon the template in which the snippet is used.

Up until the point that I upgraded to 2.9.0 it worked just fine, because the Conditionals were advanced and so parsed long after the preload replacement had taken place. Now, under 2.9.0's new conditional parsing regime, it would appear that the conditionals are firing before the preload replacement has taken place, and the template throws an error.

Does anyone have a method of forcing the preload replacement to take place before the conditional are parsed, like in the old days? I'm trying to avoid using an embed if possible, but accept that there might be no other way. Still, I'd be interested to see if anyone has an alternative.

Thanks.

UPDATE: In response to the requests in the first couple of replies, here is some code. It's not the entire template, just the relevant channel entries loop and the problem snippet. (The rest of the template is pretty mundane).

CE loop:

{exp:channel:entries channel="news"}
    {!-- ...some other fields... --}
    {preload_replace:pre_gridfield="name_of_grid_field"}
    {snp_gridfield_output}
    {!-- ...some more fields... --}
{/exp:channel:entries}

Snippet snp_gridfield_output:

{{pre_gridfield}}
    {exp:typogrify:widont}{{pre_gridfield}:text}{/exp:typogrify:widont}
    {if {pre_gridfield}:image}
        {if {pre_gridfield}:caption != "" || {pre_gridfield}:credit != ""}

                <img src="{if {ress} < 480}{{pre_gridfield}:image:mobilesize}{if:else}{{pre_gridfield}:image}{/if}" alt="{{pre_gridfield}:alt}" title="{{pre_gridfield}:caption}">

{{pre_gridfield}:caption}{if {pre_gridfield}:credit != "" && {pre_gridfield}:caption != ""}&emsp;/&emsp;{/if}{if {pre_gridfield}:credit}&copy;&nbsp;{{pre_gridfield}:credit}{/if}

        {if:else}
            <img src="{if {ress} < 480}{{pre_gridfield}:image:mobilesize}{if:else}{{pre_gridfield}:image}{/if}" alt="{{pre_gridfield}:alt}" title="{{pre_gridfield}:caption}">
        {/if}
    {/if}
{/{pre_gridfield}}

The various Grid fields that this snippet might reference all have the following columns: text|image|alt (for image alt text)|caption|credit. What's going on in this snippet's code is that once the preload replacement has correctly set the name of appropriate Grid field, the Grid loop will first place the text, then look to see if there is an image. If there is then it checks to see whether the image has a caption and/or a credit. If it does, then a
 element is used (with  and
 elements inside), otherwise the  element is used on its own. There is also some degree of content negotiation based upon the screen size (the {ress} tag) which can be seen in the img element's src attribute.

The preload replace is definitely the problem; if I do the replacement manually inside the snippet (ie. search-and-replace '{pre_gridfield}' with 'name_of_grid_field') and do away with the preload_replace tag entirely, the problem disappears. But so does my flexibility for reusing the snippet.

Hope this helps.


texts: Are there hooks I can use to log file downloads

texts:
I'm working on a module to log some statistics on downloads from anywhere in the site. My module setup is fine, it installs and creates the necessary tables. Now I want to hook into the events, file downloads in particular and log this data to my new tables.

Are there any hooks exposed that I can use to see when this happens? It crossed my mind to try and intercept the event with javascript and log it asynchronously. But I am hoping there is a hook I can use instead. I haven't been able to find one though.

Any suggestions please?


texts: returnURL is invalid expresso:store paypal_express

texts: I am having a problem but with express:store on expressionengine and paypal_express. I have inputed all the details but I was receiving a 'Security header is not valid" I deleted the payment method and re-created it but I am now getting another error 'returnURL is invalid' I have remove the .htaccess thinking this may interfere with it but I am at the end of my teather here. Any help or advice would be greatly appreciated.


texts: Can I toggle sales tax exemptions in Exp:resso Store templates?

texts:
I'm working on a store that serves both consumers and wholesale retailers. The consumers pay sales tax, but the wholesalers don't. In my template, I can check for a Member Variable to see whether the customer should be tax-exempt. Then, can I somehow [via POST]:

toggle {tax_exempt} on a per-item basis?
override the Tax Rate on a per-order basis?


texts: Structure - New Member Group to edit all pages

texts:
Is there any easy way to give a new member group permissions to edit all pages in my structure?
In the Member Group it has got Control Panel Access for all he Content Sections and The Add ons sectionand Modules Addon.
It has all Channel Posting Privelidges.
Channel Assignment as well it has got access to all the relevant ones as well.

But if a member in that group tries to access an entry in the structure they can't - it doesn't have the necessary permissions.
I need to go into the Entry Access Tab for the Entry and add the Group there.
There is a large no of pages in the structure so is there any easy way to add these permissions?


texts: Two different channels, but one archive. Possible?

texts:
I'm sure I'm going to do a horrible job explaining this, so apologies in advance.

I have two different blogs (Blog and Featured), two different category groups (Blog and Decades), and I'm having a problem linking items in my category groups to the correct page. Here's an example of my Decades snippet:

DECADES

    {exp:channel:categories channel="blog|featured" style="linear" category_group="not 10"     show_empty="no"}

{category_name}

    {/exp:channel:categories}

If I'm allowed to use multiple channels in the channel= parameter, what do I link the {category_name} to? Either blog can select the Decades Category group, so if I want someone to see all the posts in the 1910 category, regardless if the post was made in the blog channel or the decades channel, how would I go about it?


texts:
I have a checkbox field in my form where the values are from another channels title field.

What I would like is to have only entries with status="open" to appear in the checkbox group.  My code below however, is not working.  Is this possible?

{freeform:field:assigned_editor
                attr:id="238"
                attr:class="radio"
                status="open"}

Thanks!

Peter T


texts: File fieldtype in Matrix error: "File cells don’t work within SafeCracker..."

texts:
In EE 2.7.0 I'm now getting "File cells don't work within SafeCracker. Use SafeCracker File instead" messages within Matrix cells that formerly used SafeCracker File as fieldtype and have now been changed to File. Same is happening with tests of new entries of File field type used in Matrix.

This is happening on the front end using Channel Form, and safecracker_file module has been removed.


texts: AJAX In Cart Page Returning Odd HTML Instead Of Data Object

texts:
EE 5.2.6

This is a very strange problem.

I have a class that I'm using to query the Amazon Product Advertising API and return data via AJAX.

I have category pages and product pages where the jQuery and PHP class are working just perfectly, meaning a user is able to click a button and the class processes data through the Amazon API (to update cart) and returns data that changes values on the frontend.

click 'add to cart'
ajax call runs php function (using ACTion id) that sets up and modifies a cart on Amazon
json is returned pertaining to elements that need to be changed on the frontend

This is all working perfectly EXCEPT when you get to the cart page.

On the cart page the cart items are showing just fine, but when you attempt to modify or remove an item from the cart ON THIS PAGE ONLY, instead of processing the data and returning a json object, it is not even reaching the class and is returning html with some random table.

This code and these templates are something I copied over almost exactly from a production server, and on that site everything is working perfectly. No problems at all.

Do you have any idea why I'm getting some strange html with a table in it instead of running the class methods that my add-on is supposed to run (and does run on another site)?

I feel like it has something to do with EE but I'm not sure and wanted to check with the fine community here before trying to debug it further.

Thanks!


texts: How to access the n-th related channel entry (EE 2.6.1 relationships)

texts: If I have (as in the ee 2.6.1 docs) a channel ParentChannel, with a field relationship_field, relating to multiple ChildChannel entries, how do I find the total number of related ChildChanel entries for a given ParentChanel entry, and how do I access just the n-th ChildChanel entry (without having to loop through all of them)?


texts:
Is there a way to use the built-in tags available from structure or EE to list parents and their children accordingly? Essentially, something akin to the logic:

{exp:structure:entries channel="channel_name"}
    {if structure:child_ids_for:{entry_id} != ""}
        {!-- List all children to this parent --}
    {/if}
{/exp:structure:entries}

Also we need to account for third-level URLs.

Effectively, the output we're looking for is something like:

Parent 1
|--Child 1
|----Sub Child 1
|----Sub Child 2
|--Child 2
Parent 2
Parent 3
|--Child 1

And so forth. Using the saef_select drop-down isn't an option.


texts: How do I display grid content in Bootstrap Carousel?

texts:
I am working with Bootstrap and EE 3.4.5 Grid and need a little help on the carousel.

With the following code all instances of the slide have class 'active'

    {slider}

{slider:title}

{slider:sub_title}

{slider:button_text}

    {/slider}

If I remove {if count == 1}active{/if} the carousel disappears, but I only need active on the first slide. Any suggestions?


texts:
Using the pages module, I have a number of entries that load at
domain.com/url_title, for example, domain.com/contact

    {exp:channel:entries channel="main" dynamic="on"
    disable="categories|member_data|pagination|trackbacks"
    limit="1" url_title="{segment_1}"}
        <h1>{title}</h1>
        {body}
    {/exp:channel:entries}

Pages display fine. The contact page has a FreeForm form that redirects to domain.com/contact/thank-you, but gives a 404 error. The pages URIs are set correctly. What gives?


texts:
I have this code in my safecracker form

<select class="span2" data-title="Help" data-placement="right" data-trigger="focus" data-content="{instructions:gender}" disabled id="gender">
 {options:gender}
   <option value="{option_value}" {selected}>{option_name}</option>
 {/options:gender}
</select>

genders is a relationship field. According to the documentation, I should be able to generate options for a select field using this syntax

<select name="my_field_name">
        {options:my_field_name}
                <option value="{option_value}"{selected}>{option_name}</option>
        {/options:my_field_name}
</select>

This doesn't work for me.

However, using

{field:gender}

works but outputs a select dropdown. I don't want this since I want to specify some attributes for the select tag as you can see above.

Any idea why this is the case?

I am using EE 2.5.5


texts:
I'm trying to delete a forum thread using Forum Module v 3.1.10 and EE 2.5.2 and after I hit the delete confirmation button I get redirected to the site's home page which is blank. Refreshing the page brings up a dialogue for confirming form submission, and I get returned to the blank page.

If I manually change the URL in the address bar and then return to the forum, the thread is still there. So I'm unable to delete forum threads.

Turning on debugging in index.php isn't showing any errors.

Anyone else had this problem before?


texts:
Have set up an site in various languages with the structure as follows:

en/template/article

There's just one channel field group with the custom fields set as

field_en, field_de, field_fr

Etc, etc

Main issue though is when trying to implement a Simple Search functionality: the channel field parameters where you set the URL for search results only allow one input - probably will have to be en/template - and you cannot put {segment_1}/template which would obviously dynamically allow setting of the results page in different languages.

Has anyone encountered this one and come up with a workaround?


texts:
The login password does not save when I login in ether Chrome or Safari (on Mac). I am running 2.7. This is a pain in the ass when I am developing, I need to login 25 times a day with my password.

On an older site I built last year it remembers my login both user name and password. This site is 2.52.

It there a security setting that has changed between 2.5 and 2.7, and if so can I change  it, especially durning the development stage while I am in development mode. I would most likely change it back when I turn it over to the client. I have looked but to no avail.

Thanks, making me crazy.


texts: Problem with Assets in Grid "Undefined index: grid_row_id; Filename: assets/ft.assets.php; Line Number: 1310"

texts:
EE 2.7.1 and Assets 2.2.1

I have a Grid fieldtype (static-images) with an Assets column named image and a few native text field & dropdown columns. When I have at least one row in the Grid, I get the following error in the frontend:

  A PHP Error was encountered

  Severity: Notice

  Message: Undefined index: grid_row_id

  Filename: assets/ft.assets.php

  Line Number: 1310

(I also get the usual "Cannot modify header information" PHP Warnings after that.)

I've reduced the template code that displays the Grid field to the following, which still triggers the PHP Notice:

{static-images}
    {static-images:image:url}
{/static-images}

Any ideas?

Free Bonus Bug! If I mark the Assets Grid column as "Required" but don't add a file, the in-column error message shows "The %s field is required." :p


texts:
I've got:

{exp:channel:entries channel="packages" dynamic="no" limit="1" sort="asc" orderby="package_order" search:package_order=">3"}

which should bring back a result but doesn't. The "package order" field is format "integer" but that should work shouldn't it?!

Am i missing something?


texts:
Can I have separate add-ons installed for each site when using MSM?

For instance, for an EE install using MSM:

One or more sites within the EE install will use Transcribe for localization.
One or more sites within the EE install will not have localization

If possible, I'd like to avoid having Transcribe enabled for a site with no localization.


texts:
I have looked through the documentation for ee https://ellislab.com/expressionengine/user-guide/add-ons/query/

There is no mention of exp:query sql select for a relationship field. I need some help with the syntax.

I am looking to get a total_results value from a select by channel and value in multi select relationship field.

Any help would be awesome. I am very new to the exp:query mod.


texts: Assets and XHR (Ajax) requests over https

texts:
I have our main site on a development server which does not have https enabled. Yet I'm noticing the following errors:

XMLHttpRequest cannot load https://staging.ginghamsburg.org/?ACT=28. Origin http://staging.ginghamsburg.org is not allowed by Access-Control-Allow-Origin.

My config file handles ssl via the following options:

if ($_SERVER['SERVER_PORT'] != 443) {
$config['site_url'] = "http://".$_SERVER['HTTP_HOST']."/";
} else {
$config['site_url'] = "https://".$_SERVER['HTTP_HOST']."/";
}

What seems to be happening as a result is that none of the folder contents or subfolders display in the Assets window.


texts:
I've picked up some work on a site (EEv2.8.1) which requires a channel entry form so users can publish their own channel entries. It's been a long, long time since I have worked with this area of a site so my first stop was to look at the Safecracker module. I learned that the module is now integrated into EE as of V2.

So my next step was to use the built in {exp:channel:entry_form}. I popped the tags into my template and then on reload I reveieved an error saying that the tags could not be processed and to 'Please check that the ‘channel’ module is installed and that ‘entry_form’ is an available method of the module'. The channel module was indeed installed.

On checking the channel module files, it was missing the 'mod.channel_standalone.php file. I managed to track this file down from another EE install. But I'm still getting the error that the {exp:channel:entry_form} is not being recognised.

Am I missing something? Can anyone help me out with this? Like I said, it's been a while since I dealt with something like this so I may have overlooked something. Thanks


texts: CE Image Not Processing an Image That Exists

texts:
Running into an issue with CE Image 2.4.1 on an ExpressionEngine 2.5.3.

The code below is grabbing an image from a Matrix 2.5.2 field. In the first line, with the  tag, the image displays as expected. In the second line, where CE Image enters the picture, the image neither appears nor is cropped.

{work_process_gallery}
  <img src="{mx_image}" />
  {exp:ce_img:single src="{mx_image}" width="200" height="200" crop="yes|center,center"}
{/work_process_gallery}

Following the troubleshooting instructions on the CE Image website, I enabled Template Debugging and I am seeing this when I load the page:

***  CE Image debug: Base path: '/usr/local/apache/htdocs/'
***  CE Image debug: Source image: '[REDACTED_URL]/images/uploads/adidas-apparel1.jpg', Fallback image: ''
***  CE Image debug: Source image is not readable or does not exist: '/images/uploads/adidas-apparel1.jpg'.
***  CE Image debug: Fallback source image is not readable or does not exist: ''.

If I take the URL from the second line, the image loads as expected in my browser, so isn't the source image both readable and exists?


texts: How can I conditionally reveal content of an asset based on day of the week?

texts:
I have an asset called specials. There is one special for each day of the week. On the homepage I'd like to have that days special 'magically' appear upon page load in the designated area.

Anyone have any idea how I could pull this off without the client having to go in everyday and manually change the day?


texts:
I am trying to use Safecracker Registration to register but upon submit I get this error,

A Database Error Occurred

Error Number: 1054

Unknown column 'ip_address' in 'where clause'

SELECT COUNT(*) AS count FROM exp_security_hashes WHERE hash='56bdf8c4561f360c63ed39ad076b03f4047066f3' AND ip_address = '120.28.235.198' AND ip_address = '120.28.235.198' AND date > UNIX_TIMESTAMP()-7200

Filename: third_party/safecracker_registration/libraries/Safecracker_registration_lib.php

Line Number: 459

Here is my form

{exp:safecracker
    channel="members"
    class="form-horizontal"
    dynamic_title="[email]"
    error_handling="inline"
    include_jquery="no"
    register_member="yes"
    return="/index.php/sign-up/"
    safecracker_head="no"
}

    {if global_errors:count > 0}

General Errors

        {global_errors}

{error}

        {/global_errors}

    {/if}

    {if field_errors:count > 0}

Form Errors

        {field_errors}

{error}

        {/field_errors}

    {/if}

    <fieldset>
        <legend>Sign Up</legend>

            E-mail*

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

            Password*

                <input type="password" name="password" id="password">
                {if error:password != ''}
                    {error:password}
                {/if}

            Password Confirmation*

                <input type="password" name="password_confirm" id="password_confirm">
                {if error:password_confirm != ''}
                    {error:password_confirm}
                {/if}

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

    </fieldset>

{/exp:safecracker}

Any idea what is happening?

P.S. I am using ExpressionEngine 2.5.5 and Safecracker Registration 1.2.0


texts: Cartthrob Realex Redirect (Global Iris) - 505 error - URL masked

texts:
Everything works fine in Chrome.

However in Internet Explorer and Firefox, submitting the check out form results in an error message from Realex/Global Iris:

505 You cannot use this service from there.

Global Iris say that their logs suggest that the submission URL is somehow being masked - hence it doesn't match the referral URL that they have on record, so the request fails.

edit: if I type document.referrer into the browser console, Chrome shows http://www.domain.com/cart/checkout, while both IE and FF show nothing.


texts: Order entries by custom date field, with empty date-entries last in list

texts: I'm listing courses by a custom date field, but some courses are "on demand" and doesn't have a specific time. When using orderby="custom_field" and sort="asc" all the courses without a date shows up first in the list. How can I get them to show up at the end instead?


texts: To start I checkboxed "Save As File" for everything.  EE Templates and Low Variables.  I was reading on performance and from what I can tell, doing that, save as file is a performance drainer.  Can anyone verify that, should I uncheck the option?


texts: First module, how to create a simple control panel form?

texts:
I have successfully built the front end of my first module. Its a simple module that does currency conversions.

I need to create a simple control panel page for my module that allows me to add a decimal number into three different fields which is saved in the database (already have the database created on install of module).

I am a complete newbie, so wondering if anyone can give me an idea of how to create a basic form that submits to the database as I have been unable to find anywhere that shows an easy to understand version.


texts: How to prevent Assets uploads within Wygwam for specific user group(s)?

texts:
I have created a restricted user group for external bloggers; I want to be able to prevent them from uploading images via Assets, but I'm not sure how. I've restricted access to the Assets module for that particular user group (in Module Access Privileges), so while they can't access it directly, it still appears when they click on the image icon in Wygwam.

Regardless, they have full access to the content of Assets, including the ability to upload.

How do I restrict this?  Ideally they wouldn't have access to Assets at all, but if I could keep them from uploading, that would be OK as well.

Currently running EE 2.7.2, with Assets 2.1.4 and Wygwam 3.2.1


texts: Database Error 1364 in Solspace Calendar

texts:
We recently had a server failure that resulted in having to rebuild the server services. Ended up going from mySQL 5.1 to 5.6.23. Since that issue occurred, one of our clients is reporting that Calendar gives him this error when trying to create new events:

A Database Error Occurred
Error Number: 1364

Field 'last_date' doesn't have a default value

Client reports that entry gets made, just doesn't have an date info in the Calendar field.

It's EE 2.8.1 and Calendar 1.8.9.