Jump to content
Sign in to follow this  
MaxiDVD

[SUPPORT] HTML Editor and UltraPics by MaxiDVD

Recommended Posts

Hi there,

 

on the contrib page there are now many files, is it possible to combine the absolut latest version in one package?

 

Not sure which to download...

 

Thank you for your help. :blush:


Espen Falkenhaug

Share this post


Link to post
Share on other sites

http://www.oscommerce.com/community/contributions,1347

 

I took the third one from 10 sept 2003 + Replace Product Image uploader v0.1 15.sept 2003

 

 

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

 

 

here is my configure.php........:

 

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'https://mydomain.net'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://mydomain.net'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'mydomain.net');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

define('DIR_WS_IMAGES', 'https://mydomain.net/catalog/images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/var/www/mydomain/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');


just create...and sell..sell...sell.....

Share this post


Link to post
Share on other sites

Hi,

 

All is installed and working fine, exept one little thing;

 

The text I input in define_maine_page in the admin does not update the front of the website.

 

Anyone, any ideas????


Espen Falkenhaug

Share this post


Link to post
Share on other sites

Look in the instructions about the changes to /catalog/index.php

 

You probably didnt tell it to include the file:

<td class="main"><?php include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFINE_MAINPAGE); ?></td>

Share this post


Link to post
Share on other sites
Look in the instructions about the changes to /catalog/index.php

 

You probably didnt tell it to include the file:

<td class="main"><?php include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFINE_MAINPAGE); ?></td>

 

 

Got it. Thank you...

 

Got a bit of an issue with the popup image of products.

 

Have a look here http://big-8.nl/new/product_info.php?cPath...products_id=201, and click on image to inlarge.

 

See the popup???

 

Anyone any ideas???


Espen Falkenhaug

Share this post


Link to post
Share on other sites

do not use this file because you are using STS. This is just to give you a pointer as to where the problem lies. Your popup_image.php file seems to have too much stuff in it that is calling things into it that are not necessary.....

 

here is a popup_image.php file from the stock OSC. You'll notice it has slimmed down code so that it doesnt call in a bunch of page layout stuff. It also has the resize stuff so the window will resize itself to accomodate for larger images if necessary..... maybe your copy from STS got corrupted or overwritten by something....

 

<?php
/*
 $Id: popup_image.php,v 1.18 2003/06/05 23:26:23 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');

 $navigation->remove_current_page();

 $products_query = tep_db_query("select pd.products_name, p.products_image, p.products_image_pop from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "' and pd.language_id = '" . (int)$languages_id . "'");
 $products = tep_db_fetch_array($products_query);
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title><?php echo $products['products_name']; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<script language="javascript"><!--
var i=0;
function resize() {
 if (navigator.appName == 'Netscape') i=40;
 if (document.images[0]) window.resizeTo(document.images[0].width +30, document.images[0].height+60-i);
 self.focus();
}
//--></script>
</head>
<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" onLoad="resize();">
<?php 
if ($products['products_image_pop']== NULL ) {echo tep_image(DIR_WS_IMAGES . $products['products_image'], $products['products_name']);
} else {echo tep_image(DIR_WS_IMAGES . DIR_FS_CATALOG_IMAGES_BIG . $products['products_image_pop'], $products['products_name'], POPUP_IMAGE_WIDTH, POPUP_IMAGE_HEIGHT);};
?>
</body>
</html>
<?php require('includes/application_bottom.php'); ?>

Share this post


Link to post
Share on other sites

Hi there

 

I installed this great contribution but I am having some difficulty in uploading my items through the easy populate contribution.

 

Here is the error I receive.

 

Easy Populate 2.76-MS2 - Default Language : English(1)

 

 

Warning: move_uploaded_file(..//temp/test.txt): failed to open stream: No such file or directory in D:\hshome\ctaint\citaras.com\admin\easypopulate_functions.php on line 32

 

Warning: move_uploaded_file(): Unable to move 'C:\WINNT\TEMP\php224.tmp' to '..//temp/test.txt' in D:\hshome\ctaint\citaras.com\admin\easypopulate_functions.php on line 32

 

File uploaded.

Temporary filename: C:\WINNT\TEMP\php224.tmp

User filename: test.txt

Size: 2612

 

Warning: file(..//temp/test.txt): failed to open stream: No such file or directory in D:\hshome\ctaint\citaras.com\admin\easypopulate.php on line 673

 

Warning: Invalid argument supplied for foreach() in D:\hshome\ctaint\citaras.com\admin\easypopulate.php on line 696

 

 

Has anyone encountered a similar problem.

 

How can we solve this issue.

 

Currently I can't upload any files using easy populate

Share this post


Link to post
Share on other sites

I have been using this for some time now and it works great but I have a problem with images not being resized, is there anythig that can be added to resize images for this contribution?

Share this post


Link to post
Share on other sites

Maxi,

 

I have installed the 1.7 version of WYSIWYG, and the problem I am facing is I do not get any of the editor windows in categories.php file when initially adding product description, I have 3 languages on my website, English, Spanish and German, once I click on preview is only when I am able to see the editing windows.

 

However, the HTML editor works fine for email and newsletter. I have checked the source code and everything is between <html> </html>. I use IE 6.0 to access my website.

 

Any and All help would be really appreciated.

 

Thanks

Share this post


Link to post
Share on other sites

Im wondering if anyone knows how to get the html area working under Firefox?

 

Its working fine under IE but not firefox

 

Is there a fix or a cross browser alternative?

Share this post


Link to post
Share on other sites

guys, does anyone know why the html editior doesnt show up after I transfer my store from local computer to webserver?


Don't die with the music in you!!!

 

Failure is just another boundary to sucess!!! But that doesn't mean your getting somewhere...

Share this post


Link to post
Share on other sites

Great contrib, but I've encountered a bug in /admin/includes/classes/upload.php.

 

I'm using MS2 on a LAMP-Installation with php5 and mysql 4.

 

I think it is a php5-related problem.

 

With this uploaded on my box, the admin-page is blank. With the old file all is fine.

Share this post


Link to post
Share on other sites

Hi,

 

I have installed it fine but when using the image manager it loads up the image file list fine but when clicking on the filename I get an 'access denied' javascript error. The preview pic show ok but the url link at the bottom

stays as "http://".

 

Using a script debugger the problem seem to be in the line:

 

var manager = findAncestor(window.frameElement, 'manager', 'TABLE');

 

that comes from lister.php, an it's the window.frameElement that has access denied.

 

Any ideas how to remedy this?

 

Thanks,

Tom

Share this post


Link to post
Share on other sites

Error

SQL query:

INSERT INTO configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function )
VALUES (
'', 'Large Image Width (Pop-up)', 'LARGE_IMAGE_WIDTH', , 'The pixel width of large images (Pop-up)<br>(Use 0 for non-specific size)', 4, 32, now( ) , now( ) , NULL , NULL
)

MySQL said: Documentation
#1064 - You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near ' 'The pixel width of large images (Pop-up)<br>(Use 0 for non-sp

I get that error when I run that SQL query, or the one after it. All the others work perfectly. Any suggestions?

Thanks.

Share this post


Link to post
Share on other sites
Im wondering if anyone knows how to get the html area working under Firefox?

 

Its working fine under IE but not firefox

 

Is there a fix or a cross browser alternative?

 

 

I believe htmlarea2 only works on IE. You would have to upgrade to another version. It was described many posts ago in this thread so you may want to do a search. I need it to. If i find it, I'll let you know.

Edited by Bruin_03

Share this post


Link to post
Share on other sites

When I use WYSIWG HTML editor when inserted images into the htmlarea, the insert image function always adds a full url like this:

 

http://www.mydomain.com/catalog/images/folder/image.gif

 

or

 

https://www.mydomain.com/catalog/images/folder/image.gif

 

if I have accessed the admin through https

 

When I use the html editor to add pics, in the product image section (below product description area) the editor generate function receives the following configuration:

 

config.OscImageRoot = '<?= trim(HTTP_SERVER . DIR_WS_CATALOG_IMAGES) ?>';

 

which strips off http://www.mydomain.com/catalog/images/

 

I would like to do the same for the text area so that images read <img="/catalog/images/folder/image.gif" ...

so that it doesn't interfere with either http or https.

 

in which case it would read

 

config.OscImageRoot = '<?= trim(HTTP_SERVER . DIR_WS_CATALOG) ?>';

 

but I am not sure where and how to put this in editor_basic.js and editor_advanced.js files.

 

 

Help much appreciated.

 

Rob.

Share this post


Link to post
Share on other sites
Hi there

 

I installed this great contribution but I am having some difficulty in uploading my items through the easy populate contribution.

 

Here is the error I receive.

 

Easy Populate 2.76-MS2 - Default Language : English(1)

 

 

Warning: move_uploaded_file(..//temp/test.txt): failed to open stream: No such file or directory in D:\hshome\ctaint\citaras.com\admin\easypopulate_functions.php on line 32

 

Warning: move_uploaded_file(): Unable to move 'C:\WINNT\TEMP\php224.tmp' to '..//temp/test.txt' in D:\hshome\ctaint\citaras.com\admin\easypopulate_functions.php on line 32

 

File uploaded.

Temporary filename: C:\WINNT\TEMP\php224.tmp

User filename: test.txt

Size: 2612

 

Warning: file(..//temp/test.txt): failed to open stream: No such file or directory in D:\hshome\ctaint\citaras.com\admin\easypopulate.php on line 673

 

Warning: Invalid argument supplied for foreach() in D:\hshome\ctaint\citaras.com\admin\easypopulate.php on line 696

 

 

Has anyone encountered a similar problem.

 

How can we solve this issue.

 

Currently I can't upload any files using easy populate

 

As an easypopulate user, I am also interested in compatability resolve of this contribution. Anyone to share experience or suggestions?

Share this post


Link to post
Share on other sites

Hey, I got a problem. I installed a clean version of OSC 2.2 and then I added the Easy Populate 2.75 plugin. It seems to work so I added the Image_Html_Package 1.2.1 but now when I click on a produkt i get:

 

1054 - Unknown column 'p.products_image_med' in 'field list'

 

select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, p.products_image_med, p.products_image_lrg, p.products_image_sm_1, p.products_image_xl_1, p.products_image_sm_2, p.products_image_xl_2, p.products_image_sm_3, p.products_image_xl_3, p.products_image_sm_4, p.products_image_xl_4, p.products_image_sm_5, p.products_image_xl_5, p.products_image_sm_6, p.products_image_xl_6, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from products p, products_description pd where p.products_status = '1' and p.products_id = '27' and pd.products_id = p.products_id and pd.language_id = '1'

 

[TEP STOP]

 

 

I think I did everything right when I added it, but...What the heck happend?!? The menues in "Configuration" dosen't show either.

 

Any ideas about what I did wrong?

Share this post


Link to post
Share on other sites

Can somebody help me:

 

I am not able to make new folders or upload images, I am getting the following message:

 

File ..... could not be created

Folder ...... could not be created

Share this post


Link to post
Share on other sites
Hey, I got a problem. I installed a clean version of OSC 2.2 and then I added the Easy Populate 2.75 plugin. It seems to work so I added the Image_Html_Package 1.2.1 but now when I click on a produkt i get:

 

1054 - Unknown column 'p.products_image_med' in 'field list'

 

select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, p.products_image_med, p.products_image_lrg, p.products_image_sm_1, p.products_image_xl_1, p.products_image_sm_2, p.products_image_xl_2, p.products_image_sm_3, p.products_image_xl_3, p.products_image_sm_4, p.products_image_xl_4, p.products_image_sm_5, p.products_image_xl_5, p.products_image_sm_6, p.products_image_xl_6, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from products p, products_description pd where p.products_status = '1' and p.products_id = '27' and pd.products_id = p.products_id and pd.language_id = '1'

 

[TEP STOP]

 

 

I think I did everything right when I added it, but...What the heck happend?!? The menues in "Configuration" dosen't show either.

 

Any ideas about what I did wrong?

 

You have had this working with EP? Cool, then there is hope for my scope yet!

 

I may not know the exact terminology for you but I know how to help you if you can access your SQL database through phpMyAdmin... look in your OSC database for the "products" table... there should be an entry for image_med -look for the others listed in that message to make sure you are in the right place, if it is not there you will need to run a query to add it. (as a side note I strongly suggest this is associated with your Image HTML Package so there should be an SQL query instruction within the install file to reference on what exactly to paste into your query window and run). Best of luck!

Share this post


Link to post
Share on other sites

I have a really big problem with HTML newsletters and the wysiwyg html contribution.

When I build a newsletter in html (wysiwyg or manually coded) osc adds some extra '<br>s' (or line feeds) to the html source code, messing up the whole newsletter.

The problem seems to be, that every new line in the editor filed (the 'textarea' field) a '<br>' is inserted automatically. That might be usefull when creating text newsletters but it is useless for html.

 

has anyone a solution for that problem?

Share this post


Link to post
Share on other sites

My website host has informed me not to upload NETPBM due to a Security Risk. With this info, I cannot use the full contrib. Has this issue been explored by the guys involved with this contrib.

 

I have included the email message sent to me from my host.

24-7webs.com

 

 

 

From the sourceforge site.

 

As is common in C programming, many Netpbm programs were written with the assumption that inputs aren't such that they cause the program to attempt to compute values that cannot be represented in the data structure the program uses. For example, you might supply an input image that is 1 million columns wide by 1 million rows tall. The program might naively attempt to multiply those values together and represent the result in a 32 bit integer structure. Since the real product is too large to represent in 32 bits, the naive C code actually computes a different number, without recognizing any kind of error.

 

Such an overflow can cause an untold variety of program failures. A typical example is that the program uses the bogus number as the amount of storage that needs to be allocated for an array. It thus allocates too little storage for the array. A subsequent reference to an element in the array thus references arbitrary storage that has nothing to do with that array.

 

This could conceivably be a security exposure.


I like these mods, there fun! ...65 70 72 75 80 85 125+ contributions installed and counting...

 

Tools I'm using: OSC2.2 milestone2, Filezilla for FTP, PHP Designer 2007PE (nice), Araxis Merge 6.5 to compare files, XP(my box), Remote Server is shared Apache 1.3 Cpanel, CURL, and PHPmyAdmin through my hosts Cpanel to mess up the database.

Share this post


Link to post
Share on other sites

After i installed WYSIWYG Editor i made a couple of product description pages.

Everything seems to be working fine except that when i go to the product description my pop up link (click to enlarge) or (ask a question) arent links anymore and just appear as text, am also not able to copy the image or the text of the (Click to enlarge).

 

Any help on this is greatly Appreciated

Please

Thanks in Advance

Eddie

Share this post


Link to post
Share on other sites

Is anyone going to respond to the SECURITY CONCERN about NETPBM!!!


I like these mods, there fun! ...65 70 72 75 80 85 125+ contributions installed and counting...

 

Tools I'm using: OSC2.2 milestone2, Filezilla for FTP, PHP Designer 2007PE (nice), Araxis Merge 6.5 to compare files, XP(my box), Remote Server is shared Apache 1.3 Cpanel, CURL, and PHPmyAdmin through my hosts Cpanel to mess up the database.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×