Forum Replies Created

Viewing 15 replies - 1 through 15 (of 32 total)
  • Thread Starter fraugefahr

    (@fraugefahr)

    Thank you. I was able to trigger it with this:

    <a href="" data-fbox="2361" data-fbox-cmd="open" title="Log In" class="btn btn-secondary">Login
    </a>
    
    Thread Starter fraugefahr

    (@fraugefahr)

    Thank you, it works! I didn’t end up having to use Javascript.

    -Kristen

    Thread Starter fraugefahr

    (@fraugefahr)

    Yes, there is a table in the DB called “wp_fa_user_logins.” There are 599 rows in it.

    I am realizing that I thought your plugin could search pre-existing login data but now I see that there was no data because your plugin only provides data on logins from the moment it was installed.

    I went back in and can see login data now, but only from the time I installed the plugin.

    Is there a way to import pre-existing login data?

    Also, can I download data in a csv file?

    Thanks so much,
    Kristen

    Thread Starter fraugefahr

    (@fraugefahr)

    Alright, well I figured out that the Wordfence plugin I had installed was causing issues. When I deactivated it I was able to put images into the gallery. I am still having some other funky issues in terms of not getting thumbnails for my images, etc. But the biggest problem is solved.

    Thread Starter fraugefahr

    (@fraugefahr)

    I am using Version 1.7.5.3.

    Thanks,
    Kristen

    Thread Starter fraugefahr

    (@fraugefahr)

    Okay, so I changed my shortcode and took out the “sort=true” part. Then I edited pdb-list-custom.php and added the html that the shortcode was outputting when it had “sort=true” in it. I can see the drop down, radio buttons, and submit button, but the form stops working when it is coming from the code I put in the template as opposed to the shortcode.

    Here is the code when it comes from the shortcode:

    <div>
    <div class=”wrap pdb-list pdb-instance-1 participants-database” id=”participants-list-1″>
    <div class=”pdb-searchform”>
    <div class=”pdb-error pdb-search-error” style=”display:none”>
    <p class=”search_field_error”>Please select a column to search in.</p>
    <p class=”value_error”>Please type in something to search for.</p>
    </div>
    <form method=”post” class=”sort_filter_form” action=”https://ets.sbceo.org/resources/class-sets/#participants-list-1&#8243; data-ref=”update” >
    <input name=”action” type=”hidden” value=”pdb_list_filter” /></p>
    <p><input name=”target_instance” type=”hidden” value=”1″ /></p>
    <p><input name=”instance_index” type=”hidden” value=”1″ /></p>
    <p><input name=”pagelink” type=”hidden” value=”/resources/class-sets/?listpage=%1$s” /></p>
    <p><input name=”sortstring” type=”hidden” value=”” /></p>
    <p><input name=”orderstring” type=”hidden” value=”” /></p>
    <p><input name=”filterNonce” type=”hidden” value=”449d7a4847″ /></p>
    <fieldset class=”widefat inline-controls”>
    <legend>Sort by:</legend>
    <p><select name=”sortBy” id=”pdb-sortBy” class=”search-item” ><option value=”author_last” selected=”selected” >Author’s Last Name</option><option value=”title” >Title</option><option value=”lexile_level” >Lexile Level</option><option value=”atos” >ATOS</option></select></p>
    <div class=”radio-group” ><label class=”checkbox inline search-item” for=”pdb-ascdesc-asc”><input name=”ascdesc” checked=”checked” id=”pdb-ascdesc-asc” type=”radio” class=”checkbox inline search-item” value=”ASC” />Ascending</label><label class=”checkbox inline search-item” for=”pdb-ascdesc-desc”><input name=”ascdesc” id=”pdb-ascdesc-desc” type=”radio” class=”checkbox inline search-item” value=”DESC” />Descending</label></div>
    <p><input name=”submit_button” data-submit=”sort” type=”submit” value=”Sort” /><br />
    </fieldset>
    </form>
    </div>

    Here is the code I put into pdb-list.custom.php that doesn’t work:
    <div>
    <div class=”wrap pdb-list pdb-instance-1 participants-database” id=”participants-list-1″>
    <div class=”pdb-searchform”>
    <div class=”pdb-error pdb-search-error” style=”display:none”>
    <p class=”search_field_error”>Please select a column to search in.</p>
    <p class=”value_error”>Please type in something to search for.</p>
    </div>
    <form method=”post” class=”sort_filter_form” action=”https://ets.sbceo.org/resources/class-sets/#participants-list-1&#8243; data-ref=”update” >
    <input name=”action” type=”hidden” value=”pdb_list_filter” /></p>
    <p><input name=”target_instance” type=”hidden” value=”1″ /></p><p><input name=”instance_index” type=”hidden” value=”1″ /></p>
    <p><input name=”pagelink” type=”hidden” value=”/resources/class-sets/?listpage=%1$s” /></p>
    <p><input name=”sortstring” type=”hidden” value=”” /></p>
    <p><input name=”orderstring” type=”hidden” value=”” /></p>
    <p><input name=”filterNonce” type=”hidden” value=”eec3ce0a1b” /></p>
    <fieldset class=”widefat inline-controls”>
    <legend>Sort by:</legend>
    <p><select name=”sortBy” id=”pdb-sortBy” class=”search-item” ><option value=”author_last” selected=”selected” >Author’s Last Name</option><option value=”title” >Title</option><option value=”lexile_level” >Lexile Level</option><option value=”atos” >ATOS</option></select></p>
    <div class=”radio-group” ><label class=”checkbox inline search-item” for=”pdb-ascdesc-asc”><input name=”ascdesc” checked=”checked” id=”pdb-ascdesc-asc” type=”radio” class=”checkbox inline search-item” value=”ASC” />Ascending</label><label class=”checkbox inline search-item” for=”pdb-ascdesc-desc”><input name=”ascdesc” id=”pdb-ascdesc-desc” type=”radio” class=”checkbox inline search-item” value=”DESC” />Descending</label></div>
    <p><input name=”submit_button” data-submit=”sort” type=”submit” value=”Sort” /><br />
    </fieldset>
    </form>
    </div>

    I don’t know what I am missing here. I am putting in the same code the shortcode generates, but when it’s coming from the custom template, the form no longer works.

    Can you see what’s going on that would make the sort form no longer work?
    Thanks so much,
    Kristen

    Thread Starter fraugefahr

    (@fraugefahr)

    Okay, I got a chance to look at this more. The custom template is fine. The customizations I lost were on the form to sort the list. I had everything next to each other, the sort field drop down, the ascending/descending radio buttons, and the submit button, just to make it neat and orderly. I lost all of that.

    I went back to look at what I did to customize it and I edited the function sort_form in PDb_List.class.php.

    Is there a better way to customize the search/sort form so I won’t lose my changes when I update?

    Thanks so much,
    Kristen

    Thread Starter fraugefahr

    (@fraugefahr)

    The shortcode I am using is:

    [pdb_list template=”custom” sort=true orderby=”author_last”]

    And the template is located in THEME_FOLDER/templates/pdb-list-custom.php

    I checked and it is still there.

    This is what is in pdb-list-custom.php (it hasn’t changed at all):

    <?php
    /*
    *
    * template for participants list shortcode output
    *
    * this is the default template which formats the list of records as a table
    * using shortcut functions to display the componenets
    *
    * If you need more control over the display, look at the detailed template
    * (pdb-list-detailed.php) for an example of how this can be done
    *
    * Please note that if you have more than one list on a page, searching, sorting
    * and pagination will not work correctly.
    *
    */
    ?>
    <div class=”wrap <?php echo $this->wrap_class ?>” id=”<?php echo $this->list_anchor ?>”>
    <?php
    /*
    * SEARCH/SORT FORM
    *
    * the search/sort form is only presented when enabled in the shortcode.
    *
    */
    $this->show_search_sort_form();

    /* LIST DISPLAY */
    /*
    * NOTE: the container for the list itself (excluding search and pagination
    * controls) must have a class of “list-container” for AJAX search/sort to
    * function
    */
    ?>
    <table class=”wp-list-table widefat fixed pages list-container” >

    <?php
    // print the count if enabled in the shortcode
    $this->print_list_count($wrap_tag = false);
    ?>
    <?php if ( $record_count > 0 ) : // print only if there are records to show ?>

    <thead>
    <tr>
    <?php /*
    * this function prints headers for all the fields
    * replacement codes:
    * %2$s is the form element type identifier
    * %1$s is the title of the field
    */

    if (strcasecmp(“%1$s1”, “Lexile Level”) == 0) {
    $this->print_header_row( ‘<th class=”%2$s” scope=”col”>%1$s</th>’ );
    } elseif (strcasecmp(“%1$s1”, “ATOS”) == 0) {
    $this->print_header_row( ‘<th class=”%2$s” scope=”col”>%1$s</th>’ );
    } else {
    $this->print_header_row( ‘<th class=”%2$s” scope=”col”>%1$s</th>’ );
    }
    ?>
    </tr>
    </thead>

    <tbody>
    <?php while ( $this->have_records() ) : $this->the_record(); // each record is one row ?>
    <tr>
    <?php while( $this->have_fields() ) : $this->the_field(); // each field is one cell ?>

    <td class=”<?php echo $this->field->name ?>-field”>
    <?php $this->field->print_value() ?>
    </td>

    <?php endwhile; // each field ?>
    </tr>
    <?php endwhile; // each record ?>
    </tbody>

    <?php else : // if there are no records ?>

    <tbody>
    <tr>
    <td><?php if ($this->is_search_result) echo Participants_Db::$plugin_options[‘no_records_message’] ?></td>
    </tr>
    </tbody>

    <?php endif; // $record_count > 0 ?>

    </table>
    <?php
    /*
    * this shortcut function presents a pagination control with default layout
    */
    $this->show_pagination_control();
    ?>
    </div>

    -Kristen

    Thread Starter fraugefahr

    (@fraugefahr)

    Yes, it is installed:

    curl 7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
    Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtmp rtsp smtp smtps telnet tftp
    Features: GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP

    Thread Starter fraugefahr

    (@fraugefahr)

    I tested it, and no it doesn’t happen in learning mode. I think Wordfence has already spent a week in Learning Mode. Should I put it back in Learning Mode for a few more days and go to these sites and do the things that were causing issues before?

    Before reverting to Learning Mode I put an .htaccess file in the folders where these sites were that had this in it:

    # Don’t Monitor with Wordfence
    <IfModule mod_php5.c>
    php_value auto_prepend_file none
    </IfModule>

    I don’t know all the ips of that admins that run these sites and they don’t all have static ip’s, so that was my workaround.

    Thanks,
    Kristen

    • This reply was modified 7 years, 3 months ago by fraugefahr.
    Thread Starter fraugefahr

    (@fraugefahr)

    I’ve whitelisted the IP of the person editing the site for now but would like to figure out in general how to get around these false alarms for our non-Wordpress sites that are impacted by the Wordfence plugin.

    Thread Starter fraugefahr

    (@fraugefahr)

    Something is still not right with this plugin on my site. It finds over 250 broken links with status “unknown” and when I go through and check them individually, they work. I know there are some real broken links in this stack, but I won’t be able to find the real ones.

    Can anyone help me on this? I don’t even know where to start. This plugin works fine on some of my other WordPress sites.

    Thanks,
    Kristen

    Thread Starter fraugefahr

    (@fraugefahr)

    Changed some code in the esteem_slider() function in header-functions.php to do this:

    <?php if ( !empty($esteem_slider_link)){?>
    <figure class=”slider-image-wrap”>
    ” href=”<?php echo esc_url( $esteem_slider_link ); ?>”>
    <img alt=”<?php echo esc_attr( $esteem_slider_title ); ?>” src=”<?php echo esc_url( $esteem_slider_image ); ?>”>

    </figure>
    <?php}else{?>
    <figure class=”slider-image-wrap”>
    <img alt=”<?php echo esc_attr( $esteem_slider_title ); ?>” src=”<?php echo esc_url( $esteem_slider_image ); ?>”></figure>
    <?php } ?>

    Thread Starter fraugefahr

    (@fraugefahr)

    Thanks, I will take a look and try it out.

    -Kristen

    Thread Starter fraugefahr

    (@fraugefahr)

    Thanks for answering my question, Dan!

    -Kristen

Viewing 15 replies - 1 through 15 (of 32 total)