alberto
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Dreamhost down?Stay tuned!
Forum: Installing WordPress
In reply to: Dreamhost Problems Continue…Stay tuned!
Forum: Fixing WordPress
In reply to: HTML tags in link descriptionsMany 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…
Forum: Fixing WordPress
In reply to: HTML tags in link descriptionsOf 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 whileif($echo) {
echo $output;
} else {
return $output;
}
}Forum: Fixing WordPress
In reply to: HTML tags in link descriptionsHi 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 ?Of course WP 1.5.x is PHP5 friendly, but my dilemma is: PHP4 or PHP5?
Many thanksForum: Requests and Feedback
In reply to: Why not release an official 1.5.1 RSS fix?WOW!!!!
1.5.1.1 release is in the air…
Kudos to WPeopleForum: Requests and Feedback
In reply to: Why not release an official 1.5.1 RSS fix?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?
Forum: Requests and Feedback
In reply to: Why not release an official 1.5.1 RSS fix?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?
Forum: Fixing WordPress
In reply to: What permalink structure do you use?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?
Forum: Fixing WordPress
In reply to: What permalink structure do you use?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
Forum: Fixing WordPress
In reply to: What permalink structure do you use?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 ZealandHi,
in my opinion WP is not the best publishing platform for a “debate” site. Try to use phpBB or PunBB …Forum: Fixing WordPress
In reply to: Permalink myblog.com/post-titleDo you know a wordpress site adopting this pernalink structure?
TxForum: Fixing WordPress
In reply to: Permalink myblog.com/post-titleCan you help me?
Many thanks
alberto