Re: [rt-users] How to add Company logo
Asif, in your email today, your syntax did not contain what I wrote below yesterday. Furermore, with this syntax, as said before, you sould not have SetLogo statements in your RT_SiteConfig.pm config. This is only one way to do it - I am sure there are others. I would search the wiki and the mailing list archives - this is exactly how I arrived at my configuration below. James Moseley jmose...@corp.xanadoo.com wrote: We don't seem to have any problems using a 200x90 logo in our 3.8.2 install. We have simply done the following: Create a logo file: /local/htmlElements/Logo With: "> % if ($show_name) { <% loc("RT for [_1]", $RT::rtname) %> % } <%args> $show_name => 1 Put image in /share/html/NoAuth/images There are no SetLogo references in our RT_SiteConfig. ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] how to run new rt cli in cron
On Sat, May 2, 2009 at 5:47 PM, wrote: > What's the specific problem with putting a password in a crontab or a shell > script that cron calls? Only folks with root access could see the > password. Besides, you've got to put the RT database password in plain > text in your RT_SiteConfig file, unless you are running without a password, > which is even worse... good point. that answered my question > > > I haven't used the CLI, but if it's truly interactive, you'll need to write > an expect script. > > BTW, it appears you didn't catch my email with specific instructions for > creating a Logo file... I tried to follow. Is it possible to point to what I have done wrong based on my last repy to that email. Thanks for your help > > > > James Moseley > > > > Asif Iqbal wrote: > > The rt cli from 2001 does not require a password to get the content of a > ticket. So running it as part of a cron is not a problem > > To get the content of a ticket with rt cli from rt-3.8.2 I need to run rt > show , but it requires a password. > So I need to run it interactively. Plus I am not comfortable to feed a > password in cronjob. > > How do I by pass the password prompt? Is there another user I can use > instead where I don't have to feed a password thru cronjob? > > > -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] how to run new rt cli in cron
What's the specific problem with putting a password in a crontab or a shell script that cron calls? Only folks with root access could see the password. Besides, you've got to put the RT database password in plain text in your RT_SiteConfig file, unless you are running without a password, which is even worse... I haven't used the CLI, but if it's truly interactive, you'll need to write an expect script. BTW, it appears you didn't catch my email with specific instructions for creating a Logo file... James Moseley Asif Iqbal wrote: The rt cli from 2001 does not require a password to get the content of a ticket. So running it as part of a cron is not a problem To get the content of a ticket with rt cli from rt-3.8.2 I need to run rt show , but it requires a password. So I need to run it interactively. Plus I am not comfortable to feed a password in cronjob. How do I by pass the password prompt? Is there another user I can use instead where I don't have to feed a password thru cronjob? ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
[rt-users] ADMIN Re: [Rt-devel] how to run new rt cli in cron
Please do not CC both rt-users and rt-devel for a single post. Pick one list or the other. ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
[rt-users] how to run new rt cli in cron
The rt cli from 2001 does not require a password to get the content of a ticket. So running it as part of a cron is not a problem To get the content of a ticket with rt cli from rt-3.8.2 I need to run rt show , but it requires a password. So I need to run it interactively. Plus I am not comfortable to feed a password in cronjob. How do I by pass the password prompt? Is there another user I can use instead where I don't have to feed a password thru cronjob? Thanks -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] How to add Company logo
On Fri, May 1, 2009 at 11:52 AM, Asif Iqbal wrote: > On Fri, May 1, 2009 at 10:13 AM, wrote: > >> Perhaps folks were thinking you'd look in the Wiki first: >> >> http://wiki.bestpractical.com/view/ChangeLogo >> >> You will need to pay attention to the 3.5+ section regarding copying the >> Logo file to RT_HOME/local/html/Elements/Logo >> >> If you choose that method, you need not put all the SetLogo stuff in your >> RT_SiteConfig. This is how I have my RT 3.8.2 setup. I have not tried >> the >> instructions for RT 3.8. That seems fairly straightfoward and much easier >> than creating a Logo file. >> >> Also, no need to cc the devel list... >> >> >> James Moseley >> >> > > Thanks for the wiki link. I just followed the 3.8 section since I am > running 3.8.2 and I did exactly this > > > # ls local/NoAuth/images/exmaple_logo.gif > local/NoAuth/images/example_logo.gif > > # vi etc/RT_SiteConfig.pm > > Set($WebBaseURL , "https://rt.example.net";); > Set($WebURL , $WebBaseURL . $WebPath . "/"); > Set($WebImagesURL , $WebURL . "NoAuth/images/"); > Set($LogoURL , $WebImagesURL . "example_logo.gif"); > Set($LogoLinkURL, "https://rt.example.net";); > Set($LogoImageURL, $WebImagesURL . "example_logo.gif"); > Set($LogoAltText, "Example Company"); > > Then cleaned the mason cache and restarted the webserver. > > I do not see the compnay log or the alternate text :-( > > >> >> >> Asif Iqbal wrote: >> >> On Thu, Apr 30, 2009 at 5:22 PM, Asif Iqbal wrote: >> How do I place a company logo on the top left corner on RT 3.8.2 ? >> >> Also how do I place a icon next the URL in the url box of the browser so >> it survives the next time upgrade? >> >> I have done it for current version RT 3.4.5, but it has been really >> looong time since I made those changes, so I don't >> remember, *sigh* >> >> I still need help with this >> >> I see the alternate text now, but no logo This is how I have it setup now (root)@rt:/opt/rt3$ ls local/html/NoAuth/images/ example_logo.gif (root)@rt:/opt/rt3$ less local/html/Elements/Logo % if ( $ShowName ) { <% $Name || loc("RT for [_1]", RT->Config->Get('rtname')) %> % } <%INIT> if ( exists $ARGS{'show_name'} ) { $RT::Logger->warning('show_name argument was renamed, use ShowName'); $ShowName = delete $ARGS{'show_name'}; } <%ARGS> $ShowName => 1 $Name => undef (root)@rt:/opt/rt3$ less local/html/NoAuth/css/web2/layout.css [...] div#logo a { position: absolute; left: 0; bottom: 0; } [...] (root)@rt:/opt/rt3$ less etc/RT_SiteConfig.pm Set($WebBaseURL , "https://rt.example.net";); Set($WebURL , $WebBaseURL . $WebPath . "/"); Set($WebImagesURL , $WebURL . "NoAuth/images/"); Set($LogoURL , $WebImagesURL . "example_logo.gif"); Set($LogoLinkURL, "https://rt.example.net";); Set($LogoImageURL, $WebImagesURL . "example_logo.gif"); Set($LogoAltText, "Example Company"); Set($LogoWidth, '177'); Set($LogoHeight, '33'); Cleaned up mason cache (root)@rt:/opt/rt3$ rm -rf var/mason_data/obj/ Restarted web server I only see the alternate text on the bottom left corner. No image. I also verfified that the image is valid. I copied it over from older RT installation 3.4.5 Now I am out of ideas. I am running RT 3.8.2 >> > > > -- > Asif Iqbal > PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > > > -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com