Jump to content

bramwolf

Members
  • Posts

    135
  • Joined

  • Last visited

About bramwolf

  • Birthday 11/05/1985

Contact Methods

  • Website URL
    http://www.bramwolf.nl

Profile Information

  • Gender
    Male
  • Location
    The Netherlands
  • Interests
    Graphic design, Web development, Playing piano :) Composing

Recent Profile Visitors

2,547 profile views

bramwolf's Achievements

Sr. Member

Sr. Member (5/6)

25

Reputation

4

Community Answers

  1. Wow thanks man! πŸ™‚ I already tried that, and it didn't work, guess I did something wrong, this worked fine πŸ™‚ Thanks! (Y)
  2. Hi Guys, I found here: https://processwire.com/docs/selectors/#finding2 that I can exclude results from my $pages->find($selctor); query by using parent!=123 ( parent ID ) But I was wondering if I can also do so based on the parent template? I've tried doing it by itterating over the matches array and dropping the matches with the parent but since the result is limited for use with the paginator it only drops the items from the batch displayed on this page. Say from the results within matches 0 - 20 and not the entire 0 - 220. Anybody have a idea of how to achieve this? πŸ™‚ Thanks in advace! Bram
  3. Hey Guys, I'm working on deploying a portal like website which will allow different companies to log into the portal and end up on their own version of the site. I was wondering if you could give me some advice on how to structure this. These are the goals I have in mind: - Every company that uses the portal should have it's own version of it, preferably it's own database - I want to use the same template files for all the instances of the site for all companies - One company should NEVER be allowed to use the portal of a different company I was thinking of creating main pages with the names of the companies and have all other pages with the same templates as always copied to be children under that page. So for instance: - Home - Company 1 ( company1.portal.com ) - Portal Home - Portal Content - Portal Contact - Company 2 ( company2.portal.com ) - Portal Home - Portal Content - Portal Contact If using the same database I could give all user account a code that refers to their company part of the portal so if user xyz logs in and had the company code "company2" they would get sent to the Company 2 portal. But I'm not sure how safe this is? Any suggestions or ideas of how to handle this best? Also I was wondering if it is possible to create the company1.portal.com domains without adding DNS records to my hosting account constantly? Any tips or suggestions will be greatly appreciated :) Grts, Bram
  4. Thanks Moritzlost! That does just what I needed πŸ™‚ (Y) You rock! πŸ™‚
  5. Hi Guys, I found that my site is producing this notice on the front end, even when $config->debug = false and also when admin is not even logged in. How do I keep the site from displaying this message to front end users? The notice is about a few vars being tested, which in this case aren't defined, how would I stop that from happing all together when testing vars? if I for instance wrap the $discountCode = blabla in a if($order) { ... } statement than I'm again testing for $order which isn't a object in this case which throws another notice.. This is the notice: Here is my current code: // PAD DISCOUNT CODE HOOK // First we see if we have active discount code if ($this->session->orderId) { $order = $this->pages->get($this->session->orderId); } if($product->geen_korting == 1) { $nodisc = $product->geen_korting; } else { $nodisc = $product->parent->geen_korting; } $discountCode = $this->sanitizer->selectorValue($order->pad_discount_code); $dc = $this->pages->get("template=paddiscount, title=$discountCode"); if ($dc->id) { if ($nodisc) { $discount = 0; } elseif ($dc->pad_percentage) { $discount = $newprice * ($dc->pad_percentage / 100); } } $event->return = $newprice - $discount; Thanks in advance πŸ™‚
  6. Hi Krlos, I did get it to work in the end! I used the onepagecheckout template found in padloper. I will send you a zip file with all modules en templates of my site needed for this integration you can just copy the Mollie module in it's entirety. Be sure to select it in PaymentModule. Yoiu can check my checkout scripts on how I invoked Mollie. You can copy what you need from my files and stitch your own version of the integration together πŸ™‚ Hope this helps! Grts, Bram
  7. Thank you sooo much for this!! Truly super helpful, I've been trying to implement that precise script for two days, since I didn't know you had already done it, and failed! 😒 thanks! πŸ™‚ I do however have a few questions O:) I've been playing around with the config options but can't quite get the script to do what I want, I currently have: $options = array( 'showUploaded' => true, 'uploadsDeletable' => true, 'showUploaded' => true, 'setMaxFiles' => 9999, 'setOverwrite' => false, ); But after the upload the script doens't show the files I uploaded, Nor do I see links to the files opening in a Gallery. Also I've not managed to upload more than 50 files at once, the rest of the upload seems to just get dropped. What settings would I have to use to: - See the images already in the folder - See the images after uploading with link to open them in a gallery? - Actually upload 9999 files? Thanks in advance! πŸ™‚
  8. Hi Guys, I've read all the info in this thread but since half is about the umlaubt and half about the content type I can't realy figure out if and how this was solved. This is what I get out of WireMail: Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 8bit <p>Beste Bram,<br /><br /> Er is een account voor je aangemaakt op: portal.bewakingsgroep.nl<br /><br /> Je gebruikersnaam is: brammus<br /> Je wachtwoord is: 2c9c3s2EgAm4<br /><br /> Na het inloggen zal je gevraagd worden een nieuw wachtwoord op te geven.<br /> Onthoud dit wachtwoord goed en deel het met niemand.<br /><br /> Vriendelijke groet,<br /> Tonny Jacobs<br /><br /> Bewakingsgroep.nl</p> Does anyone know how to fix this? I've already tried the suggested updates to WireMail and the version from the repository to no avail :\ Thanks in advance!
  9. I checked a email from the frombuilder and got the same result. I never had this problem before with any other processwire sites I have. Any ideas on what could cause it? Thanks in advance πŸ™‚
  10. I tried it with a Gmail account but got the same results. It's like the header isn't configured properly? the encoding type should be sent as a header not as the message. However I don't know why that is happening or where I could change it.. πŸ˜•
  11. Hi Adrian, I don't think so, got the same formatting on Apple mail and android Grts Bram
  12. Hi Guys, Just installed and tested the module and my email came out like this: Any ideas on how to fix this? Thanks in advance πŸ™‚
  13. Well, here we go again. I was testing to see if the Mollie module works and got this error on the checkout page: Checkout Warning: include(/customers/a/4/3/big-in-fabric.com/httpd.www/site/modules/PaymentMollie-PW3/vendor/composer/../../src/MollieApiClient.php): failed to open stream: No such file or directory in /customers/a/4/3/big-in-fabric.com/httpd.www/site/modules/PaymentMollie-PW3/vendor/composer/ClassLoader.php on line 444 Warning: include(): Failed opening '/customers/a/4/3/big-in-fabric.com/httpd.www/site/modules/PaymentMollie-PW3/vendor/composer/../../src/MollieApiClient.php' for inclusion (include_path='.:/usr/share/php') in /customers/a/4/3/big-in-fabric.com/httpd.www/site/modules/PaymentMollie-PW3/vendor/composer/ClassLoader.php on line 444 I checked to see but the files it is referring to, like: /customers/a/4/3/big-in-fabric.com/httpd.www/site/modules/PaymentMollie-PW3/vendor/composer/ClassLoader.php Is actually right there. Any ideas on how to fix that? πŸ™‚ Thanks again guys.
  14. Crazy!! πŸ™‚ You fixed my problem ^_^ First, I just updated to already installed files of PaymentModule and PaymentInvoice to the PW3 versions, which crashed everything πŸ™‚ Than uninstalled both modules, updated the files and reinstalled them. Afterwards, I installed the MollieModule and now it worked fine! πŸ™‚ Thank you so much, now let's see if I can actually get it to work with the vendor files from composer πŸ™‚
  15. @MoritzLost thanks for your offer! πŸ™‚ However, i'm not planning on reinstalling Processwire inside composer, and also I don't need composer for anything other than this module so I decided to bedug the adapted PaymentMollie module instead and use prepackaged files provided by the original Mollie package from github. So to be clear, I'm trying to install this module ( Mollie compatible with Padloper ) https://github.com/Typografics/PaymentMollie-PW3 With the composer vendor files from this package ( The original Mollie api ) https://github.com/mollie/mollie-api-php The error I get after upload the files and going to the "Install Module" page is this: Fatal Error: Uncaught Error: Class 'ProcessWire\PaymentModule' not found in /customers/a/4/3/big-in-fabric.com/httpd.www/site/modules/PaymentMollie/PaymentMollie.module:7 Stack trace: #0 /customers/a/4/3/big-in-fabric.com/httpd.www/wire/core/Modules.php(1545): include_once() #1 /customers/a/4/3/big-in-fabric.com/httpd.www/wire/core/Modules.php(2842): ProcessWire\Modules->includeModuleFile('/customers/a/4/...', 'PaymentMollie') #2 /customers/a/4/3/big-in-fabric.com/httpd.www/wire/core/Modules.php(3023): ProcessWire\Modules->getModuleInfo('PaymentMollie', Array) #3 /customers/a/4/3/big-in-fabric.com/httpd.www/wire/modules/Process/ProcessModule/ProcessModule.module(380): ProcessWire\Modules->getModuleInfoVerbose('PaymentMollie') #4 /customers/a/4/3/big-in-fabric.com/httpd.www/wire/modules/Process/ProcessModule/ProcessModule.module(343): ProcessWire\ProcessModule->renderList() #5 /customers/a/4/3/big-in-fabric.com/httpd.www/wire/core/Wire.php(380): ProcessWire\ProcessModule->___execute() #6 /customers/a/4/3/big-in-fabric.com/ (line 7 of /customers/a/4/3/big-in-fabric.com/httpd.www/site/modules/PaymentMollie/PaymentMollie.module) This error message was shown because: you are logged in as a Superuser. Error has been logged. I have the PaymentModule installed and am using version 3.0.123 of Processwire, the module requires version 3.0.90 at least. This is the start of the PaymentMollie.module file: <?php namespace ProcessWire; // Here you can find more information about the Mollie php api https://github.com/mollie/mollie-api-php require_once __DIR__ . "/vendor/autoload.php"; class PaymentMollie extends PaymentModule { public static function getModuleInfo() { return array( 'title' => 'PaymentMollie', 'version' => '0.0.2', 'summary' => 'Mollie Payment method', 'singular' => false, 'autoload' => false, 'requires' => 'ProcessWire>=3.0.90, PaymentModule', ); } Anybody had any clues? πŸ™‚ thanks again
Γ—
Γ—
  • Create New...