Custom logo in 3.8

I’m trying to change the logo in 3.8.6, but
ChangeLogo - Request Tracker Wiki doesn’t work. Googling
around for the answer gives me multiple references to the instructions on
that page not working. Would someone please point out a guide for adding
a custom logo to 3.8.6 that actually works?

David Griffith
dgriffi@cs.csubak.edu

A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

Hi David,

It works for us in 3.8.6/7. We are currently using a slightly modified
version of the patch mentioned in the Wiki, which we also tried to
report to the developers:

http://rt3.fsck.com/Ticket/Display.html?id=13964&user=guest&pass=guest

but I guess they had trouble getting the web2 style sheet to display
things correctly. The logo we are using is very close to the size of
the original Best Practical logo, at 177x30 pixels.

~JasonOn Mon, 2009-12-14 at 11:21 -0800, David Griffith wrote:

I’m trying to change the logo in 3.8.6, but
ChangeLogo - Request Tracker Wiki doesn’t work. Googling
around for the answer gives me multiple references to the instructions on
that page not working. Would someone please point out a guide for adding
a custom logo to 3.8.6 that actually works?

/------------------------------------------------------------------
| Jason A. Smith Email: smithj4@bnl.gov |
| Atlas Computing Facility, Bldg. 510M Phone: +1-631-344-4226 |
| Brookhaven National Lab, P.O. Box 5000 Fax: +1-631-344-7616 |
| Upton, NY 11973-5000, U.S.A. |
------------------------------------------------------------------/

smime.p7s (3.81 KB)

I’m trying to change the logo in 3.8.6, but
ChangeLogo - Request Tracker Wiki doesn’t work. Googling
around for the answer gives me multiple references to the instructions on
that page not working. Would someone please point out a guide for adding
a custom logo to 3.8.6 that actually works?

I know this is documented somewhere… Without looking at the wiki or
official docs, here’s what works:

Create directory called ‘Elements’ in /local/html

Create file called ‘Logo’ in above directory with contents similar to:

<%loc("> % if ($show_name) {
<% loc("RT for [_1]", $RT::rtname) %>
% }
<%args> $show_name => 1

Lastly, place logo jpeg (or whatever format it’s in) in:

/share/html/NoAuth/images

James

I’m trying to change the logo in 3.8.6, but
ChangeLogo - Request Tracker Wiki doesn’t work. Googling
around for the answer gives me multiple references to the instructions on
that page not working. Would someone please point out a guide for adding
a custom logo to 3.8.6 that actually works?

I know this is documented somewhere… Without looking at the wiki or
official docs, here’s what works:

Create directory called ‘Elements’ in /local/html

Create file called ‘Logo’ in above directory with contents similar to:

<%loc("> % if ($show_name) {
<% loc("RT for [_1]", $RT::rtname) %>
% }
<%args> $show_name => 1

Lastly, place logo jpeg (or whatever format it’s in) in:

/share/html/NoAuth/images

Okay, I have a logo displaying, but it’s at the bottom. I can’t seem to
get it to go along the top like it did in 3.6 without stomping on other
parts of the page. Do I need to monkey around with
NoAuth/css/web2/layout.css some more?

More questions:

Shouldn’t share/html/Elements/Logo contain more generic stuff like
$LogoURL and such as is described for 3.6?

Is it safe to comment out the invocation of /Elements/Footer from
share/html/autohandler?

David Griffith
dgriffi@cs.csubak.edu

A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

I’m trying to change the logo in 3.8.6, but
ChangeLogo - Request Tracker Wiki doesn’t work. Googling
around for the answer gives me multiple references to the instructions on
that page not working. Would someone please point out a guide for adding
a custom logo to 3.8.6 that actually works?

I know this is documented somewhere… Without looking at the wiki or
official docs, here’s what works:

Create directory called ‘Elements’ in /local/html

Create file called ‘Logo’ in above directory with contents similar to:

<%loc("> % if ($show_name) {
<% loc("RT for [_1]", $RT::rtname) %>
% }
<%args> $show_name => 1

Lastly, place logo jpeg (or whatever format it’s in) in:

/share/html/NoAuth/images

Okay, I have a logo displaying, but it’s at the bottom. I can’t seem to get
it to go along the top like it did in 3.6 without stomping on other parts of
the page. Do I need to monkey around with NoAuth/css/web2/layout.css some
more?

More questions:

Shouldn’t share/html/Elements/Logo contain more generic stuff like $LogoURL
and such as is described for 3.6?

Is it safe to comment out the invocation of /Elements/Footer from
share/html/autohandler?

Using my method above, you shouldn’t have to make any other changes.
Essentially, back out of what you did according to the Wiki
instructions, ie, don’t make any custom edits to the css files and
return the autohandler file to default.

As far as RT_SiteConfig, get rid of any $Logo references you may have
in that config. Also, make sure you have the following in
RT_SiteConfig:

Set($WebImagesURL , $WebPath . “/NoAuth/images/”);

James

David Griffith wrote:

I’m trying to change the logo in 3.8.6, but
ChangeLogo - Request Tracker Wiki doesn’t work. Googling
around for the answer gives me multiple references to the instructions on
that page not working. Would someone please point out a guide for adding
a custom logo to 3.8.6 that actually works?

As I recall, the bit of HTML that would cause the logo to be displayed is
hidden using css settings under 3.8.x. If you switch to one of the older
display styles it will appear.

Hmmm… It’s this chunk from …/html/NoAuth/css/web2/layout.css:

/* logo stuff */

div#logo {
}

div#logo a {
display: none; <<<<---------------****
position: absolute;
left: 0;
bottom: 0;
}
div#logo a img {
border: 0;
}
div#logo .rtname {
position: absolute;
font-weight: bold;
top: 1em;
left: 1em;
}

Take away the “display: none” and you should have a logo appear. You should
do this using the ‘Cleanly Customise’ instructions from the wiki, plus see a
post I made to this list a few weeks ago about what you need to copy into your
local tree to make customised css work.

However, a logo doesn’t really have a good place to go in the 3.8.x screen
layout, which is probably why it was disabled in the first place.

Cheers,

Matthew

Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW

signature.asc (259 Bytes)