Jump to content

GuruMeditation

Members
  • Posts

    171
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by GuruMeditation

  1. I also noticed that when your subscription runs out, there is no way to download any version of the module. What I mean by that is, if I had access to Version 1.1 of a module and then my subscription expired, I can't download that version again. I can understand not being able to download a newer version, but why not the version I already had? I lost the zip file and have no way of downloading it again.

    • Like 2
  2. Hi,

    Is there no way we can have an option under "Manage Purchases" to auto-generate a fresh invoice? I have used IPB (this forum software) in the past and I remember seeing an option to generate a new invoice. I'm trying to create a new invoice for Form Builder and I have messaged Ryan, but he's a busy man at the moment and I don't want to distract him from his fine work refining PW.

    Either way, there's no rush as I'm just getting back into PW after a long long break.

    • Like 1
  3. 8 hours ago, SamC said:

    ...all good so far, then it starts to fall apart

    6) Skype (bit ropey)
    7) Spotify (broken and not updated)
    8) Steam (good if you can get proprietary drivers working without tearing) - ultimately, it sucks and works much better on Windows
    9) Studio One 3 with my RME babyface for recording guitars (absolute fail, and Wine makes me want to gouge my eyes out)
    10) Office 2016, yeah there's libreoffice but it just doesn't cut it, I tried for a year. That said, I'd give it another go.
    11)  Stop me having to do this for sanities sake! https://patrickmn.com/aside/lowering-gaming-mouse-sensitivity-in-ubuntu-9-10/  I have a gaming mouse, so it's xinput time. See when this article was originally written?!

    I do actually really like Linux but number (9) is an absolute dealbreaker (and the other items on the second list are a compromise with no really decent solution, unless you store all your music locally, like I did in the 90s...) so I always have to have a WIndows partition i.e. keeping two OSs updated.

    I don't use any of them, so I can't really comment. Studio One however looks a lot like FruityLoops to me, which I had on Windows. An alternative I used for Linux was LMMS. I'm not sure if you're tried it, but it can be found here: https://lmms.io/

    As for Manjaro, I much prefer it over Ubuntu. Changing the Kernel version is a breeze, as is switching between display drivers. On the occasion I've messed things up, I've managed to solve it by reading through the docs. If you can't find what you're looking for there, just head over to the Arch website for answers, as Manjaro is just Arch with some nice additional features on top.

    I've spent many years trying to find my perfect OS, and Manjaro seems to be it. Sure there are things that I need Windows for, like my printing and cutting software, but I'm always amazed to find open source alternatives.

    But yeah, let's relive the Amiga years and all our problems will be solved ;)

    • Like 1
  4. I was raised on the C64 and then the Amiga. Those were great times for me. Sadly, my Amiga died in the 90s, so I reluctantly moved over to the PC. I used the Mac in college, but that was purely for Photoshop, and nothing ever had the same impact as my trusty Amiga.

    After years of using Windows, I decided that Windows 7 was the last version I'd use. It's a good OS, but I only really used it for Photoshop etc. So since then I have been using Manjaro Linux. I won't touch anything else other than an Arch-based OS anymore, and Manjaro adds a nice user-friendly option for it. I've tried all flavours of Linux, but I've always had problems at some point over silly little things. Manjaro? never had a single problem.

    https://manjaro.org/

    Note: I use the main XFCE edition as it's lightweight and stable.

    • Like 3
  5. Hello all....

    So I have CKEditor installed on the front end, but when the form is submitted, it's returning nothing and I have no idea why...

    All of the following code is set up correctly, i.e in the appropriate <head><body> sections etc.

    <script src='https://######.com/###/site/ck/ckeditor.js'></script>
    
    <?php
    if($notices) {
    	foreach($notices as $notice) {
    		echo $notice->text;
    	}
    }
    $session->removeNotices();
    ?>
    
    <?php
    if($input->post->submit) {
    	$editor_data = $input->post->comment;
    	$session->message('<pre>' . $editor_data . '</pre>');
    	$session->redirect('./');
    }
    ?>
    
    <form method='post'>
    	  <input type='textarea' id='comment' name='comment'>
    	  <input type='submit' name='submit'>
    </form>
    
    <script>
    	CKEDITOR.replace( 'comment' );
    </script>

    If I submit the form as above, then $input->post->comment ($notice->text) returns empty.

    If however I remove the following code:

    <script>
    	CKEDITOR.replace( 'comment' );
    </script>

    ... then the form submits correctly, so it's obviously an issue with CKEditor.

    Does anyone have any advice on what's happening?

    I have tried a local installation of CKEditor and the CDN, but it's still the same result.

  6. On 13/04/2017 at 9:05 AM, palacios000 said:

    Hi, which forum module? I am very interested on this and I was hoping to integrate PW with a forum. Where can I find more details?

    Well I don't recommend you download it or bother with it, but feel to browse the source code. There's a lot I'd change about it, but didn't have the time. At the moment I am manually creating a forum to refresh my memory and also to realise what would be required from a forum module. I do still firmly believe that PW needs a basic forum module that can be configured in the usual PW way. I also prefer a page-based comments module. I would just love to see a lot more documentation on creating modules before I attempt it again.

     

  7. On 14/04/2017 at 10:10 PM, adrian said:

    @GuruMeditation - turns out there was more to those space issues. I have alerted Ryan here: 

     

    Yeah I noticed more than a few issues like that, hence the reason I requested a sub-forum to report them. If I see them when I'm logged in, I'll report them straight away providing there's an easy method to do so. A "Report an issue with this page" link on each doc page, that links to a sub-forum would be ideal in my opinion, but that's just my thoughts.

    Either way, good to see those current issues are being sorted :)

  8. Unless I'm missing something, there's no dedicated place on the forum to report bugs regarding the website / forum etc? Is there any chance we could have a sub-forum for it? There have been a number of times I've seen the odd spelling mistake etc, but I've just ignored it because I didn't know who to alert.

    Here's the latest one I've stumbled across:

    http://processwire.com/api/ref/page/

    Quote

    The $page API variable represents the current page being viewed. However, the documentationhere also applies to all Page objects that you may work with in the API. We use $page as the most common examplethroughout the documentation, but you can substitute that with any variable name representing a Page.

     

    Notice the missing spaces.

    • Like 1
  9. Thanks for the reply. I've been looking over how the PW UIKit implementation works, and as usual it's very logical. It's just a case of starting with the blank profile, linking to the UIKit CDN and then including the _uikit.php file to take advantage of the PW helper functions. Simple and to the point.

    As for the updates. I just suppose I'd prefer a changelogs page that lists all the changes between versions with easy ways to compare between versions and to link to the information you require.

    In my opinion, it would be great if PW had a page like this:

    https://www.sidefx.com/changelog/

    It's a nice simple page, and you can alter it to fit your needs.

    • Like 2
  10. Hello everyone, it's been a while since I've been on here. I've placed this message in the pub as I'm usually more at home in one, especially my local (The Crusty Biggus Dickus).... All drinks are on me!

    Firstly I'd like to apologise for the lack of updates to the forum module I was working on. Life always gets in the way, so I have been unable to make any progress. So I apologise to those that were waiting on updates. I'm not sure if I will be able to continue with it or not, time will tell.

    Anyway, I have noticed that there have been some nice tasty updates to PW in my departure, but a few things are confusing me.

    1. What is the best way to find a summary of all the main PW changes since I was last here? I know there is the blog, but sometimes it's hard to find what I'm looking for without having to read every blog post. It would have been nice to see a forum popup message saying "Since your last logged on, here's what you missed in the PW development cycle" ;)

    2. I'm glad things have switched over to Uikit 3 and I noticed the new site profile with the added PW helper library. I'm just wondering if it will be possible to take advantage of that helper library if you decide to start with a blank profile and then use your own installation of UiKit? Will there be conflicts with different versions etc?

    Anyway, hope you're all doing well, and thanks for updating this amazing Framework.

     

     

  11. This is taken from their website....

    Quote

    Hey there, although we loved using Processwire, we felt that WordPress was better suited to help us connect with the community more, and also to help take our directories to the next level, so to speak.  And of course, there's no denying that WordPress is pretty much designed to power websites that publish content frequently, like we do.

    Quote

    While PW is certainly a powerful system, we wanted to implement some more cool features that are simply much easier with WordPress. Things that would typically cost development dollars if we wanted to put in place with PW. As such, we're now able to offer a more customizable and unique experience on the site.

    https://www.cmscritic.com/extreme-makeover-cms-critic-edition/

    • Like 2
  12. Also I know that we have the brand new Docs, what are very fast growing! Just wanted to mention. :)


    On the subject of the docs, I noticed that there is a typo on the following page http://processwire.com/api/ref/page/status/

    Under the "See Also" section at the bottom, Page::addStauts() should read Page::addStatus(). Also the link is wrong and should be http://processwire.com/api/ref/page/add-status/ instead of http://processwire.com/api/ref/page/addstauts/

    ​I thought I'd mention it here rather than opening another thread.

    • Like 2
  13. This is a lot clearer and more useful, so thanks for all your efforts Ryan. I do however have one question and I know the docs aren't complete, but I had a look at the following page http://processwire.com/api/ref/page/addStatus/ and I'm just wondering if a list of all the $statusFlag(s) will eventually be listed on that page? As it stands, I don't see any info directly relating to the possible $statusFlag options.

  14. Do you have ETA for LiteBB to make its debut?

    Basically as soon as I can. This is something that I would love to use myself, so I am eager to get it finished for various personal projects. I could have finished this by now if it was for my personal use, as I would have cut corners here and there, but I want to release it as a module that everyone can use. This is a part time project for me as I'm not a PHP programmer, so I often don't know what I'm doing. But I have the ideas and a vision, so I will crack on and hope others comment on my code in order to improve it.

    As a prime example, do you personally like the idea of being able to choose your own module for the comments / replies? I could hard code it into the core module as I did previously with HermodBB, but if other modules exist to fit the bill, then why invent the wheel? But that's just my opinion.

    PW gives us so much flexibility, and that's what I want to take advantage of. PW takes care of users, permissions, profiles, and that's the beauty of it as it's something I don't need to bother with.

    • Like 2
  15. GuruMeditation,

    I just came across your HermodBB and it looks great. Installation went as expected. I'm struggling with getting it in place but I'm a neophyte and still learning, so I expect those are issues on my side.

    Curious about your most recent comment on releasing as LiteBB. Where does that stand?

    Hi rlwsota,

    I have started to rewrite some code and it will be released as LiteBB. The test code module I released can be classed as discontinued at this stage, so I don't recommend using it. The code for LiteBB is similar but I have renamed some fields etc and have started to rethink some aspects.

    At the moment I'm thinking along the following lines:

    • LiteBB module (the core), which will essentially install the required templates and fields that you would expect for a forum. Just like HermodBB does now.
    • Page-based Comments module. Comments are topic replies, and I'd like to offer a page-based version of Ryan's. My idea being that LiteBB users can choose to use their preferred module for the comments.
    • Various optional modules. An example being the Lumberjack logger module I released that is responsible for logging the user's IP / User Agent etc.
    • Like 1
  16. I did think about it but didn't have a clue where to start. Having a look through Ryan's code he seems to use something like the following:

    $ua_string = $_SERVER['HTTP_USER_AGENT'];
    $ua_string = str_replace(array("\r", "\n", "\t"), ' ', substr(strip_tags($ua_string), 0, 255));

    Do you think that would be enough?

    Cheers

  17. Hi all, here's my first official module. I created it for a project I'm working on, so I thought I'd release it in case anyone else finds it useful. If you have any suggestions or find any issues with it etc, please post them here.

    NOTE: I have only tested it on PW 3.0.3, so you might want to try it on a test installation first if you decide to use it.

    ​Lumberjack Logger Module

    A simple module for ProcessWire CMS that logs the IP / User Agent details of the user when the page is saved.
     
    Installation

    Copy the Lumberjack folder to /site/modules and then refresh the modules from Admin->Modules. Lumberjack can then be installed.

    Usage

    Two new fields will be created when Lumberjack is installed.

    • lumb_ip_log - This field is used to store the IP
    • lumb_ua_log - This field is used to store the User Agent String

    You can add both fields or just one to the required templates. Pages using those templates will then automatically store the IP and User Agent of the user when the page is saved.
     
    Settings

    Lumberjack can be disabled by unchecking the Enabled option on the settings page.

    Screenshot


    post-2170-0-86028400-1460738418_thumb.jp

    Download

    Link https://github.com/GuruMeditation02/Lumberjack

    Updates

    Version 0.1.1 - Added User Agent String santization

    • Like 8
  18. Ok, I think I get it now. I knocked up the following code which I'll post here in case anyone else finds it useful. It seems to work ok

    public function ___uninstall() {
    
        $fields = wire('fields');
    
        // Array of fields to delete
        $fs = array(
          'test',
          'test2',
        );
    
        foreach ($fs as $f) {
          // Get each field from the array above
          $f = $fields->get($f);
          // Get the fieldgroups for each field
          $fgs = $f->getFieldgroups();
          // Loop through each fieldgroup
          foreach ($fgs as $fg) {
            // Remove the field from each fieldgroup it's linked to
            $fg->remove($f);
            $fg->save();
          }
          // Now delete the field
          $fields->delete($f);
        }
    }
    
    • Like 2
  19. Hi all, I'm a bit confused with the following issue.

    Let's say my module installs a couple of fields (see below) for future use, i.e they are not attached to any templates on install, but the user can add the fields to any templates they want after install.

    if(!$this->fields->get('test')) {
      $field_test = new Field();
      $field_test->type = $this->modules->get("FieldtypeText");
      $field_test->name = 'test';
      $field_test->label = 'Test field';
      $field_test->save();
    }
    
    if(!$this->fields->get('test2')) {
      $field_test2 = new Field();
      $field_test2->type = $this->modules->get("FieldtypeText");
      $field_test2->name = 'test2';
      $field_test2->label = 'Test field 2';
      $field_test2->save();
    }

    How exactly do I use the uninstall method to correctly remove them without errors if they have been attached to various templates? I didn't create a fieldgroup for them as they can be independently installed to different templates, so a fieldgroup didn't make sense to me as they are independent fields and not part of a group. But if I use the following code for the uninstall method and they are connected to a template, I get an error and the module can no longer be uninstalled (I have to manually delete the leftovers from the database).

    // Array of fields to delete
    $fs = array(
      'test',
      'test2',
    );
    // Delete the fields
    $fields = wire('fields');
    foreach ($fs as $f) {
      $fields->delete($fields->get($f));
    }

    Any tips or advice? Cheers

  20. Oh no problem with delays - we have no contract it's all sparetime and fun and times are not always funny...

    My condolence for you and your family.

    Yes your are right the module development is a little lack of examples but some of the existing modules (from ryan and others) give very good insights on most of the things...For me i'm not a developper but i was able to create 2-3 little modules and/or adapt others...

    May we could team up on this if you have some further time and motivation later this year.

    Don't hesitate to write me a PM on this topic - nevertheless i like your concept of pagebased comments and would be proud to help even if i not the real PW dev you may wish/need to team up ;)

    Best regards and wishes mr-fan

    I'm not a developer either, and without PW I wouldn't really have bothered with PHP to this extent. PW is easy to use, but it's the documentation that holds it back, but you know that already :D I'd be glad to work with more people on this and also the forum module. I have a lot of ideas, but not the best coding experience. I'll be in touch, and thanks for your kind words.

    Sorry to hear about your loss, GM.

    Again, thanks for your kind words. Chin up and onwards.

    • Like 2
  21. Sorry for the delays again. I've had a lot of bad luck lately and a close death in the family, so I've not had much motivation to continue with these side projects. I would love to connect this with my forum module and make it plugin based, but sadly I have no idea how to do a lot things due to the lacking module documentation. As if stands it's just a straight forward page-based comments module. I have a lot of ideas, but I don't have the means to realise them due to the minimal documentation and examples. I've said it before, and I'll say it again, if PW wishes to expand and be appealing to new users, it needs to have ample documentation and examples. As it stands, it's like trying to rebuild a V8 engine without any instructions. It can be done, but with the manual it can be done in a fraction of the time.

×
×
  • Create New...