texts:
I'm getting an error when trying to call a channel entries tag from inside of {items}. If I remove the channel entries it's fine:
{exp:store:checkout}

    {items}

        {exp:channel:entries}
            {title}
        {/exp:channel:entries}

    {/items}

{/exp:store:checkout}

The error is just a notice, but an error nonetheless:

A PHP Error was encountered
Severity: Notice
Message: Undefined property: EE::$typography
Filename: core/EE_Output.php
Line Number: 308
Fatal error: Call to a member function parse_type() on a non-object in /Sites/mysite.com/source/ee/expressionengine/core/EE_Output.php on line 308

Any suggestions?
This is on EE 2.7.2, latest Store.


texts: EE 2.8.1 & CartThrob 2.5: multi_add_to_cart_form not working

texts:
Is anyone running EE 2.8.1 and Cartthrob 2.5 getting the multi_add_to_cart_form to work?  It seems to not be posting the values into the cart.  I have gotten the one item add_to_cart_form to work and can see cart entries perfectly when using that tag, but the multi_add_to_cart shows nothing when attempting to view the cart.  Here is my barebones hardcoded attempt template code:

{exp:cartthrob:multi_add_to_cart_form return="shopping_cart"}
     <input type="hidden" name="entry_id[1]" value="105" />
     <input type="hidden" name="entry_id[2]" value="103" />
     <input type="hidden" name="entry_id[3]" value="101" />
     <input type="submit" value="submit" />
{/exp:cartthrob:multi_add_to_cart_form}

I've also tried using the multi_add_to_cart_form nested in a {exp:channel:entries} tag pair, but it also does not seem to be posting the entries into the cart:

{exp:cartthrob:multi_add_to_cart_form return="shopping_cart"}
     {exp:channel:entries channel="products" status="Open"}
          <input type="hidden" name="entry_id[{count}]" value="{entry_id}">
     {/exp:channel:entries}
     <input type="submit" value="submit">
{/exp:cartthrob:multi_add_to_cart_form}

I'd very much appreciate if anyone with CT 2.5 and EE 2.8.1 could confirm if they can get the multi_add_to_cart tag working at all.


texts: Low Search for location/proximity searches

texts:
Is it possible to use Low Search for creating a store finder kind of search?

I'm currently using Channel Search in combination with Google Maps for ExpressionEngine and while it's pretty good the search system also uses a large number of categories. I'm seeing some performance problems because of this.

I've recently used Low Search on another site to search through and filter a large number of categories and I've been really impressed by its speed.

So what I'm hoping I can do is combine Low Search with Google Maps for ExpressionEngine to get a fast search system which allows the user to search for properties within a radius of a specified location.


texts: FieldFrame fieldtype errors after upgrading from EE1 to EE2

texts:
I've recently upgraded from EE1 to EE2. I had some issues with upgrading the add-ons which you can see here, but I now have a working cpanel that I am able to log into, but on the frontend I am getting this error:

Error

Unable to load requested field type file:  ft.ftype_id_2.php.

Confirm the fieldtype file is located in the expressionengine/third_party/ directory

I have done a search for ftype_id_2 in my database and it returned 3 results from the exp_channel_fields table. On the EE1 version of the site these are all FreeForm fields "FF Checkbox Group"

How should I proceed to get these fields across from EE1 to EE2?


texts:
Having the same issue as in this thread:

Console Error with Assets when Attempting to Index Amazon S3 folder

When trying to update the index for an S3 source, getting the following error in the Firebug console:

missing ) in parenthetical
</div><div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;"
assets.js?2.0.5 (line 5626, col 11)

This was working fine until recently adding additional folders within an S3 bucket. Any ideas?

UPDATE: 04/01/2013

This issue ended up being an NAT issue with the Amazon cloud server, which is behind a firewall. It was blocking all outgoing requests. This is what was causing the JS errors I'm assuming.

I discovered this by editing my S3 source and trying to refresh the bucket list. Eventually I got the following error message:

Access denied by target host


texts: Low Search: Search by Postal code, populate latitude, longitude automatically

texts:
I'm a little lost here. I have the following situation:

I have channel entries (properties) which are geocoded (latitude, longitude)
I'm trying to use Low Search to look for properties and have them sorted by distance from preferred location / address

Problem: How do I tell Low Search which geocode the address (City or Street or Postal Code) the user is searching for has?

Here's the detail page of Low Search:
http://gotolow.com/addons/low-search/docs/filters#distance

Thanks in advance!


texts: Expression Engine Forum Alternating Classes

texts:
Reading the expression engine forum display forum topics
There is no count variable. I want to alternate classes for each result so it can have different background colors. There is no other property I can use that would also stand in for it for alternation. Anyone know what I can do for alternating classes for each forum topic result?

I don't know if anyone will see this, I miss the forums.


texts:
I am having issues with importing a CSV into Expression Engine with the DataGrab plugin. Most of the rows are being imported but there is still a small amount that is not.

There are only two columns I am trying to pull in from the CSV. These are the subject and the start date. The start date is in the correct format for the plugin according to the documentation.

"2013-05-01 15:05:00"

But the plugin is seeing it as:

"2013-01-05 15:05:00"

Any ideas as to why this is happening? The full row of the CSV file is below for reference.

"Athletics Match - Years 8 & 10 - at Sohan VC - 3.05pm - 6.15pm","Publish on Website|Sporting Activity|Year 10|Year 8","2013-05-01 15:05:00","2013-05-01 18:15:00","0","Soham","2013-04-22 15:19:36","2013-04-29 12:30:15"

Any help would be great.

Thanks
Dave


texts: Conditionally targeting the 404 template

texts:
When I get a 404 page, the URL in the browser remains pointing to the page I was trying to reach. ie. the address bar will show domain.com/unreachable-page not domain.com/404. Which is fine and, I believe, correct behaviour. However…

That being the case, is there any way to target the 404 template with a conditional? (In this case, from within an embed or snippet that appears on every template -- I wish to have some different content for the 404 template). It would seem that segments are not going to be much help here, so I wondered if there is another way.

Example:

{if is_404_template}
    // Display something
{/if}

Thanks.


texts:
This question is more of I'd like to know rather than an issue for me right now.

In the table exp_channel_data Playa fields store a string using the following fields from the relationship channel entry: "[entry_id] [url_title] title".

However the table exp_playa_relationships is the one that stores the IDs between parent, child etc. This is the only table that is updated if one of the entries are edited. So why is the string stored in the exp_channel_data table?


texts: Cannot upload any files in Devdemon Updater

texts:
When attempting to upload modules to Updater I get this error:

  Server responded with a 404 status

When I click "Show More" it just says Object not found! in the detailed view.

I am using FTP upload mode.

This exact same behavior occurs when attempting to backups EE/DB, except it returns the following status line:

  Unexpected server response, probably a PHP error.

When I click "Show More" here, however, it's just the same 404 page as above (Object not found!).

Anyone know how to make this addon work?

EE version: 2.7.3 (attempting to get this addon working so I can update to 2.9.0)

Updater version: 3.2.17


texts: Channel Info Tag - Two different channels

texts:
Is it possible to deliver the channel info tag for two different channels?

I know the below does not work using a pipe separator.

{exp:channel:info channel="news|contact"} {channel_title} {/exp:channel:info}

Any suggestions?


texts: Safecracker / zoovisitor required category field

texts:
I am using zoo visitor to register members onto a site.
Some member groups are required to select their country which is saved in their entry as a category.

There is also a region field which is a sub category list linked to the country.

I have all the required field errors set inline but am not sure how I would require the country category (and if possible the region if it was present)

Here is the relevant section of my code :

{exp:zoo_visitor:registration_form return='/register/success' allowed_groups="7|8" datepicker="yes" error_handling="inline" rules:country="required"}
Mobile number:
<input type="text" name="mobile" id="mobile" value="{mobile}" />
&nbsp;{error:mobile}

Country:
<select name="category[]" id="country" class="quicksearch region_optional">
    <option value="">Select Country</option>
    {exp:channel:categories category_group="1" parent_only="yes" style="linear" parse="inward"}
    <option data-name="{category_name}" value="{category_id}">{category_name}</option>
    {/exp:channel:categories}</select>

&nbsp;{error:country}

Region:
<select name="category[]" id="regions" class="quicksearch">
    <option value="">Select Region</option>
    {exp:channel:categories disable="category_fields" style="linear"}
    {if parent_id == '0'}{if count != '1'}</optgroup>{/if}<optgroup label="{category_name}">{/if}
    {if parent_id != '0'}<option value="{category_id}">{category_name}</option>{/if}
    {/exp:channel:categories}
    </select>

{/exp:zoo_visitor:registration_form}


texts: Displaying ExpressionEngine Data in an XML file

texts:
have come up against a problem recently and its driving me crazy. Just wondered if anyone can give some advice on it

I'm in the process of exporting data from a EEv1 site to an EEv2 site. So far I have exported some data from a channel into an XML file. What I'd like to be able to do is the following

<?xml version="1.0" encoding="UTF-8"?>

<entries>

{exp:weblog:entries weblog="assets" dynamic="off" status="Open" limit="1000" disable="pagination"}

<entry>

<entry_id>{entry_id}</entry_id>
<url_title>{url_title}</url_title>
<title>{title}</title>
<author>{author}</author>
<status>{status}</status>
<entry_date>{entry_date format="%d/%m/%y %h:%i %a"}</entry_date>

<![CDATA[{body}]]>

<images>{images}
<matrix_cell_1>{image}</matrix_cell_1>
<matrix_cell_2><![CDATA[{label}]]></matrix_cell_2>
<matrix_cell_3><![CDATA[{image-link}]]></matrix_cell_3>
<matrix_cell_4><![CDATA[{openlink1}]]></matrix_cell_4>
{/images}</images>

</entry>
{/exp:weblog:entries}
</entries>

By the above I mean use Expression Engine tags to populate the XML file in a browser

If I save this XML file to the server and then navigate to the file in my browser, it would dynamically display all entries in that weblog in a presentable fashion. However it seems like the XML files just doesn't recognize the {exp:weblog:entries...

I don't get an error, but it just display the tags exactly as shown on the XML file.

Is anyone able to help out with this, as I'm sure I've had it working before. But that was a while ago and I've the feeling I may have missed something

Many Thanks


texts:
I'm working on an EE 1.6.8 site with SolSpace User 3.0.1 .  The password reset form does not seem to be working.  When entering the new password in the Confirm New Password box, a message comes up straight away "Please enter the same value again".  Both passwords are the same.  Thanks.

{exp:user:edit return="account/index"}

Change Password

New Password <input type="password" name="password" class="pass" />

Confirm New Password <input type="password" name="password_confirm" />

Current Password <input type="password" name="current_password" />

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

{/exp:user:edit}


texts:
I'm having trouble implementing a new payment gateway for Expresso Store using the Omnipay library.

The main issue is that I can access credit card related details during the PurchaseRequest by calling $this->getCard()->getName() & $this->getCard()->getNumber() - I post these and other details off to the payment gateway which checks the 3DSecure status of the card prompts the user for an OTP if the card is enrolled for 3DSecure.

The gateway then posts back to my module for the next leg of processing at which time I implement the CompleteAuthoriseRequest.

But I no longer have access to the CardName or CardNumber - the methods $this->getCard()->getName() & $this->getCard()->getNumber() return FALSE and even ExpressionEngine sessionCache doesn't work.

Does Omnipay have some built in session caching that I can use to persist these values between calls ? I've looked everywhere but can't seem to find the answer.


texts:
As you will know, when deleting an entry with images, the images aren't deleted from the server. This is one aspect of Expression Engine that I really do not care for: The inexorable build up of redundant files in the system, with- as far as I can tell- absolutely no way of knowing which images are assigned to a channel entry. (Wouldn't it be nice if there were a little display next to each file on the file manager screen telling you which files were assigned to entries..). Here is a post from 2011 with people bemoaning the same issue, and a (great!) feature request which is now a dead link, so presumably met a dead end.

So how do others deal with this problem? How can I keep my image directory clean? and since I have NEVER, in all the sites I have built with EE, had a situation where one image needs to be re-used for more than one entry, I would MUCH prefer a method of locking images permanently to whatever entry they are assigned to. Is this beyond the bounds of Expression Engine?


texts: Expresso Store Error Handling not Working

texts:
I am building my first Expresso Store and having some trouble making fields required. Here is what my checkout form looks like. Note all the fields that that I have marked as required. When I submit the form, it validates the order_email and displays the error message inline. When I fill out the email field and hit submit, none of the other fields are validated.

I'm on EE 2.6.1 and Store 1.6.4.

Thanks in advance for any help.


texts: Channel Entry Model how do I get file url in grid field?

texts:
This question follows this one

$entry = ee('Model')->get('ChannelEntry')
->filter('entry_id', $entry_id)
->first();

$entry->$field_id_5; // NULL

$field_id_5 is a grid field that stores images.

How am I supposed to get what I need to build the urls to the images ?


texts:
We have an EE site running Visitor and Structure for our intra-net.  When we try and "archive" a member  by setting the status to "closed" or anything else for that matter, the status will not save and just reverts back to it's previous setting.  Any thoughts on where to start debugging this issue?

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


texts: Accessing libraries in modules and extensions

texts:
I'm developing a module and an extension and I'm having trouble accessing the custom libraries that I placed inside the "libraries" folder of my module directory.

I've been trying to link to them inside public functions like this:

    $this->EE=& get_instance();
    //  Instantiate class to access Litmus
    $this->EE->load->library('litmus');

In the case above the filename is "litmus.php" and the class name used is "Litmus".

I've also tried putting the same code in the constructor function to no avail.

Thanks in advance for any help on this.

EDIT: ANSWER

All of the comments were helpful and this is what wound up working:

function Litmusee()
{
    // Make a local reference to the ExpressionEngine super object
    $this->EE =& get_instance();
    $this->EE->load->add_package_path(PATH_THIRD.'litmusee/');
    $this->EE->load->library('litmus_lib');
    $this->lib = $this->EE->litmus_lib;
}

When calling a function:

        // Create a new Litmus test
       $clients = $this->lib->get_litmus_email_clients();

With this setup I don't believe the library name matters.


texts: Protecting Profile Email after initial Solspace Importer update

texts:
Is there a way using Solspace Importer, or one of the other data tools, to only update the email field of a member IF it hasn't been updated manually?

We have a client website built on EE (2.8.1) with 5,000+ members. Member profiles are created using a CSV from a database that sits onsite at the client office. It is transferred via SFTP to our server and imported via Solspace Importer.

About 30% of the profiles include an email address. The rest are imported using a default formula. On initial login, the members without an email on file are required to enter an email address. They are validated as members by member number, contract number, etc. We do not write back to the client database. This all works fine now.

This now creates a problem during updates. We will run the CRON job each night. Several custom and default member fields needs to be updated as appropriate by the client database, except Email. So members that provide an email address on the website have their update overwritten nightly by the client database.

Is there a way to protect the "new" email address so it isn't overwritten by the default Importer behavior? I may be missing something very simple here ...

Any thoughts or suggestions would be appreciated. Thank you.


texts: Using {freeform:mp_data:FIELD_NAME} to pre-fill another field on multipage form

texts:
Using FreeForm Pro. I have a 2 page multipage form set up. On the first page users insert their address details. On the second page of the form I want to have a check box and if the user checks the box the address details from the first page are inserted into the address details on the second page. Similar to when you can choose your billing address to be used as your shipping address.

The problem I'm having is achieving this. I'm using javascript to try and fill the form fields on click (using a similar method to this: http://jsfiddle.net/aDNH7/) but because i'm using the {freeform:field:address_line_1_p2} to create the field rather than hand coding the field, (as i need the data to remain on refresh ie for inline errors), I cant use {freeform:mp_data:address_line_1_lb} for example to insert into {freeform:field:address_line_1_p2 } as the data value.

Can anyone offer a solution or advice?
Many thanks,
Ian


texts: Cartthrob extload.php Fatal Parse error on checkout confirmation page

texts:
My extload.php keeps throwing this error on the checkout confirmation page, ee 2.11.9 & Carthrob 2.6. Any ideas why it would do this, the ParserFactory file is in the correct location. If I refresh the page the order goes through okay.

Fatal error: Class 'EllisLab\ExpressionEngine\Library\Parser\ParserFactory' not found in /usr/www/users/dvbedgxbkf/system/expressionengine/libraries/Functions.php on line 2394


texts: "Related products" add to cart button in sidebar not adding to cart (Exp:resso Store)

texts:
On a product info/detail page, the sidebar is showing "related products" which are selected in the CP via Playa. I have them showing up properly but the Add to Cart button doesn't work right if the product has modifiers. When clicked, the page doesn't go to the return URL set in the return parameter of the {exp:store:product} tag pair. Instead, it goes to the same product URL but no content shows up. If the product does not have modifiers, it gets added to the cart correctly.

Here is the code for the related products that show up in the sidebar:

{if wine_related_wines}

You May Also Enjoy

          {exp:playa:children
            channel="shop_wines"
            var_prefix="w"}

            {exp:store:product entry_id="{w:entry_id}" return="cart"}

                      {w:wine_year} {w:wine_varietal}
                      {w:wine_vineyard}{w:title}{/w:wine_vineyard}
                      {w:wine_title_suffix}

                        {if "{w:wine_details:price}" == "$0.00"}

                          {modifiers}
                            {if modifier_type == 'var'}
                              {modifier_options limit="1"}
                                ${price_inc_mod_val}
                              {/modifier_options}
                            {/if}
                          {/modifiers}
                        {/if}
                        {if "{w:wine_details:price}" != "$0.00"}
                          {w:wine_details:price}
                        {/if}

                <input type="hidden" name="item_qty" value="1">
                <input type="submit" name="submit" value="Add to Cart" class="button tiny">

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

I've tried changing {price_inc_mod_val} to just {price_mod} but that doesn't help. I'm sure I'm missing something simple here.


texts: Advise host Sweden for EE build with MSM

texts: I need advise choosing a good reliable hoster for a new EE build with MSM and a mix of 6 .SE and .ORG domains. Preferrably in Sweden because the organisations I work with want a local host. Thanks a lot for advise.


texts: DevDevmon Subscriptions CRON URL Triggering Error Page

texts:
Subscriptions has been working fine for several weeks, but all of a sudden, a bunch of my subscriptions slipped into "Past Due" status. I tried to manually enter the module action URL in my browser (they have it programmed to display a status of what happens as it attempts to renew any past due subscriptions), but after outputting a few rows it reloads, this time using the EE Error template (user message template), and refuses to continue.

The "error" was something about a missing {/if} or errant } or something. This didn't make any sense because the action url shouldn't invoke the template parsing engine.

How could something in the Subscriptions update process trigger an error in the template parsing engine?


texts: How can I create 2 different layouts on same page with channel entry list and single channel entry?

texts:
I am creating a page in my site with a list of entries under 1 channel.

I have the template structure as follows:

collections/ss14
collections/aw14
collections/index

The ss14/aw14 templates pull in data from the channel with all their entries listed here is my template so far:

{if segment_4 == "ss14"}

this is the list view

   {exp:channel:entries channel="ss14" dynamic="yes" url_title="{segment_4}"}

            <input type="hidden" value="{path={site_short_name}/collections/{channel}/{url_title}}" class="perma_link" />

   {/exp:channel:entries}

{/if}
{if segment_4 == ''}

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

            <input type="hidden" value="{path={site_short_name}/collections/{channel}/{url_title}}" class="perma_link" />

   {/exp:channel:entries}

{/if}

Basically the idea here is that I am trying to have a list layout if its under the url /collections/ss14 or /collections/aw14 and then when you go into the single entry itself /collections/ss14/entry-title or /collections/aw14/entry-title I would ideally need to have a different layout as it needs to be using some other parameters inside the channel entries tag.

Does anyone know a good solution to this problem as I am sure there are people who run into this problem all the time when dealing with expression engine.

Cheers


texts: What happens if I delete a member, does it delete their entries?

texts:
I have a couple of members of a site that have recently left the company. If I delete the members will this also remove all entries that were created/edited by them? I want to keep anything they would have entered into the system.

Using an older version of EE v2.5.2 with Multiple Site Manager

Thanks


texts: Different content, different pages in global template

texts:
I am absolutely confused on what to do here

I have a footer that is meant to be different on each page I setup, I want to edit the link, the image, the paragraph and the header tags to what I choose, the current setup is as follows

{footer_h4}

{footer_p}

Short of repeating this template and changing the variables etc every time I want to make a new template, how can I make this included template post the different content on different pages?

For example
Homepage might have a link to {services page} and an image of {services image}
services page might have a link to {contact form} with an image of {contact image}

but I want to be able to use the same template, and principle of changing the footer will go across hundreds of pages hundreds of pages eventually, I can't create a new template each time.

Thanks


texts: Don't display incomplete orders in Control Panel

texts: Is there a way to not show the incomplete orders in the Store control panel? Currently it shows ever cart created, which adds up to quite a bit of not so useful info to delete.


texts: module template tag looping thru values in module template tag

texts:
I am building a module and I am looping thru data to set a value for each key, to be used as EE template tags.

foreach($missing_fields as $field)
{
    $count++;

    $vars = array(
        'field_id'              =>  $field->m_field_id,
        'field_name'            =>  $field->m_field_name,
        'field_label'           =>  $field->m_field_label,
        'field_type'            =>  $field->m_field_type,
        'field_list_items'      =>  format_list_items($field->m_field_list_items),
        'count'                 =>  $count,
        'total_fields'          =>  count($missing_fields),
    );

    $out .= $this->EE->TMPL->parse_variables_row($this->EE->TMPL->tagdata, $vars);
}

return $out;

In the template, I want to display the field's label, which works, when it is a select field (notice conditional), I want to be able to loop thru the values.

{exp:module_name:form}

    <label>{field_label}</label>

    {if field_type == "select"}
    <select name="{field_name}"
        {field_list_items}
            {!-- loop thru each select value --}
            <option value="{select_item}">{select_item}</option>
        {/field_list_items}
    </select>
    {/if}

{/exp:module_name:form}

I created a format_list_items helper function that just returns a basic array of data for testing purposes.

return array('value 1', 'value 2');

I looked at the user module to see if they did anything like this in the profile edit functions & also looked at EE's myaccount.php line 364 (in edit_profile function).


texts: Is it possible to have "closed" as the default channel entry status

texts:
This seems to be an easy thing, but I cannot find a way in EE where you can select which of the statuses in the status group should be the default status. Am I missing something?

What I want to do is have new channel entries default to status of "closed" and only be "open" once the administrator explicitly sets it to "open". I know that if you do not set a specific status group to a channel, entries will default to closed for non-superadmins, but this is not an option, because we are using a custom status group with more statuses than just "open" and "closed". Does anyone know whether it is possible to set the default status to "closed"?


texts: See if URL segment is in either of the custom fields and then show results

texts:
I'm able to get a simple search:custom_field="something" working fine after reading the docs. However, I'd like it to search three fields to see if the parameter passed through segment_3 is met and then display the results.

Something like this:

{exp:channel:entries
    channel="products"
    dynamic="no"
    search:product_category="{segment_3}" OR
    search:product_by_colour="{segment_3}" OR
    search:product_by_collection="{segment_3}"
    search:product_for_sale="y"
    search:product_popup_only="=not y"
    orderby="product_price|product_sku" sort="asc|asc"
}

Thanks for your help.


texts:
I am using the Charge add-on to connect a website to Stripe payments. I have an action setup whereby a channel entry is created. There are five fields in the channel, four of the fields are text inputs and the last one is a Playa field. The four text inputs are being populated correctly but not the Playa field.

In the code block below, the Playa field is "recipe_purchases_recipe". I am using hidden fields as I only want the form to show the credit card information (removed here for brevity).

This form is embedded in the template as a Stash embed so that I can pass entry variables through. Looking at the code in web inspector I see that the correct variables are coming through, but I can't figure out how to get the Playa field to populate with the entry. I tried {entry_id}, {url_title} and {title} but no luck so far.

How do I populate a Playa field in an entry using the Charge action?

{exp:charge:form
 form_id="charge-form"
 on_success="create_recipe_purchase_entry"
 on_success:recipe_purchases_order_number="{id}"
 on_success:recipe_purchases_customer_name="{customer_name}"
 on_success:recipe_purchases_amount="{plan_amount}"
 on_success:recipe_purchases_recipe="{stash:entry_id}"
 return="/recipes/{segment_2}/thanks"
 return_error="/recipes/{segment_2}/buy"
}
 <input type="hidden" id="customer_name" name="customer_name" value="{exp:zoo_visitor:details}{visitor:member_firstname} {visitor:member_lastname}{/exp:zoo_visitor:details}" />
 <input type="hidden" id="customer_email" name="customer_email" value="{email}" />
 <input type="hidden" id="plan_amount" name="plan_amount" value="{recipe_price}" />
 <input type="hidden" id="recipe_purchases_recipe" name="recipe_purchases_recipe[]" value="{stash:entry_id}" />
   ...
{/exp:charge:form}


texts: Membrr - {exp:membrr:order_form} not retaining values on error

texts:
I am using {exp:membrr:order_form} to submit billing information.

I tried entering some dummy data for credit card and sure enough, I get redirected to the same page and I get error messages.

My problem is that the input values I entered prior to submission like name, address, etc did not persist. They are all blank.

Is there a way to make them persist?


texts:
I am creating an extension to save some data from orders through CT into a new db table.

My code is causing this error message:

  Object of class CI_DB_mysql_result could not be converted to int

Here is my code:

function cartthrob_on_authorize()
{
    foreach ($this->EE->cartthrob->cart->items() as $item) {

        // Create array to store member id and purchased upload slots
        $my_data = array(
            'member_id' => $this->EE->session->userdata('member_id'),
            'upload_total' => $item->item_options('fees'),
        );

        // Store member id in variable
        $member_id = $my_data['member_id'];

        // Query table to check if there if record with member id exists
        $query = $this->EE->db->get_where('exp_competition_purchase_upload_total', array('member_id' => $member_id));

        // If query returns more than 0 update record
        if($query->num_rows() > 0) {

            //Find current upload total value
            $this->EE->db->select('upload_total');
            $upload_total = $this->EE->db->get('exp_competition_purchase_upload_total');

            // If upload total is more than 0
            if($upload_total > 0) {

                $new_total = $upload_total + $my_data['upload_total'];

                $my_data['upload_total'] = $new_total;

            }

            $this->EE->db->update('exp_competition_purchase_upload_total', $my_data);

        // If query returns 0 insert new record
        } else {

            $this->EE->db->insert('exp_competition_purchase_upload_total', $my_data);

        }
    }
}

I am fairly new to PHP, so I could be doing some stupidly wrong (more than likely).

Can anyone take a look and see if I am making any obvious errors here?

Thank you


texts: How can I transform a HTML form in a template into an email that someone can receive after they fill it out with any paid add-ons? If I need an add-on for that, can anyone suggest any?


texts:
Having a few problems with the P&T field pack working within safecracker.

I am trying to get a checkbox field working...

If I use the short field name tag i.e. {field:mycheckboxes} it works, it submits the correct checked boxes, and it remains checked if other elements of the form fail validation.

However, I want to specifically target the options in order to apply styling, but any combination I've used other than the short name, all fails to submit the data.

I've tried Low options, like so

{exp:low_options:walk_features_new}
{options}
  <label class="checkbox">
  <input type="checkbox" name="walk_features_new[]" value="{walk_features_new:value}"/>
    {option:label}
  </label>
{/options}
{/exp:low_options:walk_features_new}

It all outputs correctly into the form, but nothing gets submitted.


texts: Magpie feed plugin for EE1 failing on https

texts:
The Magpie plugin for EE1 doesn't seem to like https addresses, it was working fine but now the site where the feed is located have switched to https for everything and now Magpie is not getting new data. I tried changing the url in the template code but it fails completely, leading me to believe that it can't handle the secure address.
Any options appreciated, I have 4 sites still on EE1 that can't afford to be updated to EE2.


texts: Querystrings on 'home' url go to 404 page

texts:
I've got a problem with an old site (running EE2.4) which is issuing a 404 if the URL contains a querystring. This is happening on the homepage only.

i.e.

http://www.example.com/?foo=bar  causes a 404

http://www.example.com?foo=bar   causes a 404

http://www.example.com/abc/?foo=bar is fine

http://www.example.com/abc?foo=bar  is fine

Index.php is being removed from the URLs using the following htaccess

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

I have also tried adding the QSA paramater to the rewrite with no luck.

If I visit http://www.example.com/index.php then the homepage loads but as soon as I append a querystring it's back to the 404 page.

I have also tried setting the URI protocol to force querystrings but it still doesn't work (and adds ? characters within the URL of other pages).

It might also be pertinent to mention that this site is using Structure. I have tried turning off the "append trailing slash" feature therein.

Strict URLs is also turned on. But turning it off doesn't help.

The only way I can get this to work is to set the 404 page to be the homepage template. Then it works but obviously means that nonsense URLs will resolve to the homepage - which is undesirable.


texts: How can i show entries from two categories?

texts:
is there an easy way to show two EE categories in a list?
let's say i have agenda/C3 and agenda/C9

can i combine this to agenda/C3&C9 (this obviously doesn't work)

(my problem: the C3 is a default category and should always be showed, even if you select another category)

cheers,
dave


texts: Super Admin unable to reset user password without knowing current pasword

texts:
So a staff member (belonging the 'editor' group) recently left, and we'd like to update the password to a dummy one but I can't seem to be able to do it as EE is asking me for the current password.

Any idea how?

Installed EE version is 2.8.0


texts: Validate form input with regex (no jquery)

texts:
I'm getting a lot of spam om my websites where I have a couple of email/contact forms.

The forms are all validated/submitted inline with jQuery/ajax.

However, spam bots skip javascript so I want to validate the form natively too.

I don't want to use a (hidden) CAPTCHA.

EE/CI can validate emails and numbers etc. But I have a phone number field for example and I don't want to force users to use a specific pattern 000-000-000 etc.
I just want to allow only 0-9 spaces and dashes and ().
At the moment spam bots put anything there.

Also, I have a name field which spam bots use to put email addresses in. So I would like to disallow the @ sign and other symbols that no one uses in their name.

Also I don't want to even accept html tags or common spam strings like "

How would I do this without javascript?


texts: We were experimenting with running an EE database stored on AWS and we found that MySQL was running on a non-standard port.


texts: Display different templates as entries on the index page

texts:
I'm trying to figure out a way to display each entry in a channel on one page but allow for those entries to utilize different templates.  The templates would be various layouts for a section and each section would be an entry.

I'm currently using the pages module so I can select a different template but I want to display it on the home page.  Each template is just a variation of the next with rows and columns for content.  I'm basically trying to make the home page modular.

====== MORE DETAIL =======

At this point it's done in the back end. My goal is to eventually move it to the front end but for now I just need to get it working.

The home page has a layout for the header, nav, call-to-action row, and footer that will stay consistent on the home page.  The user has some layout options to choose from globally but the area I need to address is the entries that will appear on the home page through the "home" channel.

I want to create various layout options for the content row and each entry would display a new row of content.  No different how a news channel would work other than the option to choose a different row layout for the entry.

I would like the user to go in and create a new "home" entry from the content menu and select the template they want to use for that specific entry in the pages module template dropdown.  It could one column or two, whichever fits their need.

If the client created a new entry with a one column template then it will appear on the home page in the designated content area for the "home" channel entries. Every entry would be a new row based on the template selected.  Again, we are talking about if the row will have 1, 2, or three columns and the width of those columns that are defined in the template.

Does this help?

I would think it would be as easy as displaying the entry but selecting a different template outside of the index seems to be throwing it off.


texts:
I am having issues with the text editor in EE deleting code that I add to pages. We are wanting to style our support pages a certain way, and I need to be able to add divs and classes to existing p, ul, li, and other tags.

For example:

I have this content on a page:

[p]Getting Started[/p]

[ul]
    [li]FAQ[/li]
    [li]Support Contacts[/li]
[/ul]

if I wrap it in a div, like this:

[div class="support-content"]

[p]Getting Started[/p]

[ul]
    [li]FAQ[/li]
    [li]Support Contacts[/li]
[/ul]
[/div]

and save, it keeps the div I added, but when I go to edit the page again, it deletes the div.

Is there a way to prevent this from happening, or turn off the rich text editor for certain pages so I can just directly edit the source code?

Thanks!


texts: how to display pagination like "previous 1 2...7 next"

texts:
i want to display pagination in blog section like following way

 <previous 1 2......7 next>

Can anyone help me for display pagination like above pattern

Thank You.
Dhvanit N. Dave


texts: Expresso Store Download expiry notice conditional?

texts:
I'm using Expresso Store v1 and my client recently added some downloadable products. We've set the download expiry on these products to 48 hours and we've now made changes to the order confirmation page to encourage customers to download their purchases right away.

However, is there a simple way to produce a 'download expired' notice once the download has expired? Currently the download button just vanishes which has led to a few confused customers!

I suppose I was hoping their might be a conditional '{if expired}' or a parameter that could be used to set a message.


texts: Where does EE2 get the latest member_id from?

texts: I've deleted a bunch of members (on purpose), so that I only have member_id '1' left. Now if I create a new member... The newest member_id is '176' and then increments as I add more… If the members have been deleted where did expression engine get that number from? The last member_id created must be stored somewhere in order for EE to reference it? I can’t find it for the life of me.


texts: View/download Freeform Pro entries in MS Word format or other readable format

texts:
I have an application form on a web page using "free-form pro" add-on. I can download the entries in CSV / xml / json / text formats but I was wondering if it's possible to download it in a Word format or other more readable format?

The form is made up of around 25 questions (many are text box areas) and reviewing the applications in CSV format is not helpful (lots of horizontal scrolling). Ideally, I would like to view each application separately going through the questions and answers vertically.

The only thing I can think of is taking the xml and mapping it on a web page.

Thanks


texts: Error 1096 - No Tables Used - CodeIgniter

texts:
I am trying to use one of stores hooks to insert data into the database when displaying the success page after paying online for an order and I get the following error:

Error Number: 1096
No tables used
SELECT *

This is the function I am calling on the store_order_complete_end hook from store:

public function store_order_complete_end($member_id) { // hook
    try {
        // generate coupon code
        $coupon_code = 'FLK-' . mt_rand(100000000, 999999999);

        // generate coupon code until code is unique
        while ($this->check_coupon($coupon_code)) {
            $coupon_code = 'FLK-' . mt_rand(100000000, 999999999);
        }

        //-----------------------------------------------------
        // -- inserting into table exp_channel_titles --
        // retrieving the next available primary key value
        $entry_id = ee()->db->insert_id();

        // array containing the data that will be inserted into the database
        $titles = array(
            'entry_id' => $entry_id,
            'site_id' => 1,
            'channel_id' => 8,
            'author_id' => $member_id,
            'ip_address' => null,
            'title' => $coupon_code,
            'url_title' => strtolower($coupon_code),
            'status' => 'open',
            'entry_date' => strtotime('now')
        );

        // insert coupon into table exp_channel_titles
        ee()->db->insert('exp_channel_titles', $titles);
        //-----------------------------------------------------

        //-----------------------------------------------------
        // -- inserting into table exp_channel_data --
        // array containing the data that will be inserted into the database
        $data = array(
            'entry_id' => $entry_id,
            'site_id' => 1,
            'channel_id' => 8,
            //'field_id_44' => $assoc_product,
            'field_id_45' => $member_id
        );

        // insert coupon into table exp_channel_data
        ee()->db->insert('exp_channel_data', $data);
        //-----------------------------------------------------
        /// setting the return value if successful
        $this->returndata = true;

        // returning the data
        return $this->returndata;
    } catch (Exception $err) {
        // returning the exception if any
        return $err;
    }
}

Referenced function:

public function check_coupon($coupon_code) {
    try {
        // selecting the coupon code field
        ee()->db->select('title');

        // building the conditions
        $query = ee()->db->get_where('exp_channel_titles', array('title' => $coupon_code, 'channel_id' => 8));

        // retrieving the data into a variable
        $result = $this->EE->db->get()->result_array();

        // return true if the coupon exist
        if (!empty($result)) {
            return true;
        }

        // return false if the coupon does not exist
        return false;
    } catch (Exception $err) {
        // returning the exception if any
        return $err;
    }
}


texts: Multiple groups of FieldTypes / Blocks of content

texts:
I'm looking for a flexible way to define very specific blocks of content which can be used multiple times within a page. Some examples of these blocks would be:

An image with text to the left
An image with text to the right
A formatted quote
A full width image
Two columns of text
Two columns of text with an image at the top of each column

Each one of these blocks of content would represent a row of content on a page. I'm after the ability to be able to add any number of these blocks to a page in any order.

The nearest add-on I can find is Content Elements by Krea, but it is limited to single fieldtypes, whereas some of mine would combine more than one fieldtype. Looking at the docs, you can extend it, but I'm unsure as to whether what I'm trying to do is achievable. I have contacted the Developer for some guidance, but as yet I haven't heard anything back and time's a ticking.

So in the meantime, I wondered if anyone else has either extended this Addon, or alternatively solved this type of problem in a different way?


texts: Fedex errors on shipping method, whether it's set to Test mode or not

texts:
I'm trying to set up two Fedex shipping methods in Expresso Store. I've set up a Fedex API account and have added the API Key, Password, Account number and Meter number that Fedex gave me. However, I always just receive the error "Meter number is missing or invalid.", even if I set the test mode to True.

Anyone know what I'm doing wrong? The meter number is definitely the one that Fedex gave me, with no hidden spaces or any other mistakes. I'm running Store 1.6.0 on EE 2.3.0


texts: Why are my P&T Assets folders taking 2 minutes to load?

texts:
I am using Assets to manage some of the images on my site. The CP loads as expected and nothing is too out of the ordinary. I have 196MB RAM set in PHP.ini and on a VPS.

When I click on an assets folder, the more images I have in there the longer it takes to load, which isnt so far-fetched, but it is taking around 2 minutes to load a folder with about 60 images in it. That same folder locally takes < 5 seconds.

What can be causing this? Here is a screenshot of a XHR report.


texts:
I've just purchased Transcribe and can't quite figure something out (also using Structure).

http://screencast.com/t/YQ7ynAZi

So I create a test entry, save, go back into it and create an associated entry. After this I can see my 2 pages on 2 urls:

/en/test
/ru/test

Perfect.

However, if I now and go edit either entry, the URL changes, e.g.

/en/test-1
/ru/test

If the segment after the language is not the same, then there is no real point having a language segment at all! e.g.

/en/test-en
/ru/test-ru

Is not ideal and may as well be:

/test-en
/test-ru

Is this intended functionality?


texts: Reset Password not displaying errors inline?

texts:
Using Profile:Edit and am having a hard time getting errors to display inline:

{exp:profile:reset_password return="account/reset-confirmed" error_handling="inline"}
  Password
  <input type="password" name="password" value="">

  Password Confirm
  <input type="password" name="password_confirm" value="">

  <input type="submit" value="Submit" >
{/exp:profile:reset_password}

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

Thanks!


texts: Cannot modify $item->modifiers in store_order_item_add_end hook

texts:
I have an extension using the store_order_item_add_end hook.

I can set field values such as $item->price and $item->weight - but I cannot change the content of $item->modifiers.

I've also tried going via the $order->items array.

I have an existing modifier value I need to update. I can read its contents fine - but any changes I make are never reflected.


texts:
I was thinking of using EE for a restaurant review kind of website. Ideally, I would like to create the restaurants as entries and have the entire menu of each restaurant as a Martix in their entry.

Next, I would like website members/visitors to rate individual dishes of a restaurant through star ratings (and possibly comment). There are quite a few ratings add-ons but they rate entries not rows in Matrix. Keep in mind that this should be done on the front-end and not CP.

Any ideas if there is anything that could help me? Or possibly look at the above from a different prospect to get it to do what I want?


texts: Pull all {alternate_titles} fields for navigation menu, even if page is limit=1

texts:
I'm using a sidebar navigation, that is embedded on an intro page and subsequent single article pages. This is my embedded navigation:

Kiritimati

{exp:channel:entries channel="spice_kiritimati" category="not 268" disable="member_data|pagination" sort="desc" orderby="date"}

<a href="{url_title_path='spice_2011/kiritimati_atlas'}" {alternate_title}

{/exp:channel:entries}

This is how the content is displayed on the intro page:

{exp:channel:entries channel="spice_kiritimati" category="268" disable="member_data|pagination" sort="desc" orderby="date"  }

All the titles of the articles show up in my embedded navigation on the intro page. Using the same embedded navigation, when I show pages that are limited to one article, using this code:

{exp:channel:entries channel="spice_kiritimati" disable="member_data|pagination" sort="desc" orderby="date" limit="1"  }

Only the one title, of the page you are on, shows up in the embedded navigation. Is there another way to handle how the embedded navigation is built, so that its not limited to the one article title, but shows all article titles, as on the intro page? I tried changing the limit=10 in the embedded navigation code, that didn't work. Neither did showing related categories, both tries were stabs in the dark.

I'm guessing I need to somehow grab all alternate titles in a channel, but can't figure out how to do it.


texts:
Is there a way to display a fallback snippet if a {categories show_group='xy'}-Tag is empty / a entry does not have a category?

The example…

Category: {categories show_group='xy' backspace='2'}{category_name}, {/categories}

… shows …

Category:

… if there is no linked category for this entry in this category-group. Is there a way to do something like:

Category: No categories assigned

… or hide «Category: » in the first place with a conditional or something simpler than this kind-of-complicated stuff:

{categories show_group='xy' limit='1'}
Category: {/categories}{categories show_group='xy' backspace='2'}{category_name}, {/categories}
{categories show_group='xy' limit='1'}
{/categories}


texts: Conditional with "&" in comaprison string fails

texts:
EE 2.9.2, Structure 3.3.17
In running a conditional to compare a page title and it's Structure parent, the conditional returns false if there is "&" or any other punctuation in the string.

{if title == "{structure:top:title}}
   do something
{/if}

Simple enough?
This works great if there is no punctuation or other special characters in either.
i. e. if the title is "Administration & Finance" the conditional fails. If it is "Administration and Finance", it returns true.
Placing &amp; in the title works, but then other Structure tags ( breadcrumbs ) print it out verbose ( I get Administration & Finance ) . Plus I can't expect editors to remember to put code in the title.

Any ideas?


texts: Adjustments tag isn't displaying in {exp:store:checkout}

texts:
I'm trying to create a listing in my checkout tag of all the adjustments ( taxes, discount ).

However, when I use the {adjustments} tag, they don't print anything. The tags just show up with my markup. Am I missing something?

Below is a simplified version of my cart.

{exp:store:checkout next="cart/checkout"}
  {adjusments}

      {adjustment:name}
      {adjustment:amount}

  {/adjustments}
{/exp:store:checkout}


texts: Get Category Details by just URL_TITLE in EE

texts:
Is there a way that I can get the Category details in EE by just knowing the category url_title ?

Channel Category tag doesn't provide that facility : http://ellislab.com/expressionengine/user-guide/add-ons/channel/category_heading.html


texts:
This is for an event detail page, I'd like to list all recurrences of an event. My current template code is displaying the start date and all recurrences, including the first date, so it's showing the start date twice. Any way to not get it to do that? I can't just remove the event_start_date tag as some events will only have one day and no recurrances.

      {event_dates}
                    {calendar:event_start_date format="%l, %F %j, %Y"}
                        {if calendar:event_all_day}
                        {if:else}
                            {calendar:event_start_date format="%g:%i%a"} -
                            {if calendar:event_multi_day}

{calendar:event_end_date format="%l, %F %j, %Y at %g:%i%a"}
                            {if:else}
                                {calendar:event_end_date format="%g:%i%a"}
                            {/if}
                        {/if}

                    {if calendar:event_recurs}

                        {calendar:recurrences
                            date_range_start="today"
                            date_range_end="18 months"
                            limit="5"
                            backspace="6"
                        }
                            {calendar:recurrence_start_date format="%l, %F %j, %Y"}
                            {if calendar:event_all_day}
                            {if:else}
                                {calendar:recurrence_start_date format="%g:%i%a"} -
                                {if calendar:event_multi_day}

{calendar:recurrence_end_date format="%l, %F %j, %Y at %g:%i%a"}
                                {if:else}
                                    {calendar:recurrence_end_date format="%g:%i%a"}
                                {/if}
                            {/if}

{/calendar:recurrences}
                    {/if}
       {/event_dates}

The code above is returning this on the front end...

And here are the event settings...


texts: Matrix PHP Error: Undefined property: Content_publish::$tools_model

texts:
Opps I know better than to not include this stuff!!

  EE version: 2.5.0
  Matrix version: 2.2.2.1

I was setting up a new channel and tried to access the entry page for it and got this error. Anyone know how to fix? Or what's happening?

Here is the error.

  A PHP Error was encountered
  Severity: Notice

  Message: Undefined property: Content_publish::$tools_model

  Filename: celltypes/file.php

  Line Number: 120

  Fatal error: Call to a member function get_upload_preferences() on a non-object in /www/**/public_html/*/expressionengine/third_party/matrix/celltypes/file.php on line 120

Thanks Much!


texts: Different $base_url for CP versus public site?

texts:
I have a unique situation where I'm reverse-proxying an EE site into another domain via Akamai. The origin hostname of the EE site is smallbusiness.pb.com and Akamai rewrites sends traffic coming in via www.pb.com/smb to that URL.

In order to make Structure navigation listings have the correct endpoint URL, I had to modify my Focus Lab LLC configuration by adding the following to my config.prod.php file:

$base_url = $protocol . 'www.pb.com' . '/smb';

Everything has been fine since I have been manually deploying from staging to production by synching the database and rsyncing files.

Now that I'm rolling out BetterWorkflow, however, I'm running into 403 Forbidden on Assets image thumbnail requests. Those requests are to the www.pb.com/smb URL instead of smallbusiness.pb.com.

Here's a sample of the error:

Request URL:http://www.pb.com/smb/?ACT=59&file_id=2&size=67x67&hash=1352925992
Request Method:GET
Status Code:403 Forbidden

Request Headers

Accept:*/*
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Cache-Control:no-cache
Connection:keep-alive
Cookie:[redacted]
Host:www.pb.com
Pragma:no-cache
Referer:http://smallbusiness.pb.com/smb/admin.php?S=0&D=cp&C=content_publish&M=entry_form&channel_id=3&entry_id=10&parent_id=0
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.56 Safari/537.17
Query String Parametersview sourceview URL encoded
ACT:59
file_id:2
size:67x67
hash:1352925992

Response Headers

Access-Control-Allow-Origin:*
Cache-Control:max-age=0
Connection:keep-alive
Content-Length:0
Content-Type:text/html
Date:Wed, 23 Jan 2013 21:34:55 GMT
Expires:Wed, 23 Jan 2013 21:34:58 GMT
Server:Apache
Set-Cookie:exp_last_activity=1358976898; expires=Thu, 23-Jan-2014 21:34:58 GMT; path=/
Vary:Accept-Encoding

What I'm looking for is a way in my configuration file to have one base_url when browsing the control panel via smallbusiness.pb.com and another base_url when the public site is browsed via www.pb.com.

Any ideas?


texts: Assets uploads Failing, Server requirements

texts:
I'm running EE 2.5.5 and Assets 2.1.4

I have massive upload problems on several websites running assets. assets fails to upload certain images. i get a notification «Could not upload the file - server returned an unexpected response. Please check the server settings»

we had this issue in previous threads. i set the all concerning folders to 777. i checked upload paths and .htaccess. everything seems ok. i can upload files like pdf with the same settings.

i believe there must be some server setting that is wrong but i can't find the requirements for assets. can anybody help?


texts:
For a while now I have been unable to use DD Updater because of this error:

Warning!
Our test AJAX request failed! We sent an AJAX request to but the response was   invalid.

I don't recall if the error started when I upgraded the module or when I moved to a different host, regardless I'm using EE2.5.5 and I have upgraded to the latest version of updater today (3.2.9) with no success. I tried changing several settings and nothing changed, can anyone point me in the right direction?
The ajax response is blank btw.

Thank you.


texts:
Why wouldn't this work?

am I missing something?

        {exp:channel:entries channel="ministries" limit="1" {gv_param_disable_default}}

{title}

            {page_content}

        {/exp:channel:entries}

Update:

Come to find out, the switch does work fine though, I didn't realize it's intended use. It doesn't switch every page load or between each entry on separate pages rather, it switches through the iteration (or loop if you will) of entries when you have more than one entry being listed on a page via a single channel entry tag pair.

A good example of how one might use the switch variable and classes would be Zebra Tables where you are switching between a darker and lighter color for each table row.


texts:
I created a function in ee module to handle Paypal IPN as follows:

function ipn_paypal(){
    include_once("libraries/Paypal_lib.php");

    $objPaypal = new Paypal_Lib();
    $objPaypal->process_order();
}

where process_order function is written in a separate file inside libraries as "Paypal_lib.php". Inside this library file the function is:

function process_order() {
    if ($this->validate_ipn()) {

    }
}

But Paypal gets a 403 error when the following ACT is called:

http://domaim.com/?ACT=54

I even tried creating an ee template and calling the IPN function inside template,  but still Paypal sees a 403 error.

Strange thing is that when I call the same ACT URL from browser it runs fine. Seems when Paypal sends a POST to the ACT URL, some issue happens.

Any clues?


texts: Why `add_to_foot()` doesnt work with `cp_js_end` hook?

texts:
i use cp_js_end for use javascript in control panel pages, and add_to_foo() for add js files,

but that doesnt work! i test it in construct & hook functions but that doesnt work, code:

function cp_js_end() {
ee()->cp->add_to_foot('< script src="http://localhost/main.js"></ script>');

$output = $this->EE->extension->last_call;
$output .= 'console.log("Script included")';
return $output; }

and i cant see “Script included” in console and there is no included file!

thanks for help :)


texts: Adding Category and Subcategories in a multiselect dropdown in Channel Form

texts:
I am using channel form to allow users to add a new entry.
I need to output a category to allow then to select multiple categories and sub categories.
The following code works but it does not order the sub cats below the parent Category:

<select name="category[]" size="100" multiple="multiple" id="multiSelect">
{exp:query sql="SELECT cat_name, cat_id FROM exp_categories WHERE group_id='3'"}
<option value='{cat_id}'>{cat_name}</option>
{/exp:query}
</select>

I would like to see the categories listing as:

Parent 1
 child 1.1
 child 1.2
Parent 2
 Child 2.1
 Child 2.2


texts: Freeform / EE 2.7 : Reason: Secure Forms Timeout

texts:
I have a Freeform form running on a site. The form runs at sub.domain.com/folder/index.php and basically uploads a file and sends two emails.

Yesterday, all was working well while under EE 2.6.1. Today I updated EE to 2.7 and now anytime I submit the form I get this message :

  You are not authorized to perform this action - Reason: Secure Forms
  Timeout

The only thing that change is the EE upgrade. I'm using Freeform 4.0.12.

I did see this thread and double checked there was no redirect, but everything happens under the same folder on the same subdomain.

Thanks for any pointer you could provide.


texts:
Here's the situation:
I have a site (not my build so I'm still learning it's process) that needs to check if a user has a successful purchase, and if so, display some content.  Currently they're using submitted_order_info to check if authorized, but that only works if the order is still in session.  In the event it no longer is, that tag doesn't do any good.  What tag / check would you use in this case?


texts:
I have a client that wishes to use the cartthrob subscriptions system in a slightly different manner.

Is it possible to have an annual payment at the start of the year and then if someone joins midway through the year for the first payment to be a 'pro-rata' version of the annual total?

So if the annual membership is £300 and a new customer signs up in June, they pay £150 for the first year and then £300 in January, the following year.

Thanks for your help,

Martyn


texts: Problems with new member registration email and SolSpace User

texts:
We are using SolSpace User to handle key invites and member signup and also using the screen name override feature.

There are quite a few members on this site, so we added the member_id field to the screen name override, so it's like this: first_name|last_name|member_id.

That works great for dealing with conflicting screen names, but the EE email that goes out to the admin to let him know that a new member registered is now showing "garbage" for the name.

Member name: 4f99fa19c1d3b11c9ad517b0c073e450

Thoughts?


texts: Login page returns to the login page, doesn't log me in?

texts:
I have a site being added to that is currently on 2.1.3 and cannot be updated for the time being.

All is running fine on localhost but when I try to login to the CP on the dev server the login page returns me to the login page? There are no errors on the page and credentials entered have been removed.

I have,

Cleared all cookies on both the dev server and the local.
Created a new account and imported the db to dev in case there was any corruption/clash.


texts: Is there a way to access an embedded template variable with PHP? I thought maybe it'd be in the $_GET or $_POST var, but no such luck.


texts: EE2: How to use the {template_group} variable or how to get value of template group in a template?

texts:
I am confused about the usage of the mentioned variable. It should be plain and simple... but for some reason, I can't get it to work.

Documentation link for EE3: https://docs.expressionengine.com/v3/templates/globals/single_variables.html#template-group

I want to use the template group name in my templates, is there any way to make this possible in EE2?


texts:
In the ee control panel I have a textarea(rich text) that I use for writing some news articles. These articles include some images in them and I continually have to write the HTML for inserting images. Is there a way to instead of having to write the HTML myself, adding I.E a button next to the "link" button to insert an image?

I'm new to ee so an easy solution is preferred.


texts: Help with sorting MATRIX values in Super Search results

texts:
I'm using matrix extension to get the lowest value of a column in a search. The problem that I have is to sort results:

this is my code:

{exp:super_search:results channel="my_channel"}

    {my_matrix_field:lowest col="column_name"}

{/exp:super_search:results}

I tried using orderby="column_name" but it doesn't work

Many thanks in advance…


texts: Bug in Freeform Pro, Date Order in form field?

texts:
There seems to be a bug in Freeform Pro when switching between Date Order in the Field property settings for a Date in a Form (Date Time Type is set to Date for the field).

After checking four digit year and date leading zero (corresponding to the Date & time format in EE General Settings), when selecting year month day there's no issue.   The email notification template correctly generates, according to the format setting of %Y %l %F %j%S - eg:

  2020 Monday June 1st to 2020 Monday June 8th

After switching the Field Property Date Order to day month year, the result is:

  2020 Monday January 6th to 2020 Thursday August 6th

Hence switching of month and day-of-the-month.

Can anyone confirm?


texts: Logged in member can't view order in Store

texts:
I'm at the tail end of an EE upgrade (to v4) which includes the Store add-on (which per the changelog is EE4 compatible).

In testing, everything seems to be working fine EXCEPT that a logged in user can't view their orders. The area of the page where the code is supposed to render is blank.

Template code looks like this: https://d.pr/n/H607xq

Not sure what to try - docs are thin.


texts: MySQL ERROR: Error Number: 1364 Description: Field 'whatever' doesn't have a default value

texts:
Firstable, I´m  designer, hence my ignorance.
It´s been awhile since I didn´t updated a site. The client asked me to make a new member in EE. I´ve been able always to do that on the spot, but this time I always get the SQL error of the email subject (1364). After some researching, I tried to publish some entry and I got the same SQL error.

Then i found this post here
Database Error 1364 in Solspace Calendar

The point is that i´m not sure if I have to adding a default value (0) to all the tables or there is a way to do that for the whole site.

Thank you in advance


texts: ckeditor for expressionengine version 1?

texts: i am using version 1.6.7 , and i need to install a CK-editor to ability format the text in the entry process , and all the documentation said that i should be using at least a version 2 and larger, so there is any way to install any plugin ?


texts: Counting the number of Parents related to a child entry

texts:
I am using the example Relationships code which works but what I would like to do instead of showing the names of the Pizza shops is just show how many shops the Pizza is available at.

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

{title}

{description}

{ingredients}

Where can I find this pizza?

    {parents field="specialty_pizzas"}
            {parents:title}:

            {parents:phone}

{parents:address}

    {/parents}

{/exp:channel:entries}

I have tried this, but it does not appear to work, any hints?

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

{title}

{description}

{ingredients}

How many restaurants serve this pizza?

    {parents field="specialty_pizzas"}
            {parents:speciality_pizzas:total_results}
    {/parents}

{/exp:channel:entries}


texts: I see an option in CE Image to add watermark to an image, but that watermark -- based on the example I saw -- is an image. Is it possible to watermark an image with plain text?


texts:
I've got Cookie Plus and Mo' Variables installed. I'm trying to set, get and increment a value in a cookie. Here's my test script:

{if "{exp:cookie_plus:get name="aa_seq"}" == ""}
{exp:cookie_plus:set name="aa_seq" value="1" seconds="0"}
Setting

{/if}

Cookie: {exp:cookie_plus:get name="aa_seq"}

{exp:cookie_plus:set name="aa_seq" value="<?php echo {exp:cookie_plus:get name="aa_seq"} + 1; ?>" seconds="0"}

I tried it with PHP on input and output, and they both FUBAR.

Would appreciate any pearls of wisdom. Thanks.


texts: store_check extension works on dev, doesn't locally

texts:
I have installed the Expresso store_check extension locally. After enabling the extension I can see a row is created in the database in exp_extensions. A new 'Check' payment method should be shown in the Store settings but it's not there.

Now when I deploy to my dev server there's no problem, everything just works. I've tried uninstalling and disabling the extension and removed the database entry numerous times without succes. What else can I try to get this to work?


texts: When I add an image to a WYGWAM field, using Assets, from an S3 source, I get a double slash

texts:
I chose an image from a regular upload directory and it works fine. I chose one from an S3 source set up in Assets, and it doesn't.
For instance:

<img alt="" src="http://s3.amazonaws.com/foursquare.org//1350928362-IMG_3335.PNG" />

The double slash is causing the image not to display.

I'm using WYGWAM 2.7.1, EE 2.6.1, Assets 2.1.4, and a lot of Scotch at this point.


texts: Assets (P&T) No thumbnail for Admin group

texts:
My admins can upload images to Assets field.  They even see the thumbnail before saving. After saving though, the thumbnail does not display.  This is a site-wide issue.  I have updated the index. It also seems to be removing the image completely if it is saved again.

Assets 2.1.2


texts: how can i get ee global vars outside of ee?

texts:
I have tried something along the lines of

$email = ee()->....

and with a hope to include/require the page at the top of an external php page and then echo the value of $email.

This doesn't appear to work.

I need to gain access to the ee session class outside of the cms but still based on user logged in status.

How could i achieve this?


texts: Price Modifier Configurator field not affecting price

texts:
The price modifier configurator displays the options (and prices) correctly on the product page, but the cart displays the base price instead of adding the item_option:price.

I'm using the sample code from the CT documentation (http://cartthrob.com/docs/tags_detail/item_options/index.html) which doesn't include the {item_price} field but according to this: http://cartthrob.com/docs/tags_detail/cart_items_info/index.html I should be able to use {item_price:plus_tax} to show the item's price including options + tax, which only displays the item's base price + tax.


texts:
Running EE 5.3.2
Unfortunately I have to address this issue again and I am hoping for some sound advice that will help resolve this problem forever.
We post a weekly blog on Hobblecreek. They are lengthy posts with 12-15 photos. It takes hours to craft the entry and almost every time ExpressionEngine times out and I lose some or all of the work. In the middle of an active session the login screen suddenly pops up without warning and I have to log back in. I save as I go, but this is bothersome because saving requires that you go back in and find your spot in the entry. However today, despite saving multiple times, the entire entry was lost. Completely vanished.
This error comes up as well:

In Security & Privacy settings I have it set as follows:

This has happened so frequently that I would gladly walk away from Expression Engine if there was a better solution out there. I have been building EE sites for 12 years and this is the worst experience I have ever had with EE.
What can I do to prevent ExpressionEngine from timing out like that?


texts: Upgraded ExpressionEngine, php error on site brings entire site down

texts:
I've just upgraded from ExpressionEngine 1 to 2. The upgrade ran smoothly and I can access my admin panel. Whenever anyone goes to the site, they're greeted with this error:

  A PHP Error was encountered

  Severity: Notice

  Message: Channel::parse_related_entries() [channel.parse-related-entries]: The script tried >to execute a method or access a property of an incomplete object. Please ensure that the >class definition "DB_Cache" of the object you are trying to operate on was loaded before >unserialize() gets called or provide a __autoload() function to load the class definition

  Filename: channel/mod.channel.php

  Line Number: 448

  Fatal error: Channel::parse_channel_entries() [entries'>channel.parse-channel-entries]: The script tried to execute a method or access >a property of an incomplete object. Please ensure that the class definition >"DB_Cache" of the object you are trying to operate on was loaded before >unserialize() gets called or provide a __autoload() function to load the class definition >in .../system/expressionengine/modules/channel/mod.channel.php on >line 3686

Does anybody have a clue what I need to do to bring my site back online? Help greatly appreciated.

Update: I have tried to rebuild a template step-by-step and have identified that the problem is when I close the {exp:channel:entries} tag. Does anybody know what might be causing this?


texts:
I am getting this error

Double-instantiating a select on an element garnish-0.1.min.js:18

and it is now stopping me adding files to an entry as will not display any files within an entry assets window.


texts: exp:channel:entries not working by any means

texts:
I cannot get any queries to work using exp:channel:entries.

{exp:channel:entries orderby="date" start_on="2015-07-01 20:00" channel="shipments" limit="10" dynamic="no"}

inloop

{/exp:channel:entries}

Here is my query above. I have tried every combination of its option variables and nothing works. I cannot get any query to work for any channels except the one below,

{exp:channel:entries}

inloop

{/exp:channel:entries}

Which is just pulling out 100 entries.

This is a old site for a client that uses expressionengine only as a backend solution. Its V2.6.1 There are no other templates. I am not using file templates, only database. Is there some setting that restricts channels from being used in templates that I am unaware of?


texts: Can I use a visual editor on Template Manager?

texts:
I have an ExpressionEngine website built for a client, and the entire content is built inside a template.

I need to allow the client to make modifications, but I don't want the source to be visible by default.

All plugins only work with channel content, not with the Template Manager.

EDIT #1: Found this, but it's for EE 1.x, and it needs to be updated for 2.x - http://ellislab.com/forums/viewthread/56223/

The ideal solution would be injecting a RTE editor to convert the Template Manager textarea into a visual editor.


texts: Upgrade method for fieldtypes (add-on development)

texts:
Has anyone written an upgrade for a fieldtype? I'm assuming so, but I've not actually ventured this direction, and there are zero docs in this arena.

Specifically in this case, upgrading a fieldtype with no settings to have per-field settings, which will update the fieldtype preferences in the DB etc etc.

Direction? Hacky style required?


texts:
I have a problem with GoDaddy hosting. It seems that URL segmentation is not working, so I get link like this http://example.com/?/main/url_title and I need link like this http://example.com/main/url_title because when I share content on FB instead of link http://example.com/?/main/url_title , FB through sharer sees this http://example.com/?%20main%20url_title  because of question mark.
I need to solve this problem. Either on GoDaddy somehow or somehow in FB url.
Any thoughts?


texts: Trying to modify default pagination settings within public profile templates

texts:
Specifically, when a member is logged into their front-end profile templates, and you're viewing the messages in the inbox-folder. The pagination displays only 5 entries per page.

I've tried modifying some parameters in both of the following files:

system/codeigniter/system/libraries/Pagination.php
system/expressionengine/libraries/EE_Pagination.php

But nothing seems to modify the results in any way. I also wouldn't mind just disabling the pagination altogether, since I use a fancy plugin for it anyways (mix_it_up).


texts: Submitting Entry Edits Routes to a Non-Existent Page

texts:
Encountering a some odd issues attempting to submit changes on in the CP of an ExpressionEngine 2.7.2 site. Instead of saving the changes and displaying the success message, I'm bounced to a non-existent URL and the landing page of my site is displayed instead.

URL FOR ENTRY:

/system/index.php?S=b6fd020cbb7cc1f54675bce25372a17b&D=cp&C=content_publish&M=entry_form&channel_id=1&entry_id=1&&filter=YToxOntzOjEwOiJjaGFubmVsX2lkIjtzOjE6IjEiO30=

URL FOR NON-EXISTENT PAGE

/system/index.php?S=b6fd020cbb7cc1f54675bce25372a17b&D=cp&C=content_publish&M=entry_form&channel_id=1&entry_id=1&filter=YToxOntzOjEwOiJjaGFubmVsX2lkIjtzOjE6IjEiO30%3D

Notice how the first URL has double ampersands right before the filter (entry_id=1&&filter=) and the URL of the second domain ends not with an = sign but with %3D.

I've see this error in two separate instances:

1) In a particular textarea field (in a field group which only contains five fields), entering more than 327 characters will trigger the error — even if all of the other fields are empty.

2) Adding new fields to a channel field group, regardless of whether it's a brand-new field group or simply adding a field to an existing group.

Disabling extensions (via the config.php file) is having no impact and the logs are not giving any meaningful data.


texts: How to use the Channel Images' "images static"?

texts:
I have a channel that has a text field and a Channel Images field; I want the images to accompany the text.

I'm keeping the image information (the CSS, etc) in a snippet and using Hop Inject to place the snippet following certain paragraphs. That's working so far with one image. But I'm trying to figure out how to place the same snippet in various parts of the text and have it bring up the different images in order that are in the Channel Images field.

I was thinking the way to do this would be to use the {exp:channel_images:images_static} tag. But I cannot wrap my brain around the documentation and example provided. For example, the sample is like this:

{exp:channel:entries channel="about" url_title="{segment_3}"}
    <h2>{title}</h2>
    {exp:channel_images:images_static entry_id="{entry_id}"}
        {body}
        {extended}
    {/exp:channel_images:images_static}
{/exp:channel:entries}

...but I don't see what's calling the image, and I don't understand what the 'body' and 'extended' tags are supposed to be.

Anyone have any ideas about this?

EDIT: ADDING MORE EXPLANATION FOR CLARITY

Not sure if I'm explaining this properly, but what I'm trying to do is have a snippet that displays the first image in a Channel Images field, and then another snippet that will display the second image in that Channel Images field.


texts: User / On the fly price for CartThrob recurring Subscriptions price

texts:
I'm trying to set a custom price for a recurring subscription in CartThrob. I've currently got the following code:

{exp:cartthrob:add_to_cart_form
    return="/become-member/checkout"
    subscription="yes"
    subscription_allow_modification="yes"
    shipping_exempt="yes"
    tax_exempt="yes"
    allow_user_price="yes"
    plan_id="{id}"
    subscription_interval_units="{interval_units}"
    subscription_interval_length="{interval_length}"
    subscription_price="{price}"
  }
    <input type="hidden" name="price" value="70.00" />
    <input type="hidden" name="subscription_price" value="70.00" />

   ....
  {/exp:cartthrob:add_to_cart_form}

That works fine, it'll set the price of $70.00 as dictated by 'subscription_price'.

My problem is that users are able to add a concession card code to the product in the add to cart form and that will reduce the price to $66.50 (using javascript). Upon checkout this price is saved in the CartThrob order in the CP but the recurring subscription price is still the full $70.00 amount.

Is there a way to set the recurring price to the concession price if it's set in the checkout form or do I need to look into other options?

Thanks in advance!


texts:
What is the correct way to add a new action to the current list of actions?

Is there a specific EE method to add a new action? Or is it just direct database manipulation(that is, add it via SQL)?


texts: 404 Not Found error when deleting an entry

texts:
I've built several sites with EE but I've never had this error. In my last project, if I try to delete an entry (no matter from which channel) I receive a Not Found Page.

Not Found
The requested URL /system/index.php was not found on this server.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

I notice, however, that the entry is eventually deleted, but I can't give the client a site with this error and tell him to pretend nothing happened.
What should I do?


texts: Wygwam 2.6.3 - how to keep full style (image, table) from copying other article to wygwam field

texts:
When I copy content of article (from other site) and paste it to my field (field type: wygwam), all styles is removed, only plain text remains. I need my article is the same to the article that I copy from other site. May somebody helps me?

Thanks!


texts: How to generate a list of years dynamically starting with this year

texts: Wondering how I would use either EE or PHP to dynamically generate a list of years starting from this year. I'm doing this for a credit card expiry select box that needed to use EE global variables for the label, which is why i couldn't just use the fields spit back from the gateway.  And of course their example code is just a static list starting with 2012, so I'd rather the list be dynamic for say 10 years starting this year. Can someone tell me how to do this?


texts: How to display the chosen item_option of a product as selected option in the cart? - CartThrob

texts:
I am using the update_cart_form nested inside the cart_items_info tag, to allow customers to edit the size or quantity of their item (as well as delete it from cart). I cannot find a way to have the item option they selected as the selected option in the  (for example, if Medium is selected under the product_size, display that as the selected option)

I would also like to replicate this for displaying their currently chosen shipping method. Here is the code I currently am using:

{exp:cartthrob:cart_items_info}
    {if no_results}

You have nothing in your cart. GO SHOP &raquo;

    {/if}
    {if total_items > 0}
        {if first_row}
             {exp:cartthrob:update_cart_form  return="checkout" class="cart_form"}
        {/if}

                    {if product_detail_image}

                    {if:else}

                    {/if}

{title} Quantity: <input type="text" name="quantity[{row_id}]" size="1" maxlength="2" value="{quantity}" />

{exp:cartthrob:item_options entry_id="{entry_id}" }
                        {if dynamic}
                            {option_label}
                            {input}
                        {if:else}
                            {if options_exist}
                                {select}
                                    <option {selected} value="{option_value}">
                                    {option_name}{if option_price_numeric > 0} +{option_price}{/if}
                                    </option>
                                {/select}
                            {/if}
                        {/if}
                        {/exp:cartthrob:item_options}
                        <input type="checkbox" name="delete[{row_id}]"> Delete this item

            {if last_row}
                <select name="shipping_option">
                        {exp:cartthrob:get_shipping_options}
                                <option value="{rate_short_name}" {selected}>{rate_title} - {rate_price}</option>
                        {/exp:cartthrob:get_shipping_options}
                </select>
                <input type="submit" value="Update Cart" />
            {/exp:cartthrob:update_cart_form}
        {/if}
    {/if}
{/exp:cartthrob:cart_items_info}


texts: Error using freeform with MSM - not working on main site

texts:
I have a three sites that are joined with MSM in EE 1.7.1.  Currently, I am working to put in a better contact form for the three sites.  On the two sub sites, www.watermarkcc.com/events/contact and www.sunnybrookcc.com/events/contact, the form works fine.  I can modify it freely and it submits the inputs correctly.  On the third site, www.stonewatercc.com/events/contact_testing, which is the main site, I get these PHP errors when I submit the form

Notice: Trying to get property of non-object in /home/stone/public_html/admin/core/core.functions.php on line 2659

Notice: Trying to get property of non-object in /home/stone/public_html/admin/core/core.functions.php on line 2659

Notice: Trying to get property of non-object in /home/stone/public_html/admin/core/core.functions.php on line 2659

Notice: Trying to get property of non-object in /home/stone/public_html/admin/core/core.functions.php on line 2659

Warning: Cannot modify header information - headers already sent by (output started at /home/stone/public_html/admin/core/core.functions.php:2659) in /home/stone/public_html/admin/core/core.functions.php on line 325

Before, I was also getting that the second parameter in the array_merge wasn't an array, and I added "(array)" to both parameters to get rid of that warning, but that leaves me with the warnings above.

Line 2659 in the file is:

$vars = array_merge((array)$vars, (array)$TMPL->embed_vars);

Line 325 in the file is:

switch($PREFS->ini('redirect_method'))
{
    case 'refresh' : header("Refresh: 0;url=$location");
    break;
    default        : header("Location: $location"); //line 325
    break;
}

Anyone have any suggestions?  I am using the exact same code for all three forms so I am very confused why one isn't working.

Here's the opening tag of the form:

{exp:freeform:form form_name="sunnybrook_contact" notify="info@sunnybrookcc.com" template="custom_contact_sb" required="name|email"  return="events"}


texts:
In my control panel, I am getting a bunch of javascript errors, starting with:

Refused to execute a JavaScript script. Source code of script found within request.

I read something about XSS filters and attacks - https://stackoverflow.com/questions/1547884/refused-to-execute-a-javascript-script-source-code-of-script-found-within-reque/1547887#1547887 - I'm not sure how to debug the problem.


texts: Is there a way to display just 1 low-reorder channel from a order set that has multiple channels?

texts: I have products on my site and the client would like to order them, hence why I am using low reorder. On the main page all the different products need to be displayed, each product is in a different channel and low-reorder does this fine. However for the products individual pages I'd like to use the same order but only display the one channel. Is there a way to do this?


texts: Blank pages for front and back end in EE 1.x

texts:
I'm trying to recreate an EE1 site locally on my Mac with MAMP and am getting blank pages on both front end and back end after logging in (can see login page OK before logging in though).

I've checked error logs and the only error that's coming up is Unable to parse XML data.

DB credentials are correct because if I change them I get the 'can't connect to the db' error message.

I've manually emptied cache folders and have tried changing PHP versions.

Any other steps I can take to figure out what's going on?


texts: EE2.2.0 | sort="asc" only shows 2 entries where sort="desc" shows all

texts:
There is a page with 6 entries that are supposed to show but only shows 2 when sorted in ascending order.  I sort in descending order and all 6 entries show.  What is going on here?

{exp:channel:entries
    channel="gcswim-meets"
    orderby="gym-date"
    sort="asc"}

    {if '{gym-date format="%Y-%m-%d %H:%i"}' >= '{current_time format="%Y-%m-%d %H:%i"}'}

            {title}

            {gym-date format="%m/%j"}

            {gym-time}

            {gym-location}

    {/if}

{/exp:channel:entries}


texts: How to tell if template is being accessed by mobile?

texts: In the templates, is there a way to know what type of devices is accessing the site? I need to make certain decisions based on that (e.g. what kind of images to push). An "is_mobile" or "is_tablet" check would be ideal.


texts: Fiedtype to allow selection of layout using thumbnail images?

texts:
I'm looking for a field type that could let my client choose a certain template for the single page of an entry.
I'm thinking a radio button field type but i'd like to show the option as an image..

Anybody knows a fiedtype which can do this?


texts: Tracking views in an entries loop with more than one result

texts: I’m trying to use the ‘track_views’ parameter to record impressions of banners which are being served on a website. Am I correct in thinking that track_views is only supported on single entry pages, i.e. if I have a channel:entries loop that outputs more than 1 entry it will not track views?


texts: How to use a php hook to pull data into PayPal from Simple Cart

texts:
I was wondering how to connect Simple Cart add-on to PayPal using the PHP hooks.

I'm new to using hooks, but would appreciate an example to get me going. I would like to display the 'price', 'qty' and 'entry_id' for an item and pass these to PayPal 'Buy Now' button form code, if that's the correct way.

https://docs.reinos.nl/simple-cart/#php-api

<?php
ee()->load->add_package_path(PATH_THIRD . 'simple_cart/');
ee()->load->library('simple_cart_api');
ee()->load->remove_package_path(PATH_THIRD . 'simple_cart/');

//save_cart_entry
ee()->simple_cart_api->add_cart_entry($entry_id = 0, $price = 0, $qty = 1, $tax = 0, $time = 1200, $extra_param = array(), $increment = true);
?>

<form action="https://www.paypal.com/au/cgi-bin/webscr" method="post" target="paypal">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="info@wabisabi-press.co.uk">
<input type="hidden" name="currency_code" value="UKP">
<input type="hidden" name="item_name" value="">
<input type="hidden" name="item_number" value="">
<input type="hidden" name="add" value="1">
<input type="hidden" name="amount" value="">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="undefined_quantity" value="">
<input class="cart-btn cart-btn-secondary small_hide mr-2" type="submit" name="buy_now" id="buy_now_265" value="Buy Now">
</form>


texts: External URLs are being appended at the end of blog post URLs

texts:
I need some help with this as it drives me mad.

Some blog posts have an external URL appended to them:
https://www.my-site.com/blog-post/www.external-site.com

I get hundreds of such pages from one single external URL.

Any ideas what might be causing this? It is not happening with all external URLs. Just this one. I've even checked if it was added with the protocol (http://) in front and there aren't any such issues.


texts:
I am getting multiple results of same data.please suggest

Search Page Code

{exp:search:simple_form channels="pages|news" result_page="widgets/Widget_search_results/" search_in="everywhere" form_class="search" where="all" show_expired="yes" show_future_entries="yes"}
  <input type="text" maxlength="100" size="18" value="" id="keywords" name="keywords">
  <input type="submit" class="submit" value="search">
 {/exp:search:simple_form}

Result Page code

{exp:channel:entries {embed:_channel_params}}

{lang:title}
{lang:excerpt}
{lang:author}
{lang:date}
{lang:total_comments}
{lang:recent_comments}

{exp:search:search_results switch="resultRowOne"}

{title}
{excerpt}
{author}
{entry_date format="%m/%d/%y"}
{comment_total}
{recent_comment_date format="%m/%d/%y"}

{/exp:search:search_results}

{/exp:channel:entries}


texts:
I'm attempting to setup a reminder calendar implementing the Postmaster module.
I've been trying to solve this issue now for a while and can't seem to come up with a solution.

Here's my setup: I have a EE Grid field with 3 columns (title, date, description). The member enters each of the values, with the date being a "date" field.

Within the Postmaster notification I've tried doing post date relative with the relative field having "-5 days", as all dates are going to be in the future. But, it seems that Postmaster does not like this syntax as notifications are not sent at all this way. If I keep it post date specific I can ping the url and get the notifications sent the day of (which isn't too helpful for a reminder).

So I installed the math module (http://devot-ee.com/add-ons/math) to try and work some magic, still no go.

Here's what I currently have:

For post date specific I have

{exp:channel:entries channel="wedding" dynamic="no" entry_id="1"}{calendar:date format="%m"}/{exp:math formula='{calendar:date format="%d"} - 5'}/{calendar:date format="%Y"}{/exp:channel:entries}

Where the channel is wedding, and the grid field is calendar. Then the calendar:date is the date. Within the EE template, this will output the correct date I want the notification to be sent on. So if date entered is 6/11/2014 it will output 6/6/2014, the date the notification should be sent.

Then, to make sure no old notification get sent, I also added a conditional

{exp:channel:entries channel="wedding" dynamic="no" entry_id="1"}{calendar}{if '{calendar:date format="%U"}' > '{current_time format="%U"}'}TRUE{if:else}FALSE{/if}{/calendar}{/exp:channel:entries}

Just to make sure the information being sent to the member isn't in the past.

Still, no notifications are sent? The only way I can get them to send is placing the specific date in, no relative, and not using math on the input.

How can I get these things to fire 5 days before the date??


texts: Website using old images... is this a cache issue?

texts:
I've built a site for a client that has a section which displays a number of entries.

For each entry there is a thumbnail.

There are currently 50 entries, and for just two of those entries the website is displaying the wrong thumbnails. All others are working correctly.

I'm using the brilliant CE Image plugin to display my images.

I've tried clearing my browser's cache, EE's cache AND deleting the contents of my 'images/made/images/remote' directory, but it's still displaying the wrong images.

Any ideas anyone?

Thanks in advance,

Tom


texts: EE Calendar Not Displaying Custom Fields Inside Channel Entries

texts:
I am trying to setup some templates to use the EE Calendar module from Solspace. I am calling the calendar data with {exp:calendar:cal and I get my event custom field no problem with this is by itself.  If I nest this {exp:calendar:cal inside a exp:channel:entries tag or structure:entries tag I lose the custom field.  Basically something like this

  {exp:channel:entries disable="member_data|categories|category_fields" >require_entry="yes"}
  {exp:calendar:cal  backspace="3" date_range_start="year-month-01" >date_range_end="3 months"}

Dropping the exp:channel:entries line it works, but I need data from that since I am trying to integrate calendar data in an existing template.  Help is appreciated.


texts: Why is Simple Search not getting results from the Grid field in 2.7.2?

texts: I have a site setup with a search box.  The search looks in a channel field made with Grid.  For some reason the results are not being displayed from the Grid, even though all other channels work as planned.  Is this a bug in 2.7.2?


texts: cartthrob 2.5: add_to_cart Tag Not Passing Title Or Price To cart_items_info

texts:
I am using EE2.8.1 with Cartthrob 2.5.

The cartthrob {exp:cartthrob:add_to_cart_form} tag pair is working as intended, and passes the title and price of the specified entry_id without a problem.  However, when attempting to do the same with the single {exp:cartthrob:add_to_cart} tag the title and price seem to not be passed and do not show up in the cart when attempting to view with cart_items_info.

I tried the workaround in this question, but it appears to be a different issue as the cart_items_info tag is working with the add_to_cart_form in my case, just not with add_to_cart.

For completeness sake, here is the working template code:

{exp:cartthrob:add_to_cart_form entry_id="90"}

<input type="submit" value="add to cart">

{/exp:cartthrob:add_to_cart_form}

And here is the template code that does not pass the title or price:

{exp:cartthrob:add_to_cart entry_id="90" quantity="1"}

Is this a bug?  I suppose I could also try to auto-submit the form version using some javascript, but obviously a native solution would be preferable.


texts: Resizing and cropping an image that is smaller than the desired/specified dimensions

texts:
I am pulling in images / video thumbs using Channel Video (so have no control over source size). If the video doesn't have an HD thumb, the image is much smaller.

I want the image to be resized (stretched) up the way and cropped in these instances. So, no matter what the image size is, it ends up with the dimensions below...

{exp:ce_img:single src='{video:img_url_hd}' width='480' height='308' crop='yes|center,center' output='{made}' quality='68'}

This works correctly for images larger than the above dimensions. But smaller images stay the same.

I guess I am asking:

1) Would I be right in saying the resize and crop has no effect on images smaller than the desired/specified dimensions?

2) Is there a way for force the resizing and cropping on these smaller images?


texts: Assets randmonly asked me to update without me updating

texts:
I'm on Assets 2.2.2. Today it told me to update so I clicked the update button. This happened:

A Database Error Occurred
Error Number: 1146
Table 'db509793644.exp_assets' doesn't exist
UPDATE exp_assets SET file_path = REPLACE(file_path, "}/", "}")
Filename: third_party/assets/upd.assets.php
Line Number: 298

Now in Add-ons -> Modules I get @@@VERSION@@ as the version. No clue on this one...