redmine_lightbox icon indicating copy to clipboard operation
redmine_lightbox copied to clipboard

Board problems

Open LuisSerrano opened this issue 15 years ago • 17 comments

when I attach inside a forum the thumbnail work but not the viewer

LuisSerrano avatar Mar 08 '11 11:03 LuisSerrano

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

LuisSerrano avatar Mar 08 '11 11:03 LuisSerrano

Closed :(

LuisSerrano avatar Mar 08 '11 12:03 LuisSerrano

Hello. So Is it possible to make it work at the forums?

mojobiri avatar Apr 28 '11 12:04 mojobiri

I Uploaded the latest version but it still woks only in issues.

mojobiri avatar Apr 29 '11 12:04 mojobiri

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 avatar Apr 29 '11 12:04 LuisSerrano

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?

mojobiri avatar Apr 29 '11 13:04 mojobiri

What is your redmine version?

LuisSerrano avatar Apr 29 '11 13:04 LuisSerrano

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.

mojobiri avatar Apr 29 '11 13:04 mojobiri

Go to Administration menu in Redmine and to the information menu -< What is your Redmine version?

LuisSerrano avatar Apr 29 '11 13:04 LuisSerrano

Thanks! All is easier as it seems ) Redmine 1.0.1.stable

mojobiri avatar Apr 29 '11 13:04 mojobiri

same problem here... ActionView::TemplateError (uninitialized constant RedmineLightBox::Hooks::ViewLayoutsBaseHtmlHeadHook::MessageController) on line #20 of app/views/layouts/base.rhtml:

x1a0 avatar Apr 30 '11 17:04 x1a0

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'

5lava avatar May 03 '11 09:05 5lava

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))

rheingolden avatar May 04 '11 16:05 rheingolden

I do not know what can happen, the plugin with this change works for me .... I will study

LuisSerrano avatar May 05 '11 06:05 LuisSerrano

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'

lintaonz avatar Jun 21 '11 00:06 lintaonz

Any headway on this issue? It would be awesome if this plugin could be made to work with forums!

adam52 avatar Jan 03 '12 20:01 adam52

Add NewsController and MessageController do work for me.

jof4002 avatar Nov 15 '13 04:11 jof4002