Viewing 4 replies - 1 through 4 (of 4 total)
  • irenefarrrimond

    (@irenefarrrimond)

    I’m having the same problem! Please advise! 🙂

    GMC74

    (@gmc74)

    Using Shortcodes
    Shortcode Example

    Using the standard shortcode will create a basic upload form that will send uploads to the directory specified on the settings page of this plugin. There are two optional attributes that can be attached to this shortcode.
    Standard Shortcode

    [rad-dropbox]

    Attribute Options

    The “dir” attribute allows you to define the specific directory where uploads will be uploaded to. If the “dir” attribute is not used or is undefined, files will be uploaded to the directory specified under the settings page.

    The “button” attribute allows you to specify the upload button text. If the “button” attribute is not used or is undefined, a default button text will appear.
    With Button Attribute

    [rad-dropbox button=”Upload!”]

    With Directory Attribute
    Remember opening slash!

    [rad-dropbox dir=”/Path/To/Folder”]

    Together
    Remember opening slash!

    [rad-dropbox dir=”/Path/To/Folder” button=”Upload!”]

    Custom Styling With CSS
    Attached Classes

    Every element that displays with the shortcode has its own attached class. This allows you to customize the look and feel of the shortcode form by adding the class names to your stylesheet, and customizing as you see fit.

    There is a class attached to the form element, file selection element, & upload button element.

    In addition, there is also a div around the file selection element, & another around the upload button element, as outlined below.
    Black – Error Message

    div.rad-dropbox-error { CSS Here! }

    Black – Success Message

    div.rad-dropbox-success { CSS Here! }

    Green – File Select DIV

    div.rad-dropbox-file { CSS Here! }

    Blue – Upload Button DIV

    div.rad-dropbox-button { CSS Here! }

    Red – Form Element

    form.rad-dropbox-uploader { CSS Here! }

    Orange – File Select Element

    input.rad-dropbox-file { CSS Here! }

    Purple – Upload Button Element

    input.rad-dropbox-button { CSS Here! }

    I could not get the dir argument in the shortcode working so I tweaked the plugin with this

    in: classes/dropbox.class.php

    before the call to upload() I check to see if dest was set

    if(!isset($_POST['dest'])){ $directory = "/"; }
    else { $directory = $_POST['dest']; }

    This seems to have fixed my issue. There may be something deeper going on OR I may be misusing the plugin.

    Tx
    John-

    I put the shortcode in my page and it doesn’t work it just displays the shortcode.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Where is the shortcode?’ is closed to new replies.