Jump to content
Sign in to follow this  
spooks

FCK WYSIWYG HTML editor

Recommended Posts

Would I be best taking it off, reinstalling and then working through from the beginning and following all the instructions in the 2.7 txt file? To save any of my cocked up bit being in there.

Share this post


Link to post
Share on other sites

Probably best, there are'nt many changes after all.


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.

Share this post


Link to post
Share on other sites

Hi there,

 

I have a problem, the contrib works good except for the images,

 

I send an admin email out like this ;

 

<p><a href="http://www.tvoiata-kniga.com/newsletter/newsletter.pdf">www.tvoiata-kniga.com/newsletter/newsletter.pdf</a></p>
<p><a target="_blank" href="http://www.tvoiata-kniga.com"><img border="2" alt="newsletter" src="http://www.tvoiata-kniga.com/newsletter/newsletter.jpg" /></a><br />
<br />
<br />
<small>Molja, ne otgovarjajte na tozi e-mail.<br />
Ako imate njakakvi viprosi, pishete ni na:<br />
<br />
info@tvoiata-kniga.com</small></p>

 

And it comes out like this when it arrives at the email adres ;

 

www.tvoiata-kniga.com/newsletter/newsletter.pdf

Molja, ne otgovarjajte na tozi e-mail.
Ako imate njakakvi viprosi, pishete ni na:

info@tvoiata-kniga.com

 

Empty without a picture :(

 

How do i fix this ?

 

 

Here 2 pics of the steps;

 

1.gif

 

2.gif

Edited by palmatecnico

Share this post


Link to post
Share on other sites

As detailed in this thread, problem fixed with Send Admin HTML e-mails http://addons.oscommerce.com/info/5806


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.

Share this post


Link to post
Share on other sites
As detailed in this thread, problem fixed with Send Admin HTML e-mails http://addons.oscommerce.com/info/5806

 

I installed that contrib, still does not work.

 

Here i send you the mail.php files from admin.

 

<?php
/*
 $Id: mail.php,v 1.31 2003/06/20 00:37:51 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');

 $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');

 if ( ($action == 'send_email_to_user') && isset($HTTP_POST_VARS['customers_email_address']) && !isset($HTTP_POST_VARS['back_x']) ) {
switch ($HTTP_POST_VARS['customers_email_address']) {
  case '***':
	$mail_query = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS);
	$mail_sent_to = TEXT_ALL_CUSTOMERS;
	break;
  case '**D':
	$mail_query = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_newsletter = '1'");
	$mail_sent_to = TEXT_NEWSLETTER_CUSTOMERS;
	break;
  default:
	$customers_email_address = tep_db_prepare_input($HTTP_POST_VARS['customers_email_address']);

	$mail_query = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($customers_email_address) . "'");
	$mail_sent_to = $HTTP_POST_VARS['customers_email_address'];
	break;
}
	$from_name = tep_db_prepare_input($HTTP_POST_VARS['from_name']);
$from = tep_db_prepare_input($HTTP_POST_VARS['from']);
$subject = tep_db_prepare_input($HTTP_POST_VARS['subject']);
$messageraw = tep_db_prepare_input(stripslashes($HTTP_POST_VARS['message']));
$message = tep_add_base_ref($messageraw);

while ($mail = tep_db_fetch_array($mail_query)) {
	  tep_mail($mail['customers_firstname'] . ' ' . $mail['customers_lastname'], $mail['customers_email_address'], $subject, $message, $from_name, $from, true);
}

tep_redirect(tep_href_link(FILENAME_MAIL, 'mail_sent_to=' . urlencode($mail_sent_to)));
 }

 if ( ($action == 'preview') && !tep_not_null($HTTP_POST_VARS['customers_email_address']) ) {	// NO ADDRESS
$messageStack->add(ERROR_NO_CUSTOMER_SELECTED, 'error');
	tep_draw_hidden_field('back_x', '');

 }

 if (isset($HTTP_GET_VARS['mail_sent_to'])) {
$messageStack->add(sprintf(NOTICE_EMAIL_SENT_TO, $HTTP_GET_VARS['mail_sent_to']), 'success');
 }
?>
<!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 TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">
 <tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
	<td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
		<td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<?php
 if ( ($action == 'preview') && isset($HTTP_POST_VARS['customers_email_address']) ) {
switch ($HTTP_POST_VARS['customers_email_address']) {
  case '***':
	$mail_sent_to = TEXT_ALL_CUSTOMERS;
	break;
  case '**D':
	$mail_sent_to = TEXT_NEWSLETTER_CUSTOMERS;
	break;
  default:
	$mail_sent_to = $HTTP_POST_VARS['customers_email_address'];
	break;
}

?>
	  <tr><?php echo tep_draw_form('mail', FILENAME_MAIL, 'action=send_email_to_user'); ?>
		<td><table border="0" width="100%" cellpadding="0" cellspacing="2">
		  <tr>
			<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
		  </tr>
		  <tr>
			<td class="smallText"><b><?php echo TEXT_CUSTOMER; ?></b><br><?php echo $mail_sent_to; ?></td>
		  </tr>
						<tr>
			<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
		  </tr>
		  <tr>
			<td class="smallText"><b><?php echo TEXT_FROM; ?></b><br><?php echo htmlspecialchars(stripslashes($HTTP_POST_VARS['from_name'])); ?></td>
		  </tr>
		  <tr>
			<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
		  </tr>
		  <tr>
			<td class="smallText"><b><?php echo TEXT_FROM_EMAIL; ?></b><br><?php echo htmlspecialchars(stripslashes($HTTP_POST_VARS['from'])); ?></td>
		  </tr>
		  <tr>
			<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
		  </tr>
		  <tr>
			<td class="smallText"><b><?php echo TEXT_SUBJECT; ?></b><br><?php echo htmlspecialchars(stripslashes($HTTP_POST_VARS['subject'])); ?></td>
		  </tr>
		  <tr>
			<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
		  </tr>
		  <tr>
			<td class="smallText"><b><?php echo TEXT_MESSAGE; ?></b><br><?php echo stripslashes($HTTP_POST_VARS['message']); ?></td>
		  </tr>
		  <tr>
			<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
		  </tr>
		  <tr>
			<td>
<?php
/* Re-Post all POST'ed variables */
reset($HTTP_POST_VARS);
while (list($key, $value) = each($HTTP_POST_VARS)) {
  if (!is_array($HTTP_POST_VARS[$key])) {
		  echo tep_draw_hidden_field($key, htmlspecialchars(stripslashes($value))); 
  }
}
?>
			<table border="0" width="100%" cellpadding="0" cellspacing="2">
			  <tr>
				<td align="center"><?php echo tep_image_submit('button_back.gif', IMAGE_BACK, 'name="back"'); echo tep_draw_separator('pixel_trans.gif', '30', '10') . '<a href="' . tep_href_link(FILENAME_MAIL) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a> '; if (tep_not_null($HTTP_POST_VARS['customers_email_address'])) {echo tep_draw_separator('pixel_trans.gif', '30', '10') .  tep_image_submit('button_send_mail.gif', IMAGE_SEND_EMAIL);} ?></td>
			  </tr>
			</table></td>
		  </tr>
		</table></td>
	  </form></tr>
<?php
 } else {
?>
	  <tr><?php echo tep_draw_form('mail', FILENAME_MAIL, 'action=preview'); ?>
		<td><table border="0" cellpadding="0" cellspacing="2">
		  <tr>
			<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
		  </tr>
<?php 
$customers = array();
$customers[] = array('id' => '', 'text' => TEXT_SELECT_CUSTOMER);
$customers[] = array('id' => '***', 'text' => TEXT_ALL_CUSTOMERS);
$customers[] = array('id' => '**D', 'text' => TEXT_NEWSLETTER_CUSTOMERS);
$mail_query = tep_db_query("select customers_email_address, customers_firstname, customers_lastname from " . TABLE_CUSTOMERS . " order by customers_lastname");
while($customers_values = tep_db_fetch_array($mail_query)) {
  $customers[] = array('id' => $customers_values['customers_email_address'],
					   'text' => $customers_values['customers_lastname'] . ', ' . $customers_values['customers_firstname'] . ' (' . $customers_values['customers_email_address'] . ')');
} 


?>
		  <tr>
			<td class="main" width="90"><?php echo TEXT_CUSTOMER; ?></td>
			<td><?php echo tep_draw_pull_down_menu('customers_email_address', $customers, (isset($HTTP_GET_VARS['customer']) ? $HTTP_GET_VARS['customer'] : ''));?></td>
		  </tr>
		  <tr>

			<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo TEXT_FROM; ?></td>
			<td><?php echo tep_draw_input_field('from_name', STORE_NAME,'size="80"'); ?></td>
		  </tr>
						<tr>
			<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
		  </tr>
						<tr>
			<td class="main"><?php echo TEXT_FROM_EMAIL; ?></td>
			<td><?php echo tep_draw_input_field('from', EMAIL_FROM,'size="80"'); ?></td>
		  </tr>
		  <tr>
			<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo TEXT_SUBJECT; ?></td>
			<td><?php echo tep_draw_input_field('subject','','size="80"'); ?></td>
		  </tr>
		  <tr>
			<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
		  </tr>
		  <tr><?php 

						if (tep_not_null($HTTP_POST_VARS['message'])) {
						$message = (stripslashes($HTTP_POST_VARS['message'])); 
						} else {
						$message = TEXT_DEFAULT_EMAILNEWSLETTER;} ?>  
			<td valign="top" class="main"><?php echo TEXT_MESSAGE; ?></td>
			<td><?php echo tep_draw_fckeditor('message','800','1000',$message); ?></td>
		  </tr>
		  <tr>
			<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
		  </tr>
		  <tr>
			<td colspan="2" align="right"><?php echo tep_image_submit('button_send_mail.gif', IMAGE_SEND_EMAIL); ?></td>
		  </tr>
		</table></td>
	  </form></tr>
<?php
 }
?>
<!-- body_text_eof //-->
	</table></td>
  </tr>
</table></td>
 </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Share this post


Link to post
Share on other sites

Double check youir install, that works, u missed smthing.

 

put an example of mail recieved after you double check your install


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.

Share this post


Link to post
Share on other sites

Has anyone else come across this problem where FCK editor sticks a load of extra </br>'s into the body text every time you edit a news post?

 

It's really annoying.

Share this post


Link to post
Share on other sites

Newsletter mhas other issues due to the way osC deals with the content.

 

This may help http://addons.oscommerce.com/info/4429


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.

Share this post


Link to post
Share on other sites

I have searched this thread and others, so apologies if this has already been covered.

 

I installed FCK along with the CMS contribution. What I would like to do is use both to enbale shop-keepers to update their front page easily - without having to go search for the php file and change it in code.

 

Has anyone got a solution for that?

 

Any help appreciated

Share this post


Link to post
Share on other sites
Newsletter mhas other issues due to the way osC deals with the content.

 

This may help http://addons.oscommerce.com/info/4429

 

Actually, it's Newsdesk mainly, but when I added the editor to categories it came up with the same problem.

 

To be honest, I find WYSIWYG editors a pain in the neck because they slow the page down so much, but the client doesn't speak HTML, so the site needs it.

Share this post


Link to post
Share on other sites

Everything works fine. The only problem is the already discussed image problem. When I try to access the image folder an error message appears saying that the directory can't be created.

 

Any ideas ? I have too the same problem when i try add a flash.

Share this post


Link to post
Share on other sites

check permissions

 

try creating userfiles directory manually.


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.

Share this post


Link to post
Share on other sites
check permissions

 

try creating userfiles directory manually.

 

in catalog/images i get a 777 chmod. could you tell me which and where i should create the directory (read: path). And any changes in config.php in catalog php ?

 

Best regards

Czarek

Share this post


Link to post
Share on other sites

in catalog

 

all necessary changes are detailed in the install


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.

Share this post


Link to post
Share on other sites

$Config['AllowedExtensions']['File']	= array('7z', 'aiff', 'asf', 'avi', 'bmp', 'csv', 'doc', 'fla', 'flv', 'gif', 'gz', 'gzip', 'jpeg', 'jpg', 'mid', 'mov', 'mp3', 'mp4', 'mpc', 'mpeg', 'mpg', 'ods', 'odt', 'pdf', 'png', 'ppt', 'pxd', 'qt', 'ram', 'rar', 'rm', 'rmi', 'rmvb', 'rtf', 'sdc', 'sitd', 'swf', 'sxc', 'sxw', 'tar', 'tgz', 'tif', 'tiff', 'txt', 'vsd', 'wav', 'wma', 'wmv', 'xls', 'xml', 'zip');
$Config['DeniedExtensions']['File']		= array();
$Config['FileTypesPath']['File']		= $Config['UserFilesPath'] . 'file/';
$Config['FileTypesAbsolutePath']['File']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'file/';
$Config['QuickUploadPath']['File']		= $Config['UserFilesPath'];
$Config['QuickUploadAbsolutePath']['File']= $Config['UserFilesAbsolutePath'];

$Config['AllowedExtensions']['Image']	= array('bmp','gif','jpeg','jpg','png');
$Config['DeniedExtensions']['Image']	= array();
$Config['FileTypesPath']['Image']		= $Config['UserFilesPath'] . 'images/';
$Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'images/';
$Config['QuickUploadPath']['Image']		= $Config['UserFilesPath'] . 'images/';
$Config['QuickUploadAbsolutePath']['Image']= $Config['UserFilesAbsolutePath'] . 'images/';

$Config['AllowedExtensions']['Flash']	= array('swf','flv');
$Config['DeniedExtensions']['Flash']	= array();
$Config['FileTypesPath']['Flash']		= $Config['UserFilesPath'] . 'flash/';
$Config['FileTypesAbsolutePath']['Flash']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'flash/';
$Config['QuickUploadPath']['Flash']		= $Config['UserFilesPath'];
$Config['QuickUploadAbsolutePath']['Flash']= $Config['UserFilesAbsolutePath'];

$Config['AllowedExtensions']['Media']	= array('aiff', 'asf', 'avi', 'bmp', 'fla', 'flv', 'gif', 'jpeg', 'jpg', 'mid', 'mov', 'mp3', 'mp4', 'mpc', 'mpeg', 'mpg', 'png', 'qt', 'ram', 'rm', 'rmi', 'rmvb', 'swf', 'tif', 'tiff', 'wav', 'wma', 'wmv');
$Config['DeniedExtensions']['Media']	= array();
$Config['FileTypesPath']['Media']		= $Config['UserFilesPath'] . 'media/';
$Config['FileTypesAbsolutePath']['Media']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'media/';
$Config['QuickUploadPath']['Media']		= $Config['UserFilesPath'];
$Config['QuickUploadAbsolutePath']['Media']= $Config['UserFilesAbsolutePath'];

 

ok, i have this settings in my config.php. please help me ... i have installed shop in public_html.

Share this post


Link to post
Share on other sites

Where's the rest?

 

including

 

 

 

$Config['UserFilesPath'] = '/catalog/userfiles/' ;

 

$Config['UserFilesAbsolutePath'] = '/home/mysite/public_html/catalog/userfiles/' ;

 

Perhaps best if u start again & follow the instructions more carefully.


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.

Share this post


Link to post
Share on other sites

Thanks, Spooks for all your help getting my FCKeditor installed, even my stupid typo!

 

anyway, I am trying to use images in the editor, and I am running across something that I wouldn't expect.

 

I have been using the "browse server" to add the images, because I keep all the images in separate directories /image/mfr1 image/mfr2 etc...

 

I can get to the images alright, but when I put them in, there is just a placemarker there, no actual image, when I go to the store, there is the image just right. BUT

 

If I go back to edit the description, there are no more placemarkers, (or pictures, as before), however, if I go to the source, they are showing in the HTML..

 

Come to think of it, if I insert an image, then go to source and come back, the placemarkers will dissapear even then.

 

Is there something that I am doing wrong with the images directory callouts? they seem like they are right, because I can browse to them in the "add images"function.

 

Any help would really be appreciated.

 

Regards,

Kurt

Share this post


Link to post
Share on other sites

Not a problem I've seen, have u checked your configure file?

 

Might help if u give an example of source code

 

If fck sees errors in the source it will correct, so it seems you are creating errors it is fixing?


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.

Share this post


Link to post
Share on other sites
Not a problem I've seen, have u checked your configure file?

 

Might help if u give an example of source code

 

If fck sees errors in the source it will correct, so it seems you are creating errors it is fixing?

 

Sam,

 

The code that it is putting in the description for the image is:

<p><img width="100" src="/shop/userfiles/../images/S&W/lawman.jpg" alt="" />

 

This does allow the image to show up in the product description of the website but I still get a broken tag in the editor. (only on the first shot) if I switch to source, and back, the broken link placeholder will be gone, if I go out of the editor and come back, it will be gone.

 

Is there some place that I have to set these locations for the editor itself?

 

Here is the config.php (without the big chunks of comments)

 

<?php


global $Config;

// SECURITY: You must explicitly enable this "connector". (Set it to "true").
// WARNING: don't just set "$Config['Enabled'] = true;", you must be sure that only
//		authenticated users can access this file or use some kind of session checking.
$Config['Enabled'] = true;


// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/shop/userfiles/';

// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Useful if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = '/usr/local/psa/home/vhosts/flashpointshop.com/httpdocs/shop/userfiles/';

// Due to security issues with Apache modules, it is recommended to leave the
// following setting enabled.
$Config['ForceSingleExtension'] = true;

// Perform additional checks for image files.
// If set to true, validate image size (using getimagesize).
$Config['SecureImageUploads'] = true;

// What the user can do with this connector.
$Config['ConfigAllowedCommands'] = array('QuickUpload', 'FileUpload', 'GetFolders', 'GetFoldersAndFiles', 'CreateFolder');

// Allowed Resource Types.
$Config['ConfigAllowedTypes'] = array('File', 'Image', 'Flash', 'Media');

// For security, HTML is allowed in the first Kb of data for files having the
// following extensions only.
$Config['HtmlExtensions'] = array("html", "htm", "xml", "xsd", "txt", "js");


$Config['ChmodOnUpload'] = 0755;


$Config['ChmodOnFolderCreate'] = 0755;



$Config['AllowedExtensions']['File']	= array('7z', 'aiff', 'asf', 'avi', 'bmp', 'csv', 'doc', 'fla', 'flv', 'gif', 'gz', 'gzip', 'jpeg', 'jpg', 'mid', 'mov', 'mp3', 'mp4', 'mpc', 'mpeg', 'mpg', 'ods', 'odt', 'pdf', 'png', 'ppt', 'pxd', 'qt', 'ram', 'rar', 'rm', 'rmi', 'rmvb', 'rtf', 'sdc', 'sitd', 'swf', 'sxc', 'sxw', 'tar', 'tgz', 'tif', 'tiff', 'txt', 'vsd', 'wav', 'wma', 'wmv', 'xls', 'xml', 'zip');
$Config['DeniedExtensions']['File']		= array();
$Config['FileTypesPath']['File']		= $Config['UserFilesPath'] . 'file/';
$Config['FileTypesAbsolutePath']['File']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'file/';
$Config['QuickUploadPath']['File']		= $Config['FileTypesPath']['File'];
$Config['QuickUploadAbsolutePath']['File']= $Config['FileTypesAbsolutePath']['File'];

$Config['AllowedExtensions']['Image']	= array('bmp','gif','jpeg','jpg','png');
$Config['DeniedExtensions']['Image']	= array();
$Config['FileTypesPath']['Image']		=  $Config['UserFilesPath'] . '../images/';
$Config['FileTypesAbsolutePath']['Image']  = ($Config['UserFilesAbsolutePath'] == '') ? '' :$Config['UserFilesAbsolutePath'].'../images/'; //($Config['UserFilesAbsolutePath'] == '') ? '' :
$Config['QuickUploadPath']['Image']		= $Config['FileTypesPath']['Image'];
$Config['QuickUploadAbsolutePath']['Image']= $Config['FileTypesAbsolutePath']['Image'];

$Config['AllowedExtensions']['Flash']	= array('swf','flv');
$Config['DeniedExtensions']['Flash']	= array();
$Config['FileTypesPath']['Flash']		= $Config['UserFilesPath'] . 'flash/';
$Config['FileTypesAbsolutePath']['Flash']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'flash/';
$Config['QuickUploadPath']['Flash']		= $Config['FileTypesPath']['Flash'];
$Config['QuickUploadAbsolutePath']['Flash']= $Config['FileTypesAbsolutePath']['Flash'];

$Config['AllowedExtensions']['Media']	= array('aiff', 'asf', 'avi', 'bmp', 'fla', 'flv', 'gif', 'jpeg', 'jpg', 'mid', 'mov', 'mp3', 'mp4', 'mpc', 'mpeg', 'mpg', 'png', 'qt', 'ram', 'rm', 'rmi', 'rmvb', 'swf', 'tif', 'tiff', 'wav', 'wma', 'wmv');
$Config['DeniedExtensions']['Media']	= array();
$Config['FileTypesPath']['Media']		= $Config['UserFilesPath'] . 'media/';
$Config['FileTypesAbsolutePath']['Media']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'media/';
$Config['QuickUploadPath']['Media']		= $Config['FileTypesPath']['Media'];
$Config['QuickUploadAbsolutePath']['Media']= $Config['FileTypesAbsolutePath']['Media'];

?>

 

Thanks again for your help.

Regards,

Kurt

Share this post


Link to post
Share on other sites

You seem to putting images within a subdirectory of images called

 

/S&W/ or perhaps /S&W/

 

in iether case its invalid, you are not allowed the ampersand (&) there remove it


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.

Share this post


Link to post
Share on other sites
You seem to putting images within a subdirectory of images called

 

/S&W/ or perhaps /S&W/

 

in iether case its invalid, you are not allowed the ampersand (&) there remove it

 

That particular image is in the subdirectory of S&W, but the situation still exists even when I use a directoryu that has a straight text name...

 

I have changed the S&W directory name though. The image DOES show up though in the product listing page.

 

Here is the code for a product that has no special characters, and still does exactly the same thing

<p><img width="75" src="/shop/userfiles/../images/Hoppes/EliteGunOil.jpg" alt="" />This is a thicker formula of the Elite gun cleaner that  stays in contact with the inner surface of the barrel for extra deep cleaning and metal conditioning.</p>

 

More to follow.....

 

Thanks again,

Kurt

Share this post


Link to post
Share on other sites

Still no luck,

I put all the names to a normal set of characters, but still the same problem.

 

Any suggestions?

 

Thanks,

Kurt

Share this post


Link to post
Share on other sites

I have another problem with trying to put dhtml "tabs" into this editor

 

It seems to "eat" any code that it doesn't recognise? Is this what is happening to my pictures (see above) although even on the pictures the htmp is still there

anyway, the current issue is that if I put in the following ( in source mode):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>apTabs</title>
<script type="text/javascript" src="lib/prototype.js"></script>
<script type="text/javascript" src="src/aptabs.js"></script>
<link rel="stylesheet" type="text/css" href="css/aptabs.css" />
</head>
<body>
<div id="apTabs" class="apTabs" style="width:400px">

and then go to look at it in wysiwyg mode it doesn't work, and also when I go BACK to the source mode it "eats"everything but:

<div id="apTabs" class="apTabs" style="width:400px">

it's like the "head" tags never existed.

 

Is this normal behavior?

Is there anything that I can do to use dynamic html ?

 

Thanks,

Kurt

Share this post


Link to post
Share on other sites

that is correct behaviour, you are not allowed a 2nd head or body in a document!!!

 

new to html eh?

 

http://www.w3schools.com/html/DEFAULT.asp


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.

Share this post


Link to post
Share on other sites

Ok I found the forum now I know where to go to get answers. Soon as i type out this error message I getting when trying to add a java function.

Pat

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  

×