Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] Define Content 1.x Support


surfalot

Recommended Posts

hey that's some crafty thinking! But correct me if I'm wrong here, wouldn't you want to add your code above the this:

 

<tr>
 <td><?php include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING);?></td> 
</tr>

 

Instead of replacing that? seems to me you would not get the products displayed that way.

Edited by surfalot
Link to comment
Share on other sites

  • Replies 269
  • Created
  • Last Reply

Top Posters In This Topic

hey that's some crafty thinking! But correct me if I'm wrong here, wouldn't you want to add your code above the this:

 

<tr>
 <td><?php include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING);?></td> 
</tr>

 

Instead of replacing that? seems to me you would not get the products displayed that way.

 

Todd you may be right! - my bad if that is wrong on my part. You may be right - just test it.

 

-kenz

Link to comment
Share on other sites

  • 2 months later...

Hi all

 

I love this contribution and I am adding it to a new site I'm creating. However, when I get to adding the text to the application_top.php page. The whole website goes blank.

 

What have I done wrong? I also have Ultinate SEO URLs installed which also uses the application_top.php but I have taken this out and it makes no difference.

 

Any help as always would be gratefully appreciated.

Debbie Harrison

 

Link to comment
Share on other sites

Hi all

 

I love this contribution and I am adding it to a new site I'm creating. However, when I get to adding the text to the application_top.php page. The whole website goes blank.

 

What have I done wrong? I also have Ultinate SEO URLs installed which also uses the application_top.php but I have taken this out and it makes no difference.

 

Any help as always would be gratefully appreciated.

 

make sure you are not getting any returns or spaces before of after the <?php ?> tags that begin/end that script. Make sure whatever you use to upload is not changing the script or adding those items either. The bit of code that is being added makes the shop include a file of functions from this contribution, make sure you have uploaded all the new files before adding this bit of code. Also make sure you are adding that bit of code before the ?> at the end of the file. hope that helps.

Link to comment
Share on other sites

Hello -

I'm adding the Define Content contribution to OSC 2.2 RC2. I didn't have a WYSIWYG editor, so chose the tinyMCE. Downloaded version 3.2.1 from http://sourceforge.net/projects/tinymce.

 

I originally had trouble with images and links, so made the following changes:

In these files:

catalog/admin/external/tiny_mce/tinyMCEinit.js

catalog/admin/external/tiny_mce/tinyMCEinit_strict.js

I changed this:

document_base_url : osc_baseurl + "index.php",

to this:

document_base_url : osc_baseurl,

 

And in this file:

catalog/admin/tinymce_images.js.php

I changed this:

$output .= '["'.$name.'", "'.$file.'"]'.(($sz==$c)?'':','."\n" );

to this:

$output .= '["'.$name.'", "'.DIR_WS_CATALOG.$file.'"]'.(($sz==$c)?'':','."\n" );

 

That still didn't fix it, so in these files:

external/tiny_mce/tinyMCEinit.js

external/tiny_mce/tinyMCEinit_strict.js

I changed:

relative_urls : true,

to:

relative_urls : false,

 

Now the images show up just fine, but I still have a problem. When doing insert/edit image, Appearance - the alignment, border, vertical space, & horizontal space do not work. It allows me to set them - but it is apparently not getting inserted into the html. I can change the image size under "Appearance" and that particular feature does work.

 

Any ideas? This is an almost clean install of osc, and as I mentioned, I didn't have a WYSIWYG so that is clean, too.

 

I appreciate any help offered.

Link to comment
Share on other sites

Hello -

I'm adding the Define Content contribution to OSC 2.2 RC2. I didn't have a WYSIWYG editor, so chose the tinyMCE. Downloaded version 3.2.1 from http://sourceforge.net/projects/tinymce.

 

I originally had trouble with images and links, so made the following changes:

In these files:

catalog/admin/external/tiny_mce/tinyMCEinit.js

catalog/admin/external/tiny_mce/tinyMCEinit_strict.js

I changed this:

document_base_url : osc_baseurl + "index.php",

to this:

document_base_url : osc_baseurl,

 

And in this file:

catalog/admin/tinymce_images.js.php

I changed this:

$output .= '["'.$name.'", "'.$file.'"]'.(($sz==$c)?'':','."\n" );

to this:

$output .= '["'.$name.'", "'.DIR_WS_CATALOG.$file.'"]'.(($sz==$c)?'':','."\n" );

 

That still didn't fix it, so in these files:

external/tiny_mce/tinyMCEinit.js

external/tiny_mce/tinyMCEinit_strict.js

I changed:

relative_urls : true,

to:

relative_urls : false,

 

Now the images show up just fine, but I still have a problem. When doing insert/edit image, Appearance - the alignment, border, vertical space, & horizontal space do not work. It allows me to set them - but it is apparently not getting inserted into the html. I can change the image size under "Appearance" and that particular feature does work.

 

Any ideas? This is an almost clean install of osc, and as I mentioned, I didn't have a WYSIWYG so that is clean, too.

 

I appreciate any help offered.

 

 

I'm replying to my own post - maybe it will help someone else who may run across the same problem. The problem was not with the Define Content contribution - it was with the particular version of tinyMCE suggested in the contribution. tinyMCE 3.2.1 from sourceforge has a missing img[style] in the extended_elements which is in catalog/admin/external/tiny_mce/tinyMCEinit.js.

 

Just change the line containing "extended_elements" to this:

extended_valid_elements : "img[class|src|border=0|alt|title|hspace|vspace|width|height|align|style|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style],div[class|align|style],a[name|href|target|title|onclick]"
});

Link to comment
Share on other sites

I have installed this contribution into my live store and now I cannot access my admin pages at all. I get an "Internal Sever Error" (Error 500).

 

My store front still works and still accepts orders, but admin is shot.

 

I didn't do the WYSIWYG edits, however I already have TinyMCE installed.

 

I did notice that the define_content_descriptions did not have a primary key set?? Is that normal??

 

I have now deleted everything, dropped the tables but I still get the same error.

 

Does anyone have any ideas?

Link to comment
Share on other sites

I have installed this contribution into my live store and now I cannot access my admin pages at all. I get an "Internal Sever Error" (Error 500).

 

My store front still works and still accepts orders, but admin is shot.

 

I didn't do the WYSIWYG edits, however I already have TinyMCE installed.

 

I did notice that the define_content_descriptions did not have a primary key set?? Is that normal??

 

I have now deleted everything, dropped the tables but I still get the same error.

 

Does anyone have any ideas?

 

Replying to my own post:

 

I got it working. It was due to the wrong permissions set on the admin folder due to the way I installed the contrib.

Link to comment
Share on other sites

  • 3 months later...

Hello,

 

I installed Define Content and I can use it successfully, except when I return to edit content (by clicking on edit after selecting an area I have designated), there is no content showing in the textarea box. If I paste content into that textarea box, I can successfully submit it and it comes up fine on my site, it's just that I can't seem to see the content to edit it later. Please help when you have a chance. Thanks.

Link to comment
Share on other sites

  • 1 month later...

hello,

 

first, thanks so much to surfalot for great contribution.

 

I've used this define content for 3 years with no problem.

Except for about a week I found : the description I've input, truncated. I also have tried to directly insert the description via phpmyadmin, the result is same. the data type for description is "text", how can it be truncated???

 

I've read all this thread support for this contribution, but noone had problem like me.

 

please help me.

 

Many thanks before

Link to comment
Share on other sites

Firstable, many thanks to you, Surfalot, for this fine add-on.

I Passed the night installing and trying to make it work, reading every post in this topic.

My issue is I don't have any Menu Box on the right to select any action

screenshot.png

Can you help me with this?

No error, verified 3 times the install, no clue. Tx in advance for helping.

Link to comment
Share on other sites

I use the define content contrib for quite a while now but I have a question, which I can't find in this topic.

 

Is it possible in the define content area to set wysiwyg always on, so you don't have to set wysiwyg checked all the time.

Link to comment
Share on other sites

  • 5 months later...

Hi Guys,

 

I've sucessfully installed this and I happily use it, however for some reason it only works in IE, I try it in safari and just get a standard text box, then I try it in FF and again get a standard box, even when I click the show / hide button there is nothing...

 

Any ideas?

Link to comment
Share on other sites

  • 1 year later...
  • 1 year later...

Could I just ask is there really a new Define Content for 2.3? http://addons.oscommerce.com/info/8666

 

The reason I am sceptical is I remember last year someone palming off the old version of Define content claiming it was ok to use in Oscommerce 2.3 and it wasn't. I just would like to check.

 

Thanks

Edited by dvharrison

Debbie Harrison

 

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
  • 5 months later...

Hi all, I'm trying to help out a customer who's Web designer has passed away. I had nothing to do with the website previously but he wants to make some changes which I am trying to help him with. The website has OSCommerce installed and Define_Content contribution (both new to me). I think the versions are OSCommerce v2.2 and Define_Content v1.0. I'm not sure on these versions if anyone could tell me how to identify the version correctly that would be great? OK customer has asked for a new page accessed from the menu system. After following a lot of tutorials here I've successfully managed to add a page to the site and to the menu. So far so good! Ideally customer would like to be able to edit the new page using Define_Content same as the other working pages. However I have been unable to add Define_Content to the new page. In the admin menu I can see the top level Define Content button but when I click on this it expands to display only a sublevel of Define Content. I do not have a sublevel option for Areas i.e. I cannot see a way to add an area to the new page. I can edit all the existing areas on the existing pages using Define Content (so I know it's working at an edit level) but I can't add or manage areas (so I can't delete areas either!). It's like the previous web designer disabled the Manage Areas (Add, Delete) function to prevent the end user 'damaging' the website. Any help would be appreciated. Best regards Alan.

Link to comment
Share on other sites

  • 1 month later...

OK, I have managed to get Define Content working, but it has been updated merely to create pages for the information sidebox. I would love it to be able to update my home page like I used to. Please is this likely to be upgraded to do this?

 

Alternatively could anyone recommend me a separate plugin that can be used to edit the content on the home page.

 

Please any advice will be gratefully received.

 

Thanks

Debbie Harrison

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...