Select Product Image Directory & Instant Update For Products
#41
Posted 12 April 2010, 22:13
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
Posted 12 April 2010, 23:15
Juto, 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
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]
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
Posted 13 April 2010, 07:22
spooks, 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...
Thanks for your swift and clarifying answers
Sara
#44
Posted 27 December 2010, 21:51
i just installed this contribution and i can say it's a great thing to have on your shop. Just i have one question
#45
Posted 08 January 2011, 20:40
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
Posted 08 February 2011, 22:08
spooks, on 12 April 2010, 23:15, said:
Have you fixed the standard bug in categories re category images (same issue as for manufacturers).
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
Posted 08 February 2011, 22:11
14steve14, on 08 January 2011, 20:40, said:
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
Posted 22 March 2011, 15:29
Edited by chikson, 22 March 2011, 15:30.
#49
Posted 04 May 2011, 13:05
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
Posted 04 May 2011, 14:20
ianric, on 04 May 2011, 13:05, said:
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
Posted 29 May 2011, 18:00
Cheers
#52
Posted 10 June 2011, 13:37
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!
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 /
#54
Posted 19 October 2011, 15:56
#55
Posted 27 October 2011, 11:33
#56
Posted 27 October 2011, 11:42
Will try to see if it works ok
#57
Posted 27 October 2011, 15:31
#58
Posted 11 November 2011, 09:57
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
Posted 29 December 2011, 12:30
define('TEXT_PRODUCTS_IMAGE_ROOT_DIRECTORY', 'Default Folder);
fix:
define('TEXT_PRODUCTS_IMAGE_ROOT_DIRECTORY', 'Default Folder');
#60
Posted 09 February 2012, 02:44
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














