Jump to content

BenSlayers

Members
  • Posts

    87
  • Joined

  • Last visited

Everything posted by BenSlayers

  1. EDIT: removed comments. I figured it out 🤦‍♂️ I'm sure I'll have more questions though, LOL.
  2. Hi, I love this plugin and use it by default in al PW builds! I've noticed that CKE text fields inside repeaters aren't affected by the Autogrow plugin for CKE. Do you have a fix for this?
  3. Oops, wrong forum🤦‍♂️moving this question there.
  4. Hi I'm curious if there are any developers out there that have experience with SnipWire who might be available to hire? I already have the module installed and integrated with the client's Stripe account. This is a non-profit company that would like to offer 9 different membership plans. Everything is working for the basic plan but there are some advanced options that I'll need some assistance with. I've reached out to the developer and I had someone that was going to help but that didn't work out - I do have a description/overview of the project written out which I can forward to you in a DM. From what I understand, this shouldn't be too terribly difficult for an experienced programmer. Thank you! ?
  5. I can confirm @torf's comments above, this module doesn't work in it's current state. Some images are lager than others, it won't display in a nice grid no matter what options I try. Wish I would have looked here before I wasted a couple hours trying to figure out what I was doing wrong, lol. Sure would be a nice addition to my PW toolkit if it worked.
  6. Hi @Gadgetto, I finally have a working demo (see it here) using the Beginner Profile that is incorporated with my custom design but I have a few questions: Where is the data saved for custom fields? I added some custom fields and completed a transaction but I don't see any of the custom field data saved anywhere in Setup -> SnipWire -> Customers or in my Snipcart account. Is there a hook I can use to replace the "Order Info" with "Member Info" in the tab label? I'm using SnipWire to sell Membership plans and I'm hoping to have them renew automatically using the subscription option, I don't see any information in your documentation on this, can you provide an example? Is there a way to set a default option on a select field in the Billing Address? This association is only for Michigan (US) so I'd like to set that as the default under the State/Province field. Is there a way to use conditional custom fields depending on the product that is selected? I'm hoping to be able to add/hide certain *required* & optional fields on the Order Info and Billing Address tabs as some membership plans are for businesses and others are for individuals. Each product will likely have custom requirements so if I can create some sort of if/else statement, that would be great. EDIT: Is there anyone out there that can help? All suggestions are welcome! ?
  7. @Gadgetto thank you very much for taking your time to provide that example. I'll kick it around and see what I can do. Cheers ?
  8. Yup, that worked. Thanks so much @Jan Romero! I can see the demo products now. Oh no! Hi @Gadgetto, can you elaborate on the side effects? Basically, I'm trying to add a way for this association to offer paid memberships. I initially tried doing this with @ryan's FormBuilder and Stripe Payment Processor modules but it quickly became too complex for that route. The association's board came up with 9 different membership plans they'd like to offer, some with one user, others with potentially hundreds or more. For instance, when a school registers, they'd like to be able to offer a coupon code to their students so they can register for free, using the school's plan that they paid for. I think the only way I can really make this work is using a cart system so I can enable coupon codes. If you're interested, I can PM you links to the mock-ups I've created that might help shed some light on what I'm trying to do.
  9. I'm using the Beginner profile, any chance I could convince one of you coding wizards to show me some example code for snipcart-product.php, snipcart-shop.php, and snipcart-cart.php? I'm definitely not a PHP expert but I'm feeling more and more comfortable in PW every day... I'd really like to get this working but my entire site is already built using the Beginner profile and is currently public, I can't rebuild it using the markup regions output strategy. I have my Snipcart account created, the API test is validated but I have the same issue as reported above by @fruid: Call to undefined function ProcessWire\ukIcon() Note: this project is for a non-profit association and I'm currently donating my time but I would 100% not mind paying someone for their help, feel free to PM me if that's preferred ?
  10. Hi all, I'm having an issue on my search page when using SeoMaestro, any idea how to resolve? Error: Exception: Operator '~=' is not implemented in FieldtypeSeoMaestro (in /home/kbellaspa/public_html/wire/core/Fieldtype.php line 693)
  11. Very nice, that worked flawlessly. Thank you so much for your help @horst, what a time-saver! Cheers ?
  12. Yeah dude - that was it!! THANKS! So now, I can just comment out the die('BREAK!!'); and reload the script? Then if everything looks good, remove the script from the server?
  13. Does it matter that my site only has one language (english)? I see that the foreach from Wanze is for a multi-language site.
  14. Wow, I can't believe I missed that, sorry. OK, so I replaced your name with mine (admin) and uncommented die('BREAK!!'); - now I see the following message but when I open the homepage in PW, the text from seo_title and seo_description hasn't been added to title and description in the seo field. www.domain.com :: seomigrate.php - [1 / 343] Home BREAK!!
  15. Hi @horst, thanks for the tips! I definitely don't need to use the migrator module, I didn't even know you could run a script like this, lol. So I backed up my DB and copied your script to a new file (seomigrate.php), uploaded that next to index.php in root and then opened that file in a browser but all I see is "RIP". I checked my pages and none of the data has been copied to the seo field. I thought maybe it was my selector so I found this ProcessSelectorTest module to verify the selector is working correctly, there were 343 pages found. Any idea what I'm doing wrong? I'm not much of a programmer, mostly a front-end guy so please forgive my ignorance ?‍♂️ <?php namespace ProcessWire; // prepare server for continuous output if(function_exists('apache_setenv')) @apache_setenv('no-gzip', '1'); @ini_set('zlib.output_compression', 'Off'); @ini_set('output_buffering ', '0'); @ini_set('implicit_flush', '1'); @ob_implicit_flush(true); @ob_end_flush(); //if(isset($_SERVER['HTTP_HOST'])) header('Content-Type: text/plain'); // bootstrap PW require_once('./index.php'); // here you bootstrap PW, after that line you will have available the most PW variables and functions. if(!$user->isSuperuser()) { // when using those scripts online, I do secure them with forcing a login in the admin as Superuser, ... echo "ACCESS DENIED! ($user->name)"; exit(1); } elseif($user->isSuperuser() && 'horst' == $user->name) { // and where are multiple superusers registered, additionally limited to my username echo '<pre>'.$_SERVER['HTTP_HOST'].' :: '.basename(__FILE__)."\n"; $selector = " seo_title|seo_description!='',include=all "; $pa = $pages->find($selector); // or: $pa = $pages->findMany($selector); $max = count($pa); $cur = 0; foreach($pa as $p) { // loop over all collected pages set_time_limit(30); // renew the time limit for each loop, so that you may run this script long times, but lets it time out on failures in a reasonable short timeframe $cur++; // following do your work if(!$p->hasField('seo')) { continue; } echo " - [$cur / $max] {$p->title}\n"; $p->of(false); foreach (wire('languages') as $lang) { wire('user')->language = $lang; $title = $p->seo_title->getLanguageValue($lang); $desc = $p->seo_description->getLanguageValue($lang); $p->seo->meta->title = $title ?: 'inherit'; $p->seo->meta->description = $desc ?: 'inherit'; } $p->save(); $pages->uncacheAll($p); // after saving, uncahe the current page //die('BREAK!!'); // just when first test the script before processing all items } die('<p>READY!</p>'); } die('RIP'); ?>
  16. Hi, I'd like to add this module to an existing site that is 400+ pages, I see you have this handy-dandy script and it should work perfectly for my needs because my setup is identical to yours - basically, I have a text field (seo_title) and a textarea field (seo_description) that I would like to copy over to my new seomaestro field (seo). I've installed the Migrations module but I have no idea how to run this script with it. I tried looking through the Migrations forum but it's all Greek to me. I'm hoping one of you talented folks can shed some light so I don't have to copy and paste 800 lines of text, lol. Thanks! ?
  17. Thanks! I can see the images now but I don't see any documentation on how to adjust the thumbnail dimensions. Ideally, I would be able to set the width and height of the thumbnails and then open the {src} in a lightbox/modal, is that possible? Something like this?: <?php $instagram = $modules->get("InstagramBasicDisplayApi"); $images = $instagram->getImages(9); echo "<div data-lightbox='gallery'>" . $images->each("<a href='{src}' data-lightbox='gallery-image'>" . "<img src='{thumb}' alt='{alt}'>" . "</a>") . "</div>"; ?>
  18. Hi, I decided to test this out but it's not working for me. I was able to complete the configuration using your instructions so my IG user account shows up under Authorized Accounts but when I try to load the page, I get this error: Fatal Error: Uncaught Error: Call to a member function getImages() on null in /home/clientname/public_html/site/templates/_sidebar.php:59 Here's my code: <?php // Get 9 images from the default user $images = $instagram->getImages(9); // Render the images echo "<div data-lightbox='gallery'>" . $images->each("<a href='{href}' data-lightbox='gallery-image'>" . "<img src='{src}' alt='{alt}'>" . "</a>") . "</div>"; ?>
  19. Nice, thank you for the heads up @adrian! I'm following that thread now.
  20. Yeah, I'm getting that impression after tinkering with it for the weekend. Should I even bother with it, do you think it's a viable solution or more trouble than it's worth? I did receive the PM, thanks!
  21. Hi @adrian, I'm having this same issue with the display but I'm using the most recent version of Recurme and PW. Do you remember how this was resolved or can you point me in the right direction? I know this plugin isn't supported anymore but it looks like it does exactly what I need so I'm hoping I can make it work. Does anyone have plans to take over management of this module? Any help is most appreciated, thank you!! ?
  22. Not a problem at all @kongondo, I know how it goes ? I used the first option with Jumplinks and it WORKS!! Hallelujah, thank you so much for your time.
  23. Hi @kongondo, no problem at all! I'm just happy to have your support ? - I'll stay tuned, thanks!!
×
×
  • Create New...