Jump to content

michelangelo

Members
  • Content Count

    50
  • Joined

  • Last visited

Community Reputation

8 Neutral

About michelangelo

  • Rank
    Full Member

Profile Information

  • Location
    Den Haag, NL

Recent Profile Visitors

287 profile views
  1. I am building a project where students will be able to access a website only if they authenticate with their student accounts. That's why we opted for this option.
  2. Hello @BillH, thank you for your comments and directions! I must have missed it by not searching for the right terms... I will just describe my thought process so you can tell me if I am correct: 0. Setup Page Protector and SAML Authentication Modules 1. Setup the Page Protector to stop the visitor from accessing any content 2. Redirect the user to an IDP where they will log in 3. ProcessWire recognises that and it opens the website...
  3. Hello guys, there are many topics on authentication of the superuser or APIs, but I couldn't find what I need: Can a visitor of the website be asked to authenticate? Just to see the website, without any permissions or back-end access? Is this possible with SAML?
  4. Thanks @MoritzLost! It worked now. Something was happening with the regex AND with my input. It's all good now!
  5. Thanks @MoritzLost! I will fix the issues with my regex now. The $link->textarea_short contains what I expect and it's a string. What I am trying to do is have the client enter a url from mixcloud, e.g. https://www.mixcloud.com/toddyflores/matinee-2015-formula-1-grand-prix-mixtape-by-toddy-flores/ and I will render the appropriate mixcloud iframe player. The iframe uses this structure: <iframe width="100%" height="60" src="https://www.mixcloud.com/widget/iframe/?hide_cover=1&mini=1&feed=%2Ftoddyflores%2Fmatinee-2015-formula-1-grand-prix-mixtape-by-toddy-flores%2F" frameborder="0" ></iframe> so everything in the feed i want to replace with the parsed channel and track. that's why: https://www.mixcloud.com/toddyflores/matinee-2015-formula-1-grand-prix-mixtape-by-toddy-flores/ // becomes ...feed=%2Ftoddyflores%2Fmatinee-2015-formula-1-grand-prix-mixtape-by-toddy-flores%2F... // this expression Why would preg_match() refuse to work with my variable $str?
  6. I am doing a very simple string parsing from a url taken from a Textarea inputField. It's all working fine if I define the link as a string, e.g. $str = 'some url', but if it is taken from the CMS it doesn't work... $str = $link->textarea_short; // this doesn't work // Expected Output: '<p>https://www.mixcloud.com/some-radio/</p>' // $str = '<p>https://www.mixcloud.com/some-radio/</p>'; // this works preg_match('/<p>https*:\/\/www\.mixcloud\.com(.*)<\/p>/', $str, $matches, PREG_OFFSET_CAPTURE); $str_url = $matches[1][0]; $str_url = str_replace('/', '%2F', $str_url); echo($str_url); This is the algorithm that I am working with: 1. Getting a url 2. Parsing it to extract what I need 3. Replacing some characters. In both cases if I echo the values I get the right result but in the preg_match() doesn't work. What am I doing wrong?
  7. Following Gadgetto's train of thought I also found out now that using a commercial solutions really saves money in the long run. I really didn't want to risk security for example, so Snipcart could be great. Otherwise there are many breakdowns of what's good and what's not and I think unless you have an extremely simple shop you will most likely need a fully-fledged system.
  8. Hello everyone, I was curious to know if there is a way to access discounts from SnipWire? I would need it to recalculate the price on the front-end based on the quantity of items. Thank you! p.s. I know I have been posting a lot, but it's my first time using SnipWire and Snipcart so much. Thanks for the understanding.
  9. @Gadgetto That might help! I think in general more thorough documentation will really help people, but I can understand that's quite a lot to do. For example, I am not super sure how Snipcart parses all the information from the $anchor variable output by SnipWire? I want to update the price based on a bundle of products by using prices and discounts directly from the Snipcart API: So when you go up or down the grams, it will already update the price on the right (also adding the discounts if any). 1g = €50 2g = €90 3g = €130, etc Now do I access directly Snipcart with its own api or I change the cart by SnipWire? This: Snipcart.api.items.add({ "id": "mineral", "name": "Mineral", "price": "50.00", "quantity": 1, // change this value to update the cart? ... }); or this: <button class="snipcart-add-item" title="Add to cart" aria-label="Add item to cart" data-item-name="Mineral" data-item-id="mineral" data-item-price="{eur: 50.00}" data-item-quantity="1", <!-- change this value to update the cart? --> ... Add to cart</button> I would like to keep it simple and clean. Last but not least Thank You for all your work, it is a massive help!
  10. I am checking all the settings now, but I cannot figure what could've gone wrong. I set up an express Paypal gateway. I tried to disable it but I cannot really, I just entered wrong paypal but still sends me directly there. I tried it in TEST mode and it works properly... I also see that my client has entered their card but I cannot be sure if it is proper. It says 'Name on card: visa'. Maybe they didn't fill it in correctly and that's why Snipcart doesn't let the user pay to it? Update: I added a new card. Now I can pay with card but it always sends me to this PayPal page, so I guess it's all fine. I just expected it to look something like this: @Gadgetto can you just confirm if that is what you see usually in LIVE too?
  11. Hello everybody, anybody had any problem with credit cards not showing up on check out? Everything was working fine and I am at the end of the project. But when launched into Live with set up credit card on the seller's side and Paypal, the shopping cart directly sends me to the PayPal. I cannot choose any credit card option. On the back-end of Snipwire I see the three default options Visa, MasterCard, Maestro, but nothing shows up... Any ideas? Thank you! p.s. @Gadgetto sorry for spamming, I thought I can delete my previous post, but I couldn't maybe somebody else can
  12. Hello everybody, anybody had any problem with credit cards not showing up on check out? Everything was working fine and I am at the end of the project. But when launched into Live with set up credit card on the seller's side and Paypal, the shopping cart directly sends me to the PayPal. I cannot choose any credit card option. On the back-end of Snipwire I see the three default options Visa, MasterCard, Maestro, but nothing shows up... Any ideas? Thank you!
  13. @LostKobrakai thanks, I usually just make srcset with ProcessWire. Is that what you mean? BTW I checked better already and it seems like some videos of 20 sec were 25 MB that I compressed to 2.5 MB. Quite impressive this Handbrake...
×
×
  • Create New...