This topic is locked

How to get rid of (Keep/Delete/Update) radio buttons

8/11/2016 2:09:56 PM
PHPRunner General questions
P
PHPRunnerExplorer author

Hi,
In both 8.1 and 9.x, we set up a varbinary field to store images, a binary field to hold thumbnails, and a varchar field to store filenames. We want to store the image inside the database.
But whenever we go to the Edit screen - in the PHPRunner internal editor, there is always this (Keep/Delete/Update) that gets in the way, overlapping with the fields below.
How can we get rid of this?
It also says 'No File Chosen', even though we can clearly see the images in both View and List mode.

Sergey Kornilov admin 8/12/2016

Can you show me a screenshot of this issue? Do you need to remove it from the actual app or from Visual Editor only?

P
pmorenoc07 8/12/2016



Hi,
In both 8.1 and 9.x, we set up a varbinary field to store images, a binary field to hold thumbnails, and a varchar field to store filenames. We want to store the image inside the database.
But whenever we go to the Edit screen - in the PHPRunner internal editor, there is always this (Keep/Delete/Update) that gets in the way, overlapping with the fields below.
How can we get rid of this?
It also says 'No File Chosen', even though we can clearly see the images in both View and List mode.


Hi
if you on-check Basic upload control it gonna looks nice <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=80054&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />
Hope this is what you want.
Thanks

P
PHPRunnerExplorer author 8/16/2016

It's the code, that's in DatabaseFileField.php, in the BuildControl function. It starts and ends like this:
if(strlen($value)) {
$strtype = '
<input id="'.$this->ctype.'_keep" type="Radio" name="'.$this->ctype.'" value="file0" checked class="rnr-uploadtype">'."Keep";

echo '<pre>' ;

echo '$strtype
' ;

...

...

...
$strtype .= '<input id="'.$this->ctype.'_delete" type="Radio" name="'.$this->ctype.'" value="file1" class="rnr-uploadtype">'."Delete";

}

$strtype .= '<input id="'.$this->ctype.'_update" type="Radio" name="'.$this->ctype.'" value="file2" class="rnr-uploadtype">'."Update";

} else {

$strtype = '<input id="'.$this->ctype.'_update" type="hidden" name="'.$this->ctype.'" value="file2" class="rnr-uploadtype">';

}
We don't want to see Keep/Update radio buttons, in an Edit Screen.
Obviously, we can simply delete this section. Or remove it from the template. But if there is an official way to take those radio buttons out, we'd prefer to do it that way.



Can you show me a screenshot of this issue? Do you need to remove it from the actual app or from Visual Editor only?

P
PHPRunnerExplorer author 8/16/2016

PM,
Thanks, but that's only available if you are using folders to store the images. We're using a database field to store images.



Hi
if you on-check Basic upload control it gonna looks nice <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=80067&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />
Hope this is what you want.
Thanks