Loaded Commerce Community

Banner


Board index » Web Design and Development » Contribution Garage

All times are UTC - 5 hours




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: Mo Pics /Ultra Pics Question
PostPosted: Thu Sep 09, 2004 5:39 pm 
Offline
CRE Addict
User avatar

Joined: Sun Aug 31, 2003 12:00 am
Posts: 258
Has the tep_image function been rewritten for the mopics / ultra pics mod and corrupted the base version?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 09, 2004 6:36 pm 
Offline
CRE Legend

Joined: Sun Nov 09, 2003 1:00 am
Posts: 7301
Location: Baconton, GA USA
Good question. Frankly, I've not looked at the internals of the picture contributions yet. What kind of problem are you having that leads you to beleive the function is corrupted??

David


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 09, 2004 7:15 pm 
Offline
CRE Addict
User avatar

Joined: Sun Aug 31, 2003 12:00 am
Posts: 258
As you know I have been working
trying to ge the "'On the Fly' Auto Thumbnailer using GD Library" contribtuion to work.
The contribution adds 1 file (product_thumb.php) which goes into the direct catalog folder.
Secondly it modifies the html_output.php file (resides in includes/functions)
the modifications are to the tep_image function.
The Loaded file is the exact same as the standard OSC one so this mod should be easily implemented as it works with defualt OSC install.
As you can see by checking http://sk8.worldconspiracy.org/
This isnt the case.
This is why I asked the question.
I am stumped.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 09, 2004 7:46 pm 
Offline
CRE Legend

Joined: Sun Nov 09, 2003 1:00 am
Posts: 7301
Location: Baconton, GA USA
Well, I can see what is happening. Where ever the problem is, it is resulting in an incomplete path to the image. Here is the source for the Latest Products box from your site, and frommy site - obtained from Firefox's View Source feature.


Mine looks like this.

Code:
<!-- whats_new //-->
          <tr>
            <td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td height="14" class="infoBoxHeading"><img src="templates/Original/images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td>
    <td width="100%" height="14" class="infoBoxHeading"><font color="#FFFFFF">Latest products</font></td>
    <td height="14" class="infoBoxHeading" nowrap><a href="http://www.casualfridaysgiftshop.com/catalog/products_new.php"><img src="templates/Original/images/infobox/arrow_right.gif" border="0" alt="more" title=" more " width="18" height="15"></a><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>
  </tr>

</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
  <tr>
    <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
  <tr>
    <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
  </tr>
  <tr>
    <td align="center" class="boxText"><a href="http://www.casualfridaysgiftshop.com/catalog/product_info.php?products_id=5560"><img src="images/maxam/imagesSPTEL_400px_72dpi.jpg" border="0" alt="SPTEL_BULK ~ BULK LOT of 8 units" title=" SPTEL_BULK ~ BULK LOT of 8 units "></a><br><a href="http://www.casualfridaysgiftshop.com/catalog/product_info.php?products_id=5560">SPTEL_BULK ~ BULK LOT of 8 units</a><br>$631.60</td>

  </tr>
  <tr>
    <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
  </tr>
</table>
</td>
  </tr>
</table>
            </td>
          </tr>

<!-- whats_new_eof //-->


Yours looks like this..

Code:
<!-- whats_new //-->
          <tr>
            <td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="   " title="  " width="11" height="14"></td>
    <td width="100%" height="14" class="infoBoxHeading"><font color="#ffffff">Latest products</font></td>
    <td height="14" class="infoBoxHeading" nowrap><a href="http://sk8.worldconspiracy.org/products_new.php?osCsid=168ff66b923d904273b52863be93d170"><img src="images/infobox/arrow_right.gif" border="0" alt=" more  " title=" more " width="12" height="10"></a><img src="images/pixel_trans.gif" border="0" alt="   " title="  " width="11" height="14"></td>
  </tr>

</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
  <tr>
    <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
  <tr>
    <td><img src="images/pixel_trans.gif" border="0" alt="   " title="  " width="100%" height="1"></td>
  </tr>
  <tr>
    <td align="center" class="boxText"><a href="http://sk8.worldconspiracy.org/product_info.php?products_id=843&osCsid=168ff66b923d904273b52863be93d170"><img src="images/" border="0" alt=" Ellington  " title=" Ellington "></a><br><a href="http://sk8.worldconspiracy.org/product_info.php?products_id=843&osCsid=168ff66b923d904273b52863be93d170">Ellington</a><br>$86.99</td>

  </tr>
  <tr>
    <td><img src="images/pixel_trans.gif" border="0" alt="   " title="  " width="100%" height="1"></td>
  </tr>
</table>
</td>
  </tr>
</table>
            </td>
          </tr>

<!-- whats_new_eof //-->


The key is in these two lines :

Yours :
Code:
    <td align="center" class="boxText"><a href="http://sk8.worldconspiracy.org/product_info.php?products_id=843&osCsid=168ff66b923d904273b52863be93d170"><img src="images/" border="0" alt=" Ellington  " title=" Ellington "></a><br><a href="http://sk8.worldconspiracy.org/product_info.php?products_id=843&osCsid=168ff66b923d904273b52863be93d170">Ellington</a><br>$86.99</td>



Mine :

Code:
    <td align="center" class="boxText"><a href="http://www.casualfridaysgiftshop.com/catalog/product_info.php?products_id=5560"><img src="images/maxam/imagesSPTEL_400px_72dpi.jpg" border="0" alt="SPTEL_BULK ~ BULK LOT of 8 units" title=" SPTEL_BULK ~ BULK LOT of 8 units "></a><br><a href="http://www.casualfridaysgiftshop.com/catalog/product_info.php?products_id=5560">SPTEL_BULK ~ BULK LOT of 8 units</a><br>$631.60</td>


The upshot is, your image path is truncated at "images/" where mine is complete. So, what we need is to look at the code that forms the path in the existing module, and make the code in the new module form a path from the same variables.

More in next message.

David


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 09, 2004 8:05 pm 
Offline
CRE Legend

Joined: Sun Nov 09, 2003 1:00 am
Posts: 7301
Location: Baconton, GA USA
Ok, what has happened appears to be this.

I'm going to try to sketch this out as if you don't know what is going on - because something in the code is blindsiding you, and going back to basics is the best way to find out where, so bear with me, ok? I like to start with a theory when debugging, then test it, this is my first theory here.

The ultrapics and Dynamic Mopics contributions allow for multiple pics per product. Therefore, they most allow for formation of multiple paths to images, so that the site designer or administrator may use an appropriately sized graphic for each purpose. You changed the path that is most like the regular osCommerce MS2.2 image path on which the instructions are based. This is however not the path on which the BTS is basing its image paths. Your changes have left the BTS image path variables (set in the Dynamic Mopics Admin menu) empty. The product info and infobox code is still looking in the Dynamic mopics generated path for their images - and not getting a full path to the picture.

The key here is, you want to add this functionality without breaking dynamic mopics. So, we'll look at the dynamic mopics code and change the code from the contribution to use the existing user set pathways to generate the path to which the thumbnail is written.

Give me a chance to look at the code, and I'll see what we need to do. In the meantime, this may break your block on the problem - and allow you to fix it. Sound good?

David


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 09, 2004 10:57 pm 
Offline
CRE Addict
User avatar

Joined: Sun Aug 31, 2003 12:00 am
Posts: 258
I was going to try to include the new path as part of the Mo Pics settings.
Just one problem. There is no Dynamic Mo Pics admin control anymore.
I assumed this was becuase of the inclussion of Ultra Pics.
I guess I will have to download the contribs to see what files they manipulate and how. Especially in conjunction with the BTS.

The insight is a big help.
Least I have a better feeling that this is the right direction for a solution.
I'll be keeping on it.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 09, 2004 11:05 pm 
Offline
CRE Legend

Joined: Sun Nov 09, 2003 1:00 am
Posts: 7301
Location: Baconton, GA USA
Dynamic Mopic is under configuration in Admin.

Do you have all 3 patches installed?? This was a problem I had before patch 1 or patch 2.

David


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 09, 2004 11:07 pm 
Offline
CRE Legend

Joined: Sun Nov 09, 2003 1:00 am
Posts: 7301
Location: Baconton, GA USA
Don't forget to check under Administration / File Access to make sure Dynamic Mopics is authorized under multi-level admin..

David


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 10, 2004 6:43 am 
Offline
CRE Legend
User avatar

Joined: Thu Aug 28, 2003 12:00 am
Posts: 2311
Location: Hastings, Nebraska
Dynamic mo pics was dropped in favor of ultra pics. There are a few peices and parts left over from mo pics.

If you have problem with server load, or a slow site then you do not want to use the thumbs nail on the fly.

Also most thumbnail generation programs are not very compatible with the wysiwyg editor.

Tom


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 10, 2004 3:09 pm 
Offline
CRE Addict
User avatar

Joined: Sun Aug 31, 2003 12:00 am
Posts: 258
Quote:
Don't forget to check under Administration / File Access to make sure Dynamic Mopics is authorized under multi-level admin..

Hmmm, I dont have this either. Though looking at the Phesis Demo Admin site, mine is exactly the same.
I have found someone who DOES have this working in CRE 6(w 3 patches)
http://www.hobbyhen.net/catalog2/
My install reads CRE Loaded6 v4 as does his.
He said he used the original version ( v 1) as he was told it would be eaiser to use. I downlaoded and got an error. Can you donwload the V1 and try it yourself (since its only 2 files its pretty quick).

At a point of bewilderment.
Got a gun? Cause thats how Im feeling.


zip1
Once the thumbs are created they can remain and not be regenerated apon next call. If you have over 5000 items such as I, this is a MAJOR need.
Even if this takes me a month to get to work it will still save time. having a generic pic size setting as OSC does is not sensible and baffles me why they would do such, EXCEPT for time saving on the coding end. Where as the implementation of auto scaled 100% CONSTRIANED IMAGES is useful to everyone.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 10, 2004 5:09 pm 
Offline
CRE Addict
User avatar

Joined: Sun Aug 31, 2003 12:00 am
Posts: 258
Ok,
I got this working! Using the OG vesion of the contrib.
I checked out other guys admin and his does have the M0 Pics control so I have to look into why mine dosent.
Also it turns out you must have a thumbnail size set within Image admin.
You can not have it set to 0/off. Which dosent make sense to me.
Will be looking into a few things and will report findings along with making a post about the contrib with a better readme/install file.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 10, 2004 5:10 pm 
Offline
CRE Legend

Joined: Sun Nov 09, 2003 1:00 am
Posts: 7301
Location: Baconton, GA USA
mm per my last post, has anyone tried giving themselves access to the file via the Administration / File Access menu?

Also, I can certainly see a need for this contribution - especially in one person shops such as my own. I'll be surveying in the relatively near future to get some idea of what size businesses we're serving here, but I suspect small shops are well represented. So, lets hang in here and get this working, ok?

David


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 11, 2004 5:44 am 
Offline
CRE Legend
User avatar

Joined: Thu Aug 28, 2003 12:00 am
Posts: 2311
Location: Hastings, Nebraska
There early version of Loaded6 such as version 6.02 has a number of bugs in it. when the version went to loaded 6.04X moc pics was taken out and ultru pics added.

As far as auto generating products that have been already loaded, yes this is possible along with an auto thumb generator.

The one that I worked with is for 6.042 beta 03 or newer. So I don't think it will work with the version of the catelog you are using.

Tom


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 11, 2004 9:27 am 
Offline
CRE Legend

Joined: Sun Nov 09, 2003 1:00 am
Posts: 7301
Location: Baconton, GA USA
Which reminds me - Tom, what needs to be done to correct the release version reported by the Server Info tool??

David


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 11, 2004 11:18 am 
Offline
CRE Addict
User avatar

Joined: Sun Aug 31, 2003 12:00 am
Posts: 258
yeah ,
Last night I used the server report within admin and it gave me corect version. (CRE-Loaded6_v2) So even though I have added the 3rd patch and main page reads correctly it's obviously not. Looking into that here in a second.
Also to note nimitz that none of the 3 contribs (Mo Pics,Ultra Pics, or BTS)
effect this contrib. Very easy to install just neads a better README file.
I think i will get to it today and post it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

Board index » Web Design and Development » Contribution Garage

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
It is currently Wed May 23, 2012 9:36 pm
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Login

Forums Latest Activity

Top Listing

1. Cart2Cart - Shopping...
    Category: Shopping Cart Database Conversion Scripts
    
2. Points & Rewards PLUS!...
    Category: Add-Ons
    
3. Configuration Server...
    Category: Fixes
    
4. Credit Card with CCV
    Category: Payment Modules
    
5. CC7333_ATS
    Category: Templates
    
Show more...

© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy