Support Forums

Seller Store image thumb in showlisting

This is a discussion on Seller Store image thumb in showlisting within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Hi, I'm using 68C V 4.1.9 Developer. Ive installed seller store module and modified the code using this tutorial: http://www.68classifieds.com/forums/...wlistings.html ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 04-07-2010, 12:04 PM   #1
Customer
 
Join Date: Mar 2010
Posts: 10
Rep Power: 7
aerospace is on a distinguished road
Default Seller Store image thumb in showlisting

Hi, I'm using 68C V 4.1.9 Developer.
Ive installed seller store module and modified the code using this tutorial:

Store Image And Name In Showlistings

I want to show the thumb of the logo/avatar uploaded using seller store: inside showlisting I've used
PHP Code:
<img src="thumbs/small_{$entry.sImage}"
but it shows nothing! It seems like seller store doesn't create a thumb, instead it uploads the original image in photos and that's it!

I forgot...In showlisting I deleted the tables, I'm just using div + css.

HELP!!!

Thanks!

Last edited by aerospace; 04-07-2010 at 12:56 PM.
aerospace is offline   Reply With Quote
Old 04-07-2010, 08:54 PM   #2
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 35
bowers01 is on a distinguished road
Default

Hi,
You should be using
Code:
<img src="photos/{$entry.storeImage}" />
Give that a go.
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 04-08-2010, 03:30 AM   #3
Customer
 
Join Date: Mar 2010
Posts: 10
Rep Power: 7
aerospace is on a distinguished road
Default

Quote:
Originally Posted by bowers01
Hi,
You should be using
Code:
<img src="photos/{$entry.storeImage}" />
Give that a go.
Nick

Hi Nick!
Thanks!
I know it works this way, but the image doesn't resize...I mean, I want the the thumb because I don't have any space for the original image, the customers usually upload big images and this way my entire div-builted showlisting is ruined!

Any idea?
aerospace is offline   Reply With Quote
Old 04-08-2010, 04:47 AM   #4
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 35
bowers01 is on a distinguished road
Default

unless you have modified the script it does not make a thumb version of the seller logo.
Try using this in the css file
Code:
.storeimage{width:200px}
then
Code:
<img src="photos/{$entry.storeImage}" class="storeimage" alt="{$entry.storeTitle}" />
Regards,
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 04-08-2010, 05:02 AM   #5
Customer
 
Join Date: Mar 2010
Posts: 10
Rep Power: 7
aerospace is on a distinguished road
Default

Quote:
Originally Posted by bowers01
unless you have modified the script it does not make a thumb version of the seller logo.
Try using this in the css file
Code:
.storeimage{width:200px}
then
Code:
<img src="photos/{$entry.storeImage}" class="storeimage" alt="{$entry.storeTitle}" />
Regards,
Nick
Thanks!
But it doesn't work...the image size is the original one...ie if the image size is 400px x 400px, it remains the same size and shash my div...

Any other idea?
aerospace is offline   Reply With Quote
Old 04-08-2010, 05:29 AM   #6
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

Why not force the dimensions.

<img src="photos/{$entry.storeImage}" class="storeimage" width="100px" height="100px" alt="{$entry.storeTitle}" />

or don't use pixel dimensions but percentages instead if you prefer. Not sure what "storeimage" is doing so you may wish to remove it unless it is doing some styling you actually need.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 04-08-2010, 09:39 AM   #7
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Or instead, make a seller store icon the size that you want and show that instead of their own image. that way, they will still stand out to the end users as a business with a seller store.

You could do something like this then in your showlistings:
{if $entry.storeImage <>''}
<img src="pathtoyoursellerstoreicon" alt="{$entry.storeTitle}" width="100px" height="100px" border="0" />
{/if}
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 04-08-2010, 11:06 AM   #8
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 35
bowers01 is on a distinguished road
Default

Quote:
Originally Posted by seymourjames
Not sure what "storeimage" is doing so you may wish to remove it unless it is doing some styling you actually need.
In my previous post i said to add .storeimage{width:200px} to the css file, that works fine on my sites.
Also i would only set either the width or the heigh, not both.


Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 04-12-2010, 04:15 AM   #9
Customer
 
Join Date: Mar 2010
Posts: 10
Rep Power: 7
aerospace is on a distinguished road
Default

Thanks!
I've fixed it using css!
Is there something they cannot fix?
Thanks everybody!
aerospace is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Seller name on showlisting page wesse249 Technical Support 21 10-20-2009 03:29 AM
Seller Store Image Red Technical Support 1 05-13-2008 01:43 PM
Seller Store goose Technical Support 3 08-15-2007 11:08 PM
Is there any fix to this Seller Store for V4 RC3 ? Syafi Technical Support 0 06-14-2007 12:03 PM


All times are GMT -4. The time now is 08:41 AM.


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