Tokenize for 6.x

greggles - October 16, 2008 - 22:43
Project:Tokenize
Version:5.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:needs review
Description

Yep...

#1

kenorb - October 20, 2008 - 11:38

Yep...

#2

kenorb - October 20, 2008 - 15:27

Version for 6.x in attachment

AttachmentSize
tokenize.module.patch 5.86 KB

#3

kenorb - October 20, 2008 - 15:28
Status:active» needs review

And whole module as well if patch will not work.

AttachmentSize
tokenize.zip 9.11 KB

#4

pkej - October 31, 2008 - 14:52

It _seems_ to work except for:

The form settings aren't saved, so everytime I go into the field, I have to set the Tokenize options.
Nothing is saved in the database.

Anyway, I tested Automatic Nodetitles in both a 6.x with Tokenize, and one without, and as far as I can see the functionality of tokenizing the CCK fields works in both, it seems to be a part of Token or CCK now.

I do believe I used to use Tokenize in 5.x to get tokens from CCK fields, but now it doesn't seem neccessary.

Can you confirm? Or please tell me why I need it, as I might have forgotten.

Best regards,
Paul

#5

greggles - October 31, 2008 - 15:22

Paul - Automatic Nodetitles gets the CCK Tokens through the Token API. The CCK modules themselves provide the Tokens for CCK fields.

Tokenize allows you to enter tokens into CCK fields and have them replaced with the proper value.

#6

pkej - October 31, 2008 - 15:47

Well, then it isn't working on 6.6. The settings aren't saved to the database. The tokenize table is empty.

I have tried to create two fields for this without anything happening. I'll take a stab at the code myself.

Paul

#7

ldbl - February 11, 2009 - 09:08

I also try it and it not work with drupal 6.9 . I change module a little bit and tokenize table was filled.
But still doesn't work. Problem was in form variables .

#8

pkej - February 19, 2009 - 15:44

can you post the patch, or a zip of your module?

#9

ldbl - February 19, 2009 - 20:27

It's seems that I port it.
Work on my machine with drupal 6.9

AttachmentSize
tokenize.zip 9.2 KB

#10

ldbl - February 21, 2009 - 09:11

I left one print_r just before switch for form. Until I port the module.
Here i zip file without this print-r

AttachmentSize
tokenize.zip 9.2 KB

#11

kenorb - February 23, 2009 - 12:40

You should fix in this version some things that was converted in my version.
- Like serialize and unserialize when calling cache is not necessary anymore.
http://api.drupal.org/api/function/cache_set
- No dependency for Content module

#12

kenorb - February 23, 2009 - 12:38

Try this version.

AttachmentSize
tokenize.module.patch 3.32 KB
tokenize.zip 9.01 KB

#13

ldbl - February 23, 2009 - 13:51

Sorry it's seems that I missed some stuff.
Next time I will be more careful.

Thanks.

#14

ldbl - March 1, 2009 - 09:02

@kenorb
I tried your version and I receive this error:
Fatal error: Cannot use string offset as an array in /home/mystite/bport/sites/all/modules/tokenize/tokenize.module on line 154

 
 

Drupal is a registered trademark of Dries Buytaert.