Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-10-15 03:19:03
- rsilletti
- Moderator
- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
ras_plugin_credits
I’ve upgraded a plugin that has been around for bit to include an integrated tag builder. It involves some DOM scripting with TXP’s new dom_attach function and the id enabling with list wrapping, these are both pretty new so I wouldn’t try to install this unless you are using recent commits( 1800+ would be close) to SVN.
I think the general idea of providing tag builders with plugin tags that call for such has become quite workable. Whether or not to clutter the interface with such is another matter.
Opinions would be welcome.
Plugin Link ras_plugin_credits_v4.0.4.1.txt
Offline
#2 2008-04-07 20:39:09
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: ras_plugin_credits
I was about to hack another plugin to be able to change the sort order, when I found this one. Perfect, thank you!
Offline
#3 2008-04-07 20:43:49
- Ruhh
- Member
- From: dakota dunes
- Registered: 2008-01-20
- Posts: 305
Re: ras_plugin_credits
Is there a way to hide author’s name and make the plugin name linkable?
<txp:Ruhh />
Offline
#4 2008-04-07 20:59:59
- rsilletti
- Moderator
- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: ras_plugin_credits
It would require hacking the plugin code or a new plugin.
Offline
Re: ras_plugin_credits
Uh..what’s the tag to use? Not indicated in the help file, oddly enough.
Offline
#6 2008-11-17 16:19:28
- rsilletti
- Moderator
- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: ras_plugin_credits
Hmm.. bit of tunnel vision there, would be called for I think. The tag itself is : ras_plugin_credits , the plugin should install a tagbuilder link under Presentation -> Pages -> Miscellaneous.
Revised:
# Name: ras_plugin_credits v4.0.6.2
# Type: Admin/Client side plugin
# Plugin Author`s Credits
# Author: raas
# URL: http://textcastle.com
# .....................................................................
# This is a plugin for Textpattern - http://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the 'Install plugin' box:
# .....................................................................
YTo5OntzOjQ6Im5hbWUiO3M6MTg6InJhc19wbHVn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