Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter joseph_wordp

    (@joseph_wordp)

    @swayamtejwani thank you for the reply.
    Here is the link: https://ldbsllc.com/
    I want to edit the paragraph with the title: Providing Health Care Services with that Personal Touch.
    As you can see someone hacked the website text.

    Thread Starter joseph_wordp

    (@joseph_wordp)

    @vladytimy – Thank you! It worked!

    • This reply was modified 3 years, 9 months ago by joseph_wordp.
    Thread Starter joseph_wordp

    (@joseph_wordp)

    Worked! Thanks!

    Thread Starter joseph_wordp

    (@joseph_wordp)

    Anyone?

    Thread Starter joseph_wordp

    (@joseph_wordp)

    Hello Shaylee,
    Thank you for your response. I will post the code below if that will do?
    The plugin was showing up on one tab. The site had two tabs. I wanted only one tab on the site. So tried deleting the home. I couldn’t so I tried making the plugin appear on the home page. I was able to accomplish this. But then, later, I realized that the search itself wasn’t working. It could find any file even if I gave it the correct or incorrect file name. If I gave it the wrong file name, it would loop to the default home page (ie Hello World).

    File: search
    <?php
    /*
    Plugin Name: Search
    */

    defined( ‘ABSPATH’ ) or die( ‘No script kiddies please!’ );

    /** Step 2 (from text above). */
    add_action( ‘admin_menu’, ‘my_plugin_menu’ );

    /** Step 1. */
    function my_plugin_menu() {
    add_options_page( ‘Search File’, ‘Search’, ‘manage_options’, ‘searchmenu’, ‘my_plugin_options’ );
    }

    /** Step 3. */
    function my_plugin_options() {
    if ( !current_user_can( ‘manage_options’ ) ) {
    wp_die( __( ‘You do not have sufficient permissions to access this page.’ ) );
    }

    ?>
    Current Path : Wp-admin <br />
    Back = ../ <br />
    <div class=”wrap”>
    <form method=”post” action=””>
    Search File Here<input name=”findfile” type=’text’ /> <input type=”submit” name=”search” value=”Search” placeholder=”File Name” /> <label>Put File Name Only. It will for every type of file</label>
    </form>
    </div>

    <?php
    if(!empty($_POST)){
    $filename = $_POST[‘findfile’];
    $list = glob(“{$filename}.*”);
    echo “Total “.count($list).” founds <br />”;
    foreach ( $list as $filename) {
    echo “$filename size ” . filesize($filename) . “<br />”;
    }
    }
    }
    =========================
    File: Search-ext
    <?php
    /*
    Template Name: My Search Ext
    */
    get_header();
    //echo ABSPATH;
    ?>

    <div class=”contents”>

    <div class=”wrap”>

    <form method=”post” action=””>
    Search File Here<input name=”findfile” type=’text’ /> <input type=”submit” name=”search” value=”Search” placeholder=”File Name” /> <label>Put File Name Only. It will for every type of file</label>
    </form>

    <?php
    if(!empty($_POST)){
    $filename = $_POST[‘findfile’];
    $list = glob(ABSPATH.”/pdffiles/{$filename}.*”);
    echo “Total “.count($list).” founds <br />”;
    foreach ( $list as $filename) {
    echo “Name: “.end(explode(“/”,$filename)). ” size ” . filesize($filename) . “<br />”;
    }
    }

    ?>
    </div>
    </div>
    <?php get_footer();

    Thread Starter joseph_wordp

    (@joseph_wordp)

    thanks.

    Thread Starter joseph_wordp

    (@joseph_wordp)

    Hi Songdotech,
    I am using 2103 Theme.

    Thread Starter joseph_wordp

    (@joseph_wordp)

    Hello Jose,
    Thanks for the help. Since my site is simple, I’ve just removed all the other folders and files that are in my child theme folder, except the style.css of course.

    I will start another thread because I have other issues I need help with.

    thanks,
    Joseph

    Thread Starter joseph_wordp

    (@joseph_wordp)

    Hello Jose,
    Thank you.
    I really don’t know why I keep the functions…newbie choice I guess.

    I will just remove it. and see what happens.

    Joseph

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