Project

General

Profile

Redmine Blog Plugin

Added by Andrew Chaika over 15 years ago

I wish to introduce Redmine Blogs Plugin 0.0.3 version:
Features:
  • Blog for users, not related to project
  • Posts commenting
  • Permissions: view, create, comment
  • Post tagging
  • Attach files/images to posts
  • Tag cloud
  • Filter posts by user, tag
TODO:
  • RSS
  • Activity/event


Replies (89)

RE: Redmine Blog Plugin - Added by Vito Botta almost 15 years ago

This is cool stuff :)

Any plans to add email notifications as well?

RE: Redmine Blog Plugin - Added by Mika Laitio almost 15 years ago

I installed 0_0_6 version to redmine 0.8.7, fixed problem in redmine_blogs/app/views/blogs/index.rhml in a way mentioned above and gave view and commenting permissions for everybody by using "Administration/Roles and Permissions".

I (as in administrator role) can now create new posts but for some reason I or other users can not post comments for the messages.
I can not see the reply button in the end of the blog messages at least when logged in from my administrator role or when being unlogged (anonymous).

RE: Redmine Blog Plugin - Added by Ez Dakit almost 15 years ago

Great plugin!!

... but as previously commented it needs to be included in redmine search engine, or searchable in someway.

Any plans to add this feature to the plugin? is in the roadmap?

thx

RE: Redmine Blog Plugin - Added by Marcel Castilho almost 15 years ago

Hi,

I've installed the last version of the plugin (0.0.6) to Redmine (0.8.0), set the permissions for all roles... But I get this error: "Internal error. An error occurred on the page you were trying to access. If you continue to experience problems please contact your redMine administrator for assistance."

The log shows this:

Processing BlogsController#index (for 192.168.0.96 at 2010-01-18 11:17:43) [GET]
  Session ID: 46fecd1702650a6f4a0f389e91fd3793
  Parameters: {"action"=>"index", "controller"=>"blogs"}

NameError (undefined local variable or method `acts_as_attachable' for #<Class:0x4116814>):
    /vendor/rails/activerecord/lib/active_record/base.rb:1672:in `method_missing'
    /vendor/plugins/redmine_blogs/app/models/blog.rb:28
    C:/Arquivos de programas/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
    C:/Arquivos de programas/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:102:in `require_or_load_without_engine_additions'
    /vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:139:in `require_or_load'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:261:in `load_missing_constant'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:468:in `const_missing'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:480:in `const_missing'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:486:in `send'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:486:in `const_missing'
    /vendor/plugins/redmine_blogs/app/controllers/blogs_controller.rb:20:in `index'
    /vendor/rails/actionpack/lib/action_controller/base.rb:1166:in `send'
    /vendor/rails/actionpack/lib/action_controller/base.rb:1166:in `perform_action_without_filters'
    /vendor/rails/actionpack/lib/action_controller/filters.rb:579:in `call_filters'
    /vendor/rails/actionpack/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark'
    /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    C:/Arquivos de programas/Ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'
    /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    /vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'
    /vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'
    /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
    /vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
    /vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'
    /vendor/rails/actionpack/lib/action_controller/base.rb:529:in `send'
    /vendor/rails/actionpack/lib/action_controller/base.rb:529:in `process_without_filters'
    /vendor/rails/actionpack/lib/action_controller/filters.rb:568:in `process_without_session_management_support'
    /vendor/rails/actionpack/lib/action_controller/session_management.rb:130:in `process'
    /vendor/rails/actionpack/lib/action_controller/base.rb:389:in `process'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:149:in `handle_request'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in `dispatch'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `synchronize'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `dispatch'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in `dispatch'
    C:/Arquivos de programas/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel/rails.rb:76:in `process'
    C:/Arquivos de programas/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel/rails.rb:74:in `synchronize'
    C:/Arquivos de programas/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel/rails.rb:74:in `process'
    C:/Arquivos de programas/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel.rb:159:in `process_client'
    C:/Arquivos de programas/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel.rb:158:in `each'
    C:/Arquivos de programas/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel.rb:158:in `process_client'
    C:/Arquivos de programas/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel.rb:285:in `run'
    C:/Arquivos de programas/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel.rb:285:in `initialize'
    C:/Arquivos de programas/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel.rb:285:in `new'
    C:/Arquivos de programas/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel.rb:285:in `run'
    C:/Arquivos de programas/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel.rb:268:in `initialize'
    C:/Arquivos de programas/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel.rb:268:in `new'
    C:/Arquivos de programas/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel.rb:268:in `run'
    C:/Arquivos de programas/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel/configurator.rb:282:in `run'
    C:/Arquivos de programas/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel/configurator.rb:281:in `each'
    C:/Arquivos de programas/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel/configurator.rb:281:in `run'
    C:/Arquivos de programas/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/mongrel_rails:128:in `run'
    C:/Arquivos de programas/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel/command.rb:212:in `run'
    C:/Arquivos de programas/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/mongrel_rails:281
    C:/Arquivos de programas/Ruby/bin/mongrel_rails:19:in `load'
    C:/Arquivos de programas/Ruby/bin/mongrel_rails:19

Rendering c:/webapps/redmine-0.8.0/public/500.html (500 Internal Server Error)

I would appreciate some help. Thank you.

Marcel

RE: Redmine Blog Plugin - Added by Marcel Castilho almost 15 years ago

Marcel Castilho wrote:

Hi,

I've installed the last version of the plugin (0.0.6) to Redmine (0.8.0), set the permissions for all roles... But I get this error: "Internal error. An error occurred on the page you were trying to access. If you continue to experience problems please contact your redMine administrator for assistance."

The log shows this:

[...]

I would appreciate some help. Thank you.

Marcel

OK, I've updated my Redmine version to 0.8.7, and applied Luca Pireddu's change on "redmine_blogs/app/views/blogs/index.rhml". Now it works!

RE: Redmine Blog Plugin - Added by Andrew Chaika almost 15 years ago

New version 0.1.0:
- added an activity/event provider
- added a search provider (won't work without #4800 patch)

Tested on the Redmine trunk (r3409).

installation problem with version 0.1.0 - Added by mirek bin over 14 years ago

hello

i just installed the version 0.1.0, but i can't make it work - the following message always raised up:

Internal error

An error occurred on the page you were trying to access.
If you continue to experience problems please contact your redMine administrator for assistance.

i read the discussion around, so i just moved the blogs inside of the project and sets the permissions. i see the link to the blog, but when i click it now, the message is bit different:

The page you were trying to access doesn't exist or has been removed.

what is pity, there are no installation instructions in the readme file. so i checked the log and the issue is probably clean:Mysql::Error: Table 'redmine.blogs' doesn't exist

Processing ProjectsController#activity (for 147.232.48.46 at 2010-04-21 13:15:05) [GET]
  Parameters: {"action"=>"activity", "id"=>"monami", "controller"=>"projects"}

ActiveRecord::StatementInvalid (Mysql::Error: Table 'redmine.blogs' doesn't exist: SELECT * FROM `blogs` WHERE (1=1 AND (blogs.created_on BETWEEN '2010-03-23' AND '2010-04-22')) ):
  lib/redmine/activity/fetcher.rb:76:in `events'
  lib/redmine/activity/fetcher.rb:75:in `each'
  lib/redmine/activity/fetcher.rb:75:in `events'
  lib/redmine/activity/fetcher.rb:74:in `each'
  lib/redmine/activity/fetcher.rb:74:in `events'
  app/controllers/projects_controller.rb:355:in `activity'
  passenger (2.2.9) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
  passenger (2.2.9) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
  passenger (2.2.9) lib/phusion_passenger/railz/application_spawner.rb:400:in `start_request_handler'
  passenger (2.2.9) lib/phusion_passenger/railz/application_spawner.rb:351:in `handle_spawn_application'
  passenger (2.2.9) lib/phusion_passenger/utils.rb:184:in `safe_fork'
  passenger (2.2.9) lib/phusion_passenger/railz/application_spawner.rb:349:in `handle_spawn_application'
  passenger (2.2.9) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
  passenger (2.2.9) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
  passenger (2.2.9) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
  passenger (2.2.9) lib/phusion_passenger/abstract_server.rb:163:in `start'
  passenger (2.2.9) lib/phusion_passenger/railz/application_spawner.rb:209:in `start'
  passenger (2.2.9) lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
  passenger (2.2.9) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
  passenger (2.2.9) lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
  passenger (2.2.9) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
  passenger (2.2.9) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
  passenger (2.2.9) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
  passenger (2.2.9) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
  passenger (2.2.9) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
  passenger (2.2.9) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
  passenger (2.2.9) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
  passenger (2.2.9) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'

Rendering /opt/redmine/redmine-0.9.2/public/500.html (500 Internal Server Error)

whats also problem - the project activity stops working also, when the blog module is installed.

any help?

RE: Redmine Blog Plugin - Added by Stanislav German-Evtushenko over 14 years ago

Is it possible to remove tag?

RE: Redmine Blog Plugin - Added by Stanislav German-Evtushenko over 14 years ago

I found other problem. Even administrator can't remove not owned blog record.

RE: installation problem with version 0.1.0 - Added by Stanislav German-Evtushenko over 14 years ago

Looks like you havn't done this:

rake db:migrate_plugins

mirek bin wrote:

hello

i just installed the version 0.1.0, but i can't make it work - the following message always raised up:
[...]

i read the discussion around, so i just moved the blogs inside of the project and sets the permissions. i see the link to the blog, but when i click it now, the message is bit different:
[...]

what is pity, there are no installation instructions in the readme file. so i checked the log and the issue is probably clean:Mysql::Error: Table 'redmine.blogs' doesn't exist

[...]

whats also problem - the project activity stops working also, when the blog module is installed.

any help?

RE: Redmine Blog Plugin - Added by Billy T over 14 years ago

Problem: "undefined method `attach_files'"
Version: 0.1.0
Solution:
in file: redmine_blogs/app/controllers/blogs_controller.rb
find out:

attach_files(@blog, params[:attachments])

comment out that line, and add this line at the same place:
defined?(attach_files) ? attach_files(@blog, params[:attachments]) : Attachment.attach_files(@blog, params[:attachments])

Inspired by http://opensource.integritas.com.br/issues/show/616

RE: Redmine Blog Plugin - Added by Billy T over 14 years ago

Could anyone give me a hint of why this happens?

Thanks

1.jpg (6.55 KB) 1.jpg

RE: Redmine Blog Plugin - Added by Billy T over 14 years ago

I met an interesting problem.
If I put "Blogs" tag on top menu, it will be opened to anyone.
How can I fix it? any hint?

RE: Redmine Blog Plugin - Added by Alex Bevilacqua over 14 years ago

Billy T wrote:

Could anyone give me a hint of why this happens?

Thanks

You could try something like this:


--- a/app/views/blogs/index.rhtml
+++ b/app/views/blogs/index.rhtml
@@ -40,7 +40,7 @@
        </div>
        <% end %>
        <div class="box">
-               <h3 class="icon22 icon22-tags"><%=l(:label_tag_cloud)%></h3>    
+               <h3 class="icon22-tags"><%=l(:label_tag_cloud)%></h3>   
                <div class="tags">
                <% tag_cloud Blog.tag_counts, %w(css1 css2 css3 css4) do |tag, css_class| %>
                                <%= link_to tag.name, { :action => :show_by_tag, :id => tag.name }, :class => css_class %>
diff --git a/assets/stylesheets/stylesheet.css b/assets/stylesheets/stylesheet.css
index dfce5a0..5ce31f4 100644
--- a/assets/stylesheets/stylesheet.css
+++ b/assets/stylesheets/stylesheet.css
@@ -10,6 +10,9 @@ div.tags a {
 .icon22-tags
 {
        background-image: url(../images/tags_label.png);
+       background-repeat: no-repeat;
+       background-position: left center;
+       text-indent: 20px;
 }
 .css1 { font-size: 1.0em; }
 .css2 { font-size: 1.2em; }

RE: Redmine Blog Plugin - Added by 黄 远牧 over 14 years ago

Anybody can help me? Thanks.

Problem: When I wrote blog with Chinese,it shows ??? in the page,why?
Version: 0.1.0

RE: Redmine Blog Plugin - Added by Snaky Love about 14 years ago

HI,

- could you please change the text on top to tell people that there are updated versions here? THANKS!
- could you please add this blog plugin to a gut or bitbucket repo?
- what about a bugtracker?

THANK YOU!

RE: Redmine Blog Plugin - Added by Eric Lin almost 14 years ago

Hi,

I installed the version 0.1.0 and it only showed correct string for users who use English browser.
I ever tried to add .yml file into 'lang' or 'local' folders but still can't solve the problem.
Can somebody tell me how to do for this issue?

Eric

RE: Redmine Blog Plugin - Added by Akiko Takano almost 14 years ago

Hello.
I've just add customized one, which based on redmine_blogs 0.1.0, into my git repository. (I modified we can have blog per each project.)

Since mine is personal repos and not hosted Andrew-San's original one, but I can add original one on my repository if you don't mind.

Snaky Love wrote:

HI,

- could you please change the text on top to tell people that there are updated versions here? THANKS!
- could you please add this blog plugin to a gut or bitbucket repo?
- what about a bugtracker?

THANK YOU!

RE: Redmine Blog Plugin - Added by David M almost 14 years ago

Hi,

Is it somehow possible that the blog entries also automatically display the date in the title:

"Some Title - 08.12.2010"

Or just extent the normat timestamping that it says 1 minute ago - 08.12.2010

Thanks,
Esobeso

RE: Redmine Blog Plugin - Added by Akiko Takano almost 14 years ago

Please add

<%= format_date(@blog.created_on) %>
just after title or timestamp.
I think this will meet your request.

e.g.

app/view/blogs/show.rhtml
--------------------------------

From:
<span class="author"><%= authoring @blog.created_on, @blog.author %></span></em></p>

To:
<span class="author"><%= authoring @blog.created_on, @blog.author %> (<%= format_date(@blog.created_on) %>)</span></em></p>

--------------------------------

app/view/blogs/index.rhtml
--------------------------------

From:
<p class="author"><%= authoring blog.created_on, blog.author %></p>

To:
<p class="author"><%= authoring blog.created_on, blog.author %> (<%= format_date(blog.created_on) %>)</p>

--------------------------------

David M wrote:

Hi,

Is it somehow possible that the blog entries also automatically display the date in the title:

"Some Title - 08.12.2010"

Or just extent the normat timestamping that it says 1 minute ago - 08.12.2010

Thanks,
Esobeso

RE: Redmine Blog Plugin - Added by Luis Custodio almost 14 years ago

Well done Alex Bevilacqua!
The changes in css works fine.

RE: Redmine Blog Plugin - Added by Thorsten S. over 13 years ago

I've tried this plugin (0_1_0) bis redmine 1.2.0 but as soon as i go into the plugin and move to another link in redmine (doesn't matter which link) i will be locked out. The same problem occurs when i want to post an entry i will be loecked out too. Does anybody know how to fix this porblem?

RE: Redmine Blog Plugin - Added by Pavel Pivovarov over 13 years ago

After update redmine from 1.1.1 to 1.2.1, I have error when loading activity page. Logfile consist this:

ActiveRecord::StatementInvalid (RuntimeError: ERROR C42P01 Mmissing FROM-clause entry for table "projects" P101 Fparse_relation.c L2478 RwarnAutoRange: SELECT * FROM "blogs" WHERE (1=1 AND (blogs.created_on BETWEEN '2011-0
7-15' AND '2011-07-22') AND ((projects.id = 184 OR (projects.lft > 3 AND projects.rgt < 8)) AND (projects.status=1))) ):

In redmine 1.1.1 everything worked fine. Or tell me how can I remove blogs from activity page?

RE: Redmine Blog Plugin - Added by Pavel Pivovarov over 13 years ago

Fixed by commenting following lines in init.rb


#Redmine::Activity.map do |activity|
#  activity.register :blogs
#end

but it's not real problem solving. Unfortunately I have never programming ruby, and have very poor skill in programming. This solution is only what I able to do with my skill to fix this bug. If someone suggest better solution I will be glad.

RE: Redmine Blog Plugin - Added by jeff j almost 13 years ago

I have Redmine 1.3.0 and whenever I try to create a post, even if I'm logged in as Admin it kicks me back out to the main login screen. I type in my credentials and it takes me back to the create post window (with all the text fields empty again). I enter text again, hit "Create" and takes me back to the login screen.

If I then try to go to another tab, I have to log back in again. It's as if I get logged out whenever I visit the blog.

Is this because of my https redirect? The log is showing the following (authenticity token blocked out intentionally):


Processing BlogsController#new (for 192.168.1.6 at 2012-01-03 01:04:56) [POST]
  Parameters: {"commit"=>"Create", "blog"=>{"title"=>"test", "tag_list"=>"test", "description"=>"test",
"summary"=>"test"}, "action"=>"new", "authenticity_token"=>"xxxxxxxxxxxxxxxxxx", "controller"=>"blogs", "attachments"=>{"1"=>{"description"=>"test"}}}
Redirected to https://192.168.1.5/redmine/login?back_url=https%3A%2F%2F192.168.1.5%2Fredmine%2Fblogs%2Fnew
Filter chain halted as [:check_if_login_required] rendered_or_redirected.
Completed in 6ms (DB: 1) | 302 Found [https://192.168.1.5/redmine/blogs/new]

Processing AccountController#login (for 192.168.1.6 at 2012-01-03 01:04:56) [GET]
  Parameters: {"back_url"=>"https://192.168.1.5/redmine/blogs/new", "action"=>"login", "controller"=>"account"}
Rendering template within layouts/base
Rendering account/login
Completed in 28ms (View: 23, DB: 0) | 200 OK [https://192.168.1.5/redmine/login?back_url=https%3A%2F%2F192.168.1.5%2Fredmine%2Fblogs%2Fnew]

(51-75/89)