Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2004-12-09 03:13:43

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

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

#32 2005-01-15 09:46:58

carton
Archived Plugin Author
From: Tokyo
Registered: 2004-08-10
Posts: 9
Website

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>&lt;txp:zem_link title=“excerpt”&gt;linktext&lt;/txp:zem_link&gt;</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

#34 2005-01-29 00:32:29

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

Re: [plugin] [ORPHAN] zem_link

I’ve found out that if the URL-only title of an article contains underscores, zem_link strips them.

Offline

#35 2005-02-25 18:36:58

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: [plugin] [ORPHAN] zem_link

This plugin is not working with RC3. Handle with caution.

Offline

#36 2005-05-01 20:30:09

bluearc21
Member
From: US.VA
Registered: 2004-02-24
Posts: 62
Website

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

#37 2005-05-04 09:07:57

ChrisJ
Member
From: Vienna, Austria
Registered: 2004-03-30
Posts: 54
Website

Re: [plugin] [ORPHAN] zem_link

bluearc, you are my star

Offline

#38 2005-05-05 23:56:35

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

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

#39 2005-05-06 00:31:34

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

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.

Offline

#40 2005-05-06 02:18:52

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

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

#41 2005-05-06 19:50:46

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

Re: [plugin] [ORPHAN] zem_link

alicson: Are these permlinks generated by the standard tag? I’ve found out that these are affected as well.

Offline

#42 2005-05-06 19:58:50

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,199
Website GitHub

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

#43 2005-05-06 20:05:33

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

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.

Offline

#44 2005-05-07 00:00:32

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

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

Board footer

Powered by FluxBB