Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: must have hack?
Probably one “easy” way to do it is by manipulating the DOM using jQuery.
Right now, forms are sorted by type.
So, you can try something like this, with jQuery:
- find the first/last row of a form type
- add some mark-up above/below that first/last row for nesting all row of a form type inside a new table
- add the heading where you want it
- add more jQuery so clicking the heading will show/hide the nested table.
Offline
Re: must have hack?
uli wrote:
<input type="thx_boxes" disabled="0" receiver="thebombsite,guiguibonbon asc" />
I’ve noticed the same thing, Uli – in fact I’ve been biting my lip for quite a while now…
Last edited by keith (2008-05-19 17:20:44)
Keith
Blyth, Northumberland, England
Capture The Moment
Offline
#15 2008-05-19 18:32:51
- Ruhh
- Member
- From: dakota dunes
- Registered: 2008-01-20
- Posts: 305
Re: must have hack?
Yeah, I don’t know much of scripting but mostly of PHP that I know of.
<txp:Ruhh />
Offline
#16 2008-05-19 22:51:56
- Ruhh
- Member
- From: dakota dunes
- Registered: 2008-01-20
- Posts: 305
Re: must have hack?
Ok, I think might have gotten together my coding but what is next? How do I make it into a plugin and so on?
<txp:Ruhh />
Offline
Re: must have hack?
Anatomy of a plugin and Plugin development. See the section on register_callbacks – you want to use the “form” event (?event=form in the address bar).
Offline
#18 2008-05-19 23:29:27
- Ruhh
- Member
- From: dakota dunes
- Registered: 2008-01-20
- Posts: 305
Re: must have hack?
Sighs, I’ll try to find some time to read over the “anatomy of a plugin”.
I don’t quite understand it. Where do I go to decode the PHP code? Anybody clarify me and provide steps?
Last edited by Ruhh (2008-05-19 23:48:47)
<txp:Ruhh />
Offline
#19 2008-05-19 23:54:01
- Ruhh
- Member
- From: dakota dunes
- Registered: 2008-01-20
- Posts: 305
Re: must have hack?
Oh, how would I go about getting the plugin to have an access to the database without having an user type in the database information?
<txp:Ruhh />
Offline
Re: must have hack?
Your plugin already has access to the db since it’s tied into TXP. You can use any and all of TXP’s db functions. Those are found in textpattern > lib > txplib_db.php. You might want to poke around the TXP code at PHPXref.com. It’s very helpful and has quick access to everything used to make TXP run.
Offline
#21 2008-05-20 01:11:13
- rsilletti
- Moderator
- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: must have hack?
ied_plugin_composer my favorite development tool, I’m not sure I could get along without it anymore.
Offline
#22 2008-05-20 01:34:32
- Ruhh
- Member
- From: dakota dunes
- Registered: 2008-01-20
- Posts: 305
Re: must have hack?
i have been there. the download link does not work.
<txp:Ruhh />
Offline
Re: must have hack?
Ruhh wrote:
Oh, how would I go about getting the plugin to have an access to the database without having an user type in the database information?
Check out textpattern/lib/txplib_db.php.
Testing your plugin is really simple – load it from the plugin cache. If you load it from the plugin cache, you don’t need to compile it until you’re ready to distribute1. Skim the Threshold State articles – it’ll make sense soon.
1 If your plugin includes zem_tpl.php, it’ll be compiled anytime someone directly accesses it from a browser (not from txpinterface).
Last edited by jm (2008-05-20 01:41:45)
Offline
Re: must have hack?
Forum topic for ied_plugin_composer. Functioning link download link here.
Offline