Moderated by: FocalMedia Team, Miles, Gerrit, Rian

FocalMedia.Net Forums » PowerSeek »  Discussions, Suggestions & Tips, Tricks

Page: 1 of 1

« Back to Topic Index Page 8 | Replies: 4

 Author  Topic: Image H&W
tariqali

New Member
  

    
Post a Reply To This Topic    Reply With Quotes     Edit Message     View Profile of tariqali 
Hi,

First, I wish you guys have an image upload feature and a better way to handle images in pseek. Is this something you are working on for the next release?

Second, I have a custome field that is an image and I want to be able to set it so it will only be 120x60 image. IS there a way to do this?

thanks.

Total Posts: 15 | Joined: Aug 22, 2003 - 5:28am | IP Logged

FocalMedia Team

Moderator
  

    
Post a Reply To This Topic    Reply With Quotes     Edit Message     View Profile of FocalMedia Team 
The way to have 120x60pixel images at this point in time would be to in fact only have images that is 120x60pixels in size.

We will most likely add additional image options in the future with future coming versions.

Gerrit


Total Posts: 1453 | Joined: Jul 27, 2002 - 4:28am | IP Logged

amray

Full Member
  

    
Post a Reply To This Topic    Reply With Quotes     Edit Message     View Profile of amray 
What you can try to do is add table to lsearchres and using CSS set it up to 120x60 size. It will hold only this size of image if the size of original is greatter but you can tell your members to give you links to proper size pics or sooner or later they will keep it up to your standarts.

Total Posts: 109 | Joined: Oct 2, 2003 - 9:41pm | IP Logged

tariqali

New Member
  

    
Post a Reply To This Topic    Reply With Quotes     Edit Message     View Profile of tariqali 
I really need to make this change. Is there a way to change the image field to a regular field? That way I can use "image source" in the html and I can set the hight and width of the image.
If I run the setup again and create a new field, can I copy the data in the image field to the new image field? If so, how? I am not that familiar with SQL.

thanks.


Total Posts: 15 | Joined: Aug 22, 2003 - 5:28am | IP Logged

FocalMedia Team

Moderator
  

    
Post a Reply To This Topic    Reply With Quotes     Edit Message     View Profile of FocalMedia Team 
You can edit the script to only display images with a specified size, but it will only work if you have one image field.

Edit htbuild.pm in the 'admin' directory and the general program scripts directory as follows:

Line 859:

if ($row[$rowcntr] ne "" ){$imgcrit = "<img
src=\"$row[$rowcntr]\" border=\"0\">";} else { $imgcrit =
""; }



to



if ($row[$rowcntr] ne "" ){$imgcrit = "<img
src=\"$row[$rowcntr]\" border=\"0\" width=\"120\" height=\"60\">";}
else { $imgcrit = ""; }



==========

Line: 977

if ($row[$rowcntr] ne "" ){$imgcrit = "<img
src=\"$row[$rowcntr]\" border=\"0\">";} else { $imgcrit =
""; }



to



if ($row[$rowcntr] ne "" ){$imgcrit = "<img
src=\"$row[$rowcntr]\" border=\"0\"  width=\"120\"
height=\"60\">";} else { $imgcrit = ""; }



Gerrit

Total Posts: 1453 | Joined: Jul 27, 2002 - 4:28am | IP Logged


Lock Topic

 

Forum Legend

New Member

Reply to topic

More than 50 posts | Member

Reply to topic with quoted message

More than 100 posts | Full Member

Edit Message

More than 150 posts | Advanced Member

View profile

More than 200 posts | Advanced Member

Email member