Front File Manager
adding bbcode ? (5 posts)

  1. jujole
    Posted 4 years ago #

    HI,Great plugin ! I was wondering if it's possible to add a column,near "downloads" with bbcode ready for users who wants share their images or files with other on forums....


  2. jujole
    Posted 4 years ago #

    I forgot, what about adding even a "delete" button available for administrator and/or other users ?

  3. jujole
    Posted 4 years ago #

    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>
  4. jujole
    Posted 4 years ago #

    • 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 :)

  5. jujole
    Posted 4 years ago #

    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 :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic