Jump to content

HeadStand

Clients
  • Posts

    3,392
  • Joined

  • Last visited

  • Days Won

    15

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by HeadStand

  1. This was a fun one! I have a client who uses Custom Packages fairly often. Today they created an invoice for a client with a custom package, same way they always do. The client received a notification, logged in to pay the invoice, and when they hit "Pay Now", they received the following error message:

    "Custom Enterprise License is not available for your account". Error code is 000/B.

    It seems that as of version 4.6.9, there was a new check introduced to \IPS\nexus\modules\front\checkout\checkout::_pay(), which verifies that the user has permission to purchase the items in the invoice. 

    \IPS\nexus\Package\Product::memberCanPurchase

    if ( ! ( $this->member_groups == "*" or !empty( ( array_intersect( explode( ",", $this->member_groups ), $member->groups ) ) ) ) )
    		{
    			throw new \DomainException( $member->language()->addToStack( 'err_group_cant_purchase', FALSE, array( 'sprintf' => array( $member->language()->addToStack( "nexus_package_{$this->id}" ) ) ) ) );
    		}

    The above check always fails for custom packages, because nexus_packages.p_member_groups is empty - not null, not *, just empty. Therefore, when the user goes to pay the invoice, it tells them that they're not allowed to do so.

    I would suggest an override for the memberCanPurchase method in \IPS\nexus\extensions\nexus\Item\CustomPackage to verify that the member purchasing matches the value in nexus_packages.p_custom.

  2. 52 minutes ago, Jim M said:

    SendGrid's URL decryption has caused some issues in the past so I would not be surprised. Of course, can confirm this by doing some tests with another SMTP provider.

    Sendgrid is not the only platform that rewrites URLs. Most of these platforms do. I realize that IPS doesn't support other email services out of the box, but there are plenty of services that will rewrite the URLs even if you send the email through their SMTP.

  3. 3 hours ago, Daniel F said:

    Have you tried to debug the target URL inside the redirect controller? 

    Yes, I can see where I'm directed to when I click the unsubscribe link.

    Perhaps it's a conflict with Sendgrid itself? The way that Sendgrid rewrites the URLs? I would bet that sendgrid just decodes the URL in full.....

  4. Clicking on an unsubscribe link redirects the user to the homepage and does not unsubscribe.

    This took me FOREVER to figure out, especially because the client who reported it was using SendGrid, which of course rewrites all the links. Until I got access to that and managed to see what was happening...

    There is a conflict when IPS email tracking is enabled. Consider this unsubscribe link that is included in a bulk mail:

    https://site.com/index.php?app=core&module=system&controller=redirect&url=https://site.com/unsubscribe/?email=esther@headstandconsulting.com%26key=1cd2e20f285199a4351e4037aa7c19b1&key=e6509624eb4aeb5a4a3e8c7e19497d69628204292b4a26d21ac49db305915cc3&email=1&type=bulk_mail&utm_source=connect&utm_medium=email&utm_campaign=website

    Note that there are 2 query parameters for both "email" and "key".

    \IPS\Email::_parseElementForClickTracking

    $url = \IPS\Http\Url::internal( "app=core&module=system&controller=redirect", 'front' )->setQueryString( array(
    				'url'		=> (string) $element->getAttribute('href'),
    				'resource'	=> ( \IPS\Request::i()->resource ) ? 1 : NULL,
    				'key'		=> hash_hmac( "sha256", (string) $element->getAttribute('href'), \IPS\Settings::i()->site_secret_key . 'r' ),
    				'email'		=> 1,
    				'type'		=> $templateKey
    			) );

    Adding the HTML click tracking sets the "email" query parameter to 1 and the "key" to a hash related to the link. These parameters are added to the unsubscribe link after  the unsubscribe link is built. The unsubscribe link itself contains an "email" query parameter (which is set to the recipient's email), as well as a "key" query parameter (which is a hash of the user's email and pass_hash). 

    I would suggest that the click tracking piece be reviewed to avoid the duplicate parameters.

    I imagine that this may be the root cause of other unsubscribe issues that have been reported in this forum.

    Thanks.

     

  5. 6 hours ago, livegames.co.il said:

    Thank you. I bought it, and I will try to play with it. 

      

    Could you please help to bold this separate line? 

    The <hr> tag? That's basically just a border... there's not really a way to "bold" it. You could increase the border-width to make it thicker. So something like

    <hr class='ipsHr' style='border-width:3px 0 0 0;'>

     

  6. On 1/1/2022 at 6:09 AM, livegames.co.il said:

    Can I add an open text field on the opening topic process where the user must input decimal value only ("1.7" for exemple)? Can this number be treated and presented as a tag? (please see screenshot 2),

    Yes to the first part (decimals), no to the tag.

    On 1/1/2022 at 6:09 AM, livegames.co.il said:

    Can I set a condition as if a specific selection was chosen from the already existing drop-down (please see screenshot 1 ), so the decimal field will disappear?

    Not sure what you mean by "already existing dropdown". You can set up one template field to show/hide another template field. But you can't set it up on fields that are not part of this application. Let me know if you need me to explain that further.

    On 1/1/2022 at 6:09 AM, livegames.co.il said:

    Can i swap position of fields? (screenshot 3)

    Yes. You can order the custom fields any way you want.

  7. 22 hours ago, Fred Mercury said:

    Hello @HeadStand

    Do you have a demo published to see the result of the application? The images account only for the administration and configuration of the application, but it would be interesting to see the result of it.

    Regards.

    I don't have a demo available. Sorry. 

  8. 59 minutes ago, AlexWebsites said:

    What’s the latest on this? Still nothing in the marketplace. Is there something wrong that’s it’s not approved yet?

    Not that I know of.... I think maybe Daniel is on vacation?

  9. 2 hours ago, AlexWebsites said:

    Is it IPS that takes a while to approve your updated files? I'm still getting:

    image.png.af14ced25d0c5932189c2d278f681c93.png

    How does it work after you submit an update? 

    IPS has to approve the file, and I think wait time is like 2 weeks.... 

  10. On 5/12/2021 at 12:35 PM, Claudia999 said:

    And I found a bug (?) with calendar events.

    I have recurring events since eons until the end of the world 😉 and thought I have to choose "Upcoming content" as type. But then in html-preview I only have the variable with the key of content.

    It works only if I choose "popular content" as type (and then only the recurring event with a comment appear in preview and not the other recurring event without a comment although the minimum number of comments is set to 0).

    915822131_Bildschirmfoto2021-05-12um18_29_03.thumb.png.5969ccd064c111c855637b943324f725.png

    I'm not exactly sure what the issue is. Can you please clarify what you're trying to do and what the problem is?

×
×
  • Create New...