UBB.Dev
Name: Add One Millyun Custom Profile Fields

Description: Adds 40 extra custom profile fields.

Link: https://www.ubbdev.com/hacks/6.3/extra_profiles_63.txt

Demo: none

Author: Allen Ayres

Credits: Greg Hard, ELY_M, Allen Ayres and unknown at fokzine.net for previous versions smile

Requirement: UBBâ„¢ 6.3

Note: I did this because someone asked for something similar and this is a piece of it. If you need less profile fields (and you should wink ), just reduce the appropriate number of lines of code.

Do not attempt this without sufficient experience in modifying your forum. There's 7,777 lines of code here and any one of them could break your forums and render it useless.

Thanks in advance to those who might find any bugs, I've tested it locally, but that was on a beta of 6.3.1 wink
MultiHack file would be nice...If you weren't going to change the amount of fields...

~Jon
I have one... it needs to be updated to how this one works. The MHK I have makes the extra profile fields only viewable by admins/mods when you view the member's profile...
quote:
Originally posted by AllenAyres:
I have one... it needs to be updated to how this one works. The MHK I have makes the extra profile fields only viewable by admins/mods when you view the member's profile...

Do you plan on making one that works like this one? Or should I just use the .txt file?

~Jon
Ouch! Good job tipsy

Code
[/code]You mean[code]
thanks LK smile

JJ, there's only one file that's different between the 2 versions, public_display_profile.pl - I can post both... tomorrow tho, I'm sleepy sleep
quote:
Originally posted by AllenAyres:
thanks LK smile

JJ, there's only one file that's different between the 2 versions, public_display_profile.pl - I can post both... tomorrow tho, I'm sleepy sleep

That's fine, I probably won't be able to install it today anyways. That's the first time anybody has called me JJ though....lol!

~Jon
Great job AA. smile
Good job AA. I'll use it when I need to. smile
Nice work AA. smile
Whoa, I just saw this thread. tipsy I know this is an old topic but I just wanted to say thanks Allen for making this hack. I've been wanting this for a while.
Allen, you should change your instructions for cp_edit_profile.pl..
Currently, you've set the colors to AltColors1 (or something similar). This shouldn't be the case in the Control Panel.. wink

I had a nasty shock at Gaming Update when I went in to the "Edit/Update Member Profiles" and saw that the 5 custom profiles I added were GREEN! eek
heheh smile I really should cut it back to about 10 and re-post it smile
Quote
quote:
Originally posted by LK:
Ouch! Good job tipsy

Code
[/code]
Hi, I'm implementing this on 6.4 and everything seems good so far. But I don't understand why the jumps up from 38 to 65? Why isn't the next field 39?

[code]
Profile fields up to 50 are reserved for future use, thus making the first available number 51 (array index 50). Add to that the previously "registered" field indexes from other hacks, and you get the start target number...
Wow, that was fast. You answered before I even fixed my quote problem!

Thanks!
I found one small error in the install instructions, if anyone chooses to use it. There's dropped bracket in the "search for" in the last step:

Code
[/code]Should be:

[code]
Works fine so far in 6.4

Oh, and I now have an edited install file with 16 extra fields instead of 40, if anyone needs a smaller file. It's 3193 lines instead of 7,000+.
Edit: Nevermind. A re-upload fixed my latest problem.

Thanks for a great mod!
thanks getagrip smile if you'll post the instructions for the 16, that will be much more useful to most people smile
I found one other thing in the instructions that I changed. I assume it's a difference between 6.3 and 6.4.

[code][/code]Here's a link to the file:
www.ggrdesign.com/extra_profiles_63_16_fields.txt
OK, now that I've done that... a question. help

I want one or two of my new fields to use the same processes as the signature field, i.e., I want users to be able to enter text with line breaks and possibly to use UBB code.

cp_users has the following in sub get_profile_for_admin that appears to do the trick:

Code
[/code]In ubb_profile, it's in sub edit_my_profile

Code
</pre></div></div>I suppose I need to create a new var $CustomProfileXX, to be able to copy thse processes, but I don't know where to put it.<br><br>I could use<br><div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre>
Which would use the sig settings for UBB/IMG code for my custom field, and
[code]
Where would I nee to declare $CustomProfileXX?
Might be well over my head.
Does this work with DPK's 6.4.5 Memberlist hack, or do I need to make modifications to that?
Hey Dino, it would depend on which profile field the memberlist used, it's been quite a while since I've used that smile
Thanks for the reply, Allen.

I'm still dabbling right now... trying to figure out the logic in DPK's memberlist and how it relates.

Quick question:

Is there a simple way to use drop-downs (I know the html of drop-downs vs. text-fields) instead of text fields? I'm trying to figure out how that information get's appended to a user profile.

I've been studying how the birthday drop-downs get appended, but since they're wordletized, it a little difficult.

Any ideas or guidance?

Sidenote: Missedy you at SEMA. Did you see the Decoma Matrix and El Camino? George Barris was in our booth (he did the Batmobiles) signing autographs. Also, did you see the orange Jeep Liberty in the Mopar booth? I was solely responsible for that one. I even got my hands dirty and installed the Skyjacker lift kit on that puppy.
© UBB.Developers