|
Joined: Sep 2004
Posts: 152
member
|
member
Joined: Sep 2004
Posts: 152 |
I'd like to change {$CUSTOM_FIELD_1} into a text area in editbasic.tpl, but the tpl file only mentions {$CUSTOM_FIELD_1} itself. How do I actually edit its contents?
|
|
|
|
Joined: Jun 2006
Posts: 3,839 Likes: 1
Carpal Tunnel
|
Carpal Tunnel
Joined: Jun 2006
Posts: 3,839 Likes: 1 |
good question - despite searching for you I can't spot it - must be there - I will look deeper
|
|
|
|
Joined: Sep 2004
Posts: 152
member
|
member
Joined: Sep 2004
Posts: 152 |
|
|
|
|
Joined: Jun 2006
Posts: 3,839 Likes: 1
Carpal Tunnel
|
Carpal Tunnel
Joined: Jun 2006
Posts: 3,839 Likes: 1 |
sorry, have not had a chance to relook.
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
For that, you'll need to actually edit the editbasic.php script. Around line 309.
|
|
|
|
Joined: Sep 2004
Posts: 152
member
|
member
Joined: Sep 2004
Posts: 152 |
Hi Rick,
Believe it or not, but editing those lines does nothing!
|
|
|
|
Joined: Sep 2004
Posts: 152
member
|
member
Joined: Sep 2004
Posts: 152 |
Hi Rick,
Any chance we'll get a custom field size feature in future control panels?
|
|
|
|
Joined: Jun 2006
Posts: 16,367 Likes: 126
|
Joined: Jun 2006
Posts: 16,367 Likes: 126 |
I haven't tested itmyself (as I don't really have a need to use a text area) but you've tried changing this: if ($config['CUSTOM_FIELD_1']) {
$CUSTOM_FIELD_1 = "
{$config['CUSTOM_FIELD_1']}
<br />
<input type=\"text\" name=\"CUSTOM_FIELD_1\" value=\"$CUSTOM_FIELD_1\" class=\"form-input\" />
<br />
<br />
";
} in scripts/editbasic.inc.php? It seems trivial, I'm just hoping that you tested the correct areas in your search.
|
|
|
|
Joined: Sep 2004
Posts: 152
member
|
member
Joined: Sep 2004
Posts: 152 |
Hi Gizmo,
Indeed. For some funny reason, it doesn't change anything.
|
|
|
|
Joined: Jun 2006
Posts: 16,367 Likes: 126
|
Joined: Jun 2006
Posts: 16,367 Likes: 126 |
Did you clear your cache after editing files?
|
|
|
|
Joined: Sep 2004
Posts: 152
member
|
member
Joined: Sep 2004
Posts: 152 |
I just tried, but it doesn't change anything.
|
|
|
|
Joined: Sep 2004
Posts: 152
member
|
member
Joined: Sep 2004
Posts: 152 |
I'm getting really curious after the solution to this riddle...
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Changing that on my test system works ok. Do any other template changes to that script work for you? Just curious if maybe it's caching an old template. If the templates/compile directory doesn't have full permissions it could be holding on to an old compiled template.
|
|
|
|
Joined: Sep 2004
Posts: 152
member
|
member
Joined: Sep 2004
Posts: 152 |
It seems indeed it's holding on to an old template. Howver, template changes from the Control Panel do work. Changes made straight in the php file don't work.
The Templates/compile directory has full permissions.
The Templates directory has no write permissions for Group and Public.
Is that correct?
Last edited by Yomar; 12/04/2006 4:23 AM.
|
|
|
|
Joined: Sep 2004
Posts: 152
member
|
member
Joined: Sep 2004
Posts: 152 |
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Missed your earlier reply. Permissions sound ok. One thing you can try to see if it's a permission problem is to delete everything from within the templates/compile directory and see if your changes are visible. This will force it to recompile the template and the output.
|
|
|
|
Joined: Sep 2004
Posts: 152
member
|
member
Joined: Sep 2004
Posts: 152 |
I'm ashamed, so ashamed. I thought the HTML syntax for textareas was exactly the same as for other input fields... but it seems I was wrong. This works:
<textarea name=\"CUSTOM_FIELD_1\" cols=\"50\" rows=\"5\"
wrap=\"soft\" class=\"form-input\">{$CUSTOM_FIELD_1}</textarea>
This does not work:
<input type=\"textarea\" name=\"CUSTOM_FIELD_1\"
value =\"$CUSTOM_FIELD_1\" cols=\"50\" rows=\"5\" wrap=\"soft\" class=\"form-input\" />
I'm so sorry for wasting your time... It worked correctly right from the beginning. I just don't know how HTML works
Last edited by Yomar; 12/12/2006 3:41 PM.
|
|
|
|
Joined: Sep 2004
Posts: 152
member
|
member
Joined: Sep 2004
Posts: 152 |
Rick, any chance we can configure the size of fields directly from the control panel in future versions?
|
|
|
2 members (Ruben, SenecaFlyer),
929
guests, and
67
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|