texts: exp_cartthrob_cart is marked as crashed and should be repaired

texts:
On two separate websites in the past few months (one with EE 2.8.1 and CartThrob 2.6, and another with EE 2.5.5 and CartThrob 2.3.6), we've had an EE website break due to a corrupted CartThrob table (showing a white screen to users). This is the error message we had:

Error Number: 145
Table './databasename/exp_cartthrob_cart' is marked as crashed and should be repaired
SELECT `cart` FROM (`exp_cartthrob_cart`) WHERE `id` = '0' LIMIT 1
Filename: third_party/cartthrob/models/cart_model.php
Line Number: 28

To fix the issue, we simply repaired the exp_cartthrob_cart table in phpMyAdmin. For info, this is what phpMyAdmin said about the table before we repaired it:

And in the SQL dump we did before the repair, it only exported the following for this table:

-- Table structure for table `exp_cartthrob_cart`
--
-- in use(#145 - Table './databasename/exp_cartthrob_cart' is marked as crashed and should be repaired)
-- Error reading data: (#145 - Table './databasename/exp_cartthrob_cart' is marked as crashed and should be repaired)

Although the fix was simple, I'm concerned in case the issue happens again, given it's already happened twice now on two different sites (both on different web servers too).

Does anyone have any idea why this might have happened and how we can stop it from happening again please? Thanks.


texts: URL to the root directory of your site not saving (blank)

texts:
In the global configuration:

URL to the root directory of your site
This is the directory containing your site index file.

will not save. The form field is blanks. I had this error in 2.8.1 and have updated to latest hoping to fix the issue but it still exists.

Any ideas?

I've double checked permissions on folders and files.


texts: Displaying column labels from a Matrix field

texts:
Is there's a way to display column labels from a Matrix field in templates?

{matrix_field}
{column:label} : {columnvalue}
{/matrix_field}


texts:
Is there a way to set the default language to Dutch on the front-end of Store?
I can't see it in the CP.

Right now I'm getting partial translated Errors when leaving required fields blank. Like: "The Naam field is required" Where "Naam" is the dutch translation.

Is Store looking on OS or browser lang settings?

I hope I can set it so it's always Dutch.

Tnx,
Martijn


texts: Having embeded include use channel fields

texts:
I am using BrilliantRetail and on my product page, I have tabs with different information about the products. The code for the tabs is pretty long so I would like to make it an include and then embed it within my loop. However, when I do this, the channel fields aren't recognized, is there any way to accomplish this without putting the loop inside the include? Also, please let me know if there is a better way to accomplish my IF statement for the store IDs. Thanks in advance!

{exp:brilliant_retail:product}

                {if "{store_id}" == "2641" OR "{store_id}" == "2635" OR "{store_id}" == "2572" OR "{store_id}" == "2619" OR "{store_id}" == "2576"}
                    {embed="_includes/tabs"}
                {if:else}
                    {detail}
                {/if}

{/exp:brilliant_retail:product}


texts: Expression Engine Importer(solspace) scheduled cron jobs don't update entry

texts: I scheduled the import job using curl, but it doesn't update the entries. If I visit the link in browser, it works fine.


texts: Enable Strict URLs triggers 404 on search results

texts:
Wonder if anyone else bumped into this issue using Structure & Low Search. Enabling strict URL's results in a 404 on search which {segment_2} triggers.

The 404 rule looks for the template name which won't be there as Structure doesn't work like that, so how can I tell the search module what the template name is?

Low suggested using Freebie, but before I delve into yet another add-on to patch an add-on I was hoping to find a solution here:-)

Low Search code:

{exp:low_search:results query="{segment_2}" status="not closed" disable="categories|member_data"}
{if count == 1}

{if low_search_keywords}You searched for {low_search_keywords}{/if}
and we have found {absolute_results} matches.

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

{exp:low_search:results query="{segment_2}" status="not closed" disable="categories|member_data"}

{if page_url != ''}

{title}

{if:else}

{title}

{/if}

Found in  {low_search_collection_label}.

{low_search_excerpt}

{paginate}

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

{/paginate}
{if no_results}

Sorry, your query did not return any results.
Check your spelling or try a different search term.

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

Running EE 2.5+ & all add-ons up-to-date


texts: Assets + Low Variables // Limiting and Ordering By "Random"

texts:
Trying to do something I feel should be very simple to execute, but I cannot for the life of me seem to get it to work.

Here's my template snippet:

{exp:low_variables:parse var="lv_home_featured_images" limit="1" orderby="random"}
{exp:ce_img:single src="{url}" height="500" width="1200" crop="yes" attributes="style='width:1200px;height:500px;' alt='ALT'"}
{/exp:low_variables:parse}

I've got two images loaded into a Low Variable which has a fieldtype set to Assets.

Instead of getting just one random image selected, the same image keeps coming up over and over.

Running EE 2.7.0, Low Vars 2.3.5 and Assets 2.1.4. Any insight would be appreciated.

Thanks!
~
Wes


texts: Return paramater after form submission (in custom module)

texts:
I am building a custom module. In my module I have a form function which basically creates the form.

When this form is submitted, I want the form to return to a specific URL.

I have added a 'RET' hidden field to the form with the correct URL, but I am unsure how to have the form actual use this.  Can anyone show me what I need to add to my existing code to achieve this.

public function form()
{
    $entry_id = $this->EE->TMPL->fetch_param('entry_id');
    if( $entry_id === FALSE ) {
        return "";
    }

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

    $hidden_fields = array(
        "entry_id" => $entry_id,
        "ACT" => $this->EE->functions->fetch_action_id( 'Cdwd_waiting_list', 'submit_record' ),
        "RET" => $return
    );

    $form_data = array(
        "id" => $this->EE->TMPL->form_id,
        "class" => $this->EE->TMPL->form_class,
        "hidden_fields" => $hidden_fields
    );

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

    $form = $this->EE->functions->form_declaration($form_data) .
        $tagdata . "</form>";

    return $form;
}


texts: Freeform 4.2.4 on ExpressionEngine 2.11.2

texts:
I cannot get emails sent to my inbox from any of the freeforms.

I have tested EE's communication tool and our server successfully.  It seems that freeform is no longer compatible with this version of EE.

Is there any way to fix this or revert to an older version of Freeform?


texts: Freeform form description in user notification emails

texts:
How do I add the form description to a user notification email template?
I can't see a list of available variables in the documentation, but just about all other variables are listed on the side of the template editor in the CP.
I tried {form_description}, but that didn't work..


texts: Discussion Forum 3.1.15 - This form has expired

texts:
I'm on EE 2.8.1 and Discussion Forum 3.1.15 and when I try unsubscribe from forum threads I get this error message: This form has expired. Please refresh and try again.

I tried to updated the config.php file with the info on this thread without success:
Error After Install

Is this an EE bug that can be fixed?

Thanks


texts: Pre-populate a channel custom select field with a list of certain members

texts:
I would like to populate a custom select field added to a channel, with a list of members that have a certain selection from a custom member field.

To generate the list of members currently in PHP,  I get the id of the particular member field, then search the members list for a match on this field. And I have tried to inject this list to the custom select field via javascript, but on form post the validation fails with 'Invalid Selection', as the injected options are not accepted as valid against that field.

Is there a way to populate the custom select field with a list of members selected on a value of a custom member field?


texts:
I've been using Matrix for quite a long time and yesterday I bought Playa because I thought that it can do what I need.

I have a channel "Movies" and a channel "People". I made a Matrix field for the People channel with the column "Names" because some people have alias names. I made a a Matrix field for "Movies" with the columns "Name" and "Role". Name is a Playa field and I thought it's possible to make a setting that I can chose that I can select from the "People" matrix name Field.

So what I need in publish for the movies is a field where I can select a
person (entry) from the people channel and then one of this persons alias.

John Doe (this is a entry)
- David (this is a alias)
- Steven (this is a alias)


texts:
Possible Duplicate:
  Displaying all products on sale with exp:resso store?

It looks like it's not possible to pass an on_sale parameter to the products tag. This would be useful for pulling back a list of products that are on sale. Unless I'm missing something you currently have to pull back the full list and check the on_sale conditional, which is not as efficient and throws out the count and total_entries variables.

Could this be added to a future version if it's not already possible to do this somehow?

Thanks.


texts: Channel does not show entries on specific template site

texts:
I have a very weird behaviour: One of my channels does not show any entries on one specific template site.

I use the following EE tag:

{exp:channel:entries channel="gallery_slider" category="6" limit="1"}test output{/exp}

When I use this code in the one specific template, it does not show test output. I made sure, that I have content in the channel with the category: I used the tag within another template, where the test output is shown as expected.

In the problematic template I use another channel, which is showing its content correctly.

I have no idea what could lead to this behaviour as both templates are nearly identical.

I don't use the channel within the other channel
both templates (the working and the non working template) use each two different channels
In one template the channel gallery_slider outputs content
In one template the channel gallery_slider does not output content
both templates have a url defined via template route manager

Any ideas, what could lead to the missing content?


texts:
My client is reporting that starting a few days ago, emails are not being sent to admin and customer on a completed transaction. This site has been running with no issues for nearly a year. Notifications are handled through CartThrob, which I believe uses the standard EE mail class.

I haven't made ANY changes. I did a quick test to test out the email class by sticking this in a template (from EE docs): (emails are real in my template, fake here)

      $from = "me@mydomain.com";
      $recipient="me@gmail.com";
      $email_subject = 'testing at 2:25 on CPC';
      $email_msg = "here's the test from debra";
      ee()->load->library('email');
      ee()->load->helper('text');
      ee()->email->wordwrap = true;
      ee()->email->mailtype = 'text';
      ee()->email->from($from);
      ee()->email->to($recipient);
      ee()->email->subject($email_subject);
      ee()->email->message(entities_to_ascii($email_msg));
      ee()->email->send(FALSE);
      echo ee()->email->print_debugger(array('headers'));
      //ee()->email->Send();

Which should send the mail and show me the headers. Instead I get a blank page. I should be seeing PHP errors, if any. If I turn on the debug for EVERYONE, not just super-admin (which I am) I see:

Fatal error: Call to undefined function ee() in /www/mydir/public_html/mysys/expressionengine/libraries/Functions.php(680) : eval()'d code on line 6.

In Functions.php, that is pointing to this:

 // --------------------------------------------------------------------

/**
 * eval()
 *
 * Evaluates a string as PHP
 *
 * @access  public
 * @param   string
 * @return  mixed
 */
function evaluate($str)
{
    return eval('?'.'>'.$str.'<?php ');
}

// --------------------------------------------------------------------

(Yes, I have php tags around the code in my template. Yes, I have PHP enabled in my template.) It's just not loading the email function from the library.

I thought EE might have been mysteriously corrupted somehow, so I upgraded to the next version from the one we had, so we are now 2.53. No issues with the upgrade, but still failing to call email class.

I can send email through the Communicate module. I've put in a support ticket with our host to see if it's something server-related. I tried this exact same template on another site I have at the same host, and it works perfectly.

Anyone seen anything like this or have any ideas? It's a complete mystery to me!


texts: Can't update from 2.5.3 to 2.5.4 using DevDemon Updater

texts: I'm trying to update a new site I'm developing from 2.5.3 to 2.5.4 and I'm getting a "waiting for server" message and the retry count keeps going up. I've left it to do its thing for a while now and nothing happens. Anyone else seeing this and do you know why it's happening or have a solution to fix it?


texts:
I'm trying to display two columns of EE entries, each entry has a grid field with a text field and an Assets field. I thought I was close on this, but clearly I'm missing the boat because the grid portion isn't spitting anything out :(

{embed="_layout/main"}
{preload_replace:the_channel="publications"}
{exp:stash:set_value name="title" value="Publications"}

{exp:stash:set name="content"}

Publications

{lv_publications_leadin}

{exp:stash:set_list name="pub" parse_tags="yes" save="yes" scope="site"}
{exp:channel:entries
    channel="{the_channel}"
    disable="categories|category_fields|member_data|pagination"
    limit="20"
    sort="desc"
    status="Open"
    show_future_entries="yes"
}
        {stash:publication_title}{title}{/stash:publication_title}

        {exp:stash:set_list:nested name="entry_files" context="{entry_id}" parse_tags="yes"}
            {publication}
                {stash:publication_year}{publication:year}{/stash:publication_year}
                {stash:publication_file}{publication:file}{/stash:publication_file}
            {/publication}
        {/exp:stash:set_list:nested}

{/exp:channel:entries}
{/exp:stash:set_list}

        {exp:stash:get_list name="pub" sort="desc" limit="1/2"}

{publication_title}

                {exp:stash:get_list:nested name="entry_files" context="{item_entry_id}" prefix="nested"}

{publication_year} {publication_title}

                {/exp:stash:get_list:nested}

        {/exp:stash:get_list}

        {exp:stash:get_list name="pub" sort="desc" offset="1/2" limit="1/2"}

{publication_title}

                {exp:stash:get_list:nested name="entry_files" context="{item_entry_id}" prefix="nested"}

{publication_year} {publication_title}

                {/exp:stash:get_list:nested}

        {/exp:stash:get_list}

{/exp:stash:set}


texts: Apply shipping costs calculation before checkout

texts:
I've set up shipping methods in Store which have rules of "Country" and "Region" set to "(any)" but when I'm displaying my cart, the shipping costs are not included until the shipping address is set.

As I want to have shipping costs that don't rely on location, would it be possible to make Store apply the shipping costs matching this situation ?


texts:
I have built a custom payment gateway for worldpay corporate, as expresso store only comes with worldpay business.The user journey works without fault. The user click through from step to step, gets diverted off site to worldpay, completes their payment and then is diverted back based on the getReturnUrl(). I then handle the response using the stores payment classes and methods.

The issue I have is that worldpay send a notification of this order, independant from the user journey, in the form of xml to a predefined URL within my worldpay account settings. This URL is used in case the user loses connection or in case the payment is pending and they need to send another notification when complete. Please note that this is not treated in the same manner a an automatic response url (which is dynamically created thus having a valid hash to act upon.).

My question -
Is there any functionality built into the current store payment omnipay classes to deal with this?
or
Do I write/use the script I currently have that is not EE based. If so where would be the best place to store this script and point to it via worldpay, taking into consideration it needs to be able to update the expresso store orders database tables.

Thanks in advance


texts: Changing status of Payment by Check orders does not properly trigger events

texts:
We need to be able to accommodate payments by checks for our commercial customers, and have found that changing the status of orders placed through the Pay by Check gateway does not trigger normal events, such as updating inventory counts or logging items in the Purchased Items channel (both of which, by the way, work for normal credit card processing through Stripe).

Currently, on the Orders settings pane, both the Order Status and Purchased Items Channel sections are configured to use the same statuses for Payment authorized/complete (Paid) and Payment being processed (Awaiting Payment).

Also, on the Payments settings pane, the Pay By Check gateway When order is taken, set processing status to option is set to "Processing".

So, for example, once an order is placed on the front-end of the site, the order appears in the Orders channel with the status of Awaiting Payment. If I update the status to Paid, the order does trigger any of the actions that it should as a completed order. I've tried updating the status directly in the Orders channel as well as in the Ecommerce Orders Manager. Neither work. Also, I've tried using the force_processing="yes" parameter on the checkout form.

Any thoughts?


texts: Safecracker Registration: how to edit Channel entry after registration?

texts:
After a member is registered via Safecracker Registration, how do I allow the member to update his/her Channel entry?

Safecracker Registration has the option edit_member="yes", so I created a Safecracker form with the fields I want members to be able to update. The opening tag is something like this:

{exp:safecracker channel="members" class="form-horizontal" edit_member="yes" error_handling="inline" id="profile_manager_about_me" include_jquery="no" return="/profile-manager/" safecracker_head="no"}

While the member is logged in and submits the Safecracker form, a field error is returned stating that the email field is required (it's not one of the fields to be edited).

Is Safecracker Registration's edit_member="yes" only supposed to be used when you are also editing member data along with possibly the Channel entry data? How can I edit just the Channel entry data?

Could I use the global variable member_id to get the current member's entry in the Channel, then get that result's entry_id (there should only be one, I think), then use the entry_id as a parameter in the Safecracker tag pair? Seems convoluted?


texts:
I'm troubleshooting with the example store templates that are supplied. In the store settings, I have the Default Shipping Address set to none. Still, when I submit the address as different for shipping and billing, the Shipping Details are listed as "Same as Billing Details" on the checkout3 template.

Thanks if anyone can help.


texts:
htaccess :

<IfModule mod_rewrite.c>
    RewriteEngine On

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

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

    RedirectMatch 301 /page_1 http://domain.com/segment_1/page_1
    RedirectMatch 301 /page_2 http://domain.com/segment_1/page_2
    RedirectMatch 301 /segment_1/page_x http://domain.com/segment_1/segment_2/page_x
</IfModule>

The last redirect works but the first two don't. (Error infinite loop).

Anyone has an idea why?


texts: What are the benefits of MailChimp over EEs native Mailing Lists?

texts: Why should I use a AddOn to let Members opt-in a Mailing-List managed by MailChimp, when there is a native EE-Mailing-List-Module? What are the benefits of using MailChimp instead of EEs own/native/local Mailing-List-Module?


texts: Paypal error: "Duplicate invoice ID supplied. Attempt with a new invoice ID"

texts:
I'm getting the error message, "The transaction was refused as a result of a duplicate invoice ID supplied. Attempt with a new invoice ID" when I try to process credit card payment through a PayPal Pro sandbox account.

How are invoice id generated in Exp-resso Store?


texts:
I have a cartthrob setup selling 30 day access to channel entries. A customer purchased access but the payment didn't go through paypal express giving the error "10416 Transaction refused because of an invalid argument."

Customer was still able to access the channel entry even though the payment hadn't completed.

I feel this is a paypal express problem more that a CT one but wondering if anyone here has experienced similar issues and what the workaround is (other than not using paypal)

Running EE 2.5.5 and CT 2.3.4 for what it's worth


texts: Expresso-store: Display weight in grammes instead

texts: How do I convert the weight of a product? Currently it's in kg, would like to display it in grammes. Thank you.


texts: index.php removed from all urls but homepage

texts:
I have following code in my .htaccess

        RewriteEngine On

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

That redirect works on all pages apart homepage is there any way to remove index.php from homepage?


texts: EE1 - Include entry category ID in an embed

texts:
I usually use Low Variables or Stash for this, but thought I would toss this one out there anyway to see if I have just been over complicating my templates.

I have a template that pulls in an entry. The entry will have a category assigned to it. This entry also has another section using the same category group. I need to embed a template that displays a list of all the titles in that section with that category. My problem is trying to nest that category id in the embed without using a plug-in.

So in my template, I have something like:

{exp:weblog:entries weblog="whatever" limit="1" status="not closed"}

{/exp:weblog:entries}

I need to embed a template inside that. I have tried the following:

{embed="total/product_list" cat="{category_id}"}

and

{embed="total/product_list" cat="{categories}{category_id}{/categories}"}

and

{categories}
    {embed="total/product_list" cat="{category_id}"}
{/categories}

I know parsing order has me in a conundrum. like I said, I just thought I would see what solutions were out there. I'm always open to an education.  ;)


texts: Control Panel with Masked CP CORS issues

texts:
MSM Setup
EE 2.7.2

The site I am working on has masked CP access sitting on a subdomain of the site. This is a MSM setup in which the MSM sites are subdomains of the primary site.

Something like:

site.com
sub1.site.com
sub2.site.com
etc...

The masked CP access is setup so that each 'site' has its own location for the contributing groups to access independently.

So again, something like:

admin.site.com
admin.sub1.site.com
admin.sub2.site.com
etc...

All of the core files are located in the primary site admin folder (admin.site.com).

The site index.php files are in their respective site folders (site.com, sub1.site.com, etc...)

The admin.php files for the various admin folders has been renamed to index.php so that the contributing users can navigate to a clean URL of http://admin.sub1.site.com to get to that site segment's CP.

I am running into a lot of issues with resources not having permissions, CORS, etc. especially when using fieldtypes like wygwam when their is a NSM LiveLook tab. The NSM LiveLook tab errors with cross domain issues since it uses iframes to preview with when someone tries to use the embed media tool on wygwam.

Has anyone else run into issues like this? Are there any known solutions?


texts: CartThrob Checkout randomly not saving data

texts:
EE 2.9.0
CartThrob Pro 2.6

I have a site where orders are placed and the customer chooses the pickup date from a radio selection. The pickup dates are created in the menu channel and then fed into the checkout.

On Checkout - second page the relevant code is:

        {exp:channel:entries channel="menus" url_title="{segment_3}"}

        {exp:cartthrob:save_customer_info_form id="delivery-form" name="delivery-form" class="form-horizontal parsley" return="checkout/cart" required="custom_data[order_pickup_delivery]"}

Choose your method of Pickup/Delivery

If you have a special request regarding delivery time or date, you enter it on the next screen.

        {menu_pickup_delivery}
            <input type="radio" name="custom_data[order_pickup_delivery]" value="{menu_pickup_delivery:option}" {if menu_pickup_delivery:default}checked="checked"{/if}> {menu_pickup_delivery:option}
        {/menu_pickup_delivery}

        <input type="submit" name="submit" id="submit" value="Continue" class="btn btn-large btn-primary" formnovalidate>

        {/exp:cartthrob:save_customer_info_form}
        {/exp:channel:entries}

The issue is that CartThrob is randomly not saving this data even though there is a default radio button. When I look in the CP edit page for the orders channel I can see random entries with no data saved for the delivery date.

However on testing in Chrome, FF, and IE I was unable to replicate data not saving when I did not change the radio selection or when I did change it.

Any thoughts on what could be happening here?


texts: Wygwam error "Cannot redeclare class Wygwam" error after 2.7.2 upgrade

texts:
After upgrading to 2.7.2, I am getting an odd "Cannot redeclare class Wygwam" error in the control panel.

This prevents entries from opening, and also accessing the Fieldtypes list.

Any solution? It's the latest version of Wygwam (3.2.2).

Thanks!


texts: How do I display categories assigned to entry within Channel entries tag

texts:
In my code below I'm trying to list the category_url_titles within data-type. This is returning all the categories for that channel, but I only want to show the categories assigned to that entry. I thought maybe there would be an entry_id="{entry_id}" thing for the channel categories tag, but there isn't. Any ideas?

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

    {/exp:channel:entries}


texts: Forbidden: You do not have permission to access this document - When attempting to save a Template

texts:
EE Version 2.10.1, PHP 5.3.27 Neither have been updated since installed. And as much as I would LOVE to upgrade to EE v3.x, I cannot due to some of the Add-Ons not having been upgraded.

This appears to have something to do with ExpressionEngine’s query functionality. I uninstalled the Query Module and reinstalled it, but the same issue.

Just started to receive this error about 2 hours ago. I have looked all over ExpressionEngine but cannot figure out what the issue is EXCEPT that when I use the following in PHP within the Template, it causes the above error:

$uploadTo = $this->EE->db->query( “SELECT server_path as url FROM ” . $prefix . “upload_prefs WHERE 1 = 1 and name = ‘ABC’ “);

Hmmm, it appears to be the same issue if I use the following:

{exp:query sql=”select Count(*) TheCnt from EE->db->dbprefix; ?>FrEd fred Where 1=1 and fred.ID = EE->session->userdata(‘member_id’); ?> and fred.CanDt is NULL” } {/exp:query}


texts: Is it possible to access entry revisions on the front end?

texts:
I am looking to create an entry revision site where I can allow users to access/view these on the front-end.

Is it possible to access these on the front end as it is in the control panel?

Thanks


texts:
Is there a way to make a member which cannot be logged in?

I am using it as some sort of a member placeholder for entries of members I want to delete.

I don't want anyone be able to log-in as that member.

Does this feature exist?


texts: Expression Engine channel content not showing

texts:
I am new to expression engine.
I have a channel name "news" and I have published some pages. In my template, I have used code as

{exp:channel:entries channel="news"}
  <h2>{title}<h2>
  {body}
{/exp:channel:entries}

But the output is I get the page title but the content doesn't shows up and i get {body} as it is on the frontend

Can anyone help me please, where I am doing wrong.

ANy help is really appreciated.


texts: How can I install a custom payment gateway in Expresso Store 2.1

texts:
I have (had) a custom payment gateway running in Expresso Store 2.0.6. Since i updated to 2.1 the gateway is not working anymore. I am aware of the new folder structure inside the vendor/omnipay folder and tried to adapt my own gateway folder without success. The gateway is not listed in stores payment gateway settings. I also changed the store_unofficial_payment_gateways value in the db from 0 to 1.

So,

Are there some special installation instructions for custom payment gateways in EE Store 2.1? Or is it like in previous versions that i only have to move my custom gateway folder into the vendor folder and if everything is fine in my folder the gateway shows up?
Are there other files i have to adapt outside my custom gateway folder?
What's about that new composer.json file? I'm not sure how that should look like …

Also worth to note: The button "Add Payment Method" in the upper right corner doesn't exists in my installation as seen in the store docs: https://exp-resso.com/docs/settings_payment_methods.html

I am running the latest versions from both EE and Expresso Store.

Thanks in advance


texts: Program entries does´t publish until control panel action

texts:
I have schedule entries but they doesn´t publish at the time defined, to publish they need the time and and action on control panel like save a template, etc.

I guess pseudo cronjob is not working.

Ani help?


texts: Pagination and keeping list/table view until user changes view

texts:
I am working on a site that has an articles page. On this page a user is given the option of viewing in list view or table view. However there's pagination on the page.

What happens is, when the user selects a view and paginates ti the second page, the default view is set again.

Is it possible to keep the users chosen view until they change it again? and can this be done without the use of cookies?

thanks


texts: CI Exception handler and Magento Autoload

texts:
I have a system that kind of "merges" ExpressionEngine and Magento. They are coupled in a number of ways and one of them is that we call Mage functionality from EE plugins.

This has just started happening and I can't determine when or where it is occuring.

Can anymoe help out here?

[18-Sep-2015 13:36:30] PHP Fatal error:  Uncaught exception 'Exception' with message 'Warning: include(CI/Exceptions.php): failed to open stream: No such file or directory  in /srv/www/htdocs/store/lib/Varien/Autoload.php on line 93' in /srv/www/htdocs/store/app/code/core/Mage/Core/functions.php:245
Stack trace:
#0 /srv/www/htdocs/store/lib/Varien/Autoload.php(93): mageCoreErrorHandler(2, 'include(CI/Exce...', '/srv/www/htdocs...', 93, Array)
#1 /srv/www/htdocs/store/lib/Varien/Autoload.php(93): Varien_Autoload::autoload()
#2 [internal function]: Varien_Autoload->autoload('CI_Exceptions')
#3 [internal function]: spl_autoload_call('CI_Exceptions')
#4 /srv/www/htdocs/na_cms/codeigniter/system/core/Common.php(135): class_exists('CI_Exceptions')
#5 /srv/www/htdocs/na_cms/codeigniter/system/database/DB_driver.php(1172): load_class('Exceptions', 'core')
#6 /srv/www/htdocs/na_cms/codeigniter/system/database/DB_driver.php(330): CI_DB_driver->display_error(Array)
#7 /srv/www/htdocs/na_cms/expressionengine/libraries/Template.php(2806): CI_DB_driver->query('SE in /srv/www/htdocs/store/app/code/core/Mage/Core/functions.php on line 245


texts: Unable to Edit Specific Entries & Publish Error as Super Admin

texts:
I've got a complex site that was working until yesterday with no code changes in the last week.

EE 2.9.2

In the Branch Locator channel there are two specific entries which I am unable to make any changes, content, status, entry_date whatever even when logged in as super admin. On save there is no error and the publish page redirects as normal. However when viewing the edited entry none of the changes have been saved. This does not happen to any other entries or channels.

At first I thought it might be related to MX Title Control, but I disabled that extension and the error persisted.

Additionally when publishing a new entry, as a Super Admin, I get the following error.

  An Error Was Encountered You are not authorized to access this page

THere are various text input fields, one dropdown field, 3 playa fields and a google maps for ExpressionEngine geo coder field. There are currently 32 entries in this channel with two of them being uneditable.

I just updated all addons to the latest version and error continues.


texts: Redirects from old site using queries to new EE site

texts:
I'm putting a new site live and need to redirect all the old pages to the relevant new ones. The issue is that the old site used PHP queries, whereas the new site doesn't.

This means that if I setup a redirect like so:

RewriteRule %{QUERY_STRING} range.php?type=baropt&amp;item=01 [NC]
RewriteRule .* http://domain.com/range/bars/led-bar? [R=301,L]

Instead of redirecting as it should, it simply displays a blank page with the message 'Disallowed Key Characters'.

I'm happy to setup manual redirects for the various pages (there's only around 80-90 in total). but can't workout how to do it. I've been told I'll need to use 'mod_rewrite, request_uri + query_string conditions' but that doesn't mean much to me.

OLD URL:
domain.com/range.php?type=baropt&item=01

NEW URL: http://domain.com/range/bars/led-bar

Any ideas gratefully received!

Thanks in advance,

Tom


texts: Cartthrob - Changing prices in the cart via Hook.

texts:
I've set up a fabric shop, which requires free sample purchasing. I've implemented this without issue using on the fly products for each fabric. However, the client now requires that after x amount of samples have been added (across all products) each additional sample should be charged.

I've spent several days trawling the developer docs & internet trying to find a solution, but so far it has eluded me. Can you please confirm the correct procedure for modifying a dynamic products price which is already in the cart. I've looked at the cartthrob_update_cart_end hook and $this->core->cart - but can't seem to figure it out.

Thank you.


texts: Zenbu errors in log file: Undefined variable: rule_cond

texts:
I'm trying to identify and fix the errors that I keep seeing in my log files. I'm on EE2.6.1, with Zenbu 1.8.3, and I'm seeing the following errors all over my log files.

ERROR - 2013-08-26 13:17:31 --> Severity: Notice  --> Undefined variable: rule_cond /home/highland/public_html/system/expressionengine/third_party/zenbu/views/zenbu_index.php 28
ERROR - 2013-08-26 13:17:31 --> Severity: Notice  --> Undefined variable: rule_cond /home/highland/public_html/system/expressionengine/third_party/zenbu/views/zenbu_index.php 22

I'm not sure if this is related or not, but I recently also had an issue with Zenbu when trying to display the "Dates & Options" field from Solspace Calendar events.

Any insights into the cause of this, or possible fix? Thanks!


texts:
Does anyone know if I can allow a member to subscribe to categories.

For example, for an automotive blog, with categories such as: Motorbike, Cars, Classic Cars, Motorhomes. As a user I would be able to login, choose the categories they were interested in, say Classic Cars and Motorbikes, and then only see posts that belong to that category.

Basically I want members to be able to personalise their feed.


texts: Editor ability to attach "events" to a page

texts:
I have the need to allow site editors to be able to create groups of "events" and assign a title, body, icon, etc to those events, order them, and place them where they like inside of their "pages".

Currently, I have an "Events" channel set up and each entry in that channel is 1 individual event. The reason for this is that they would like those events to "expire" at a date/time they specify. Each of those entries are assigned one or more categories. From there, I have an embed code similar to this...

{embed="embeds/events" category="25"}

This code is entered into any page (Structure) they want that category of events to show up in.

This works pretty good but we are in the middle of a major re-design and I am wondering if this is the "best" way to accomplish this.

Thoughts? Would you do it the same way or would you have an easier method?

Some of the downfalls to doing it this way is that you have to have content editors worried about entering the specific embed code. Also, they have to look up the category ID which can be annoying if they are looking to set something up quick.

Thanks for your help!


texts: Storing images entries on Google Drive or Amazon S3

texts:
sorry again for my bad english..

I'd like to use Amazon S3 or Google Drive as CDN for my images posts. I have a script that adds dynamic parameters at the end of the url image.

So if i have an image like:

my script automatically returns:

Google drive do a fantastic scaling images on the fly (try to change the number at the end of the image):

http://lh6.ggpht.com/VMLEHAa3kSHEoRr7AchhQ6HEzHVTn1b7Mf-whpxmPlpdrRfPW216UhYdQy3pzIe4f8Q7PKXN79AD4eRqu1obC7I=s200

or

http://lh6.ggpht.com/VMLEHAa3kSHEoRr7AchhQ6HEzHVTn1b7Mf-whpxmPlpdrRfPW216UhYdQy3pzIe4f8Q7PKXN79AD4eRqu1obC7I=s500

So... how can i upload images from CP to google drive? I have purchased channel images by devdemon and CE Image but they do it only on Amazon S3.

There's a way to use Amazon S3 with url parameters for scaling images?

please, someone let me know if I can do it
thank you!
Valerio


texts: How can I remove template name from url?

texts: I want to remove template name from URL. I want to display only template_group/entry-name. Is this possible?


texts: Bug when using conditional on Assets field value, followed by regular Grid tag

texts:
I am using EE 2.10.1, with Assets 2.6.

I'm getting a very strange bug in my template. I have an assets image field, and a grid field that contains an Assets column.

A PHP Error was encountered

Severity: Notice

Message: Undefined index: grid_field_id

Filename: assets/ft.assets.php

Line Number: 1484

and

A PHP Error was encountered

Severity: Notice

Message: Undefined index: col_id

Filename: assets/ft.assets.php

Line Number: 1485

and

A PHP Error was encountered

Severity: Notice

Message: Undefined index: grid_row_id

Filename: assets/ft.assets.php

Line Number: 1486

Here is my template code. I have reduced it to be as simple as possible and still throw the error.

{exp:channel:entries
    channel="products"
    status="not closed"
    require_entry="yes"
    disable="member_data|category_fields|pagination|categories"
    limit="1"
    }

    <img
        src="{product_display_image:url}"
        alt="{if product_display_image:alt_text}{product_display_image:alt_text}{if:else}{title} image{/if}"
        class="img-responsive"
        itemprop="image" />

    {product_downloads}
        {product_downloads:file:title}
    {/product_downloads}

{/exp:channel:entries}

If I remove either the {if product_display_image:alt_text}{product_display_image:alt_text} conditional, or the {product_downloads} loop, the errors go away.

What's going on! How can I fix this?!

Here are the settings on the two fields:


texts: More products then available being purchased

texts:
We figured out that we have had an issue the last few weeks where products are being ordered beyond the qty available.  I was able to replicate how it was done and want to know if there is a fix.

We have our product that has 2 available total.  The product has a single SKU product modifier of size.  People have the ability of over ordering the product if they add different sizes to their cart.  For instance if their is 2 packages left and they add 2 smalls, they can go back and then add 2 more mediums to their cart and checkout.  When looking at the backend the qty is now -2 on our end.  How can we get this fixed, so far it's been on products that aren't a big deal but we do have some coming up where it would certainly would be a major issue.


texts: Call EE publish from another module and prepopulate some fields

texts:
I have a custom module that members update team and player information.  I would like to use a channel for publishing match reports rather than code it into the module.

Is it possible to call the content_publish from another module and populate two fields depending on

logged in user or
part of the link or
add information to the url


texts:
When relating content from several channels in a Pixel and Tonic Playa-field, my client would like to see which channel the articles are from (they might have several articles with similar or same titles...).

There's no native settings for this, but I was wondering if any of you have dared "hack" Playa to display "Entry Title (in channel name)"?


texts:
When publishing a page with EE 3.4.7 and  Structure 4.0.0-b.12 we get a SQL error.

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '15' for key 'PRIMARY':
INSERT INTO exp_structure (site_id, entry_id, parent_id, channel_id, listing_cid, hidden, dead, lft, rgt) VALUES (1,15,0,2,0,'n','', 16, 17)

ee/legacy/database/drivers/mysqli/mysqli_connection.php:122

Havent found a solution yet does anyone have any advice.


texts: EE v2.9.2 admin login stops working after upgrade to Mac OS High Sierra

texts:
Last week I updated to High Sierra and now can no longer log into the EE admin interface on localhost.

Since High Sierra installs PHP 7, I added PHP 5.6 as my default, but no change.
I enabled debugging in both index.php and my admin php, but no errors are shown.
No errors in the Apache log either, the admin pages are served with a 200 return code.

The mystery bit is that the site itself is working (albeit very slow).

When running the EE Server Compatibility Wizard it works on and off, and if it does it reports my system to be compatible for an EE install.

I've run out of things to check. Do you have any advice?

Thank you.

Edit: It seems to be an issue with a timeout with calls of the PHP function 'set_time_limit'. If I comment them out (in Codeigniter.php line 108, Core.php line 64), the admin login works.


texts: Is it possible to access channel variables inside of a reverse related entries tag without using an embed?

texts:
I'm wanting to access a variable from the series channel called {custom_series_field}, but I need to access that variable within the reverse related entries tag. Currently, this code doesn't parse the {custom_series_field} variable inside of the reverse entries tag.

Here is the sample code:

{exp:channel:entries channel='series' status='open|hidden' url_title='{segment_2}' dynamic='off'}
  {custom_series_field}

  {reverse_related_entries status='open|hidden' orderby='date' sort="desc" limit='1'}
    Reverse related content here
    {custom_series_field}
  {/reverse_related_entries}
{/exp:channel:entries}

I know you can do this with playa, but we're not ready to update quite yet.
Is it possible to access a channel variable here?


texts: Importer module for uploading CSV in channel entries is not working for grid

texts:
I am using grid in channel fields and using importer module for uploading CSV file to add/update channel data.

But importer module dose not support for grid, then is there a way how can i use importer with grid ?
Also i am having 5 grid in the channel so i can not use matrix instead of grid now.


texts:
I have a site that is using the simplest of URL layouts and was just asked if they could change.

Currently, they are as follows:

www.domain.com/details/item
www.domain.com/dates/item
www.domain.com/topics/item

Where 'item' is a separate entry that is linked via playa field. So all links are simply

www.domain.com/template_group/index

and 'item' is {last_segment} which triggers the entry {url_title}

Now they would like to shift this to

www.domain.com/item/details
www.domain.com/item/dates
www.domain.com/item/topics

Is there something simple I am missing? I feel that each time I look at it, I start to over complicate it.


texts: Split channel entry data into rows / columns with stash

texts:
With Stash, is it possible to store pieces of EE channel entry data and insert it based on a count or some other logic?

I have a three column bootstrap grid below that splits an entry's data into two parts in the template.

Can I store and get the data based on a count or some other logic using Stash and Switch?

.row
- col {entry 1}
- col {entry 2}
- col {entry 3}

.row-two
- col {entry 1 data}
.row-two
- col {entry 2 data}
.row-two
- col {entry 3 data}

.row
- col {entry 4}
- col {entry 5}
- col {entry 6}

.row-two
- col {entry 4 data}
.row-two
- col {entry 5 data}
.row-two
- col {entry 6 data}

-etc-


texts:
I was wondering what is the best way to allow users to add coupons to CartThorb? Does CartThorb allow coupons to be added from templates, if not where should I start from to enable this functionality?

I realize the question is vague, so I don't expect concrete answers, anything to point me into the right direction will do.

Appreciate it.


texts: expressionengine wygwam content (links) break when included in form field

texts:
using the EE "email to friend" form, I need to include the contents of a WYGWAM field in a hidden form field. here's what that looks like:

<input type="hidden" name="message[]" value="{title}{product_description}" />

the {product_description} field is WYGWAM content and contains links. the quotes in the links (<a href="...") are breaking the formatting of the page because the browser reads the first href=" quote as the closing quote for the hidden field value. it's a quick fix to just change the hidden field attributes to single quotes but then it breaks the formatting if the {product_description} contains single quotes...

what's the best way to avoid that?


texts: 502 bad gateway with large amount of channel images images

texts:
Im having some server issues with large uploads on channel images.  I have some users who have as many as 150 images and when they try and edit their profile they are getting 502 errors

looking at the logs Im getting this error

2015/01/28 19:26:52 [error] 2880#0: *14 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 69.203.104.186, server: www.visualaids.org, request: "POST /liza/index.php?/cp/content_publish/entry_form&channel_id=9&entry_id=6475&filter=YTozOntzOjEwOiJjaGFubmVsX2lkIjtzOjE6IjkiO3M6ODoia2V5d29yZHMiO3M6MTY6Ikpvc2UgTHVpcyBDb3J0ZXMiO3M6OToic2VhcmNoX2luIjtzOjU6InRpdGxlIjt9 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "www.visualaids.org", referrer: "https://www.visualaids.org/liza/index.php?S=0&D=cp&C=content_publish&M=entry_form&channel_id=9&entry_id=6475&&filter=YTozOntzOjEwOiJjaGFubmVsX2lkIjtzOjE6IjkiO3M6ODoia2V5d29yZHMiO3M6MTY6Ikpvc2UgTHVpcyBDb3J0ZXMiO3M6OToic2VhcmNoX2luIjtzOjU6InRpdGxlIjt9"

There was more specific errors about exceeding max_input_vars and i raised that in the php.ini but still no dice.

I also adjusted nginx settings for

fastcgi_read_timeout 300;
       fastcgi_buffer_size 1024k;
        fastcgi_buffers 4 1024k;
        fastcgi_busy_buffers_size 1024k;

and still no luck?  anything else I should try?


texts: Is it possible to send url or form variables o the built-in exp:query tag to build select queries?

texts:
Using the supplied EE add-on, is it possible to sen url or form variables or to the builtin exp:query tag to build select queries?

If so, can anyone point me to some examples?


texts: Limiting Store shipping country list to those with shipping rules

texts:
We have a client with an Expresso Store install where they have specified shipping rules for certain countries only and wish to add more as and when they have time.

<select id="shipping_country" name="shipping_country" class="form-control">
{shipping_country_options}
</select>
{error:shipping_country}

Is there a way to have the shipping country list determined by those with shipping rules? For example I have the following UK shipping rules set up:

However despite only have shipping rules pertaining to the UK other countries still show up in the country select list for shipping.


texts: Expresso Store: Stock Control for Product Variations

texts:
Just wondering if there is scope to have stock control ability on product variations.

Useful for a scenario like mag wheels for cars:

Simmons Xtreme Chrome Mag (example model)
 - 17" (3 available)
 - 18" (2 available)
 - 19" (7 available)

Cheers.
=)


texts: Annual recurring payment setup with Charge add-on?

texts:
I am trying to setup an annual subscription with the Charge add-on, however I am experiencing unexpected results when allowing customers to cancel before it takes the next recurring payment.

What is the best way to set it up using the {exp:charge:form} tag so that the user is charged the plan_amount each year recurring?

Thanks in advance.


texts:
Has there been any other updates to the performance issues?

I am running a site which has over 100 matrix rows per entry (with 4 columns per row) and saving times are abysmal (can be over 120 seconds).

I understand P&T is working full tilt on Craft, I just wish there was some love shown to EE Matrix :(

Similar and unanswered questions:

Long open/save for entries with 10-column Matrix fields
Matrix is killing my load times - How can I speed it up
Cause of Massive Performance Issues after EE Upgrade 2.5.2 to 2.7.2?

Any help would be welcomed :)

My specs

matrix 2.6.1
ExpressionEngine 2.9.2 Build 20141004
jQuery  1.7.2
MySQL   5.6.21-log
Server  Microsoft-IIS/8.0

PHP 5.6.3
register_globals    off
safe_mode   off
open_basedir
max_execution_time  300
upload_max_filesize 50M
max_input_time  900
memory_limit    128M
session_save_path   writable


texts: EE 2.6.1. Combine relationships and related categories for editorial workflow

texts:
On our Single entry pages we recommend other articles.
Four slots are available.
channel: articles.
channel fields: Content Elements field for the text and a native EE Relationship field called "related_articles"

Here´s the editorial workflow:
After writing the article an editor can select between 0 and 4 articles manually. The EE-field "related_articles" will be used for that. All relationships are between entries of the same channel.

There are 4 slots to fill. EE will fill the empty slots automatically with articles from the same category.

An example: The editor wrote an article in the category A and manually added one related article. Then EE has to add three more category A articles to the mix.

This is my code for the editor´s picks:

{exp:channel:entries channel="article"}
    {related_articles}

{related_articles:title}

    {/related_articles}
{/exp:channel:entries}

This is my code for the stuff, that EE adds automatically.

{exp:channel:entries channel='article'
    related_categories_mode='yes'
    custom_fields='yes'
    limit='{4 - count_of_editors_pick}'
    entry_id='not {the_IDs_from_editors_pick}'
}

{title}

{/exp:channel:entries}

Both work well solo, but how do I combine them? I tried the math plugin plus the session variables plugin. I stored the {count} for the first loop in {rel_art}, so I know, how many articles the editor added.

{exp:math formula='4 - [1]' params='{exp:session_variables:get name="rel_art"}'}

But it seems, that I run into a parse order issue here. I can´t use this to set the limit parameter within the channel entries tag.

My questions

How do I limit EE´s related categories loop so that it fills up the remaining slots?
How do I avoid entry dublications? EE should not add any entries choosen by the editor.


texts: Any way to create Expresso Store price modifier templates

texts:
We're using Expresso Store on a new project and the client has asked as to whether price modifier templates can be created to avoid having staff add modifiers in different ways for different products which share a common modifier type.

Is this even possible? If not I think it would make for a great addition to Store. :)


texts: Tagger 4.0 and EE 3.4.1 - Can't add tags?

texts:
I've added Tagger 4.0 to my system, I've added the tag field to my channel fields and as per the instructions, it says to type a tag and hit enter to save it... Problem is that hitting enter to save the tag submits the form.

How can I get around this?


texts: Store error on return from gateway (eWay) after upgrade to ee2.7.2

texts:
I hope someone can help me. I've been working on a site using Exp:resso store 1.6.4 and EE 2.6.0. I've just finished the dev process, but while I've been busy doing that, EE has updated and so has Store. I thought I'd upgrade them both now before the site goes live, so I've just patched to Store 1.6.5 and EE 2.7.2. (I've got backups).

Everything seems to work ok until I return from eWay's shared payment page.

EE gives a vague error: The action you have requested is invalid.

This is when trying to process index.php?ACT=34&H=e6afaea42c9d67163422a8e039274f83.

From what I've read I believe could be a security issue? I've found nothing specificto help solve, however.

Note that at present I am running the dev server without an SSL, and this was not a problem until now. Store is set to NOT require SSL connection.

I also note that the payments are processed and completed at eWay, but the order is never recognised in Store, and my cart still contains the ordered items.

Here's my cart tag:

{exp:store:checkout payment_method="eway_shared" return="checkout/confirm/ORDER_HASH" require="accept_terms" error_handling="inline" error_delimiters='|'}

Any help much appreciated.


texts: How to take out comma to the penultimate word in a list of 5 words?

texts:
{exp:query sql="SELECT states FROM states"}
    {if count == total_results}
        and {states}
    {if:else}
        {states},<span> </span>
    {/if}
{/exp:query}

Result:           Colorado, Kentucky, Missouri, Oklahoma, and Tennessee
But I'm expecting Colorado, Kentucky, Missouri, Oklahoma and Tennessee
Any idea?


texts: PHP Version compatibility issue with EE module

texts:
I have created a plugin that is running good in PHP v5.5.x. When I upgrade my PHP version to 7.x it gives me errors.

Code that is suspicious is:

$this->EE =& get_instance();

Error is:

  only variables should be passed by reference


texts: List where our members come from (country)

texts:
I've been trying to make a list of where our EE members comes from (country) and later on I will plot this data in to a Google Map to make it more interesting.

For the moment I've only come up with this solution, but it might not be the best solution to go through all the countries in the world.

{exp:query limit="1" sql="SELECT m_field_id_3 FROM exp_member_data WHERE m_field_id_3 = 'Australia'"}Australia: {paginate}{total_pages}{/paginate}{/exp:query}

{exp:query limit="1" sql="SELECT m_field_id_3 FROM exp_member_data WHERE m_field_id_3 = 'Denmark'"}Denmark: {paginate}{total_pages}{/paginate}{/exp:query}

{exp:query limit="1" sql="SELECT m_field_id_3 FROM exp_member_data WHERE m_field_id_3 = 'Malaysia'"}Malaysia : {paginate}{total_pages}{/paginate}{/exp:query}

{exp:query limit="1" sql="SELECT m_field_id_3 FROM exp_member_data WHERE m_field_id_3 = 'New Zealand'"}New Zealand: {paginate}{total_pages}{/paginate}{/exp:query}

{exp:query limit="1" sql="SELECT m_field_id_3 FROM exp_member_data WHERE m_field_id_3 = 'Norway'"}Norway: {paginate}{total_pages}{/paginate}{/exp:query}

{exp:query limit="1" sql="SELECT m_field_id_3 FROM exp_member_data WHERE m_field_id_3 = 'Philippines'"}Philippines : {paginate}{total_pages}{/paginate}{/exp:query}

{exp:query limit="1" sql="SELECT m_field_id_3 FROM exp_member_data WHERE m_field_id_3 = 'Singapore'"}Singapore: {paginate}{total_pages}{/paginate}{/exp:query}

{exp:query limit="1" sql="SELECT m_field_id_3 FROM exp_member_data WHERE m_field_id_3 = 'United Kingdom'"}United Kingdom: {paginate}{total_pages}{/paginate}{/exp:query}

{exp:query limit="1" sql="SELECT m_field_id_3 FROM exp_member_data WHERE m_field_id_3 = 'United States'"}United States: {paginate}{total_pages}{/paginate}{/exp:query}

I can't find any plug available that solve this. I'm not asking anyone to write the code for me, but I would appreciate if anyone could give me some tips/guidance.

Thanks in advance.


texts: Restrict Low Search toggles to one selection per group

texts:
We have a channel with categories that we are filtering on using Low Search, some of the category groups in which assignments are made for an entry are exclusive, i.e. the entry can only ever belong to one category in that group (Country for example).

We need to let users toggle categories on and off to filter results (Show me all mills in 'England' which are 'Water' mills) but we do not want to allow a user to apply multiples in certain categories (Show me all mills in 'England AND Scotland' which are 'Water' mills).

{exp:low_search:filters query="{segment_3}"}

Countries
            {exp:gwcode_categories
                id="FilterCountries"
                group_id="9"
                show_empty="no"
                orderby="cat_name"
                parse="inward"
                style="nested"
                }

                    {cat_name}

            {/exp:gwcode_categories}

We then repeat the list item for each category group we are using, so we have subsequent groups as per the above for 'Power Sources', 'Rivers' and 'Types'. Some of these (Type for example) may have more than one category assignment so we need a solution that allows us to restrict the additive toggle 'per group'.

Any ideas?


texts:
I just need to check if one field artist_gallery:image in a grid field is set, if not the markup should not be rendered.
This syntax {if "{artist_gallery:total_rows}” > 0} or {if artist_gallery:total_rows > 0} is not working ... if there is no image, the markup is rendered.

Any ideas? Thank you!

    {if "{artist_gallery:total_rows}" > 0}

   {artist_gallery}

   {/artist_gallery}

{/if}


texts: MSM and Store Product Price isn't saving

texts:
I have a MSM install.

Whenever I save an entry for 25.00 it saves as 2500. The other issue is the price for Product Options changes to +5 instead of 5.00

Is this a settings configuration for store? It currently has 2 decimal places etc

Currently I have store installed on the subdomain store.domain.com and the channel is in the www.domain.com because I will need to share the channel info.


texts:
I'm currently testing a site (EE 2.10.1) and getting a string of the following errors when trying to do anything with image uploads.

  A PHP Error was encountered Severity: Notice Message: Use of undefined
  constant FILEINFO_MIME_TYPE - assumed 'FILEINFO_MIME_TYPE' Filename:
  Mime/MimeType.php Line Number: 117

  A PHP Error was encountered Severity: Warning Message: finfo_open()
  expects parameter 1 to be long, string given Filename:
  Mime/MimeType.php Line Number: 117

This supposedly stems from the fileinfo extensions only being available from 5.3.10 onwards. The PHP version on this server is 5.3.29 and it looks to have been compiled -with-fileinfo

I have a support request in with the hosting company at the moment but I wondered if anyone else had run into this and may have a workaround.


texts: Can Cartthrob use multiple currencies and multiple paypal accounts?

texts:
I need to know if cartthrob can be set up for the specific use I need.

The ecommerce part of the website will be worldwide, so I need to use multiple currencies on each product (basically USD, GBP and EUR) depending on where the user is connected. Each currency will be paid to its related paypal account (USD account, GBP account and EUR account).

I'm sure everything is possible with cartthrob. But will it be easy to set it up like this ? Do someone have some feedback on this ?

Thank you


texts: field Type no passing tag data to replace_tag function

texts:
having a bit of a problem with a field type and trying to pass in tag data.:

in my template i have

{entries ...} {field} {keys}{key}{/keys}{/field} {/entries}

however when i do a var_dump($tag_data) in the replace_tag() function i am getting false.

however a var_dump($data) if producing the expected data in the same function..

Any Ideas?

Additional:
i have already tried a tag pair in the same format as

{myfield:option}
    Tag data here
{/myfield}


texts: Espresso Store - How to build a list of orders between two dates?

texts:
We've built a custom report for a customer using Espresso Store2, And we'd like to add the ability to allow the the user to select a start and end date to filter orders. Is this possible using expresso store alone, or do we need to also make use of a third party plugin?

Many thanks!


texts: Expresso Store: Update Cart button is not updating the cart

texts:
I have a regular 'update cart button' on my basket (button type="submit" name="update_cart"), which should obviously recalculate the cart when I click it.

The cart is reloading correctly, but any changes to quantity are being ignored and the original value reloaded.

Any pointers as to where this might be going wrong?


texts:
Client just increased scope for a project a bit by requiring us to be able to export all customer data from Expresso store so that their AS400 can store it.

I know there are some options here.. Zenbu + Hokaku, AJW Export and DataGrab.. We were already going to use DataGrab to import inventory into Expresso from their AS400 mainframe, but I wasn't entirely sure if it had reasonable export functionality that is up to this task.

Can anybody weigh in on this and advise me on my options? Do I require another plugin or can I just use Datagrab?


texts:
I have a page where I am displaying all the information from a channel entry along with some information from the playa parent field. But I have not been able to get to display the categories associated with the parent. Is it possible to do this? My code is here below

{exp:playa:parents channel="book" disable=""}
  {title}
  {short_description}
  {categories show_group="9"}
    {category_name}
  {/categories}
  MORE DETAILS
{/exp:playa:parents}

I had a similar problem with exp:playa:children before and I sorted that by adding the disable="members" parameter. Anyone know how I can get this to work?


texts:
so I am trying to use a dynamic variable, this works

{member_id}
{exp:channel:entries channel="vacancies" author_id="9"}

and this does not

 {member_id}
    {exp:channel:entries channel="vacancies" author_id="{member_id}"}

Any ideas


texts: Freeform default_value not working with global email variable

texts:
So I am building this "booking form" (really it just emails somebody) and I want the form to be pre-populated with the user's details if they are logged in. I have this mostly working, but the email address will not populate from the global {email} variable.

Because of the parse order I have the form in an include and am embedding it in my template, passing the variables to it.

Here is the embed code:

{embed="/includes/.booking-form"
        first-name="default_value='{exp:member:custom_profile_data}{first-name}{/exp:member:custom_profile_data}'"
        last-name="default_value='{exp:member:custom_profile_data}{last-name}{/exp:member:custom_profile_data}'"
        email="default_value='{email}'"
        school="default_value='{exp:member:custom_profile_data}{school}{/exp:member:custom_profile_data}'"
    }

And here is the form code:

{exp:freeform:form form_id="1" required="first_name|last_name|email|school" return="{page_url}" inline_errors="yes" form:class="booking-form"}
{if freeform:general_errors}

There were some error(s) with your submission:

        {freeform:general_errors}

{freeform:error_message}

        {/freeform:general_errors}

{/if}

    * First name:
    {freeform:field:first_name {embed:first-name}}
    {if freeform:error:first_name}

            {freeform:error:first_name}

    {/if}

    * Last name:
    {freeform:field:last_name {embed:last-name}}
    {if freeform:error:last_name}

            {freeform:error:last_name}

    {/if}

    * Email:
    {freeform:field:email {embed:email}}
    {if freeform:error:email}

            {freeform:error:email}

    {/if}

    * Your school:
    {freeform:field:school {embed:school}}
    {if freeform:error:school}

            {freeform:error:school}

    {/if}

    Comments:
    {freeform:field:comments}

    {if freeform:error:comments}

            {freeform:error:comments}

    {/if}

{freeform:submit}

{/exp:freeform:form}

As I said, the first name, last name and school are pre-populating perfectly, it is only the email that is not working. I have done a bit of debugging, if I put the {embed:email} tag in elsewhere in the code it outputs correctly default_value='email@email.net', and if I manually type in the email into the embed code like so:
email="default_value='email@email.net'" it pre-populates.

Anyone have any idea what's going on? Thanks in advance!


texts:
I need to use some kind of "encoded" value for title/url-title, and I was thinking of using md5 or sha-1 hash code for this. The idea is that user receives email link to the entry, but it is supposed to be hard to guess other public entries (if I based them only on enrty_id for example).

Is this best way of doing this or there is maybe some other kind of code it would be suitable. My idea was to generate random md5 and put it on title (safecracker).

Thanks
dp


texts:
I'm having an issue with case sensitivity in URL's.  I have a template that includes a channel entries tag that loads a structure entry, a structure nav that starts from segment_1, and a {segment_1_category_id} tag.  The entry for the page has a structure URI of /foo.

Loading site.com/foo produces the following result -

channel entries - correct entry
structure nav - correct nav
segment_1_category_id - correct cat id

Loading site.com/Foo produces the following result -

channel entries - correct entry
structure nav - loads the full top level structure nav, so {segment_1} doesn't match an entry
segment_1_category_id - no cateogry id

I tried using mod_speling to tell Apache to ignore case in URL's, but that doesn't seem to have worked.

Other solutions seem to be using php strtolower to clean up the URL's, but I'd have to hack a few places to do that or turn on php on templates, neither is desirable.

I could also use a .htaccess redirect to force all the URL's to be lowercase, but I don't love using a redirect, and I might run into issues with the redirect in other cases.

What am I missing here as a better solution?  I haven't run into this before and as far as I can tell from google, it's not a common problem.


texts: Is there a way to be able to translate grid table headers in {exp:channel:form}?

texts:
Is there a way to be able to translate data inside grid table in {exp:channel:form}?

I want to change the table headers to be translated.

I also want to change the button to add new rows to something like a translatable word(for example, "add row").

Is this possible with Grid? Or are we stuck with what we input in the channels?

EDIT:

My question only applies to the publish form inside a Channel Form tag. I am not looking for a solution that works on the EE Control Panel.


texts:
I'm about to rollout a product that could potentially need hundreds of connected EE sites.  What is the limits to MSM? I can easily see a few hundred sites but it could be as big as a few thousand.

I have an EE site that has a large number of customizable features based on field types allowing the features to be activated.  I would duplicate the site for every new install and customize it based on a specific brand.  One instance will be for a large number of business franchises that need their own sites for local SEO purposes as well as offerings.

How can I utilize the EE MSM and not get limited by the database size, columns, etc...?


texts: Assets: Wrong Thumbnail After DB Migration

texts:
I dumped my production DB and imported it into my DEV environment, but Assets is showing the wrong thumbnails for S3 images. The full images are correct (they display correctly in the templates), it's just the thumbs that are wrong.

I updated the indexes for those Assets sources, but it didn't fix the problem. I also deleted everything in the /cache/assets directory, but nope.

EE 2.7.2
Assets 2.2.2


texts: The right place to force SSL on entire domain

texts:
I'm not all that familiar with htaccess and in attempting to do this myself I'm getting a too many redirects error so I thought I would go to the experts. I'm just looking for the right place within my htaccess file to force SSL on the entire site, while still removing www, removing index.php, etc (the usual fare for an EE install). My htaccess file currently looks like this:

<IfModule mod_rewrite.c>

# Enable Rewrite Engine
# ------------------------------
RewriteEngine On
RewriteBase /

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

# Redirect index.php Requests
# ------------------------------
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{THE_REQUEST} !/MySystemFolder/.*
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,L]

# Force SSL
# ------------------------------
# I'm guessing this is the position for the https rewrite rule
# but when I tried it, it resulted in a too many redirects error.

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

</IfModule>

#add Expires
# ------------------------------
FileETag MTime Size
<IfModule mod_expires.c>
  <filesmatch "\.(jpg|png|css|js|jpeg|woff|ttf|svg|eot|gif)$">
       ExpiresActive on
       ExpiresDefault "access plus 1 year"
   </filesmatch>
</IfModule>

I would greatly appreciate being pointed in the right direction.


texts: EE 5.x - How to suppress login/logout confirmation page

texts:
on EE 2.x the Freemember addon allowed to directly redirect the user after login/logout to a specified page (avoiding the default login/logout confirmation page).

Since the Freemember addon is EOL, how can I achieve the same thing on EE 5.x ?


texts: Is it possible to use gmail as the smtp server for sending e-mail from ExpressionEngine?

texts: Is it possible to use gmail as the smtp server for sending e-mail out from ExpressionEngine? It looks like you need to be able to set a different port and i'm not sure you can do it from the  E-mail config page in the EE admin area?


texts: I am using structure in my current project and the interface is not displaying correctly. No files have been altered within the addon. Below you can see how my interface looks. Any Idea what would be causing this?


texts: Upgrade error: Unknown column ‘protect_javascript’ in ‘field list’

texts:
I’m attempting to upgrade from 2.1.3 to 2.9 (I realize this should have been done before now; just took over this site recently). The upgrade fails at 2.5.5 with the following error:

  Error Number: 1054

  Unknown column ‘protect_javascript’ in ‘field list’

  UPDATE exp_templates SET template_id = ‘36’, site_id = ‘1’, group_id = ‘10’, >template_name = ‘.client_name’, save_template_file = ‘n’, template_type = ‘webpage’, >template_data = ‘{exp:channel:entries channel=\"projects\" entry_id=\"{embed:project_entry_id}\” limit=\“1\” dynamic=\“off\”}\n\n{work_client}{work_client:title}{/work_client}\n\n{/exp:channel:entries}’, template_notes = ‘’, edit_date = 1405662666, >last_author_id = ‘1’, cache = ‘n’, refresh = ‘0’, no_auth_bounce = ‘’, >enable_http_auth = ‘n’, allow_php = ‘n’, php_parse_location = ‘o’, hits = ‘0’, >protect_javascript = NULL WHERE site_id = ‘1’ AND template_id = ‘36’

  Filename: /home/skeo/webapps/skeo_dev/system/expressionengine/models/template_model.php

  Line Number: 389

I tried manually adding a protect_javascript column of type char(1) (guessed based on documentation) but I still get the error. Anyone encountered this? I’ve seen discussion of this happening in other upgrades with other fields but not this one.


texts: Add data attributes to Cartthrob form tags

texts:
Is it possible - without an extension or hack - to add data- attributes to CartThrob's form tags?

{exp:cartthrob:save_customer_info_form data-foo="bar"}


texts: How do I delete users without deleting their content?

texts:
I need to delete users from an ExpressionEngine site, version 2.7.2. How do I do it without deleting their respective entries and content?

This question might be a duplicate - What happens if I delete a member, does it delete their entries? - but I don't have the reassign option. I only get a warning:

Are you sure you want to delete these members?

guest_user
THIS ACTION CANNOT BE UNDONE


texts: Take input as localized time of the user via channel form

texts:
Am trying to store localized time of the user via a date field in a channel form.
My server timezone is set to GMT.

Wanted to display the time and date field to the non-logged in users in their timezone automatically on the frontend.

Am using EE 2.11.9
Would prefer to set the time zone for the users who will post entries during registration.

Probably get the location of the visitors by browser prompt or are there other elegant ways to do that?

Any pointers as to how I can accomplish that.


texts: The options loop in channel entries form does not accept an offset

texts:
I'm trying to add an offset parameter to the options loop within a Channel Entries form. While it accepts a limit, it simply ignores the offset. Here's an example:

{exp:channel:form channel="channel1"}
  {options:channel_name limit="4" offset="4"}
    {option_name}
    # limit="4" works, offset="4" doesn't
  {options:channel_name}
{/exp:channel:form}

How can I add an offset? I'm using this on a channel form.


texts:
I'm struggling with this question again: Classes on list items with GWCode CategoriesClasses on list items with GWCode Categories

I'm trying to generate an unordered list with custom classes on the list items (for expand/collapse hooks). The problem I'm having is when it goes from depth3 to depth1.

depth1 item
-- depth2 item
---- depth3 item
-- depth2 item (works fine!)
---- depth3 item
depth1 item (depth3_end can't just trigger one level of closing UL; how to back up without knowing next level?)

Has anyone worked this out? I'd just use nested output and avoid applying this logic to linear, but there are no "has-children" or "here" classes if it matches the current URL.

Thanks!

Mark

UPDATE This is where I started. I've been playing with depthX_start and depthX_end and am still seeing this spot where depth3_ends and it doesn't back up to depth1. So my next depth1 category is at level 2 in the UL.

        {exp:gwcode_categories group_id="3" style="linear"}

{cat_name}{if has_children}

{/if}
                {if depth2_end OR depth3_end OR depth4_end}

{/if}
            {if !has_children}
{/if}
        {/exp:gwcode_categories}

You'll see the classes I need to add there. We're using JavaSript to enable expand/collpase on a given item, and to trigger the left nav to open where .here is.


texts:
I'm using EE 2.7.3 and I have a fresh installation of zoo visitor (1.3.30). I migrated my members over to zoo (1 member) and tried to add a First Name and save. I receive this error:

Fatal error: Call to undefined method stdClass::update_username_password() in /var/www/mysite/system/expressionengine/third_party/zoo_visitor/ft.zoo_visitor.php on line 390

Any thoughts?


texts: Determine which channel the user came from and display information accordingly

texts:
I'm currently working on an EE site (2.5.5) and I currently have a setup in place where there are next/prev buttons displayed on the singular view templates for articles (Two channels: Articles & Interviews). The buttons link you chronologically from entry to entry spanning across channels which is great.

{exp:channel:entries channel="articles|interviews|travelling_tips"}
{exp:entries_list per_page="1" entry_id="{entry_id}" entry_series="{embed:all}"}
  {if previous_entry_title}
    Previous Entry: {previous_entry_title}
  {/if}
  {if next_entry_title}
       Next Entry: {next_entry_title}
  {/if}
{/exp:entries_list}
{/exp:channel:entries}

And the embed from the articles/view template (also interviews/view template):

{embed="embeds/related-articles"
    entry_id="{entry_id}"
    categories="{categories backspace='1'}{category_id}|{/categories}"
}

Where I'm running into a problem is when the client has a very specific set of criteria on how these buttons work.

If a user uses the search field and then clicks on an article from the search results page, she wants the next/prev buttons to only click through THE SAME channel bringing up more relevant stories. Currently in the search results if you click on an article it will take you to the articles/view template.

My question is how would I best approach this? Would have have to make some sort of new view like search/view to display that article?

Thank you for your time! If I need to rephrase, please let me know.

EE 2.5.5
Entries List 4.2.2


texts:
I am using EE 3.0.5 and I am trying to get the first-party feed parser to work. I have installed the module with no problems via the add-on manager. I am using the sample code provided in the docs. I have a template consisting of nothing but

{exp:rss_parser url="https://ellislab.com/blog/rss-feed" limit="10"}

    {feed_items}

{item_title}

    {/feed_items}

{/exp:rss_parser}

The feed is valid, but EE returns an empty page, i.e. nothing at all. Any bright ideas? Any logs I could check? Has anybody managed to get the plugin to work with EE 3?


texts:
I have a Low:Search result that is a child entry in a relationship, for which I wish to point at it's parent entry.

The child doesn't have its own URL that resolves, it just resides within its parent index. The entries in the other collection have URLs that resolve.

I tried to redirect from the child URL to its parent.  No luck, perhaps a parse order issue?

I also tried to set the inner html - that displays the content - based on a conditional within the {low_search:results} tag, using 'collection_name', but it also isn't working.  I receive a message that the page cannot be properly displayed.

The only way I can get it to work is if I have 2 duplicate {low_search:results} tags, targeting each collection separately, as per Group Low Search results by channel/collection?, but I get both a result set and a 'Sorry, no results' message as both tags are firing, but the keywords are not in both collections.

I must be missing something obvious, as relationships have been around a long time in EE.

Can anyone with a clear head see what I'm missing?

Thanks very much for reading.

Code example - I don't expect this to work as is, but this structure is what I was hoping would work...

  {exp:low_search:results query="{segment_3}" limit="10"}

  {if count == 1}
    {if low_search_keywords}
Term searched for: {low_search_keywords}.
{/if}

Total results: {absolute_results}.

  {/if}

  {if channel == "members"} {!-- child of 'bands' --}

{title}

{low_search_excerpt}

  {/if}

  {if channel == "musicians"} {!-- no children --}

{title}

{low_search_excerpt}

  {/if}

  {paginate}

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

  {/paginate}

  {if low_search_no_results}

Sorry, your query did not return any results. Check your spelling or try a different search term.

  {/if}

{/exp:low_search:results}

Working code:

{if channel_short_name == "members"}

{parents field="cf-members_item"}

{title}

{/parents}

{low_search_excerpt}

{if:else}

{title}

{low_search_excerpt}

{/if}


texts: Backend fine - No dynamic data output to site…

texts:
Just wondering if anyone has any ideas or has seen this happen before. I have a site running 1.6.8 (I know very very old now) and it has been running fine for a long time now.

The site has had to be moved to a new server as it (the server) has been massively slowing down as of late and so the host moved everything across to the new server for us.

Upon doing so there is no dynamic data being output to the main site. All template data is being spat out so ExpressionEngine is definitely doing most of its thing and also the admin section is absolutely fine and shows all that it should and works fine it's just that on the main site pages nothing dynamic shows at all.

The caches have been completely deleted by deleting the cache folder from the admin folder but still no dice.

The site is now running a later version of PHP 5.4.37 and I know that EE 1.6.8 isn't supported that far up but I know that people are running 1.6.8 on versions of PHP even higher than that so was just wondering if anyone knows of anything simple that this might be?

Perhaps some PHP config variable or something or another?

Any help with this would be greatly appreciated.

Best wishes,

Mark


texts: Is it possible to edit / add to the entry Statuses in Freeform or can I only select from the default Pending, Open and Closed?


texts: Expreso Store - Don't show modifier price if zero

texts:
We're using Store 2.5.0 and EE 2.9.2.  On the checkout page we're showing the value of any modifiers using:

{if price_mod_val}({price_mod}){/if}

It's returning the value of the modifiers ok, but it's also displaying +0.00 if the modifier is empty.

Is there a way to not show the modifier value if it's 0?


texts: Since upgrading to 2.5.5, Template Manager links broken in Chrome.

texts: Since upgrading to 2.5.5, in the Template manager screen, all the links have the same template group ID in them, so I can't switch between template groups. It works in Firefox, Opera, and even in IE, just not Chrome. Wondering if anyone else noticed this?


texts: Cart Throb Permissions: The requested module page could not be found

texts:
Does anyone out there have Cart Throb Permissions working as it should?  I have NEVER been able to get it working properly since I purchased it.

up2date EE 2.7.1 CartThrovb 2.4 and Permissions 2.3.3

I still get error:

The requested module page could not be found.

when click next page at the bottom of my permission module page.  I con only access the first 50 permissions and cannot view the next page.


texts: Channel Entries - addon to charge members per entry?

texts:
Does EE have an addon, either native or third party, that can charge members to post entries? Some entries will be a one time payment while others need to be recurring. I need the entry to expire at a certain date, or if a future payment fails, etc. Email notifications to keep members aware of payments, etc. would be useful.

I know this sounds very specific, but I'm hoping something already exist than having to build something.


texts:
Is it possible to filter Low alphabet listings by member group with Zoo visitor?

Eg something like this:

{exp:low_alphabet:entries
    channel="members"
    alpha_ignore="the|a"
    numbers="after"
    group_numbers="yes"
    numbers_label="#"
    alpha_filter="{segment_3}"
    status="not closed"
    orderby="title"
    show_group="7"
    sort="asc"
    disable="categories|member_data|pagination"
}
  {if count == 1}
Company A-Z
{/if}
  {if low_alphabet_heading}

{low_alphabet_label}

  {/if}

        {title}

  {if low_alphabet_footer}

  {/if}
{/exp:low_alphabet:entries}


texts: Views at the cost of caching - worth it?

texts: I want to keep track of the number of times my single entry page is viewed. However, it seems that I have to disable page caching in order to do this. How much of a performance penalty will that be? Are there alternatives to counting the number of page views? I want to be able to display the page views, sort by page views, etc.


texts: Expressionengine Custom forms fails with Jquery Validate plugin

texts:
I have two forms that are almost exact that I’m validating with jquery validate plugin. One form works https://www.anticipateinvitations.com/index.php/contact while the other https://www.anticipateinvitations.com/index.php/how doesn’t work. Both forms are using the same validate method

$('.contact-form').each(function() {  // attach to all form elements on page
        $(this).validate({       // initialize plugin on each form
            // global options for plugin

        rules: {
            fname: "required",
            ptime: "required",
            email: {
                required: true,
                email: true
            },
            captcha: {
                        required: true,
                        captcha: true
                    }
        },
        messages: {
            fname: "Please enter your name",
            ptime: "Select a preferred time",
            email: {
                required: "Please provide an email address",
                email: "Please enter a valid email address"
            },
            captcha: {
                required: "Give an answer to the sum"
            }
        }

        });
    });

Initially I was getting invalid input error on the form that doesn’t work until I added <input type="hidden" name="XID" value="{XID_HASH}"> after searching around for a solution. Now the form just reloads the page after submission and the validation plugin does not fire.

The forms have different IDs so that I can handle submission differently. All custom JS is in one file. I had tried separating the validate using the IDs which didn't work. Jquery is present on page since on firebug I can play around with the DOM elements but it feels like there is no javascript on the second form since even the calendar on that page does not working which works on the form that is ok, Im running EE 2.7.2 secure forms submission is on.

Any help please?


texts: Why would my template not show when channel entry limit parameter is set higher than 1 with Playa parent tag is within?

texts:
I have two channels; A and B.
Channel B has a Playa field that relates that entry to entries from Channel A.

In my template, I am wanting to show all the entries from Channel A and display the title of entries from Channel B via the Playa Parent tag.

Here is my code:

{exp:channel:entries channel="channelA" limit="1000"}

{title}

        {exp:playa:parents channel="channelB"}

{title}

        {/exp:playa:parents}

{/exp:channel:entries}

If the channel entry limit is set to anything higher than 1, the template is a white screen.  But if the limit is set to "1" it works for the most recent entry only.

If i remove the Playa code, the template shows as it should.
Is there something I am missing?

Thanks


texts:
Pagination isn't working for me in Structure for a listing-template. My entries loop for the listing looks like this:

{exp:channel:entries
    channel='remedy'
    limit='9'
    dynamic='no'
    orderby='title'
    sort='asc'
    paginate='bottom'
}

{title}

{remedy_rel_product backspace='2' limit='3'}{title}, {/remedy_rel_product}&hellip;

    {paginate}
        {pagination_links}

                {first_page}

First Page

                {/first_page}

                {previous_page}

Previous Page

                {/previous_page}

                {page}

{pagination_page_number}

                {/page}

                {next_page}

Next Page

                {/next_page}

                {last_page}

Last Page

                {/last_page}

        {/pagination_links}
    {/paginate}
{/exp:channel:entries}

The links output the right path, when I click on it going to /my-page/P##, it'll just default out to the site's home-template. In the template-debugger that's also exactly what I see:

(0.000218 / 14.59MB) Path.php Template: /

While without the pagination-segment it shows this:

(0.000138 / 14.59MB) Path.php Template: _templates/remedy_listing

Which is the correct template. Any thoughts as to what's going on here? I'm running Structure 3.3.10 on EE 2.6.1.


texts: Having trouble uploading .csv file into a template, as of just this week. We're running version 1.7.3. Is this version no longer supported?


texts:
This bit of code supplied with CartThrob does some fancy stuff on the checkout page.

<script type="text/javascript" src="{path='store/cart.js'}"></script>

However, we go to HTTPS on this page and the JS doesn't get served up. We get this error:

  The page at https://domain.com.au/store/checkout ran insecure content from http://domain.com.au/store/cart.js.

The JS file has template variables and all sorts in it, so I guess they why the CT people have it a template file? Either way, can I get it with HTTPS?

Thanks.


texts: Cannot upload to root images directory in Assets, subdirectories OK

texts:
I'm having trouble uploading images using Assets.

Assets: v2.1.4
EE: v2.6.1 - Build Date: 20130506

They are uploading. If I refresh the Assets screen, I see them. But when I upload them, I receive this error:

http://circa1977.net/snap/assets-uploading-trouble.png

Note that's only the case for the Image Uploads level directory. If I select Team on the left, and upload, I have no trouble.

Here's the AJAX response:

A PHP Error was encountered

Severity: Warning

Message:  mkdir(): No such file or directory

Filename: libraries/Filemanager.php

Line Number: 1311

A PHP Error was encountered

Severity: Warning

Message:  fopen(../uploads/images/_thumbs/index.html): failed to open stream: No such file or directory

Filename: libraries/Filemanager.php

Line Number: 1315

A PHP Error was encountered

Severity: Warning

Message:  fwrite() expects parameter 1 to be resource, boolean given

Filename: libraries/Filemanager.php

Line Number: 1316

A PHP Error was encountered

Severity: Warning

Message:  fclose() expects parameter 1 to be resource, boolean given

Filename: libraries/Filemanager.php

Line Number: 1317

{"success":true,"file_id":91,"folder_id":"2"}

I am able to upload via the native File Manager to that root directory.

I have checked permissions on the cache folder.

I have the following in config.php:

$config['assets_site_url'] = '/index.php';

$config['assets_cp_path'] = dirname(__FILE__).'/../../syncadmin/';

For server path to upload directory I have: ../uploads/images/

My system folder resides above public.

I've tried a few different solutions, including switching session from Cookies-only to Cookies + Session ID, changing permissions, changing paths, to no avail.

Any help would be greatly appreciated.

Thanks!

Mark


texts: gwcode_catmenu - {cat_image} and image sizes/manipulations

texts:
We've got some categories being output using gwcode catmenu (http://gwcode.com/add-ons/gwcode-catmenu/documentation) but can't seem to find a way of outputting a certain image size (based on image manipulations setup in the file upload preferences),

The code is as follows:

 {exp:gwcode_catmenu cat_url_title="{segment_2}" active_branch_only="yes" depth="1" style="linear"}

{cat_name}

 {/exp:gwcode_catmenu}

This works, but outputs the original image size, we want to do something like:

 {exp:gwcode_catmenu cat_url_title="{segment_2}" active_branch_only="yes" depth="1" style="linear"}

{cat_name}

 {/exp:gwcode_catmenu}

To output the small version of the image, any ideas?


texts: How to make the channel entries tag return the same entry more than once?

texts:
I am passing a pipe-delimited list of entry ids into a standard channel entries tag:

{exp:channel:entries
    entry_id="149|453|321|149"
    dynamic="no"
    limit="4"}

        {title}

{/exp:channel:entries}

I only get 3 results returned, with the second 149 ignored. There seems to be some filter stripping it out. I have gone through the docs but I have not found any parameter along the lines of allow_duplicates="".

How can I make the channel entries tag return the same entry twice if I explicitly request it by entry id?


texts: I installed the Nerdery control panel theme. Followed the instructions. The theme shows in the drop down but it doesn't stay selected after I save. Any ideas what could be happening? Tks!


texts:
i just installed EE 2.8.0 on a server running php cli. It seems that this is causing issues with creating new templates & uploading files in general.

Hosting provider is not willing to make any changes.
Any ideas?


texts: What may cause a GeoRequest:Can't connect to source; error in Expression Engine?

texts:
One of the clients the company I work for uses Expression Engine for their custom site. It was built roughly 2+ years before I hired in, and it’s our only EE site. The person who built it left the company a few months ago, and never trained anyone to maintain the site, so fixing/updating the site has been a task for everyone involved.

It turns out they utilize MX Google Map to display locations for the client. The initial location page loads fine, with several locations, and when I navigate to individual locations, those pages load fine. The search_results page, however, throws this error: GeoRequest : Can’t connect to source;

A few things about this situation:

No one has updated the site in roughly a month.
Client does not have access to control panel.
PHP, MySQL and other server settings have not changed.
The error just appeared this morning…

Long story short, the client is being vocal about wanting a fix asap. Since nothing has changed, site settings or server settings, I can only imagine that it’s a problem with Google’s Map API? Perhaps?

Any help would be appreciated. Thanks!


texts:
Any one know if there is a setting in Expression engine for the WYGWAM editor for https?

When I access through https my tool bar disappears?

Any ideas?

Thanks, Dan


texts: How to list new entries and entries with new comments?

texts:
Looking for a way to list new entries, from multiple channels, and existing entries that have received comments - in the last n days. I'd be really grateful for any leads on how to do this!

Best wishes
Lee


texts:
I know how to make the stock show as 'in stock' or 'out of stock' by using:
{if total_stock} In Stock {if:else} Out of Stock {/if}

How can I code the following:
"In stock" if we have more than 5 items available, "Low stock" if we only have 5 and under or "Out of stock" if we are sold out


texts:
I have a list a dynamically created links in my sidebar.  I want one particular link to appear first in the list; the order after that is unimportant.  How could I accomplish this?  Here is my code:

Ministries

        {exp:channel:entries channel="ministries" dynamic="no" {gv_param_disable_all}}

{title}

        {/exp:channel:entries}


texts: MSM Upgrade from EE 2x to EE 3.5.16, now can only see primary site

texts:
I upgraded from EE 2x, to EE 3.5.16. I can see my primary site fine, but the other sites (both index.php and admin.php) say:

  Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php

So I have checked all the usual - open_basedir looks ok (has not changed):

{WEBSPACEROOT}{/}{:}{TMP}{/}:/var/www/vhosts/site1.com/httpdocs/:/var/www/vhosts/site2.com/httpdocs/

Folder permissions are 755 on site1.

Just to check the system_path, in index.php for domain2, I have added:

echo SYSPATH.'ee/EllisLab/ExpressionEngine/Boot/boot.php';

And this shows the correct path when I access index.php i.e.

  /var/www/vhosts/domain1.com/httpdocs/softwater/ee/EllisLab/ExpressionEngine/Boot/boot.php

I can access the domain2 control panel by first logging into the domain1 control panel.

I'm truly stumped. Everything was working fine with EE2 - what could have gone wrong?


texts: Sorting and filtering items in Cartthrob

texts: I've been trying to find a proper way to do this but no luck so far. How does one go filtering products in Cartthrob. For example if the user wants to change the number of products displayed by clicking the relevant link (show items: 16, 64) (limit=16, limit=64 and so on). I've tried using Mo'variables and pass a limit variable on the url (i.e. /books?limit=16) however this messes up pagination and category filtering. Is there a guide or something on how to achieve this without loosing your hair? :)


texts:
Is there a cart object for Expresso:Store? Something like "$this->EE->cartObject" where I can access the items that is in the cart? The purpose of this is to find out which category the item is in and if it is in a category that does not ship to a country it will display a warning message and blank out the 'confirm purchase' button.

Regards,
Rin


texts: Remove all URL-segments except for url-title?

texts:
right now I have an URL-structure like
www.xy.com/channel/template/url-title

Is it possible to get an url-structure like
www.xy.com/url-title

instead, removing all segments except the url-title? Maybe with the help of template routes, but I am not sure how to use it in this case.
Thanks for any hints!!


texts:
{exp:cartthrob:order_items order_id="1937" variable_prefix="items_"}
    $titlu_carte = '{items_title} ';
    $gestiune_id = '{product_sku} ';
    $cantitate_carte = '{items_quantity}';
   $pret_numeric_carte = '{items_price_numeric}';
{/exp:cartthrob:order_items}

echo $titlu_carte;
echo $gestiune_id;
echo $cantitate_carte;
echo $pret_numeric_carte;

Result:

TITLE1 012L000001 2 12 TITLE1 ( again ? why not the next title? ) 2 12

Why is it giving me the same book and not the next one in the entry?


texts: Is it possible to have channel specific Rating fields?

texts: I am looking into using Solspace Rating for a web project I am working on and I will need to have different Rating fields for different channels. Is this possible? Or do I need to work out a way of hiding some fields for some channels?