View Full Version : How to edit custom field
pubdown
08-09-2006, 05:00 AM
I have tried to added some custom fields in the links, but I found that as an editor, you can not edit these custom fields and these custom fields even do not show up in the edit link area. However as an administrator, you can edit the custom fields. Please advise what I need to do to enable the editor to edit the custom fields.
Thanks.
Vasily B.
08-09-2006, 05:56 AM
Welcome to our support forums, pubdown
Unfortunately this is a known bug of our 1.2 version :( This will be fixed in our future version. It will be released in October.
pubdown
08-09-2006, 07:42 AM
I am sorry to hear that.
Before the next release, please advise if there is any way to solve the problem.
I have another question: When I update the link, if it is possible to change the link add date to current (edit) date?
Vincent Wright
08-09-2006, 08:00 AM
I am sorry to hear that.
Before the next release, please advise if there is any way to solve the problem.
I have another question: When I update the link, if it is possible to change the link add date to current (edit) date?
Not sure right now what to advise concerning custom field. Need some time to figure that out.
But as for update date, you can overwrite `date` field when saving link changes.
Open classes/Dir.php, find function editLink() (my version starts on line #619), find this line withing this function:
$sql .= " `id` = '{$aLink['id']}' ";
and replace it with this one:
$sql .= " `id` = '{$aLink['id']}', `date` = NOW() ";
Save changes and close the file.
Now open classes/DirAdmin.php and find the same function editLink() (line #1802), withing this function find the same line:
$sql .= " `id` = '{$aLink['id']}' ";
and replace it with this one:
$sql .= " `id` = '{$aLink['id']}', `date` = NOW() ";
Save changes and close the file.
Now every time you update link the date will be set to current one.
pubdown
08-09-2006, 08:07 AM
Ok, thanks. It works great.
pubdown
08-09-2006, 08:30 AM
Another question: I have added some custom field such as screenshot in the link and have customized the view-link.tpl according to this thread : http://www.esyndicat.com/forum/showthread.php?t=5327&highlight=custom+field and I also have the same need as this thread: http://www.esyndicat.com/forum/showthread.php?t=5287&highlight=custom+field , which means that if there is input for the screenshot url, it will display, otherwise it will not show in the listing. Please hlep to advise how I should do?
Dave Baker
08-09-2006, 09:20 AM
Hello pubdown,
I hope it will help you
http://www.esyndicat.com/forum/showthread.php?t=5235&highlight=chmod+upload
http://www.esyndicat.com/forum/about5230.html
vBulletin® v3.7.0, Copyright ©2000-2013, Jelsoft Enterprises Ltd.