This is a discussion on Set custom size for featured ads within the v3.1 Modules & Modifications forums, part of the v3.1 Legacy Help & Support category; HI, I would like to have a custom size for the thumbnail images used on featured ads. I know the ...
|
|||||||
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
HI,
I would like to have a custom size for the thumbnail images used on featured ads. I know the size of the thumbnails are set on the admin but I'd like those used on featured ads to be smaller. Is there somewhere I can edit the featured ads image template and over ride the defualt size? Thanks, Breda |
|
#2
|
||||
|
||||
|
Hi,
Do you mean on the front page or in the results file after searching?
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
|
#3
|
|||
|
|||
|
HI Eric,
I'm using the featured ads on the home page and on the catagory.php page and the size is set at 110pixels by 83pixels which is fine. What I want to do is set the thumbnail size in the admin to a bigger size but leave the featured ads as they are. I thought if I could find the code that pulls in the image then I could put in my own size to keep them smaller than the default size. Regards, Breda |
|
#4
|
||||
|
||||
|
The problem is to generate TWO different thumbs, I guess.
If you can, nice. If you cannot, there is the way to HTML resize the thumbs in one of your templates. There will be a low quality display but it's easy. Note that you cannot guarantee that all you thumbs will be 110x83 because all the pics does not have the same HxL ratio ... or you will modify this ratio, but the result will be ... strange My Nikon D40 make 6Mpix pics in 3008x2000. Resizing them in 110 width will never give 83 height but only 73 ...
__________________
v4.08 Developer Last edited by philoo; 09-22-2008 at 07:26 AM. |
|
#5
|
||||
|
||||
|
Try this, I think it should work but I cant say 100%
In the featured listing code, where the <img src=""> add HTML Code:
<img src="" class="featured_image">
HTML Code:
img.featured_image{height: ##px; width:##px;
As the images could vary in size you can use % HTML Code:
img.featured_image{height: ##%; width:##%;
__________________
Super Mod v4 Is out and ready for download. DEMO Purchase V4 Super Mod BETA at Reduced Price Visit Me @ Classified-Sofware.co.uk **Important** - All modules with the exceptions of the Bulk Upload System will be removed from my modshop on Tuesday September 30th. If you require a module you must get it before that date. |
|
#6
|
|||
|
|||
|
Hi,
Yes that is what I'm trying to do but I can't find the bit where the image is brough in. On the code that brings in the featured ad it has: {feature_listings_vertical number=11 show_price='N' cols=1 table_attr='width="120" style="border: 1px solid #D3D1D1;" align="center"' td_attr='valign="top" align="center"'} I can't find where the attributes of feature_listings_vertical are set as it must be in there the img src tag is? Thanks, Breda |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| "Active defaults" for custom fields | cheesegrits | v4 Questions & Support | 1 | 01-29-2008 07:17 PM |
| State menu as custom field | cheesegrits | v4 Questions & Support | 5 | 01-24-2008 05:31 PM |
| Where is the custom field search function? | MrSpandex | v3.1 Modules & Modifications | 3 | 12-08-2006 07:33 PM |
| Custom Payment Provider? | flyingpylon | v3.1 Questions & Support | 4 | 10-31-2006 04:49 PM |
| Search Ranges on Custom Fields | philmaw | v3.1 Questions & Support | 2 | 08-03-2006 08:55 AM |