Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] zem_link
And if you have an RC2 version of TXP (at least I think thats where this first showed up) you’ll be shown the source and prompted for confirmation when you install the plugin.
Offline
Re: [plugin] [ORPHAN] zem_link
Thanks for your useful plugins, zem! I just modified zem_link to display the article excerpt as a link title when the following tag format is used:
<code><txp:zem_link title=“excerpt”>linktext</txp:zem_link></code>
It’s a simple hack and possibly useful to others — maybe worth including in future versions?
Offline
#33 2005-01-27 21:24:50
- Andrew
- Plugin Author

- Registered: 2004-02-23
- Posts: 730
Re: [plugin] [ORPHAN] zem_link
zem – can you add a little thing to append an #anchor to links? Say, I want to link to my article permlink, but want to anchor-down to #post-comment.
Offline
Re: [plugin] [ORPHAN] zem_link
I’ve found out that if the URL-only title of an article contains underscores, zem_link strips them.
VC3 :: weblog :: my wishlist
Offline
Re: [plugin] [ORPHAN] zem_link
This plugin is not working with RC3. Handle with caution.
Offline
Re: [plugin] [ORPHAN] zem_link
Just installed zem_link with a current build of RC3. It works fine, however the url-title is being duplicated.
So, if the article url-title for article “25” in section “is_it_real” is “heaven”, the <txp:zem_link href="25" /> points to domain.com/is_it_real/heavenheaven (if url-scheme is /section/title).
A quick fix is to comment out line 34.
//if ($url_mode==1) $url = $url . (empty($rs["url_title"]) ? stripSpace($rs["Title"]) : $rs["url_title"]);
“If you build it, they will come.”
Offline
Re: [plugin] [ORPHAN] zem_link
bluearc, you are my star
Offline
Re: [plugin] [ORPHAN] zem_link
that’s why they were being duplicated!?!? bluearc, you’re a <em>super</em>star! thank you :)
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
Re: [plugin] [ORPHAN] zem_link
What’s wrong with this plugin (as well as with lots of other ones) is that it depends on the deprecated url_mode variable. You could either opt for bluearc’s solution, or set url_mode to 0 directly in the database as I explain here.
VC3 :: weblog :: my wishlist
Offline
Re: [plugin] [ORPHAN] zem_link
okay.. so i tried this out.. and i’m still seeing double titles.. am i the only one? could it be another plugin?
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
Re: [plugin] [ORPHAN] zem_link
alicson: Are these permlinks generated by the standard tag? I’ve found out that these are affected as well.
VC3 :: weblog :: my wishlist
Offline
Re: [plugin] [ORPHAN] zem_link
I couldn’t find $url_mode in the source files (any more), but urlmode is still there.
My solution was to add the line
<code>$url_mode=urlmode;</code>
just beneath the global definitions at the beginning of the function.
Not sure if it’s any better or worse than other solutions but it works for me…
TXP Builders – finely-crafted code, design and txp
Offline
Re: [plugin] [ORPHAN] zem_link
jakob: No, you were not supposed to edit any source code at all. In the txp_prefs table in the MySQL database, You have to change the url_mode value from 1 to 0. In order to this, you have to use a tool like phpMyAdmin.
VC3 :: weblog :: my wishlist
Offline
Re: [plugin] [ORPHAN] zem_link
generated by the standard tag, i believe…
but i hesitate to change the urlmode in database, because as you say it would likely affect other plugins. might this not be fixed soon in an upcoming RC3 revision? :hopeful:
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline