Forum Replies Created

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter ashdowntech

    (@ashdowntech)

    Hi Chris,

    This site is under development, so all site caching is disabled. I also cleared my browser cache multiple times, tried it on 3 different browsers (Firefox, Chrome & Edge) and then tried it on my phone and on another PC. They all show the same problem.

    I did try removing the plugin and reinstalling it just to be sure that something didn’t go sideways along the way.

    I will send you the development link and login via your form shortly.

    Thanks!

    The issue is on line 229 of the file mentioned by chaosratt. It uses the PHP short open tags which are turned off in almost all implementations of PHP.

    If you patch the line to use <?php before and after the “else”, you can make the file work until a fix is pushed.

    Hi Austroflyer,

    Very glad it worked out for you.

    We did some site shuffling since I wrote the above, and the link to the ZIP file changed. This is the correct URL: https://client.ashdowntech.com/wp-content/uploads/staff_directory_shortcode.zip

    Hi,
    I have used your plug-in on several sites with great success. I have a new client who needs some specific functionality. It looks like what he wants the form to do may be possible. It is an order entry system. Here are the requirements:

    1. Enter a new order and have all the results stored in a table
    2. Modify an existing order by selecting an order number from a drop-down populated from previous entries specific to him. The order number could be selected independently prior to showing the form if that helps. (SQL Filter?)
    3. On selection of the order number have the form pre-populated from data in the associated database record.
    4. Revise the entries and have the results over-write the old database record on save.

    Does that sound possible? And if the form has entry fields hidden/shown based on the setting of some form element (a checkbox, say) and the state of the checkbox is stored in the database, would that area automatically switch to being hidden/shown on record load?

    I understand some of these requirements will only be in the Developer version. I assume that this version can be used as is, if appropriate?

    Thanks so much for taking the time to answer my questions. I really do want to use this plug-in.

    I have resolved this by changing the code to work as follows.
    I added to the shortcode to define a “meta_key” field.
    Eg: [staff-directory cat=44 orderby=meta_value_num order=asc meta_key=order]
    Then added a field called “order” (but it can be anything you want to call it, just change the definition of the meta-key.) The orderby field is then set to “meta_value_num” to order that field numerically.
    In the “order” field enter a number for each person in the order you want them to display. The values do not need to be consecutive.
    The names will be displayed in that order and also, the first time they are displayed, if the “order” values do not start with 10 and increment by 10 they will be adjusted to be so. The advantage of this is that it allows names to be inserted easily in the list. So to insert a name between the names with “order” number 40 and 50, make the new one 45. They’ll all get renumbered on the next public display. This reordering only happens if they are not “normalized” already.
    This only required changes to classes\staff_directory_shortcode.php, but I did change the version number in \staff-directory.php to prevent any update overriding by changes.
    You can download the changed file from here.
    We hope you find this useful, but it is provided as-is, with no guarantee that it will do anything useful, or will not do anything bad.

Viewing 5 replies - 16 through 20 (of 20 total)