Jump to content

wbmnfktr

Members
  • Posts

    2,256
  • Joined

  • Last visited

  • Days Won

    59

Posts posted by wbmnfktr

  1. Just some more thoughts on this topic

     

    I just asked myself Why would someone use Drupal or Typo3 and therefore read what they write on their sites. 

    The shocking truth is that they don't say anything new at all.

    Some arguments are valid, some are BUZZword Bingo but almost all of them match perfectly well with ProcessWire, too.
    If we wanted to create a huge list of arguments for ProcessWire we can find a lot of material out there in the interwebs.

    Can ProcessWire compete with Drupal or Typo3?
    I think we all know the answer.

     

    Next step Who uses Drupal or Typo3.

    This is way more interesting to look at.

    Big companies, big budgets and big agencies.
    Absolutely well designed sites well presented. 

    Drupal plays the showcase-game very well. Every site gets a lot of attention. Not only a screenshot, a link to the website, a link to the creator and a few links to modules. Everything is a case study. Browsing the list of sites is a really nice experience and makes me want to try Drupal and built awesome sites.

    Could this be done with ProcessWire sites as well?
    Absolutely.

    Should we invest more time in presenting sites and projects?
    You guess it.
     

    • Like 6
    • Thanks 1
  2. I really like the idea and the direction this article takes but there is one thing that ... has some kind of aftertaste.

    You are writing ProcessWire ist sicher (ProcessWire is safe) and telling people that there are no documented security issues but linking out to a page that tells something different - at first people will only see:

    Github ... ProcessWire... Issues... Security... security... security...

    I know about PWs high level of security but even I had to take a much closer look at those issues.

    Your audience could get this horribly wrong without further explanations as they will not dive deeper into those issues.

    2017-11-28 16_51_22-Search · security · GitHub.png

    • Like 5
    • Thanks 1
  3. _init,php isn't a regular template file.
    It's more kind of a universal settings file with variables and presets you might need later on your page(s).

    So you could add the following line to site/config.php

    $config->prependTemplateFile = '_init.php';

    The _init.php in /site/templates/ will be included every page load and therefore the login check is always in place.

    Within this file you could and should add psy's / your code

    <?php
    
    $loginPage = $pages->get('template=loginregister'); // in my case yours might be different
    
    if(!$user->isLoggedin() && $page->id!=$loginPage->id) { // checks if user is logged in and not on login page
      $session->set('returnPage', '/path/to/welcome/'); // set your welcome site
      $session->redirect($loginPage->httpUrl);
      die;
    };

    This would redirect every user that is not logged in to your login page and sets the returnPage.

    Be careful with the check conditions. You might want to fine tune this check.

    • Like 2
  4. @AndZyk MapMarker is a nice module and does most of the things most people want. But there is still some overhead if you build and use your own Google Maps with custom scripts and markup.

    All @suntrop does and probably needs is grabbing lat/long from Google and saving it to text fields. A super lightweight solution btw.

    I played around with Profields: Textareas and the lat/long script.
    Still everything is fine. With and without language support and german language pack.

  5. $static_translations['telephone']['default'] = "Τηλ:<br><a href=\"tel:2821011111\">2821011111</a>";
    $static_translations['telephone']['english'] = "Phone:<br><a href=\"tel:+302821011111\">00302821011111</a>";

    OR

    $static_translations['telephone']['default'] = "Τηλ:<br><a href='tel:2821011111'>2821011111</a>";
    $static_translations['telephone']['english'] = "Phone:<br><a href='tel:+302821011111'>00302821011111</a>";

     

    • Like 1
×
×
  • Create New...