Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1117 2014-07-30 10:10:29

element
Member
Registered: 2009-11-18
Posts: 99

Re: glz_custom_fields

I installed the version from GitHub and this one works. The one I had installed was apparently an older version, also called beta 1.

This is ridiculous. So there’s multiple 1.4.0 beta 1 versions spread across the internet. What’s wrong with calling a newer version beta 2?

Offline

#1118 2014-07-30 10:22:00

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,303

Re: glz_custom_fields

element wrote #282523:

So there’s multiple 1.4.0 beta 1 versions spread across the internet.

Can you please help clearing that situation by naming the file extension that worked for you? Or was it simply the link from the first post here? THANKS!


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#1119 2014-07-30 10:28:28

element
Member
Registered: 2009-11-18
Posts: 99

Re: glz_custom_fields

I downloaded the master.zip from https://github.com/gerhard/glz_custom_fields and used the tar.gz file in the releases folder. I’m guessing the zip file works too because they have the same date stamps.

Offline

#1120 2014-09-25 05:58:52

gfdesign
Member
From: Argentina
Registered: 2009-04-20
Posts: 401

Re: glz_custom_fields

Dears, I ask some help to modify my PHP code.
I have the below code that bring all the categories with checkboxes each under a parent category.

<?php
function lista_secciones_revista($custom_field, $custom_id, $custom_value) {
  $titles = array();
  $query = safe_rows('name, title', 'txp_category', "parent like 'notas' AND type like 'article' AND name!='root' ORDER BY name");
  $titles[] = '&nbsp;';
  foreach ($query as $title) 
  $titles[$title['name']] = $title['title'];
  return glz_checkbox($custom_field, $titles, $custom_value, "1", true);  
}
?>

Now, I’d like change radiobuttons instead checkboxes since I just need the user select only one option.
Could anybody give me a hand?
Thanks

Offline

#1121 2014-09-28 02:07:17

gfdesign
Member
From: Argentina
Registered: 2009-04-20
Posts: 401

Re: glz_custom_fields

worths1 wrote #280904:

The plugin can’t find my custom scripts. This is a local install using WAMP. Would that create an issue? Datepicker and timepicker work.

(Using TXP 4.5.5 and glz_custom_fields 1.4.0_beta).

EDIT

And to demonstrate either 1) I’m not thick, or 2) I’m so incredibly thick as to beyond all hope, I can’t get the sample script to work either.

Error message

Ooops! http://localhost/plugins/glz_custom_fields/my_images.php cannot be found, check path

Custom scripts path

http://localhost/plugins/glz_custom_fields (Not working)

Time picker path

http://localhost/plugins/glz_custom_fields/jquery.timePicker (working)

Actual path to folder containing custom scripts and subfolder jquery.timePicker

C:/wamp/www/plugins/glz_custom_fields

:-D

I am having the same issue. Have you able to fix it? No matter I url specify, I always get “cannot be found, check path” :(

Offline

#1122 2014-09-28 14:35:04

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,303

Re: glz_custom_fields

The sample script path is in a different format than the two paths of the pickers, at least on my MAMP (Mac):

Custom scripts
/Users/Username/direct/ories/txp454/plugins/glz_custom_fields (“Users” directory is in the HD’s root)

Date Picker plugin URL
http://localhost:8888/txp454/plugins/glz_custom_fields/jquery.datePicker

Time Picker plugin URL
http://localhost:8888/txp454/plugins/glz_custom_fields/jquery.timePicker

See if you can adapt from there.

Last edited by uli (2014-09-28 14:38:20)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#1123 2014-09-30 02:06:25

gfdesign
Member
From: Argentina
Registered: 2009-04-20
Posts: 401

Re: glz_custom_fields

Hi Uli. Now it’s working. Beside that, I was able to achieve what I couldn’t get.
Thanks

Offline

#1124 2014-10-13 12:20:40

planeth
Plugin Author
From: Nantes, France
Registered: 2009-03-19
Posts: 215
Website

Re: glz_custom_fields

Just for information.
If you are upgrading glz_custom_fields and already have custom fields added with this plugin BUT only of the type text_input and textarea.
It means that the table custom_fields will be empty.
This is a problem because on migration the plugin lifecycle will check for existing rows in that table to know if it is an upgrade or not.
In the case above the test will fail and the plugin will write a whole bunch of rows in the custom_fields table …. And will convert all your custom_field to the type of select.
So in you are that case may be a workaround would be to add any random row to the table

Offline

#1125 2014-10-29 09:40:54

ingleslenobel
Member
Registered: 2014-10-16
Posts: 88

Re: glz_custom_fields

I’m relatively new to textpattern but I’m on the hunt for something that increases my custom fields beyond the 10 that looks like the default. This thread starts in 2007 – but the plugin looks perfect. can I ask, does this work for the latest version of textpattern or is there something else similar available (doesn’t matter paid or not)

Thank you!!

Offline

#1126 2014-11-02 20:00:47

ingleslenobel
Member
Registered: 2014-10-16
Posts: 88

Re: glz_custom_fields

Hello,

My textpattern install is in a directory above main; it is a blog mechanism rather than main site CMS. This plugin is tremendously useful.

I would like to check that I’ve installed it properly, because looking through my logs I’m getting some 404s:

GET /extremist/plugins/glz_custom_fields/glz_custom_fields.js HTTP/1.0
GET /extremist/plugins/glz_custom_fields/glz_custom_fields.css HTTP/1.0

I don’t have a /plugin/ directory – is this because it’s 4.5?

Offline

#1127 2014-11-02 21:28:30

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,303

Re: glz_custom_fields

Without a plugins directory the plugin isn’t properly installed. With TXP in a subfolder, naming can be tricky (you might have a textpattern folder inside a textpattern folder), hence I simply paste here what’s in the plugin’s read-me:

    .
    |-- HISTORY.txt
    |-- README.txt
    |-- index.php
    |-- ...........
    |-- plugins <<< THIS IS THE FOLDER THAT YOU NEED TO CREATE
    |   `-- glz_custom_fields <<< THIS IS THE FOLDER THAT YOU NEED TO ADD
    |-- ...........
    `-- textpattern
        |-- checksums.txt
        |-- config-dist.php
        |..................

In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#1128 2014-11-02 21:39:42

ingleslenobel
Member
Registered: 2014-10-16
Posts: 88

Re: glz_custom_fields

Thank you. My readme doesn’t mention any of this. I have the below. So I may have the wrong one. Navigating and finding current plugins is very hazardous.

“### Unlimited custom fields for Textpattern

This plugin sits under the Extensions tab in the back-end and gives
your custom fields new life. You can finally have custom fields that are
selects, multi-selects, checkboxes, radios and textareas – besides the
default input fields. You can predefine values for custom fields and you
can select a single default value (selects, multi-selects, checkboxes
and radios only). Rather then constantly typing in the same thing over
and over again, just select or check it and you’re set.

The plugin doesn’t require any hacking of TXP, it’s a straight install
with instant gratification.

### License

Copyright © 2012 Gerhard Lazu

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/gpl-2.0.html>.”

uli wrote #285408:

Without a plugins directory the plugin isn’t properly installed. With TXP in a subfolder, naming can be tricky (you might have a textpattern folder inside a textpattern folder), hence I simply paste here what’s in the plugin’s read-me:

....

p.

Offline

Board footer

Powered by FluxBB