Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Topic closed
[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
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
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
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
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?
Refresh Dallas and other Refreshing Cities.
Offline
Re: [archived] tfu_linklog
(bump) Anybody else run into the above problem?
Refresh Dallas and other Refreshing Cities.
Offline
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
Pages: 1
Topic closed