Thread Starter
jujole
(@jujole)
I forgot, what about adding even a “delete” button available for administrator and/or other users ?
Thread Starter
jujole
(@jujole)
Well,I’ve solved my self in this way:
- Open the file /wp-content/plugin/front-file-manager/includes.php
- Find
<td style="vertical-align:middle"><a href="'.wp_get_attachment_url($post->ID).'">'.__('Download', 'frontfilemanager').'</a></td>
- in a new line UNDER that one finded, copy this:
<td style="vertical-align:middle"><textarea readonly="yes" style="width:300px;">[img]'.wp_get_attachment_url($post->ID).'[/img]</textarea></td>
Thread Starter
jujole
(@jujole)
- Then, find
<th>'.__( 'Link', 'frontfilemanager' ).'</th>
Under this line, add a new line as this:
<th>'.__( 'BBCODE (valid only for images)', 'frontfilemanager' ).'</th>
-
You’ve done :))
This is BBCode only for images, I’m finding a solution to put the BBCode also for videos with autodetecting file extensions 🙂
If I’ve some news, I’ll write it here 🙂
Thread Starter
jujole
(@jujole)
Well’,Ive added also the distinction between images and video:
If a file is video, it shows embed, if is image, it show img bbcode 🙂
if U need it, I’ll send you my modified include.php 🙂