Previous Thread
Next Thread
Print Thread
Hop To
[7.5] editbasic.inc.php mod
#223314 02/27/2009 3: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
Stephan #223369 02/28/2009 12:56 AM
Joined: Mar 2008
Posts: 326
Enthusiast
Offline
Enthusiast
Joined: Mar 2008
Posts: 326
Your code worked for me.

Re: [7.5] editbasic.inc.php mod
DLWebmaestro #223370 02/28/2009 2: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 2:34 AM.

UBB since 2003 - Version v7.5.2 - http://www.tiernetzwerk.de
Chrome 2.0
Re: [7.5] editbasic.inc.php mod
Stephan #223382 02/28/2009 6:03 PM
Joined: Jun 2006
Posts: 15,956
Likes: 31
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,956
Likes: 31
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
Gizmo #223394 03/01/2009 8: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
Stephan #223459 03/02/2009 1: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
Stephan #223468 03/02/2009 2:58 PM
Joined: Jun 2006
Posts: 9,243
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
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Disaster!!! Files became empty.. Please advise.
by Morgan - 07/27/2020 2:38 PM
Unable to Update Censor List
by BOTCuser - 07/22/2020 9:15 AM
7.7.4 error on rebuilders
by Ruben - 07/21/2020 3:06 PM
[STOCK] UBB.threads Group Image Pack
by isaac - 07/19/2020 9:03 PM
Who's Online Now
1 members (Ruben), 56 guests, and 92 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