Board problems
when I attach inside a forum the thumbnail work but not the viewer
I have added your plugin to files and documents and only works in document, in the case of files occurs the same as the case of forums
Closed :(
Hello. So Is it possible to make it work at the forums?
I Uploaded the latest version but it still woks only in issues.
Yes add inside the file /lib/hooks/view_layouts.... Change the lines 5-7 from:
if context[:controller] && ( context[:controller].is_a?(IssuesController) ||
context[:controller].is_a?(WikiController) ||
context[:controller].is_a?(BoardsController))
to:
if context[:controller] && ( context[:controller].is_a?(IssuesController) ||
context[:controller].is_a?(WikiController) ||
context[:controller].is_a?(DocumentsController) ||
context[:controller].is_a?(FilesController) ||
context[:controller].is_a?(MessageController) ||
context[:controller].is_a?(BoardsController))
LuisSerrano, Thanks, but it didn't work to me. When I changed this lines i get the error: ActionView::TemplateError (uninitialized constant RedmineLightBox::Hooks::ViewLayoutsBaseHtmlHeadHook::MessageController) on line #19 of app/views/layouts/base.rhtml: 16: body {behavior: url(<%= stylesheet_path "csshover.htc" %>);} 17: 18: <![endif]--> 19: <%= call_hook :view_layouts_base_html_head %> 20: 21: <%= yield :header_tags -%> 22:
/usr/lib/ruby/1.8/active_support/dependencies.rb:105:in `const_missing'
...
The same error on FilesController
ActionView::TemplateError (uninitialized constant RedmineLightBox::Hooks::ViewLayoutsBaseHtmlHeadHook::FilesController) on line #19 of app/views/layouts/base.rhtml: 16: body {behavior: url(<%= stylesheet_path "csshover.htc" %>);} 17: 18: <![endif]--> 19: <%= call_hook :view_layouts_base_html_head %> 20: 21: <%= yield :header_tags -%> 22:
and then I left file like this if context[:controller] && ( context[:controller].is_a?(IssuesController) || context[:controller].is_a?(WikiController) || context[:controller].is_a?(DocumentsController) || context[:controller].is_a?(BoardsController))
But it still don't work on Forums (( I miss something?
What is your redmine version?
shame to me, but how should I get it? I was looking for CHANGELOG of Redmine but i have CHANGELOG s only for some plugins and ruby. I have Redmine installed on Debian 6 from repositories.
Go to Administration menu in Redmine and to the information menu -< What is your Redmine version?
Thanks! All is easier as it seems ) Redmine 1.0.1.stable
same problem here... ActionView::TemplateError (uninitialized constant RedmineLightBox::Hooks::ViewLayoutsBaseHtmlHeadHook::MessageController) on line #20 of app/views/layouts/base.rhtml:
Same here (redmine 1.1.3).
Processing WelcomeController#index (at 2011-05-03 02:13:59) [GET]
Parameters: {"action"=>"index", "controller"=>"welcome"}
Rendering template within layouts/base
Rendering welcome/index
ActionView::TemplateError (uninitialized constant RedmineLightBox::Hooks::ViewLayoutsBaseHtmlHeadHook::MessageController) on line #20 of app/views/layouts/base.rhtml:
17: body {behavior: url(<%= stylesheet_path "csshover.htc" %>);}
18: </style>
19: <![endif]-->
20: <%= call_hook :view_layouts_base_html_head %>
21: <!-- page specific tags -->
22: <%= yield :header_tags -%>
23: </head>
lib/redmine/hook.rb:63:in `send'
lib/redmine/hook.rb:63:in `call_hook'
lib/redmine/hook.rb:63:in `each'
lib/redmine/hook.rb:63:in `call_hook'
lib/redmine/hook.rb:60:in `tap'
lib/redmine/hook.rb:60:in `call_hook'
lib/redmine/hook.rb:144:in `call_hook'
app/views/layouts/base.rhtml:20:in `_run_rhtml_app47views47layouts47base46rhtml'
/usr/lib64/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/lib64/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/lib64/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/lib64/ruby/1.8/webrick/server.rb:162:in `start'
/usr/lib64/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/lib64/ruby/1.8/webrick/server.rb:95:in `start'
/usr/lib64/ruby/1.8/webrick/server.rb:92:in `each'
/usr/lib64/ruby/1.8/webrick/server.rb:92:in `start'
/usr/lib64/ruby/1.8/webrick/server.rb:23:in `start'
/usr/lib64/ruby/1.8/webrick/server.rb:82:in `start'
The plugin can be made to work while this is worked out if you comment out line 9 of /redmine_lightbox/lib/hooks/view_layouts_base_html_head_hook.rb thusly:
module RedmineLightBox
module Hooks
class ViewLayoutsBaseHtmlHeadHook < Redmine::Hook::ViewListener
def view_layouts_base_html_head(context={})
if context[:controller] && ( context[:controller].is_a?(IssuesController) ||
context[:controller].is_a?(WikiController) ||
context[:controller].is_a?(DocumentsController) ||
context[:controller].is_a?(FilesController) ||
# context[:controller].is_a?(MessageController) ||
context[:controller].is_a?(BoardsController))
I do not know what can happen, the plugin with this change works for me .... I will study
I am using Redmine 1.0.1, get the similar issue here:
A ActionView::TemplateError occurred in account#login:
uninitialized constant RedmineLightBox::Hooks::ViewLayoutsBaseHtmlHeadHook::FilesController
On line #19 of app/views/layouts/base.rhtml
16: body {behavior: url();}
17:
18: <![endif]-->
19: <%= call_hook :view_layouts_base_html_head %>
20:
21: <%= yield :header_tags -%>
22:
lib/redmine/hook.rb:63:in send' lib/redmine/hook.rb:63:in call_hook'
lib/redmine/hook.rb:63:in each' lib/redmine/hook.rb:63:in call_hook'
lib/redmine/hook.rb:60:in call_hook' lib/redmine/hook.rb:144:in call_hook'
app/views/layouts/base.rhtml:19:in _run_rhtml_app47views47layouts47base46rhtml' /usr/lib/ruby/1.8/mongrel/rails.rb:76:in process'
/usr/lib/ruby/1.8/mongrel/rails.rb:74:in synchronize' /usr/lib/ruby/1.8/mongrel/rails.rb:74:in process'
/usr/lib/ruby/1.8/mongrel.rb:159:in process_client' /usr/lib/ruby/1.8/mongrel.rb:158:in each'
/usr/lib/ruby/1.8/mongrel.rb:158:in process_client' /usr/lib/ruby/1.8/mongrel.rb:285:in run'
/usr/lib/ruby/1.8/mongrel.rb:285:in initialize' /usr/lib/ruby/1.8/mongrel.rb:285:in new'
/usr/lib/ruby/1.8/mongrel.rb:285:in run' /usr/lib/ruby/1.8/mongrel.rb:268:in initialize'
/usr/lib/ruby/1.8/mongrel.rb:268:in new' /usr/lib/ruby/1.8/mongrel.rb:268:in run'
/usr/lib/ruby/1.8/mongrel/configurator.rb:282:in run' /usr/lib/ruby/1.8/mongrel/configurator.rb:281:in each'
/usr/lib/ruby/1.8/mongrel/configurator.rb:281:in run' /usr/lib/ruby/1.8/mongrel/command.rb:212:in run'
Any headway on this issue? It would be awesome if this plugin could be made to work with forums!
Add NewsController and MessageController do work for me.