Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Easy Upload Module


Gyakutsuki

Recommended Posts

hello,

 

I created this contribution to help all the no programmers  to install easily a new module.

you can use this module for osc 2.3 but It will be very interesting for 2.4 and next.

 

To create a module is very easily.

 

example  for ht_hreflang.php

 

modules/header_tags/ht_hreflang.php
languages/modules/header_tags/ht_hreflang.php

 

Compress in zip and that's all.

the system has a security and you can't upload a file everywhere, just in modules and languages directory

 

if your server does'nt accept to write the files in the directory, just change the right on the directory in 777 and not on the files must be in 644.

 

I hope the community wiil accept this contribution and propose this installation process.

 

Tested on bootstrap gold.

 

Comment and return are welcome to improve the development

 

link to upload the module http://addons.oscommerce.com/info/9207

Edited by Gyakutsuki


Regards
-----------------------------------------
Loïc

Contact me by skype for business
Contact me @gyakutsuki for an answer on the forum

 

Link to comment
Share on other sites

No other opinion ?

Very easy to install for test, inside the contribution, I inserted an example to test.


Regards
-----------------------------------------
Loïc

Contact me by skype for business
Contact me @gyakutsuki for an answer on the forum

 

Link to comment
Share on other sites

Great I like it!

 

Why dont you use admin box addition tools_upload.php in box directory?

<?php
/*
  $Id$

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

  Copyright (c) 2010 osCommerce

  Released under the GNU General Public License
*/

  foreach ( $cl_box_groups as &$group ) {
    if ( $group['heading'] == BOX_HEADING_TOOLS ) {
      $group['apps'][] = array(
        'code' => 'modules_upload.php',
        'title' => BOX_TOOLS_MODULES_UPLOAD,
        'link' => tep_href_link('modules_upload.php')
      );
      break;
    }
  }

?>

And I prefer better the oscommecre jquery buttons then tep_image_button() function.

 

At this moment the question is who authenticate the modules for the uploader?

tep_CanonicalUrl()?

Edited by Gergely

:blink:
osCommerce based shop owner with minimal design and focused on background works. When the less is more.
Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store.

Link to comment
Share on other sites

Tk Gergely for comments

 

tep_CanonicalUrl () ==> include inside add on now (not tested butmust work)

 

tep_image_button()   change by tep_draw_button  ==> done

menu access module upload  ==> done

 

 

At this moment the question is who authenticate the modules for the uploader?

 

I think the process must become a best pratice  for all. That's the only way to have an homogene environment for the modules.

The communication must be important like a post it to explain how to create a module.

 

I created a new package including the comments.


Regards
-----------------------------------------
Loïc

Contact me by skype for business
Contact me @gyakutsuki for an answer on the forum

 

Link to comment
Share on other sites

One hazard seems. Addon area use zip files but its danger for users. zip files should contain a certificate that the package self is authenticated.

:blink:
osCommerce based shop owner with minimal design and focused on background works. When the less is more.
Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store.

Link to comment
Share on other sites

If you use .phar, .xpi ... that 's the same problem ? 

it does'nt change with the actual process, just it's more simple.

Also, lot of people download the zip and if there is a pb with a zip,allthe communauty will known quickly ?

 

For example, with worldpressyou can download a zip since your own site, you don't know how to do the program and what it is inside ?

To have a good system, a community manager must verify the every add on like prestashop do but it's not free.

 

No is perfect.

 

But if you have idea to do a best security, I am interesting.


Regards
-----------------------------------------
Loïc

Contact me by skype for business
Contact me @gyakutsuki for an answer on the forum

 

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...