Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Undefined index: Errors User Field Manager

Asked Modified Viewed 2,393 times
T
TalkFever
T
  • Member, joined since
  • Contributed 65 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions
asked
Member

I am using the User Fields Manager created by PopUpMan a long time ago (I am attaching it since it is hard to find). I am getting some errors with it in PHPFusion 7.02.07. Here are the errors:


user_fields_manager/admin_panel.php
Undefined index: enable Line: 107

user_fields_manager/admin_panel.php
Undefined index: new_field_req Line: 94

I get these errors every time I create a field. Can someone please tell me what to edit to fix these errors?
TalkFever attached the following file:
user_fields_manager.zip [No information available / 309 Downloads]
0 replies

3 posts

D
douwe_yntema
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
answered
Senior Member

Hello,

Line 94 need to be changed as follows:

$new_field_req   = isset($_POST['new_field_req'])  ? "1" : "0";


That is becouse the name of the checkbox only comes when its value is checked

Change line 107 to:
$result = dbquery("SELECT field_cat, field_order FROM ".DB_USER_FIELDS);


And I found an other error at line 167 change it to:

$field_req = isset($_POST['user_field_req'])  ? "1" : "0";


Good luck

B.t.w: Nice mod!


Douwe
Edited by douwe_yntema on 16-04-2014 13:48,
0 replies
T
TalkFever
T
  • Member, joined since
  • Contributed 65 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions
answered
Member

Which file needs to be changed Douwe?
0 replies
D
douwe_yntema
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
answered
Senior Member

Sorry, This file needs to be changed:

user_fields_manager/admin_panel.php
0 replies

Category Forum

Panels and Infusions

Labels

None yet

Statistics

  • Views 0 views
  • Posts 3 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

T
T
  • Member, joined since
  • Contributed 65 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions
D
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet