Jump to content

GuruMeditation

Members
  • Posts

    171
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by GuruMeditation

  1. Hi DaveP, Firstly, it's worth noting that I have changed the module slightly, including the names of some fields etc, so this version will be incompatible. It will be released as LiteBB rather than HermodBB, hence the reason I requested for this thread to be deleted. However, thanks for your feedback. I would assume that your problem is related to the incorrect template being used for your sub-forum? What template is your sub-forum page using? It should be using HBB Forum (hbb_forum). What I will do is release the code for updated version which is more or less the same, but doesn't include the code for the replies or comments as this will most likely be released as a separate module, or you can use Ryan's Comments module if preferred.
  2. Does anyone else consider polls to be a good idea for future PW development suggestions? My idea would be for a moderator to open a topic for a month or so, allowing all forum members to make suggestions regarding which features they'd like to see in PW. All suggestions would then be added to a poll, allowing the votes to begin. Then the data from the votes could be passed on to Ryan to give him an idea of what people need, or want on a majority-vote basis. I know it's down to Ryan at the end of the day, but surely if there was a majority vote from the users of PW and this forum, it would be logical to take the votes and figures into consideration? Just a thought.
  3. Cheers for the feedback, I'll consider releasing it if there's anymore interest. As it stands there's not much point.
  4. Hi all, as some of you will know I have been working on a forum solution. My initial code wasn't really talked about so I decided to split the code into two - code for the BB and code for the page-based comments module. I have been working on a page-based comments module over the last day or so, but I wanted to know if anyone else is interested? If so, what data would you want to store? So far I have the following: ip user_agent comment_content votes stars likes If you're wondering why I would want to create a page-based comments module when we already have Ryan's FieldType, then the answer is simple. A page-based module makes it a lot easier to extend to the novice. If you want to use CKeditor, then it's easy enough to achieve with a page-based version.
  5. I went through the following free course which was easy to follow and didn't take long. It has most areas covered and allowed me to understand the PW API and templates. https://www.codecademy.com/learn/php
  6. I thought I'd list a few suggestions that I feel could be useful additions to the comments field. I know most of this can be done via the API, but these additions would make it easier Moderation: It would be nice if we could have role-based moderation settings. In other words, the ability to set up stricter moderation settings for less trusted user roles (roles created for new members etc), and more lenient settings for trusted members (moderators, editors). The same could be applied to the spam settings. That way comments made by trusted user roles could be automatically posted, while other roles could be checked for spam etc. Text Formatters and Inputfield Types Although I'm aware of the security implications, it would be nice to have the option to choose text formatters and the type of field, i.e plain text area or CKEditor etc for the text field. Again this could also be based on role-based settings - trusted users could use CKEditor while untrusted users could be limited to the standard plain text editor. Comments form Easier form customisation, i.e to be able to choose which fields are displayed. If members are logged in, do we need the e-mail address field showing? A simple comment box and submit button would be fine. Also, the additions made to FormBuilder regarding CSS Frameworks were great, and I'd love to see it extended to the comments form. // prepare a form for output $form = $forms->render('comments'); // in your document <head> echo $form->styles; echo $form->scripts; // somewhere in your document <body> echo $form; And voila, a UIKit comment form.
  7. Not sure if this is relevant, but in your config file, do you have the dateFormat set? i.e $config->dateFormat = 'Y-m-d H:i:s'; Also, I had some weird behaviour with dates once, so I deleted the field and recreated it and it worked normally after that.
  8. In the latest 3.x version, there's also some nice additions that will let you easily do this. http://processwire.com/blog/posts/processwire-3.0.7-expands-field-rendering-page-path-history-and-more/#render-groups
  9. The best way I've found to understand it all (apart from asking questions on here) is to create a test site, create a few pages, templates and fields and then to have a look at the database structure via phpMyAdmin. You will quickly understand what a page, field etc actually is, and you will also realise how simple and efficient PW is behind the scenes.
  10. Not sure, maybe you can post your template code? Also your admin page is showing errors. http://dev.producoesindependentes.pt/beltain/beltain/ Maybe you're trying to reference a module you have uninstalled?
  11. I'm on Linux so I prefer lightweight software. I don't use an IDE, I use Atom. I was using Sublime, but I'm preferring Atom at the moment.
  12. I was thinking about splitting this into two modules. One that's responsible for the forum setup and topics and another for the comments. The comments module would be a page-based comments module. This would then give the option to use either Ryan's Comments Fieldtype, or this page-based version with the main forum module for topic replies. Edit: Since I released the source code, there's not been any feedback, so I assume my code is bad. For that reason, I'm going to commence with my above suggestion and split the module into two manageable pieces of code, starting with the comments module. This thread can now be deleted as I will no longer be releasing it as HermodBB.
  13. Can't you just do this? $selector = ("page=$page, sort=-created, start=$start"); // Comment selector $comments = FieldtypeComments::findComments("comments", $selector); //comments is the name of the field foreach($comments as $c){ // Only output those with 5 stars if($c->stars == 5) { echo "Stars = " . $c->stars . "<p> By: " . $c->createdUser->name . "</p>". "<p> Comment: " . $c->text . "</p>"; }
  14. Just out of curiosity, did you finish the page-based comments module? It sounds really interesting.
  15. I remember seeing some code, or a reference to a hook that prevented certain user groups from accessing the admin area completely. I can't find it, and I reckon it would be a good link to add to the OP. Does anyone have any ideas of where to find it, or possibly a code example to provide here?
  16. Hang on there sir..... you actually mean to say I got something right on here? There's hope for me yet in the coding world.
  17. $pages->delete($page, true) That will also permanently delete any child pages, media items etc.
  18. Ok, after a quick crash course with Github, I managed to upload the module for testing. I've included my test templates which should give an idea of how to use the module. I use UIkit for testing, so that's the markup you'll find in the templates. Obviously this is early code and has only been tested by me, so don't use it for anything other than testing. The module does NOT sanitize, so you need to ensure you have sanitized your message before you use the topicSave() or commentSave() methods. Documentation is nonexistent, but the module is fairly straight forward and I can help where needed. So, thoughts, issues, insults? Does it have potential? and if anyone wants to add to it etc, please let me know. Link removed - HermodBB is now discontinued and is now being developed as LiteBB. I will update the thread with further information.
  19. I will upload it to Github this week for people to try. I'm just cleaning up the coding errors I decided to implement while drunk over Xmas Also I'm not totally familiar with Github, but I should be able to get something useful up before the weekend.
  20. The idea is to have no dependencies, so a fresh install of PW would provide everything needed. Replies are stored as pages under a sub-page called "Comments". I've followed along the route of topics and comments so that comments (or replies) can also be used for other pages throughout a site. This image explains it more: The module installs all the required fields and templates expected for a basic forum, it's then up to the user in regards to the markup and how to sanitize the data etc. It doesn't really do much more than that, other than to obviously save the data through custom methods. I have some code as stated previously, but I'm afraid people will laugh at it, as I know a lot of people on here could easily do a better job.
  21. It has indeed, and I have read most of the threads, and I commend pwFoo for his efforts with the modules. This was more about a resource of links and general info for the convenience of front-end developers. I couldn't agree more. I'd love to see it expanded further in the future to make it easier for newer users. Thanks for that, I'll add the links to the OP if that's ok? I did purchase the Form Builder module mainly to support Ryan, but haven't really spent a lot of time with it.
  22. I had no idea. I do however know it's a nice simple and clean resource for finding new scripts and software. I've found a lot of handy tools on there that I knew nothing about previously. I like unbiased sites.
  23. A collection of links and information for front-end development. Front-end forms Create simple forms using the API https://processwire.com/talk/topic/2089-create-simple-forms-using-api/ Gist code for the above link https://gist.github.com/somatonic/4027908 Build and process generic forms from page templates https://gist.github.com/somatonic/5011926 Build and process forms manually with the API https://gist.github.com/somatonic/4027908 Upload images https://gist.github.com/somatonic/4150974 Form with fields rendered in a table https://gist.github.com/somatonic/5415646 Manual form markup with file upload handling https://gist.github.com/somatonic/5233338 Form Builder (module) Building front-end forms on your website has never been so simple. ProcessWire Form Builder lets you create, edit and publish forms with no development necessary. http://modules.processwire.com/modules/form-builder/ Front-end member management FrontendUser: login, logout and register users / members (module) https://processwire.com/talk/topic/9811-frontenduser-login-logout-and-register-users-members/ Member login, logout, password reset https://processwire.com/talk/topic/1716-integrating-a-member-visitor-login-form/?p=15919 Popular front-end UI frameworks UIkit http://getuikit.com/ Semantic UI http://semantic-ui.com/ Foundation http://foundation.zurb.com/ Bootstrap https://getbootstrap.com/ Materialize http://materializecss.com/ Skeleton http://getskeleton.com/
  24. Sorry for being extremely stupid, but does anyone know what ..... 'list' => "<div {attrs}>{out}</div>" .....equates to in regards to UIKit? This is the list components for UIkit, but I'm confused as to how that converts to the above. Is there any further documentation on this? As for sanitizing, as I now understand, the code you posted checks that the form input values are valid, i.e username must be a certain length etc, but we then have to sanitize it with $sanitizer->name($value) before saving etc?
  25. I'm probably wrong with this as I usually am but aren't methods with 3 underscores hookable methods? Edit, yeah it appears they are, I just looked up the docs: https://processwire.com/api/hooks/
×
×
  • Create New...