1 matthius Mar 17, 2005 02:29
3 matthius Mar 23, 2005 20:07
Hi Blueyed,
Sorry it took me so long to reply to this - I've been at a conference. According the the header, the version of _item.class.php I modified is:
* @version $Id: _item.class.php,v 1.18 2005/01/25 15:07:22 fplanque Exp $
At the bottom of the script however the last revision is:
* Revision 1.66 2004/10/12 16:12:17 fplanque
* Edited code documentation.
Obviously those numbers don't line up but perhaps it will make more sense to you.
Regarding my modification, I replaced lines 723-726
$output .= $before_more .
'<a href="'.$this->gen_permalink( 'pid', $more_file ).'#more'.$this->ID.'">'.
$more_link_text.'</a>' .
$after_more;
with
$output .= $before_more .
'<a href="'.$this->gen_permalink( 'pid', $more_file ).'?more=1">'.
$more_link_text.'</a>' .
$after_more;
this makes the more text appear, but as I mentioned before its a lousy fix because it doesn't show only the post (it shows all the posts).
I hope this helps.
Take care,
- Matt
blueyed wrote:
Matthius, what revision of _item.class.php are you referring to? The latest CVS version from today?
I'd like to take a look at it and fix it, but it would help more if you would also quote what you've replaced..
Thank you.
4 matthius Mar 24, 2005 02:36
I think the real problem here is the "directory" parsing code - namely it doesn't seem to work at all. To fix the more links though I found better hack than my previous one.
1st change line #297 (in the same version of /evocore/_item.class.php as before) from:
if( ! $Settings->get('links_extrapath') )
to:
if(true)
then change lines 723-726 from:
$output .= $before_more .
'<a href="'.$this->gen_permalink( 'pid', $more_file ).'#more'.$this->ID.'">'.
$more_link_text.'</a>' .
$after_more;
to:
$output .= $before_more .
'<a href="'.$this->gen_permalink( 'pid', $more_file ) . '">'.
$more_link_text.'</a>' .
$after_more;
This effectively disables the pretty "directory" links for more links and perma-links (possibly other stuff as well).
As I said before caveat emptor - its not adviseable to trust half-baked un-tested patches to CVS versions of software. ...but hey, it worked for me. I'll post more later if I have time to actually solve the parsing problem I believe to be causing all this.
Any devs out there know that I'm talking about? Any ideas what might be wrong? Who's working on that portion of the code anyway.
5 matthius Mar 24, 2005 02:59
I feel obligated to mention that the "directory" links can be disabled through the admin interface (the extra-path info option) doing so will fix the read more and calendar links problems. So for those experimenters who don't want to follow me on my wild goose chase don't have to.
- M
Matthius, what revision of _item.class.php are you referring to? The latest CVS version from today?
I'd like to take a look at it and fix it, but it would help more if you would also quote what you've replaced..
Thank you.