Jump to content

kongondo

PW-Moderators
  • Posts

    7,529
  • Joined

  • Last visited

  • Days Won

    160

Everything posted by kongondo

  1. 1. https://processwire.com/talk/topic/2394-how-to-present-your-module/ http://processwire.com/api/modules/ https://processwire.com/talk/topic/741-a-guideline-for-module-naming/ 2. GitHub (preferred; maybe even required now but Ryan will confirm )
  2. And here's an excellent Hanna Code snippet by Diogo that lets you choose which images in a page to display https://processwire.com/talk/topic/1182-module-image-tags/?p=40015
  3. Glad you got it sorted. I notice in your code you are retrieving the FIRST post published (sort=blog_date) rather than the LATEST one (sort=-blog_date). Notice the hyphen. Is that intentional? Also, you may want to limit the amount of posts you retrieve in $postimgblog in case you will have many posts... As for making Post x of xx disappear, didn't you read my post properly? In the latest Blog 2 update the <h3> now has a class <h3 class=posts-count>
  4. Updated Blog to version 2.0.1 on dev branch. Main changes Corrected an oversight whereby comments whose post pages were set to not show comments, i.e. 'disable comments', were still visible when viewed in 'comments' page and 'recent comments' widget. Now, only admin users will be able to see such comments in the 'comments' page and 'recent comments' widget In respect of the above comments, when viewed on the 'comments' page, similar to those tagged 'SPAM' or 'PENDING', they are now tagged as 'HIDDEN'. As stated, these are only visible to admin users. Of course if a post's comments are subsequently set to be shown, these will be visible to all users and the HIDDEN tag will be removed since they are no longer hidden
  5. I have added a posts-count class to the <h3> This is a bit vague. I am not sure exactly where you want that image above the blogpost. Do you mean above post title ('Fanions - K.F.C. Heist - Nieuwpoort') or just below it? If you want it above, that means you want the image before the post is rendered ($small post from what I can see). That means, you have to call that image in your template file. That is tricky because you need to programmatically fetch one image from the post that you have rendered. It is not impossible though but I need to know your situation better. How many posts will you be outputting at a time in that 'middle' area of the home page How will you be calling that post? The latest added post? A specific one? You said there will be multiple images per post, which image are you interested in? The first one? The last one? A random one? A specific one? Assuming you will be calling only 1 post, the latest published one, and outputting its first image... /*find the latest post and pass that as a Page or even a string to renderPosts(). You could even just call renderPosts("limit=1, true") but we want to use the Page later to grab the image*/ $post = $pages->get('template=blog-post, sort=-blog_date'); #get and output your first image $image = $post->blog_images->first(); if($image) echo "<img src='$image->url'>"; #render your 'small' post $blog = $modules->get("MarkupBlog"); echo $blog->renderPosts($post, true);
  6. You could always also remove it via phpMyAdmin. Go to the modules table, find the module class (e.g. ProcessBlog) and delete that row...Backup before of course...
  7. For longish selects, the way to go is probably asm or autocomplete pagefields. How many shops are we talking btw?
  8. Try this... https://processwire.com/talk/topic/3256-db-connect-error-2005-before-installation/?p=32366
  9. Session name? You can have multiple sessions run without conflict https://processwire.com/api/variables/session/ http://stackoverflow.com/questions/1348555/having-two-different-sessions-in-same-domain http://stackoverflow.com/questions/854105/multiple-php-sessions
  10. Note that I subsequently updated the link..You should be reading that thread from post #171 onwards...
  11. There is ...it is highly configurable. I am trying to find a conversation we had with teppo and ryan about this....You can add the html you want right in the PW admin in the CKEditor's settings as long as they are not HTML 5 tags...which will get stripped out by HTML purifier... Update Here you go...start from here: https://processwire.com/talk/topic/3023-module-ckeditor/?p=71523
  12. @joss - 404 on that link..
  13. Why is my PHP script not sending emails? http://www.html-form-guide.com/email-form/php-script-not-sending-email.html
  14. Maybe go back to mail() and do simple tests as recommended here is SO
  15. There's this module Site Wide File Manager: http://modules.processwire.com/modules/manage-files/ https://processwire.com/talk/topic/630-module-manage-files/
  16. I'll just go and fetch my sunglasses...won't be a minute... ...looking good (but the lime green is a bit too much? - Don't mind me! Thanks for this massive effort! )
  17. @Bernard, Currently there is no way to do that via the Blog API. Simply use CSS to hide them. E.g. to hide the 'Posted by Bernard, 23 September 2014 3.24 PM' add this to your style sheet: .post-byline { display: none; } As for image, where is that image coming from? Is it one uploaded via the images field in a blog post or it is embedded in blog_body? If the former, access it normally using PW images API. If the latter, then it should be output with blog_body...
  18. ....how to manipulate WireArrays http://processwire.com/api/arrays/
  19. Interesting...I provided a similar answer to toothpaste in this other post
  20. @Christophe, edited your first post. Please use code tags to wrap code blocks...its the <> icon . Just makes it easier to read code
  21. Philipp, this is a great tool! I tried it, testing Blog version 2. Worked like a charm. I now understand why you call it lightning...the installation was fast and the servers were fast! Made it a breeze testing the different Blog version 2 styles. I missed the ability to be able to set Admin theme reno as the theme to use since that has to be done via the user screen which I found was not enabled. I was able to get around this though using /site/config/ with the new ability to set a default admin theme via config.php. With Blog, I would also have loved to be able to upload a user photo for the author widget but of course this too can be done via API. I will be applying for a module developer's hosting to demo Blog, thanks!
  22. Welcome to PW and the forum toothpaste... We have a similar ongoing discussion and a great reply from Ryan...PW already has all the functionality you need to get you going...you just need to know how to use the tools it offers...that does require some reading and some work on your part . We have been trying to add more tutorials such as these to get new users started....
  23. This has got me curious and I liked what I saw....If I have time, I might have a go but I haven't considered this thoughtfully from a technical point of view...just on a whim atm. What's the link to the thread where you previously suggested this?
  24. @Beluga, thanks for those links. I am not sure about your description 'non-commercial use'? I have to admit I get confused by this as well but for the Standard Edition (GNU GPL) it says: Use the components in GPL-licensed projects only I am assuming that PW being of a similar license...this can be converted into a module ....I am not a lawyer though
  25. Did you know we now have a WP migrator? Adrian tested it with Blog version 1 and it worked just fine https://processwire.com/talk/topic/4420-page-list-migrator/?p=62349 https://github.com/NicoKnoll/MigratorWordpress
×
×
  • Create New...