Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#151 2008-02-11 02:16:36
Re: glz_custom_fields
To make sure, don’t add zero (0) to textpattern/lib/admin_config.php if you don’t want public non-priv users to come and edit your posts and plugins :) – well it isn’t problem if you don’t allow public registeration but anyway. But you can edit it, if you have multiple authors that need to be able to use extensions tab. Better way would ofcourse increase the level of those authors instead of editing core files.
Last edited by Gocom (2008-02-11 02:17:33)
Offline
#152 2008-02-11 03:52:08
Re: glz_custom_fields
My upload_max_filesize is already 32M. I’d be a bit surprised if I was running into memory limits. But maybe that’s it?
Offline
#153 2008-02-11 04:18:41
Re: glz_custom_fields
Hmm, that won’t be it then.
Someone else had a similar problem and it was due to the big POST. If mod_security is enabled, Apache will think it’s an attack and will block the request. Try disabling mod_security for the website in question in .htaccess and see if that works. If it works, upload the plugin and then comment the lines.
SecFilterEngine Off
SecFilterScanPOST Off
Offline
#154 2008-02-11 05:10:00
Re: glz_custom_fields
Adding those lines to my .htaccess broke my site — is that not a complete directive?
Offline
#155 2008-02-11 05:14:47
Offline
#156 2008-02-11 05:27:36
Re: glz_custom_fields
Just added the code – the site stayed up but still with the “Badly formed or empty plugin code.” error message. Weird.
Thanks for all the assistance though — it’s greatly appreciated.
Offline
#157 2008-02-11 08:14:32
Re: glz_custom_fields
Gerhard, if you send Nick a compressed plugin, he can probably install it.
Offline
#158 2008-02-11 08:23:26
Re: glz_custom_fields
Hey ruud, I have, base_64.
Nick, for the time being, do the following. Set up plugin_cache_dir in Admin > Preferences > Advanced to /path/to/your/site/scripts and create a folder °*scripts* in the root of your website. Put the uncompressed plugin in there as a PHP file (I will send it over in a minute) and that’s your temporary fix until we figure out as to what is going on with your install. You will miss on the help, but hey, you know most of the stuff anyways, right?
Offline
#159 2008-02-11 08:37:47
Re: glz_custom_fields
Ah ha! That did the trick! Thank you, gentlemen.
Is there any useful debugging information that I could send over? I wonder if I should also post on the Joyent forums for some clues.
Offline
#160 2008-02-11 08:55:06
Re: glz_custom_fields
base64 isn’t compressed, just encoded.
Offline
#161 2008-02-11 10:31:23
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: glz_custom_fields
Gerhard,
Just a little suggestion. In the plugin help you should delete the ending slash from <txp:glz_if_custom_field name=“Rating” val=“4” /> cos this is not a self closing tag.
Another little glitch I’ve noticed is that in some (not all) of my txp installations the custom fields settings are no more hidden from the “advanced preferences” tab. Actually nothing very important , I just wanted to let you know.
Offline
#162 2008-02-11 15:25:59
Re: glz_custom_fields
redbot wrote:
Gerhard,
Just a little suggestion. In the plugin help you should delete the ending slash from <txp:glz_if_custom_field name=“Rating” val=“4” /> cos this is not a self closing tag.
You are absolutely right, fixed. Will send the update when everyone has submitted the little bugs.
Another little glitch I’ve noticed is that in some (not all) of my txp installations the custom fields settings are no more hidden from the “advanced preferences” tab. Actually nothing very important , I just wanted to let you know.
Yes, I’ve already spotted that, all fixed. It had to do with jQuery 1.2 selectors.
ruud wrote:
base64 isn’t compressed, just encoded.
Yes, you are right, apologies. Are you thinking about some characters becoming screwed in the mail attachment when sending as .txt?
Offline
#163 2008-02-11 19:25:45
Re: glz_custom_fields
No, I mentioned plugin compression to circumvent the restrictions on maximum upload size. I assume you’re using zem_tpl.php to encode your plugin into txt format. If you want to create a compressed plugin, change this line:
return $header . "\n\n" . trim(chunk_split(base64_encode(serialize($plugin)), 72)). "\n";
into:
return $header . "\n\n" . trim(chunk_split(base64_encode(gzencode(serialize($plugin))), 72)). "\n";
Note that not all PHP installs have gzip support activated and this requires TXP 4.0.4 or higher.
Offline
#164 2008-02-11 19:35:00
Re: glz_custom_fields
gerhard
Or if you are using ied_plugin_composer the latest version has the option of outputting a compressed plugin for you.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#165 2008-02-12 14:17:07
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: glz_custom_fields
Can’t get it working on a new install of TxP.
Search tag on default page:
<txp:glz_custom_fields_search_form results_page=“listings” searchby=“Category” />
result tag the listings page:
<txp:glz_custom_fields_article form=“default” limit=“20” no_results=“no_results” />
The listings page is not listing anything, any ideas what I have done wrong?
Demo site here: www.lesagencesdulimousin.fr/
Offline