vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Add a select field to the profile (https://vborg.vbsupport.ru/showthread.php?t=21833)

BradC 09-21-2001 02:56 PM

Quote:

FilePath="admin/profile/$profilefield[profilefieldid].file";


Did you forget to copy it completly.. I say this because it should be

$FilePath="admin/profile/$profilefield[profilefieldid].file";

instead of

FilePath="admin/profile/$profilefield[profilefieldid].file";

Justice 10-14-2001 04:33 AM

it would have been nice to have some updated instructions for the hack. I just installed it and most of my fields are required (and they don't show up in the registration page). The edit profile page works great though.

Are new instructions coming soon or should I uninstall and wait?

Mr. X 10-14-2001 07:54 AM

Can someone please post a screenshot of this hack in action? Thanks!

Baines 10-14-2001 10:29 AM

Hi,

Regarding un-installation of this hack.

Is there something more you have to do than:
*changing back the four PHP-files to their original state
*changing back the template
*delete the "profile"-directory
*delete any custom profile-fields

to un-install this hack?

:)

Thanks in advance,
Baines

Justice 10-14-2001 02:11 PM

Quote:

Originally posted by Baines
Is there something more you have to do than:
*changing back the four PHP-files to their original state
*changing back the template
*delete the "profile"-directory
*delete any custom profile-fields

to un-install this hack?
I sure hope not. This is what I did last night and everything seems to be back to normal. I look forward to a more secure version of this hack though

troubadour 10-16-2001 12:09 AM

Mutt,

Thanks for the great hack. I've installed it and it's working well. However, I too am having the problem regarding required fields. You mentioned that you corrected this problem but haven't had time to update your instructions. Do you have an estimate as to when you may update them.

:) Thanks a lot for a very useful hack.

-T

alkatraz 10-16-2001 12:18 AM

I can't wait for the next release of this great hack! I really need the textarea profiles added!!
Please keep us updated Mutt =)

thx!

Ed FvC 10-17-2001 06:11 PM

I've tried adding this hack twice on v2.0.3, but each time, it shows the form fields up on the top of the UserCP->Edit Profile page, and they're all mangled (the drop-down menu is on the left with only the input boxes for Biography, Location, etc. lined up horizontally). I didn't get a chance to screencap it before I removed it, unfortunately.

My experience with PHP is quite limited, so I can't really see where I'm messing up. I've done exactly what the instructions say. Any chance in this being installed in the next release of vB?

treszoks 10-20-2001 02:19 AM

I've added select fields to my board and will share directions if anyone would like them. It requires adding two templates for each select field plus a couple of lines in register.php and member.php.

alkatraz 10-20-2001 06:10 PM

[QUOTE]Originally posted by treszoks
I've added select fields to my board and will share directions if anyone would like them. It requires adding two templates for each select field plus a couple of lines in register.php and member.php.

boutwell 11-05-2001 11:01 PM

I use (And love) this hack...was just wondering if there was a revision that addressed the required fields bug (if you make a required field, they don't show up on registration :( )

Thanks for all the great work :)

Brad

troubadour 11-07-2001 10:30 PM

on an update to this hack? I'm plugging away with the PHP books, but it's going to be a while till I'm up to speed to do anything productive code wise or I'd do it myself.

So, any news on an update?

Thanks

Ruth 02-04-2002 03:30 AM

did anyone try this hack with 2.2.1?

x28 02-04-2002 03:52 AM

also looking for 2.2.2?

x28 02-06-2002 03:02 AM

installed on 2.2.2

AOK

Only thing is if you edit or back to Text input values will show in cp again after you clear them save and re-enter.

Not a problem just an aggravation.

TheComputerGuy 02-07-2002 12:55 AM

I do not follow, only thing is if you edit or back to text input values will show in cp again after you clear them save and renter...

I dont follow what are you referring to

Mutt 02-09-2002 01:22 PM

I was just thinking about this hack today. the problems have already been fixed and I added feaures. I need to upgrade to 2.2.2 then I'll write some directions.

while I'm at it, i'll update it to write a template instead of writing a file. I'm a little bit more vb savy these days :)

x28 02-18-2002 12:03 AM

Mut,

any word on a release date.

-=dm=- 02-23-2002 02:33 PM

Im using vB 2.2.1
and I got this error forums/admin/profilefield.php on line 187
when I click "User Profile Fields" add or modify .(in admin)
can u please help me?

thanx

nafae 02-23-2002 03:39 PM

yes mutt any word on a release date??

matrixclub 04-03-2002 03:39 PM

i has change it can use input,select,radio,checkbox field and also it can be searchable..

work aok on 2.2.2 2.2.3 2.24 everything is ok...

http://ezbbs.vserver.com.tw/forum/re...?action=signup

tamarian 04-03-2002 04:53 PM

Quote:

Originally posted by matrixclub
i has change it can use input,select,radio,checkbox field and also it can be searchable..

work aok on 2.2.2 2.2.3 2.24 everything is ok...

http://ezbbs.vserver.com.tw/forum/re...?action=signup

Can you share your hack changes?

Mutt 04-04-2002 09:29 PM

with hack directions so simple now that we hack vbhacker, I updated the directions for this guy. running on v224. if you have a previous installation you'll have to remove it first. this new version doesn't write files to store you custom field info. instead it stores them to the DB.

I cleaned it up a lot and there shouldn't be any problems with required fields.

This hack adds the ability to add custom custom fileds to the profile. these would be field other than standard text input boxes. Dropdown Select Boxes and Radio Boxes are currently supported. Some of the code for Text areas is in, but for the sake of simplicity I removed textarea support.

add a new field as usual. fill out all fields. (Note field length is used for select boxes as well. 1 is standard)
choose the field type. (standard text input, select box, radio buttons)
Under "Multiple Choice Options" enter the values for your selections seperated by commas. the first one is the default selection. put a comma at the begining of the list to have an empty filed be the default.

Hope ya like it, let me know if the vbhacker file works.

It should edit 3 files, 1 template, and add a couple rows to the proflefield table.

Dark_Wizard 05-25-2002 11:49 PM

Hey Jeff...I installed this on 2.2.5 and it works great...one question though, why didn't you update the admin/user.php file to reflect the same?

x28 05-27-2002 07:17 PM

How do you add Drop down boxes to this hack?

geniuscrew 06-02-2002 02:21 PM

Hi,

I'm getting errors with this hack on 2.2.5

I get this error when I click on Edit Profile:

PHP Code:

 WarningFailed opening '/home/--------/forums/member.php' for inclusion (include_path='.:/usr/local/lib/php'in Unknown on line 0 


Erwin 06-03-2002 08:08 AM

This is one of the best hacks around - I am using this with great effect, combining this with other hacks to make this a powerful addition to vB. Thanks!!!

The only possible complaint is that each time I go to modify a custom profile, if it was a dropdown menu the textarea is empty, and I have to enter the data again. A small issue, which is easily overcome with a text file that I use as a backup.

Thanks for your great work!

RazorSharpe 06-06-2002 08:06 AM

How does one install the customcustomfields.hack.php hack??

any pointers would be very appreciated.

mashby 06-10-2002 12:16 AM

So, Erivin, I assume that it's working for you on 2.2.6?

JoshFink 06-11-2002 04:08 PM

Is there a non vbHacker version? I really haven't delved into that and would love to just do it by hand.

Thanks

Josh

geniuscrew 06-11-2002 04:13 PM

To get the non-vbhacker version you still need to do it using vbHacker - but when you come to actually modifying it, select "Generate text file" instead.

Also just a word of warning -
I got my error above because I chmodded member.php to 777 so that it could be writable, but forgot to chmod it back to 755.

Hope that helped!

JoshFink 06-11-2002 04:14 PM

Thanks.. I appreciate the help.

Josh

Birdie501 06-11-2002 10:34 PM

hi,

i installed with vbhacker and the installation went well.
But if i change the value in my profile it is not saved?
If i edit a user in admin cp there is no dropdown field, only textarea?

Nothing works for me and i am using vb 2.2.5?

Any solutions?

mayja 06-13-2002 01:03 AM

Works fine for me with 2.26. Thanks!

Can anyone help with the code to add checkboxes as well?

mashby 06-24-2002 05:39 AM

Ok, I must be doing something wrong. I've tried adding this to my board both by hand and then (after removing it) with VBHacker and I can't seem to get it to work.

Everything runs with no errors apparent. The only problem is that NONE of my custom fields are visible now. So, you can't see the field for "Biography," etc.

You can see for yourself at this URL: http://www.npug.org/forum/register.php?styleid=2

Any thoughts on what I'm doing wrong?

Birdie501 07-01-2002 12:41 PM

ok,
i installed it again. Now it works but still have some problems.
If i want to modify a custom field, the configuration for that field is not saved. If i click modify the fields Field Type and
Multiple Choice Options are empty, so i have to enter the value again every time i want to change something.

Is there also the possibility to have a dropdown field?
btw i am running 2.2.5.

any help is very appreciated. Thanks!

Mutt 07-02-2002 02:32 AM

i guess i should drop by more often.

I didn't modify the admin/user.php file but I guess I forgot to add those directions to the file. I'll dig it up and add it when I get home

roxics 07-02-2002 09:12 AM

Yeah how do you install customcustomfields.hack.php?

Is it an addition to the selectprofilefield.txt you offered on page 2 of this thread? If so do you just throw this php file in with the others?

This looks like a great hack. Also are these fields searchable? As in does it work with FireFly's "Search Members by custom profile fields hack" found here:

http://www.vbulletin.org/hacks/index...ack&hackid=177

Thanks

roxics 07-04-2002 06:41 AM

Okay nevermind I figured it out. I had to discover what VBhacker was first. :)

This hack doesn't work with FireFly's hack I mentioned above. The fields show up in the search as standard text fields. The search will work finding what people listed from say a drop down box or choose with a radio button, but someone has to type in one of the options listed in the drop down box or the radio button. It would be great if the radio buttons and the drop down boxes appeared in the search area.

It would also be great if the box allowed people to choose more then one option by holding down the 'Ctrl" button on the keyboard. :)

mayja 07-04-2002 11:28 PM

Quote:

Originally posted by Birdie501
If i want to modify a custom field, the configuration for that field is not saved. If i click modify the fields Field Type and
Multiple Choice Options are empty, so i have to enter the value again every time i want to change something.

The "type" and "option" fields hadn't been added to the "edit" query in profilefield.php. So to fix this glitch...

Find in profilefield.php :

PHP Code:

// ###################### Start edit #######################
if ($action=="edit") {

  
$profilefield=$DB_site->query_first("SELECT title,description,required,hidden,maxlength,size,displayorder,editable
                                       FROM profilefield
                                       WHERE profilefieldid=
$profilefieldid"); 

and change to:

PHP Code:

// ###################### Start edit #######################
if ($action=="edit") {

  
$profilefield=$DB_site->query_first("SELECT title,description,required,hidden,maxlength,size,displayorder,editable,type,options
                                       FROM profilefield
                                       WHERE profilefieldid=
$profilefieldid"); 



All times are GMT. The time now is 07:46 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01237 seconds
  • Memory Usage 1,829KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete