Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Rule13

    (@rule13)

    Hey Michelle…

    The way I accomplished this was to insert a field *before* the individual checkboxes. The type of field was HTML and I just created the title for the checkbox group that way… where the label for the HTML field is the actual checkbox group name. It’s not a true group label but it works.

    Forum: Plugins
    In reply to: Directory Viewer
    Thread Starter Rule13

    (@rule13)

    I figured this out… but I totally forgot/overlooked the fact that I need the stupid title of the file in order to do what I want… not just the filename. Duh@!#!@#

    In case anyone needs/wants to list the contents of a directory… here’s the code I used. I threw this into a template file and it worked great.

    <?php
     //path to directory to scan
    $theme_name = get_template();
    $manual_directory = "wp-content/themes/" . $theme_name . "/library/manuals/";
    
    //get all files with a .pdf extension
    $manuals = glob($manual_directory . "*.pdf");
    
    //print each manual file name
    foreach($manuals as $manual)
    {
    //wrap this in an href <a href='$manual' target='_blank'>$manual</a><br>
    echo "$manual<br>";
    }
     ?>
    Forum: Plugins
    In reply to: Directory Viewer
    Thread Starter Rule13

    (@rule13)

    Maybe this could be accomplished through a shortcode?

    Thread Starter Rule13

    (@rule13)

    Nevermind. I see now that I only need to copy/overwrite the salesforce.php file.

    This is exactly what I am looking for!

    Thank you!!!!

    Thread Starter Rule13

    (@rule13)

    Thanks Nick. How do I use that fork version? Do I download the ZIP and upload the raw files to the server into the plugins directory (overwriting the existing files)… or is there a better method for updating?

Viewing 5 replies - 1 through 5 (of 5 total)