Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1033 2011-06-09 16:18:59

[Axel]
Member
From: Switzerland/Denmark
Registered: 2007-07-26
Posts: 65
Website

Re: zem_contact_reborn 4.0.3.20

Maybe this question has been asked before (could not find)

Why is there no title attribute for input fields? It is a standard attribute and should be included. Or have I overseen sonmething?

Last edited by [Axel] (2011-06-09 20:36:10)


Greetz [Axel]

Offline

#1034 2011-06-09 22:07:27

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.20

There are a lot more standard attributes that are not included. If you need it, either add it using javascript or edit the plugin.

Offline

#1035 2011-06-10 10:08:43

[Axel]
Member
From: Switzerland/Denmark
Registered: 2007-07-26
Posts: 65
Website

Re: zem_contact_reborn 4.0.3.20

As I would like to keep it on the serverside, I tried to edit the plugin, but could not make it work.

As an example I tried to add the attribute to the zem_contact_email($atts) function.

extract(zem_contact_lAtts(array(
        'default'    => '',
        'isError'    => '',
        'label'        => zem_contact_gTxt('email'),
        'max'        => 100,
        'min'        => 0,
        'name'        => '',
        'required'    => 1,
        'break'        => br,
        'size'        => '',
        'title'        =>'',
        'send_article'    => 0
    ), $atts));

but that’s not doing the trick. So I thought it must first be defined in the zem_contact_lAtts function. but that only triggers an Textpattern Notice: Unknown tag attribute: title error in the txplib_misc.php.

No clue what else to do, any advice ruud?


Greetz [Axel]

Offline

#1036 2011-06-10 11:37:39

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.20

You need to do two things:
1. define the attribute (as you did in the code example above)
2. use the attribute value. Search for things like <input type="text" ... and change those to <input type="text" title="'.$title.'" ...

Offline

#1037 2011-06-10 13:00:51

[Axel]
Member
From: Switzerland/Denmark
Registered: 2007-07-26
Posts: 65
Website

Re: zem_contact_reborn 4.0.3.20

BIG TANKS

Got it to work


Greetz [Axel]

Offline

#1038 2011-06-11 16:35:52

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,888
GitHub

Re: zem_contact_reborn 4.0.3.20

I’m getting the Function split() is deprecated error, same as Tarokun – running zem_contact_reborn v4.0.3.20 on Textpattern v4.4.0 on a PHP v5.3.5 box. Any ideas? I’m a-trawlin’ through this thread but haven’t found anything yet.

Offline

#1039 2011-06-14 10:00:52

vaprea
New Member
From: Italy
Registered: 2010-07-10
Posts: 3

Re: zem_contact_reborn 4.0.3.20

Hi to all, is it possible to override default style classes? Tnx


<txp:sy/>

Offline

#1040 2011-06-14 10:49:18

[Axel]
Member
From: Switzerland/Denmark
Registered: 2007-07-26
Posts: 65
Website

Re: zem_contact_reborn 4.0.3.20

You could either use JavaScript to do so, or edit the plugin.
But IMO you should just edit your CSS to the zemClasses

Last edited by [Axel] (2011-06-14 10:49:48)


Greetz [Axel]

Offline

#1041 2011-06-23 13:30:11

[Axel]
Member
From: Switzerland/Denmark
Registered: 2007-07-26
Posts: 65
Website

Re: zem_contact_reborn 4.0.3.20

Hi Ruud,

I looked for some zem_contct_language files, and couldn’t find any except a German translation. Wouldn’t it be a good idea to link them all under the zem_contact_lang plugin?

I have a Danish translation that I would like to share.

Sunny Greetz

[Axel]


Greetz [Axel]

Offline

#1042 2011-06-23 17:16:23

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.20

The idea behind the ZRC_lang plugin is that anyone can easily modify the plugin to his own language (and it’s really easy to do that), using error messages in a way they like best (people tend to disagree on what the right translation is).

Offline

#1043 2011-06-23 19:55:31

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: zem_contact_reborn 4.0.3.20

You will find a couple of translations here. They were made for use with MLP, but you can of course just copy them for any non-MLP site.

Offline

#1044 2011-07-01 01:14:33

Dorian Graph
New Member
From: Australia
Registered: 2010-10-26
Posts: 8
Website

Re: zem_contact_reborn 4.0.3.20

Where is the most appropriate place for me to file an update for the plugin?

Case: With Textpattern 4.4.0 (?) split() was deprecated and explode() is to be used instead (Here is an example in classTextile.php where it was updated) and currently the the plugin has one line which uses split() throwing an error—I have just fixed this on my own though when searching about this problem I found a few sites that currently have the same problem (And I plan on emailing them soon too to let them know):

http://skywatchersmusic.com/contact
http://brownhilltreeco.com/request-info

I fixed this by simply editing line 538 in the plugin from:
$list = array_map('trim', split($delimiter, preg_replace('/[\r\n\t\s]+/', '
To..
$list = array_map('trim', explode($delimiter, preg_replace('/[\r\n\t\s]+/', '

Last edited by Dorian Graph (2011-07-01 01:26:05)

Offline

Board footer

Powered by FluxBB