Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
2 registered (Mike L, capnbob), 32 Guests and 17 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 05/13/08
Posts: 596
Top Posters (30 Days)
Ruben 49
Gizmo 24
DennyP 24
Dunny 17
SteveS 14
AllenAyres 12
dbremer 10
drkknght00 9
SD 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 2 1 2 >
Topic Options
#167497 - 11/02/06 02:02 AM {$CUSTOM_FIELD_1}
Yomar Offline
member
Registered: 09/02/04
Posts: 164
Loc: Leiden, The Netherlands
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?
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#167501 - 11/02/06 04:24 AM Re: {$CUSTOM_FIELD_1} [Re: Yomar]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
good question - despite searching for you I can't spot it - must be there - I will look deeper
Top
#167600 - 11/03/06 02:15 AM Re: {$CUSTOM_FIELD_1} [Re: Ian]
Yomar Offline
member
Registered: 09/02/04
Posts: 164
Loc: Leiden, The Netherlands
Another one for Rick?
Top
#167605 - 11/03/06 08:36 AM Re: {$CUSTOM_FIELD_1} [Re: Yomar]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
sorry, have not had a chance to relook.
Top
#167613 - 11/03/06 10:57 AM Re: {$CUSTOM_FIELD_1} [Re: Ian]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
For that, you'll need to actually edit the editbasic.php script. Around line 309.
Top
#167788 - 11/05/06 06:43 AM Re: {$CUSTOM_FIELD_1} [Re: Rick]
Yomar Offline
member
Registered: 09/02/04
Posts: 164
Loc: Leiden, The Netherlands
Hi Rick,

Believe it or not, but editing those lines does nothing!
Top
#169394 - 11/30/06 03:06 AM Re: {$CUSTOM_FIELD_1} [Re: Yomar]
Yomar Offline
member
Registered: 09/02/04
Posts: 164
Loc: Leiden, The Netherlands
Hi Rick,

Any chance we'll get a custom field size feature in future control panels?
Top
#169402 - 11/30/06 04:34 AM Re: {$CUSTOM_FIELD_1} [Re: Yomar]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
I haven't tested itmyself (as I don't really have a need to use a text area) but you've tried changing this:
Code:
	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.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#169411 - 11/30/06 07:36 AM Re: {$CUSTOM_FIELD_1} [Re: Gizmo]
Yomar Offline
member
Registered: 09/02/04
Posts: 164
Loc: Leiden, The Netherlands
Hi Gizmo,

Indeed. For some funny reason, it doesn't change anything.
Top
#169413 - 11/30/06 08:15 AM Re: {$CUSTOM_FIELD_1} [Re: Yomar]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
Did you clear your cache after editing files?
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#169437 - 11/30/06 07:52 PM Re: {$CUSTOM_FIELD_1} [Re: Gizmo]
Yomar Offline
member
Registered: 09/02/04
Posts: 164
Loc: Leiden, The Netherlands
I just tried, but it doesn't change anything.
Top
#169485 - 12/01/06 07:09 PM Re: {$CUSTOM_FIELD_1} [Re: Yomar]
Yomar Offline
member
Registered: 09/02/04
Posts: 164
Loc: Leiden, The Netherlands
I'm getting really curious after the solution to this riddle...
Top
#169491 - 12/01/06 08:19 PM Re: {$CUSTOM_FIELD_1} [Re: Yomar]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
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.
Top
#169656 - 12/04/06 04:18 AM Re: {$CUSTOM_FIELD_1} [Re: Rick]
Yomar Offline
member
Registered: 09/02/04
Posts: 164
Loc: Leiden, The Netherlands
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?


Edited by Yomar (12/04/06 04:23 AM)
Top
#170112 - 12/11/06 05:38 PM Re: {$CUSTOM_FIELD_1} [Re: Yomar]
Yomar Offline
member
Registered: 09/02/04
Posts: 164
Loc: Leiden, The Netherlands
/boink
Top
#170118 - 12/11/06 06:07 PM Re: {$CUSTOM_FIELD_1} [Re: Yomar]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
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.
Top
#170176 - 12/12/06 03:34 PM Re: {$CUSTOM_FIELD_1} [Re: Gizmo]
Yomar Offline
member
Registered: 09/02/04
Posts: 164
Loc: Leiden, The Netherlands
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:

PHP:
<textarea name="CUSTOM_FIELD_1\" cols=\"50\" rows=\"5\" wrap=\"soft\" class=\"form-input\">{$CUSTOM_FIELD_1}</textarea>


This does not work:
PHP:
<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 \:D


Edited by Yomar (12/12/06 03:41 PM)
Top
#170177 - 12/12/06 03:39 PM Re: {$CUSTOM_FIELD_1} [Re: Yomar]
Yomar Offline
member
Registered: 09/02/04
Posts: 164
Loc: Leiden, The Netherlands
Rick, any chance we can configure the size of fields directly from the control panel in future versions?
Top
Page 1 of 2 1 2 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Ability to "like" individual posts (not Facebook "likes)
by doug
Yesterday at 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Forum Stats
10489 Members
36 Forums
33840 Topics
181693 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image