Previous Thread
Next Thread
Print Thread
Hop To
[7.5] editbasic.inc.php mod #223314 02/27/2009 2:14 PM
Joined: Feb 2009
Posts: 53
Stephan Offline OP
journeyman
OP Offline
journeyman
Joined: Feb 2009
Posts: 53
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
Re: [7.5] editbasic.inc.php mod [Re: Stephan] #223369 02/27/2009 11:56 PM
Joined: Mar 2008
Posts: 326
DLWebmaestro Offline
Enthusiast
Offline
Enthusiast
Joined: Mar 2008
Posts: 326
Your code worked for me.

Re: [7.5] editbasic.inc.php mod [Re: DLWebmaestro] #223370 02/28/2009 1:30 AM
Joined: Feb 2009
Posts: 53
Stephan Offline OP
journeyman
OP Offline
journeyman
Joined: Feb 2009
Posts: 53
open MyProfile .... ubbthreads.php/ubb/editbasic
Error 500 - Internal server error

Why?????

Rick ??

Last edited by Stephan; 02/28/2009 1:34 AM.

UBB since 2003 - Version v7.5.2 - http://www.tiernetzwerk.de
Chrome 2.0
Re: [7.5] editbasic.inc.php mod [Re: Stephan] #223382 02/28/2009 5:03 PM
Joined: Jun 2006
Posts: 15,860
Likes: 1
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,860
Likes: 1
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...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: [7.5] editbasic.inc.php mod [Re: Gizmo] #223394 03/01/2009 7:24 AM
Joined: Feb 2009
Posts: 53
Stephan Offline OP
journeyman
OP Offline
journeyman
Joined: Feb 2009
Posts: 53
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
Re: [7.5] editbasic.inc.php mod [Re: Stephan] #223459 03/02/2009 12:49 PM
Joined: Feb 2009
Posts: 53
Stephan Offline OP
journeyman
OP Offline
journeyman
Joined: Feb 2009
Posts: 53
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
Re: [7.5] editbasic.inc.php mod [Re: Stephan] #223468 03/02/2009 1:58 PM
Joined: Jun 2006
Posts: 9,243
Rick Offline
Former Developer
Offline
Former Developer
Joined: Jun 2006
Posts: 9,243
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.


Link Copied to Clipboard
Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Subscriptions Question
by Ruben - 01/14/2020 12:11 PM
Page won't load after 7.7.3 Update
by Jim0421 - 01/08/2020 11:11 AM
Ubb 7.7.3 winkey emoji shortcut issue
by Ruben - 01/07/2020 4:04 PM
testing winkey emoji shortcut
by Ruben - 01/06/2020 2:36 PM
Very strange problem
by Baldeagle - 01/05/2020 1:22 PM
Who's Online Now
0 members (), 57 guests, and 365 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20200106)