Jump to content


Corporate Sponsors


Latest News: (loading..)

[suggestion] description of service

oscom3 services improvement

  • You cannot reply to this topic
1 reply to this topic

#1 foxp2

  • Community Sponsor
  • 168 posts
  • Real Name:Laurent
  • Gender:Male
  • Location:France

Posted 04 January 2012, 14:38

codes :

osCommerce\OM\Core\Site\Admin\languages\en_US\Services.php :
description_of_service = Description of this service module :

osCommerce\OM\Core\Site\Admin\Application\Services\pages\edit.php :
	  <div class="servicesDescription"><?php echo '<b>' . OSCOM::getDef('description_of_service') . '</b><br /> ' . htmlspecialchars_decode($OSCOM_ObjectInfo->getProtected('description')); ?></div>

public\sites\Admin\templates\oscom\stylesheets\general.css :
.servicesDescription {
background: url('../images/ms_info.png') no-repeat 8px 10px;
background-size: 16px 16px;/* css3 : background-size: size of background image */
padding: 10px 10px 10px 40px;
margin-bottom: 10px;
border: 1px dashed #00CCFF;
}

eg :

osCommerce\OM\Core\Site\Admin\languages\en_US\modules\Service\OutputCompression.php

change services_output_compression_description definition with :

services_output_compression_description = <p>Compress the content with GZIP <br /><ul>Informations :<li><a href="http://php.net/manual/en/function.ob-gzhandler.php">ob_gzhandler (link)</a></li></ul></p>

screenshot :

[attachment=848:description_of_service_screenshot.PNG]

my 2 cents. ^_^

Edited by foxp2, 04 January 2012, 14:39.

Laurent AKA Fox P two
osCommerce, Code With Passion
My Tools for Agile software development : About Me

#2 foxp2

  • Community Sponsor
  • 168 posts
  • Real Name:Laurent
  • Gender:Male
  • Location:France

Posted 05 January 2012, 23:24

commit : https://github.com/foxp2/oscommerce/commit/aec62e1ec4f0da38734b142d1aa0f6f8de9cd3da
Laurent AKA Fox P two
osCommerce, Code With Passion
My Tools for Agile software development : About Me