Home arrow Forum

Remository Forum

 


_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
  | | Sorry, you do not currently have permission to write here.

      Topics Author Date
    thread link
Add Custom fields?
pimpeli80 2007/02/25 07:31
    thread link
thread link Re:Add Custom fields?
admin 2007/02/27 22:06
    thread link
thread link Re:Add Custom fields?
pimpeli80 2007/03/01 08:10
    thread link
thread linkthread link Re:Add Custom fields?
baijianpeng 2007/03/15 14:35
    thread link
thread linkthread linkthread link Re:Add Custom fields?
Shadal 2008/01/15 05:53
    thread link
thread linkthread linkthread linkthread link Re:Add Custom fields?
admin 2008/01/15 23:04
    thread link
thread linkthread linkthread linkthread linkthread link Re:Add Custom fields?
_F5 2008/01/20 13:18
    thread link
thread linkthread linkthread linkthread linkthread linkthread link Re:Add Custom fields?
chhit 2008/11/21 04:21
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread link Re:Add Custom fields?
admin 2008/11/25 11:47
    thread link
thread link Re:Add Custom fields?
_F5 2008/01/20 13:03

Menu

Budding author?

Could you write about software?  Packt Publishing is looking for authors for its new series of Beginners' Guides.  Take a look at their web site to find out more.

Login Form

Username

Password

Remember me
Password Reminder
No account yet?
Create one

Who is Online

Remository welcomes guests and registered users.

We have 12 guest online