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 No Name over 12 years ago

I have the same problem as jeff.

RE: Redmine Blog Plugin - Added by Tingel Tangel about 12 years ago

Does anyone tried to get the blog plugin on redmine version 2.x running?

I'm trying, but still there is a lot work to do. F.e. the scope from activity provider changed and i'm getting an sql error

SQLite3::SQLException: no such column: projects.status: SELECT  "blogs".* FROM "blogs"  WHERE (blogs.author_id = 1) AND (projects.status=1) ORDER BY blogs.id DESC LIMIT 10

and of course using acts_as_taggable_on, because acts_as_taggable_on_steroids doesn't work well with rails 3

best regards tingel2k

RE: Redmine Blog Plugin - Added by Marcel Castilho about 12 years ago

Tingel Tangel wrote:

Does anyone tried to get the blog plugin on redmine version 2.x running?

Hi Tingel,

I've gone through this whole proccess yesterday.

After trying to fix the code (v0.1.0), I found this project: https://github.com/ichizok/redmine_blogs

Works fine on Redmine 2.0.3.stable.

Regards,

Marcel

RE: Redmine Blog Plugin - Added by Tingel Tangel about 12 years ago

thanks i'll try it tomorrow, did you fix the provider problem too? Because i got the problem with the permission flag in the options. But i changed the acts_as_activity_privider and added an :no_projekt symbol, so the permission doesn't generate the project.state = 1 sql statement.

sincerely tingel2k

RE: Redmine Blog Plugin - Added by Tingel Tangel about 12 years ago

I got a lot of strange errors if redmine_blogs is in the plugin directory in my redmine. The problem seems to be only in development mode.
My guessing that the load order of the plugin and redmine files are wrong.
As a first patch I used this:

application_controller.rb : 

if Rails.env.development?
  require_dependency "#{Rails.root}/plugins/redmine_blogs/init.rb" 
  require_dependency "#{Rails.root}/lib/redmine/hook.rb" 
  require_dependency "#{Rails.root}/lib/redmine/themes.rb" 
end

Is there something better I could do?

RE: Redmine Blog Plugin - Added by Marco Gutsche over 10 years ago

I've installed the forked plugin that Marcel Castilho has posted.

But I have only (little) problem:

redmine_blogs/app/controllers/blogs_controller.rb:21: syntax error, unexpected '\n'
redmine_blogs/app/controllers/blogs_controller.rb:22: syntax error, unexpected '\n'

I found out that commenting the :conditions parameter "fixes" the error message and the plugin can be used without any problem (but you can see every blog entry at every project ;)).

Due to my lack of ruby knowledgements I don't know why these lines produces the sign '\n' and how to fix this issue.

Hope somebody can help me.

RE: Redmine Blog Plugin - Added by Tingel Tangel over 10 years ago

please add the following line to the index method

logger.info "project: #{@project}"

and post the output from commandline. And please post the whole stacktrace.

Thanks tingle2k

RE: Redmine Blog Plugin - Added by Marco Gutsche over 10 years ago

Thanks for your help.

I don't get any message when I add your line.
I'm using webrick if this helps?

The whole stacktrace:

Started GET "/projects/androidapp/blogs" for 127.0.0.1 at Sun Jan 19 20:34:53 +0100 2014

SyntaxError (/var/www/redmine-2.2.2/plugins/redmine_blogs/app/controllers/blogs_controller.rb:22: syntax error, unexpected '\n'
/var/www/redmine-2.2.2/plugins/redmine_blogs/app/controllers/blogs_controller.rb:23: syntax error, unexpected '\n'):
  activesupport (3.2.11) lib/active_support/dependencies.rb:469:in `load'
  activesupport (3.2.11) lib/active_support/dependencies.rb:469:in `load_file'
  activesupport (3.2.11) lib/active_support/dependencies.rb:639:in `new_constants_in'
  activesupport (3.2.11) lib/active_support/dependencies.rb:468:in `load_file'
  activesupport (3.2.11) lib/active_support/dependencies.rb:353:in `require_or_load'
  activesupport (3.2.11) lib/active_support/dependencies.rb:502:in `load_missing_constant'
  activesupport (3.2.11) lib/active_support/dependencies.rb:192:in `const_missing'
  activesupport (3.2.11) lib/active_support/dependencies.rb:190:in `each'
  activesupport (3.2.11) lib/active_support/dependencies.rb:190:in `const_missing'
  activesupport (3.2.11) lib/active_support/inflector/methods.rb:219:in `constantize'
  activesupport (3.2.11) lib/active_support/inflector/methods.rb:218:in `each'
  activesupport (3.2.11) lib/active_support/inflector/methods.rb:218:in `constantize'
  activesupport (3.2.11) lib/active_support/dependencies.rb:554:in `get'
  actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:69:in `controller_reference'
  actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:54:in `controller'
  actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:32:in `call'
  journey (1.0.4) lib/journey/router.rb:68:in `call'
  journey (1.0.4) lib/journey/router.rb:56:in `each'
  journey (1.0.4) lib/journey/router.rb:56:in `call'
  actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:601:in `call'
  rack-openid (1.3.1) lib/rack/openid.rb:98:in `call'
  actionpack (3.2.11) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
  rack (1.4.4) lib/rack/etag.rb:23:in `call'
  rack (1.4.4) lib/rack/conditionalget.rb:25:in `call'
  actionpack (3.2.11) lib/action_dispatch/middleware/head.rb:14:in `call'
  actionpack (3.2.11) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
  actionpack (3.2.11) lib/action_dispatch/middleware/flash.rb:242:in `call'
  rack (1.4.4) lib/rack/session/abstract/id.rb:210:in `context'
  rack (1.4.4) lib/rack/session/abstract/id.rb:205:in `call'
  actionpack (3.2.11) lib/action_dispatch/middleware/cookies.rb:341:in `call'
  activerecord (3.2.11) lib/active_record/query_cache.rb:64:in `call'
  activerecord (3.2.11) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
  actionpack (3.2.11) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
  activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `_run__579644976__call__4__callbacks'
  activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `send'
  activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `__run_callback'
  activesupport (3.2.11) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
  activesupport (3.2.11) lib/active_support/callbacks.rb:81:in `send'
  activesupport (3.2.11) lib/active_support/callbacks.rb:81:in `run_callbacks'
  actionpack (3.2.11) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
  actionpack (3.2.11) lib/action_dispatch/middleware/reloader.rb:65:in `call'
  actionpack (3.2.11) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
  actionpack (3.2.11) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
  actionpack (3.2.11) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
  railties (3.2.11) lib/rails/rack/logger.rb:32:in `call_app'
  railties (3.2.11) lib/rails/rack/logger.rb:16:in `call'
  activesupport (3.2.11) lib/active_support/tagged_logging.rb:22:in `tagged'
  railties (3.2.11) lib/rails/rack/logger.rb:16:in `call'
  actionpack (3.2.11) lib/action_dispatch/middleware/request_id.rb:22:in `call'
  rack (1.4.4) lib/rack/methodoverride.rb:21:in `call'
  rack (1.4.4) lib/rack/runtime.rb:17:in `call'
  activesupport (3.2.11) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
  rack (1.4.4) lib/rack/lock.rb:15:in `call'
  actionpack (3.2.11) lib/action_dispatch/middleware/static.rb:62:in `call'
  railties (3.2.11) lib/rails/engine.rb:479:in `call'
  railties (3.2.11) lib/rails/application.rb:223:in `call'
  rack (1.4.4) lib/rack/content_length.rb:14:in `call'
  railties (3.2.11) lib/rails/rack/log_tailer.rb:17:in `call'
  rack (1.4.4) lib/rack/handler/webrick.rb:59:in `service'
  /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
  /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
  /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
  /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
  /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
  /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
  /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
  /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
  /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
  /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
  rack (1.4.4) lib/rack/handler/webrick.rb:13:in `run'
  rack (1.4.4) lib/rack/server.rb:268:in `start'
  railties (3.2.11) lib/rails/commands/server.rb:70:in `start'
  railties (3.2.11) lib/rails/commands.rb:55
  railties (3.2.11) lib/rails/commands.rb:50:in `tap'
  railties (3.2.11) lib/rails/commands.rb:50
  script/rails:6:in `require'
  script/rails:6

RE: Redmine Blog Plugin - Added by Tingel Tangel over 10 years ago

hmm ok so far all ok. Please give me the params you passed over.

RE: Redmine Blog Plugin - Added by Marco Gutsche over 10 years ago

Tingel Tangel wrote:

hmm ok so far all ok. Please give me the params you passed over.

when I add

logger.info "project: #{@project}" 

I don't get any logout. I've tried it with a custom logger and setting log level to debug.

Is there another possibility to debug the parameter?

RE: Redmine Blog Plugin - Added by Tingel Tangel over 10 years ago

Are you sure to start your enviroment in development mode?

Otherwise the parameter list given to your controller is printed in normal CLI-window from the browser

it should look like this:

Processing by NameController#show as HTML
  Parameters: {"id"=>"180"}

RE: Redmine Blog Plugin - Added by Bryant Eastham over 10 years ago

Regarding the '\n' syntax error, I edited the file as follows:

      :conditions => (@user ? ["author_id = ? and project_id = ?", @user, @project] : @tag ? ["tags.name = ? and project_id = ?", @tag, @project] : ["project_id = ?", @project]),

Note that the original had carriage returns in the statement. That resolved the issue for me.

Environment:
  Redmine version                2.4.0.stable
  Ruby version                   1.8.7-p374 (2013-06-27) [x86_64-linux]
  Rails version                  3.2.15
  Environment                    production
  Database adapter               Mysql2
SCM:
  Git                            1.8.3.1
  Filesystem                     
Redmine plugins:
  redmine_blogs                  0.5.0
  redmine_ldap_sync              2.0.3.devel.g7f1c325e31
  redmine_people                 0.1.6

RE: Redmine Blog Plugin - Added by Marco Gutsche over 10 years ago

This also resolves the issue for me.

Thanks a lot.

RE: Redmine Blog Plugin - Added by Gavin Lin over 8 years ago

Does anyone try this blog plugin https://github.com/ichizok/redmine_blogs on redmine version 3.2.0 running ? I'm trying and got many errors , hope someone can upgrade this blog plugin for redmine 3.x .

Thanks a lot !

(76-89/89)