Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/19/2014 in all areas

  1. Hi everyone, Here's a little module that allows you to force users to change their password on their first login, or at any time if you manually force it. http://modules.processwire.com/modules/password-force-change/ https://github.com/adrianbj/PasswordForceChange Key Features During install it creates a new checkbox field in the user template, "force_passwd_change". Automatic checking of this checkbox when creating a new user is determined by the "Automatic Force Change" module config setting. When a user logs in for the first time (or if you have manually checked that field for an existing user), they will be warned that they have to change their password and they'll be automatically redirected to their profile page. They must change their password to something new - they are not allowed to re-enter their existing password. Bulk "Set All Users" option to at any time, force all users (by selected roles) to change their password. Hopefully some of you will find it useful and please let me know if you have any suggested changes/enhancements. PS I used the new info.json way of defining the module details, so it requires PW 2.4.3+
    3 points
  2. The Date header what is sent together with the emails is configured this way: date("D, j M Y H:i:s \G\M\T P") It results in the current GMT and the local difference in P. AFAIK that's the common way according to the RFCs. logActivity isn't meant to hook into. But you can get data from the logfile with tail() or something. The logfile is under $config->paths->logs . WireMailSmtp::LOG_FILENAME_ACTIVITY . '.txt'
    3 points
  3. You might also want to have a look at some ready solutions for selling digital goods. Smashing Mag has a good article about it http://www.smashingmagazine.com/2012/03/29/selling-digital-goods-online-e-commerce-services-compared/
    2 points
  4. There is this mention: https://processwire.com/talk/topic/5281-paypal-payment-method-for-processwire-shop/?p=67668 So long as whatever payment system you are using (Paypal in the example mentioned above) has some way of securely confirming that the user's payment has been received, you can easily make the download available based on whether a "paid" flag has been set for their order.
    2 points
  5. Ok, here is my forked version that lets you choose the images and body fields for each email category: https://github.com/adrianbj/ProcessEmailToPage Please let me know how it goes for you.
    2 points
  6. Hi folks, I have refactored the module and a new version is available on the dev branch here: https://github.com/wanze/Pages2Pdf/tree/dev The module now uses mpdf in the background which has superior HTML/CSS support compared to TCPDF, but the library is slightly heavier. What's new? Creating PDFs is handled by a separate module "WirePDF". This module is just a wrapper around mpdf and you could also use it independently from Pages2Pdf as a Service to create/save/download PDF files from ProcessWire templates All the configuration options related to configure mpdf (margins, document orientation...) are now defined in the module WirePDF Some new config options in module pages2pdf. You can configure the PDF filename and the GET variable that is used when requesting a download You can download a PDF from any page The default templates have changed, with mpdf you now can use a separate stylesheet to separate CSS from HTML markup Triggering the creation/download of a PDF file is handled earlier: After the ProcessWire API is ready but before page rendering is initialized. This should improve the performance. Calling the render() method is technically no longer required, but it can still be used to output the download link. However, you could write the link by yourself if you prefer. If you'd like to test out the new version and upgrade the module: Please note down all the current settings Uninstall pages2pdf module, then replace it with the current one Install the new version Maybe add your previous settings in the WirePDF module. Some settings are no longer supported or have changed slightly If you created manual links to triggering the download in your templates, e.g. added ?pdf=1, you should change the GET variable in the module configs from 'pages2pdf' to 'pdf' Take a look at the default_templates in /site/modules/Pages2Pdf. With mpdf, it's better to separate CSS from HTML, so you can create a "styles.css" in /site/modules/templates/pages2pdf/ and define all CSS styles there. The styles are then availalble in your templates. I hope that's the most important stuff. I'm short in time today (going to a festival), so I can't support Cheers
    2 points
  7. Hi there, in need for a light knowledge base software and not happy with solutions such as MediaWiki, Dokuwiki or Confluence I decided to try to build such a tool based on ProcessWire. At the moment this profile is lacking of features, but doing well in the context it is created for - a somewhat protected simple knowledge base for internal use. It has some basic features but I'm aware that there's still way to go. So if anyone is interested, please find the code attached here or on GitHub: https://github.com/marcus-herrmann/ProcessWire-KnowledgeBase-SiteProfile I exported the data from a PW 2.4 installation, but not have tested it yet against older versions. Installation Before running the installer of ProcessWire copy/replace /site-default/install/ /site-default/templates/ /site-default/modules/ with the folders from this zip. Constraints It's not possible to export user roles with ProcessWire's Site Export Module this profiles templates are checking just whether they are accessed by an anonymous or logged in user. Features Tagging of wiki-articles Set articles to globally sticky ( = for all users) Personal bookmarking of articles for logged in users When using markdown to author wiki-articles, code highlighting via highlightjs Included modules Fredi MarkupSimpleNavigation Hopefully this profile is useful for you in any way. Best, marcus Edit: Forgot GitHub link... ProcessWire-KnowledgeBase-SiteProfile-master.zip
    1 point
  8. there has been some talk also on another thread about this; Joomla with Maian Media is how I do this now; when a customer purchases downloads, the script redirects them to paypal; the IPN is processed after payment which then lets MM create the download page, that has the download links to the files; also sends an email to the user with the URL to their special download page. It would be important for such a system to simply track the # of downloads, and also allow for hiding the file location (could be on a local server or on s3..) but all in all the logic should be pretty simple - gonna try and write this later this summer...
    1 point
  9. I'm getting reports from a client that PCs running IE8 & 10 on an internal network with ChromeFrame plugin installed won't stay logged in to a site that is set up with all the content behind a login form, i.e. on the front-end, not logging into the control panel. Disabling the plugin in the browser makes the problem go away. So does updating .htacess from <IfModule mod_headers.c> Header set X-UA-Compatible "IE=edge,chrome=1" <FilesMatch "\.(appcache|crx|css|eot|gif|htc|ico|jpe?g|js|m4a|m4v|manifest|mp4|oex|oga|ogg|ogv|otf|pdf|png|safariextz|svg|svgz|ttf|vcf|webm|webp|woff|xml|xpi)$"> Header unset X-UA-Compatible </FilesMatch> </IfModule> to <IfModule mod_headers.c> Header unset X-UA-Compatible </IfModule> This seems to have solved the issue but I thought it was worth mentioning here anyway.
    1 point
  10. Great - tested -> works....asap i will provide german translation and if some others test the new functions may update this version....looks really good! Thank you adrian! If needed i could send you one of the favorite recipes translated.....
    1 point
  11. 1 point
  12. I went ahead and removed the affiliate links and altered the first one to a regular link to the digitalocean homepage. Sorry @goro2, I would prefer to be welcoming you for the first post, but nothing on it tells us that you will stick around in the forum after dropping the link here.
    1 point
  13. I don't know what our guidelines are about affiliate links, but I think it would be cool at least always mention when using affiliate links. Referring to above post.
    1 point
  14. You could try "RewriteBase /" as your side is accessable via ""http://www.josbeerepoot.nl/www/". Edit: Should have read more closely. You need to have ModRewrite installed before you check this
    1 point
  15. Eheh, I give an example for my second suggestion on that thread, thanks Adrian http://modules.processwire.com/authors/adrian/
    1 point
  16. git push ignores those dirs because they are listed in .gitignore Just came across this post trying to solve the same issue...
    1 point
  17. hello wanze. Thanks for the update. I have tested it, but now it does not render the images, I have this is my template: if (count($page->images)) { $someImages = $page->images->slice(0, 4); foreach ($someImages as $someImg) { $someImgThumb = $someImg->size(290, 195); echo "<TD WIDTH='25%'><img src=\"{$someImgThumb->url}\" width=\"{$someImgThumb->width}\" height=\"{$someImgThumb->height}\" /></TD>"; } } I followed your instructions, is there some other way to render the images? Also in the previous version, I couldn't create/view the pdf as a guest, only if I was logged in as a superuser or as an editor. Is there some setting that I should change to create/view the pdf as a guest? Thanks! update: the new updated module was not generating the images in MAMP is working fine on a live host. I can now also view the pdfs as a guest on the live host, in the previous version, even after saving the page as a superuser, after login off I could not view the pdfs in the live host. It seems to be working very well now. Thanks again waze for this great module.
    1 point
  18. I finally got around to installing and configuring this module today. Thank you for making this available as a ProcessWire module. Everything worked fine and you should be commended for a quality piece of work.
    1 point
  19. sounds like the same I got, when trying to install PW with 'ProcessWire Blank Profile'. This was fixed in the newest dev version.
    1 point
×
×
  • Create New...