_F5
Karma: 0
|
Re:Add Custom fields? - 2008/01/20 13:03
@pimpeli80
Make a custom Field in the Database. jos_downloads_files.
e.g. mycustom or use the Field´s custom_1 to custom_5.
Edit: editFilesHTML.php on function showAboutFile ($file) (at Line 64)
to insert: $html .= $this->simpleInputBox(_DOWN_FILE_MYCOSTOM,'mycustom ',$file->mycustom ,25);
(,25 is the Box height) (_DOWN_FILE_MYCOSTOM is the Variable for the language)
Edit: (your)language File (My is e.g. germani.php) (Add this line at the End) if (!defined('_DOWN_FILE_MYCOSTOM')) DEFINE('_DOWN_FILE_MYCOSTOM','xxxxx');
xxxxx is the place holder to change ... if (!defined('_DOWN_FILE_MYCOSTOM')) DEFINE('_DOWN_FILE_MYCOSTOM','My Field');
Edit: remositoryFile.php Put in your Variable mycustom. This is with no default. var $mycustom='';
Or default value e.g. var $mycustom='My default';
I have no look for Output (I use Quickdown for this ) See this an Action:

so long _F5
Post edited by: _F5, at: 2008/01/24 00:04
|