Forum Replies Created

Viewing 15 replies - 286 through 300 (of 374 total)
  • I suppose that is possible but I’m afraid that I really don’t know the answer, Ben.

    Maybe there is something that will help in the codex?

    https://codex.www.ads-software.com/Troubleshooting

    or

    https://codex.www.ads-software.com/Customizing_Your_Sidebar

    All the best!!

    (When you do find a solution, it might not be a bad idea to come in here and post it for others who may find themselves with the same problem)

    Try replacing all of that with simply:
    ………………
    <?php get_calendar(); ?>
    ……………….

    Or if you have your calendar on your sidebar housed in a list, use the following:

    ………………….
    <li id="calendar"><?php _e('Calendar'); ?>
    <?php get_calendar(); ?>
    </li>

    ………………….

    Thread Starter ejm

    (@llizard)

    You’re most welcome, Ciryaquen. I’m glad it works now.

    Thread Starter ejm

    (@llizard)

    Yes, it is a little confusing, isn’t it? What is meant is that the lines that have the + are the lines of code that are to be added. But the + signs do not belong in the coding itself. I found the instructions to be a little awkward as well….

    Allow me to rephrase it:

    First, just in case a mistake is made, make a copy of wp-includes/classes.php and name it untouched_classes.php. Now open wp-includes/classes.php in a text editor (notepad) and FIND

    if (mysql2date('U', $this->posts[0]->post_date_gmt) > mysql2date('U', $now)) { //it's future dated
    $this->is_preview = true;

    AFTER that, using “copy and paste”, add the following:

    /* DIRTY FUTURE-POSTS HACK FOR EC3 */
    if (function_exists('ec3_get_calendar')) {
    global $ec3;
    $ec3_post_0_is_event = intval($wpdb->get_var(
    "SELECT COUNT(0) FROM $wpdb->post2cat WHERE post_id="
    .$this->posts[0]->ID." AND category_id=$ec3->event_category"));
    if ($ec3_post_0_is_event) {
    $this->is_preview = false;
    }
    }
    if ($this->is_preview)
    /* DIRTY FUTURE-POSTS HACK FOR EC3 */

    Save and upload the file to your wordpress folder.

    Hope that helps!

    Thread Starter ejm

    (@llizard)

    Excuse me for replying to myself…

    I have FINALLY got the event calendar to work. It turns out that one must “publish” the post so that it will appear on the calendar.

    Suggested rewording for the end of “== How to make an Event Post ==” that may save other literal people like me from a world of grief:
    ………………………………………………
    : set the date and time of your event and click <del>’Save'</del> ‘Publish‘.
    :……………………………………………………….

    Excuse me for replying to myself. I’ve done further searching and am getting a little closer. I have now successfully got the figured out how to get the title spec on acronym to have the value “GMT – 0400” when it is surrounding EDT:

    <acronym title="<?php echo gmdate(T). strftime('%z', $t) . '">'. date(T); ?></acronym>

    But I have not found where the_time() is defined in wordpress so that I can add the acronym tag. Perhaps I’m going to have to resort to using

    <?php date(H:i) ?> <acronym title="<?php echo gmdate(T). strftime('%z', $t) . '">'. date(T); ?></acronym>

    except that now this produces GMT – 0500 instead of GMT – 0400 in the title spec for EDT (Eastern Daylight Time)

    I have been unsuccessful in my search for how to surround the Timezone with a titled acronym tag. For instance, if I wanted to produce:

    <acronym title="Eastern Daylight Time">EDT</acronym>

    This is as close as I have come….

    <acronym <?php echo 'title="'. date(T). '">' . date(T); ?></acronym>

    But that just puts the acronym itself into the title spec rather than the full wording of the TimeZone. Any ideas? (I’ve tried searching on php.net but being relatively green at php, I cannot decipher most of what I see there)

    It took me a while to figure out which file to edit on my wordpress blog because I use a completely different template. (Just in case others are as dim as I, the file that is to be altered is index.php in the theme folder.)

    This is what I have now (that works beautifully):

    <?php
    // disable comments link if comments are disabled
    if ('open' == $post->comment_status) : ?>
    <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
    <?php endif;
    // end of disabling comments link if comments are disabled
    ?>

    However, the coding looks decidedly unwieldy. I’m not very savvy about php. How do I achieve something the same in a cleaner way?

    danielos wrote:
    ……………………………………
    : The CSS info for the database error
    : messages isn’t in wp-db.php file.
    :…………………………….

    There is a CSS section. It is at the bottom of includes/wp-db.php

    look just below the following coding:

    function bail($message) { // Just wraps errors in a nice header and footer

    I’m not quite certain from the jpg image you posted what it is you want to achieve. Are you saying you always want images to be at the top right?

    From what I can see looking at your source code,

    I’m guessing that if you add this to the stylesheet and fool with the stylespecs, you’ll be able to achieve what it is you want:


    .post h2 {/*stylespecs*/} //headline of post
    .post small {/*stylespecs*/} // dateline
    .post .entry {/*stylespecs*/} // whatever is in the post
    .post .entry img {/*stylespecs*/} // image in post
    .post .postmetadata {/*stylespecs*/} // 'posted in' details at bottom of post

    Maybe try using a different theme that is closer to what your designer wants. Then the editting will be far less.

    https://www.ads-software.com/extend/themes/

    https://codex.www.ads-software.com/Using_Themes/Theme_List

    Are you sure that this includes >? There should not be a problem with the greaterthan symbol if it is the first thing placed. But there will be a problem with the lessthan symbol because it is integral to HTML coding itself.

    Because the comments can be set up to accept some HTML tags, your user probably has to close any instances of <

    What you could try is to make sure that “code” is allowed in the list of allowed tags in kses.php

    Look for:
    if (!CUSTOM_TAGS) {
    $allowedtags = array(

    Then scroll down to

    'br' => array(),

    If the following is NOT there, you can add it on the next line:
    'code' => array(),

    You can then make some sort of note to tell your commenters that if they wish to use the symbol <, they must surround it with the HTML tags of <code></code>

    (I HOPE this post made sense and that it came out correctly! It’s extremely difficult to post coding examples in this forum.)

    edit: Apparently you can also override kses.php by creating a ‘my-hacks.php’ I’m afraid that I threw caution to the winds and edited my kses.php directly….

    Yes, it looks fine in IE, Netdetective. But you might want to doublecheck it in Netscape, Firefox, Opera. The text is disappearing underneath your header image on all three of those browsers. (NS7.1, FX1.0.7, OP8.5)

    There are still many many coding errors that may well be causing the problems.

    HTML Validation Results for your page

    https://www.htmlhelp.org/tools/validator/

    Forum: Fixing WordPress
    In reply to: Help with Code?

    You’re very welcome. Glad it’s working, Bella!

    Forum: Fixing WordPress
    In reply to: Help with Code?

    Ah. Alas, the vagaries of IE… What exactly isn’t working in ie?

    (edit: I just looked at your blog in IE6 and as far as I can tell, the email link looks like it’s right)

Viewing 15 replies - 286 through 300 (of 374 total)