Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#16 2005-01-13 01:51:52
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: [plugin] [ORPHAN] zem_nav
Oh, sorry, you’re right. I must’ve backed out that change when I messed up the version numbers.
Alex
Offline
Re: [plugin] [ORPHAN] zem_nav
Er. I’m now getting ‘next’ and ‘previous’ links which are formatted according to what I use in zem_rewrite, but with some pretty funky stuff; the permalinks zem_nav is outputting have spaces in them instead of hyphens, and the date-based URLs it’s generating are all for December 31, 1969. Anybody else seeing this?
Last edited by ubernostrum (2005-01-13 03:54:06)
You cooin’ with my bird?
Offline
#18 2005-01-13 21:45:58
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: [plugin] [ORPHAN] zem_nav
There’s a new version up. It should fix zem_rewrite links, and pass attributes like ‘title’ through to zem_link.
Alex
Offline
#19 2005-01-19 18:52:41
- keavy
- New Member
- Registered: 2004-10-08
- Posts: 4
Re: [plugin] [ORPHAN] zem_nav
Hello
ooh, i’m looking for something like this to resolve the problem of newer / older links not working with the article_custom form.
I get an error when trying to install this plugin though:
<code>Parse error: parse error, unexpected $ in /tmp/phpXuNadM on line 5</code>
any suggestions would be appreciated :)
Last edited by keavy (2005-01-19 18:53:07)
Offline
Re: [plugin] [ORPHAN] zem_nav
keavy, I think the problem is that you pasted the complete plugin code into the textarea. It should be only the part between the single quotes, i.e. withouth the php tags and the variable “$plugin”
Offline
#21 2005-10-11 21:05:40
- grad
- Member
- From: Poznan, Poland
- Registered: 2005-10-04
- Posts: 24
Re: [plugin] [ORPHAN] zem_nav
When used with TXP rev. 1011 it returns an error: <code>Fatal error: Call to undefined function: formathref() in (…)\textpattern\lib\txplib_misc.php(455) : eval()’d code on line 36</code>
zem, could you be so kind to make it work in 4.0.x?
Last edited by grad (2005-10-11 21:06:56)
Offline
Re: [plugin] [ORPHAN] zem_nav
> grad wrote:
When used with TXP rev. 1011 it returns an error: <code>Fatal error: Call to undefined function: formathref() in (…)\textpattern\lib\txplib_misc.php(455) : eval()’d code on line 36</code>
It works fine on my side, @rev1018. Do you use it in combination with the patched version of zem_link ?
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg
Offline
#23 2005-10-12 08:50:05
- grad
- Member
- From: Poznan, Poland
- Registered: 2005-10-04
- Posts: 24
Re: [plugin] [ORPHAN] zem_nav
Thanks, I must have missed this info. It works now. However, isn’t it supposed to navigate through articles of the same category only? It goes through all articles in section regardless the category they belong to. I tried it in article form and page form with and without option ‘usecat=1’ and ‘usecat=0’.
I want to navigate in current category only i.e. the category of the currently displayed article.
Last edited by grad (2005-10-12 18:48:16)
Offline
Re: [plugin] [ORPHAN] zem_nav
I have the same problem as grad…
the links navigate through all categories regardless of whether cat=0 or cat=1
Offline
Re: [plugin] [ORPHAN] zem_nav
How is this different than the built in tags then if it isn’t category aware?
Refresh Dallas and other Refreshing Cities.
Offline
Re: [plugin] [ORPHAN] zem_nav
I think it IS category aware if you use it properly, which we obviously aren’t!
Can anyone help on this one?
Offline
Re: [plugin] [ORPHAN] zem_nav
I don’t see how it could be used improperly you just use it in place of link_to_next and link_to_prev with attributes usecat and usesec to force it to ignore categories and sections.
Time to learn php so I can fix this myself.
Refresh Dallas and other Refreshing Cities.
Offline
#28 2005-11-17 15:53:30
- grad
- Member
- From: Poznan, Poland
- Registered: 2005-10-04
- Posts: 24
Re: [plugin] [ORPHAN] zem_nav
pieman wrote:
I think it IS category aware if you use it properly, which we obviously aren’t!
Can anyone help on this one?
No, it’s not. It can’t use a single category thus it selects articles belonging to any category. I temporarily fixed it by changing the code to use the category I wanted.
Offline
Re: [plugin] [ORPHAN] zem_nav
grad, can you post those changes so I can do the same?
Refresh Dallas and other Refreshing Cities.
Offline
#30 2005-11-17 17:15:47
- grad
- Member
- From: Poznan, Poland
- Registered: 2005-10-04
- Posts: 24
Re: [plugin] [ORPHAN] zem_nav
Here it goes.
I modified the script with this stamp:
Line 1: # $Id: zem_nav.php,v 1.7 2005/01/13 08:12:24 zem Exp $
At lines 61 and 90 find this code:
if ($usecat) $category = empty($c) ? '' : $c;
Comment them out (put // on beginnig of the line) so you could come back to them in case you change your mind and below add this line of code:
if ($usecat) $category = empty($thisarticle['category1']) ? $c : $thisarticle['category1'];
You have to add this code in for each of the two lines you comment out! Of course replace category1 with category2 depending on which category you want the link to stick to.
It’s not how it should be made but I didn’t bother to modify the plugin code. Besides, I’m not a programmer. At least not at the moment :)
Good luck.
Offline