1 voltaic May 22, 2006 07:34
3 yabba Aug 06, 2007 11:58
You might get away with :
echo strtolower( get_permalink( $Blog->get('url'), $post_ID, 'title' ) );
¥
4 cslepage Aug 06, 2007 12:58
It's closer! It addresses the case issue. However, it turns this permalink:
http://www.smileysmile.net/index.php/news/the_legend_brian_wilson_opens_at_annenbe
into this:
http://www.smileysmile.net/index.php/news/_the_legend__brian_wilson__opens_at_annenberg_theater
5 yabba Aug 06, 2007 13:50
lol, ok, lets try it the hard way
global $ItemCache;
$foo = $ItemCache->get_by_ID( $post_ID );
echo $foo->get_permanent_url();
If that works then you might want to move the "global $ItemCache;" to the top of the function to save your cpu a few cycles ;)
¥
6 cslepage Aug 06, 2007 14:10
"Top of the function," as in, the top of the archives plugin file?
7 yabba Aug 06, 2007 14:28
Assuming I found the right function, it wants to look like this :
function SkinTag( $params )
{
global $Settings, $month;
global $ItemCache;
.....
{ // We want to link to the absolute canonical URL for this archive:
$foo = $ItemCache->get_by_ID( $post_ID );
echo $foo->get_permanent_url();
¥
8 cslepage Aug 06, 2007 14:36
I will try that tonight when I get off of work, thanks!
9 cslepage Aug 07, 2007 04:07
That worked perfectly, thank you!
When I get a chance I'll post all the accurate edits, including yours, to make this hack work in 1.10.
Does anyone have any suggestions on how to make this hack:
http://www.deadbeef.com/index.php/b2evolution_remove_dates_from_permalinks
Work for 1.10?
To be clearer, I can get the date out of the links, but that messes up the archives plugin. If I change this:
to this:
The archive links have no dates, but the archive links have capital letters that render the links useless.