adding an image to banner.html

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

adding an image to banner.html

Vidya Rajagopalan
 tried to add a jpg image to banner.html.tmpl in the hope of getting it to
appear. I used the <img src="foo.jpg" width=80 height=60 alight=right>
directive.

While I get a box with the right alignment and dimensions, the actual jpg
image does not appear.

I suspect perhaps that the jpg image needs to be in some directory ? My
first attempt was in the same global directory as the template.

Any idea ?

thanks

vidya


_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
Reply | Threaded
Open this post in threaded view
|

Re: adding an image to banner.html

Michael Bellomo
If you just said "foo.jpg" like that, you'll need the jpg in the base
bugzilla directory.

    -Michael

Vidya Rajagopalan wrote:

>  tried to add a jpg image to banner.html.tmpl in the hope of getting it to
> appear. I used the <img src="foo.jpg" width=80 height=60 alight=right>
> directive.
>
> While I get a box with the right alignment and dimensions, the actual jpg
> image does not appear.
>
> I suspect perhaps that the jpg image needs to be in some directory ? My
> first attempt was in the same global directory as the template.
>
> Any idea ?
>
> thanks
>
> vidya
>
>
> _______________________________________________
> support-bugzilla mailing list
> [hidden email]
> https://lists.mozilla.org/listinfo/support-bugzilla
> .
>
>  

_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
Reply | Threaded
Open this post in threaded view
|

Re: adding an image to banner.html

G Suryadevara
Or check the location of Ant.jpg and its parameters....That'll help you fixing the image.


On 1/13/06, Michael Bellomo <[hidden email]> wrote:
If you just said "foo.jpg" like that, you'll need the jpg in the base
bugzilla directory.

    -Michael

Vidya Rajagopalan wrote:

>  tried to add a jpg image to banner.html.tmpl in the hope of getting it to
> appear. I used the <img src="foo.jpg" width=80 height=60 alight=right>
> directive.
>
> While I get a box with the right alignment and dimensions, the actual jpg
> image does not appear.
>
> I suspect perhaps that the jpg image needs to be in some directory ? My
> first attempt was in the same global directory as the template.
>
> Any idea ?
>
> thanks
>
> vidya
>
>
> _______________________________________________
> support-bugzilla mailing list
> [hidden email]
> https://lists.mozilla.org/listinfo/support-bugzilla
> .
>
>

_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla



--
Venkata Satya Gokul
http://www.suryadevaraonline.net
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
Reply | Threaded
Open this post in threaded view
|

RE: adding an image to banner.html

Vidya Rajagopalan

I put it in the base directory where Ant.jpg was, it did not seem to help. I am using bugzilla version 2.20, which by default does not show up with ant or it seems in our installation.

 

Ant.jpg seems to be referenced only in the index page and not in the banner. I don’t know if that makes a difference.

 

vidya

 

-----Original Message-----
From: G Suryadevara [mailto:[hidden email]]
Sent: Friday, January 13, 2006 1:26 PM
To: Michael Bellomo
Cc: Vidya Rajagopalan; [hidden email]
Subject: Re: adding an image to banner.html

 

Or check the location of Ant.jpg and its parameters....That'll help you fixing the image.

On 1/13/06, Michael Bellomo <[hidden email]> wrote:

If you just said "foo.jpg" like that, you'll need the jpg in the base
bugzilla directory.

    -Michael

Vidya Rajagopalan wrote:
>  tried to add a jpg image to banner.html.tmpl in the hope of getting it to
> appear. I used the <img src="foo.jpg" width=80 height=60 alight=right>
> directive.
>
> While I get a box with the right alignment and dimensions, the actual jpg
> image does not appear.
>
> I suspect perhaps that the jpg image needs to be in some directory ? My
> first attempt was in the same global directory as the template.
>
> Any idea ?
>
> thanks
>
> vidya
>
>
> _______________________________________________
> support-bugzilla mailing list
> [hidden email]
> https://lists.mozilla.org/listinfo/support-bugzilla
> .
>
>

_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla




--
Venkata Satya Gokul
http://www.suryadevaraonline.net


_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
Reply | Threaded
Open this post in threaded view
|

RE: adding an image to banner.html

markhb
In reply to this post by Vidya Rajagopalan
First, check the HTML source code of your page and see what you are
getting for the src attribute of the IMG tag.  Remember that HTML tags
like IMG are interpreted by the browser, not the server (unless TT is
doing something I'm not aware of; I'm hardly a TT expert).  That means
that the browser, once it receives an IMG tag, will work out the full URL
of the image from the SRC attribute and create a new request back to
your server to get it.  So, the first important thing is that the image is
in the location on your server where the browser thinks it should be.  If,
as you said, you used "foo.jpg" as the src, then the gentleman below is
correct and the image should be in the Bugzilla root (the same directory
that checksetup.pl is in).

If that seems to be okay, and if you're running on a Unix or Linux
platform, next check the permissions on the jpg file; it needs to be
readable by the user that the web server is running as (frequently
apache).  If you do an ls -l and you see something like:

-r--r-----  1  root     root    [size date time] foo.jpg

you probably have a problem.  If you have root access to the box, use some
combination of chmod / chown / chgrp to ensure that the web server can see
the file.  

Finally, I would suggest cleaning up your IMG tag.  Anyone who can correct
my CSS (especially the float directive), please feel free to do so:

<img src="foo.jpg" style="width: 80px; height: 60px; float: right;">

Good luck,
Mark


On Fri, 13 Jan 2006 14:08:31 -0800, Vidya Rajagopalan wrote:

> I put it in the base directory where Ant.jpg was, it did not seem to help. I
> am using bugzilla version 2.20, which by default does not show up with ant
> or it seems in our installation.
>
>  
>
> Ant.jpg seems to be referenced only in the index page and not in the banner.
> I don't know if that makes a difference.
>
>  
>
> vidya
>
>  
>
> -----Original Message-----
> From: G Suryadevara [mailto:[hidden email]]
> Sent: Friday, January 13, 2006 1:26 PM
> To: Michael Bellomo
> Cc: Vidya Rajagopalan; [hidden email]
> Subject: Re: adding an image to banner.html
>
>  
>
> Or check the location of Ant.jpg and its parameters....That'll help you
> fixing the image.
>
>
>
> On 1/13/06, Michael Bellomo <[hidden email]> wrote:
>
> If you just said "foo.jpg" like that, you'll need the jpg in the base
> bugzilla directory.
>
>     -Michael
>
> Vidya Rajagopalan wrote:
>>  tried to add a jpg image to banner.html.tmpl in the hope of getting it to
>
>> appear. I used the <img src="foo.jpg" width=80 height=60 alight=right>
>> directive.
>>
>> While I get a box with the right alignment and dimensions, the actual jpg
>> image does not appear.
>>
>> I suspect perhaps that the jpg image needs to be in some directory ? My
>> first attempt was in the same global directory as the template.
>>
>> Any idea ?
>>
>> thanks
>>
>> vidya
>>

_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
Reply | Threaded
Open this post in threaded view
|

RE: adding an image to banner.html

Girish R-2
In reply to this post by Vidya Rajagopalan
You can keep banner on the base directory and need to fetch from the perl. then It will appear or else easiest way is to keep the image in the base directory and rename it to Ant.jpg it will take.
 
/bugzilla-2.*.*/foo.jpg
 
but I am not sure in which file you need to change any one of the 3 files only I have changed my banner long back. I couldn't remember exactly right now which was that file.
 
1. CGI.pl
2. global.pl
3.index.cgi
 
in this any one file will be redirecting the ANT.JPG to Index.html.tmpl file and then it appears on the banner.
 
 <td align="right"><img src="pa_logo_big.gif" width="310" height="250" border="2" alt=" Girish R [37.8k]"></td>
</tr></table>
 
 
 
Regards
Girish

-----Original Message-----
From: Vidya Rajagopalan [mailto:[hidden email]]
Sent: Saturday, January 14, 2006 3:39 AM
To: 'G Suryadevara'; 'Michael Bellomo'
Cc: [hidden email]
Subject: RE: adding an image to banner.html

I put it in the base directory where Ant.jpg was, it did not seem to help. I am using bugzilla version 2.20, which by default does not show up with ant or it seems in our installation.

 

Ant.jpg seems to be referenced only in the index page and not in the banner. I don't know if that makes a difference.

 

vidya

 

-----Original Message-----
From: G Suryadevara [mailto:[hidden email]]
Sent: Friday, January 13, 2006 1:26 PM
To: Michael Bellomo
Cc: Vidya Rajagopalan; [hidden email]
Subject: Re: adding an image to banner.html

 

Or check the location of Ant.jpg and its parameters....That'll help you fixing the image.

On 1/13/06, Michael Bellomo <[hidden email]> wrote:

If you just said "foo.jpg" like that, you'll need the jpg in the base
bugzilla directory.

    -Michael

Vidya Rajagopalan wrote:


>  tried to add a jpg image to banner.html.tmpl in the hope of getting it to
> appear. I used the <img src="foo.jpg" width=80 height=60 alight=right>
> directive.
>
> While I get a box with the right alignment and dimensions, the actual jpg
> image does not appear.
>
> I suspect perhaps that the jpg image needs to be in some directory ? My
> first attempt was in the same global directory as the template.
>
> Any idea ?
>
> thanks
>
> vidya
>
>
> _______________________________________________
> support-bugzilla mailing list
> [hidden email]
> https://lists.mozilla.org/listinfo/support-bugzilla
> .
>
>

_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla




--
Venkata Satya Gokul
http://www.suryadevaraonline.net


_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla