Set custom size for featured ads

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 ...


Go Back   68 Classifieds Forums > v3.1 Legacy Help & Support > v3.1 Modules & Modifications

 
LinkBack Thread Tools Display Modes
  #1  
Old 09-15-2008, 11:22 AM
Junior Member
 
Join Date: Nov 2006
Posts: 12
Rep Power: 9
Default Set custom size for featured ads

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

Reply With Quote
  #2  
Old 09-15-2008, 11:25 AM
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,321
Rep Power: 99
Default

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
Reply With Quote
  #3  
Old 09-22-2008, 06:48 AM
Junior Member
 
Join Date: Nov 2006
Posts: 12
Rep Power: 9
Default

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
Reply With Quote
  #4  
Old 09-22-2008, 07:23 AM
Senior Member
 
Join Date: Apr 2008
Posts: 130
Rep Power: 6
Default

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.
Reply With Quote
  #5  
Old 09-22-2008, 09:39 AM
Maffo's Avatar
The Master
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,399
Rep Power: 41
Default

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">
Then in your css sheet you should be able to write

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:##%;
Hopefully that will work
__________________
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.
Reply With Quote
  #6  
Old 10-06-2008, 12:48 PM
Junior Member
 
Join Date: Nov 2006
Posts: 12
Rep Power: 9
Default

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
Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -4. The time now is 07:42 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22