Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter wordyword

    (@wordyword)

    Aha! A newer plugin version was released. I updated to your latest plugin…it seems to be working ok now. Will test further to verify and feedback if any further problems found. Thanks.

    Thread Starter wordyword

    (@wordyword)

    Ok thanks, here’s the link. A test site, new WP install, no other plugins, barebones default theme.

    Thread Starter wordyword

    (@wordyword)

    Question was asked, a solution provided. It may help others in future. As for your negative attitude; I recommend daily vigorous exercise to relieve your pent up frustrations as an alternative to littering forums with unproductive rude comments. Don’t be one of those people. Honestly…

    Thread Starter wordyword

    (@wordyword)

    Thanks!

    Maybe try a force-lower case command or CSS text-transform: lowercase; (style) that you can add into the theme’s header.php where title is processed.

    Thread Starter wordyword

    (@wordyword)

    edit the file…wp-admin/css/theme-editor – line #2 and #3

    Default values:
    ==========================================================
    #template textarea {
    font-family: Consolas, Monaco, Courier, monospace;
    font-size: 12px;
    width: 97%;
    }

    Example – change the default font style or size as desired
    ============================================================
    #template textarea {
    font-family: verdana, arial, fixed, Consolas, Monaco;
    font-size: 11px;
    width: 97%;
    }

    Possibly the tiny MCE editor CSS file? Or try finding the CSS file that controls it in /wp-admin/css

    Thread Starter wordyword

    (@wordyword)

    I think you mis-understand the question. This is a WordPress CSS issue, not related to theme. What I am looking for is the CSS setting/file to change the font in the TEXTAREA code editor window. This is the form area where you see code for the files (i.e. comments.php, etc). It is the same no matter what theme is activated, therefore leads one to believe it is a WordPress CSS setting.

    Thread Starter wordyword

    (@wordyword)

    Update: I’m able to retrieve the category term ID numbers. Now I need to figure out how to retrieve the term names instead of the IDs. Here’s what the code result looks like:

    displayterms = [“24″,”25”];

    And here’s the code. Where do I need to change the following code so that names are retrieved instead of ID #’s?

    $termquery = get_the_category
    ("
    SELECT $wpdb->name FROM terms
    WHERE $wpdb->term_taxonomy.taxonomy = 'my_custom_value'
    ");
    
    $displayterms = $wpdb->get_col($termquery['$name']);
    echo json_encode($displayterms);
    Thread Starter wordyword

    (@wordyword)

    Thanks again. I’ve tried without success to figure out the code used in the PHP query to generate the results from the database. In the example PHP query/output file, the bird names appear in a list within PHP tags (i.e. “Great Bittern”=>”Botaurus stellaris”,
    “Little Grebe”=>”Tachybaptus ruficollis”, etc) but I can’t figure the code used to generate the array/list from the database. Here’s what I have so far. Am I on the right track?

    <?php
    $q=$_GET["q"];
    
    $con = mysql_connect('localhost', 'user', 'password');
    if (!$con)
     {
     die('Could not connect: ' . mysql_error());
     }
    
    mysql_select_db("db_name", $con);
    
    $sql="SELECT * FROM user WHERE id = '".$q."'";
    
    $result = mysql_query($sql);
    
    while($row = mysql_fetch_array($result))
    
    //I'm lost at this point
    
    $q = strtolower($_REQUEST["q"]);
    if (!$q) return;
    $items = array();
    
    foreach ($items as $key=>$value) {
    	if (strpos(strtolower($key), $q) !== false) {
    		echo "$key\n";
    	}
    }
    mysql_close($con);
    ?>
    Thread Starter wordyword

    (@wordyword)

    Thanks again. I’ve tried without success to figure out the code used in the PHP query to generate the results from the database. In the example PHP query/output file, the bird names appear in a list within PHP tags (i.e. “Great Bittern”=>”Botaurus stellaris”,
    “Little Grebe”=>”Tachybaptus ruficollis”, etc) but I can’t figure the code used to generate the array/list from the database. Here’s what I have so far. Am I on the right track?

    <?php
    $q=$_GET[“q”];

    $con = mysql_connect(‘localhost’, ‘user’, ‘password’);
    if (!$con)
    {
    die(‘Could not connect: ‘ . mysql_error());
    }

    mysql_select_db(“db_name”, $con);

    $sql=”SELECT * FROM user WHERE id = ‘”.$q.”‘”;

    $result = mysql_query($sql);

    while($row = mysql_fetch_array($result))

    //I’m lost at this point

    $q = strtolower($_REQUEST[“q”]);
    if (!$q) return;
    $items = array();

    foreach ($items as $key=>$value) {
    if (strpos(strtolower($key), $q) !== false) {
    echo “$key\n”;
    }
    }
    mysql_close($con);
    ?>

    Thread Starter wordyword

    (@wordyword)

    I grasp how to implement the JS and CSS, but am still a little confused how to code the output xyz.php file. I don’t want to manually create results like the list of birds as shown in the example, but rather to have the list of results generated from the respective Post ID’s comments_content in WP database.

    Thread Starter wordyword

    (@wordyword)

    Thanks for the tip. I took a look at those pages, and understand how to load the script with wp_enqueue, but not sure exactly how to insert code so that it imports pre-existing comments from the WP database into the drop-down suggestions area. Here is the code from my template’s comments page. Is is where I should put the script’s commands? Please tell me how to modify if you can. Thanks!
    <p>Reply <textarea name=”comment” id=”comment” cols=”45″ rows=”10″ tabindex=”4″></textarea></p>

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