chrometweaks.org

Free Web iPage hosting service, at least 100M free site space, FTP, ASP Hosting?

Click Here To View All Answers...


My question is Free Web iPage hosting service, at least 100M free site space, FTP, ASP Hosting? Thanks for any answer or 2. Another question I got... Hi,.

I would like to add some extra images to the product listing. I'm already using the '3 sizes of product image' mod which works fine, but I would like to add some extra images to the listing..

I've looked through the contributions section and tried some out, but they either don't do what I want - some give like a slideshow type thing which is not what I'm after - or they don't seem to work properly when installed..

Can anybody advice me on which contribution is the best for simply adding extra product images to the product listing, which have a 'click to enlarge' option like the default image as well? Maybe also whether it is easy to install. The last one I tried virtually re-wrote an entire file, there were that many changes..

Thanks...

Comments (93)

I would like to know the answer too. Anyone here know what is the right answer. I'll do some Googling and get back to you if I discover an useful answer. You should email the people at iPage as they probably could answer your iPage question..

Comment #1

I have since reinstalled the test environment - so a clean install - and ran the installation of UltraPics over it. That mod is fantastic and exactly what I'm looking for. However, the installation on a clean install is easy - simply overwrite all files and it will work. In my PROD environment this is going to be a different matter altogether. Since I've installed several contributions on my iPage site I cannot simply replace the files that are already there. Unfortunately the person who created this contrib didn't include a manual for installation..

Does anybody have experience with installing UltraPics on a modified osC install and can either tell me which manual steps I need to do (the loading of the SQL file is clear of course) or at least point me in the right direction?.

(I already have Beyond Compare, but it's output confuses me greatly due to the mods already made in my original files...).

Thanks...

Comment #2

Function tep_array_merge($array1, $array2, $array3 = '') {.

If ($array3 == '') $array3 = array();.

If (function_exists('array_merge')) {.

$array_merged = array_merge($array1, $array2, $array3);.

} else {.

While (list($key, $val) = each($array1)) $array_merged[$key] = $val;.

While (list($key, $val) = each($array2)) $array_merged[$key] = $val;.

If (sizeof($array3) > 0) while (list($key, $val) = each($array3)) $array_merged[$key] = $val;.

}.

Return (array) $array_merged;.

}.

This I have in compatibility.php.

If (!function_exists('array_merge')) {.

Function array_merge($array1, $array2, $array3 = '') {.

If ($array3 == '') $array3 = array();.

While (list($key, $val) = each($array1)) $array_merged[$key] = $val;.

While (list($key, $val) = each($array2)) $array_merged[$key] = $val;.

If (sizeof($array3) > 0) while (list($key, $val) = each($array3)) $array_merged[$key] = $val;.

Return (array)$array_merged;.

}.

}.

This post has been edited by.

Mibble.

: 21 August 2004, 13:26..

Comment #3

I don't understand. compatability.php isn't even included in the UltraPics mod, so why do I need to check it out? Never mind change anything in it..

What I'm after is a rundown of the changes that are made by UltraPics per file so that I can put them in manually as I can't replace the files due to other mods. This also makes using Beyond Compare really difficult as the changes of the other mods pop up as well..

So if somebody has a rundown of the manual changes needed for UltraPics I would love to hear from you..

Thanks...

Comment #4

You're going to have to use BeyondCompare - I've sent you a PM..

Comment #5

Thanks Iain, I've PM'ed you back..

It's unbelievable. I have copied all the new files that come with UltraPics into the PROD environment. Obviously I haven't ran the SQL file yet as the replacement files are not complete yet..

I'm trying to use Beyond Compare for the replacement files, but it's proving to be hard to impossible to do due to earlier installed contributions in those files. Some of them simply clash with what UltraPics wants to put in those files. The catagories.php file in admin is a very good example of that. I honestly don't see how I'll ever get this properly installed without disturbing the previous installed mods and especially not using Beyond Compare, even though I realise that that is probably the only tool out there for the job..

Shame that the creator of the contribution didn't write any useable instructions for the manual changes. Otherwise it would've been a breeze. And nobody here seems to have created these instructions for themselves either, so it's trial and error and worse: trial and error on a PROD environment, rather than a DEV environment. This makes UltraPics so far in my eyes probably the most dangerous contrib to install, even though the ultimate result if you do get it working is absolutely fabulous...

Comment #6

If you are using PHP4, tep_array_merge is just an alias for array_merge. In the code where it calls tep_array_merge, just change it to array_merge..

Comment #7

Dreamscape: thanks for your reply. I just read back through the thread and I noticed that I forgot to mention that I'd solved the array_merge problem already. Sorry about that..

My current problem is with the implementation of UltraPics into my already modified site. Simply overwriting existing files with the ones supplied in the contrib works like a charm - without errors - in my test environment, but that's a clean, unaltered, stock install of osC. Not surprising it works there. When it comes to my modified iPage site things get more complicated. There are no instructions with this particular contribution, so it's hard to determine what bits of code needs to be copied into the existing code. Especially since the contrib is based on stock version of the files (like popup_image.php for example, or admin/catagories.php).



One other thing I haven't mentioned yet: One of the modifications that is installed is '3 sizes of product images'. The changes for that contrib seriously clash with those of UltraPics. Now it isn't a big deal to overwrite the '3 sizes' contrib as this functionality has also been build into UltraPics, but that confuses matters even more as there are more mods done in those files that do need to remain there, like individual shipping per item. Beyond Compare just makes things more complicated I find, rather than simpler. And I honestly don't know how to solve this one...

Comment #8

All the code changes in UltraPics are commented - they are topped and tailed with.

BOF MaxiDVD: and EOF MaxiDVD:.

I suspect they will clash with other contribs because you've already installed S, M, L ( I think).

So you need to be careful but just back out those contribs where there is a clash - and I don't think it will be many - and install UltraPics using.

BOF MaxiDVD: and EOF MaxiDVD:.

As your waypoints. If there is additional changed code in the UltraPics contribution that is not flagged, ignore it..

If your Test environment is really a sandbox where you test new contribs to assess them and then do a clean reinstall it's not going to help you, so create a copy of your PROD environment, do the mods on that using code comparison software, test it works - I don't think you need the addtional complexity of a separate TEST environment - and then use your code comparison software to migrate it to your PROD environment. Once you're happy it works in DEV the migration to PROD will be a lot smoother..

It does reinforce the need for a couple of things though.

1) A proper local Development environment where you iron out any issues before you go anywhere near your live site. Once you start using contributions you should consider the question of "how much impact will installing this contribution have?" as part of you initial assessment of whether you want to use it. Given that us non-coders are doing little actual development probably the most significant issue we face with contributions is safely integrating them..

2) A log of what you've done, kept up to date as you do it. If you're loading contributions - understand how they're commented. I keep a directory called contribs in use where I store the actual contribs I used, a log file of the changes and a text file with reminders and comments in it for me.

Anyway Roger, that wasn't meant to be as patronising as it reads - and it's a personal thing anyway. My background is working on large CRM and ERP implementations and this is a natural way of working for me. For others it might look like overkill or far too formal. I'm online today so give me a call if you get stuck.

Iain..

Comment #9

Last night I've created a DEV environment based on my current PROD. As Beyond Compare is kicking up a real stink about those already modified files, I'm trying a differen approach at the moment in the DEV. I've replaced all the files UltraPics needed with the ones supplied and am now writing down the things that have disappeared..

Obviously the 3 sizes of image contrib clashed but when I did the install of UltraPics as described above the funtionality simply disappeared from the admin side and was replaced with that of UltraPics. I'm sure that there is still a bit of the old contrib lurking somewhere but as it doesn't seem to impact the admin section nor the iPage site itself I'm not going to worry too much about it..

It wiped all additional pages I made in the information box as UltraPics has it's own additional pages manager. I soon got that sorted by simply copying the HTML into one of the new UltraPics pages and it was back. So no worries there..

I also made a couple of cosmetic changes in the listing of products in the admin page. I showed the model number (or order no. as I renamed it) and sorted the list on it. That change is gone, so I have to put that back, but that seems a small thing to do..

Also obviously the 'individual shipping per item' contrib has vanished. That contrib however did have manual changes instructions, so it should be rather simple to put that back..

And that's, so far, all that i've found. Not much and easily solved. I'll make those changes obviously and test run it a bit more in the new DEV environment, but it seems that this is definately the way too go; that it is simpler to put the other contribs and changes back, rather than searching for the MaxiDVD changes and copy/pasting them...

Comment #10

I've got a really strange problem now....

I've installed UltraPics in my DEV environment as described above and just implented the 'individual shipping price' manual changes - SQL change was still in place - and I've made some changes so that the model number is shown in the admin/products listing and that it sorts on that as well. It all works like a dream. Now I must mention here that I first installed the UltraPics and everything worked like a dream. ALL changes I made later - like the shipping price and sorting - only took place in ADMIN/CATAGORIES.PHP..

Even though everything in admin is working like a dream, the strange thing is though, the catalog itself is showing a problem. The catagory headers are gone and no product listing is shown on the site. I can't understand this at all as no changes have been made to the catalog files, only the ADMIN files. How could that possibly have an effect on the catalog files?.

Does anybody have an idea please, cause I'm confused.....

Thanks,..

Comment #11

If you think it would be helpful I will post the entire admin/catagories.php file, but I have to say it's a big file and it's heavily modified so I'll leave that up to you. If you think it will help let me know and I'll post it..

Thanks guys...

Comment #12

I hope somebody is willing to lend a hand, because this is a major problem - iPage site not showing any products anymore!!!!.

Thanks...

Comment #13

I've got the catagory headers back (Hurrah!) but still no sign of the products.....

Comment #14

Sorry Roger, been doing other stuff today.

What's the status now?..

Comment #15

The same. This is - luckily - on the DEV (which is now a copy of the PROD one) site, but still. I managed to install UltraPics, which works like a charm and I've been putting some other mods back. The manual changes for the Individual Shipping Per Product for example (the SQL was but as the files were overwritten, the manual changes were gone) are now back in the admin/catagories.php file. I've also changed the display of the products in admin to show the model number as well, renamed it 'Order No.' and sorted the products on it. And all of that is working like a dream.



But if I look at the output of the DEV iPage site in a browser I can see the catagories, I can see the catagory header (both name and pic) but no products. Not even the table in which the products need to appear; there's a blank space. My products are still there in Admin, but they don't show on the site..

I've been over the admin/catagories.php page several times now and I can't find anything wrong with it and I'm fresh out of ideas. So I could do with a nudge in the right direction. Obviously I can paste the catagories.php file here, but it's huge and heavily modified, so maybe a better question might be:.

In what file, and what part in particular, engines the display of products on the site? What part of coding creates the table that people would see on the site, when they click on a catagory? Maybe if I know what that is supposed to be and in which file I can run a comparison to my own....

That's obviously just an idea, but if you or anybody else have a better one, please let me know. It's rather a big problem....

Thanks...

Comment #16

Can somebody please tell me which part of which file controls the display of products on the site?.

Thanks...

Comment #17

Hi roger.

Mail me a copy of your catgories.php and your admin/categories.php file..

Iain..

Comment #18

Hi,.

I would like to add some extra images to the product listing. I'm already using the '3 sizes of product image' mod which works fine, but I would like to add some extra images to the listing..

I've looked through the contributions section and tried some out, but they either don't do what I want - some give like a slideshow type thing which is not what I'm after - or they don't seem to work properly when installed..

Can anybody advice me on which contribution is the best for simply adding extra product images to the product listing, which have a 'click to enlarge' option like the default image as well? Maybe also whether it is easy to install. The last one I tried virtually re-wrote an entire file, there were that many changes..

Thanks...

Comment #19

I've installed Mo-Pics v.1.1 in my test environment. This meant that I could copy the files as they are, since the test environment is an unmodified version of osCommerce; stock install. I copied all the files to where they needed to go and ran all necessary sql commands in myPhpAdmin..

When I went to admin/catalog/catagories I got an error message about an undefined function on line 869 in admin/catagories.php. Now I remembered that when I downloaded Mo-Pics I read something about a problem with the catagories.php in version M2.2 of osC. And they had a replacement catagories.php, which I downloaded and installed..

I still get the same error message though, however it's on a different line now:.

Fatal error: Call to undefined function: tep_array_merge() in c:\program files\easyphp1-7\home\test\catalog\admin\categories.php on line 937.

This is the bit with line 937 clearly marked:.

     if ( ((!$HTTP_GET_VARS['cID']) && (!$HTTP_GET_VARS['pID']) || (@$HTTP_GET_VARS['cID'] == $categories['categories_id'])) && (!$cInfo) && (substr($HTTP_GET_VARS['action'], 0, 4) != 'new_') ) {.

       $category_childs = array('childs_count' => tep_childs_in_category_count($categories['categories_id']));.

       $category_products = array('products_count' => tep_products_in_category_count($categories['categories_id']));.

       $cInfo_array = tep_array_merge($categories, $category_childs, $category_products); // THIS IS LINE 937!.

       $cInfo = new objectInfo($cInfo_array);.

     }.

Does anybody know how to solve this one?.

Thanks!..

Comment #20


This question was taken from a support group/message board and re-posted here so others can learn from it.