1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Journal 0.6

Discussion in 'Plugins' started by Nick, May 6, 2010.

  1. Nick

    Nick Well-Known Member

    Journal
    Version: 0.6
    Author: Nick Ramsay
    Created on: 2010/03/17
    Last Updated:
    2010/08/03
    Tested on: Hotaru 1.3.0 ~ 1.4.0
    Plugins Required: Comments, Users
    Plug & Play: Yes
    Supported: Yes

    Description
    User journals are mini-blogs for your users. They don't need to provide a link, category or tags. They just post, Twitter style without the length restriction. Journal entries are separate from social bookmarking posts and can't be voted for. Users can leave comments, though.

    As of version 0.3, the Journal plugin can be either with or without the Bookmarking plugin. :cool:

    Instructions
    1. Upload the "journal" folder to your plugins folder.
    2. Install it from Plugin Management in Admin.
    3. Ensure that Journal comes *after* Bookmarking (if used), Users and Comments in the plugin order.
    Note: Using Journal 0.6 on Hotaru 1.4beta, Journal must come *before* Comments for the open/close comment form link to work.
    4. Edit settings in Admin -> Plugin Settings ->Journal

    Access a page of all journal entries with
    example.com/journals (friendly urls), or
    example.com/index.php?page=journals (unfriendly urls)

    To link to that page from within a template, use this:

    PHP:
    <a href="<?php echo $h->url(array('page'=>'journals')); ?>">Journals</a>
    3. Access individual journals from the menu in a user's profile.
    4. Add a new journal entry using the form at the top of your own journal.

    Anti-spam
    If used in conjunction with the Bookmarking plugin, you can require a user to have one approved bookmarking post. Simply check that option in Admin -> Journal -> Settings. If using the Journal plugin as a standalone site, the best thing to do is set the default "Can Journal" permission to "mod" for all new users. You can do that in Admin -> User Manager -> Edit Default Permissions. Once you've approved a user's post, don't forget to set their individual "Can Journal" permission to "yes" from their Profile -> Permissions page.

    Future plans
    Email notification of new Journal entries

    Revision History
    v.0.6 2010/07/29 - Nick - Fixed broken plugin hooks
    v.0.5 2010/07/24 - Nick - Added link to close/open the comment form. Requires Comments 2.5.
    v.0.4 2010/07/20 - Nick - Added "can_edit_journals" permission and fixed drop-down edit form
    v.0.3 2010/06/23 - Nick - Made CSS independent of Bookmarking plugin
    v.0.2 2010/05/23 - Nick - Removed dependency on SB Base
    v.0.1 2010/05/07 - Nick - Released first version

    Please click "Rate Thread" and give this plugin a rating. Thank you.


     

    Attached Files:

    Eric, thatgirlisfunny, narc and 3 others like this.
  2. louis

    louis New Member

    I like the idea of this (mini-blogs) plugin. "Micro-blogging" with Hotaru.
     
  3. baadier

    baadier Well-Known Member

    My mouth is waterting at the possibilities of this plugin!
     
    shibuya246 likes this.
  4. JonH

    JonH Admin & Design

    Cool. I bet it wouldn't be hard to integrate a WYSIWYG editor into this and maybe even the EVB button or similar.
     
  5. louis

    louis New Member

    Inserting images into journal post, possible?
     
  6. Nick

    Nick Well-Known Member

    You should just be able to add the <img> tag to "Allowed HTML tags" on the settings page and use that.
     
    louis likes this.
  7. mabujo

    mabujo Designer

    Is it possible to have the Journal entries show up in the main/'Top' list?
     
  8. Nick

    Nick Well-Known Member

    I'm afraid not. Journal entries are given a post_status of "new" and a post_type of "blog". Social bookmarking posts have a post_type of "news". I suppose you could submit journal entries manually as bookmarked links, or use Autoreader to run journal feeds straight in as "news".

    Alternatively, if you want link-less posts showing on the Popular and Latest pages, you could either assign "post_without_link" permissions to users, or remove link submission altogether with the Submit No Links plugin.
     
    mabujo likes this.
  9. twine

    twine New Member

    is there a way to make a single journal that multiple users can contribute to as opposed to a single journal per user?
     
  10. Nick

    Nick Well-Known Member

    The Journals page itself combines all the user journals into one and has its own RSS feed. Other than that, no, there's no option in this plugin for what you're asking.
     
  11. nothingman

    nothingman Active Member

    The comments made on a journal always show up on the comments widget, is there a way to disable this? :confused:
     
    Last edited: Jul 10, 2010
  12. Nick

    Nick Well-Known Member

    Not easily. Comments are comments regardless of where they are posted. It's the posts that are different, not the comments. So to do this, you'd need to get information about the post each comment is made on.

    Ideally, you'd extend the plugin, overriding the getCommentsWidget function with an SQL query that joins the comments and posts tables together where post_id matches comment_post_ id and the post_type is "blog".
     
  13. baadier

    baadier Well-Known Member

    Ive posted a Journal entry with embedded flash video and and the flash gets stripped out of the post. Ive included <embed><object><param> as allowable tags so im not sure whats happening
     
  14. mabujo

    mabujo Designer

    Which reminds me, I've encountered something similar to the above, having for example link tags enabled but being stripped out of Journal. (oddly I think it only got removed when editing posts)
     
  15. baadier

    baadier Well-Known Member

    Mine happened as soon as i posted it, i havent had problems with link tags on a previous journal post that i did
     
  16. Nick

    Nick Well-Known Member

    Not sure about the links. This is still a young plugin and doesn't get enough usage to uncover all the bugs, so thanks for the feedback.

    I suspect some tags are getting stripped out by htmLawed. Technically, when you set allowed tags in Admin, you're adding them to the exclude list in PHP's strip_tags function. However, before that function is run, htmLawed runs its own filter.

    So what to do? At the moment, it's most likely a core hack. Read through the whole of this thread for clues.

    There is another problem I know of. When a post is too long it becomes impossible to editable, i.e. the Edit link doesn't respond.
     
  17. baadier

    baadier Well-Known Member

    I had that problem with the edit link not appearing but after updating to 0/6 it started working again,il have a look at that thread to see what i can do.
     
  18. richrf

    richrf New Member

    It is a very nice idea but I would not want to open up journaling to all users. It would be nice to be able to limit journaling to a specific class of users. Thanks.

    Rich
     
  19. Nick

    Nick Well-Known Member

    You can do that. Each user has a "Can Journal" permission. You can disable that for "member" users from Admin -> User Manager-> Edit Default Permissions. You could allow moderators only to have that permission, or create a custom user group for "journal"ists (haha), or just enable it for selected, individual users from their Profile -> Permissions page.
     
    richrf likes this.
  20. richrf

    richrf New Member

    Thanks again for your help Nick. I missed these permissions altogether. I will study them and understand them better. Thanks again.

    Rich
     

Share This Page