texts: Freeform returning "Disallowed Key Characters" and "Unauthorized Action" Messages

texts:
I would like to create a second form on my ExpressionEngine 2.5.2 site using Freeform. We have been using the Freeform module for about a year and a half, but I have recently been experiencing 2 different problems. I'm not sure if the issues are related or not:

Problem 1 - Disallowed Characters

When I go in to my ExpressionEngine control panel and try to add information to a blank field of an entry, when submitting the change, I always receive a  message that says "Disallowed Key Characters." Nothing is wrong with the fields I am entering the data into, and there are no unusual characters in the data that I'm entering.

I am able to enter data into a form when pulling up an old form page on our site in my browser [not in my ExpressionEngine control panel].

Problem 2 - Unauthorized Action on New Forms

I created a simple new form where I am only entering a first name and a last name, then clicking submit. On the webpage in a browser,  when I fill those two fields then click submit, I get taken to a new page that says "You are not authorized to perform this action". This doesn't make any sense to me and I'm out of troubleshooting ideas.

Here is the very simple form I am using in my html page, and I have created each of the fields in the Freeform module within EE that are listed in my code -

<form class="application-form" action="#">
    {exp:freeform:form collection="Entry Form" return="home/index"}
    <fieldset>

APPLY TO COMPETE

                First Name
                <input type="text" dir="ltr" id="first_name" name="first_name" value="" />

                Last Name
                <input type="text" dir="ltr" id="last_name" name="last_name" value="" />

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

    </fieldset>
    {/exp:freeform:form}
</form>


texts: Is it possible to check (in a template) if a certain ip address has ordered the same article within the last 24 hours?

texts: Is it possible with Expresso Store to check (in a template) if a certain ip address has ordered the same article within the last 24 hours? I have a website where someone can order maxiumum 1 piece of each item. I don't want people to just buy one, then go to the homepage again and be able to buy another ne of the same article. So I need some kind of (possibly ip) check. Is this possible?


texts: Module: Facebook functionality on publish Tab?

texts:
I've been banging my head against the wall with this and I have not found an answer.

I am attempting to build an EE application where admin can come in and create a quiz app.  I then need to allow the admin to add the app to their Facebook Page (using FB Graph API calls).

What I'm facing is when to introduce that Facebook functionality. From what I could see looks like I need to create a custom module.

Module -- Publish Tab
But what I see looks like only stuff that goes in publish_tabs function are fields.  Does that mean I must create a custom field then?  I would need to allow the user to authenticate the FB App, then give it permissions to manage FB Pages, then finally a way to add the entry/quiz to their FB Page.

Is the tab able to do such functionality? Thanks!


texts:
this doesn't seem to work, since you can only "search" in custom fields:

{exp:channel:entries channel="#" search:title="foo"}

Is there any way to easily achieve this ?
Preferably without adding any custom fields or using advanced search add-ons.


texts: Discussion Forum v3.1.21 on EE v2.11.7 - users cannot unsubscribe from threads

texts:
When a user tries to unsubscribe from a thread they get the following message...

The following errors were encountered
You are not authorized to perform this action

It does this whether you are a standard member or super admin logged in!!

I simply cannot find anything in the settings stopping unsubscribing??

Any ideas?

Thank you


texts: If you look at this page on my website http://www.cambridgeusa.org/insider only 20 of my entries appear but I have many more. Is there a way to get all entries to appear?


texts: How can someone edit categories without editing an entry

texts:
I have set up all of the proper permissions for our client to edit categories, and this is working.  But so far as I can tell, there is no way to give access to the Admin -> Channel Settings -> Categories section without giving them access to the Channel Settings, Channel Fields, etc.

What I am needing is for my client to be able to see, arrange, and edit categories without having to go to an entry and switch to the categories tab.  Add-ons welcome.


texts: Email submissions getting through with blank required fields

texts:
We have a Contact Form for a client that is somehow allowing users to submit it with blank fields that are set to be required. Submissions appear to be from valid sources...aka not spam. When we attempt to test it on multiple devices, operating systems, and browsers, ALL validation works as expected.

ExpressionEngine Version: 2.9.2
Freeform Version: 4.2.2

Here is an example of the form showing errors for blank fields.

Here is the backend of Freeform showing a couple of submissions that have gotten through with blank fields.

If we could recreate the situation we believe we could fix it. Unfortunately, everything we tried, the system works as expected.

Has anyone had a similar experience? If yes, did you find a solution solution?


texts: Template group not appearing in file system

texts:
I've created a template group called temp, and inside this template group I've create a few templates. But when I try to view the templates I get a 404 error. I've checked my files and the template.group folder is not being created. My permissions seem to be fine (every folder up to the root is 755). Any ideas why this is happening?

Thanks


texts: SafeCracker Registration: Looping Through Members - and their Channel entries

texts:
I'm using SafeCracker Registration so that I can use the power of Channels for Member fields. My members are being assigned between 2 Member Groups. Questions:

How do I loop through a list of Members filtered by Member Group?
How do I access the member's Channel data within the loop?

Also, I made the design decision to only use the bare minimum Member fields (which are email & password) and let everything else be in the Channel. So, if I the Member's location, I don't use the Member field's location field. Instead, I define a new Channel field, say, member_location. Is this a good approach?


texts:
Anyone run into a navigation issue when using Structure's first child redirect?

I have a Blog page that redirects to the latest blog post when I just want it to go to /blog.


texts: Cannot upload images to Expression Engine using assets

texts:
I'm getting the error :

Could not upload the file - server returned an unexpected response. Please check the server settings.

Now I've checked numerous posts already to try and solve it, I've checked double checked and triple checked the permissions. The assets path is seemingly correct as well. So I'm not too sure on what to do next.

Any help or guidance is appreciated.


texts: Redirect due to "malicious or dangerous" code

texts:
All my efforts at "view rendered" are met with
"Error: The link you are being redirected to contained some potentially malicious or dangerous code. We recommend you hit the back button and email [my email] to report the link that generated this message.

This is my exploratory effort upon installation.


texts:
I'd like to know how to remove automatic  wrapping tags that outputs in page.

{sous_titre}

This is what I wrote inside my template. As you can see, I already put myself a  tag with a class summary. But in the code source of my page, this is what I get

My text bla bla bla

I really don't understand that messed up right there. Tho, I just wanted to output what's inside my wygwam..anyway, so I did some research around forums and found out that I should go in WYGWAM advanced settings and set autoParagraph to No. I did that and I still get the same f%^&* results.

Can anyone fixed this once?

Thx


texts: table is marked as crashed and should be repaired

texts:
All of a sudden I cannot log into my control panel.  Does anyone have any advice as to where I could start to get this repaired?

A Database Error Occurred
Error Number: 145

Table './db-name/exp_cartthrob_cart' is marked as crashed and should be repaired

SELECT `cart` FROM (`exp_cartthrob_cart`) WHERE `id` = '3099' LIMIT 1

Filename: third_party/cartthrob/models/cart_model.php

Line Number: 28


texts: How to make ExpressionEngine site Responsive

texts:
Our EE is of v2.5.3 - Build Date: 20120911 and we are trying to make it Responsive. How we can do it?

Thanks.
Regards,
Roshan


texts: Expresso Store and PayPal TLS 1.2 Upgrade

texts:
I have a site running EE 2.8.1 with Expresso Store 2.3.1. The recent TLS 1.2 PayPal upgrade has caused PayPal Express payments to fail - giving the error - Sorry, there was an unexpected error communicating with the payment gateway.

Is this being caused by the Store code? I need to determine if the issue is software or server related. Any help will be much appreciated.


texts: Comparisons on formatted Solspace calendar dates?

texts:
I can't seem to be able to do any comparisons on the formatted event dates within the Solspace calendar. For example, in the following piece of code I'm trying to modify the mini-calendar example from the calendar docs (https://solspace.com/expressionengine/calendar/docs/month/) not to show links to any Mondays (because the company I work for is closed on Mondays):

    {if calendar:day_in_current_month} {!-- Only show day number for current month --}

        {if calendar:day_total_events && ('{calendar:day_date format="%D"}' != 'Mon')} {!-- Link to the day if there's events for it, if it's not a Monday --}

        {/if}

            {calendar:day_date format="%j"}

        {if calendar:day_total_events && ('{calendar:day_date format="%D"}' != 'Mon')}

        {/if}

    {if:else} {!-- Don't show day number if day is not in current month --}
        &nbsp;
    {/if}

The != 'Mon' comparison fails on all entries, including the ones occurring on Mondays.

Similarly, on another page I need to not show any events within a specific category during the winter months, as follows:

{if !( ( ('{category_name}' == 'X') || ('{category_name}' == 'Y') ) && ( ({calendar:month_date format='%n'} < 11) || ({calendar:month_date format='%n'} > 3) ) )}

        {category_name}

{/if}

This doesn't seem to work either -- i.e. all categories get displayed all the time.

Can anyone point out what I'm doing wrong in either or both of these cases?

Thanks!

Misha


texts: Scheduling / rotating images on a daily basis

texts:
I have an area on my homepage for an image. I would like this image to change on a daily basis.

I would like to queue up images so they are ready.

I know i could set a channel for these images and schedule them via expiring etc, but I was thinking there must be an easier way!

Any ideas?


texts: relating testimonials to multiple products with relationship field

texts:
I have two channels, the main channel is showing a product, and on that single product page, I want to show testimonials that are related to the product.  The second channel is a testimonials channel.  Each entry on the testimonial channel can be related to several "products". I have a relationship field in the testimonial channel called {related_products} where the user can associate the testimonial to several products.  Can someone help me figure this out? I am not sure if testimonial or products is the parentChannel.

here is the code on the "Product" page:

{exp:channel:entries channel="testimonials"}
   {related_products}
     {related_products:title}
   {/related_products}
{/exp:channel:entries}


texts: How to disable default captcha input on Expression Engine

texts:
I tried to implement the below extension on Expression Engine. It is loading fine on the registration page. But I can see a text box along with this recaptcha box. Can any one explain me how to remove the existing text box?

http://devot-ee.com/add-ons/recaptcha

Markup for the form is here: http://jsfiddle.net/Jj8yk/
Screenshot of the problem is here: https://unsee.cc/pozisute/


texts:
While using the EE 3.0.2, I got this trash inside a variables, when using for example {exp:channel:categories} or {exp:channel:category_heading}

Ex:

{exp:channel:category_heading}

 my free text here  {my_category_field}

{/exp:channel:category_heading}

But when I'm viewing my result, I see this:

 my free text here
category field value

There is a format field option in adding new field for categories, when I'm creating a field, I'm choosing no format at all, but when I'm going to edit the options of created field, I see the "XHTML" selected option there, which I can't change to something else. I think this trash "p" tag is going from here. What should I do to destroy this bug?


texts:
I just installed Freeform 4.0.12 and it seems to be completely broken I cant edit or create forms fields or notifications.
If I try to create a form there inst a submit button.

If I try to create a field or notification this text appears at the end on the cp page.
 "PHRhYmxlIGNsYXNzPSJtYWluVGFibGUgcGFkVGFibGUgZnJlZWZvcm1fdGFibGUgaGVhZGxlc3MiIHN0eWxlPSJ3aWR0aDoxMDAlOyI+Cjx0Ym9keT4KPHRyPgo8dGQ+PGxhYmVsIGZvcj0iYWxsb3dlZF91cGxvYWRfY291bnQiPkFsbG93ZWQgdXBsb2FkIGNvdW50PC9sYWJlbD48ZGl2IGNsYXNzPSJzdWJ0ZXh0Ij5NYXhpbXVtIHF1YW50aXR5IG9mIGZpbGVz"

Is there an alternative to freeform for EE2 ?


texts: Expression Engine Plugin for Changes Log

texts: Is there a way or a plugin that keeps a log of who changed what for pages and templates [and other things if possible]?


texts: Why do anchors in my links break after pagination?

texts:
I have this link in a channel entry list template:

<a href="{site_url}/{segment_1}/{url_title}#primary">

It works fine until page 2 and beyond. It's like ExpressionEngine's pagination is stripping off the #primary anchor. Anyone know what's going on here?


texts: Solspace color coding events by Category

texts:
I have a handful of events I need color coded.

Here is my setup: Solspace Calendar using the Full Calendar theme, and setup by using this guide.

Currently, everything works beautifully.

I am gathering events by using multiple .ics files under the Calendar Module section. Each .ics file will be all the events for that category. Example: publicevents.ics would post all the Public Events, and publicmeetings.ics would post all the Public Meetings, and so on.

So far I've created all needed categories under Admin >> Channel Administration >> Categories.

Here are my questions:

Can I color code these events by category on the front end with this set up?
How would I link each separate .ics file to a class so that it can display that color?

I'm assuming I can just use...

{if category_id="13"}
   class="category1"
{/if}

...once I can figure out how to link each separate .ics file with a class?

Any help is greatly appreciated and thank you for your time.


texts: How to create a Channel Field Group using API

texts:
I am creating an extension where on install I am creating a Channel and adding Fields to the Channel using the EE API.  I have found all the API functions to do this but the one thing I have not found in the API is how to create the Channel Field Group that the Fields get added to.

Anyone know where to find documentation on how to create the Channel Field Group?


texts: Template partials and caching via Stash and CE Cache

texts:
Wondering what the best method is for caching with Stash and or CE Cache when using Template Partials. Some questions come to mind:

Is it best to use CE Cache in the wrapper (this seems easiest?)
Should we be using CE Cache in each of the partials instead of the wrapper?
Should we be using Stash caching in the viewModels first?

Again, hope to see some best practices in regards to working with ExpressionEngine template partials approach for caching with Stash and or CE Cache.


texts: Blank index.php and admin.php on AWS elastic load balancer

texts:
This latest ee launch is going on xyz.com. I've been told:

  This DNS entry points at an AWS elastic load balancer with two linux
  instances behind it.

I'm not a server person. I don't know how it's set up. Phpinfo seems to have everything I need.

Both my home page (index.php) and admin.php are blank. Yes, I've set $debug = 1. Still blank.

I literally have no idea what to try next. I don't know if it's the files, the server, a path setting or ee itself.

Can someone please suggest something?

Thanks, Amanda

Here's something... if the servers are set up as xx.xx.x.254 (Web1), xx.xx.x.214 (Web2) and xx.xx.x.25 (DB1), phpinfo should still show a mysql section, no?


texts: Member Group permissions and editing comments — can't get it to work

texts:
I've set up my templates to add in-place comment editing and deletion. It's working great, and should be a useful feature.

However: Now that I'm ready to roll it out I'm attempting to test it with non-Super Admin users… and they can't see the Edit and Delete buttons.

Here's the code in question:

{if can_moderate_comment}
Edit
Delete
{/if}

(I've also tried if editable.)

The editing time limit is 0 (I tried setting it to something other than 0 without results).

It's obviously a permissions thing. but I can't find any combination of Member Group permissions that lets a Member see the Edit/Delete buttons on their own posts, but not on every other comment as well. I think I've tried just about every combination you can make in the Comment Administration section.


texts: Using Related Entries for Modular Content Entry

texts:
Does any one know if there's a way to use data from other entries for modular content entry?

Meaning a user is presented with a Matrix-like field and they add a row and select WYGWAM to begin typing. They get to a part of their article where they want to include data from another entry so they add another row and select a "Hotel" entry for example. Then they wish to continue writing and add another row and select WYGWAM and continue typing.

Then on the front-end the data is presented as:

WYGWAM Body Copy
Embed of data from a Hotel Entry
WYGWAM Body Copy

The thought behind this is that the data for the Hotel Entry no matter where it appears is controlled by an entry and when updated is updated across the site wherever it appears.


texts:
I'm using tag entries like in Docs

{exp:tag:entries
        inclusive="yes"
        orderby="entry_date"
        sort="asc"
        limit="10"
        paginate="bottom"
        websafe_separator="+"
    }
{tag_paginate}
        <div class="large-12 medium-12 columns center navigation-footer default_font">
            {tag_pagination_links}
        </div>
    {/tag_paginate}

But pagination links are generated without visual separator between words (its empty space, no +), the pagination actually works, but I have different links..

Am I missing some extra parameter to get pagination working. I'm using Stash partials and the tag_pagination is inside Switch case.

thanks


texts:
Upon checkout I would like to show the register member check box.

When the user clicks it I wish for a div to appear with the user name and password field.

I have working javascript, but when I insert it into the Store:Cart tag it does not work.  Any ideas on getting this to work or an easier method?

    function register_member(checkboxName,toggleLyr) {

        var lyr = document.getElementById(toggleLyr);
        var checkbox = document.getElementById(checkboxName);

        if (checkbox.checked == true) {
            lyr.style.display = 'block';
        }
        else {
            lyr.style.display = 'none';
        }
    }

</script>

 Register Member Account?

    Password
    {field:password}

    Confirm Password
    {field:password_confirm}

    Username
    {field:username}

    Screen Name
    {field:screen_name}


texts: If statement comparing two string ee variables won't return false

texts:
I have the following code in a template:

segment is: {segment_3}

category is: {category_url_title}

{if {segment_3} == {category_url_title}}
submenu goes here
{/if}

It gives the following output for categories that do not match the URL:

segment is: evaporated-apples
category is: frozen-apples
submenu goes here

If I compare to a string literal, e.g., {segment_3} == "bacon", the conditional returns false. Why does comparing two variables that contain different strings return true?


texts: WYGWAM taking styles from website css file?

texts:
Does anyone know why or have ever experienced WYGWAM taking styles from their css file? I recently moved EE from one server to another and on the new server the WYGWAM entry field is taking styles from my css. Can anyone offer any help to why this is happening and how to fix it? (See attached image for better explanation)

Thanks.
Stephen.


texts:
I have a fairly complicated sequence of queries that I need run in order as later queries rely on results from a previous query and I'm using PHP to help refine and save data. I need to pass in a PHP value into two of my EE queries but I can't get a result and I'm presuming it's a parse order issue. Can anyone advise me on how to fix this? I need to make the "category" parameter in the 2nd EE query dynamic, its currently hardcoded as 51.

    {!-- get category for approved skill --}
{exp:channel:entries
    channel="skills"
    status="open"
    entry_id="{segment_2}"
    limit="1"
    dynamic="no"
    disable="member_data|pagination"
}
    {categories}
        <?php $cats[] = "{category_id}"; ?>
    {/categories}

    <?php $cat = end($cats);?>

{/exp:channel:entries}

{!-- get total number of skills belonging to category --}
{exp:channel:entries
    channel="skills"
    status="open"
    category="51"
    dynamic="no"
    disable="member_data|pagination"
}

    <?php $skill_count = "{total_results}";?>

{/exp:channel:entries}


texts:
I have just updated to Playa 4.4.3. I read there was bug with Low Variables and Playa, and that it was supposed to be fixed on the new Playa release.

I can't get Playa to work at all.

I've tried many many things. This is my basic code:

{exp:low_variables:pair var="lv_sidebar" multiple="yes"}
  {title}
{/exp:low_variables:pair}


texts:
hoping someone can help!

The site I am working on is for a performing arts dance and music studio where users can register online for classes by semester or quarter (two avail at a time).

I'm having some trouble wrapping my head around how I could make inventory work for their dance and drama classes. Classes are offered and available to sign up for by Semester or Quarter. What I need is for the inventory to adjust automatically according to what the user signed up for. So if they sign up for the whole semester, I need to make sure the inventory under quarter 1 and 2 both get deducted. That way if someone signs up for just one of the quarters, the class won't get over filled when a full semester is registered for. Likewise, the inventory will need to get deducted from the full semester sign-up option if one of the quarters is registered for (so that specific quarter, and the whole semester needs to get reduced by 1). But the other quarter available will still have a spot. Does that make sense?

If I can't get this to work right, I'm afraid it might be too big of a pain for my client to manage all these classes and will be more work than necessary - also could be tough to manually track the inventory for all their classes. Any insight or ideas into this greatly appreciated!

FWIW, I'm not a php programer by any means, but can work with basic existing scripts. I also have an intermediate knowledge and understanding of jquery and javascript if that might need to get used as a solution, however I can't and don't write my own scripts.

Thanks in advance!
Valerie


texts: Unexpected results using .htaccess rewrites

texts:
I'm working a multilingual site in EE and I am optimizing the URL's for SEO reasons in multi languages as well.  The purpose is that people can visit the URL

http://www.domain.com/nl/contact/medewerkers
and also
http://www.domain.com/fr/contact/personnel

both pointing to the same templategroup 'medewerkers' (medewerkers is staff in English fyi)

Just to be complete: the switch of the language is triggered by the first segment in the URL and works fine

The idea was to have some entries in the .htaccess in the /fr subdir of the site to make the 'translation' of the URL to right template group.

So in this /fr/.htaccess I've specified

    RewriteRule ^contact/personnel$ contact/medewerkers

However for some reason this does not seem to work properly


texts:
I would like to know if there is a quality module for booking hotel rooms for EE 3?
I have found this for EE 2, but I need it on EE3?


texts: Restrict to category group in Solspace Super Search?

texts: Is there a way to restrict search to a group or groups of categories when using the {exp:super_search:results} tag? I see only category and category_indicator. I have an issue where the same category name/url indicator exists in two groups, but I only want to search for entries that are in one of the category groups and not the other.


texts: Recurring subscription for posting channel entries

texts:
Hope this is OK to ask here.

I have a relatively simple EE site set up, and I am soon looking to expand the sites scope by adding the option for business owners to be able to post an advert/description of their business to the site. The advert will be entered via a safecracker form on the front end, and will become an entry into the relevant channel.

For this I want to charge a yearly fee.

I am currently looking at the possible options.

I can either:

a. Charge a yearly subscription for the actual ad. Therefore anyone can add an advert, and pay on a "per ad" basis.

or

b. Charge the business a yearly fee for access to the "advertisers" member group.
Once they have paid for access and become an advertiser, allow them to access the safecracker forms to upload their ad.

At the moment I do not mind which scenario I take, but I am looking at the possible options for each.

As far as I am aware, the only two add-ons that will allow me to create this functionality are CartThrob (together with the new Subscriptions add-on) or Membrr.

Initially I thought Membrr, as it would allow me to implement option 1 (and 2 I think!), but I have heard a few reports that it is not the easiest to implement.

I have seen recommendations for CT, although the initial price is steep, and I think it is probably a bit overkill in terms of functionality for what I want to achieve.

I was wondering if anyone had any experience they can share, or suggest another way of adding this functionality.


texts: My client would like to sell gift certificates, in addition to having set prices they want the user to be able to input their own price. Is it possible to have a store item without a price?


texts:
I created a custom config file with my own global variable.

When I'm using the EE debugger, I have an output of my global variables:

So, I guess, they exists and I can access to them.

The problem is that when I'm using them in my files, I have no output, my CSS files are not loaded, well, there is nothing.

Code:

<link rel="stylesheet" href="{global:css_url}style.css" media="screen" />

Did I do something wrong ??


texts: EE Switch within Matrix tag pair not working

texts:
I'm struggling to get the native switch function of EE to work at all when it's used inside my matrix tag pair, It's simply ignoring it. Could anyone offer any advice? Thanks

Here's my gist: https://gist.github.com/anonymous/7689336

Thanks


texts: EE isn't parsing PHP code, even though it should be

texts:
I'm sending an Ajax request via jQuery to an EE template. This is the entire contents of the EE template:

{exp:channel:entries channel="tours" url_title="<?php echo $_POST["entry"]; ?>" limit="1" dynamic="no"}

Hello world. {title} - <?php echo $_POST["entry"]; ?>

{/exp:channel:entries}

PHP is Enabled for this template in the control panel, and the template has been fully synced to/from DB and filesystem.

When I simplify the file to just the following:

Entry title: <?php echo $_POST["entry"]; ?>

It outputs: Entry title: test-entry-name, as $_POST['entry'] is the URL title being sent via Ajax.

However I couldn't get it to return the {title} for the entry no matter what. When I enabled the Output Profiler, this is the query EE is running:

SELECT t.entry_id FROM exp_channel_titles AS t
                LEFT JOIN exp_channels ON t.channel_id = exp_channels.channel_id LEFT JOIN exp_members AS m ON m.member_id = t.author_id WHERE t.entry_id !='' AND t.site_id IN ('1')  AND t.entry_date < 1409069885  AND (t.expiration_date = 0 OR t.expiration_date > 1409069885) AND t.url_title = '<?php echo $_POST[' AND t.channel_id = '7' AND t.status = 'open' ORDER BY t.sticky desc, t.entry_date desc, t.entry_id desc LIMIT 0, 1

As you can see it's not parsing the PHP properly for some reason, but I can't work out why. Any ideas?

Thanks,

Jack


texts: Trigger save on WysiHat editor on publish page?

texts:
I'm writing an EE module where I need access to the text of the EE rich text field (a modified version of the WysiHat editor).

When the field is edited, I need to trigger the logic to save the value back to the hidden textarea.

Based on the api docs (http://ellislab.com/expressionengine/user-guide/development/cp_javascript/rte/wysihat_api.html), this should be very simple

$('.WysiHat-field').each(function(){
    editor = $(this).data('wysihat');
    editor.updateField();
});

But nothing I try will give me access to the editor instances.  The 'editor' variable comes back undefined every time.  Any ideas?

Thanks.


texts: Channel Field setup ideas for tabbed content

texts:
Sites design uses Bootstrap/jQuery tabs in content area.

Content inside the tabs is set up as Grid (image file, description, link etc).

Any ideas how to make creating/adding tabs dynamic?

Grid inside Grid would be nice :)
Maybe plaintext field in each Grid row with tab name + some clever templating to group rows with same “tab name”? Not so elegant..

Take a look http://ford.co.uk/Cars/Ka/Design#primaryTabs

Similar tabbed content as this page (Inerior/Wheels/etc).

All content is entered in the Grid filetype (image file, description, link etc).
I could define 3 separate Channel Fields with Grid filetype, one for Tab1 content, second for Tab2 content, third for Tab3 content. But problem is, I don’t know (its up to editors choice) how many Tabs there will be. Also I don’t want to clutter content editors view with unnecessary fields.

As i said, it would be easy with nested Grid (for each tab a row, whitch then contains content)..

Is there some clever way to achieve this?


texts:
At the moment I'm strugling with the pages module and the page uri. I have the following page created with the pages module:

members
 |- members/calendar
 |- members/safety

When I visit the URL www.mypage.com/members I will see the correct page.

When I visit the URL www.mypage.com/members/calendar, I will see the correct page.

But when I visit the URL www.mypage.com/members/calendar/2013-12, the /members page is shown.

But I need the calendar page and the last segment is a kind of variable. I use the Low Events calandar on the calandar page. Strict URL is "off".

If I put a question mark in the url www.mypage.com/members/calendar/?2013-12 the calandar is shown, but now there is no segment_3 that I can use in selecting the month in the low events calendar.

How do I fix this issue?


texts: Duplicating existing site to create a testing environment

texts:
Probably this question already answered somewhere, but i was unable to find it out. I have a Expression Engine v2.1.0 and i want to duplicate site on another hosting.

Can i simply move it to another hosting through FTP, copy a database, replace path and start working on it?
The main question would license key be lost on original site (or whatever license EE have)? Is there are any problems with license when creating duplicate on another hosting?


texts:
Software

EE: v2.10.1

Expresso Store: v2.5.1

Scenario

Cart contains 1 product priced at 1600 (tax included in price)

Shipping is free, that is 0

Tax is 25%

Store outputs

{order_total} = 1600

So far so good.

{tax_percent} = 25%

This too, is correct, but then:

{order_tax} = 320

Correct me if I'm wrong, but 25% of 1600 = 400. I don't understand why Store outputs 320 (ie calculates tax using 20% instead of 25%, which is 320).

I've since checked for this issue on other client sites with the same setup, and indeed there too, this is happening.. which is kind of a problem.

Can anybody advice? It would be much appreciated! Thanks in advance!


texts: Is it possible to prevent duplicate entries from being entered in?  Ttrying to see how to prevent a duplicate from the CP.  Any idea?


texts: Auto generate JPG thumbnails from a PDF in ExpressionEngine?

texts:
Just wondering if it's possible to automatically create a .jpg file from a .pdf file when uploading.

I've been seeing a bunch ImageMagick suggestions, but my brain is too tired to grasp it tonight. I guess I'm wondering if there is any other solutions to get a scaled .jpg from a .pdf on upload.


texts:
When running MSM add-on, how can I manage the file upload folders etc, via a config.php file?

Ideally I would want to use a hook to do it, but it doesn't seem to work.

Normally I would do this:

  $config['upload_preferences'] = array(
        1 => array(
            'name'        => 'Images',
            'server_path' => $uploads_path . "/images/",
            'url'         => $uploads_url . "/images/"
        ),
        2 => array(
            'name'        => 'Files',
            'server_path' => $uploads_path . "/files/",
            'url'         => $uploads_url . "/files/"
        ),
        3 => array(
            'name'        => 'Icons',
            'server_path' => $uploads_path . "/icons/",
            'url'         => $uploads_url . "/icons/"
        )
    );


texts: MSM (multi-site manager) site2 instantly redirecting to site 1

texts:
Hoping someone can help ... I have installed the latest Multi-site manager for EE2+, set up a site and updated admin.php & index.php files as stated in the instructions.

However, when I go to visit http://site2.com.au I get instantly redirected to http://site1.com.au and I can't work out why?

Full details of install are outlined below:

Installed MSN, uploaded files (3) to appropriate folders in site1. Activated/turned on MSN.

Changed sites from site1 to site2 via top right site drop-down. Updated root url to site2.com.au and created default template with temporary text in design>templates etc.

After adding site2 as a stand alone site (reseller hosting account) without success & speaking in detail with my host e2, they had this to say:

  "It seems that domain2 account cannot access the other account's path
  since they are separate cpanel accounts. I would suggest you to try
  creating domain2 as addon domain under the domain1 for creating
  multisite"

So I deleted the stand alone hosted account for site2 and added it as an 'Add on domain' via site1 cPanel.

This created the following folder structure:

/home/
> short_name/
>> public_html/
--- system
--- themes
--- admin.php
--- index.php
>>> site2.com.au
---- admin.php
---- index.php

By adding site2 as an add on domain it created a folder in the root directory of site1.

I copied index.php & admin.php from site1 root and edited them with the following info:

index.php (full server path)

$system_path = '/home/short_name/public_html/system/';

Also tried (relative?)

$system_path = '../system/';

And

$assign_to_config['site_name']  = 'site_2';
$assign_to_config['cp_url'] = 'http://site2.com.au/admin.php';
$assign_to_config['site_url'] = 'http://site2.com.au';

admin.php is pretty much the same apart from the site_url is not there.

However, when trying to access http://site2.com.au & /admin.php I get instantly redirected to http://site1.com.au & /admin.php

A very odd thing is if I visit http://site1.com.au/site2.com.au I can see the temporary text I added for site2 default template so it would appear that MSM is working but not redirecting/displaying the URL correctly?

I completed all the steps till the end of "Setup Domains and Sub-domains" but didn't go any further than a quick read over as the rest of the steps seemed to refer to shared channels & files etc.

I am hoping it is a smile fix & appreciate any help anyone can offer.

Thanks,
Dan


texts: Channel Form with Grid and File - "There was a problem with one or more Grid fields"

texts:
I have a standard channel form in a template with a number of fields that work fine.

I'm using a grid field that contains one file fieldtype.

No matter what I try I get "There was a problem with one or more Grid fields". I've checked upload location permissions, posting permissions and anything else that's a common problem. Console isn't showing any errors or missing assets and template and php debugging similarly.

Any advice would be greatly appreciated!

PS. The grid and file fields are working fine from the admin interface.


texts: Trouble with Low Events / Low Nice Date / Mo' Variables

texts:
I'm trying to make a URL that will (eventually) print out JSON for jquery FullCalendar to use. I'm using Low Events to do this, but I'm having some trouble with getting the start and end dates from the url..

The url itself is formatted like this /ajax/events?start=1384869883&end=1385042714

The code I have on that template is this:

{exp:low_events:entries channel="events" date_from="{exp:low_nice_date date="{get:start}" format="%Y-%m-%d"}" date_to="{exp:low_nice_date date="{get:end}" format="%Y-%m-%d"}" unit="custom"}
    {entry_id}
{/exp:low_events:entries}

When turning on debugging, I'm getting this error:

Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string ({exp:low_nice_date date=) at position 0 ({): Unexpected character' in /home/user/public_html/example.com/system/expressionengine/third_party/low_events/libraries/Low_date.php on line 448 Exception: DateTime::__construct(): Failed to parse time string ({exp:low_nice_date date=) at position 0 ({): Unexpected character in /home/user/public_html/example.com/system/expressionengine/third_party/low_events/libraries/Low_date.php on line 448 Call Stack: 0.0003 693672 1. {main}() /home/user/public_html/example.com/index.php:0 0.0008 777272 2. require_once('/home/user/public_html/example.com/system/codeigniter/system/core/CodeIgniter.php') /home/user/public_html/example.com/index.php:188 0.2111 16059624 3. call_user_func_array() /home/user/public_html/example.com/system/codeigniter/system/core/CodeIgniter.php:319 0.2111 16059760 4. EE->index() /home/user/public_html/example.com/system/codeigniter/system/core/CodeIgniter.php:0 0.2111 16059840 5. EE_Core->generate_page() /home/user/public_html/example.com/system/expressionengine/controllers/ee.php:68 0.2201 17906008 6. EE_Template->run_template_engine() /home/user/public_html/example.com/system/expressionengine/libraries/Core.php:693 0.2209 17999968 7. EE_Template->fetch_and_parse() /home/user/public_html/example.com/system/expressionengine/libraries/Template.php:184 0.2608 19299776 8. EE_Template->parse() /home/user/public_html/example.com/system/expressionengine/libraries/Template.php:236 0.2627 19306040 9. EE_Template->tags() /home/user/public_html/example.com/system/expressionengine/libraries/Template.php:462 0.3258 19327744 10. EE_Template->process_tags() /home/user/public_html/example.com/system/expressionengine/libraries/Template.php:928 0.3605 25814976 11. Low_events->entries() /home/user/public_html/example.com/system/expressionengine/libraries/Template.php:1308 0.3605 25815056 12. Low_events->_init_date() /home/user/public_html/example.com/system/expressionengine/third_party/low_events/mod.low_events.php:174 0.3606 25815320 13. Low_date->init() /home/user/public_html/example.com/system/expressionengine/third_party/low_events/mod.low_events.php:1487 0.3606 25815712 14. Low_date->_from_string() /home/user/public_html/example.com/system/expressionengine/third_party/low_events/libraries/Low_date.php:114 0.3606 25816192 15. DateTime->__construct() /home/user/public_html/example.com/system/expressionengine/third_party/low_events/libraries/Low_date.php:448

When doing a var_dump($date_from) inside of the Low_events::_init_date() method, it prints out string(24) "{exp:low_nice_date date=".

Any suggestions on how to fix this?


texts: How do I assign custom global variables from my config file?

texts:
I'm currently developing custom config files.

Some of my files are deeply located in my architecture and I want to use some of my variables in the config as specific tag.

Example :

{site_url}assets/css/style.css

like that :

{css_url}style.css

Is there a way to do it ?


texts: Customise Meta Titles in CP (Admin) Pages

texts:
So I've been customising the admin area with styling and low key branding - but cannot find any way of editing the meta titles, so am currently stuck with Login | ExpressionEngine etc in the <title></title> of every admin page. Does anyone know how to change this? Ideally I'd like it to say Login | NameOfMySite etc, so the client feels happy.

Any help appreciated, I've looked all over, with no luck.


texts: Custom Field Type - Data is not being saved

texts:
I'm creating a custom field type. But the data isn't being saved to the database. There are several values that are being combined into a string, divided by a pipe character.

I've checked the save() function, and it returns the string that I want to have saved in the database. But when I check the database, the field is empty, or has only one character.

Example string: http://s3-eu-west-1.amazonaws.com/xyz/xyz/filename.jpg|55|170|541|541|1:1|260|260

But actually, it doesn't matter what string it is. It never gets saved. Or in some cases only the first letter.

What could I be doing wrong?

EDIT: the save function itself

function save($data)
    {
        $content = FALSE;
        $custom = array();

        foreach($this->custom_fields as $key)
        {
            $val = ee()->input->post($key.'_field_id_'.$this->field_id);
            $custom[] = $val;

            if (strlen($val)>0)
            {
                $content = TRUE;
            }
        }

        $toReturn = "";

        if ($content)
        {
            $toReturn = utf8_encode(implode('|', $custom));
        }

        return $toReturn;

    }


texts: Alternative ways to pass embed variables

texts: Is there an alternate way to pass embed variables other than passing them as attributes?


texts: Activate Active Class on Menu When On Current Page

texts:
The code below shows all the pages in that channel active. I just want to show the page the users is on. As it is set up now all the items in the menu are .active. What am I doing wrong.

{exp:channel:entries channel="{segment_1}" dynamic="no"}

{title}

{/exp:channel:entries}


texts:
I'm running on my own "multi environment config" bootstrap file (https://github.com/madebymayo/ExpressionEngine-Environment-Config), but i've never used it with a site running on MSM (Multi Site Manager)

At first I ran in to the problem with the whole site not showing up, and giving me a 500 error. But I realised I hadn't added this:

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

So after adding this in, the site started to show this:

Site Error: Unable to Load Site Preferences; No Preferences Found

I've double checked my admin.php and index.php files are in each of my MSM folders.

Am I missing some sort of config hook to make my own config file work with a MSM site?

Any help would be great.


texts: Trying to combine entries from "news" and "events" channels

texts:
I have a big scroller in the middle of my front page that shows the latest 3 news entries whose "Front Page Feature" field is set to "Yes". Somewhere else, smaller, I display the next upcoming event whose "Front Page Feature" is set to "Yes". I'd like to combine the 3 newest added news -and- events into that big scroller.

The code to populate the scroller is:

{exp:channel:entries channel="news" search:front_page_feature="Yes" dynamic="no" limit="3" orderby="date" sort="desc"}

I wish I could set channel="news|events", but they use different fieldsets. So I wish I could do channel="news|events" and

search:front_page_feature="Yes"
search:events_front_page_feature="Yes"

But "AND" is only allowed with multiple search terms, no OR. I don't know if there will be an easy way to do this.

Any ideas?


texts: Different page direct based on form field upon submitting

texts:
I’m looking for a pointer in the right direction to research this because my GoogleFu just isn’t cutting it.
I’m on EE2 (hopefully to be upgraded to 5 soon…), with Freeform, and I have a form that, based on the value of one of the fields, I want to send the user to one of two different pages after they submit the form.
The form is a “do you qualify” form for a service, I want to check a field in the form to determine eligability, if eligable they are sent to one page, if not they are sent to another
I’m very new to EE, and web design in general. But the boss gets what the boss asks for!


texts:
I am using the built-in mailing list activation template on an EE website I am working on and would like to include an unsubscribe link at the bottom of the email.

I have tried adding the tag {unsubscribe_url} to the bottom, but it does not seem that this tag is being parsed correctly.

Is there another way of achieving this?

Here is a snippet of my code:

You are receiving this message because you have signed up to receive the newsletter. To unsubscribe, please click here


texts: Specify Order Status in Exp:resso Store Checkout Process

texts:
The Exp:resso Store plugin by default assigns all new orders to the New status. This in turn triggers the New status email confirmation to be sent out.

The problem I'm dealing with is that I have a few orders that need to completely bypass the New status. Those orders are submitted using a separate form from the rest of the orders, and as such, I'd like to be able to give them a separate Status so that the default New order email confirmation never gets sent out for them.

Any ideas on how I might accomplish this? Thanks for any help you can offer!


texts: How can I display Low Search form based on selected parameter?

texts:
I'm quite new to ee3/Low Search and I'm wondering if someone would mind helping?

I'm attempting to give a site a simple property search.

On my site index page I have a select with property type options(categories)like House, Apartment, Land etc. inside the Low form tag.

If the "House" category is selected and posted to the results page I would like a form containing only House-specific fields to be displayed and if the "Land" category is posted I would like to display a form containing only Land-specific fields.

What would be the best way for me to do this?

Thanks


texts: Order confirmation to Admin not sent on two products

texts:
Strangely, on two specific products only, order confirmation emails are not being sent to the administrators upon a successful order.  I can not find any settings to control whether a order confirmation email is to be sent on a per-product basis.  I've checked spam filters.

I'm using EE 2.7.2 and Cartthrob 2.5.

Thanks for any help.

Bruce


texts: Moving channel fields to different group?

texts:
I am using the Brilliant Retail e-commerce plugin and currently I have a Channel Group, "Bikes," with 8 channel fields associated with it. I would like to move all those channel fields to a different group, "[BrilliantRetail]," is this possible?

I know I can edit Channel Group assignments and tell the BrilliantRetail group to use the Bikes channel fields, but I already have some custom channel fields in the BrilliantRetail group as well so I would like to just merge the Bikes channel fields with the BrilliantRetail group.

UPDATE I edited the database and changed the channel fields group_id to the one corresponding to BrilliantRetail group and that worked. However, the channel field data did not transfer with it. Is there a way for me to re-associate the channel field data as well?

Thanks in advance!


texts:
I have a page that uses Magnific Popup to show popups (http://dimsemenov.com/plugins/magnific-popup/documentation.html). This popup it being loaded with the following peace of Javascript:

$('.popoup-team').magnificPopup({
    type: 'ajax'
});

There an overview page (which is the page that you can click the popup) and when clicking the popup, another page is loaded with ajax, which only contains the popup.

    {exp:channel:entries
    channel="team"
    dynamic="no"

}

                {exp:ce_img:single
                    src="{team_afbeelding}"
                    class="img-responsive"
                    width="279"
                    height="279"
                    crop="yes"
                }

{title}

{team_functie}

                {team_beschrijving}

{/exp:channel:entries}

The problem is that the id of the entry that I'm trying to show in the popup is established in url of the overview page, and I'm unable to reach that id in the detail page that contains the popup.

So the URLS are:
Overview page URL: domain.com/team/25
Detail page URL: domain.com/team/detail

Does anybody know a solution for this?


texts: Embedded template channel entries tag inexplicably breaking in some host templates

texts:
I've got an embedded template called _sidebar that contains (surprise surprise) the site's sidebar content. It contains a heading and a channel:entries tag, all wrapped in a container div. In some templates (eg. the index template of the 'news' template group) the C:E tag works as expected. However, when I embed _sidebar into the news/view template *and access a particular news article via a {url_title_path} link* the C:E tag fails to generate any content.

However, I can see that _sidebar is getting embedded, because the heading and the container div appear in the sidebar region as expected. It's just that none of the content that should be called in by the C:E tag is there.

Both the 'news' and 'news/view' host templates have identical structures. There are no nested C:E tags either in the host template or in the embedded template. If I go to the URL domain.com/news/view (without selecting a specific article) then the sidebar displays correctly. It is only when the same template is used for a specific article (e.g.. domain.com/news/view/my-article-title that the glitch occurs.

BTW, I have no conditionals relating to segment_3 in my templates. There are some conditionals acting on the value of segment_1 in the _sidebar template, but if they were being triggered then the heading and container div would be removed from the template also.

I'm a bit stumped. Without getting into the whole template code (yet) does anyone have any immediate thoughts, or has anyone run across this phenomena?


texts: aws s3 upload for freeform pro upload field type

texts:
i started working on a simple extension that hooks to freeform's pro "freeform_module_insert_begin" hook.

basically the purpose of it is to check if the form has a "file upload" field(s) and if yes, then upload those files to S3 server and update the links that get submitted to database.

i was wondering what would be the easiest way to check if the form has upload file field(s)

cheers,
Mark


texts: Basic conditional adding a full second to load time

texts:
I have the following code in my blog index template:

<section class="blog-listing">
    {if "{freebie_2}" == ""}
        {exp:channel:entries
            channel="blog"
            disable="categories custom_fields member_data pagination"
            dynamic="no"
            limit='{exp:low_variables:parse var="articles_per_page"}'
            parse="inward"
            status='{exp:stash:get
                name="preview_status"
                file="yes"
                parse_tags="yes"
                parse_conditionals="yes"
            }'
        }
            {article_snippet}
        {/exp:channel:entries}
    {/if}
    {if "{freebie_2}" == "column"}
        {exp:channel:entries
            channel="blog"
            category="{exp:freebie:category_id segment='3'}"
            dynamic="no"
            limit='{exp:low_variables:parse var="articles_per_page"}'
            status='{exp:stash:get
                name="preview_status"
                file="yes"
                parse_tags="yes"
                parse_conditionals="yes"
            }'
            parse="inward"
        }
            {article_snippet}
        {/exp:channel:entries}
    {/if}
</section>

Currently this page is taking on average 2.97 seconds to load. I started removing pieces here and there to see if I could get to the bottom of what's slowing it down, and I just may have. It seems it may actually be the basic {if} statements!

If I remove the second one completely the page load time averages out to 1.58 seconds. I thought it might be Freebie, so I changed it to {if "columns" == "column"} and it took just as long.

Is this a known issue? What might be the root cause of this? I'm on blazing fast servers and this shouldn't be happening.

Suggestions?


texts:
Hej !

Free Form

I know how make the notification, but how do I do it when I wanna send to the person who has wrote the from and I like to send.

like this
Dear {first_name} {last_name}.

Thank you for the email ({subject}).

We take the time to read it and then to connect you as soon as possible.

Best Regards

the admin notification goes okey


texts: Transcribe + Wygwam + Structure links not working

texts:
When adding Structure Links to a wygwam field on a Transcribe entry that's not the default language, they are being rendered like this:

More info:

I have a Transcribe site with Structure and Wygwam. Each language has it's own domain (example.com, example.de etc) When I add a Structure Link into Wygwam for the default language (eg example.com) by clicking Link Icon > Link Style: Structure > then selecting a page, it puts the link in and works fine (eg http://example.com/news/the_story). However if I add an entry for the non-default language (eg example.de) and then add a Structure Link into Wygwam the URL appears fine in wygwam but when it appears on the site it shows  .

After investigation it looks like the page id is referencing the entry id for the default language and not the current language the entry is for. The list of pages that are shown in the Structure Link dropdown is only ever for the default language and not the current language.

I think what's happening is wygwam is looking for the URL based on the default language and then converting that the {page_XX} variable but it's getting it wrong because it's ignoring the domain name and choosing the page id that's on the default language. Is there any way to fix this?

EE v2.11.2, Transcribe v1.7.1, Structure v3.3.19, Wygwam v3.3.3


texts: Expresso Store not adding products & no exp_store_carts table

texts:
I'm running Store 2.5.1 and EE 2.10.1. (Building locally.)

The {exp:store:cart} isn't displaying anything and the system doesn't seem to be adding products to the cart. The {exp:store:checkout} also turns up blank.

Also, there's no exp_store_carts table in my DB.

Not sure what could be causing this or how to fix.


texts: Custom module datasource results - Uncaught ReferenceError: name is not defined

texts:
In a custom module we are using the Table class with datasource to retrieve the results of some database entries, as per Expression Engine documentation. We have some filters in our module to filter the results.

This works for the initial view, and when filtering that actually gets some results. but when there are no results we have a console error:

Uncaught ReferenceError: name is not defined

where name refers to the first column in our results. I am confiused because we don't even set the columns unless some $data exists.

So I am not sure how to handle no_results when using a datasource filter. Can anyone help? Here is our MCP code for the data.

public function index()
{
    $this->EE->view->cp_page_title =  lang('module_name');

    // Get the submitted search
    $filters = array();
    $filters['search'] = $this->EE->input->post('search');
    $filters['region'] = $this->EE->input->post('region');

    // Set the paramaters
    $custom_params = array(
        'filters' => $filters,
        'num_rows' => 20
    );

    // Set some defaults for the data source
    $default_state = array(
        'sort' => array('id' => 'desc')
    );

    // Get the data from the datasource
    $data = $this->EE->table->datasource('_datasource', $default_state, $custom_params);

    // Create some URLs for the view
    $data['form_action'] = $this->EE->_form_base.AMP.'';
    $data['base_href'] = $this->EE->_base_url;

    // Load view with data
    return $this->EE->load->view('admin/index', $data, TRUE);
}

function _datasource($default_state, $custom_params)
{
    // Get All Data
    $data = $this->EE->data_model->getAll($custom_params['filters']);

    if($data)
    {
        // Set columns
        $columns = array(
            'name'  => array('header' => lang('name')),
            'email'  => array('header' => lang('email')),
            'telephone'  => array('header' => lang('telephone')),
        );
        $this->EE->table->set_columns($columns);

        $offset = $default_state['offset'];
        $this->sort = $default_state['sort'];

        usort($data, array($this, '_sort_rows'));

        return array(
            'rows' => array_slice($data, $offset, $custom_params['num_rows']),
            'no_results' => '
'.lang('no_search_results').'
',
            'pagination' => array(
                'per_page'   => $custom_params['num_rows'],
                'total_rows' => count($data),
            ),
            'search' => $custom_params['filters']['search']
        );
    }

}

The Javascript used to initiate the filter is:

if( $(".searchIndicator").length > 0 )
{
    var indicator = $(".searchIndicator");

    $(".mainTable")
    .table("add_filter", $("#filter"))
    .bind("tableload", function() {
        indicator.css("visibility", "");
    })
    .bind("tableupdate", function() {
        indicator.css("visibility", "hidden");
    });
}


texts: Inline Ajax validation against a SOAP service on button click BEFORE clicking the form submit

texts:
I'm writing a custom module for EE which integrates with a SOAP service. I've built my own custom forms & actions and have no problem submitting the data via Ajax.

One of the forms is quite long and I now find myself in a situation where the client wants me to add a "Validate Address" button on the form, that the user would click to submit their address for validation (against the SOAP service), while they continue to fill out the rest of the form.

So the idea is that the "Validate Address" will submit only the address data to an action, which will call the service and then return a result letting the user know that they've entered a valid address or advising them to change something or whatever.

Once the user has filled out all the fields on the form they'll hit the submit button at the bottom and if the address has been validated, yay, the form submits.

My problem is that I can't put a form inside a form. So I figured I'd put the address related stuff in a div with a ID and the validate button click I'd submit the data.

The code looks something like this:


texts: Select list of existing content pages using Low Variables/Structure?

texts:
When entering content, is there a way to mistake-proof entering links to other url-titles on the site without entering the full URL?

I am setting up an EE website using Structure and Low Variables. Structure is managing the "page" content in a channel called "Pages," and there are several other channels for various dynamic content listings. I am using Low Variables to manage snippets of code, various settings, and bits of content such as company contact information.

As part of the home page, I have several "featured" sections with similar formatting. Each has the option for a title, image, link, and blurb of text. The client would like to be able to select from any content on the site (as well as presumably content NOT on the site). I setup a  channel called "Features" with the following fields: title (Text Input),feature_url (Text Input -- default text formatting "None"), feature_image (File), and feature_body (Textarea).

The client would select which entries from the "Features" channel to display on the Home page using a select list in Low Variables.

I setup the Home page template as follows:

    {exp:channel:entries channel="Features" dynamic="no" limit="3" disable="{lv_shortcuts_disable_default}"}

            {feature_image}{if feature_url != ""}{/if}{if feature_url != ""}{/if}{/feature_image}

{if feature_url != ""}{/if}{title}{if feature_url != ""}{/if}

{feature_body}

    {/exp:channel:entries}

When entering content, I have tried typing in the url_title of another page on the site, but the template wraps the url_title in

 tags when rendering. (Example: entering "/index.php/our-work" in the entry field yields http://localhost:8080/mysite/
/index.php/our-work
.) Entering a full URL which includes "http://" works as expected. Also, if the url_title of the other entry changes this entry will have a broken link.

So I guess I have two problems:

First, I would like an easy way for my client to select from
existing content "pages" in a way that is straightforward and
mistake-proofed if the url_title of a page changes. Ideally, this would be a select list. (If they want to enter a link to an external page, I could have a separate variable for that.)
Second, I need those relative links to display in the template correctly without being wrapped in paragraph tags.

Does anyone have any experience with doing something like this? Any advice to help me?


texts: Using Stash lists with Channel Videos, getting double result rows

texts:
I'm using EE 2.7.3, Channel Videos 3.1.5, and Stash 2.4.9.

I am trying to stash all the data for my Page channel, which has a Channel Videos field. So at the top of my template, I have this code ([hopefully] irrelevant stuff omitted):

{exp:stash:set_list name="page_content" parse_tags="yes" parse_depth="2"}
    {exp:channel:entries channel="page" limit="1" status="not closed" require_entry="yes"}
        {stash:page_title}{title}{/stash:page_title}
        {exp:stash:set_list:nested name="header_videos" context="{entry_id}" parse_tags="yes"}
            {exp:channel_videos:videos entry_id="{entry_id}"}
                {stash:video_url}{video:url}{/stash:video_url}
                {stash:video_title}{video:title}{/stash:video_title}
                {stash:video_service}{video:service}{/stash:video_service}
                {stash:video_title}{video:title}{/stash:video_title}
                {stash:video_description}{video:description}{/stash:video_description}
                {stash:video_url}{video:url}{/stash:video_url}
                {stash:video_url_hd}{video:url_hd}{/stash:video_url_hd}
                {stash:video_img_url}{video:img_url}{/stash:video_img_url}
                {stash:video_img_url_hd}{video:img_url_hd}{/stash:video_img_url_hd}
                {stash:video_web_url}{video:web_url}{/stash:video_web_url}
            {/exp:channel_videos:videos}
        {/exp:stash:set_list:nested}
    {/exp:channel:entries}
{/exp:stash:set_list}

And then, down below, I'm trying to pull that info back up, using this code:

{exp:stash:get_list name="page_content"}
    {exp:stash:get_list:nested name="header_videos" context="{page_entry_id}" prefix="page_video"}

Count: {page_video:count}

{page_video:video_title} {page_video:count}

        Service: {page_video:video_service}

        Desc: {page_video:video_description}

        URL: {page_video:video_url}

        URL HD: {page_video:video_url_hd}

        IMG URL: {page_video:video_img_url}

        IMG URL HD: {page_video:video_img_url_hd}

        Web URL: {page_video:video_web_url}

        Embed Code: {page_video:video_embed_code}

        Embed Code HD: {page_video:video_embed_code_hd}

    {/exp:stash:get_list:nested}
{/exp:stash:get_list}

What's happening is, when I have 2 videos in that field, my code outputs 4 result rows. When I have 3 videos, the get_list outputs 6 results. And the weird part is, the first from each pair  has the first three fields correctly populated, but the rest are unparsed tags. And the 2nd from each pair has all the rest, including the 3rd field... Notice in the screenshot below, the URL field is the same on the 1st and 2nd results, the 3rd and 4th results, and the 5th and 6th results.

Like, so:

Does anyone know what I'm doing wrong? Stash is AWESOME, but I sometimes have trouble wrapping my mind around how it works. Thanks for your time!


texts: Solspace Freeform Composer Template: Displaying Form ID

texts:
I have a Solspace Freeform Pro form built with Freeform Composer.  I'm displaying this form within a channel entry using the Freeform Form fieldtype.  This generates the full form according to the Composer template specified.  Is there any way to display the form's name or ID from within the  tag (or somewhere else)?

The current output looks something like <form action="http://[my-url-here]/?ACT=34" accept-charset="utf-8" method="post">

I would like to target certain Composer forms via Javascript and need a way to identify them.

Thanks,
Brady


texts:
I'm trying to setup GeoFinder and I keep getting this error:

  Latitude field not found, please make sure you have it entered
  correctly in the latitude parameter.

I thought it would be my segments, but my url is /site/results2/10030/1/

and the code from the results page is:

    {exp:geofinder:location_results channel="personal_trainer_directory" status="open" limit="10" geoquery="{segment_3}" radius="{segment_4}" latitude="{latitude}" longitude="{longitude}" distance_mode="miles" disable="
"}

{if count == 1}

You searched for personal trainers within {radius} {distance_mode} of {geoquery}, {total_results} personal trainers were found.

{/if}

{title}
{trainer_address}
{trainer_city}, {trainer_state} {trainer_zip}	{trainer_url}	{distance} {distance_mode}

{if count == total_results}

{/if}
{if no_results}

We found no personal trainers based on your search.

{/if}
{/exp:geofinder:location_results}

any ideas?


texts:
I have one channel for workshops and one for events. each workshop can have multiple events but each event can only belong to one workshop. workshops are rarely added/edited. but new events are added frequently.

so my set-up is as follows:

workshops
    title                           Text Input
    description                     Text Area

events
    title                           Text Input
    date-and-time                   Date
    belongs-to-workshop             Relationship (to workshops, single)

now I have a template where I want to show all workshops and under each workshop I want to list related events.
one easy way (so far) seems to be another field in the workshops channel: some field like "related events" (a mulitple-relationship pointing to events channel). but that means the admin would have to edit the workshop entry each time they add a new event. I'd like to make it easy on the user and just let them add events and link the event to a workshop by using the "belongs-to-workshop" drop down.

question: how could I access the events in my 'workshops' template which looks like this:

{exp:channel:entries channel="workshops"}
<div class="workshop">
    {title}, {description}
    Related Events: {???}
</div>
{/exp:channel:entries}

does the "workshop" entry not know which events are related? I suppose that's what the old "reverse related entries" tag was for?

any help appreciated.


texts: PHP conditional inside EE conditional - parse order problem

texts:
This is a bit of a hard one to explain, but I will do my best. If you need any clarification just ask :)

I have a template that needs to display a list of 3 upcoming events, listed by date ascending (nearest first, farthest away last). I have this working with the following code:

{exp:channel:entries channel="news-article" dynamic="no" order_by="entry_date" sort="asc" category="1" sticky="no" show_future_entries="yes"}
    {if '{entry_date format="%Y%m%d"}' >= '{current_time format="%Y%m%d"}'}

                        {title}
                        {entry_date {long-date}}

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

However, this shows all future events, not just the closest 3. I have tried adding limit="3" to the channel entries tag but as there are past events, the conditional is never true so nothing shows at all.

So I tried adding a PHP counter to it like so:

<?php $counter = 0; ?>
{exp:channel:entries channel="news-article" dynamic="no" order_by="entry_date" sort="asc" category="1" sticky="no" show_future_entries="yes"}
    {if '{entry_date format="%Y%m%d"}' >= '{current_time format="%Y%m%d"}'}
        <?php if ($counter<3): ?>

                        {title}
                        {entry_date {long-date}}

            <?php $counter ++;
        endif; ?>
    {/if}
{/exp:channel:entries}

Parsing PHP on input still displays all results today or in the future, and parsing PHP on output displays nothing. Does anybody know how to get something like this working?

Thanks in advance!


texts: Can't login to control panel on EE 1.6.8 site

texts: Very old client we did a pro-bono site for tracked me down and is having problems logging into  the control panel of their EE 1.6.8 site. When the login is filled out and submitted it just takes you back to the login screen. I've seen this before and usually just clearing the cache works, but it's not working in multiple browsers even after clearing the cache. Any ideas?


texts: Why does the control panel require a query string for log-in?

texts:
On multiple ExpressionEngine installs I have noticed that there is a problem logging in when the following query string parameters are omitted:

http://www.url.net/admin.php?s=0&D=cp&C=login

With just admin.php alone (or its renamed aequivalent), I get the following error:

  Unable to load your default controller. Please make sure the
  controller specified in your Routes.php file is valid.

The EE installations affected are set up according to the user guide (but have index.php removed, if that may contribute to the problem).

Ideas?


texts:
There are some great options to do prev/next entries (Advanced Prev/Next, Nearby Entries, etc.) but I could not find an add-on or an EE-native way to do a "Go to Next Category" and/or "Go to Previous Category".

Am I missing something obvious?


texts:
Trying to use UPDATER to update my EE from 2.7 to 2.9

Test settings and everything passes but during the update I get the error that it cannot create the back up directory.FTP: Failed to create the dir:

Updater is the current 3.3.0 version


texts: Problems with the native EE relationships siblings tag

texts:
I have recently upgraded a website to 2.9.0 from 2.5.x so I'm trying to take advantage of the new (to me) relationship capabilities, specifically the siblings tag.  We have for a long time, had a relationship field (pro_related_program) set up in our programs channel where you can choose another program as a related program.  This allowed us to create program series, with one overview program page (the mutual child of many parents) and child program pages with a link back to the overview page.

On those child program pages I'd like an "other programs in this series" link.  Since it wasn't working for me, I build a bare bones template for testing:

<title>Test</title>

relationship test

  {exp:channel:entries channel="programs" url_title="PFA" status="not nonexistant"}

{title}

{siblings field="pro_related_program" status="not nonexistant"}{if siblings:no_results}No results a{/if}
{siblings:title}
{/siblings}

{pro_related_program}{pro_related_program:siblings field="pro_related_program" status="not nonexistant"}{if pro_related_program:siblings:no_results}No results b{/if}
{siblings:title}
{/pro_related_program:siblings}{/pro_related_program}

  {/exp:channel:entries}

the result is as follows:

<title>Test</title>

relationship test

Program title here

No results a

So what am I doing wrong?

Is it because both parents and children are both coming from the programs channel?
Is it, as I suspect it might be, because my relationship is backwards for how EE would like it to be for siblings?  (The parent should be the overview?)  Or to put it another way, do siblings only work on relationship entries where you can choose multiple children?

If that is the cause, is there a good way to fake the siblings tag for my situation?
If not, is there a way to use the channel entries tag to spit out a list of programs with a relationship field filled in?  I can test all of these things, but if someone knows it would help.


texts: Problem converting {comment_date} from string to var

texts:
Hi we're using channel ratings module, and want to run a routine that basically closes a comment if its rank is 1 at 30 days of age, rank 2 at 60 days etc.

The {comment_date} is yeilding a 0 whenever any method or php function is attempted on it. I have everything working except this piece and I can't figure out what the problem is.

Here's what I have:

    function GetComment_Interval($comment_date,$current_date)
{

      $intervalSeconds = $current_date - $comment_date;
       $intervalDays = round($intervalSeconds / 86400); // days since
       return $intervalDays;
}

{exp:switchee variable="{rating:overall:rating}" parse="inward"}
            // 1 star reviews" expire in 30 days,
            {case value="1"}
              EE->localize->string_to_timestamp($commD); // this throws error of 'invalid date format'
              $currD = $this->EE->localize->now;
              $interval = GetComment_Interval($commD2,$currD); // find days between
              echo $interval." days";
               if ($interval >= 30){

               ?>

            {/case}
            // 2 star reviews after 60 days
            {case value="2" default="Yes"}

               if ($interval >= 60){

               ?>

            {/case}
            // 3 star reviews after 120 days
            {case value="3"}

               if ($interval >= 120){

               ?>

            {/case}
           //It must be 4 or 5 start therefore always show it.
           {case default="Yes"}{/case}

        {/exp:switchee}


texts: PHP warning at the top of CP that I cannot fix

texts:
I'm having trouble on an install of EE 2.8.1. This is the first time I've seen this php error, and it bugs me. It doesn't seem to be causing any real problems, but it messes up the font sizes on the CP. Any ideas on what may be causing this?

A PHP Error was encountered

Severity: Warning

Message: file_get_contents(/chroot/home/---/---/system/expressionengine/cache/current_version): failed to open stream: Permission denied

Filename: drivers/Cache_file.php

Line Number: 74


texts:
RE: http://ellislab.com/expressionengine/user-guide/cp/members/custom_member_fields_edit.html

Is it possible to have a group of fields to represent a single entry (of a possible many) in member fields? For example, say the member is to list his/her professional services, it may look like this:

1 hour(s), Web Development, $100
1 hour(s), Web Design, $125
1 hour(s), Web Content Development, $75

Each entry contains 3 fields. Is this natively possible? Do I need some sort of addon? Or is this not supported at all?


texts: Solspace Calendar showing previous entries for current month

texts:
I am using Solspace Calendar for managing events. Unfortunately it is behaving weird with dates. When I want to list the events for a particular month, it starts from one or two dates of the previous month or ends at one or two dates from the next month.

I also checked the generated SQL query which clearly shows that the start date is from the previous month rather than first day of the current month.

Any idea what I'm doing wrong?

Here is my code:

{exp:calendar:cal date_range_start="year-month-01" date_range_end="year-month-last"}
    {display_each_year}
        {display_each_day}
            {events}
            <!-- List of entries here -->
            {/events}
        {/display_each_day}
    {/display_each_year}
{/exp:calendar:cal}


texts:
How must I populate a playa hidden input field (in a safecracker form) with multiple entries? I tried passing the entry IDs separated by comma, semicolon, bar, but nothing seems to work. Only the first entry in the array gets saved. How do I have to format the entry IDs for multiple relationships to be saved?

Update: Thanks to Jeremy I now know how to add data to Playa correctly. Alas, it's still not working, now I get PHP errors.

This is what I have (inside a safecracker form):

    {exp:channel:entries channel="channel-name" category="{category_id}" dynamic="no" disable="member_data|pagination"}

                                         {title}{if {embed:parent_id} == '{exp:playa:parent_ids}' }
                                        {if:else}
                                        {/if}

    {/exp:channel:entries}

I make a list with checkboxes. The conditionals check whether this entry is related to the entry currently being edited. So when it's related

<input class="relate" type="hidden" name="playa_field[selections][]" value="{entry_id}"/>

gets displayed, when it's not related

<input class="relate" type="hidden" name="0" value="{entry_id}"/>{/if}</label>

gets displayed. This works fine.

In the footer I load jQuery and this code to look for changes on checkboxes. When a checkbox is changed the "name" attribute gets updated.

    $(document).ready(function() {
        var $checkboxes = jQuery("#tag_list").find(":checkbox");
        $checkboxes.on('change', function () {
            var $relate = jQuery(this).siblings('.relate').attr("name"),
            $name = "playa_field[selections][]";
            if ($relate == $name) {
                jQuery(this).siblings('.relate').attr( "name", "0" );
            }
            if ($relate != $name) {
                jQuery(this).siblings('.relate').attr( "name", "playa_field[selections][]" );
            }
        });
    });

This also seems to work, I can see the "name" attribute get changed in the Safari developer tools.

But now, when I submit the field I get a bunch of the following PHP errors:

Severity: Warning

Message: array_filter() expects parameter 1 to be array, string given

Filename: playa/ft.playa.php

Line Number: 2356

Severity: Warning

Message: array_merge() [function.array-merge]: Argument #1 is not an array

Filename: playa/ft.playa.php

Line Number: 2356

What am I doing wrong?


texts:
I have been trying to remove the index.php from my website. I have tried everything mentioned on the ee documentation but nothing seemed to work. I also tried to enable force force query string, it didn't work either.

I'm running the website on bluehost and I think maybe the problem is associated with the server? I contacted them and they mentioned that the mod_rewrite apache is running on all their websites just fine. Not sure what the solution to this problem.

this is the same code that I used in my .htaccess file

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /my_site_url.net/

    # Removes index.php from ExpressionEngine URLs
    RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
    RewriteCond %{REQUEST_URI} !/system/.* [NC]
    RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]

    # Directs all EE web requests through the site index file
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php/$1 [L]
    </IfModule>


texts:
I just updated Assets 2.0.2 from 1.x and on one of the pages of our site, we're receiving the following fatal error:

Fatal error: Uncaught exception 'Exception' with message 'unknown_source' in ...expressionengine/third_party/assets/libraries/assets_lib.php:1188

I'm not sure, but I think it has something to do with upload preferences.  I should note that in the code at line 1188, the $settings variable being inspected is not empty, though when tested the Exception is still being thrown.

Has anyone experienced this, and if so, is there a fix?  Or is there some configuration setting that I'm missing?

Thanks for any help you can provide!


texts: Using template routes to create pages which have no channels in the URL

texts:
I'm setting up landing pages for our adword campaigns and have created a channel called "adword_landing_pages". Right now the URL's for these are similar to:

www.prestwicklimited.com/adword_landing_pages/example_entry/

I want to have these display as:

www.pretwicklimited.com/example_entry/

I've activated the template route manager and added "/{adword:alpha_dash)" to the adword_landing_pages route_manager_route and set the route_manager_required to Yes.

When I check my site, every page now displays the adword landing page template. If I add a different path like "/adword/{adword:alpha_dash)", everything works as expected. The problem is, I want to get rid of the portion of the URL before the entry name.

Obviously I'm missing a step in this process or am completely overlooking an easier way to accomplish the task of creating landing pages that don't have the channel name in the url.

Any help would be appreciated.


texts: Search form with Croxton Search Fields help

texts:
Has anyone used Croxton's Search Fields plugin? This is my first time using it. I'm trying to get a search form working and am running into difficulties getting it to pull results. Ordinarily I'd just use the normal Simple Search module, but I need different search fields to search specific custom fields.

Here is what I have so far:

    <form>

            Property Name:

            <input type="text" name="keyword" id="keyword" />

            County:

            <input type="text" name="county" id="county" />

            <input type="hidden" name="XID" value="{XID_HASH}" />
            <input type="submit" value="submit" class="submit">

    </form>
    {exp:search_fields
    search:title="keyword"
    search:county="county"
    channel="available_site"
    operator="OR"
    parse="inward"}{search_results}
      {exp:channel:entries entry_id="{search_results}" disable="member_data|categories" dynamic="no" orderby="title" sort="asc" limit="10"}
        {title}
      {/exp:channel:entries}
    {/exp:search_fields}

I'm sure I've just missed something simple, but I can't find it.
Thanks!

UPDATE:

I've adjusted it again to more closely resemble the example in the readme, but I'm still not any results.

Here is my search page:

        <form method="post">

            Property Name:

            <input type="text" name="search:title" />

            <input type="hidden" name="XID" value="{XID_HASH}" />
            <input type="submit" value="submit" class="submit">

    </form>
    {embed="properties/search_results" search='{exp:get_parameters post="search"}'}

and the embedded search results template

{exp:search_fields
search:title="{embed:search}"
operator="OR"
channel="available_site"
parse="inward"}

Search results for &lsquo;{embed:search}&rsquo;

{exp:channel:entries channel="available_site" entry_id="{search_results}" disable="member_data|categories" dynamic="no" orderby="title" sort="asc" limit="10"}

    {title}

    {paginate}

{if previous_page}Prev{/if}

{if next_page}Next{/if}

Page {current_page} of {total_pages}

    {/paginate}

{/exp:channel:entries}

{if no_results}

Sorry, no matches were found for &lsquo;{embed:search}&rsquo;.

{/if}

{/exp:search_fields}

But I just get the message "Sorry, no matches were found for ." It doesn't look like any information at all is being passed from the form to the results template.

any ideas?


texts: Hi all, The matrix ee extension returns only one row

texts:
Ok here is the tag:

{exp:channel:entries dynamic="no"}
    {download_listing  sort="desc"}

              <button data-toggle="modal" href="#myModal" class="btn-small pull-left" onclick="location.href='#';">{title} </button>

                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>

{row_id} {row_count} of {total_rows}: {title}

{row_id} {listing_describtion}

 Close Download PDF

    {/download_listing}
{/exp:channel:entries}

and here is the link:

http://boardmans.happytesting.co.uk/download

Sa you can see i am getting the name on each buttons correct but when you click on each button the data inside; i mean the second title; listing_image and listing_describtion tags are being repeated.
Could anyone help here because it doesn't make any sense for me any more..
Thank you
Regards


texts: Is there a way to add dropbox chooser or google drive picker into the publish page?

texts:
I've been using expression engine for 5 years now, but I am new to this forum, so hi everyone!

I was wondering if there is a way to use the dropbox chooser and/or google drive features inside the publish page of expression engine.

Had looked into devot-ee, but so far theres nothing for google, and for dropbox there is an addon but only to display dropbox files.

This will be really useful. I am needing this functionality currently for a site I am building.

Please let me know, if someone have a hint or have heard of something in this regard.

Thanks for your time

Regards

-Manuel


texts: How can i set AND conditionals on Switchee?

texts:
Sorry but I'm unable to use switchee.. how can i set AND conditionals?

this is my original code:

<!--The Categories Page ////////////-->
{if segment_2=="" AND segment_3==""}
{embed="travels/travels"}

<!--The Category Entries Page //////-->
{if:elseif segment_2!="" AND segment_3==""}
{embed="travels/trip"}

<!--The Single Entry ///////////////-->
{if:elseif segment_3!=""}
{embed="travels/trip"}

{/if}

thanks!


texts:
Is there a way to add a tab on the publish form within the Template Manager like it is with the Channels?

For example, the Template Manager has the default Edit, Notes, Settings and Access form tabs. I wanted to add another from my custom module.

Is this currently possible within the core API?


texts: Solspace Freeform and sending generated email to recipient from the form

texts:
Is there any way to send generated email (based on a template) to an address obtained from the form?

I'm looking for something similar to the tell-a-friend functionality but instead sending an email with a link I want to send generated HTML message based on a content from the landing page to email address from the form.

Also how can I get an email address sent from to be an email from the form (as your email in an example from a link above)?

Thanks for any tips.


texts: Can SuperSearch use Matrix fields in {excerpt}?

texts:
I am using SuperSearch with "Use Smart Excerpts?" set to "Yes", and a Matrix field with "Is field searchable?" set to "Yes". My search results contain pages with matrix field content as expected. However, the contents of the Matrix fields do not appear in the {excerpt} output. Is there a way to do this?

thanks!


texts:
Is it possible to remove the template group from the url so instead of http://example.com/blog/article/postone it would be http://example.com/blog/postone. I already stripped the index.php via .htaccess.

My blog/index code:

{exp:channel:entries channel="blog" limit="8" orderby="date" sort="desc"}

{title}

{blog_except}

{title}

{/exp:channel:entries}

And my blog/article code:

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

{title}

{blog_body}

{/exp:channel:entries}

Thank you.


texts:
Is there a way to secure the Friends forms?

I use ssl for the members section and friends is used there as well.
All friends forms are giving me the non-secure message when trying to submit...

I have tried several options, none of them works.
Almost thinking to alter the module code to force, only use, ssl

{exp:friends:message_folder_form
return="{current_url}"
form_class="form-horizontal"
form_id="accounForm"
secure_action="yes"
secure_return="yes"}

<input type="hidden" name="secure_action" value="yes">
<input type="hidden" name="secure_return" value="yes">


texts:
I am getting a syntax error when trying to set-up switchee on a new ee site. I am in 3.5.10 and I am using switchee v. 3.0. This is the first time using it in 3.x have used it several time on two ee 2.x site with out a problem. Not sure what is going on.
Here is the code:

{exp:switchee variable="{segment_2}" parse="inward"}
{case value=""}
    {embed="includes/.page-content-landing"}
{/case}

{case default="yes"}
    {embed="includes/.page-content-detail"}
{/case}
{/exp:switchee}

Thanks...


texts:
We are using expresso store with the german translation.

During checkout and also in the backend all country names are in english and are not translated within the german translation file.

How can we translate the country names both within the checkout and the control panel?


texts: Is Playa as slow as built in Relationships with 1000s of entries?

texts:
I'm trying to relate multiple entries in a database with about 2,500 total entries in one channel. It takes a minute to load the full list in the control panel for each entry -- which is unacceptable for doing many of these each day. I know I can limit the entries, but I need to relate to previous entries throughout my database.

What I'm wondering is if Playa is any better at this? For those of you using it to relate to at least 2,000 entires in a channel, do you have to wait 60 seconds+ for the list to load? (And yes, I'm on a very fast Internet connection -- this appears to be a browser/server issue.) If it's much faster, I'll buy it ASAP!


texts: Pass first level categories to switchee case value

texts:
I need to pass a list of the first level of categories to a nested switchee. The following works when I manually place the nested list. However I would like the client to be able to add/edit categories.

{exp:switchee variable="{segment_2}" parse="inward"}
  {case value="#^P(/d+)$#|category|''"}

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

      {case value="walls|seating|workstation|training|private-offices|ergo|meeting-media-room"}{!--level 1 category listing--}
        first level category listing here
      {/case}{!--level 1 category listing--}

      {case default="yes"}{!--level 2 category listing--}

        2nd level category listing here

      {/case}{!--level 2 category listing--}

    {/switchee}{!--end nested switchee--}

  {/case}{!--listing & category listing--}

  {case value="value" default="yes"}
    single entry here
  {/case}{!--single--}
{/exp:switchee}

When I replace the case value list with the code below it doesn't work. I'm sure it's something to do with parse order, but am stuck. If I place the code below elsewhere in the template it outputs what I need.

{exp:gwcode_categories channel="products" depth="1" style="linear" backspace="1"}{cat_name}|{/exp:gwcode_categories}

Possibly this could be done with Stash, but I've never been able to grok how to use stash.


texts:
I am writing an extension on EE 3.5.11 and I am using the before_channel_entry_save hook.  In the EE documentation it says and modifications to the object will be saved. I am doing something like this but no matter what I do my modifications do not get saved. Ideas?

public function set_custom_fields($entry, $values)
{
    $customFields = $entry->getCustomFields();

    foreach ($customFields as $field) {
        if (strpos($field->getShortName() === "my_custom_field_name") {
            // I have tried just and also with the line below
            $field->setData('my custom value');

            // I have tried just and also with the line above
            $values[$field->getShortName()] = 'my custom value';
        }
    }
}

If I dump the values after this I see that my custom field value has indeed been updated but it is not saved the database.


texts: City / State Combination Verifier? (Exp:resso Store)

texts:
Any ideas on implementing a city/state combination check before order submission? Client has a few orders with cities and zip codes that don't exist in the state they submitted. Example: Atlanta, NY, 30346.

My first step was to ensure that all fields were clearly labeled and conspicuous.

Unfortunately an order came in last week with a city/state mismatch. It may have something to do with my client's userbase.

Any ideas? Pretty sure it will involve an extension using the store_order_submit_start hook and a rather large database, but that's all I have right now.

Appreciate any help.

Thanks,
Bobby


texts: Deleting thousands of spam Members (not Pending)

texts:
I have a site where I forgot to turn off member authentication and it got hit with over 100,000 spam members over a couple of weeks before we caught it. Now they're all full Members so the SQL to delete Pending members doesn't help.

SQL isn't my forte, but from what I've been able to piece together I think this might do the trick, can anyone say if I'm missing anything?

DELETE exp_members, exp_member_data, exp_member_homepage FROM exp_members
INNER JOIN exp_member_data
INNER JOIN exp_member_homepage
WHERE exp_member_data.member_id = exp_members.member_id
AND exp_members.member_id = exp_member_homepage.member_id
AND exp_members.group_id = 'x'
AND exp_members.group_id = 'x'
AND last_visit = 0

Trying to delete those members who've never logged in.


texts: Low Search + Matrix field data = display search term

texts:
I've got the search working great, as solved here:
Low Search + Matrix field data

But now I'd like to display the query on the results page. Technically I am displaying it by using this:

Searched for {low_search_query_string}

but it looks like a string -- of course. Is there a way to make it pretty and just show the search term?

Thanks!

:osa


texts: Twitter Summary Cards in ExpressionEngine

texts: Any ideas how I can make use of Twitter Summary Cards via ExpressionEngine?


texts: how can i delete a complete website in EE admin?

texts:
I want to remove a demo website from an installation of expressionengine 2.7.1, I would like to purge all files, channels, entries, templates, everything. Is there a button in the menu what I havent found?

Thanks, Peter


texts:
i can't seem to find out why a tag would be rendering the wrong url.

the problem is that {webm} should be rendering to http://www.hallmarklighting.com/video/hallmarkYT.webm with the /video/
not as
http://www.hallmarklighting.com/hallmarkYT.webm which it's currently doing.

the channel field is set to file and the directory is set to grab the video from the folder video

let me know if there is anymore relevant info needed.

EE markup:

                    <video width="640" height="480" poster="{poster}" preload="metadata" controls>
                            <source src="{mov}" type="video/mov" />
                            <source src="{mp4}" type="video/mp4" />
                            <source src="{webm}" type="video/webm" />
                            You're browser seems to be out of date as it doesn't support Video, visit youtube.com/{title} to watch this video.
                    </video>

what's being rendered:

    <video width="640" height="480" poster="http://www.hallmarkcollective.com/images/uploads/hallmarkIntro.jpg" preload="metadata" controls>
        <source src="http://www.hallmarklighting.com/hallmarkYT.mov" type="video/mov" />
        <source src="http://www.hallmarklighting.com/hallmarkYT.mp4" type="video/mp4" />
        <source src="http://www.hallmarklighting.com/hallmarkYT.webm" type="video/webm" />
        You're browser seems to be out of date as it doesn't support Video, visit youtube.com/Introducing Hallmark Lighting to watch this video.
    </video>

thank you.


texts: Checkbox inline with label using the composer

texts:
I would like to get the label and checkbox inline using composer.

This is the current code rendered by the {composer:field_output} tag:

    Newsletter

    <input type="hidden" name="newsletter" value="n">
    <input type="checkbox" name="newsletter" value="y" id="freeform_newsletter">

But I'd like it to render something like this, still using the {composer:field_output} tag while selecting all items containing checkboxes:

  <input type="hidden" name="newsletter" value="n">
  <input type="checkbox" name="newsletter" value="y" id="freeform_newsletter"> Newsletter


texts:
We have a Low Variable using Matrix with 3 columns.

Two columns are raw text and one is a playa list of channel entries.

All has been working fine, there were about 60 rows so far - all of a sudden when we go to manage the low variable to add more content we see a blank screen (attached)

The data that has been input is still there (can see it on the front end)

Not sure how to fix or trouble shoot this.

ee2.6.1 / lv 2.3.5 / Matrix 2.5.5


texts: safecracker login form not accepting login details

texts:
I am fairly new to Safecracker, so forgive me if my question is stupid. On the following [site Click][1] Here when you click on the promo materials button, a pop up window appears requiring users to login with a username and password.

I have noticed the login form is not recognising my username and password. I am currently trying to login using my super admin. is there anything i need to select in the control panel. Also looking at the code i have submitted is this the correct set up?

below is a snippet of my code

{exp:member:login_form}

 {if logged_in}
Presskit
   {/if}

        Username
        <input type="text" name="username" value="" onclick="this.value = ''" id="email">

        Password
        <input type="password" value="password" onclick="this.value = ''" type="password">

{if auto_login}

<input type="checkbox" name="auto_login" value="1"> Auto-login

 {/if}

        <button type="submit" style="margin-top: 10px;">Submit</button>

Forgot your password?

    {/exp:member:login_form}


texts:
I am running 2.9.3 using Channel Forms, the issue is if I try and upload a excel or .xlsx file it never uploads, even though eventually the form submits (it's considerable slower submit), no upload happens.

If I try .txt or an image file, it's fine. I have the enctype="multipart/form-data" in the tag, so not sure what might be occurring here. Any ideas, I have been at it for a while and not sure what it might be.