Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
2 registered (Dunny, Ruben), 48 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/05/06
Posts: 709
Top Posters (30 Days)
Ruben 50
DennyP 24
Gizmo 24
Dunny 15
SteveS 13
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#223314 - 02/27/09 02:14 PM [7.5] editbasic.inc.php mod
Stephan Offline
journeyman
Registered: 02/09/09
Posts: 56
Loc: Heidelberg - Germany
I want to change the customfield 1 input from text to radiobutton.
Gender select: male (m) or female (f)

But it doesn't work. The server get works and works .... no answere anymore!

editbasic.inc.php
start row: 351
Code:
 
	// Handle Custom fields 1 - 5 :)
	for ($i = 1; $i <= 5; $i++) {
		$key = 'CUSTOM_FIELD_' . $i;
		$x = ${$key};
		if ($config[$key]) {

			if ($i=1)
				{
				$markiertM = "";
				$markiertF = "";
				if ($x == "m") {$markiertM = "checked=\"checked\"";}
				if ($x == "f") {$markiertF = "checked=\"checked\"";}

				${$key} = "					
				<label for=\"{$key}\">{$config[$key]}</label>
				<br />
				{$ubbt_lang['MALE']} <input type=\"radio\" name=\"{$key}\" id=\"GENDER_M\" value=\"m\" {$markiertM} class=\"form-radio\" /><br />
				{$ubbt_lang['FEMALE']} <input type=\"radio\" name=\"{$key}\" id=\"GENDER_F\" value=\"f\" {$markiertF} class=\"form-radio\" /><br /><br />
				";

				}
			else {
	
				${$key} = "
					<label for=\"{$key}\">{$config[$key]}</label>
					<br />
					<input type=\"text\" name=\"{$key}\" id=\"{$key}\" value=\"{$x}\" class=\"form-input\" /><br /><br />
				";
			      }

		} else {
			${$key} = "
				<input type=\"hidden\" name=\"{$key}\" id=\"{$key}\" value=\"{$x}\" class=\"form-input\" />
			";
		}
	}
_________________________
UBB since 2003 - Version v7.5.2 - http://www.tiernetzwerk.de
Chrome 2.0
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."
#223369 - 02/27/09 11:56 PM Re: [7.5] editbasic.inc.php mod [Re: Stephan]
DLWebmaestro Offline
enthusiast
Registered: 03/26/08
Posts: 333
Loc: North Carolina
Your code worked for me.
_________________________
Marching Percussion ( Drumline ) Community
Top
#223370 - 02/28/09 01:30 AM Re: [7.5] editbasic.inc.php mod [Re: DLWebmaestro]
Stephan Offline
journeyman
Registered: 02/09/09
Posts: 56
Loc: Heidelberg - Germany
open MyProfile .... ubbthreads.php/ubb/editbasic
Error 500 - Internal server error

Why?????

Rick ??


Edited by Stephan (02/28/09 01:34 AM)
_________________________
UBB since 2003 - Version v7.5.2 - http://www.tiernetzwerk.de
Chrome 2.0
Top
#223382 - 02/28/09 05:03 PM Re: [7.5] editbasic.inc.php mod [Re: Stephan]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
Moved this to the General 7.x forum; as mod's aren't officially supported there isn't really a place for this topic, but Feedback/Sugguestions isn't really the proper place...
_________________________
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
#223394 - 03/01/09 07:24 AM Re: [7.5] editbasic.inc.php mod [Re: Gizmo]
Stephan Offline
journeyman
Registered: 02/09/09
Posts: 56
Loc: Heidelberg - Germany
sorry and thx!

is there a answere what I'm doing wrong?
_________________________
UBB since 2003 - Version v7.5.2 - http://www.tiernetzwerk.de
Chrome 2.0
Top
#223459 - 03/02/09 12:49 PM Re: [7.5] editbasic.inc.php mod [Re: Stephan]
Stephan Offline
journeyman
Registered: 02/09/09
Posts: 56
Loc: Heidelberg - Germany
is it a UBB THEAD problem?

SERVERERROR 500

Thank you
Stephan
_________________________
UBB since 2003 - Version v7.5.2 - http://www.tiernetzwerk.de
Chrome 2.0
Top
#223468 - 03/02/09 01:58 PM Re: [7.5] editbasic.inc.php mod [Re: Stephan]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Does it give you a 500 error with the stock script in place? If not, then it's probably a syntax error somewhere with the modification.
Top



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

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 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
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

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