Only 1 upload on our site. can I remove "Add or Upload File(s)" ?

2 posts by 2 authors in: Forums > CMS Builder
Last Post: December 24, 2012   (RSS)

Hi JH,

This isn't an official hack, but if you search for:

echo htmlspecialchars( t("Tip: hold $key to select multiple files") );

in cmsAdmin>lib>menus>default>edit_functions.php

(it's around line 687 in version 2.17)

Then comment out that code (insert // before the echo) it should hide that text form displaying under the Add or Upload File(s).

You can also change the text between the quotes.

You can also search for  <a href="<?php echo $uploadLink ?>" class="thickbox"><b><?php echo t('Add or Upload File(s)') ?></b></a> and remove the (s) or change the link text to better meet your needs.

**** IMPORTANT: MAKE A BACKUP COPY OF edit_functions.php BEFORE YOU TRY THIS****

NOTE 1: This will change the text under all upload fields, site wide.

NOTE 2: You'll have to redo this change if you upgrade to another version of CMS Builder.

Hope that helps,

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php