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

Notification

Icon
Error

birdsafe
#1 Posted : Sunday, June 10, 2007 8:14:37 AM(UTC)
birdsafe

Rank: Member

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

Is there a way you can force the Small Image size, but NOT force the Medium Image size?

Thanks
Noah
#2 Posted : Sunday, June 10, 2007 10:55:03 AM(UTC)
Noah

Rank: Member

Joined: 11/6/2003(UTC)
Posts: 1,903

Joe,

There isn't a one or the other option.

AAGR - it's always best to size your images the way you want outside of BV. Forcing sizes causes distortion and you are always loading the full image anyway.
Noah
birdsafe
#3 Posted : Sunday, June 10, 2007 1:07:57 PM(UTC)
birdsafe

Rank: Member

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

I'm in the process of doing that, but I'm under a time crunch and want all the medium images to remain what they currently are, but force the small images to one size so that the catalog pages all line up. I will eventually change them all, but just looking for something to work for me in the interim.
CorneliuTusnea
#4 Posted : Monday, June 11, 2007 6:21:29 PM(UTC)
CorneliuTusnea

Rank: Member

Joined: 8/17/2006(UTC)
Posts: 681

Birdsafe,
There is a function ForceImageSize in the ProductUtils file. Edit that file to implement the behaviour that you want.
Regards,
Corneliu.
http://www.bestgames.com.au
http://www.bestchess.com.au



BV Product Links, Details and Signatures: Improve your customer experience:

http://www.acorns.com.au/projects/bv/quicklink/

birdsafe
#5 Posted : Tuesday, June 12, 2007 6:29:27 AM(UTC)
birdsafe

Rank: Member

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

Ahh.. perhaps I can comment out the line for the Medium image. Thanks! :-) -- Joe
fgpfgp
#6 Posted : Thursday, June 14, 2007 1:07:36 PM(UTC)
fgpfgp

Rank: Member

Joined: 5/3/2004(UTC)
Posts: 101

That's what I did in file App_Code/ViewUtilities.vb. I believe that is the correct place to change it. The code now looks like:

Public Shared Sub ForceImageSize(ByVal image As Control, ByVal imageFile As String, ByVal size As Sizes, ByVal currentPage As Page)

' Force Image Size Code
If size = Sizes.Medium Then
Return
End If
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