Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » [archived] tfu_linklog

#1 2005-01-20 14:57:25

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

[archived] tfu_linklog

Notice: This thread is archived, this plugin is no longer available.

**********************************************************

tfu_linklog adds functionality for displaying, navigating and searching Textpattern links. I wrote this plug-in because I wanted a frequently updated and searchable link log without resorting to Textpattern’s article format.

The main tags are:

<code>tfu_linklog</code>, for formatted link lists,
<code>tfu_olderlinks</code> / <code>tfu_newerlinks</code> for navigation, and
<code>tfu_linksearch</code>, for searching Textpattern links.

Individual links can be formatted with <code>tfu_linkname</code>, <code>tfu_linkurl</code>, <code>tfu_linkdescription</code> and <code>tfu_linkdate</code>.

Download
Documentation
Plugin in Action

Last edited by carton (2005-01-20 14:59:48)

Offline

#2 2005-01-20 15:14:10

Chris
Member
Registered: 2004-02-26
Posts: 22

Re: [archived] tfu_linklog

Sweet!! Thanks for this.

Now all I’d like is a way to allow links within the description blurb.

Offline

#3 2005-01-20 15:18:04

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

Re: [archived] tfu_linklog

You can format links to your heart’s content, including dates and description. On my own linklog, the descriptions are in the link titles, i.e. they become visible on rollover, like tool tips.

Edit: Sorry, I had misread your request. But I just tried and it seems that you CAN use links within the description. Making them work would depend on the formatting.

Last edited by carton (2005-01-20 15:54:47)

Offline

#4 2005-01-20 17:25:43

Chris
Member
Registered: 2004-02-26
Posts: 22

Re: [archived] tfu_linklog

Oh yes, so you can.

My problem was that I was using <code>txp:linkdesctitle</code> to get a <code>title</code> attribute and when you have links in the description things go wrong. I’ve switched it to <code>txp:link</code> for the moment but as soon as I get home I’ll switch over to using your plugin to format links since it is much more flexible.

Thanks. You’ve sorted out one of my txp pet hates!

Offline

#5 2005-04-18 17:49:20

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

Re: [archived] tfu_linklog

Nice plugin carton, thanks. One mod I made was to allow filtering by the global category if its set. All I did was add $c to the globals list and then replace the current category declartion with this:
<code>
$category = (!empty($category)) ? ‘category=”’.$category.’”’ : ((!empty($c)) ? ‘category=”’.$c.’”’ : ‘1’);
</code>

Offline

#6 2005-04-20 11:54:00

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

Re: [archived] tfu_linklog

Thanks wilshire, that sounds good. I’ll include the mod in a new version once Txp 1.0 is released.

Offline

#7 2005-05-27 18:45:44

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: [archived] tfu_linklog

I added wilshire’s code and when I click on a category (using stw_category_tree) that doesn’t have any links associated I get the following error from tfu_linklog:

error in tfu_linklog:
category=“Defense-and-Foreign-Policy” order by date desc
(counted: )

Any ideas how to fix this?

Offline

#8 2005-06-20 13:52:53

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: [archived] tfu_linklog

(bump) Anybody else run into the above problem?

Offline

#9 2005-06-21 05:44:44

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

Re: [archived] tfu_linklog

Sorry for not replying earlier, tinyfly. The easiest solution to your problem would be to avoid using empty categories. You could also delete the line of code in the plugin that returns the error message, it’s about half way down and looks like this:

<code>return (‘error in tfu_linklog: <br />’.$listquery.’<br />(counted: ‘.$linkcount.’)’);</code>

Offline

  1. Index
  2. » Archives
  3. » [archived] tfu_linklog

Board footer

Powered by FluxBB