texts: Update to EE 2.9.2 and BW Required Category stopped working

texts:
After upgrading a site to 2.9.2 (from 2.9.0) it looks like BW required category stopped working.

Is anybody else experiencing this? Can anybody reproduce ? (the add-on is widely used I believe) I get a 'You are not authorized to access this page' error
From what I can see, it looks like it returns an entry_id=0 in the URL, which results in an error.

I disabled the quicksave extension and that's the URL I get:
/cp/content_publish/view_entry&channel_id=1&entry_id=0&S=89068fcf88fe6b9aa32a5f76ed2284f4

before EE 292 upgrade I had this:
/cp/content_publish/entry_form&channel_id=1&S=dae16113bd4f7c4803125dc2ed732045

Is there a way to fix this ?

I contacted the dev via twitter but he says he's not updating his add-ons anymore. Must be something relatively simple to fix but cannot figure it out.


texts: Allow un-logged in user access to a specific channel based on IP address

texts:
I am setting up a site that many different schools around the UK will log into.

Our client would like to have schools access areas that are normally restricted by login without having to log in by using their known IP address.

Is there a plugin out there that will effectively allow access to certain channels if an IP address matches one in a list (or from a range)? Alternatively, is there a plugin or method for automatically logging in users if their IP address matches one set somewhere in the admin?

Thanks,
John.


texts: Categories for e-commerce: n-level deep?

texts:
I'm using Exp-resso Store and need my products categorized (like a typical e-commerce site). What is the best way to categorize products? The product categories are n-level deep.

I don't see how to create parent-child relationships in EE Categories, though reference I've found on the Internet and here on SE seem to suggest that there is no limit to the levels of categories.

Or perhaps I should try creating a Channel that has a relationship field and try to mimic categories that way?

My questions:

Can EE Categories be nested? If so, how?
Is it possible to programmatically populate EE Categories (e.g. via API, DataGrab, etc.)?
Would using the relationship field to implement categories be a bad idea? I know I can populate this via DataGrab, which makes it a tempting solution for me (at least it'll be easy for me to populate -- and possibly easy to also assign products to their respective categories?)


texts: channel form not visible for guests in EE 2.8.1

texts:
Got a weird one.  My channel form is not appearing appearing for guests.

I have the Channel Form settings set to allow guests posts, with the username being a member in the guests member group.

My channel form code is:

{exp:channel:form
channel="testimonials"
return="test/thankyou"
return_3="test/thankyou"
include_jquery="no"
error_handling="inline"
rules:t_first_name="required"
rules:t_last_name="required"
rules:t_email="required"
rules:t_testimonial="required"
logged_out_member_id="3"

Any assistance pointing me in the right direction is appreciated.  Of course, if I'm missing something obvious, definitely send me a textual dope slap!

Thanks

Peter T


texts: How can I format entry_date when using AJW export?

texts:
I'm exporting freeform entries with AJW export, and have no idea how to format the entry_date field when exported as .csv

AJW export documentation doesn't appear to exist, besides a sample EE tag you can use. Has anyone else formatted entry_date when exporting entries as a .csv?

Here is my code (changed filename):

{exp:ajw_export
    sql="SELECT entry_date, form_field_1, form_field_2, form_field_3, form_field_4 FROM exp_freeform_form_entries_1"
    format="csv"
    delimiter=","
    filename="filename.csv"
}


texts: when moving from server, I get error when calling data: Error Number: 1054 Unknown column 'session_id' in 'field list'

texts:
I moved a site from one server to the other.
Before that, I imported a backup. Appearently there is something wrong now.
Most of the tnings seem normal, but I get this on the site, and when I try to login the CP.
This is bad.

How could I repair this?

Error Number: 1054

Unknown column 'session_id' in 'field list'

INSERT INTO `exp_security_hashes` (`date`, `hash`, `session_id`) VALUES (xxlotxxofxxcharactersxx)

Filename: core/EE_Security.php

Line Number: 118


texts: Can’t seem to use Playa fields correctly in Zoo:Visitor Member Details

texts:
I’m having an issue getting my Playa fields to render properly inside of a {exp:zoo_visitor:details} tag.

{exp:channel:entries
 channel="implementation_notes"
 disable="categories|category_fields|member_data|pagination|trackbacks"
 dynamic="off"
 search:implementation_note_segment="{embed:segment_entry_id}"
 author_id="NOT_CURRENT_USER"
}

  {exp:zoo_visitor:details member_id="{author_id}"}

{school}{title}{/school}

Classes: {visitor:member_classes}{class}{title}{/class}, {grade_level:label}{/visitor:member_classes}

  {/exp:zoo_visitor:details}

{entry_date format="%l, %F %j, %Y at %g:%i %a"}

{/exp:channel:entries}

The fields {school} and {class} are not rendering the title for the Playa children, but rather the title of the current implementation_note channel entry. If I try adding visitor: to the playa field, I get the exact same issue. I can get the data as it’s presented in the field in the db by using just the field name, but that gives me the usual Playa string of information that is unusable on the front end.

This is already inside of one embed, I’d really rather not make a separate embed for these children. Am I crazy, and just missing something simple here?


texts: Remove "default site" from MSM installation?

texts:
Is it possible to remove the "default site" from a MSM installation and then remove the MSM plugin, thereby creating a stand alone from the second site?

I'm running EE 2.7.2 with Multiple Site Manager


texts: Filter entries by more than one categories

texts:
I have lot of entries with many category groups.
The template first show all entries, after by selecting a category the url became like this

http://local.site.ext/all/category/category_name

How can I specify a second category to filter more the entries and how url will be?


texts:
I have a client running Expresso Store 2.5.1 with EE 2.10.1. I have to upgrade the server and need to know if Store 2.5.1 will run on PHP 7.1.

Since Store has not been updated to run under EE 3.x, I'm kinda stuck between a rock and a hard place with upgrading.

Any help is appreciated.


texts:
I would like to insert a clearfix div after every third category listing. I have used this method successfully when outputting from {exp:channel:entries} tag pairs, but it appears that the {switch} variable is not available for {exp:channel:categories} tag pairs.

Is there another way to accomplish this (perhaps with CSS, jQuery, or another EE function I'm unaware of)?

{exp:channel:categories channel="Projects" style="linear" show_empty="no" dynamic="no" disable="member_data|pagination"}

        {if category_image}{exp:ce_img:single src="{category_image}" crop="yes" width="420" height="290" filter="auto_sharpen"}
        {if:else}{/if}

{category_name}

{category_description}

{switch='||

'}
{/exp:channel:categories}

Thanks!


texts:
New to Stash and here is what I'm trying to accomplish.  But so far, no such luck.

I have two templates - manage-social-media.html and .layout-account.html

Manage-social-media.html
Here I am gathering all of my content to pass to the layout-account template.  I am using Zoo Visitor, and I have a custom field for “Permissions” (cf_member_firm_permissions) that I’d like to check to see if they can edit their content, or view only.  So the custom field (Fieldpack - Dropdown) looks like this:

... : Select One
read-only : Read Only
editor : Editor

What I want to do is test that variable to see what it is, then set some stash variables accordingly.  Mainly, if they are read-only, I’d like to do the following:

Set Stash variable for:  “Read Only Message” - To tell them why they are unable to edit, and who they can contact.
Set Stash variable for:  “Disalbe form” - I was thinking that I would just add the stash variable (i.e. “disable” to the form fields so they could read them but not edit.  Any other suggestions?

So I got the value for {cf_member_firm_permissions} by doing the following:

{exp:zoo_visitor:details}
    {cf_member_firm_permissions}
{/exp:zoo_visitor:details}

From there, I can’t get it to work.  I’ve tried wrapping the above in a “stash”, wrapping the above around a “stash”, using a switchee statement to test the value of {cf_member_firm_permissions}, using a switchee statement to test the value of stash:user_permissions (after I’ve set it).  I can’t get anything to do what I want.

Of course, all of the above is set within a stash variable “main_content” which is pulled into the layout template.

Here is some of the code that I've tried:

{exp:zoo_visitor:details}
    {exp:switchee variable="{cf_member_firm_permissions}" parse="inward"}
        {case value="read-only"}

Hello Reader Permissions

        {exp:stash:set name="permissions"} disabled{/exp:stash:set}

        {/case}

        {case value="editor"}

Hello Editor Permissions

        {/case}
    {/exp:switchee}
{/exp:zoo_visitor:details}

It displays "Hello Reader Permissions", but won't display anything else.


texts: Solspace Importer: "The following field is required:, The following field is required:"

texts:
I try to import a CSV with Solspace Importer, but I am unable to do so, because of an unhelpful error message:

  The following field is required:, The following field is required:

Of course i checked the CSV for missing entries for required fields, but I don't seem to have any.

In the required fields of the channel I am importing to, there are multiple checkboxes. The data in the CSV for the checkboxes are TRUE or FALSE.

Maybe the error comes from these fields?
How should I import for checkbox values?


texts:
I'm trying to deploy a new version of an EE site which has been upgraded to 2.7.2.

Rather than just overwrite the existing system folder, I'm uploading the new one alongside it (with a different name) but when I update $system_path in admin.php to point to the folder, I get Your system folder path does not appear to be set correctly. If I change it back again, the CP login page loads.

The path/name is definitely correct, I'm just swapping out the name of one for the other and they're both at the same level in the directory structure.

What else could be causing EE to not recognise the new system folder (server is running Windows if that helps)?


texts:
Recently, I moved an EE site from Apache server to Nginx server. But there seems some issues while accessing any other page/link rather than HOME. Its showing only home page. I know that Nginx server does allow htaccess rules so I tested by with index.php on the same but no luck.

PS: EE Control Panel working perfect and I am using NSM Config Bootstrap

Could anyone please help if have faced such an issue? I 'll highly appreciate your help.

Thanks,


texts: Dynamic Filepaths to Assets Files in Wygwam Fields

texts:
How does one go about building a dynamic link to a file managed by Assets within a Wygwam field?

In other words, when we move our EE project from dev.example.com/projects/project_name to example.com, will we have to go back into Wygwam and update all of our paths to any PDFs or images that were linked to within our Wygwam fields, or is there a way to build those links (perhaps using {path}?) so they don't break?


texts: how to write conditional counts with playa?

texts:
Hi I am using playa on a real estate site.

I have properties listed with the realtor that is selling the property and I can get that working fine with playa. My issue is when I have a property that has two realtors selling it. I can listing both of them fine, but I want to have them displayed in an accordion if there are more than one realtor.

This is the code I have thus far :

 {exp:playa:children}
 {if count == "1"}

{title}

{phone}

{agent_email}

 {if:else}

{title}

{phone}

{agent_email}

 {/if}
 {/exp:playa:children}

What I am seeing is single realtors being listed fine, but when there are two realtors it lists the first one as a single and puts the second realtor in the accordion.

Any help would be great, I have been trying to figure this out for a while and can't seem to quite get there.

Thanks!


texts: I am very new to ExpressionEngine and don't quite fully understand all the concepts yet as I come from a solid OOP environment. When would you use functions in modules and when would you use functions in Extensions?


texts: How to stop displaying title of next and privous article in my current article?

texts:
i am using following code for display title of next and previous article in current article detail page

          {exp:channel:prev_entry}
            {exp:channel:entries channel="teaching_tips" dynamic="off" limit="1" sort="desc"}

 &laquo; Previous Article: {title}

            {/exp:channel:entries}
            {/exp:channel:prev_entry}

            {exp:channel:next_entry}
            {exp:channel:entries channel="teaching_tips" dynamic="off" limit="1" sort="desc"}

Next Article: {title} &raquo;

            {/exp:channel:entries}
            {/exp:channel:next_entry}

now i want to display only title of next and previous article which have same channel ="teaching_tips" but this code is display another channel entries how to stop this ?

and i want to display next article link when i will open 1st entry and when i will open last entry i want to display only previous article link how this i can do this ?

Thank you.


texts: Why am I getting different results from the template debugger locally to live

texts:
Why would the MB size on Begin Template Processing be so much different on a site hosted locally to that same site being put on a live server?

And does that have any relevance to page speed?

An example I have set up with just RAW data and minimal HTML shows these results:

Locally

TEMPLATE DEBUGGING
(0.000006 / 1.90MB) Begin Template Processing
(0.000246 / 1.92MB) URI: news
(0.000260 / 1.92MB) Path.php Template:
…

And then On a Dreamhost Server:

(0.000024 / 7.75MB) - Begin Template Processing -
(0.001825 / 7.81MB) URI: news
(0.001866 / 7.81MB) Path.php Template: /
(0.001904 / 7.81MB) Retrieving Template


texts:
I'm using EE 2.9.0 and CE IMG 2.4.5. The primary site has no issues with CE image and the secondary site works great except the secondary site is writing the images to the default site images directory.

// main config.php

$config['ce_image_src_regex'] = array(
'^http://cps.domain.org/' => '/chroot/home/siterootfolder/domain.org/html/cps/',
'^http://devwww.domain.org/' => '/chroot/home/siterootfolder/domain.org/html/devwww/'
);

$config['ce_image_document_root'] = '/chroot/home/siterootfolder/domain.org/html/devwww/';

// root index.php on sub-site
$assign_to_config['global_vars'] = array(); // This array must be associative
$assign_to_config['global_vars']['ce_image_document_root'] = '     /chroot/home/siterootfolder/domain.org/html/cps/';

The file path for the images is outputting, however, being written to the default site. I tried every variation of the above with no avail. Another thing worth mentioning is that these sites are hosted at Nexcess. I tried all the documentation for re: Nexcess. Still no luck.


texts:
I'm looking for a way to handle a grid field with the channel entry API.

Documentation has nothing, and could barely find anything else online about except for this: Inserting a new Grid row using the API, but there is no solution through the API.

Has anyone figured this one out yet?


texts: Saving changes to user profile changes Structure Listing URL

texts:
We have an EE site running Visitor and Structure for our intra-net.  It's set up so that members can edit their profile on the "front end" without logging into the EE dashboard.  However, when someone edits their profile and saves, it resets their Structure Listing Url to "/" and thusly changes the home page for everyone else viewing the intranet.  Any ideas on where I could start digging to figure this one out?

EE 3.5.15
Wiki 3.0.2
Structure 4.3.8
Visitor 3.0.1
Forms 4.0.0
Low Events 2.0.1
Polls 2.0
SEO Lite 1.5.4
Wygwam 4.1.8


texts:
So I'm looking for a work around with Solspaces' Importer and Calendar module and hoping someone has a fix, hack or whatever for this.

My problem is that the two awesome modules do not exactly work together. Importer is great for taking a LOT of data and port that data into EE fields that you can run manually or on a cron. What it doesn't do however is port the DATES into Calendar DATES. This is a big problem for me since I'm using an API to pull in Events.

Has anyone discovered a way to do this? My thoughts were that I could possibly have the date (formatted like so: 2013-10-01 07:30 PM) into a text field and run a MySQL command that would port that information into my Solspace Calendar field.

Is this doable or even thinkable? :) Perhaps I should try DataGrab instead? Or am I just stuck with having to edit each and every event to the end of time?


texts:
When I upgraded to Assets 2, I noticed that when uploading a file from the modal window in a channel entry form that once the file is uploaded, Assets doesn't automatically select it for me anymore. I have to do a search for the filename. Is that the normal behavior for Assets 2? Or am I the only one experiencing this? And, if it's just me, is there any way to solve it.

Here is a step-by-step list of the process:

Open either a new or existing channel entry form
In the Assets field, click Add file
In the Assets modal window, click Upload files
Locate file to upload from file system, then click OK
The file uploads
this is what's not happening: Assets automatically selects the just-uploaded file(s)
Double-click on the newly-uploaded file to add it to the Assets field

Here's a new/interesting discovery: step 6 above does happen when I use a computer that is not on my organization's official network. I'm wondering if it's blocking a Javascript or something like that??

Currently running Assets 2.1, was running Assets 2.0.5, on EE 2.5.2 issue happens in both versions for me.

April 11, 2013

Screenshot of Javascript console errors

The Uncaught TypeError: Object... happened on page load, the Double-instantiating a select... happened (and I'm not really sure if it's an error or just logging) when Assets completes the file upload and selects the document.

Thanks!
- B


texts: CartThrob Redeeming Gift Certificates doesn't work return white page error

texts: Cartthrob dedicated form for redemption doesn't work, it returns white page when submitting with the form a gift certificate code in the field, also balance isn't redempt in backend


texts:
I'm getting the following error using the password reset after following the email link:

  The form you submitted contained the following errors

  The ID number you submitted does not appear to be valid. Please check
  the link you followed.

Is this an EE problem or Freemembe? If Freemember what do I need to do to fix it?

Thanks,

Andrew


texts: The simple search form tag is breaking SSL. How do I go about making the simple search form tag secure over SSL.


texts:
I am trying to pull a listing of custom channel fields in my module and am refactoring to use EE models.

I tried

$this->EE->load->model('field_model');

but that didn't set $this->EE->field_model... as expected.

Any idea on how to use EE models in my module?


texts: Auto add Images to entry after ftp to server

texts:
I have a potential client (car dealership) where in their existing 12 year old site they daily upload an Excel file to add/update/delete vehicles in stock. One file for new vehicles and one for used.

However the excel file does not have a column for images and they are unwilling/unable to add one. Instead they want images to be added in the same way they currently are.

All images are ftp'd up to the server and are named ##_stocknumber so 01_12345, 02_12345, 03_12345 would be attached to the same entry but 01_4455, 02_4455, 03_4455, 04_4455 would be attached to a different entry. After upload the go to a link that processes the images and then emails any stock numbers that are missing images.

Is there some way that this can be achieved in ExpressionEngine?


texts:
My site does not have any items that will be shipped. I have no shipping methods set up. I have no shipping fields present in the checkout. The orders won't submit, and the error messages I'm getting all say "Shipping First Name Required.The Shipping Address 1 field is required.
The Shipping City field is required.

What's my fatal flaw?


texts: How do I track down a bug with a custom field?

texts:
This is related to an channel module php error I am getting. I've been able to determine that if I use disable="custom_fields" the error goes away. On a backup copy of the site I've gone in and removed every addon via the control panel. However, the error persists and is once again eliminated by disabling custom_fields.

My question is, what is my next step in tracking down the bug (or "bad data" as was described to me in my original post).

This is the template that throws the error.

{exp:channel:entries channel='member' status='not closed' dynamic='no' orderby="title" sort="asc" disable="member_data|trackbacks|pagination"}

{title}

{/exp:channel:entries}

This template does not throw the error.

{exp:channel:entries channel='member' status='not closed' dynamic='no' orderby="title" sort="asc" disable="member_data|trackbacks|pagination|custom_fields"}

{title}

{/exp:channel:entries}


texts:
I am seriously going crazy trying to figure out how to change the theme of my site.

Does ExpressionEngine support pre-built themes? If so, how do I switch between them?

If not, how do I change the front-end design of my site?


texts: Using Expression Engine modules in Core + multisite

texts: Is it possible to use some of the modules from the regular version of EE in the EE Core? Also, outside of the multi-site manager for EE, is there any other way to run multiple sites of of the regular version of EE?


texts: EE control panel pages take 10min to load

texts: We have an EE v2.5 site that has been running fine for years. Now over the past few months accessing the control panel has gotten slower and slower. The site still works fine it is only the control panel that is slow. It can take up to 10min for the control panel to respond to logging in or any other page on the control panel site. I have tried disabling all extensions by setting $config['allow_extensions'] = 'n'; in the expressionengine/config/config.php file, but this did not seem to make a difference. I also optimized the MySQL databases. The servers get very little traffic (few hundred page loads a day). The web and database servers each have plenty of hardware resources (4 cores/4GB ram) and plenty of disk space. Any idea what the issue might be? Thx!


texts: How to hide unused member pages from public/google

texts:
I recently discovered that member pages for my EE site are showing up in Google search results, even though I'm not currently using members (beyond super admins) and I have no public member page templates.

Here's an example of the page I'm seeing: http://www.weddingwise.co.nz/member/1

Is there any way to hide all pages with "member" in segment1 so they are not visible to public or to Google?


texts:
Three questions:

I see a lot of unanswered questions in here on CE Cache - is the add on still being supported / used?
I want to use CE-Cache for pages that look at incoming variables (like segment, and embed) and cache the resulting version of the page based on those.  For example:

embed variable - area = 1

I want to cache a version of the resulting template as "1", "2", etc. to match the incoming value of area.  So a page that is normally dynamic for each person's area, would pull up the right cached version of the page.  Can CE Cache do that?

I to use PHP on output in some of my templates - can CE Cache work with that? Or will that not get parsed?


texts:
We're looking for a way to register a user without requiring that they specify a password and instead mail them the password as part of the account verification process.

Is this even remotely possible with EE or a module like Expresso FreeMember?


texts: Why is the text input field limited to 12 characters?

texts:
I have run into the strangest "bug" with EE. I was running 2.5.2 and kept having any text input fields default to 12 characters instead of the normal 128. So I bit the bullet and upgraded to 2.5.5, hoping that would solve the problem. No luck. I just created a new text field, set the default character limit to 128, saved it and when I went back in it had gone back to 12 characters.

Is there a solution for this?

Thanks.


texts: Subscriptions -- Credit Card Required? & OpenGateway Migration

texts:
Can a customer checkout without credit card information by using a voucher? We are using Stripe as the gateway, but certain customers are invoiced differently, (not through Stripe) thinking the vouchers would suffice?
How do you add an existing member in ExpressionEngine to a subscription from the EE Control Panel?
Have you seen any existing Membrr/Opengateway to Subscriber migrations? Any idea what this process entails while retaining existing subscriptions in OpenGateway using Stripe as the payment gateway?


texts:
I am tring to display a list of news items that are related to a particular entry. I might have set it up using categories but this came as a request after the fact and I was using related entries for another purpose so here is what I have.

  {exp:switchee variable = "{segment_4}" parse="inward"}
    {case value="#^P(\d+)$#|''|category"}
      {exp:channel:entries channel="teams" url_title="{segment_3}" limit="1" require_entry="yes"}

{title} Team News

          {parents field="rel_newsTeam" orderby="date" limit="1" paginate="bottom"}

              <time datetime="{parents:entry_date format="%Y-%m-%d"}">{parents:entry_date format="%F %j, %Y"}</time>

{parents:title}{if parents:cf_newsSource}{if parents:cf_newsSourceLink}{/if} ({parents:cf_newsSource}){if parents:cf_newsSourceLink}{/if}{/if}

              {parents:cf_newsBody:excerpt}
              {if parents:cf_newsBody:has_excerpt}

READ MORE

              {/if}

            {parents:paginate}

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

            {/parents:paginate}
          {/parents}

      {/exp:channel:entries}
    {/case}
    {case default="yes"}
      {redirect="404"}
    {/case}
  {/exp:switchee}

The url pattern goes something like this
domain.com/news/teams/specific_team

This works fine to show news entries related to the team. As you can see on the parents field I set it to limit 1 to get pagination to kick in and attempted what I thought would be reasonable (parents:paginate) but it just outputs the tag not any actual pagination.

Any ideas on how I could paginate this or is it not possible?


texts:
I have a form in a HTTPS page. The action that was generated use the HTTPs too

https://foo.com/?ACT=140&...

However, when I tried testing submitting the form, it did not work.

I tried testing using the HTTP protocol

http://foo.com/?ACT=140&...

and it worked(albeit with a warning dialog showing me that it is unsafe).

Is this correct? Is ExpressionEngine unable to process action urls with the HTTPS protocol?

If so, how do I remedy this?


texts: Assets Unable to Load S3 Buckets; No Error Message

texts: When loading the buckets for a new S3 source, Assets is failing silently (no buckets listed in select box, no error message), despite correct S3 credentials.


texts: Simple Registration 1.6.1 compatible with and EE3.5.10?

texts:
Simple Registration displays error messages after installation

Only variables should be assigned by reference
user/addons/simple_registration/libraries/ab/ab_common.php, line 19


texts: Dynamic driven open tags preventing posting a tweet

texts:
We're using open tags in layouts to dynamically drive Twitter and FB previews.
{layout:set name="og-tags"}
<meta name="description" content="{intro}" />
<meta name="keywords" content="Remote Learning, Online Learning, Faculty Online Guidance, UMass Boston" />
<meta name="twitter:card" content="{banner}{url}{/banner}" />
<meta name="twitter:title" content="{title}" />
<meta name="twitter:site" content="@umbelearning" />
<meta property="og:url" content="{url_title_path}" />
<meta property="og:title" content="{title}" />
<meta property="og:description" content="{intro}" />
<meta property="og:image" content="{banner}{url}{/banner}" />

{/layout:set}

The previews not working on twitter (fine on FB). Page source shows tags rendering image but not displaying.
ex) https://teachonline.umb.edu/course-design,  https://teachonline.umb.edu/assessment etc.  And only homepage even shows the card preview.
[see attached]


texts:
I don't understand what's happening. I'm using the gwcode categories addon to get the category of and entry id, it works well when the entry id is present:

   {exp:gwcode_categories group_id="6" entry_id="22" depth="1"}
                   {cat_name}
   {/exp:gwcode_categories}

But when i use the url_title_to_entry_id plugin there is a problem:

  {exp:gwcode_categories group_id="6"
               entry_id="{exp:url_title_to_entry_id url_title="{segment_2}"}
               parse="inward" depth="1"}

                         {cat_name}

     {/exp:gwcode_categories}

The two categories inside the group name (id=6) are displayed instead of the category associated to the entry.

{exp:url_title_to_entry_id url_title="{segment_2} used alone display the correct entry id , so i don't understand why all the categories inside the group name are displayed. What could be the problem?

Edited:

{exp:url_title_to_entry_id url_title="{segment_2} is not parsing the entry_id, so all the categories are displayed. How to parse a variable entry id, inside the gwcode categories?


texts: Conceptual question regarding Store add-on

texts:
In the Payment Gateways section of the Store add-on docs (https://exp-resso.com/docs/payment_gateways.html) it says that the off-site gateways require just one simple payment tag and that No extra configuration is necessary.

What does that actually mean in practice? Can anyone describe the process that a customer would go through in such a scenario? Is the customer taken to an external site during the payment process? If so, at what point in the process? Do customers select items, colors etc. and then get taken to an external site to pay, and finally land back on the original site?

Thanks for any advice or experience with this. :-)


texts: Site uses switchee to serve index or 'static' page; Now getting unexpected 404s

texts:
My site's index page template uses switchee to determine whether to serve up index (home) page or a "single page" entry from the static channel.

I'm attempting to set up a 404 page for the site, and created a 404 template in the default site template group.

Once I set up 404s, all the "static" entries display as 404 instead.

I'd like to keep the option of single pages at the segment_1 level, so the site can add other single-purpose landing pages over time.

My Global Template Preferences:

Enable Strict URLs Yes, No, (this setting makes no difference)
404 Page: site/404 (when set to None, things display okay)

Index template contains the following:

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

{!-- ----- HOME PAGE ----- --}
{case value="index|''"}
       ...
{/case}

{!-- ----- Static Pages + Sidebar Asides ------ --}
    {case default="Yes"}

     {exp:channel:entries
        channel="static"
        limit="1"
        dynamic="no"
        disable="categories"
        require_entry="yes"
        url_title="{segment_1}"
        }

     {if switchee_no_results}{redirect="404"}{/if}

        ...
   {/exp:channel:entries}
    {/case}

{/exp:switchee}

EDIT NOTE (and apology): When I first posted this, I inadvertantly pasted the {if switchee_no_results} outside the {exp:channel:entries} tag pair. But it was inside that tag pair in my actual code. So sorry to have misled you. It was not my intention.

(the if switchee_no_results, require_entry, url_title="{segment_1}" were all recently added while trying to get things working with 404s)

Here is Template Debugging for the about page (an entry in the static channel)

When Global Template Preferences are set to strict=No and 404 Page=None:

(0.000006 / 4.56MB) - Begin Template Processing -
(0.000940 / 4.60MB) URI: about
(0.000952 / 4.60MB) Path.php Template: /
(0.000963 / 4.60MB) Retrieving Template
(0.000972 / 4.60MB) Parsing Template URI
(0.005528 / 4.80MB) Showing index. Template not found: about
(0.005556 / 4.81MB) Retrieving Template from Database: site/index
(0.006652 / 4.81MB) Template Found
(0.007026 / 4.82MB) Retrieving Template from File

When Global Template Preferences changed to 404 Page=site/404

(0.000005 / 4.56MB) - Begin Template Processing -
(0.000966 / 4.60MB) URI: about
(0.000978 / 4.60MB) Path.php Template: /
(0.000989 / 4.60MB) Retrieving Template
(0.000998 / 4.60MB) Parsing Template URI
(0.005462 / 4.80MB) Template group and template not found, showing 404 page

Other things I have tried (which have not made any difference):

{case value="{segment_1}" default="yes"}

Based on James Smith's URL schematic which he mentions here on EESE (topic: strict urls), I fear I broke some cardinal rule about segment_1. I hope not.

Are you aware of any way I can keep the basic setup as described (a single, index template uses switchee to serve up both home page and single entries in the static channel) and make the 404s work right?

UPDATED: I took this conversation to the switchee support forum on devotee, and based on Mark Croxton's response, I implemented a fix and describe it below.


texts: Assets modal window doesn't appear for WYGWAM insert image dialog

texts:
I recall when I installed Assets 1, WYGWAM's insert image dialog would then pull up the Assets file picker. That doesn't happen with Assets 2.0.5.

I'm using WYGWAM 2.7 on EE2.5.5.

Ben


texts: 'site_index' variable in channel:categories has specific URL

texts:
In the following code, I want site_index to continue to point to http://blah.com/ but instead it points to something like http://blah.com/category/catalog/downloads:

{exp:channel:categories channel="downloads" show_empty="no" style="linear"}
    {category_name}
{/exp:channel:categories}

How do I prevent channel:categories from taking over the site_index variable?


texts: How to prevent CartThrob from making hundreds of SQL queries and running extremely slow?

texts:
this may be somewhat of a noob question as I just started administering an ExpressionEngine site that uses CartThrob. My client complained of the site being slow during the shopping / checkout process so I enabled SQL profiling in EE to look into it.

I noticed something strange, which is that CartThrob is making many queries during each page load, far more than I would expect. Basically the page template uses

exp:cartthrob:add_to_cart_form

six times to show six different products. Then uses

exp:cartthrob:item_options

within each one to pull some various information about the product. The strange thing is that a single SQL SELECT and another SQL UPDATE query seem to be running over and over again on the same page (each of them runs over 50 times on one page load).

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

UPDATE `exp_cartthrob_cart`
SET `cart` = 'a-bunch-of-encoded-gibberish',
    `timestamp` = 1386624719,
    `url` = 'http://example.com/product-details'
WHERE `id` = '12345';

Why would cartthrob be running these same queries over and over again, and how can I optimize this code to prevent it?


texts: Solspace Importer - JSON to Matrix data getting mixed up

texts:
I'm importing a JSON feed into entries in my EE site (v2.9.2) using Solspace Importer (v2.2.5).  Everything seemed to work fine - we've been using it in dev for weeks and have run many imports to update entries.  Unfortunately, we just noticed that the data that is being imported into Matrix fields isn't keeping it's organization.

Here is an example node from the feed (I can't share the actual feed because it's sensitive data):

"Scott-Stephanie-2015-03-18-20:48:17": {
        "id": "2242e4a8-b2b2-3ada-adf9",
        "region": "Southwest",
        "text": "Lorem ipsum dolor sit amet, consectetur adipisicing elit.",
        "link": "",
        "video": "",
        "first_name1": "Scott",
        "first_name2": "Stephanie",
        "title": "Our Family Profile",
        "status": "open",
        "paragraphs": [{
            "title": "Paragraph 1",
            "text": "Lorem ipsum dolor sit amet, consectetur adipisicing elit.",
            "link": "https://www.example-image.com/image1.jpg"
        }, {
            "title": "Paragraph 2",
            "text": "Lorem ipsum dolor sit amet, consectetur adipisicing elit.",
            "link": "https://www.example-image.com/image2.jpg"
        }, {
            "title": "Paragraph 3",
            "text": "Lorem ipsum dolor sit amet, consectetur adipisicing elit.",
            "link": ""
        }, {
            "title": "Paragraph 4",
            "text": "Lorem ipsum dolor sit amet, consectetur adipisicing elit.",
            "link": ""
        }, {
            "title": "Paragraph 5",
            "text": "Lorem ipsum dolor sit amet, consectetur adipisicing elit.",
            "link": "https://www.example-image.com/image5.jpg"
        }, {
            "title": "Paragraph 6",
            "text": "Lorem ipsum dolor sit amet, consectetur adipisicing elit.",
            "link": "https://www.example-image.com/image6.jpg"
        }]
    }

You'll see there is a node called "paragraphs" that has values for "title", "text" and "link", the "link" being an image to go along with the paragraph.  Unfortunately, there isn't always an image, so it may be empty.

The problem I'm having is that Importer is ignoring the empty values and grabbing the next available node.  So, in the case of the example above, "image5.jpg" is getting placed in the Matrix row with "Paragraph 3" and "image6.jpg" is getting placed in the Matrix row with "Paragraph 4".  The Matrix rows for paragraphs 5 & 6 will have empty "link" values in EE.

Here is a screenshot of my Importer setup for the "paragraphs" node:

Here is a screenshot of my Matrix settings:

I've tried to keep it as simple as possible.  Any ideas what the issue is?


texts:
I'm setting up four blogs within a large website and have multiple authors for each blog.
I'm setting up these authors as members and would like to show the most active authors (members) with their member photo at the top of each blog. (so the most active authors get "rewarded" with their picture at the top of the blog. up to 6 authors)

what's the easiest way to achieve that?


texts: Alternative ways to configure tags without using segment variables

texts:
I'm using EE for a few years now and pretty often I'm setting up segment variables to dynamically configure tags - like this:

{exp:channel:entries
    channel="{segment_2}"
    entry_id="{segment_3}"
    author_id="{segment_5}"}

{/exp:channel:entries}

Although this is working fine, it tends to make URLs pretty long, which I despise. :(

Now, I've already tried native template routes as well as Resource Router, Stash and other third-party options, but I can't figure out an alternative way to set these dynamic parameters reliably.

Am I missing something?

Is there another method like maybe setting variable across page-loads?


texts: Upgrade from 2.7.2 to 2.10.3 - stuck login

texts: I just went through the upgrade process from 2.7.2 to 2.10.3. Now when I try to login, the login page just refreshes. I've tried different browsers and restarting browsers. No error messages, just a page refresh. Anyone else run into this?


texts: Is it possible that there's some kind of issue for anyone upgrading from EE 2.5.2 to 2.8.1? I've tried it several times now, and what happens is the process starts and initially takes EE to 2.5.5, then stops at 2.6.1. The main admin.php file is then stuck on the welcoming upgrade screen, even when deleting the /installer directory.


texts: DataGrab and Matrix importing issue (no data imported into Matrix Field)

texts:
I'm trying to import data from a CSV into Matrix (2.5.6) using DataGrab (1.7.7) and I'm getting the following errors repeated for each row of data within the CSV

A PHP Error was encountered
Severity: Notice
Message: Undefined index: field_settings
Filename: fieldtypes/datagrab_matrix.php
Line Number: 114
A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: fieldtypes/datagrab_matrix.php
Line Number: 136
A PHP Error was encountered
Severity: Notice
Message: Undefined index: field_settings
Filename: fieldtypes/datagrab_matrix.php
Line Number: 372
A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: fieldtypes/datagrab_matrix.php
Line Number: 397

At the end of the import I should have a single entry with 30 rows in the matrix component, sadly the matrix field is completely empty.

I recognise that the Matrix field import is listed as beta within the tool itself but in this instance it isn't working.

Thanks for any thoughts / help / works for me on this.


texts: Freeform 4.0.12 ceate form button missing in firefox ie and chrome

texts:
Hi guys I just installed freeform and cant create a new form when I am inside the form window and click "new form". The form creation page where I enter the form details opens but there is no create or submit button visible to save my work. Is this only available with pro?

Surely someone else has seen this?


texts:
How do you sort product entries in a numeric order in the Categories field of Settings?  I have rearranged the order, saved and the new order does not appear on the site?
Sorry, I am the end user. I have been left to myself for support by BR. They longer offer support of any kind. Just this forum. I am happy to pay for support, but to no avail.

I want to sort the list of products we offer on our website manually....according to our customers use of the products....mattresses, beds, pillows, etc...

The sorting order is defaulting to Pricing in a descending order.

I have tried to manually change the list order by number under Store, Settings, Categories, Products, edit....

A list of all our products appears with a column that has Sort numbers in it. I can change the numbers, save the list and the new order does NOT appear on the website.

Somewhere it is set to order by Price. I want to find that and override it.

Thanks so much,

Jerrie Noyes www.floatingbed.com


texts: After migration to another server, all pages stop working. Now every pages displays only a "page title". Debug is set to 1, there is no PHP errors. I want to create a 2nd enviroment on the local server (XAMPP 3.2.2), for testing a new template. Any idea why i didn't see a proper page? Where i should start to searching a problem source?


texts:
I've just installed Playa 4.5 to try and get around an edge case I'm having with searching and EE's native relationship fields. I basically need to have a single relationship dropdown in a grid field (again, EE native). The problem is there doesn't seem to be an option to add a Playa field into grid. Is this possible, or do I also have to buy Matrix? (It feels slightly unfair if I do!)

Thanks!


texts: Low Variables & Grid outputting raw code

texts:
I'm working with the grid fieldtype for the first time and attempting to build out a home page slider the same way I would typically do with matrix and low variables.

I have triple checked cell names (and copy/pasted to template code) yet the slider is not displaying the images as expected. My code is here:

{exp:low_variables:pair var="lv-home-slider"}

{/exp:low_variables:pair}

But on the front end it outputs the following.

I've tried setting this variable to early parsing which as expected didn't change a thing. Have attached a screenshot of the grid settings in Low Variables.


texts: Expression Engine 1.7.1 new page generating {segment_3_category_name} tag instead of content

texts:
Yes, its an old version of EE. I take no responsibility for this.
Trying to create a new page, but every time we save a revision and go to Live Look (or go straight to the page on the live site), all of the text from the Body and/or Extended text fields are lumped into the right side-bar, and the "body" of the page just shows:
{segment_3_category_name}
Coming Soon! Please check back later.
Active plugins include Structure and Workflow.
First question here, I'm assuming I'm missing critical information, so please feel free to yell at me for missing something obvious. :D


texts: Solspace User module allow only admin to register

texts:
I'm new to this module. Here is my dilemma. I want have only one person be able to register members and I have to do this through a front end template because I want to be able to assign categories to them. Is it possible to have "allow new member registration" turned off and still accomplish this? I've had issues in the past where I had that turned on and got spammed with 1000's of registrations. Any help would be great!

Here is my template code:

{if logged_in}
 {if group_id == 1 OR group_id == 6}
<-- registration fields -->
 {/if}
{/if}
{if logged_out}
Please login to view this page.
{/if}


texts: Updated Exp:resso Store to 2.1 - Shipping methods field is empty

texts:
We recently updated from Exp:resso Store 1.6 to 2.1 and after the update our client's shipping information is blank.

I looked at the documentation and it appears as though everything should work as it stands.

Below is the shipping code used in the template:

Shipping

{field:shipping_method}
{if error:shipping_method}
{error:shipping_method}
{/if}

{order_shipping}

Any assistance would be greatly appreciated.


texts: v2.6.1, Structure, Multiple Relationships - How do I render the page URL?

texts:
I am using v2.6.1 and the new multi-relationships feature.  I am also using Structure.  My question is, how do I get the structure URL inside of the new relationships tag.  So lets say my related entries field name is "related_news", how could I populate the hyperlink URL?:

{related_news}
    {related_news:title}
{/related_news}


texts: Listing products related to store in google maps search results

texts:
{exp:gmap:results order_by="distance" sort="asc"}
    {if has_searched}
        {results}

            {!-- Entry ID for store is output to console --}
            {exp:channel:entries channel="product"}

                {!-- store entry ID is output to console, not product entry ID --}

                    ...
                    ...
                    ...
                    ...

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

I am trying to output a tabular list of all the products associated with the stores returned by the search results. In this setup, the product entries have a store relationship field. But not vice versa. That is because Channel Form does not allow the submission of data to two entries at a time (i.e. submit the product data to product channel, then append the product ID to the products relationship in the store channel entry).

The products are created by the stores since the store channel is really the channel containing all the member data since I use the Zoo Visitor plugin. So, the stores (i.e. members) create the products.

As I understand it, the {results}{/results} pair tag loops through the store channel. A solution I thought of was to have the product channel entry loop with the author_id parameter set to equal the entry_id of the store channel. But I get no output with this parameter:

{exp:gmap:results order_by="distance" sort="asc"}
    {if has_searched}
        {results}

            {!-- Entry ID for store is output to console --}
            {exp:channel:entries channel="product" author_id="{entry_id}"}

                {!-- store entry ID is output to console, not product entry ID --}

                    ...
                    ...
                    ...
                    ...

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

Without that parameter, I get the products, but I get every single product entry whose repetition is equal to the number of stores. So, I tested to see what entry ID I get inside the outer loop and the inner loop. In both instances I get the store entry ID.

Is there a way to resolve this so that I can 1: filter the products with the author_id parameter being equal to the entry ID of the outer loop entry ID? And 2: fix the inner loop so that {entry_id} returns the product ID, not the store ID?


texts: Safecracker File Fields only uploads the first one

texts:
I'm trying to use multiple Safecracker File fields in a Safecracker form.

I tried to use one matrix field with one column - the SC File field. On submission, no rows or files were added.

I thought it would be easier to take Matrix out of the equation so I changed it to 3 separate SC File fields. Now only the first field gets uploaded. I don't see any errors (tried logged in as Super Admin and Non-Super Admin)

My template code is very simple.

{exp:safecracker ...}
  {custom_fields}
    {if safecracker_file}
      {display_field}
    {/if}
  {/custom_fields}
{/exp:safecracker}

The fields are output correctly, each have unique names.
The following is what is output for each field:

    <input type="hidden" name="CUSTOM_FIELD_NAME_3_hidden" value="">

    <input type="hidden" name="CUSTOM_FIELD_NAME" value="NULL">

    <input type="file" name="CUSTOM_FIELD_NAME" value="">

Running 2.5.3, but I don't see anything in the changelog that directly mentions something like this. I'd realllllly like to avoid upgrading.


texts:
I'm trying to get a Jquery datepicker working with Channel form, but it's only partially working. In my form I have:

Event Start
<input name="event_start_date" id="start_date" value="" type="text">

Event End
<input name="event_end_date" id="end_date" type="text">

In my footer I have:

$(document).ready(function(){
        $("#start_date").datepicker({
            numberOfMonths: 2,
            dateFormat: "dd M yy",
            minDate: 0,
            onSelect: function(dateText, inst) {
                $("#end_date").datepicker("option","minDate", dateText)
                var epoch = $.datepicker.formatDate('@', $(this).datepicker('getDate')) / 1000;
                $('input[name="event_start_date"]').val(epoch);
            }
        });
        $("#end_date").datepicker({
            numberOfMonths: 2,
            dateFormat: "dd M yy",
            minDate: 0,
            onSelect: function(dateText, inst) {
                $("#start_date").datepicker("option","maxDate", dateText)
                var epoch = ($.datepicker.formatDate('@', $(this).datepicker('getDate')) / 1000)+(60*60*24);
                $('input[name="event_start_date"]').val(epoch);
            }
        });
    });

The date picker works fine on another (event search) page, but in Channel Form (event input page) I get a single month instead of two, and selecting a date in the calendar gives me something like:

2015-03-05un5efine5

I'm sure I had this working on an earlier version of EE with Safecracker.


texts: If Any Channel Entries tags - webpage unavailable

texts:
I've inherited a site from another developer and a very strange hosting setup (moving to a new host as soon as I can get the site working locally). I've finally managed to get the site almost working locally (it works fine live). I can login to the CP and make changes there.

The issue that I am having is with the front end. If there are channel entries tags anywhere on the page either the direct template or an embedded template I get a webpage is not available. It's not even a white page. See screenshot attached.

As soon as I remove/comment out channel entries tags the page loads fine. I've tried template_debugging, output_profiler, setting debug = 1 or 2 and nothing outputs anything on the front end to give a clue as to what is going on.

EE 2.7.2.

Any suggestions on how to troubleshoot this?


texts: Fetch entries grouped on custom field value, randomised within each group

texts:
Using EE v2.8.1

I need to display a list of entries, split into 4 groups, the entries should be randomised within each group (entries are grouped on a custom field value, which can be between 1 and 4).

All entries need to be displayed. They also need to be paginated, 9 entries at a time (this is done using Ajax).

They should be presented in order of group:

  group 4 entries (randomised)
  group 3 entries (randomised)
  group 2 entries (randomised)
  group 1 entries (randomised)

Groups may contain any number of entries.

I'm using stash but I can't think of a way to fetch only those entries that are to be displayed on a page, the only method I can think of is to fetch the whole list.


texts: Google Maps for ExpressionEngine Store locator open infowindow from search results

texts:
I'm using Google Maps for ExpressionEngine to create a store locator.

This is the code I'm using to display the results.

{exp:gmap:init id="map" scrollwheel="false" class="distributor-map"}
{exp:gmap:results order_by="distance" sort="asc" match_categories_exact="true" parse="inward"}
    {if has_searched}

        {results}

{title} - {distance}

        {/results}

        {results}
            {exp:gmap:marker id="map" show_one_window="true" latitude="{location_lat}" longitude="{location_lng}" geocode="false" clustering="true"}

{title}

                {address}

                {distributor_postcode}
                {if contact_number}

                     {contact_number}
                {/if}
            {/exp:gmap:marker}
        {/results}
    {if:else}
        {exp:channel:entries channel="distributors" dynamic="no" disable="member_data|pagination" parse="inward"}
            {location_gmap id="map"}
        {/exp:channel:entries}
    {/if}

    {if absolute_count == 1}

Hint: Try searching for 'Hoosier National Forest' at a distance of 20 miles.

    {/if}

    {if no_results}

No results found

        {exp:channel:entries channel="distributors" dynamic="no" disable="member_data|pagination" parse="inward"}
            {location_gmap id="map"}
        {/exp:channel:entries}
    {/if}
{/exp:gmap:results}

I'd like to add a link around the title and distance that will open the info window.

    {results}

{title} - {distance}

    {/results}

Could someone please point me in the right direction?

Thanks

Wayne


texts: Google Maps: Show results with multiple statuses

texts:
In Google Maps, I'm using {exp:gmap:search} and {exp:gmap:results} to create a search form and results listing.

How can I show entries with multiple statuses?

I know I can put a hidden field in the search form to specify a single status: <input type="hidden" name="status" value="pending" />, but I'm not sure how to search multiple.


texts:
I have a basic Freeform contact form that works in Chrome but not Safari, due to:

  This form has expired. Please refresh and try again.

If I clear the EE cache and try again from Safari, it works fine. If I then try Chrome I get the above error.

I have tried using:

input type="hidden" name="XID" value="{XID_HASH}"

...But this doesn't work. I have also tried turning off secure forms in the config:

$config['secure_forms'] = "n";

...And this has no effect either.

There's another form on the site which is very similar, and I have no issues with it.

Any idea what the problem could be?

EE 2.10.1
Freeform 4.2.4, though issue was found in 4.2.3.


texts: Filter Geofinder results if a Matrix field has data

texts:
I've got a simple Geofinder form that's working great but we now want to have the results only show specific entries. The entries we want showing are just the ones that have data in a Matrix field.

Is this possible or is there some sort of workaround? I'm stumped on this one. :/

Edit: I should note that it's possible to use a conditional within the Geofinder results tag ({exp:geofinder:location_results}) to simply not display the entries with an empty Matrix field. Like so:

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

What I've found is that this breaks pagination altogether because the count gets all screwed up. We need pagination to work here.


texts:
I've a channel episodes with a single relationship to the channel shows.
I would like to order my shows by the date of the latest episode.

So i've got this so far (simplified):

{exp:channel:entries dynamic="no" channel="shows" orderby="?" sort="?"}

{title}

       {parents field="epi_show" channel="episode" limit="1" orderby="date" sort="desc"}
         {parents:entry_date format="%d/%m/%y"}
       {/parents}

{/exp:channel:entries}

What's the best way to order these entries by the episode date?

Or should i approach it by a totally other way?


texts:
I'm running a brand-new install of EE 3.3.4 and DevDemon's Updater 4.0. When I try to upload an add-on ZIP file through Updater, it allows me to select a file but then just hangs at the 'uploading, please wait...' message.

No error message is presented, but I did check for Javascript errors and found that the following pops up when submitting a file for upload:

ReferenceError: Spinner is not defined
xhr2Upload()
    addon_mcp.js:114
dialogClosed()
    addon_mcp.js:54
Z.event.dispatch()
    jquery.js:3
Z.event.add/m.handle()
    jquery.js:3

Any ideas on where to go from here?


texts:
I'm hoping this is a simple question to answer ...

How do I download an ExpressionEngine mailing list?

I can easily add emails to an existing or new mailing lists however I can not work out how to download a list (in a spreadsheet or similar).


texts: DataGrab fails if not run from EE Control Panel (logged in)

texts:
We've had an odd issue with a new site that's running DataGrab via CRON on EE2 that I'm really hoping someone can help with.

Everything was working fine for the first few weeks and data was being fed through automatically every 10 minutes. However, we recently noticed that our import URL had stopped working for no apparent reason. Debugging the URL, we receive the following error:

A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: database/DB_active_rec.php
Line Number: 442
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/********/system/codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 475
A Database Error Occurred
Error Number: 1054
Unknown column ‘Array’ in ‘where clause’
SELECT * FROM (exp_member_groups) WHERE group_id = Array
Filename: libraries/Session.php
Line Number: 369

The feed runs successfully within the EE control panel and the Import URL also works if logged into EE. However, when not logged in, the Import URL fails. We’ve tried re-installing and re-configuring DataGrab but that hasn’t made any difference. I can't think of any changes we've made to EE that would have caused the Import URL to start failing.

So my main question is: Can anyone think of a setting within EE that could cause DataGrab to stop working if not logged in? Anything to do with Sessions?

FYI, I have a back-up version from a few weeks ago running on the same server which still works perfectly. I've spent time going through the Control Panel screens trying to compare settings and find something that's different but I can't see any anomalies.

I'm kinda out of ideas on things to try and haven't had a reply from DataGrab's developer.

Really hope someone can help.

Thanks,
Gary


texts: I'm using EE 2.8.1, I can't edit a file in file manager.  If I go to: Content > Files > File Manager.  Select and file and under the Actions column, select edit, I get a page saying I'm not authorised to perform. This happens when I'm logged in as a super admin, and when the client logs in with under their member group as well.


texts: Related Entries broken after upgrade to 2.6

texts:
I just upgraded to 2.6 and everything seemed to go ok until i found a piece of the template code on the site.

{related_entries id="task_lead"}{/related_entries}

Now when i go to the template code it shows:

{related_entries id="task_lead"}{staff_name}{/related_entries}

notice the {staff_name} variable, which i think is kind of weird


texts: Store Shipping Method Changes if Shipping and Billing Details Don't Match

texts:
Using Store 1.6.3
I have only two shipping methods: Collect in store (free), or UK flat delivery fee of £4 per order. When a customer chooses the delivery fee, but then unticks the Shipping Details are the Same as Billing Details, and adds a different shipping address, the method name doesn't change, but the value goes to zero (should stay £4)! I have tested this myself using two UK addresses and sure enough, the total reverts back to £4 once my shipping and billing addresses match.
The live site: http://www.thirstymeeples.co.uk/

Any ideas what causes this? Thanks!


texts: Limiting query module results by member group_id

texts:
I am trying to limit the following query by the member's group id, but having some difficulty with the join statement.

This query works fine:

{exp:query sql="SELECT count(*) as member_count, m_field_id_6 as state
FROM exp_member_data WHERE m_field_id_6 != ''
AND m_field_id_9 = 'USA'
GROUP BY m_field_id_6 ORDER BY m_field_id_6 ASC
"}
  {state} ({member_count})

{/exp:query}

But I am struggling with how to limit by group_id:

{exp:query sql="SELECT count(*) as member_count, m_field_id_6 as state
FROM exp_member_data WHERE m_field_id_6 != ''
AND m_field_id_9 = 'USA'
JOIN exp_members ON exp_members.member_id = exp_member_data.member_id
WHERE exp_members.group_id='5'
GROUP BY m_field_id_6 ORDER BY m_field_id_6 ASC
"}
  {state} ({member_count})

{/exp:query}

The end result would be a directory of members grouped by state. I've maxed out my query knowledge, thank you for any assistance or suggestions.


texts: Trying to post through Channel form anonymously - "The provided member id to use for guest submissions is invalid."

texts:
I'm trying to get Channel From working with non logged in users. Unfortunately with no success. I have

{exp:channel:form channel="calendar_events" return="site/index" logged_out_member_id="3"}

When I try this logged in - it works. When I'm logged out - it says

  The provided member id to use for guest submissions is invalid.

Does anybody experienced these problems with channel form and anonymously posting en entry?

p.s. I allowed the Guest submission in the CP admin -> Channel Form page.


texts: Use different templates for different categories

texts:
I want to use different templates for my categories. E.g. there are 4 templates (t1, t2, t3, t4) and I want to assign them to my categories like

Dogs (t1)
- small dogs (t1)
- big dogs (t1)
Cats (t2)
Fishes (t3)
- small fishes (t3)
- big fishes (t4)

Right now all categories point to one template which is specified in the categories-tag like

{exp:channel:categories ...}
{category_name}
{/exp:channel:categories}

I have a lot of categories, so I want to do it systematically. I cannot list all the categories and manually link them to different templates.

Thanks in advance for any idea!

EDIT in reaction to Phil
The reason why I want to do this to keep the example above: For "Dogs" I have a LOT of content: How to feed them, the funniest name, how to make them obey etc. So I need a template with a lot of lists, links, entries ... For "Cats" I only have some funny pics, so I need a template just with a gallery. And so on.


texts:
I have a cart with a delete button in it. It works fine when I have 1 item in my cart, but when I have an item in my cart with a quantity of more then one, it deletes all the quantities of that item. So when I have an item in my cart 2 times and I delete it, it deletes all 2 of them.

This is my delete button:

<input type="submit" name="remove_items[{key}]" class="remove" value="&#xf00d;" />

It has {items} tags above and under it.


texts:
I'm using "v2.9.2 - Build Date: 20141004" of EE and currently have an "About Us" page where I have a photo of company staff.

Currently the only way to put this into a desired order is to change the "Date Uploaded" to an arbitrary value that corresponds with the desired order as they are sorted by that.

This seems a bit bonkers and I was hoping I could just enter a custom ordering field and sort on that?


texts: How can I validate against a minimum number of words in a safecracker textarea?

texts:
I have a working safecracker entryform. My client would like visitors to write at least X words before submitting the entry.

I would like to show the number of words a visitor has typed in real time (on key up).
Once the amount of words has reached X the visitor should be able to submit the entry.

I've looked at the docs: http://ellislab.com/expressionengine/user-guide/modules/safecracker/index.html#form-validation. They pointed me to http://ellislab.com/codeigniter/user-guide/libraries/form_validation.html#rulereference. The closest rule I found is: min_length. This only gives me a char count.

I'd like to be able to validate by number of words.


texts: Displaying Recent Forum Topics last_author avatar

texts:
On our home page we have a list of the latest forum entries - see http://ellislab.com/expressionengine/user-guide/modules/forum/recent_forum_topics.html. The only thing that is missing is the last_author avatar.

So far I've been trying to get around it with using the last_author ID and replace the image. Example: <img src="/images/avatars/uploads/avatar_{exp:low_replace find="site_url/SITE_INDEX/" replace=""}{last_author_profile_path}{/exp:low_replace}.jpg"> , but if course I get in to trouble if the member have something else then .jpg image.

Have anyone found a solution and will I have to do a hack to the module?

Thanks!
John


texts:
I'm getting:

  Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1321273 bytes) in /system/codeigniter/system/core/Loader.php on line 739

but only when logged in to the control panel as a super admin. Any ideas what might be causing that?


texts: Error using Store with PayPal Express: Security header is not valid

texts:
I am using Store with PayPal Express. I have entered my credentials from my PayPal account.

When I try to make a purchase I get the payment method error "Security header is not valid."

I have tried setting and unsetting the Require SSL connection for checkout and order tags setting in store - makes no diff.

I need help with where to look.


texts: Expression Engine admin page redirects to index view

texts:
I am a newbie to Expression Engine, and am trying to help a local nonprofit with an EE site that was hacked. The details of the hack are unclear.

Their admin page was at a specific URL which now no longer renders the administrative login page. Instead, it renders the site's "home" page (root path.)

Specifically, /main, the admin page, redirects to /main/index.php, which then renders the same content as '/' would have.

My question is - where would you advise me to look for the start of the redirect chain, or to figure out why main/index.php simply renders what /index.php does?


texts:
EE 5.3.0

I have a website that I built using a production domain (let's call it production.com) to replace an old site using the desired domain (let's call it domain.com).

I am concerned with the default base_url setting in making such a change. My experience with domains and such is low and I'm worried that if I change that base_url to the new domain I'll loose access to the control panel. So my thinking was to find that field in the database and I could change it directly if need be, but I can't seem to find that value anywhere.

Does anyone know where that value is saved in the database or if there's a better way to going about doing something like this?

Thanks!


texts:
I'm using a date field type to display the date of an upcoming event, but when its rendered it displays as a string of numbers.  For example, one date displays as "1356393654".  I'm not using any plug-ins, and I've already set the date formatting, which doesn't seem to have an effect.  Any ideas?

            {exp:channel:entries channel="home" disable="categories|member_data|pagination" sort="asc"}

 {title}

{event_date format=%D, %F %d, %Y}

{event_details}

            {/exp:channel:entries}


texts:
Im using prettyphoto to create a staff popout info page when a staff photo is clicked.

Pretty photo calls another template via ajax, which works ok except for the staff email which outputs an error: 'JavaScript must be enabled to view this email address'.
The code in the ajax popup is as follows:

{exp:channel:entries channel="leadershipteam" disable="categories|trackbacks|pagination" sort="asc" entry_id="{embed:entry_id}" limit="1"}

{title}

{staff_title}

{staffdescription}

{if staff_email} E: {staff_email}

{/if}{if staff_phone}P: {staff_phone}
{/if}
{/exp:channel:entries}
{clear}


texts: FreeForm Pro form with "add another row" field

texts:
I'm creating a form where a user can add named people with a Name, Address, Phone and Email. There's also a javascript in place that allows a user to add another row/person. When they click this, it reveals another set of fields for Name, Address, Phone and Email for the second person and so on.

My question is how would I then get this submitted into the form in the Control Panel?

I was wondering if anyone has built anything like this before?

Thanks.


texts: How to paginate or organize Expression Engine by custom field data input

texts:
I have an ExpressionEngine site that takes information entered from an admin, and information entered from users through SafeCracker, and displays that information in a timeline format.

The information that is entered has a custom field called {story_year}. We use that field to sort the entries based on the entered date. This means that users can specify a date, as well as admins.

Because showing hundreds of entries at once takes a long time load, we've introduced pagination. But that pagination breaks it up arbitrarily by amount.

Is there a way to paginate by {story_year}? Possibly conditionals like:

{if story_year >= "2010" }
  {page}

&bull;

  {/page}
{if:elseif story_year >= "2000"}
  {page}

&bull;

  {/page}
{/if}

Relevant URLs are here:
http://thinkx.net/clients/manship/index.php/timeline - the ultimate display of the timeline.
http://thinkx.net/clients/manship/index.php/Timeline/add - the field entries we sort by.


texts:
I am trying to display a member channel entries using the tag {member_id} in the author_id parameter.
Unfortunately the parse order is messing it up, I have tried using the parse="inward" parameter, it made no difference, i have also tried using Stash.

It works fine if i use a {segment} in the URL, but i don't want to do this. I am using an embed and placing the {member_id} as an embed variable to pass to the channel call.

Is there a way to show an users entries without having their member ID in the URL?

Thanks


texts:
I am a channel called products

I need to relate a product to other products

I edit the product say PRODUCT 1 and assign 5 other products to be related to that product
PRODUCT 2
PRODUCT 3
PRODUCT 4
PRODUCT 5
PRODUCT 6

Is it possible that when I go to edit one of the related products PRODUCT 2 that its know its related to PRODUCT 1 and it will be displayed/selected in the playa field automatically?

Thanks


texts: My question is pretty straight to the point.  I want to use WYGWAM as a data type within the Grid field, but it doesn't give me the option to select it?  Anyone know if this is possible?  I know it can be done within Matrix, but if I can just use the native Grid field, I'd prefer that.


texts: Display Entries by URL Title to a Category?

texts:
Let's say I have the following page.

www.mysite.com/about/video/

I have the following links on it.

www.mysite.com/about/video/examples

www.mysite.com/about/video/tutorials

I also have a channel where the user can add a category of either examples or tutorials as the category name which is matched to the URL. Is there a way to display a list of entries that match the third segment of the url string to a category assigned?


texts: Update EE Maps by Reinos height & redraw on button click

texts:
I'm in the process of transitioning a site from an older version of Objective HTML Gmaps to EE Maps by Reinos and I'm having trouble with one feature that the older Gmaps (or perhaps the Google Maps API) made quite easy.

When clicking on a "more map" button on the map, the map was redrawn and resized based on the larger height 150px <-> 400px. This was accomplished with:

google.maps.event.trigger(placesmap, 'resize');

With EE Maps, I'm struggling to make this same behavior happen. If anyone has any experience with this I'm at a loss. I've also given the updateMap EE Maps API call a go

EE_MAPS.api('', {
  mapID : 'ee_map_1',
  options: {height : '400px'}
});

But this likewise doesn't do anything. You can see the behavior on this page.


texts:
I am trying the following with no luck

<?php $category = "{exp:cat2:id category_url_title='{segment_4}'}"; ?>
{exp:playa:parents channel="article|blogs|calendar_events|contests|podcasts|videos" category="<?= $category ?>" field="show" limit="24"}

    // Do something here

{/exp:playa:parents}

This is wrapped by {exp:channel:entries} tag. Now If I provide the value of category hard coded it returns the results but not if I pass it in like the above. Even if I assign the value of $category = '2' it wont return any results. Any ideas ?


texts: Resource files are case sensitive on production server?

texts:
This seems so basic, but how would I make all of my URL's case insensitive? On my dev, everything worked fine, but on production, images are broken, resources are 404, etc.

I know I could do something like this:

RewriteMap tolowercase int:tolower
RewriteRule ^(.*)$ ${tolowercase:$1}

But I don't want to need to rename all of my files.

* EDIT *

I have just renamed my files since I couldn't find a solution yet. The odd thing is that I even had to modify an add-on: acc.theeditorcodemirror.php line 74

$results = $this->EE->db->query("select * from exp_TECM_settings where member_id = '".$this->EE->db->escape_str($this->EE->session->userdata('member_id'))."'");

had to be changed to:

$results = $this->EE->db->query("select * from exp_tecm_settings where member_id = '".$this->EE->db->escape_str($this->EE->session->userdata('member_id'))."'");


texts: Global variable tags {username}, {member_id}, {screen_name} not working

texts:
I've got a weird one going on here. EE 2.8 site.

I wanted to create a conditional based on whether it was ME on the site. I wanted to see some info that was not to be rendered to the normal user. So, I tried to create a conditional like:

{if member_id == '1'}
   show this
{/if}

It didn't work on the post of interest (and my member ID is "1"), so I tried the same with username and screen_name. Still didn't work.

So, I started printing out the {username}, {member_id} and {screen_name} and discovered that they match the author of the post (my wife), not me as the logged in user.

Yet, elsewhere on the site the {screen_name} variable works because I show the name of the currently logged on user.

Does anyone have any idea why these global variables would take on the value of the author (and all three reflect the author whether it is me or my wife), instead of the logged in user?


texts: Images in Wygwam with the CE Image Bulk Tag NOT Responsive

texts:
I have tried to use CE Images Bulk Tag with Wygwam per Ryan Masuga instructions ( http://bit.ly/1NEzxUF ). It works for resizing the images, putting in floats and padding around the image when needed.  One problem when I pull the browser to the next viewport the image does not resize, its not responsive.  I am using bootstrap, so I have added the class .img-responsive. I also added the class #news img {max-width: 100%; height: auto; display:block;}, thinking that might help. Still no image responsive behavior.

example:
http://osd.seeingishosting.com/news/news-view/testing-images

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

{title}

    {exp:ce_img:bulk width="700" crop="no" allow_scale_larger="no" quality="80"
    output=''}

    {main_body_copy}

    {/exp:ce_img:bulk}

{/exp:channel:entries}


texts: Expresso Store UPS Shipping Calculation is off on with multiple quantities

texts:
When calculating a single quantity item in the store using UPS shipping, my shipping calculations work perfect. However, if I add 2 or more quantities, my shipping rates go up but not exactly the same as what UPS is calculating.

[edit] EE 2.5.3 w/ Expresso Store 1.6.2 / IIS 7 / PHP 5.3.6

1X Item Calculation (perfect)
UPS $14.66
Store $14.66

2X Items (different)
UPS $29.32
Store $17.25


texts: Content between {exp:channel:entries} tags won't show up

texts:
First, I'm on EE v2.3.1 using Structure v3.0

I have a channel called "statics"
The "statics" channel uses a field group called "statics_fields" which just has a textarea field called "body" in it.
The "statics" channel uses a template group called "statics_templates" and by default uses "statics_templates/plain"
Everything outside {exp:channel:entries} tag shows up, and nothing inside it does:

    {embed="template_html/header" body_class="about_bg"}
        {exp:structure:breadcrumb here_as_title="yes"}{/exp:structure:breadcrumb}
            {embed="template_html/left_nav"}
                    THIS SHOWS UP
                    {exp:channel:entries channel="statics"}
                        NOTHING IN HERE SHOWS UP
                        {title}
                        {body}
                    {/exp:channel:entries}
    {embed="template_html/footer"}

This happens for every new static page regardless of if it's in the "statics" channel.
Using Structure to move it under a new parent doesn't fix it.
Using Structure to move it up to it's own level without a parent also doesn't work.
No errors show up in the debug output.
No errors show up in the php error log.
The {exp:channel:entries} tag is not nested.

So the question, of course, is:

Why is this broken and how can I fix it?


texts:
How can i stash content globally depending on https or http scheme?

One way is to store it under a context,
but then i have to change all stash set and get tags site-wide to work with a context parameter

{exp:stash:context name="{IS_SSL}"}

{exp:stash:set_list name="news"
  save="yes" replace="no" refresh="30" context="@"
}
{stash:item_link}http://example.com{/stash:item_link}
{/exp:stash:set_list}

Without setting this context, the value would be stored once for 30 minutes, and served to everyone regardless of http scheme.


texts:
I'm looking for a way to sell mp3 files.

Will digital product downloads work if they are hosted on amazon S3 hosting service?


texts: Assets 2.1.2 not showing files on front-end

texts:
I'm doing some local dev with Assets 2.1.2 and trying to get it to output a folders and file structure.

However, I can get the folders to display but no files. Even the tags that are meant to output the count of files/folders don't show there are files there.

The files display perfectly well within Assets in the Control Panel

This is the code I'm using to test.

{exp:assets:folders}

{folder_name}

Total subfolders: {total_subfolders}

        {if total_subfolders}

                {subfolders}

        {/if}

            {exp:assets:files}

Total files: {total_files}

                        {if title != ""}{title}{if:else}{filename}{/if} ({size})

                        {if no_results}
No files
{/if}
            {/exp:assets:files}

{/exp:assets:folders}

The resulting output looks like this

Content images
Total subfolders: 0

Member files
Total subfolders: 0

News images
Total subfolders: 0

Provider Logos
Total subfolders: 0

Projects
Total subfolders: 11

    Committee
    Total subfolders: 10

        Meetings
        Total subfolders: 4

            2012-12-05 Berlin
            Total subfolders: 1

                Presentations
                Total subfolders: 0

            2013-01-28 Paris
            Total subfolders: 0

            2013-04-21 London
            Total subfolders: 0

       Project Groups
       Total subfolders: 4

           PG1
           Total subfolders: 0

           PG2
           Total subfolders: 0

           PG3
           Total subfolders: 0

           PG4
           Total subfolders: 0

Slider images
Total subfolders: 0

There are a number of files in the 2012-12-05 Berlin directory (as well as the top level directories) that just don't show up.

Furthermore adding the folder_id, parent_folder or folder parameters doesn't have any effect on what is output. The list always starts from the top most directory.

I've tried setting it to output from {filedir_6} (which is the Projects directory) but the output is just as above.

So... but in Assets 2.1.2 or am I missing something?


texts: Deploying and Redeploying ExpressionEngine site on LAMP (templates issue)

texts:
Question: What is everyone doing to deploy (capistrano) and the redeploy after the client has changed files on production?

Background:
I have a site in production now. I have deploying down pat with a custom Capistrano script.  Life is (was) great...until the client started editing templates directly on the server (as they should since they won't be doing deploys like me).

My NEW deploy steps now look like this:

Grab a DB dump of the Production database
Import this DB dump into my local database
Delete all local templates from my dev folder and ensure the template group folders have write privileges
Synchronize the templates locally to recreate the files (locally in the EE admin)

Problem is Git sees these files as changed and it just doesn't seem right.

There must be a better way!  One thought is to sftp all templates from Production to local, which would grab the newly edited templates files, but even that seems a bit crazy.

Suggestions?


texts: Saving entry with grid field isn’t working

texts:
I’m creating an ExpressingEngine extension that upon activation, automatically creates a channel with fields. One of the fields the extension creates is a grid field. I create the field like this:

$floor_plans_field = array(
    'field_name' => 'floor_plans',
    'field_label' => 'Floor Plans',
    'field_type' => 'grid',
    'field_order' => 30,
    'field_instructions' => 'The floor plans for the property',
    'field_required' => 'n',
    'field_search' => 'n',
    'field_is_hidden' => 'n',
);

$field = array_merge($floor_plans_field, array(
    'group_id' => $group_id,
    'site_id' => 1,
));

$field_id = $this->EE->api_channel_fields->update_field($field);

$file_column = array(
    'field_id' => $field_id,
    'content_type' => 'channel',
    'col_order' => 1,
    'col_type' => 'file',
    'col_label' => 'File',
    'col_name' => 'file',
    'col_instructions' => 'A floor plan.',
    'col_required' => 'y',
    'col_search' => 'n',
    'col_settings' => json_encode(array(
        'field_content_type' => 'all',
        'show_existing' => 'y',
        'field_required' => 'y',
    )),
);

$query = $this->EE->db->insert('grid_columns', $file_column);

It creates the grid field for floor plans, and a single column for file (so the user can add multiple floor plans to the entry).

However, when I save the entry I get the following error:

  A Database Error Occurred
  Error Number: 1054

  Unknown column 'col_id_5' in 'field list'

  INSERT INTO `exp_channel_grid_field_457` (`col_id_5`, `entry_id`, `row_order`) VALUES ('{filedir_1}banner1.jpg',62,0)

  Filename: models/grid_model.php

  Line Number: 767

It seems as though the ID of the grid column isn’t getting replaced.

Why is this? What am I doing wrong? Any help here would be appreciated as documentation on the grid field is… sparse.


texts: Is there any native/third-party addon to manage pre-order for Cartthrob in expressionengine? or do we've to build something bespoke? Any idea?


texts: Via a module, how do I get a specific function to fire when I submit a form?

texts:
Below are the four required files to install a module that I created. They are all located within the '/third_party/database_add/' folder. My issue and my question is located after these files, which I am including to show what I've done so far.

File: database_add_lang.php

Location: /third_party/database_add/language/english/

$lang = array(
'my_module_module_name'     => 'Database_add',
'my_module_module_description'  => 'Contains functionality to add a user to the user table',
''=>''
);

File: mcp.database_add.php

Location: /third_party/database_add/

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
    class Module_name_mcp {
    }
/* End of file mcp.module_name.php */
/* Location: ./system/expressionengine/third_party/database_add/mcp.database_add.php */

File: mod.database_add.php

Location: /third_party/database_add/

class Database_add{
    var $return_data = '';

    function register(){
        $username = "john"
        $passhash = "smith"
        $data = array(
            'User_Name'     =>$username,
            'User_Passhash' =>$passhash
        );
        $query = ee()->db->insert('exp_user', $data);
    }

    function form(){
      $return_data = ee()->functions->form_declaration(array(
        'hidden_fields' => array(
          'ACT' => ee()->functions->fetch_action_id('Database_add', 'register'),
        ),
      ));

      $return_data .= ee()->TMPL->tagdata;
      $return_data .= '</form>';
      return $return_data;
    }
}

File: upd.database_add.php

Location: /third_party/database_add/

class Database_add_upd{
    var $version = '1.0';

    function install(){
        $data = array(
            'module_name'       => 'Database_add',
            'module_version'    => $this->version,
            'has_cp_backend'    => 'n',
            'has_publish_fields'=> 'n'
        );
        ee()->db->insert('modules', $data);

        $data = array(
            'class'     => 'Database_add',
            'method'    => 'add_user'
        );
        ee()->db->insert('actions', $data);
    }

    function uninstall(){
        ee()->load->dbforge();

        ee()->db->select('module_id');
        $query = ee()->db->get_where('modules', array('module_name' => 'Database_add'));

        ee()->db->where('module_id', $query->row('module_id'));
        ee()->db->delete('module_member_groups');

        ee()->db->where('module_name', 'Database_add');
        ee()->db->delete('modules');

        ee()->db->where('class', 'Database_add');
        ee()->db->delete('actions');

        return TRUE;
    }

    function update($current = ''){
        return FALSE;
    }
}

That is my file structure. I followed this EllisLab tutorial to get this far. My front-end form code looks like this:

{exp:database_add:form}
    <input class="text_box" type="text" name="username" id="username" />
    <input class="text_box" type="password" name="password" id="password" />
    <input type="submit" name="submit_button" value="Register" />
{/exp:database_add:form}

The above form is simplified of course. The form successfully renders as this:

Now take a look at my register() function. No matter what I enter into the above form, I expect register() to fire, and the username "john" with the passhash "smith" to be entered into the "exp_user" table. That doesn't happen. The table remains empty. All that happens is my blank 'index.php' page loads.

My question is: How do I get the register() function to fire when I press the Submit button on the form?


texts:
I am looking after an EE1 site that uses the Repeet add-on by Studio625: Brent C. Wilson. It seems to only be compatible with EE1. I am in the process of upgrading the site to EE2 and copied the version of the EE1 plugin that I have to the third_party folder anyway. I am now getting this error, which I assume is because the original add-on is not compatible with EE2.

Fatal error: Call to a member function fetch_param() on a non-object in \system\expressionengine\third_party\repeet\pi.repeet.php on line 91

What should I do to fix this? Could I install the Solspace Calendar add-on and would that work seamslessly?


texts: Search Date on channel field of type date

texts:
I have a form which will have a date range split into day month year as 3 individual HTML select options for FROM and TO -

From: SELECT option day, month year

To: SELECT option day, month, year

I need to search on a channel field of type date (Currently stored as a UNIX time stamp)

What would be the best solution to get the entire range to search and how best to convert the date supplied?

I am not seeing the default search functionality will help me?


texts: How do you separate Handling charge from shipping?

texts: We'd like to use the default handling charge as part of Store but in a different way.  We are adding a handling charge to each item but we want it to be separate from shipping and also allow us to rename it on the front end from Handling to whatever we'd like.  The handling charge is actually a Ticketing Fee and on our end having it show up as handling charge is fine we just would like it separate from Shipping and still show shipping as $0 on the front end since we don't ship some products.


texts: The word "title" breaks simple Matrix conditional

texts:
Just found a super strange bug which is breaking a basic Matrix conditional.

The conditional is:

{if caption != ''}

And if the caption is this:

  Gérard Depardieu in the role of the title Rasputin, dir. by Irakli Kvirkadze (2013) this year's closing film

an error is caused:

Message: Invalid EE Conditional Variable: {if "Gérard Depardieu in the role of the "Lights, camera, inaction: is Moscow International Film Festival doomed to mediocrity?" Rasputin, dir. by Irakli Kvirkadze (2013) this year's clo" != ''}

Because the word "title" is missing from the error, it looks like EE is trying to parse it.

What causes this and what is the fix?

Just an update - using Matrix 2.5.5, and EE 2.5.5.


texts: Calling extension or module method from plugin

texts:
I need to call an extension or module method from a plugin.

Anyone know how to do that?

Eventually solved with this code:

include_once(PATH_THIRD.'extension/mod.extension.php');
$this->EE->load->add_package_path(PATH_THIRD.'extension/');
$ext = new Extensionclass();
$PI = $ext->extension_function($params);


texts: How can I create a dropdown menu of child pages from Structure?

texts:
I would like to have a select menu for the child pages of a page in a site using the Structure plugin. However some of the pages don't have child pages so they wouldn't need the select menu to display. a) How do I create the select menu so that you will be taken to the child page when you select it in a dropdown and b) what conditional do I use to see if there are any child pages?

Currently I have a nav using:

{exp:structure:nav start_from="/{segment_1}/{segment_2}"}

Thanks in advance.


texts:
I have field group with Wygwam and Content Elements.
When I select Wysiwyg field in Content Elements, the Wygwam stops working, that is, buttons are not shown.

EE: 2.6.1
Wygwam: 2.7.1
Content Elements: 1.3.1

here is screenshot http://screencast.com/t/GML5I1TNhXG


texts:
EE 3.4.2

Working on an EE3 Extension.

I am able to utilize the channel_form_entry_form_tagdata_start to inject the custom field I need to for my Extension. This is a simple field (text) that is only being 'checked'. It isn't being added to the entry or the database.

The problem is when I try to capture that field using the channel_form_submit_entry_start hook, my injected field is nowhere to be found.

I can verify it is being added and rendered in the form Channel Entry form as needed, but nothing is passed.

Again, I don't need it to be added to the entry and it isn't being kept in the db. Should the submission not be passing the data in the POST??

In my method for the hook, I am simply dumping the results to see everything like this:

        var_dump($channel_form_obj);
        exit;


texts: Does channel ratings (4.0.8) work with EE version 2.9.2?

texts:
I have channel ratings in place from dev demon (4.0.8) and running on EE 2.9.2, using the default code supplied in the docs as follows:

{exp:channel_ratings:rating_comment_avg entry_id="{entry_id}"}

Value For Money: {rating:value_for_money:stars} ({rating:value_for_money:avg} of 5)

Taste: {rating:taste:stars} ({rating:taste:avg} of 5)

Quality: {rating:quality:stars} ({rating:quality:avg} of 5)

OVERALL: {rating:overall:stars} ({rating:overall:avg} of 5)

{/exp:channel_ratings:rating_comment_avg}

{exp:comment:form channel="products" rating:collection="products" entry_id="{entry_id}" dynamic="off" rating:enabled="yes"}
    {if rating:already_rated} You have already reviewed this product.{/if}
    {if rating:not_rated}
         Name: <input type="text" name="name" value="{screen_name}" size="50" />

         Email: <input type="text" name="email" value="{email}" size="50" />

        {rating:fields}
            {rating:field_title}
             <select name="{rating:form_name}">
                 <option value="1">1</option>
                 <option value="2">2</option>
                  <option value="3">3</option>
                  <option value="4">4</option>
                  <option value="5">5</option>
              </select>
         {/rating:fields}

        Review
         <textarea name="comment" cols="70" rows="2"></textarea>

         <input type="submit" value="Submit Review">
    {/if}
{/exp:comment:form}

If I take out the variable "rating enabled=yes" from that form, the comments form renders perfectly. Once I put this in the form as above, I get no form rendered at all.

My channel allows comments (even said 'allow guests' for the laugh) and the form appears, and my admin panel renders the module information correctly, so I know my themes are in the right spot.

Am I missing something? If so, I would love a tip-off on what's wrong.

Edited for my comment below: I can enter information as a guest if I allow guests and I can rate items, but this is not showing up in my module's home page.


texts: How many articles are present in my site?

texts: I'm using EE 1.7.3, and I'd like to know how many articles are present in my site (there are thousands, want an exact number). Where can I find this?


texts: Display a single Calendar Event that spans the current date

texts:
I am using Calendar in an attempt to display an Event as a single entry. I have previous events and upcoming events. I need to display the "Current Event". In other words, if the event spans the dates 9-15-2015, 9-16-2015, and 9-17-2015 I need to display it if today is 9-16-2015. If there is NOT an event spanning the current date, I need to show the NEXT event in the calendar. I am using a single calendar for this site.

I want the user to be able to enter a 'range' or add rules as seperate days and times. For that reason, I have this in my date/time display:

{if event_has_rules}
    {rules}

    {/rules}
{/if}
{if event_recurs}
    {occurrences}
        {occurrence_start_date format="%l %m-%d-%Y"} &mdash; {occurrence_start_date format="%g:%i%a"} - {occurrence_end_date format="%g:%i%a"}

    {/occurrences}
{/if}

I haven't quite figured the rules syntax without blowing up my template yet though...

My primary issue is with displaying the "current" event.

I have this right now:

{exp:calendar:events
    calendar_id="20"
    event_limit="1"
    date_range_start="{current_time format='%Y-%m-%d @ %h:%i %A'}"
    show_days="-14"
    dynamic="no"
}

I tried the -14 in an attempt to catch anything starting 14 days before the current day.

I also tried without the date_range_start in there at all.


texts:
I have found how to set/get browser cookies using older versions of EE (1&2) and can obviously do this also in EE 3 using legacy functions/libraries.

How would I do this in EE 3 NOT using legacy functions?

I would like to store a shopping chart for not yet registed users.


texts: I am currently setting up a site with cartthrob, and we need the mollie gateway for payments. Is this available?


texts:
My EE build is appending these strange anchors to the end of all pages. It's not actually causing any problems, but want to send to the client and want to understand why.

http://s168070.gridserver.com/community/#.UZ5IgqvFQrU

Any tips!?


texts: Anyone have luck in getting the Stash-style of pagination to work with Infinite Scroll? Is it possible?


texts: Malformed href using {url} for slider link

texts:
I have a slider at the top of my page using this HTML:

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

        {home_promo_slider}
            {if active == 'y'}
                {if row_count == 2}

                {/if}

                    {if url != ''}{/if}

                    {if url != ''}{/if}

            {/if}
        {/home_promo_slider}

I want to link the images to a URL specified in the Homepage Content using a channel field. The problem is that this only works for internal links currently. If I enter "store" into the URL field it correctly takes me to http://mywebsite.com/store, but if I enter an external link such as http://google.com, the href becomes malformed and spits out this:

http://google.com

Any ideas? Thanks in advance!


texts:
I want to build a very simple linear survey with multiple choice questions.

Each answer will be assigned a numeric value and I was hoping to pass that value via segment variables.

So at the end of the survey I could do something like:

segment_1 plus segment_2 plus segment_3

= (value)

e.g mysite.com/template/01/08/09

would give a numeric value of 18

And then use that value to conditionally display another template.

Is this possible, advisable or just plain crazy?

Thanks.


texts: Database error when updating Assets 1.1.4 to latest (2.2.4)

texts:
EE v2.4 but also tried updating first to EE 2.8 with same results as per below.

Christiaan

When trying to update I receive the following:

A Database Error Occurred
Error Number: 1265

Data truncated for column 'folder_id' at row 2

ALTER TABLE exp_assets_files MODIFY COLUMN `folder_id` INT(10) NOT NULL AFTER `file_id`

Filename: /Library/WebServer/sites/disegno/_ee/_third_party/assets/upd.assets.php

Line Number: 551

And then if I try again I get the following:

A Database Error Occurred
Error Number: 1146

Table 'disegno_com_au.exp_assets_entries' doesn't exist

SHOW COLUMNS FROM `exp_assets_entries` LIKE "var_id"

Filename: /Library/WebServer/sites/disegno/_ee/_third_party/assets/upd.assets.php

Line Number: 341