Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-05 05:49:25

beztak
Member
From: Czech Republic
Registered: 2005-07-21
Posts: 184
Website

How to add new checkbox above POST button on the right side ?

I’d like to add completly new checkbox above POST button on the right side in write tab. I know that I will need to add also in MySQL new item in table textpattern. But how to add this checkbox?

I need checkbox to display (when checked) posted time and not display if unchecked. I know this could be done trought custom_field but I can´t do this cos all 10 custom_field I’ve got for something else.

Or is there any possibility to add for example 5 new custom_fields ???

Last edited by beztak (2006-04-05 05:50:52)

Offline

#2 2006-04-05 06:34:00

tranquillo
Archived Plugin Author
Registered: 2005-03-07
Posts: 127
Website

Re: How to add new checkbox above POST button on the right side ?

There was <a href=“http://textpattern.org/plugins/379/wazadminhidefields”>waz_admin_hide_fields</a>, but it seems to be unavailable. Maybe you can get it from the author.

Otherwise you can hack /textpattern/include/txp_article.php or write a plugin to add either a checkbox or further custom_fields using javascript.

Offline

#3 2006-04-05 07:17:02

beztak
Member
From: Czech Republic
Registered: 2005-07-21
Posts: 184
Website

Re: How to add new checkbox above POST button on the right side ?

Yes, I see. But if I hard coded source I don’t know how to do that to read 0 (unchecked) or 1 (checked) from MySQL to particular article and how to store data in MySQL

Offline

Board footer

Powered by FluxBB