texts: Duplicate markers appearing when using Google Maps for Expression Engine

texts:
I have a google map on a website using Objective HTML's Google Maps for Expression Engine add-on. The map plots all club locations in the area, so shows a number of markers.

Strangely it is showing one club in two different locations, even though only one entry exists in the database.

It seems I'm not the first to experience this (Random Duplicate locations when using Google Maps for EE).

Any ideas how I could go about solving this one would be massively appreciated.

Thanks in advance,

Tom

Code:

{exp:channel:entries
    channel="friendship_clubs_data_feed"
    dynamic="no"
    status="Open|Exclude from search results"
    orderby="title"
    sort="asc"
}
    {exp:gmap:marker
        id="map"
        address="{club_feed_postcode}"
        infobox="true"
        zIndex="5"
        icon="/assets/images/Map-Marker.png"
        clustering="false"
        show_one_window="false"
        extend_bounds="true"
        geocode="true"
        clearanceX="10"
        clearanceY="20"
        offsetX="10"
        offsetY="-10"
    }

{title}

{club_feed_town}

    {/exp:gmap:marker}
{/exp:channel:entries}


texts:
I am using Low Nice Date (Good and simple addon BTW) to calculate elapsed time between current date and an even in years past. The problem seems to be that it is not taking into account the leap years.

Does anyone know if this can be corrected?   @Low ?

**EDIT

{exp:low_nice_date:range from="{my_date}" to="{current_time}" localize="yes"}{years} YEARS - {months} MONTHS - {days} DAYS{/exp:low_nice_date:range}

Where {my_date} is an epoch date set in a global variable as '875966400'


texts: Computing word, image, video and audio file counts in a scalable way?

texts:
I am attempting to gather as much interesting metadata as possible to display for readers of an EE site I'm developing and am looking for guidance on methods (or indeed the feasibility) of computing specific bits of this metadata in a scalable way.

EE allows for quite a few bits of data to be gathered and displayed natively, for example post totals and dates, comment totals and dates, tag totals (via a plugin), etc. However I'm specifically interested in methods to count and display totals for data like number of words, images, videos, or audio files, not only included within individual posts but cumulatively across a channel, as well as an entire site.

These totals would be displayed contextually depending on where they were accessed.

So for example search results would display the number of words/images/etc contained in individual posts, while a channel's "About" page would display totals for that channel, and the site's "About" page would display site-wide totals. I'm not clear on the best approach or indeed whether this is even really feasible.

I've pondered:

Entering these numbers in custom fields on a per-post basis, but am not clear on how they'd then be added together or output for channel and site-wide totals.
Using PHP's "count" method, but am not very familiar with PHP so unsure of it's appropriate.
Using some mySql method to query the database, again unfamiliar and unsure.
Utilizing the ExpressionEngine "Query Module" somehow.
Using some Jquery plug-in to do the counting individually and then adding after the fact.

It may be that the counting of words, images, video, and audio files and the scalability are different questions all together but the truth is I'm not sure what avenue would even be best to explore at this point.

This is not a mission-critical question but any and all suggestions are appreciated. In fact suggestions regarding any bits of metadata (with the exception of member-related data) that is retrievable and displayable on the front end, beyond what I've laid out here, would interest me. Thanks.


texts:
Freeform 4.1.2

I'm attempting to edit the {freeform:edit_data:status} on the front-end of my site like  so:

{exp:freeform:edit
entry_id="{segment_3}"
form_name="referral_application"
notify_on_edit="yes"
restrict_edit_to_author="no"
return="/referrals#myreferrals/status_changed_success"
}
 <select id="status" name="status">
   <option value="{freeform:edit_data:status}" selected>
    {freeform:edit_data:status}
</option>
<option value="open">Approved</option>
 <option value="closed">Declined</option>

 </select>
    <input type="submit" class="btn btn-default" value="submit">

 {/exp:freeform:edit}

I saw post on Solspace that said it was going to be fixed in version 4.0.6 :
http://www.solspace.com/forums/viewthread/13266/#54728

Has anyone had any success with editing a status?


texts: Moblog parameter to pull sender from email?

texts:
I have Moblog running as I'd hoped except how to pull the sender's name from the email. Since the subject line automagically becomes {title}, it seems it should be as simple, but I can't find documentation anywhere, and am drawing a blank.

Any suggestions?

Thanks,
Jo


texts: I just uploaded P&T Assets. Shouldn't I be able to access my Assets directories from a WYGWAM? I don't have any folder listed in the WYGWAM settings. What am I doing wrong?


texts: Here at work we're using EE v.1.6.7 and will be moving to a new proprietary CMS, I'm looking for a way to export the individual pages to a spreadsheet - the new web company we will be working with have asked for our existing pages to be in an excel ss...is this even possible???  I am not an Expression Engine expert. Please speak slowly and clearly to me. ;) Thanks.


texts: How to remove 30 second interval restriction when sending mail?

texts:
I noticed that when I try send an email to another person, in quick sucession, I get a an error message that says that I should wait for 30 seconds before I can send next email.

How do I remove this restriction?

I have seen in the documentation that there are some settings to edit re-submission time interval, but only for comments.

This is the contents of the body when I tried to submit

The form you submitted contained the following errors

You are only allowed to send a Private Message every 30 seconds

Return to Previous Page


texts:
I'm having a bear of a time with what I thought would be a simple conditional. I've got a Low Variables Matrix field with several dates and custom messages. Basically the client wants to use these dates to remove their phone number on holidays and have a custom message like "Closed today - Merry Christmas!."

Here's what I'm using for testing:

{exp:low_variables:pair var='lv_holiday_message' search:date='04/08/16'}
{if '{total_rows}' == '1'}
 {holiday_message}
    {if:else}
    TEST
    {/if}
{/exp:low_variables:pair}

The first conditional always works - if one of the date columns matches the search date then my custom message gets shown. But I can't for the life of me figure out what conditional shows something when a date DOESN'T match. I've tried if:else's , total rows == 0 or empty, checking for data on just the date column itself, if no_results and it never return a my TEST text.

Am I missing something simple or is this just not possible?


texts:
I'm trying to send the user off to PayPal Express by way of a single button (design calls for a PayPal button and also a regular checkout), so I have this:

    {exp:store:checkout
        payment_method="paypal_express"
        return="checkout/confirm/ORDER_HASH"
        require="order_email"
    }

            Email Address *

                <input type="email" name="order_email" id="inp-login-email">

        <input type="submit" value="Checkout with PayPal">

    {/exp:store:checkout}

However that bounces me back to the same page I was on before. Presumably I need to add some more info into that form before I can pass to PayPal?


texts:
How to make it possible for users to subscribe to entry updates

I was thinking it would kinda like a newsgroup.
User subscribe but to entry and or channel updates - but giving their email.

And they get notification mail when entries are updated.

been looking at a few plugins : ( but it looks like only the admin is notified )

http://devot-ee.com/add-ons/safecracker-emailer
http://devot-ee.com/add-ons/ee2-entry-notifier

Does any have experince with these two ?

http://devot-ee.com/add-ons/mx-notify-control
http://devot-ee.com/add-ons/postmaster


texts: Is it possible to export/import a single site from MSM?

texts: I've got a Multiple Site Manager set up with 3 different sites. I'm wondering if it is possible to export all EE content/channels/data from one of the sites, and import that same site data into another Multiple Site Manager instance. Is this easily accomplished, or will it involve dark SQL magic?


texts:
I'm working on an ExpressionEngine-based site in which the client would like to restrict the download of a file to those with one of a set of access codes, and given my limited familiarity with EE and its base of add-ons, I thought I'd ask here and see if anyone has any suggestions? In essence, the goal is very simple— allow for entry of an access code on a certain page, and reveal a download link to anyone with a valid code. No need for the user to create an account, membership, etc. Ideally, we'd be able to create multiple codes, and track the number of uses for each code (e.g. "access code 20202 has been used 15 times")

I'm open to any suggestions, either via native EE functionality, add-on or anything else that might work with the EE platform. Thanks in advance for any ideas here!


texts:
I created a channel:form for creating entries and it works fine. However, when I attempt to edit the content of the entry, the edits don't take and it returns the original entry values.

Edits to the same entry in the Control Panel save fine, so there is something wrong with my form.

Here is the code for the edit entry form:

{exp:channel:form channel="facilities" entry_id="{segment_3}" author_id="CURRENT_USER"  return="test/preview/ENTRY_ID" }

<input type="hidden" id="facilityCounter" value="1" />

   <fieldset class="facility-info">

Facility Name*

<input type="text" name="{title}" class="required" value="{title}">

Street address*

<input type="text" name="{facility_street_address}" class="required" value="{facility_street_address}">

                City*
                State*
                Zip*

                <input type="text" name="{facility_city}" class="required"  value="{facility_city}">

                            <select name="{facility_state}">
                            <option selected value="{facility_state}">{facility_state}</option>
                            <option value="AL">Alabama</option>
                            <option value="AR">Arkansas</option>
                        <option value="FL">Florida</option>
                        <option value="GA">Georgia</option>
                        <option value="KY">Kentucky</option>
                        <option value="LA">Louisiana</option>
                        <option value="MI">Mississippi</option>
                        <option value="NC">North Carolina</option>
                        <option value="SC">South Carolina</option>
                        <option value="VA">Virginia</option>
                     </select>

                <input type="text" name="{facility_zip}" class="zip required" value="{facility_zip}">

    <input type="image" src="/photos/btn_submit-survey.png" alt="" value="Submit">

{/exp:channel:form}

I have confirmed permission and do not receive any errors. I would appreciate any insights into why the edits are not saving.


texts: Expresso Store: "Card details must be submitted over a secure connection" error

texts:
I am trying to checkout with the Dummy Payment Gateway in Store.  It will not let me do this.  The error message says "Card details must be submitted over a secure connection."

I have Expression Engine (2.5.5) installed on my local server WAMPserver(2.2) and am using Expresso Store(1.6.2).

I'm not sure of what direction to go with fixing this.  I want to simply checkout with the dummy information and get a successful payment page for testing purposes.  I want all this to be done locally.  I've read some very technical tutorials on enabling SSL in WAMPserver, that is if that is the answer to making this work.  I'm hoping there is an easier solution than that.  I am very open to the best way to solve this.  When live, I will be using PayPal to process payments.  I guess my last option would be to create a Paypal Sandbox account for testing purposes.  In this scenario, I'm assuming the order would leave my site and wouldn't have to be encrypted since the billing information will only be processed on Paypal.

Any suggestions, help, or ideas are greatly appreciated.

Shannon


texts: my google-fu failed again, and i have a serious problem. I have a channel and template for it called html, when i go to page.com/html/(existing article name), it works just fine, but when i go to page.com/html/(non-existing article), it shows the article with lowest ID instead. So what am i asking for? How to redirect user to 404 page, when he opens page.com/html/(non-existing article name)?


texts: Birthdate in Channel Data - how to filter and display age?

texts:
I'm storing birthdates in a Channel field.

How do I display the birthdates as age in years? Is that something I just compute in the templates? Or is there a better way?
I'm planning to use Low Search. Is there a way I will be able to filter something like "age is 25-30?"


texts:
I am building a site that lists different service providers.

On each service provider's page there is a contact form (the same form for each service provider).

The email address of each service provider (the recipient) is in the channel entry.

How can I get the email sent to each respective service provider - as well as the site owner?

I am trying to avoid using a different script for each form - and I don't want to expose the recipient's email address in the page code.


texts: Izzit possible to input keyword right on the wygwam uploader. Now when I right click it only show "view file" I wish there is a way that I can have "edit" so our editor can input some keywords for that particular image they upload for their article.


texts: In Expression Engine How we can avoid same ip address again from entry views tracking

texts: In expression engine for different channel titles different view count is there .But how we can avoid same ip address again from view count.


texts: Freeform upload error: The file could not be written to disk

texts:
My client uses Freeform Pro to take resumés and cover letters through a lengthy career registration page. After working fine for two months, applicants started getting this error:

The form you submitted contains the following errors

The file could not be written to disk.

They only have about 10 megs of files in the upload folder, and have collected 274 documents already through this Freeform Pro form. I was able to upload files through FTP to the upload destination, so it doesn't seem to be a server limit. They are using EE 2.6.1 and Freeform Pro 4.1.3

Is there limit in ExpressionEngine, Freeform Pro, or the server that can be changed to allow uploads to continue? What might be causing this?

Edit: After further investigation, I found the problem appeared only for logged out users. If I was logged in, I had no problem uploading files through the form. This indicated the problem was not a hidden limit setting.


texts: Re-enable password autocomplete for CP login

texts:
Since ExpressionEngine 2.5.3 the form used to log into the control panel has autocomplete="off" set on the password input field. This means that browsers won't offer to remember passwords when they're entered.

When creating new passwords for super-admins I generate a long, unique passwords using Keychain. I'll never remember these, and there's no way my clients will either. Because of this, I always recommend that people have their browsers remember passwords. I believe this is in every way more secure than remembering the password (i.e. writing down on a sticky note somewhere) and entering it (i.e. having it read by a keylogger) every time.

My question is: can the autocomplete="off" attribute be removed from the password input field somehow?


texts: Display "Chosen" Freeform Composer output in EE Template

texts:
I've got everything going smoothly with a single form–the composer, notification and template are all set. Works like a charm. In the template, I called the first form specifically as such:

{exp:freeform:composer
  form_name="volunteer_application"
  composer_template_name="some_template"
  return="/"
  }

However, I am unsure how to allow the template to grab the form_name chosen in the EE admin–where it gives the user the option to "Choose a Freeform Composer Form to output."

Surely I don't need to create a different template for each form?


texts: SEO lite {extra:desc} is not getting over ridden with the seo lite template description

texts:
I am using seo lite and it works fine with tag {extra:desc}.

But when I write in the seolite description in the template, it over writes the title and keywords but not the description. It overwrites if I dont use the tag {extra:desc}.

Can you please help me with this.

this is ma code ---

{if "{extra:desc}" !="" }

   <meta name='keywords' content='{meta_keywords}' />
  <link rel='canonical' href='{canonical_url}' />
  <meta name="google-site-verification" content="CGYXJx34stuBq6Ahar-eFmhCJL-egrm533wopJONBoY" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <meta name="author" content="but.ae"/>
  <meta name='description' content="{exp:streeng characters="160" find="WHAT IS IT" replace=" "}{extra:desc}{/exp:streeng}" />

 <

 <title>{title}</title>

{if:else}

  <meta name='keywords' content='{meta_keywords}' />
  <link rel='canonical' href='{canonical_url}' />
  <meta name="google-site-verification" content="CGYXJx34stuBq6Ahar-eFmhCJL-egrm533wopJONBoY" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <meta name="author" content="but.ae"/>
  <meta name='description' content="{meta_description}" />

 <title>The Future Build</title>
{/if}

Hope to hear from you soon.


texts: How do I create a single template tag which outputs multiple bits of data?

texts:
I have just created my own module and need a bit of help displaying the content on the front end. I currently have some template tags {exp:address_book:contact}{/exp:address_book:contact} and within them a series of variables; {ab_name}, {ab_contact_number} etc.

These are laid out in the site templates as so:

{exp:address_book:contacts}

    Title
    {ab_title}
    Company
    {ab_company}

    Name
    {ab_first_name} {ab_last_name}
    Company Tel No.
    {ab_company_contact_number}

    Contact No.
    {ab_personal_number}
    {ab_address_1}

    Email
    {ab_email}
    {ab_address_2}

    Facebook
    View page
    {ab_city}

    Twitter
    View feed
    {ab_county}{if ab_country}, {ab_country}{/if}

    LinkedIn
    View profile
      {ab_post_code}

{/exp:address_book:contacts}

Ideally I need to find a way to output this data in a single tag, rather than having to specify the layout in the site template files. Is there any way to do this?

Here is my function in my mod.module.php file:

public function contacts()
{

    $contact_id = $this->EE->TMPL->fetch_param('contact_id');

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

    $this->EE->db->select('*');
    if( $contact_id ) {
        $this->EE->db->where('id', $contact_id);
    }
    $this->EE->db->from('address_book');
    $this->EE->db->order_by('first_name', 'asc');

    $query = $this->EE->db->get();

    if ($query->num_rows() == 0)
    {
        return $this->EE->TMPL->no_results();
    }

    foreach ( $query->result_array() as $row ) {
        $variables[] = array(
            'ab_title' => $row['title'],
            'ab_first_name' => $row['first_name'],
            'ab_last_name' => $row['last_name'],
            'ab_personal_number' => $row['personal_contact_number'],
            'ab_company' => $row['company'],
            'ab_company_contact_number' => $row['company_contact_number'],
            'ab_address_1' => $row['address_street_1'],
            'ab_address_2' => $row['address_street_2'],
            'ab_city' => $row['address_city'],
            'ab_county' => $row['address_county'],
            'ab_country' => $row['address_country'],
            'ab_post_code' => $row['address_post_code'],
            'ab_website' => $row['website'],
            'ab_email' => $row['email_address'],
            'ab_facebook' => $row['facebook'],
            'ab_twitter' => $row['twitter'],
            'ab_linkedin' => $row['linkedin'],
            );
    }

    return $this->EE->TMPL->parse_variables( $tagdata, $variables );

}

Any help would be greatly appreciated, thank you.


texts:
I am filtering a list of entries using an {if…} conditional, but the exp:entries tag outputs the count for the total number of entries before the conditional is applied. And as I am using pagination I end up with a wrong number of pages. Does anyone know if there is an easy way to fix this?

My code looks something like this:

   {exp:user:users group_id="9|10|11" orderby="lastname" sort="asc" limit="300" paginate="bottom" }

    {if location_area =="{segment_3}"}
     {title}
    {/if}

{user_paginate}
Page {user_current_page} of {user_total_pages} &nbsp; {user_pagination_links}
{/user_paginate}

{/exp:user:users}

As you can see I'm using the Solspace User addon.

Thanks for any help.

Andrew


texts:
Is it possible to have a date input field in a control panel view page?

Is there any kind of build in javascript library for the date calendar etc?

Thank you.


texts: Has anyone had experience filtering products, based on the quantity at a retail location?

texts:
I am trying to set up a product filter where I can filter by: Store location, type of product, and price.

I have 36 retails locations in total, and only want to display products that have a greater quantity then 0. The only things that changes from location to location is the quantity.

I have used the module "reefine" before for something similar, but don't believe it would work in this case. As i am importing the information from a ".csv" file using the module "data grab", which needs its own channel field for each row in the .csv file.

I need to show the quantity of product X, at retail location Y.

I am thinking modules might not be the way to go for this project. Just wanted to ask and see if anyone has run into something similar.


texts: How do I list entries by the same author on the single entry page?

texts:
I have a simple news site and on a single entry page where a news item is located I would like to list 3 or 4 other entries by the same author in the sidebar sorted by date.

I have one channel entries tag for the article text and another with the same channel but with an author_id parameter.

There are two problems I'm having, one is getting the author id from the url (I do not want to add another url segment just for this) and the second is making sure that it doesn't list the same entry that's currently being displayed on the page.

I would post my current code but it's all very standard stuff


texts:
I’ve seen an example almost identical to what I’m trying to attempt here:
How to get attempted url before access restriction?
However, my templates don’t see to want to cooperate:
Template 1:

    {if logged_in}
     {embed="myfig/upload-view"}
    {if:else}
     {exp:stash:set name="login_form_return" scope="user" save="yes"}{segment_2}    {/exp:stash:set}
    {redirect="/myfig/"}
    {/if}

Template 2:
Stash: {exp:stash:get name="login_form_return"}

{if '{exp:stash:get name="login_form_return"}'}
     Proof Manager
     {if:else}
     Something else
     {/if}

 {exp:zoo_visitor:login_form
 error_handling="inline"
  }

 {if '{exp:stash:get name="login_form_return"}' =="myfig/proofmanager"}
 <input type="hidden" name="RET" value='myfig/proofmanager' />
 {if:else}
 <input type="hidden" name="RET" value="/myfig/dashboard/" />

 {/if}

Nothing returns on my GET attempt. What am I doing wrong?


texts:
According to the EE doc, within a channel entries tag you can search a grid field as long as the field color is set to "yes" for Include in search.

I have bot he Grid field and the individual column set to yes, but don't get results when I definitely should.
In the example below, there is a Grid titled "product_application" and one of 3 fields with the title "partno".

{exp:channel:entries channel="models" search:partno="={segment_3}"}
    <p>{title}-</p>
{/exp:channel:entries}

Has anyone run into difficulties with this?

Russ


texts:
Not quite the issue some others have experienced as far as I can see.

I try to create a new Subfolder in an Assets folder (set to (777) but get the message: "Assets could not complete the requested operation." There are older Subfolders there already and I can upload fine, in fact, everything is fine.

Using Assets 2.1.4 and EE 2.6.1  - Thanks!


texts: Freeform limit form access to certain member groups in CMS

texts:
Is there a setting somewhere to hide certain forms from certain members when they are logged into the CMS. The reason being is that, as with managing other sections/channels in Expression Engine, we need to limit member to edit only a one of the forms we have added eg. All forms are Marketing Request, Sales Request, General Enquiry but we what to have the Marketing Member Group to only have access to the Marketing Request form.

Thanks,
C


texts: P&T Switch throws an error with EE 2.7.2

texts:
I just upgraded to EE 2.7.2 and P&T Switch is throwing an error in the Developer Log. Everything still seems to work at the moment but it looks like P&T Switch needs to be updated:

Deprecated function EE_Fieldtype() called in system/expressionengine/third_party/pt_switch/ft.pt_switch.php on line 26. Deprecated since 2.6. Use EE_Fieldtype::__construct() instead.


texts: How do I hide a div when the channel entries tag it contains has no results?

texts:
In the margin of my blog, I list featured articles. This is the code.
My problem: I don´t always have stuff to feature. When the channel entries tag is empty a grey box with the title Featured is left over. I dont want to use a conditional, that says
"if no entry, then print "Nothing to feature yet"."
I want to get rid of the entire box. How can i do this?

Featured

  {exp:channel:entries channel="blog" limit="2" status="featured"}

{title}

  {/exp:channel:entries}


texts:
I have two channels that use one custumfield group. One channel is for placing a entry without sign-up en the another with sign-up.

"melding_vrij" and "melding_login"

{exp:channel:entries channel="melding_vrij" limit="12" disable="member_data|pagination" dynamic="off" cache="yes" refresh="600"}
            {if afbeeldingen !=""}
                {exp:ce_img:pair src="{afbeeldingen}" max="80" quality="30"}

                {/exp:ce_img:pair}
            {/if}
{tekst}
{/exp:channel:entries}

If I use "melding_login" it display all entry's but if I use channel "melding_vrij" it gives a blank page. If I remove the CE img tag it works fine. It always worked fine but suddenly it's not working anymore and I can not understand why


texts: ExpressionEngine Rich Text - the HTML Output is coming out weird

texts:
In EE's Rich Text editor, I typed in the following content.
I did not do any fancy markup or formatting.
All I did was set each heading to an H4, and typed paragraphs normally.
I did not touch the code or alter any markup.

This is how EE is outputting my (fairly normal) text in my template:

The Project

An iconic Lorem Ipsum led shopping centre at Location X. The 65,000 square&nbsp;foot multi-use facility includes a Lorem&nbsp;Ipsum Store built upon stilts to house&nbsp;customer parking underneath, together&nbsp;with 28 retail units, a food court, a&nbsp;petrol filling station and 18,000 square feet of office space.

The focus of the design was to make a bold architectural statement and&nbsp;included an ambitious six-storey high,&nbsp;frameless, glass frontage with an&nbsp;unusual curved roof.&nbsp;

The Challenge

Creating an innovative glass structure,&nbsp;24 metres high with a 10 degree angled lean. Nothing quite like this had ever been attempted in Europe before.&nbsp;It was a first and whilst Company Name had to ensure they were highly attentive to the practical safety aspects of&nbsp;achieving the construction, they also&nbsp;had to think about the clients aesthetic&nbsp;objectives to creating a striking piece&nbsp;of architecture that would draw in&nbsp;shoppers.&nbsp;

I am confused why so many blank
 tags are output, and why each subsequent paragraph is nested further and further into a series of nested
s. Is this normal behaviour for EE? It breaks my styling slightly, as
 have small margins on them. If I were to code this manually, I would put something like
The Project

The text[...]
 - without wrapping the
 in a
.

Is there anything I can do about this? Thanks!


texts:
I'm trying to build a blog in ExpressionEngine that supports syntax highlighting in posts, so that snippets of code in the post will be displayed with line numbers, syntax highlighting, etc.

In WordPress you use the SyntaxHighlighter Evolved plugin to do this (http://wordpress.org/plugins/syntaxhighlighter/). You wrap the snippet of code to highlight in shortcodes, and the actual highlighting is done on the front end with javascript (http://alexgorbatchev.com/SyntaxHighlighter/).

In ExpressionEngine??? I thought I would do it the same way: wygwam uses CKEditor, and CKEditor has a plugin to generate the html that the javascript SyntaxHighlighter operates on. The problem I have is that I don't want to include the syntax highlighting javascript on every blog page, just on the ones that need it. How to identify them?

Or, is there some other way entirely I should be doing this?


texts: Can I specify a separate activation email?

texts:
I have a general sign up page, and special sign up page that assigns those sign ups to a different group.

Is there a way to send general the normal activation email, and my special group a differently worded activation email?

Thanks!


texts:
I need to use WYGWAM in comment form.
Now I use {exp:comment:form} as it is shown in EE documentation.
But it is necessary for me that users could format the text with power of WYGWAM! How can I embed it to comment form?


texts: Low Yearly Archives: Exclude current year

texts:
Firstly thanks for this handy plugin.

I am trying to exclude the current year from my archive list.

So in 2014, my tag looks like:

{exp:low_yearly_archives channel="news" end_year="2013" }

Yet 2014 is listed...as is 2013 which is empty.

I've tried a few variations but no luck. Am I misunderstanding the documentation?

Is it possible to exclude the current year?

Thanks again for all your EE extensions.

CJ


texts: How does including MIT Licensed code in an EE Addon work?

texts:
Things I'd like to admit and apologize for in advance:

I am very new to StackExchange and have a feeling this may be too subjective, but I'm not sure.
My understanding of the different types of software licenses is poor at best.

So here is my actual question. I am considering using a jQuery plugin in one of my commercial ExpressionEngine Addons. I know that the MIT license allows me to sell my addon, so long as I include a copy of the MIT license. Does it matter WHERE in my addon this license is kept? What would happen if down the road I needed to include another piece of code also released under the MIT license? Do I then need to include two copies of the license?

Is there a standard convention as to where these licenses should be stored within an EE addon?

I understand in advance if this needs to get closed for being off-topic, or too subjective. But figured I'd give it a shot. What are my other options? The EE forums? :)

MW


texts:
I'm not able to make sense of how to use context="" in stash.

I've not yet had to use it but I'm not sure if there are things I may have been able to handle more efficiently.

could somebody give an example please?

Thanks


texts: Click to Load More Entries / Vertical Pagination

texts:
I am using ExpressionEngine 2.5.2 and would like to create, for lack of a better phrase, "vertical pagination" for my channel entries. This would be similar to infinite scrolling, but instead of more entries loading automatically, I would like the user to have to click a "more entries" link. Currently my homepage shows 6 blog posts, and when someone clicks "more entries," I'd like 6 more entries to show up below the 1st 6.

My reason for this is that I would like to user to always be able to reach my website's footer containing links no matter how far down the page they are, but also not have to have another page load like regular pagination does.

I have no clue where to even start with this, and I am not fluent with jquery. Is there a plugin that does this? Is there a tutorial I can check out? Thanks for the help.


texts: Using Channel Form tag for a registration process need guidance

texts:
Putting together a site that takes a logged in user through a registration process, creating a golf tournament. I am using the channel form tag. What the client was promised was that the sign up could happen across several pages:

P1: Register a new tournament and details
P2: Enter in golf course information
P3: Enter in fundraising organization information ...

and there are several other steps. The user is using the "next" feature to get to the next part of the sign up. I set up a channel called tournament and created a set of fields for the inputs. It occurred to me that this isn't going to work because it won't understand the "next button if the form tag has been closed. I am a rank amateur at AJAX but I was wondering if there is a way to use one template while the user is going through the steps of the registration and still have all the info submit to one entry...

            {exp:channel:form channel="tournament"}

                    Tournament Name
                    <input class="medium" type="text" name="tour_title" id="tour_title" value="{tour_title}">

                    Tournament Description
                    <textarea name="tournament-description"></textarea>

etc .....

        {/exp:channel:form}

                Next

                Last

The process is by no means over when the user hits "next", there are a bunch of steps. If someone knows a better way I am wide open. Thanks.


texts:
I'm attempting to make the following scenario in EE without utilizing membership. A form is on page 1. Upon successful submission of form, user is taken to page 2 which contains content only accessible after form is filled out. More than likely using FreeForm for my form submissions. The purpose of this is to just gather information about the people wanting the form-blocked content.

I'm just trying to wrap my head around how to do this without someone being able to hack the url to page 2...ie..

page 1 form would be at:

domain.com/form

upon successful submit, would be directed to page 2:

domain.com/form/content

Can anyone think of a different or better way of handling this so that the url cannot be hacked? Membership seems like the obvious choice, but some of these users will potentially already be members of a different group, some may not. Thanks for any help!


texts: Formatting number from the hit counter (how to add comma)

texts:
I need to display the number of visitors to a website on the homepage, and I'm wondering if there is a way to add formmating to the number output by the {hits} variable.  http://ellislab.com/expressionengine/user-guide/templates/hit_counter.html

I've tried a few plugins, like "number-formatter" and even the "price-format" but I think the issue is that the {hits} won't parse from within some of these plugin tags.

Is there a better way to display (and format) the total number of visits to any one page on a site with EE?

THANKS!

Mike


texts: Checkbox inside Matrix broken after update

texts:
I have a Field Pack Checkbox, with just a single option, inside a Matrix field.

I just updated to Matrix 2.5.10, Fieldpack 2.1.1 (from the outdated version), and EE 2.7.2.

The value of the checkbox inside the matrix field will no longer save. If I check the single checkbox, submit the entry, and then go back to edit the same entry, the box is no longer checked.

I currently can't edit any old entries in this channel because the value of the checkbox will be lost when the entry is submitted.

Any Field Pack Checkbox not inside of a Matrix still works fine. I have tried re-installing Matrix and Field Pack.


texts: Quick questions on importing data using datagrab

texts: I'm going to be importing some info using DataGrab for about 700 entries (on this site an entry is a construction project). One of the fields is a number that shows the cost of the project. On the front end of the site users need to be able to order the projects based on the cost. I want to display the cost on the front end with commas where necessary ($1,123,345). What is the best way to setup the import for that field? If it's a text field would I be able to order if it has numbers and commas? If it is a numbers field would I be able to add commas after the fact? I just don't want the client to have to go back and redo the projects import file. Any ideas would be great! Thanks.


texts: Nested Playa, Matrix and reverse_related_entries

texts:
Ok, it'll be a miracle if anyone can help me here, but I have an EE-1 site (upgrading is not an option here) with the following:

{exp:weblog:entries ...}
   {reverse_related_entries limit="1"}

{title}

      {a_matrix_field}

{a_matrix_column}

         {a_playa_field}
            {title}
         {/a_playa_field}
      {/a_matrix_field}
   {/reverse_related_entries}
{/exp:weblog:entries}

The playa field outputs some garbage along the lines of {REL[1355][a_matrix_field]AcYdXsrHREL}


texts: {super_search_total_results} Does Not Parse in EE 2.6.1

texts:
Using ExpressionEngine 2.6.1 and SuperSearch 2.1.2

After upgrade the {super_search_total_results} no longer parses. It outputs the following:

"{super_search_total_results} Matches Found" in the HTML instead of parsing the variable.

The {super_search_total_results} tag is supposed to be able to be used inside OR outside the super search loop.

Am I missing something, or is this a bug in the 2.1.2 version of Super Search?


texts: Finding entries an entry is related to in Playa

texts:
I'm not sure how best to ask this question, hopefully I do it justice...

On this page: http://www.aribalive.com/las-vegas-2014/agenda I use Playa to relate breakout sessions to specific agenda items (called Rotations).  When you click on the Rotations, the list of sessions associated with that agenda item is revealed.  Agenda items are a channel on their own, and Sessions are another channel.  This is all working correctly.

Now, on the Breakout Session page (http://www.aribalive.com/las-vegas-2014/breakouts), I need to add an additional filter for Rotation, so as I'm looping through each Breakout Session in the channel loop, I need a way to find out which rotation (or rotations) each individual session has been associated with.  The Breakout page doesn't run a channel entry loop for the Agenda channel, and I'd really rather not run that for each individual breakout session since that would be massively inefficient... I'm hoping there's a Playa module tag that can take breakout session entry ID that will render data on entries it's been associated with...

Is there a way to do that?


texts: Unable to upload images with Channel Images: Uncaught TypeError in Console in CP

texts:
have been scrachting my head about this for the last 2 days:

I created a new channel (duplicated another channel) and set everything up else up as desired.

ATM the channel holds about 28 entries. Some of the entries show problems with Channel Images, some not. It seems to be totally random to me.

When in an entry with problems the CP doesn't seem to be loading correctly. It shows this at the bottom:

In the Chrome Console I get this error:

When trying to upload an image everything looks right, after Submitting and going back into the entry no images are shown though. The images are on the server - I checked that with FTP and the directory settings and permission are identical to other entries that are working.

Anybody with an idea or better skills with the Console to point me into the right direction?


texts:
I recently started getting errors in the control panel on a site that has not been touched in a while.

Message: is_dir(): open_basedir restriction in effect. File(/home/hosting/webs/mysite/mysite.com/web/themes/) is not within the allowed path(s)

Filename: libraries/Core.php

Any idea what could have caused the issue?


texts: Does Assets allow you to use the built in Image Manipulations to resize on upload

texts:
I really want to use the built in Image Manipulations to allow the images to be resized at the time of upload to help remove some of the extra server stress on load in the templates using CE Image.

The idea is to create a few sizes small/medium/large and then use CE Image to modify these if necessary.

I want to continue using Assets, but not sure if the sizes will work with it.

Can anyone advise me if this is possible with Assets 2?


texts: File manager modal appearing at the bottom of publish page

texts:
I'm getting the standard EE file upload modal showing at the bottom of the cp publish page. Any idea what might be causing it?

Many thanks
Lee


texts:
I'm trying to create a way to edit a relationship field on the frontend via the channel form (the new safecracker name). The field appears well, but the search function at the top with the little magnifier doesn't work. It doesn't filter the entries.... Has someone been able to have that working?

I have tried with a playa field too and it works.

Here is a simplified code. Did I miss something?

<html>
<head>
<link href="{path=css/_ee_channel_form_css}" type="text/css" rel="stylesheet" media="screen">
</head>
<body>
{exp:channel:form channel="events" return="events/thanks" entry_id="2" }
    <input name="title" type="text" value="{title}">
    {field:persons}
    <input type="submit" value="Submit">
{/exp:channel:form}
</body>
</html>


texts: MX Title Control not working with Channel Form entries

texts:
I've been using the excellent MX Title Control CE to append the epoch seconds to the end of my URL string so that they end up:

mysite.com/jobs/this-is-a-new-job-1528549

It works great through the back end, but when I use Channel Form the url_title is always set to 0.

Does anyone have any experience of getting these two to play nicely together?

I've included a field for the url_title in my Channel Form which is (I think) all I need to do, though the instructions are a little sparse...

Thanks


texts: MoreEvents Not Saving Events, Dev Log Error

texts:
I have been using MoreEvents for event registrations and now it will no longer save event information (specifically, the Registration cut-off date and ability to open Global Memberships to registration). Because of this, registration functionality no longer works. I noticed in developer log that it was throwing an error:

  Deprecated function set_variable() called in
  system/expressionengine/third_party/moreevents/mcp.moreevents.php on
  line 114. Deprecated since 2.6. Use view-> = ; instead.

Since the add-on is no longer supported, I wanted to find out if this is something that could be fixed? Or, if anyone else has found a fix?

There is a thread over at devot-ee (http://devot-ee.com/add-ons/support/moreevents/viewthread/10239) that references this but the solution that is provided didn't work for me.

Any help or direction would be appreciated.


texts: Wes Baker's "Subscriber" works with Solspace' User?

texts: I'm looking for a way to add via Solspace User to a mailchimp list and I found http://devot-ee.com/add-ons/subscriber and not sure if it works. Wes told me he hasn't tried. Any ideas?


texts: KREA HelpDesk plugin won't let me attach PHP files

texts:
I'm using the KREA HelpDesk plugin. Sometimes when I send a response I want to attach an updated file for the customer to test.

If I try to attach a PHP file to the ticket, I get the message "Error: This file type is not allowed". I can understand the security issue here, files shouldn't be uploaded to the server with the php extension because users could run them. However:

There are ways around this, if the file was uploaded with a *.bin extension or something it would mitigate the security issue.
If I reply to ticket via email and attach a PHP file it works fine.

I've already tried disabling the notorious "Apply XSS Filtering to uploaded files" setting in EE. Has anyone else run into this? Is it a HelpDesk problem or an EE problem? Has anyone found a solution to let HelpDesk/EE accept *.php uploads?


texts: How to create dynamic mailto link with subject as entry title

texts:
I am managing careers on a client's website, and am trying to properly add a mailto link below each career description with an email address from one of the publish fields, as well as adding the subject to be the entry title of the career. I can't figure out how to properly format the entry title with %20 instead of a space. How can I do this? Here is my current code:

Applicants should email resumés to {mailto_email}.

The client wants the email address to be displayed (not encoded), so I am just displaying everything as default. I'm assuming my code will look something like the following, but with the entry title formatted somehow:

Applicants should email resumés to {mailto_email}.


texts:
EE 5.2.2

Using the {exp:channel:calendar} tag, I'm not able to get custom fields from within the {entries} tag.

example:

{exp:channel:calendar channel="showtimes"}
    {if entries}
        {entries}
            {title} // does show
            {showtime} // a custom text field, does not show
        {/entries}
    {/if}
{/exp:channel:calendar}

There also isn't any problem calling things like author or entry_date, but my custom fields are not showing and it's vital that they do.

Thanks for any help!


texts: Issue with fluid fields and conditionals

texts:
I have migrated a channel to using a fluid field instead of the old setup of one body field and one extended text field. The fluid field includes a textarea and a grid field that of course can be used any number of times each.

I managed to sort out that the index displays only the first instance of the textarea and the first instance of the grid field even if there are more. I do that like this:

{westeros_content}

{westeros_content:westeros_text}
{if {westeros_content:count name="westeros_text"} == "1"}{content}{/if}
{/westeros_content:westeros_text}

{westeros_content:westeros_image}
{if {westeros_content:count name="westeros_image"} == "1"}
{content}

{content:image:medium}

{content:caption}
{/content}
{/if}
{/westeros_content:westeros_image}

{/westeros_content}

However, I would also like to offer a “read on” link IF there us more than one text field, and I can’t seem to figure out how to construct that. What I tried was this:

{if {westeros_content:count name="westeros_text"}  > "1"}

read on >>

{/if}

And that gives me the following error:

Error
You have an invalid conditional in your template. Please review your conditionals for an unclosed string, invalid operators, a missing }, or a missing {/if}.

Parser State: Invalid Condition: Not enough operands for operator ” > “.

In Template “Announcements/index” on line 90

Removing the inner curly brackets also do not work, so I can’t quite figure out what I am missing here.


texts: Integrating Solspace "tags" to generate a RSS feed

texts:
I use Solspace tags in my EE template to build a relationship with related articles. For another site, I now want to combine Solspace tags in my RSS template to build customized rss feeds.

I've found this resource as well http://ablognotlimited.com/index.php/articles/customizing-expressionengine-rss-template/

Looking for "how-to" insights before purchasing another instance of Solspace for another site.

Thanks.


texts: Printing Order Summary in Expresso Store

texts: Does store generate a printable order summary for customers?  Anyone do this with any success. Customer wants a "print invoice" button on the order summary page, and I'm not sure how to go about that.  I tried using the HTML/CSS email that goes to the customer (that would print nicely), but of course, when I put that in a template called "invoice" and link to it from the Order Confirmation page, it doesn't parse any of the customer/order variables.


texts:
I'm having inconsistent behavior getting search results. The page in question is here:

http://utk.edu/alpha/

Using that search form with terms like "english" or "calendar", etc. Sometimes the results (or no-results) return just fine. Sometimes, however, the form sends you to www.utk.edu (as is the action on the form) and the process gets "killed" and shows only a white screen.

I cannot really explain why it works sometimes, and not others. I have very similar code (essentially just searching a different channel) elsewhere:
https://www.utk.edu/volunteer_stories/
And that page works fine.

Has anyone seen anything like this?

EDIT: I did a bit more experimentation. I duplicated the template and put it in a different place:
https://www.utk.edu/aboutut/alpha

At that location, the search seems to work a bit more. However, it's the same exact template.


texts: Multiple people using same login at the same time

texts:
Is it acceptable to let multiple people use one member account at the same time? They will all be doing different things or even the same thing at the same time, eg: filling in a freeform form.

I know you can allow multiple logins for one account, but i just need to know if there is any complications by letting them all use the same account at the same time?

Scenario:
A specific department eg: Marketing team all use a member account called 'Marketing' instead of every person in that room having their own individual account?


texts: New at Cartthrob and trying to Hardcode some option

texts:
I read a lot the old forums of Cartthrob and here... Didn't find something to help me understand exactly how Hardcoded option work...

I'm trying to create what you can see in the capture screen that I just post..
All my html is done.

But I can't figure out how to create the script for the hardcoded option... I you can juste tell me  some idea ou link me some post or article that you know that can help me i will very apperciate :)

Thx Guys!

EDIT: Here some new developpement from my part!

I menage to use Matrix to create all the Entry; option_value, option_name color_code and Price. Now my problem is when i'm putting the code together i have a error when I reload my page.

Parse error: syntax error, unexpected 'endif' (T_ENDIF) in /home/hakounan/public_html/clients/ogilvy/system/expressionengine/libraries/Functions.php(680) : eval()'d code on line 1585

{exp:cartthrob:item_options entry_id="{entry_id}" row_id="{row_id}"}
    {options}
    {if selected}
    {option_label}: {option_name}

        {exp:channel:entries channel="products" dynamic="no"}
            {binding}

            {/binding}
        {/exp:channel:entries}
    {/if}
    {/options}
{/exp:cartthrob:item_options}


texts:
I've just installed Channel Polls to test, but find that the answers do not display in the poll. Radio buttons are visible but not the label. when submitting a form this error message displays: No Answer form field found!

Thanks for your help in advance.

Edit:

I set up a clean local install of EE to test, using the same version as the client site: 2.7.3. And used the following template code:

            {exp:channel:entries channel="poll"}
            {exp:channel_polls:new_vote entry_id="1"}

            {poll:answers}

<input type="radio" name="{poll:form_name}" value="{poll:form_value}">   {poll:answer}

            {/poll:answers}

            {if poll:closed}
POLL CLOSED
{/if}
            {if poll:no_access}
YOU HAVE NO ACCESS
{/if}
            {if poll:already_voted}
ALREADY VOTED
{/if}
            {if poll:not_voted}
NOT VOTED YET
{/if}
            <input name="submit" value="VOTE" type="submit">
            {/exp:channel_polls:new_vote}
            {/exp:channel:entries}

CP is version 2.7.5a. Thanks again!


texts: Youtube Thumbnail not pulling through correctly

texts:
We pull through youtube images using CE Image like this:   {exp:ce_img:pair src="https://img.youtube.com/vi/{id}/0.jpg" width="333" height="192" quality="84" interlace="yes" crop="yes"}

This has worked in the past, but now no longer works. It just pulls through the grey youtube default image.

Can anyone help?


texts: How do I make content conditional on domain name?

texts:
I am wrapping up an MSM build that has one domain and three subdomains. Each site has unique Analytics code.

Conditional code based on segment is very useful but I am not sure how to display conditional code based on domain name. It would be handy to use a segment_0, but that obviously does not work.

Is there some other conditional code that would enable display of the analytics code based on the domain name?


texts:
I have MSM setup for 2 sites. One site uses Structure and I have implemented Zoo Triggers for category functionality for a blog. All is working as it should.

The second site does not use MSM but has a blog that uses categories.

I am unable to get categories working in the second site using regular EE categories or Zoo Triggers.

Any help is appreciated.


texts: I can log in to CP locally, but not on staging server? White screen of death

texts:
I've been chasing this for a full 8 hours now.

I'm using the Focus Lab Master Config.

All files on the front end - both locally and on my staging server - display perfectly fine.

I can log into CP locally.

I *cannot log into CP on staging. I get the white screen of death.

I turned on debugging. When I access the CP, I get this error:

A Database Error Occurred Error
Number: 1054
Unknown column 'session_id' in 'field list'
INSERT INTO exp_security_hashes (date, hash, session_id) VALUES (1375809948,'fa2ebb013799a26b30d4acb1964d3156111bb5ff',0) Filename: core/EE_Security.php Line Number: 158

I've attempted as many solutions as I could dig up from Google. Does anything in this particular situation stand out as being the most likely culprit?


texts:
I am using stash to store some common site data and would like to use a grid field to store one of the fields with the user having the option to input 0-4 rows. Is there a way to do this with stash?

So if I was stashing the variables is there anything I use like the switch statement with stash?

Something like:

{grid_field}
    {exp:stash:row_{switch='1|2|3|4'}_col_1}{grid_field:col_1}{/exp:stash:row_{switch='1|2|3|4'}_col_1}
    {exp:stash:row_{switch='1|2|3|4'}_col_2}{grid_field:col_2}{/exp:stash:row_{switch='1|2|3|4'}_col_2}
{/grid_field}


texts: Database Error - Unknown column parent_is_draft in where clause using Playa plugin

texts:
I have a channel in my website called Careers.  I have a playa field setup for locations.  I'm trying to add the location to the job posting in the careers channel.

After I hit submit, I get this error:

A Database Error Occurred
Error Number: 1054
Unknown column 'parent_is_draft' in 'where clause'
DELETE FROM exp_playa_relationships WHERE parent_entry_id = '440' AND parent_field_id = '26' AND parent_is_draft = 0
Filename: third_party/playa/ft.playa.php
Line Number: 2558

Has anyone every seen this error before?  Do you have any idea how to fix it?

EE v2.7.3
Playa Plugin v4.4.5

Also use Blueprints and Structure plugins in our EE install.


texts: Backslashes added to templates, login not working

texts:
About a week ago, one of our sites started acting very strangely.  For some reason, ExpressionEngine has started adding backslashes to all the quotes in the templates. For example:

Overview

Design Excellence

Rare Abilities

Relationships

Testimonials

Our Partners & Clients

Leadership

Community

Latest News

Interested?

Notice all the backslashes (this sample is all static code in the template, BTW).  In the actual template file... no backslashes.  Also, EE won't load in embedded templates.  I assume that is because it is adding the backslash to the template path as well and can't find them.  I can't for the life of me figure out why.

In addition, we are not able to access the Admin through ANY of our logins.  No matter what we use, it says that the login is incorrect.  I have even "successfully" reset the passwords through the "forgot your password" function, but even the reset logins don't work.

Our client did have access to the admin, so my guess is that they added something somewhere that is causing the problem (they swear they didn't, of course).  The site has been running fine for months until just a few days ago.

I found someone else online that had a similar issue, but it was due to the word censor going haywire (see http://ellislab.com/forums/viewthread/190206/).  They were able to turn it off then back on in the Admin and the problem went away.  Even though the symptoms are similar, I don't think that's the issue here.  We aren't able to access the Admin to change the settings, and I commented out the word censor function in EE and it still added the slashes.

If anyone has any ideas on what is happening, I'd greatly appreciate the help.  I'm at my wits end.  Thanks!


texts: Split Channel Entries via {exp:channel:entries}

texts:
I have only recently started working with ExpressionEngine and am currently trying to port my HTML page and work with channels. I just came across a problem that I can't solve. I want to split the entries of a channel into two columns.

The code to display the same entries in both columns currently looks like this:

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

{title}

{aufgabe}

        {/exp:channel:entries}

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

{title}

{aufgabe}

        {/exp:channel:entries}

What adjustments are necessary to make it possible to display half of the entries in the left column and the other half in the right column?

Thanks


texts: Is there a way to convert SolSpace Calendar's recurrence rules into plain English?

texts:
EE 2.10.1
SolSpace Calendar 1.8.14

If I have an event on the 2nd and 4th Wednesdays of every month, how can I programmatically convey that recurrence rule in plain English? I know Calendar provides the {rules}...{/rules} tags inside {exp:calendar:events}, but the variables provided therein don't convert to English very easily.

Here's what I've come up with so far. It's not comprehensive by any means, as all it does is convey the specific recurrence rule I mentioned earlier in English—it's not flexible enough to handle many variations (it doesn't account for if a new rule is an exclusion, it assumes recurrence is monthly, etc).

Schedule:

    {rules}

        {rule_relative_dow backspace="2"}
            {if "{relative_dow}"}
                {relative_dow}{if "{relative_dow}" == 1}st
                {if:elseif "{relative_dow}" == 2}nd
                {if:elseif "{relative_dow}" == 3}rd
                {if:elseif "{relative_dow}"}th
                {/if}
            {/if} &{/rule_relative_dow}
        {rule_days_of_week backspace="2"}{day_of_week}, {/rule_days_of_week}
        of every {if "{rule_repeat_months}" > 1}{rule_repeat_months} months{if:else}month{/if}

    {/rules}

I feel like there should be a more concise way to do this...


texts: Channel Form and Matrix - not saving Data

texts:
I'm building out a multiple page channel form which was working fine until I got to where I need to use a Grid/Matrix field. I was unable to find documentation on how to customize the look of Grid so when with Matrix based on this Meta Q article.

I saw a similar issue on StackExchange Here, but the fix/hack there doesn't work, or rather I was unable find the specific item to change. That is likely due to me being on EE 2.92.

---UPDATE---

Removed original code and adding in new code as I'm closer to a solution

---UPDATE---

My current code minus the js from Meta Q is below:

My Somewhat simplified code is below. With this code if I edit an entry in the CP the matrix cells display the values. However when I save the entry all data for the matrix is deleted. Starting fresh no data is saved. The full matrix has 7 cells but I'm working only with the first cell for now until I get it to save.

{exp:channel:entries channel="tool" url_title="{pre_seg_4}" entry_id="{pre_entry_id}" status="not foo"}

{exp:channel:form
    channel="tool"
    include_jquery="yes"
    include_assets="yes"
    return="tool/page/6/URL_TITLE/ENTRY_ID"
    status="pending"
    url_title="{pre_seg_4}"
    entry_id="{pre_entry_id}"
    author_id="2"
    logged_out_member_id="2"
    require_entry="yes"

    } {!--error_handling="inline"--}

    {!--using matrix fields in channel form
        http://themetaq.com/articles/bring-matrix-data-editing-to-the-front-end
        --}

        {tool_experience2}

            <input class="new_row_id" type="hidden" name="tool_experience2[row_order][]" value="row_id_{row_id}">

                Company
                <input type="text" class="form-control" name="company[row_id_{row_id}][col_id_1]" value="{company}">

            [x]

        {/tool_experience2}

      <input id="new" type="button" value="add row">
      {!--<input type="submit" value="Submit">--}

  <button type="submit" class="btn btn-default">Submit</button>
{/exp:channel:form}
{exp:channel:entries}

And source view for the matrix rows on the front end

                    <input class="new_row_id" type="hidden" name="tool_experience2[row_order][]" value="row_id_2">

                        Company
                        <input type="text" class="form-control" name="company[row_id_2][col_id_1]" value="">

                    [x]

Really need to be able to customize the look of either a Matrix or Grid field. Any thoughts on how to get this fixed/working?


texts: Why is my site giving me a relationship field error?

texts:
I pushed an update to my ee site recently and came across a very strange error where none of my pages work in the site properly and I get a relationship field error on the homepage which was never there before.

This is what I get:

Severity: Warning
Message: Wrong parameter count for array_unique()
Filename: relationship_parser/Tree_builder.php
Line Number: 122

A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 79
Filename: relationship_parser/Parser.php
Line Number: 52

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /var/sites/a/arcadiaportal-beta.co.uk/public_html/system/codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 408

Has anyone ever come across this issue before with the ee relationship field?

Cheers
Mark


texts: What is the best way to determine geolocation in EE?

texts:
I need to be able to determine a visitors location (city, state) when they get to the site and then show them content based on that.

For example, if I go to the site. I would see all the information about the store closest to me, with the ability to change the default store to a different one.

I saw this plugin, but it looks like it's reviews of late haven't been very good.

thanks.


texts: Low Search not finding three letter words

texts:
All three letter words using Low Search are not showing in results yet are showing when I use the native EE search.

These are words such as "Air" or "Ten" which appear in the entry title.
These words appear in the Lexicon and the title has a weight of 3.

Form tag:
{exp:low_search:form result_page='search/lowsearch' collection='products'}

Results Tag:
{exp:low_search:results query='{segment_3}' collection='products' keywords:lang='en'}

Details:
EE: 2.9.2
Low Search: 4.4.1
Collection: products
Min word length: 3


texts: Ban Keywords FreeForm Pro + AJAX Submit not working

texts:
I have a couple of 'ban keywords' set to try and minimise spam in a FreeForm Pro form. The form is inline validated and submitted via ajax/jquery.
In the js code, I'm checking for data.seccess = true.
However, even if I put some banned keywords in the form, I still get success=true and the form submits..
What can I do to make the form not submit when banned keywords are used?


texts: Cart Throb display Discount amount on order

texts:
I want to display the dioscont from a coupon on the order form in Cart Throb.
Is this possible?

{exp:channel:entries channel="orders" entry_id="{segment_3}" show_future_entries="yes" dynamic="no"}
Discount: {order_discount}

Coupon Code: {order_coupons}

{/exp:channel:entries}

When viewing an invoice with the code above I can get the {order_coupons} to display but {order_discount} is always empty and not showing the dollar amount that was discounted.

I also have the field mapped properly in CT settings > orders


texts: Category filters - how do you apply this from a url?

texts:
We have an event listings page that contains a filter to select from a range of event categories and I want to see if it's possible to provide a url that, when visited, will have automatically applied the filter?

For example, our events page is site.com/events/ when on there you click the dropdown and select one of the eight event categories is there a way to append the url to something like site.com/events/category1 so it is already filtered for that category? I've tried adding the category url title, category id etc... but still just gives me an unfiltered event list.

UPDATE
As an example, we have various categories of news items that produces the url site.com/news/c/category_name so I would assume that I could produce the same for events using site.com/events/c/category_name however this doesn't filter them and just shows me all events, I've tried using category_URl and category_ID but none of these work.


texts:
We have a need for a date input.
I want to use jquery UI date picker, and I'm building a third_party plugin for freeform to use to create dates, with options for start and end dates selectable by the end user.
These I'll pass to the front end no prob.

It's getting a little convoluted and It dawned on me that there might be an existing option out there? I can't be the first person ever to want to use dates in freeform... can I?

i'll carry on development, but if there are any pointers out there, I'll listen.

If I hear nothing I'll keep on developing and share my plugin later...

Cheers..


texts: Telling Structure to ignore a URL segment

texts:
I'm a little rusty with how Structure handles URL segments, so hopefully someone here can help. I'm using Structure on a site to handle all of the page management. One of the Structure-managed pages has a form on it:

https://www.domain.com/form/

I've code the form so that upon a successful submission, the user should be redirected to another Structure-managed page:

https://www.domain.com/form/thanks/

However, the form add-on that I'm using automatically appends another segment to the success URL, like so:

https://www.domain.com/form/thanks/9b67c74423314c9dr04dcx6210032052

That last segment is dynamically generated for each form submission by the form add-on. However, as far as Structure is concerned, that additional URL segment is a non-existent page and so it returns a 404.

Is there a way to "trick" Structure into basically ignoring that last URL segment altogether and instead, just displaying https://www.domain.com/form/thanks/?

The site in question is using EE4 (and will be upgraded to EE5 soon) and Structure v4.4.4.


texts:
I'm creating a website that features a number of email addresses within the content.

The client is asking if we can set emails to be automatically converted into images, with hyperlinks behind the scenes, to reduce SPAM.

Firstly, does anyone know if there's a plugin or tool that can be used to do this?

Secondly, any thoughts on whether this is the best way to reduce the amount of SPAM coming to these email addresses?

Thanks in advance,

Tom


texts:
Wiki version 2.3.

Anyone know what the last available version of the first-party Wiki module is for EE2? I have some old wiki living somewhere on a site, and it's pulling this crap:

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 9

SELECT r.*, m.member_id, m.screen_name, m.email, m.url, p.page_namespace, p.page_name AS topic FROM exp_wiki_revisions r, exp_members m, exp_wiki_page p WHERE p.last_updated = r.revision_date AND m.member_id = r.revision_author AND r.page_id = p.page_id AND r.revision_status = 'open' AND r.wiki_id = '1' ORDER BY p.last_updated DESC LIMIT

Filename: modules/wiki/mod.wiki.php

Line Number: 1518

at this address /Special:Recentchanges_Atom. I honestly don't have time to debug something that's pretty damn underused, but it shows up as broken links with our web governance tool, and I just wish to be rid of it. I'm hoping we just missed a sub-version upgrade or something.


texts: Got Hacked ... Need to quickly delete 1000's of members

texts:
Got hacked! One of my client sites was hacked about 6 months ago. They got into the member pages and created 3,900 pages of members. I can delete them one page at a time. but it will take be days to get through them. Is there a work around can access the file or  the use myPHP Admin? The member groups are either 'Members" or 'Pending'. There are only one member groups that I need and that is the 'Super Admin"

Thanks


texts: Cart throb: One product simply order one product with multiple colors in numerous quantities

texts:
Cart throb:
I want to have the ability in CT to have a single product and say order 10 black, 20 green adn 5 yellow all with a single add to cart click

RIght now I have to add each color individually.


texts:
Is there a way to display something if there IS NOT a primary category?

We've tried these with no luck:

{exp:primary_category entry_id="{segment_2}"}

{if primary_category_id}
YES
{if:else}
NO
{/if}

{if primary_category_id} YES {/if}

{if primary_category_id == ""} NO {/if}

{/exp:primary_category}


texts:
I am a EE dev novice. I have created a practice website to learn EE. I am having trouble getting the entries for my channel to show here in the "endorsements section":

http://www.mannawebsites.com/_development_sites/ee3_site/index.php/blog/blog-entry/driving-cars

I am not sure if the error is in the dashboard side of things or in the code.

I made a channel called "endorsements", made a field group called "endorsements". Assigned that field within the channel, made the fields "endorsement_image"/"endorsement_name"/"endorsement", then made one entry, and hard coded the following code in my template:

{exp:channel:entries channel="endorsements" related_categories_mode="yes" dynamic="no" custom_fields="yes" sort="asc" limit="3" status="open"}

{endorsement_name}

{endorsement}

Learn More

{/exp:channel:entries}

Nothing shows in the browser despite all my efforts to troubleshoot. Also, I'm not sure which attributes are necessary here to make this work, I'm just throwing everything I can at it. I have category group "endorsements" category group and a custom field group? Do I even need that for this?

Can someone help me find where the problem is to make this show in the browser?


texts: How to stop external site redirect hijacking?

texts:
We are recently seeing a number of external sites trying to leverage the core of EE to use our site to force referrals that look like they are coming from our domain. My assumption is they are trying this to juice up their referrals for search engine rankings. What they do is hit our site with URLs like:

http://www.macobserver.com/tmo/?URL=http%3A%2F%2Fexpressionengine.stackexchange.com%2F

This then redirects from our site to that external site. In doing some digging this is something built into the EE Core:

/system/expressionengine/libraries/Redirect.php

There is a check that stops the links from auto-redirecting with an interstitial page, but that is only a small bit of protection.

if ($force_redirect == TRUE OR ( ! isset($_SERVER['HTTP_REFERER']) OR !     stristr($_SERVER['HTTP_REFERER'], $host)))
{
    // Possibly not from our site, so we give the user the option
    // Of clicking the link or not

$str = "\n\n<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>\n<title>Redirect</title>\n\n".
        "
To proceed to the URL you have requested, click the link below:
".
        "
".$_GET['URL']."
\n\n";
}

Is there a way to better prevent this kind of "referrer-jacking"?


texts: channel entries to include their respective categories in the title permalink

texts:
My channel entries do not include their respective categories in the title permalink.

How do I get each entries link to include the category in the url?

so my {title_permalink='showroom'} would end up being: showroom/category/cat_url_title/entry_title

{exp:channel:category_archive channel="portfolio" style="linear"}

    {categories}

    {exp:channel:entries channel="portfolio" limit="99" sort="asc" status="not Closed" category="{category_id}"}
    {portfolio_images}

{exp:ce_img:pair src="{cell_2}" width="300" height="200" crop="yes"}{/exp:ce_img:pair}

    {/portfolio_images}
    {/exp:channel:entries}

{category_name}

    {/categories}

    {/exp:channel:category_archive}


texts: International order/donation failing in CartThrob but settling correctly in Authorize.net

texts:
We're having a strange thing happening in CartThrob. We've set it things up to allow people to make donations (one-time or monthly) on the site.

In one particular instance, a donor from Germany attempted to make a donation but CT/EE gave her an error:

  "Payment failed, unspecified error"

In the backend, the error is as so:

This wouldn't be an issue except that Authorize.net processed the transaction successfully:

I'm not sure what would cause this to happen. The donation form is set up to take international info, but maybe I missed something?

Here's what that code looks like: http://pastie.org/private/5kpouwclti1gtkguvdvd7w

Any ideas or suggestions would be helpful! Thanks!


texts:
I have a problem with a channel form working over https.My form allows users edit their profiles for a staff directory and has a lot of fields including some assets , wygwam and matrix fields.When i go to the page over https all of those fields aren't working and i get errors like

Blocked loading mixed active content "http://mysite/themes/third_party/wygwam/lib/ckeditor/ckeditor.js"

Blocked loading mixed active content "http://mysite/themes/third_party/assets/scripts/matrix.min.js?2.5"

So the obvious problem is that these fields are requesting files over http rather than https but im not sure why this is happening.

I have setup my site to convert relative paths in my config

  $protocol                          = (isset($_SERVER['HTTPS']) &&     $_SERVER['HTTP'] == 'on') ? 'https://' : 'http://';
  $base_url                          = $protocol . $_SERVER['HTTP_HOST'];
  $base_path                         = $_SERVER['DOCUMENT_ROOT'];
  $system_folder                     = APPPATH . '../';
  $images_folder                     = 'images';
  $images_path                       = $base_path . '/' . $images_folder;
  $images_url                        = $base_url . '/' . $images_folder;

  $env_config['index_page']          = '';
  $env_config['site_index']          = '';
  $env_config['base_url']            = $base_url . '/';
  $env_config['site_url']            = $env_config['base_url'];
  $env_config['cp_url']              = $env_config['base_url'] .
'admin/index.php';
 $env_config['theme_folder_path']   = $base_path   . '/themes/';
 $env_config['theme_folder_url']    = $base_url    . '/themes/';
 $env_config['third_party_path']    = $base_path   '/admin/expressionengine/third_party/';

I have also set secure_return="yes"  and secure_action="yes" in my form header so im not sure where I am going wrong

Thanks for any help


texts: Safecracker - author_only="yes" - can't view entry when logged out or logged in as another user

texts:
So I've setup a safecracker form, all works great to submit an article and the editing page also works if you're logged in as the author. However if you're logged out you get the following message:

The form you submitted contained the following errors
You are not the author of this entry.

This is fine for the edit page and works as it should do, however when trying to simply view the article it still displays this message, any ideas why?

{if freebie_3 == ""}

  {embed="site/_header" page_name="{segment_1}"}

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

{title}

      {company_bio}

    {company_samples}

    {/company_samples}

  {/exp:channel:entries}

{if:else}

  {embed="site/_header" page_name="edit"}

Your Profile

    {if logged_out}  You aren't a member or aren't logged in.
 Login  | Register  {/if}

    {exp:safecracker channel="profile" author_only="yes" return="companies/URL_TITLE" url_title="{segment_2}" error_handling="inline" include_jquery="no" rte_selector=".rte"}
      {edit-form}
    {/exp:safecracker}

{/if}

{embed="site/_footer"}

I'm using Freebie to detect if segment_3 is empty, if it is then the article is displayed, but if segment_3 is edit then you'll get the edit form. I've tried swapping the ifs around so that if freebie_3 == "edit" but it does exactly the same thing.


texts: How do I import into a Channel Images field using DataGrab?

texts: I'm using XML and DataGrab to move our blog posts to a new home. All the other fields are migrating correctly, but I can't get the Channel Images field to use a image url that's being supplied by my XML file. Is there another way to do this? Is it even possible?


texts: Problems with tag pair in pt_multiselect

texts:
Trying to use the tag pair feature of pt_multiselect (1.0.3 installed on EE 2.5.5) and it doesn't seem to be working correctly

When used as a single tag I get a list of the selected options, however when used as a tag pair so we can tailor the output (and create links) nothing is shown

Works:

{regional_links}

Doesn't work:

{regional_links}

{option_name}

{/regional_links}

The list of data in the admin is formatted correctly with a a colon delimiting the name and the label and is showing fine in the content add / edit screen.

Data:

/asia_pacific/index : Asia Pacific About
/asia_pacific/people : Asia Pacific People
/asia_pacific/locations : Asia Pacific Locations
/asia_pacific/history : Asia Pacific History
/asia_pacific/showcases : Asia Pacific Showcases
/asia_pacific/expertise : Asia Pacific Expertise
/asia_pacific/partners : Asia Pacific Partners
/asia_pacific/contact : Asia Pacific Contact
/northern_europe/index : Northern Europe About
/northern_europe/people : Northern Europe People
/northern_europe/locations : Northern Europe Locations
/northern_europe/history : Northern Europe History
/northern_europe/showcases : Northern Europe Showcases
/northern_europe/expertise : Northern Europe Expertise
/northern_europe/partners : Northern Europe Partners
/northern_europe/contact : Northern Europe Contact
/southern_europe/index : Southern Europe About
/southern_europe/people : Southern Europe People
/southern_europe/locations : Southern Europe Locations
/southern_europe/history : Southern Europe History
/southern_europe/showcases : Southern Europe Showcases
/southern_europe/expertise : Southern Europe Expertise
/southern_europe/partners : Southern Europe Partners
/southern_europe/contact : Southern Europe Contact
/north_america/index : North America About
/north_america/people : North America People
/north_america/locations : North America Locations
/north_america/history : North America History
/north_america/showcases : North America Showcases
/north_america/expertise : North America Expertise
/north_america/partners : North America Partners
/north_america/contact : North America Contact

I know this is an oldish plugin but it is somewhat useful and would be great to get it working.

I've tried a more simple list of

One
Two
Three

Which again works as a single tag to output a list of the selected items, but doesn't work in a tag pair loop.

Any help or suggestions on this are much appreciated.


texts: Unique number/ID in each URL Title Field

texts:
Is it possible to auto insert a unique number/ID in each URL Title Field? For example:

Title: "article of the day"
URL Title: article-of-the-day-123

Thanks


texts: CE Image - Only generating half the images?

texts:
I've recently moved an EE site to a new server (a reasonably beefy VPS from Memset), after lots of hunting around changing paths, I've the site working with only one problem.  CE Image is used on the site heavily, and it seems to be only creating around half the thumbnails per page.

The problem pages are listing pages, so 24 entries per page, each entry has a small thumb created, and a larger (hover) thumb created.  On the new server only half of them are being created (interestingly always the thumb + the hover)

I've checked the originals exist (they do!)
If I reduce from 24 per page to 12 per page, it seems to create 8 of the 12 pairs
Template Debugging is showing no errors.

So I'm a little stumped.. this code works perfectly on the other server, so I'm thinking possibly an Apache / PHP set up issue (more ram? Threads? Workers needed?)

If I inspect the generated code, the HTML looks fine and dandy, with all the file names looking as they should but only half of the images actually exist.

Template code snippet below

        {exp:ce_img:pair src="/originals/if{entry_id}.jpg" max="110" cache="yes" refresh="360"}{/exp:ce_img:pair}

    #{entry_id} / /originals/if{entry_id}.jpg
    view | add to lightbox

Some versions and server info

PHP 5.4.11 (128MB memory limit)
MySQL 5.1.66
Apache 2.2.16 (Debian)
ExpressionEngine 2.4.0
CE Image 2.4.1
Server is a VPS, 2 Cores, 2Gb ram etc.

Any help / ideas / pointers greatly appreciated!  Thanks :-)

Geoff

Edit

A sample of the template debug out put (Basically 24 times the following, with names replaced of course!)

(0.162424 / 10.88MB)        ***  CE Image debug: Base path: '/srv/www/redacted.com/public_html/'
(0.162442 / 10.88MB)        ***  CE Image debug: Source image: '/originals/if133979.jpg', Fallback image: ''
(0.162451 / 10.88MB)        ***  CE Image debug: The image '/srv/www/redacted.com/public_html/images/made/originals/hover-file_name_300_400.jpg' is not cached.
(0.162459 / 10.88MB)        ***  CE Image debug: Image opened '/srv/www/redacted.com/public_html/originals/if133979.jpg'.
(0.162466 / 10.88MB)        ***  CE Image debug: Image saved to /srv/www/redacted.com/public_html/images/made/originals/hover-file_name_300_400.jpg.
(0.162998 / 10.24MB)       -> Data Returned


texts:
I have something like this:

{exp:stash:set name="name"}John{/exp:stash:set}
{stash:embed name="message"}

{exp:stash:set name="name"}Jane{/exp:stash:set}
{stash:embed name="message"}

In the first embed of "message", I want to display "John". In the second embed of "message", I want to display "Jane". Right now, I seeing "Jane" in both rendering of "message". Is there a way to do what I am trying to do?


texts:
I have an MSM site setup but need to change the domain name. I have the new domain name setup and moved the site files to the new domain directory.

I also updated the URLs in the control panel & in the admin.php & index.php files but it does not work. When I visit the new URL, I get the following message: Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php

But the path is correct. What am I missing?

Thanks for any help.

EDIT: Actually, the path was incorrect. I fixed it and now get the Site Error: Unable to Load Site Preferences; No Preferences Found message.


texts: Change number of entries in multiple lists based on viewport size

texts:
I have the code below, where I am generating a new list for each 16 entries using Grouper plugin. Note, these list items are being ordered by last name.

However, when the viewport width is reduced and those columns collapse underneath one another, the alphabetical ordering is no longer correct.

I thought if I used MX Mobile Detect plugin, I could write a conditional to output a different groupby="number" based on the viewport size, but unfortunately that plugin is not working on EE v2.10.1, throws an infinite loop and page won't load, and it doesn't look like it's supported any longer.

2 questions:

Are there any plugins to achieve what I'm trying to accomplish?
If not, any recommendations on how to accomplish this?

HTML:

    {exp:channel:entries channel="speakers" dynamic="off" orderby="last_name" search:navigation_exclude="not y" sort="asc"}
        {exp:grouper:start groupby="16" count="{count}" total="{total_results}"}

        {/exp:grouper:start}

{title}

        {exp:grouper:end groupby="16" count="{count}" total="{total_results}"}

        {/exp:grouper:end}
    {/exp:channel:entries}

As an added note, I was able to build something out that works as a temp fix, but definitely clunky and redundant code and not how I like it. I assigned a different class to each div, large-menu and small-menu.

HTML:

    {exp:channel:entries channel="speakers" dynamic="off" orderby="last_name" search:navigation_exclude="not y" sort="asc"}
        {exp:grouper:start groupby="16" count="{count}" total="{total_results}"}

        {/exp:grouper:start}

{title}

        {exp:grouper:end groupby="16" count="{count}" total="{total_results}"}

        {/exp:grouper:end}
    {/exp:channel:entries}

    {exp:channel:entries channel="speakers" dynamic="off" orderby="last_name" search:navigation_exclude="not y" sort="asc"}
        {exp:grouper:start groupby="45" count="{count}" total="{total_results}"}

        {/exp:grouper:start}

{title}

        {exp:grouper:end groupby="45" count="{count}" total="{total_results}"}

        {/exp:grouper:end}
    {/exp:channel:entries}

CSS:

@media only screen and (max-width: 1023px) {
  .small-menu {
    display: block;
  }
  .large-menu {
    display: none;
  }

}
@media only screen and (min-width: 1024px) {
  .small-menu {
    display: none;
  }
  .large-menu {
    display: block;
  }
}


texts: Multiple Channel Entries on Template - Works for Home Page - Not for Other Pages

texts:
I rarely do any crazy cross/channel templates. Most EE sites I've developed are based on individual channels. I did something that seems to be working for the home page, but not for the interior pages; e.g., anything past index.php/template-name/page-name

Here's my main template code:

{embed="inc/.header.doc-open"}

    {embed="inc/.left-sidebar"}

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

            {content_body}

    {/exp:channel:entries}

    {embed="inc/.right-sidebar"}

    {embed="inc/.footer.doc-close"}

I'm opening/closing channels within each include group; e.g.:

    {exp:channel:entries channel="left"}
        {left_content}
    {/exp:channel:entries}

This seems to be working perfectly on the home page... It sorta works if I just do the following url structure index.php/template-name - This pulls in the most recent entry. Once I put in the actual url title; e.g., index.php/template-name/page-title it pulls the content, but all the includes are messed up. They're getting pulled in, but the content and images aren't.

Any pointers on this?

Thanks!


texts: Send email from EE template with file get contents

texts:
I’m creating a custom ext. that handles form submission + email sending.
When a form or reservation has been made the data is put in EE and 2 emails are being send. One email to the client and one to the admin.
Sometimes my sendMail function doesn’t send the body of the first email and I’m getting an empty email.
The body of the email is an EE template loaded with file_get_contents. When I add sleep(2) (delay execution) before the emails are send it works fine.  I have no idea what the problem is.

Maybe I should do this in another way? Hope you guys can help me out.

public function template_fetch_template($row)
{
    // -------------------------------------------
    // Get the latest version of $row
    // -------------------------------------------
    if (ee()->extensions->last_call !== FALSE)
    {
        $row = ee()->extensions->last_call;
    }

    if (ee()->uri->segment(1) == "reservation")
    {
        $this->reservation();
    }

    return $row;
}

private function reservation()
{

    static $run;
    if ($run) return;

    if (ee()->uri->segment(1) == "reservation" && ee()->uri->segment(2) != "" && ee()->uri->segment(3) == "")
    {
        if (count($_POST))
        {
            $naam = $_POST["naam"];

            ee()->session->create_new_session(2);
            ee()->session->fetch_session_data();
            ee()->session->fetch_member_data();

            $channel_id = 21;

            ee()->load->library('api');
            ee()->api->instantiate('channel_entries');
            ee()->api->instantiate('channel_fields');

            $data = array(
                'entry_id'=> 0,
                'title'=> $naam,
                'entry_date'    => time(),
                'edit_date'     => time(),
                'member_id'     => 2
            );

            ee()->api_channel_fields->setup_entry_settings($channel_id, $data);
            if (ee()->api_channel_entries->save_entry($data, $channel_id))
            {
                $entry_id = ee()->api_channel_entries->entry_id;

                sleep(2);

                // CLIENT EMAIL
                $this->sendMail("e-mail","client_".$this->res_email_template, $entry_id, “xxx@xxx.be”, "Client Reservatie ". ee()->config->_global_vars['site'] . " " . $entry_id);
                // ADMIN EMAIL
                $this->sendMail("e-mail","admin_".$this->res_email_template, $entry_id, “xxx@xxx.be, "Admin Reservatie ". ee()->config->_global_vars['site']. " " . $entry_id);

                ee()->functions->redirect("/".ee()->uri->segment(1)."/".ee()->uri->segment(2)."/".$entry_id);
            }
        }
    }

    $run = true;
}

private function sendMail($template_group, $template, $entry_id, $to_email, $subject)
{
    $config = Array(
          'protocol' => 'smtp',
          'smtp_host' => 'smtp.priorweb.be',
          'smtp_timeout'=>30,
          'smtp_port' => 587,
          'mailtype' => 'html',
          'charset' => 'utf-8',
          'wordwrap' => FALSE
        );

    ee()->email->clear();
    ee()->load->library('email', $config);
        ee()->load->helper('text');
        ee()->email->mailtype = 'html';
        ee()->email->from(‘xxxx@xxxx.be');
        ee()->email->to($to_email);
        ee()->email->subject($subject);
        ee()->email->message(entities_to_ascii(file_get_contents(ee()->config->site_url().ee()->publisher_lib->lang_code."/".$template_group."/".$template."/".$entry_id, FILE_USE_INCLUDE_PATH)));

        ee()->email->send();

        if ( ! ee()->email->send())
    {
            // Send failed, data was not cleared
            ee()->email->clear();
    }
}

/*****/
EMAIL TEMPLATE
SOME HTML WITH THIS TAG

{exp:channel:entries channel="reserveer_berichten" limit="1" dynamic="off" entry_id="{segment_3}"}
    {title}
{/exp:channel:entries}


texts: Multipage freeform pro append anchor to paging_url

texts:
I have a large multipage form on my site which is positioned in the middle of the page. After every page submission the page reloads which means the user has to scroll back down to proceed with the form.

I've been trying to add an anchor into the paging_url attribute so that it automatically focuses on the form after the page reloads but it only appears to be working on the first page. Once I navigate past the first page the anchor is stripped from the URL on all subsequent pages.

paging_url="/{segment_1}/{segment_2}/%page%#screening-form"

Is there a way to get this to work using an anchor? Failing that ajax could be an option and instead of loading a new page it simply pulls in the next question into the page without the browser reloading?

I currently have a less than ideal solution using javascript, the problem being there is a brief moment where the form isn't in view on page load and the jump down to it is noticeable.

function moveWindow () {
    window.location.hash="screening-form";
}


texts: Expresso Store, modifiers and price value for first modifier

texts:
I'm trying to retrieve price value for first modifier (only) within entries tag. My code looks like

{if product_details:price_val!=0}
    {product_details:price_val}
 {if:else}
 {product_details:modifiers}
     {product_details:price_mod_val}
  {/product_details:modifiers}
 {/if}

but always it returns an empty value for first modifier.

Any clue hot to bite that?

Thanks


texts: Multiple Site Manager: how many subdomains?

texts:
According to addon description, there's a limit of 3 sites. Does sub.mainsite.com qualify as a separate "site"?

And if it does, is there a cheaper way to create unlimited subdomains of the same domain?

Thanks.


texts: Early Parsed Low Variable inside Channel Tags

texts:
I have a couple Low Variables I'm using similar to the traditional embed template method. This variable has query module tag to find prev/next entry, but since it's within the channel tag I'm having issues getting the early parsed LV code to output the correct info - which I thought would take care of it.

So I then thought "why don't I take the query tag code and create a new LV that is parsed earlier than it's parent LV.

I'm pretty sure this is a parsing stage issue. So I was wondering if this is even possible since the LV is inside the channel tag? I also moved around the variables to different LV groups to change the parsing sequence, but that didn't work.

My coded simplified is like this:

{exp:channel:entries
    channel="case_studies"
    disable="categories|category_fields|member_data|pagination|trackbacks"
    require_entry="yes"
}
    ...
    {lv_tmpl_utility_belt}
    ...
{/exp:channel:entries}

{lv_tmpl_utility_belt}:

{exp:switchee variable="{segment_1}" parse="inward"}
    {case value=""} {!-- Show Home Utility Bar --}

            {exp:low_variables:pair var="lv_home_hero"}

{hero_tab}

            {/exp:low_variables:pair}

    {/case}

    {case default="yes"} {!-- Show Interior Utility Bar --}

        Navigation Menu

        {lv_ee_casestudy_prevnext_entries}

    {/case}
{/exp:switchee}

 {!-- /#utility-belt --}

{lv_ee_casestudy_prevnext_entries}:

{exp:query sql="
    SELECT
        url_title,
        title
    FROM exp_channel_titles
    WHERE url_title < '{segment_3}'
    AND channel_id = '3'
    AND status = 'open'
    ORDER BY url_title
    DESC LIMIT 1
"}
Previous Case Study
{/exp:query}

{exp:query sql="
    SELECT
        url_title,
        title
    FROM exp_channel_titles
    WHERE url_title > '{segment_3}'
    AND channel_id = '3'
    AND status = 'open'
    ORDER BY url_title
    ASC LIMIT 1
"}
Next Case Study
{/exp:query}


texts:
Is there a way to check if a template group exists either in the templates or in a add-on?

For example, I would want to do something like this

{if {exp:foo:template_exists name="blog/test"} == "true"}
    {embed="bar/qux"}
{if:else}
    {redirect="404"}
{/if}


texts: Query tags and setting up expressionengine to read from 2 databases

texts: I know I can assign 2 databases through codeigniter. Is there a way to tell the query tags which database to pull the information from? I'm having to pull data from an external database.


texts:
Using EEs native Search, is there a way to exclude specific entries from the results?

Enabling, 'Is field searchable?' in the field settings tells EE which fields to use but these are global to the whole Channel.

I've got 4 entries I specifically don't want showing in the results. I'm manually excluding using if statements, hopefully there's a more elegant way of doing this?


texts:
I'm trying to prep an ExpressionEngine 1.7 site for upgrade to ee2 and there are a number of Gypsy fields I need to convert. I'm trying to use the undo_gypsy plugin but nothing happens when I follow the instructions. I've checked all the Group and Weblog IDs and the only thing I can think of is that maybe the site ID might need to be included?

There is no place for a site ID, so I'm stuck.When I run the tag in the new template, the page stays blank and I can't even get an error. I've tried only adding the specific weblogs for the site I'm on and run the template from that weblog and I've tried adding all the weblogs for all sites at the same time but neither seems to work. The new Field Groups have no new fields and the old Gypsy Fields are still there and plugin is still installed.