Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-11-10 02:32:36

speeke
Member
From: Bruny Island, Australia
Registered: 2009-03-29
Posts: 161
Website

Required form: "Links" - nitpick!

My apologies in advance for this post which is nitpicky in the extreme ;)

I would like to rename the required form “Links” to “links” since all other form names are in lowercase, and every time I review my forms this one stands out (yes, I have a relentless editor’s eye).

I have searched the Textpattern files and come across the following:

textpattern/include/txp_form.php – line #21

which appears to be the only file that needs updating.

I have also searched the database, and found the following (not sure if any of these need to be changed):

txp_form table – 1 row
txp_lang table – 4 rows (id #285, #486, #490, #841)

Is anyone else able to confirm the required changes?

Also, whilst these could be changed on an individual basis, I was wondering whether this is something that could be changed in the official Textpattern download files? I understand that it is probably the least important/interesting change, but what can I say … :-)


“People who value their privileges above their principles soon lose both.”
Dwight D. Eisenhower

Offline

#2 2009-11-10 09:03:43

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: Required form: "Links" - nitpick!

You don’t need to hack textpattern for this.
There are two simpler ways:
1) Open phpmyadmin and change the corresponding value in the “lang” txp_table
2) Even better: use wet_babble

Offline

#3 2009-11-10 12:18:16

speeke
Member
From: Bruny Island, Australia
Registered: 2009-03-29
Posts: 161
Website

Re: Required form: "Links" - nitpick!

redbot,

Thanks for your reply, but I couldn’t see how wet_babble could help here.

I’ve had to hack textpattern/include/txp_form.php – line #21, and txp_form table (1 row) to change “Links” to “links” in both cases.

If there’s a better way, please let me know.


“People who value their privileges above their principles soon lose both.”
Dwight D. Eisenhower

Offline

#4 2009-11-10 13:52:54

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: Required form: "Links" - nitpick!

Don’t want to go OT but it’s interesting that the Links is the only form name in uppercase from ages. I’m curious: is there a reason for this?

Offline

#5 2009-11-10 13:54:23

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: Required form: "Links" - nitpick!

speeke wrote:

… I couldn’t see how wet_babble could help here.

Damn you’re right, sorry. I didn’t read carefully (as usual) and I tought you were talking about some label in the interface, not an actual form name.
In this case your move is probably the right one.

Offline

Board footer

Powered by FluxBB