Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Select Product Image Directory & Instant Update For Products


60 replies to this topic

#41 Juto

  • Community Member
  • 252 posts
  • Real Name:Sara
  • Gender:Female

Posted 12 April 2010, 22:13

Hi Sam,

I fixed the error in the stylesheet. The reference to the image needed to start with ../ like so: url('../images/.....')

This error
2)
120.34.56.78 tried to load www.ji-fashion.com/images/ ErrorDocument: 403

User Agent = Mozilla/5.0 (Windows; U; Windows NT 5.1; sv-SE; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)

HTTP Referer = http://www.ji-fashion.com/my_admin_folder/categories.php?cPath=22&cID=24&action=edit_category

Comes from admin's categories.php (action=edit_category)

I haven't been able to find where the bug is, any suggestions?

Thanks again.

Sara

By the way, when my error detector is "ready to go" do you think it would be fit as a contribution?

#42 spooks

  • Community Member
  • 7,017 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 12 April 2010, 23:15

View PostJuto, on 12 April 2010, 22:13, said:


This error
2)
120.34.56.78 tried to load www.ji-fashion.com/images/ ErrorDocument: 403

User Agent = Mozilla/5.0 (Windows; U; Windows NT 5.1; sv-SE; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)

HTTP Referer = http://www.ji-fashio...n=edit_category

Comes from admin's categories.php (action=edit_category)

I haven't been able to find where the bug is, any suggestions?


By the way, when my error detector is "ready to go" do you think it would be fit as a contribution?

Again, nothing to do with this, changes only apply when editing products!!

Have you fixed the standard bug in categories re category images (same issue as for manufacturers).


Quote

By the way, when my error detector is "ready to go" do you think it would be fit as a contribution?


could be useful but needs to provide more info, if you have trouble decoding the errors how will the php clueless? unless you add a proviso to the install, 'only install if your a "real" developer' [img]http://forums.oscommerce.com/public/style_emoticons/default/biggrin.gif[/img]
Sam

Remember, What you think I ment may not be what I thought I ment when I said it.

Contributions:


Auto Backup your Database, Easy way

Multi Images with Fancy Pop-ups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#43 Juto

  • Community Member
  • 252 posts
  • Real Name:Sara
  • Gender:Female

Posted 13 April 2010, 07:22

View Postspooks, on 12 April 2010, 23:15, said:


1) Again, nothing to do with this, changes only apply when editing products!!

2) Have you fixed the standard bug in categories re category images (same issue as for manufacturers).

3) could be useful but needs to provide more info, if you have trouble decoding the errors how will the php clueless? unless you add a proviso to the install, 'only install if your a "real" developer' [img]http://forums.oscommerce.com/public/style_emoticons/default/biggrin.gif[/img]

1) Ok, I have to take a real close look at categories.php

2) I don't know, really. Where can I find those two?

3) Yes, I agree, it might be to much for others than developers. Among other things it involves modifications of htaccess.

So, I will keep it offline until... :) And, I have no problems decoding errors, I guess I was to tired.

Thanks for your swift and clarifying answers :)

Sara

#44 plasmaboy

  • Community Member
  • 4 posts
  • Real Name:Lucky
  • Gender:Male
  • Location:London

Posted 27 December 2010, 21:51

Hi,
i just installed this contribution and i can say it's a great thing to have on your shop. Just i have one question :) maybe it's possible to list all existing images in folders? Lets say you chose folder and in another drop-down list you can chose picture(listed in text based list(by file name)). I am asking this because i am new to osCommerce and usually i'am using same picture for lots of products. And at the moment i need to upload same picture again and again.. :(

#45 14steve14

  • Community Member
  • 2,175 posts
  • Real Name:Steve
  • Gender:Male

Posted 08 January 2011, 20:40

Will this contribution work with 2.3.1. Its something that may be usefull.
REMEMBER BACKUP, BACKUP AND BACKUP
I am not a coder. OSC has a steep learning curve, but in general the program does work. If it doesnt work, the chances are it is something you have done.

#46 Juto

  • Community Member
  • 252 posts
  • Real Name:Sara
  • Gender:Female

Posted 08 February 2011, 22:08

View Postspooks, on 12 April 2010, 23:15, said:

Again, nothing to do with this, changes only apply when editing products!!

Have you fixed the standard bug in categories re category images (same issue as for manufacturers).
Hi Sam... which are the standard bugs you mentioned?

Just two questions, in: admin/categories
// BOF instant update & image directory
$images_dir = DIR_WS_IMAGES; // default catalog images folder;
$exclude_folders = array("banners","default","icons","mail","buttons","infobox","js"); // catalog/images subfolders to exclude from adding new images
$root_images_dir = DIR_FS_CATALOG . $images_dir;
$new_dir = preg_replace('/[^a-zA-Z0-9_.-]/i', '_',$_POST['new_directory']); 'new_directory'<-----------Reported as undefined index
$dir = (tep_not_null($new_dir) ? $new_dir : $_POST['directory']); 'directory'<-----------Reported as undefined index

Is there a fix?
PS about my error-debugger see post below
Sara

Edited by Juto, 08 February 2011, 22:09.


#47 Juto

  • Community Member
  • 252 posts
  • Real Name:Sara
  • Gender:Female

Posted 08 February 2011, 22:11

View Post14steve14, on 08 January 2011, 20:40, said:

Will this contribution work with 2.3.1. Its something that may be usefull.

Hello Steve, I've have it almost done, just need a "tiny" fix...
I have it on test on my dev site an upgrade from RC2a --> V2.3 so I expect it to work with 2.3.1 as well

Sara

#48 chikson

  • Community Member
  • 2 posts
  • Real Name:Aleksandar

Posted 22 March 2011, 15:29

Did anybody try on version 2.3.1?

Edited by chikson, 22 March 2011, 15:30.


#49 ianric

  • Community Member
  • 373 posts
  • Real Name:Ian Richardson
  • Gender:Male
  • Location:Manchester, UK

Posted 04 May 2011, 13:05

Hiya

I'm trying to get this working with admin category paging but it errors when clicking on the >> for next page

Warning: reset() expects parameter 1 to be array, boolean given in C:\xampp\htdocs\adminplanetfdsD68BBA81\includes\classes\object_info.php on line 17

Warning: Variable passed to each() is not an array or object in C:\xampp\htdocs\adminplanetfdsD68BBA81\includes\classes\object_info.php on line 18

The URL looks like localhost/admin_folder/categories.php?cPath=145&action=new_product_preview&page=2 and I think the "&action=new_product_preview" needs to be removed but I can't find how.

Can someone help with getting this to work. I have the "update without preview" checkbox checked by default so what I'm after is to pick on the Preview button then go back to previous page without "&action=new_product_preview" being added to the URL


Many thanks in advance

Ian

Edited by ianric, 04 May 2011, 13:07.


#50 ianric

  • Community Member
  • 373 posts
  • Real Name:Ian Richardson
  • Gender:Male
  • Location:Manchester, UK

Posted 04 May 2011, 14:20

View Postianric, on 04 May 2011, 13:05, said:

Hiya

I'm trying to get this working with admin category paging but it errors when clicking on the >> for next page

Warning: reset() expects parameter 1 to be array, boolean given in C:\xampp\htdocs\adminplanetfdsD68BBA81\includes\classes\object_info.php on line 17

Warning: Variable passed to each() is not an array or object in C:\xampp\htdocs\adminplanetfdsD68BBA81\includes\classes\object_info.php on line 18

The URL looks like localhost/admin_folder/categories.php?cPath=145&action=new_product_preview&page=2 and I think the "&action=new_product_preview" needs to be removed but I can't find how.

Can someone help with getting this to work. I have the "update without preview" checkbox checked by default so what I'm after is to pick on the Preview button then go back to previous page without "&action=new_product_preview" being added to the URL


Many thanks in advance

Ian

Solved. The install instructions say

Find(324):

 tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products_id));
				

Replace with:

// instant update  redirect not needed + it stops messages.
 //tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products_id));
// EOF instant update

This line needs to be kept in. ie SKIP this step if using admin category paging. Works for me so hope this helps others


Cheers

Ian

#51 lmjacques

  • Community Member
  • 99 posts
  • Real Name:Lyndon
  • Gender:Male
  • Location:United Kingdom

Posted 29 May 2011, 18:00

I have tried using this on osCommerce V2.3.1 but for some reason when ever I try to upload new images even if I select a directory it only uploads the images to the main images box. Did anyone get it working with V2.3.1

Cheers

#52 gfasal

  • Community Member
  • 342 posts
  • Real Name:George
  • Gender:Male
  • Location:Sevilla, Spain

Posted 10 June 2011, 13:37

CAN SOME ONE POST BOTH PHP FILES UP PLEASE.

Need a fully working version for 2.3.1

FROM THE INSTRUCTIONS:

Find(366)

case 'new_product_preview':
// copy image only if modified
$products_image = new upload('products_image');
$products_image->set_destination(DIR_FS_CATALOG_IMAGES);
if ($products_image->parse() && $products_image->save()) {
$products_image_name = $products_image->filename;
} else {
$products_image_name = (isset($HTTP_POST_VARS['products_previous_image']) ? $HTTP_POST_VARS['products_previous_image'] : '');
}
break;

-------------------------------

This doe not appear in my code, so finding and replacing it is not possible.


ANY HINTS OUT THERE PEEPS- I NEED THIS ADDON BIG TIME!
OSC 2.3.1
INSTALLED:Document Manager / Monthly Sales and Tax Returns / Batch Print Invoices / Ultimate HTML EMAILs / AJAX Attribute Manager / OSC PDF Catalog / Move Bookmarks / Sort Order / Easy Populate / Sales Reports / Low Stock Report / Admin: Model # on Category / Product Administration Screen / Mini images in admin / SLiCK reCaptcha / Google + / Beautiful Breadcrumbs / 2.3.1 - Banner Language Mod / ADD New Page / EASY MAP (google) v.3.0 / Who's Online Enhancement for 2.3.1 / Admin Notes / scrambled order number / remove_unused_images / Quantity Select / Unit Weight / Product Specifions (filter results) / AJAX Product Attributes/ Attribute Codes/ Date & Order No. to Invoice/ O.P.I. 2.0 / Attribute Images / Manual Order Editor / Attributes Clone / Order Editor / Create Order / Company VAT No. / Add customer/ CKEditor 2.3.1 / Page Manager / Default images via admin / Percentage Shipping Price / QTPro / Scroll to Top / PDF Invoice / Featured Products / Product Listing Enhancements / AutoBackups / ..Custom Admin Mods /

#53 ecommforum

  • Community Member
  • 10 posts
  • Real Name:shandy

Posted 19 October 2011, 15:53

View Post14steve14, on 08 January 2011, 20:40, said:

Will this contribution work with 2.3.1. Its something that may be usefull.
Hi..did u find something useful for 2.3.1???..thanks

#54 ecommforum

  • Community Member
  • 10 posts
  • Real Name:shandy

Posted 19 October 2011, 15:56

Did someone know what should I do if I have 2.3.1 .......I want to use this but its not working on 2.3.1....thanks in advance

#55 vprasinos

  • Community Member
  • 10 posts
  • Real Name:Vas

Posted 27 October 2011, 11:33

I have also been looking for a solution. What changes need to be made for this to work with 2.3.1?

#56 vprasinos

  • Community Member
  • 10 posts
  • Real Name:Vas

Posted 27 October 2011, 11:42

Never mind, found it here http://addons.oscommerce.com/info/8150/v,23
Will try to see if it works ok

#57 vprasinos

  • Community Member
  • 10 posts
  • Real Name:Vas

Posted 27 October 2011, 15:31

Works in my test environment (wamp) but not fully in Apache on my server. The reason is because the script creates the folders with owner 'apache' and mod 500 and as a result the images cannot be uploaded into. Is there any way to create folders with user credentials that work? What needs to be changed?

#58 dreamwalker

  • Community Member
  • 35 posts
  • Real Name:Fabrizio Minnielli

Posted 11 November 2011, 09:57

On the new folder in admin/languages/english/categories.php it says Parse error: syntax error, unexpected T_STRING
The version is 2.0 and it says works on 2.3.1 and are corrected in language, but it gives me the error. Where can be the problem?
Anyway if the developer contact me, I have a GREAT modification that would be useful for ALL people. But I need a little help to fix it, since I'm not a programmer.

//BOF Select Product Image Directory
define('TEXT_PRODUCTS_DIRECTORY_DONT_EXIST_1', 'ERROR - The provided \'images\' directory ');
define('TEXT_PRODUCTS_DIRECTORY_DONT_EXIST_2', ' does not exist on the server!!.');
define('TEXT_PRODUCTS_IMAGE_DIRECTORY', 'Image Directory:');
define('TEXT_PRODUCTS_IMAGE_ROOT_DIRECTORY', 'Default Folder);
define('TEXT_PRODUCTS_IMAGE_NEW_FOLDER', 'New Folder: '); HERE IT SAYS THERE'S ERROR.
define('TEXT_PRODUCTS_UPDATE_PRODUCT', 'Update');
define('TEXT_PRODUCTS_INSERT_PRODUCT', 'Insert');
define('TEXT_PRODUCTS_WITHOUT_PREVIEW', ' without preview ');
define('SUCCESS_CREATED_DIRECTORY', 'Folder %s created in %s.', 'success');
//EOF Select Product Image Directory

#59 Dager

  • Community Member
  • 9 posts
  • Real Name:Artur

Posted 29 December 2011, 12:30

Check the line before, << ' >> is missing at the end of the line:

define('TEXT_PRODUCTS_IMAGE_ROOT_DIRECTORY', 'Default Folder);
fix:
define('TEXT_PRODUCTS_IMAGE_ROOT_DIRECTORY', 'Default Folder');

#60 kozak

  • Community Member
  • 66 posts
  • Real Name:Kozak
  • Gender:Male
  • Location:Antwerp Belgium

Posted 09 February 2012, 02:44

like Dager say's is just one missing character. The right code must be :
IN Admin/includes/languages/english/categories.php
************************************************************************************************
***Before the final '?>': ***
 
***Add:***
//BOF Select Product Image Directory
define('TEXT_PRODUCTS_DIRECTORY_DONT_EXIST_1', 'ERROR ERROR - The provided \'images\' directory ');
define('TEXT_PRODUCTS_DIRECTORY_DONT_EXIST_2', ' does not exist on the server!!.');
define('TEXT_PRODUCTS_IMAGE_DIRECTORY', 'Image Directory:');
define('TEXT_PRODUCTS_IMAGE_ROOT_DIRECTORY', 'Default Folder');
define('TEXT_PRODUCTS_IMAGE_NEW_FOLDER', 'New Folder: ');
define('TEXT_PRODUCTS_UPDATE_PRODUCT', 'Update');
define('TEXT_PRODUCTS_INSERT_PRODUCT', 'Insert');
define('TEXT_PRODUCTS_WITHOUT_PREVIEW', ' without preview ');
define('SUCCESS_CREATED_DIRECTORY', 'Folder %s created in %s.', 'success');
//EOF Select Product Image Directory