• ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoticons maximum are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By NoWords
      I used this CMS only in test phase and never on a Live site because I am still "Studying" it and I have some questions for you.

      For a client that owns a Club (120 members) that has also a restaurant, I need to create a member website with these features:

      Admin side:
      1. The admin should be able to create custom filed for the members (Adress 1, Adress 2, Company, etc. etc.)
      "Budget" will be one of this custom field: every member has an amount of money when they join the club. Money they can use for restaurant etc.
      2. The admin will have a "Add Bill" function where he can add Bills from the restaurant for every member. The amount of the Bill will be then detracted to the Members budget.

      Example: The member Kevin White has a budget of 1000 Euros, he goes to the restaurant and spends 20. Actualized budget: 980 Euros.
      3. The admin will have a section called "Members" where he can see an overview of the members and the open bills they have to pay
      4. The admin can creates events for members. The events can have maximum numbers of applications and every member can decide to come with someone.
      5. The admin can send via email a report to the members with the Negativ "Balance".

      Member side:
      1. Every member will have an overview of the Bills from the restaurant
      2. Every member can join events.

      That's it. So my main question is:

      Can I do this with processwire?

      When yes can please you suggest me the right modules?
      Many many many thanks
    • By CarloC
      I'm using the LoginRegister module and I'm getting an internal server error when I try to login with a wrong password more than one time.
      I've found that the error comes from the SessionLoginThrottle.module, because, for security reasons, is better to prevent too many failed logins.
      Ok, good. But, am I wrong if I think it's too bad to show an Internal server error to the user instead of a simple error in template saying the user to wait X seconds to retry to login?
      Is there a way to do that? It would be great if I could get the error string and style it in the page the way I like.
      And in the SessionLoginThrottle admin configuration, I think that could be a good idea to be able to change the maximum number of login attempts before the error is shown.
    • By prestoav
      I have a site built with a user role 'member' that can view some extra 'member area' pages. I have a user with the role 'editor' that has been given 'user-admin' permission who can successfully generate new users. However, when they try to add / change a 'member' role password to a 'member' role they get the error:
      Unable to generate password hash Does anyone know how to assign the 'editor' role the permission to generate a password for other user types?
    • By psy
      Having problems with the new Login/Register module and hoping someone can help.
      Desired result:
      Guest lands on site (or later specific page) and is redirected to the Login page. The user’s landing page is saved to a session and once logged-in, is redirected back to the original landing page What’s happening:
      Guest lands on any page on the site and is redirected to the Login page Guest enters credentials, hits submit, then sometimes a variety of error messages get written to the logs including sessionCSRF and MYSQL errors. Guest user is presented with the Internal Server Error. Regardless, guest is not logged in Scenario:
      Using PW 3.0.76 and PHP 5.6
      User account created manually in admin with login-register privilege User is my old mate: Username: fred Email: fred@flintstone.com Password: 1234test.
      Site is configured to use delayed output with Regions & Functions API In _init.php I have:
      <?php namespace ProcessWire; if(!$user->isLoggedin() && $page->id!=1193) { // not for login page     $session->set('returnPage', $page->url);     $session->redirect('/login/');     die; } In login.php template:
        <?php namespace ProcessWire; if($user->isLoggedin() && !$input->get('profile') && !$input->get('logout')) {     // login and go back to the previous page or go to the home page     $goToUrl = $session->returnPage ? $session->returnPage : '/';     $session->redirect($goToUrl); } else {     // let the LoginRegister module have control     $content = $modules->get('LoginRegister')->execute(); } ?> <div id="regContent">     <div class="content-wrap">         <div class="container clearfix">             <region id="regPostContent">                 <!-- Post Content                 ============================================= -->                 <div class="postcontent nobottommargin clearfix col_three_fourth">                     <?=$content?>                  </div><!-- .postcontent end -->             </region><!--#regPostContent-->         </div>     </div> </div><!-- #content end -->  
      What am I doing wrong? Why can’t Fred login?
      Any help to resolve much appreciated.
      PS: Tried to use TracyDebugger to see what was happening but got js errors. Just not my day. Uninstalled TD and no errors
    • By alan
      Sorry folks if this is obvious to most and I missed something in the docs or here in the forum, but, I have cheerfully used code such as:
      if($user->isLoggedin()) { echo " loggedIn"; } else { echo " notLoggedIn"; } in PW 2.x sites.
      Now on a v3 site I am finding even the most basic test to see if the viewer is logged in or `isSuperuser()` is not giving an error but simply doing nothing - not evaluating.
      For example, the top of a typical template reads:
      <?php namespace ProcessWire; if($user->isLoggedin()) { echo " loggedIn"; } else { echo " notLoggedIn"; } I have `debug` turned on.
      Is there something obvious I have missed, perhaps a step required for v3 that's not required for v2 to allow access to $user data?
      Thanks for any pointers.