Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Forum: Fixing WordPress
    In reply to: Dreamhost down?
    Thread Starter alberto

    (@alberto)

    Many thanks!
    I’ve just edited the links.php code as follows:

    OLD
    $desc = wp_specialchars($row->link_description, ENT_QUOTES);

    NEW
    $desc = $row->link_description;

    ****************************************

    OLD
    $output.= $rel . $title . $target;

    NEW
    $output.= $rel . $target;

    ****************************************

    Results: no title attribute in the a tag and html tags in the link description –> great asides (very short posts in the sidebar)!!!

    The only problem is that I have to repeat the hack each time I update WP…

    Thread Starter alberto

    (@alberto)

    Of course the description should not be used in the link title itself. The link does not need a title attribute since it is followed by a short description.

    I suppose it is necessary to edit the file links.php placed in the wp-includes folder.
    Here is an excerpt from the original code:


    $output = "";

    foreach ($results as $row) {
    if (!isset($row->recently_updated)) $row->recently_updated = false;
    $output .= ($before);

    if ($show_updated && $row->recently_updated) {
    $output .= get_settings('links_recently_updated_prepend');
    }

    $the_link = '#';

    if ( !empty($row->link_url) )
    $the_link = wp_specialchars($row->link_url);
    $rel = $row->link_rel;

    if ($rel != '') {
    $rel = " rel='$rel'";
    }

    $desc = wp_specialchars($row->link_description, ENT_QUOTES);
    $name = wp_specialchars($row->link_name, ENT_QUOTES);

    $title = $desc;

    if ($show_updated) {
    if (substr($row->link_updated_f,0,2) != '00') {
    $title .= ' (Last updated ' . date(get_settings('links_updated_date_format'), $row->link_updated_f + (get_settings('gmt_offset') * 3600)) .')';
    }
    }

    if ('' != $title) {
    $title = " title='$title'";
    }

    $alt = " alt='$name'";

    $target = $row->link_target;
    if ('' != $target) {
    $target = " target='$target'";
    }

    $output.= "<a href='$the_link'";
    $output.= $rel . $title . $target;
    $output.= '>';

    if (($row->link_image != null) && $show_images) {
    if (strstr($row->link_image, 'http'))
    $output.= "<img src='$row->link_image' $alt $title />";
    else // If it's a relative path
    $output.= "<img src='" . get_settings('siteurl') . "$row->link_image' $alt $title />";
    } else {
    $output.= $name;
    }

    $output.= '';

    if ($show_updated && $row->recently_updated) {
    $output.= get_settings('links_recently_updated_append');
    }

    if ($show_description && ($desc != '')) {
    $output.= $between.$desc;
    }
    $output.= "$after\n";
    } // end while

    if($echo) {
    echo $output;
    } else {
    return $output;
    }
    }

    Thread Starter alberto

    (@alberto)

    Hi Lorelle,
    I need asides pointing to interesting websites in the sidebar but I don’t want to mix normal posts with asides in the same database table. Instead I would prefer to use the link feature (see Link panel in WP Admin).

    So I created a new Link category named “Asides” which display a link and his description. The link points to the external resource (a good article, an interesting news, etc.) and is followed by a short description.

    So far no problem.

    But sometimes I would like to insert some HTML tags in the description (a, strong, em, etc.): unfortunately WP does not understand these tags and displays them in the final output.

    Any trick to insert HTML tags in link descriptions?

    (Of course I would like the link description not be placed in the title attribute of the a tag).

    Forum: Fixing WordPress
    In reply to: PHP 4 or PHP 5 ?
    Thread Starter alberto

    (@alberto)

    Of course WP 1.5.x is PHP5 friendly, but my dilemma is: PHP4 or PHP5?
    Many thanks

    WOW!!!!
    1.5.1.1 release is in the air…
    Kudos to WPeople

    I have to start a WP blog in the next few weeks. So I have 4 options:

    1. Use WP 1.5.0
    2. Use WP 1.5.1
    3. Use the latest nightly build
    4. Wait for the next official release (1.5.2?)

    What choose?

    IMHO as soon as WP developers fix the RSS bug, they should release a 1.5.2 version.
    RSS issue is a huge bug!

    P.S. Is the RSS bug fixed in the latest nightly build?

    Thread Starter alberto

    (@alberto)

    I’m currently testing WP 1.5.1 on apache 1.3.x with the permalink structure /%category%/%postname%/ and WP works fine.

    But in the WP Codex there is this warning:
    Note on using %category%: %category% does not work correctly with mod_rewrite in Apache versions prior to 2. If you are using Apache 1, do not use %category% in your permalink structure.

    At this point I have a doubt: is this page of the codex updated to 1.5.1 or it refer to older versions?

    Thread Starter alberto

    (@alberto)

    I’m currently testing WP 1.5.1 on apache 1.3.x with the shorter permalink structure /%postname%/

    I really don’t understand the warning present in the Codex:

    Note on using only %postname%: If you use postname as the only element in your permalinks to create a structure such as myblog.com/post-title, the rewrite rules may make it impossible to access pages such as your stylesheet (which has a similar format) or the wp-admin folder. It’s best to include some numeric data (e.g. the post ID or date) in the permalink to prevent this from happening.”

    My question is:
    In what circumstances “the rewrite rules may make it impossible to access pages such as your stylesheet (which has a similar format) or the wp-admin folder”?

    Many thanks

    Thread Starter alberto

    (@alberto)

    A short permalink structure such as /%postname%/ would be ideal for my site, but:

    1) in WP Codex I’ve read “Note on using only %postname%: If you use postname as the only element in your permalinks to create a structure such as myblog.com/post-title, the rewrite rules may make it impossible to access pages such as your stylesheet (which has a similar format) or the wp-admin folder. It’s best to include some numeric data (e.g. the post ID or date) in the permalink to prevent this from happening.”
    Is this warning valid also for WP 1.5.1?

    2) is it a problem running this short permalink structure on Apache 1.3?

    Thanks in advance

    Forum: Your WordPress
    In reply to: Debate New Zealand

    Hi,
    in my opinion WP is not the best publishing platform for a “debate” site. Try to use phpBB or PunBB …

    Thread Starter alberto

    (@alberto)

    Do you know a wordpress site adopting this pernalink structure?
    Tx

    Thread Starter alberto

    (@alberto)

    Can you help me?
    Many thanks
    alberto

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