• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Dan @ Wolfe
#1 Posted : Saturday, December 22, 2007 9:14:44 AM(UTC)
Dan @ Wolfe

Rank: Member

Joined: 8/8/2007(UTC)
Posts: 298

I'm trying to find where the image NewProduct.png is called for.


The problem i'm having is the image is not showing on the page, i'm getting the red X box for the image. The reason i'm getting it is the image is actually a .gif not a .png. So need to change where it is being called to the .gif so it will display. But for some reason i'm not finding the file or page where it is actually calling the image. i can find the ProductBadge reference that is associated with.



Can someone help me?



thanks
Dan
Chris Dittmeier
#2 Posted : Saturday, December 22, 2007 9:38:22 AM(UTC)
Chris Dittmeier

Rank: Member

Joined: 1/3/2004(UTC)
Posts: 1,497

The CSS class is "ProductBadge".

It is used in "Controls\SingleProductDisplay.ascx".

The file is in the BVModules/Themes/your theme name/Images/Buttons/Misc folder. The code looks for the NewProduct image name here. The themes only come with a GIF file (except for Painted Paper, which uses the BVC5 theme for all the buttons).
Chris
Sirius Programming

www.siriusprogramming.com
Dan @ Wolfe
#3 Posted : Saturday, December 22, 2007 12:02:57 PM(UTC)
Dan @ Wolfe

Rank: Member

Joined: 8/8/2007(UTC)
Posts: 298

Chris:

Thanks, i have been able to find all of that.

The problem i'm having is when i view the page with Firebug in Firefox and look at the code. It is looking for "NewProduct.png" not the .gif image. I need to find where in the files this is located to change it so it calls for "NewProduct.gif" so it will display correctly.

Here is the code that is being displayed when i view the source code in IE6.
<div class="ProductBadge">
<img id="ctl00_MainContentHolder_UpSellDisplay_UpSellsDataList_ctl00_SingleProductDisplay_BadgeImage" src="BVModules/Themes/Bvc5/images/buttons/Misc/NewProduct.png" style="border-width:0px;" />
</div>

As you can see it is looking for "NewProduct.png" not "NewProduct.gif"
Dan
birdsafe
#4 Posted : Saturday, December 22, 2007 12:04:25 PM(UTC)
birdsafe

Rank: Member

Joined: 2/21/2007(UTC)
Posts: 1,113

Dan,

I can open teh graphic in Paint Shop and convert it to png if that helps -- just drop me an email.
Chris Dittmeier
#5 Posted : Saturday, December 22, 2007 1:04:07 PM(UTC)
Chris Dittmeier

Rank: Member

Joined: 1/3/2004(UTC)
Posts: 1,497

The code in Core.PersonalizationServices.vb, GetThemedButton searches for PNG first, then GIF, then JPG. If the file cannot be found it defaults to the PNG file in BVC5 theme, which doesn't exist.

You can put the attached file in the Themes/BVC5/images/Buttons/Misc folder and the default code will work.
Chris Dittmeier attached the following image(s):
NewProduct.png (1kb) downloaded 0 time(s).

You cannot view/download attachments. Try to login or register.
Chris
Sirius Programming

www.siriusprogramming.com
Dan @ Wolfe
#6 Posted : Saturday, December 22, 2007 4:37:28 PM(UTC)
Dan @ Wolfe

Rank: Member

Joined: 8/8/2007(UTC)
Posts: 298

I was able to just save the file as a .png. I just couldn't understand or find why and where it was looking for the .png file.

IF it is suppose to search for all three, then why was it not fiding the .gif image?

Thanks for the help
Dan
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012