different images by tables

5 messages Options
Embed this post
Permalink
Koen () different images by tables
Reply Threaded More More options
Print post
Permalink
First sorry for my bad english.
I have a question, i'm interested if it is possible to make a table with a different image before the text. I need this because i want to make my own ErrorException handler, but for so far i can see you cannot set the image.

Can you set it or is it not possible. If it cannot be done can you tell me then how I can do that. If have already experimented with setProcessorURL(), but this must be set in the css I think.

Can you help me, thanks.
Christoph Dorn () Re: different images by tables
Reply Threaded More More options
Print post
Permalink
I am assuming you are working off this (default) request processor:

http://code.google.com/p/firephp/source/browse/branches/FirefoxExtension-0.3/chrome/content/firephp/RequestProcessor.js

Try using:

this.RegisterConsoleStyleSheet('chrome://firephp/content/RequestProcessor.css');

as shown in the code linked above with a public URL pointing to your custom CSS file for your processor.

FYI: FirePHP 1.0 will make extending FirePHP much easier and you will be able to easily share your extensions with others. I invite you to join the firephp-dev mailing list to watch for more information regarding this:

http://groups.google.com/group/firephp-dev

I would love to know how this works out for you.
Koen () Re: different images by tables
Reply Threaded More More options
Print post
Permalink
Thank you for you answer.

I tried that but i run into a problem. I set this.RegisterConsoleStyleSheet(''http://localhost/path/to/RequestProcessor.css"); And set in my php $firephp->setProcessorUrl("http://localhost/path/to/RequestProcessor.js").
But if i change the line background-image: url(chrome://firephp/skin/tableIcon.png) to background-image: url(chrome://firebug/skin/errorIcon.png) in .logRow-firephp-table > .head > .title in my css there don't happen anything. But if I restart firefox and i load firephp it loads one time correctly. But if i reload the page then, it's wrong again. Is this a bug or am i doing something wrong.

Also in this page http://www.firephp.org/Wiki/Reference/CustomizeDisplay. The link to the Default Processor is pointing to the trunk version but that version does not display tables correctly.
Christoph Dorn () Re: different images by tables
Reply Threaded More More options
Print post
Permalink
It looks like a bug. Unfortunately I am not planning on fixing it in 0.3 as that whole functionality will receive a major overhaul in FirePHP 1.0.

I have updated the links in the wiki. Thanks for pointing that out.
Koen () Re: different images by tables
Reply Threaded More More options
Print post
Permalink
Thank you for helping and I understand that it is not useful to fix this bug in version 0.3.

I wait for 1.0 to try again and I follow the development of FirePHP.