Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2008-05-19 17:14:21

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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:

  1. find the first/last row of a form type
  2. add some mark-up above/below that first/last row for nesting all row of a form type inside a new table
  3. add the heading where you want it
  4. add more jQuery so clicking the heading will show/hide the nested table.

La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#14 2008-05-19 17:19:22

keith
Member
From: Blyth, Northumberland, England
Registered: 2004-12-08
Posts: 199
Website

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

#17 2008-05-19 23:04:22

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

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

#20 2008-05-20 00:00:10

jdykast
Member
From: Tennessee
Registered: 2004-12-30
Posts: 119
Website

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

#23 2008-05-20 01:35:29

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

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

#24 2008-05-20 01:39:39

jdykast
Member
From: Tennessee
Registered: 2004-12-30
Posts: 119
Website

Re: must have hack?

Forum topic for ied_plugin_composer. Functioning link download link here.

Offline

Board footer

Powered by FluxBB