|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
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 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  ), 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 
|
|
|
|
Joined: Jun 2001
Posts: 572
Member
|
Member
Joined: Jun 2001
Posts: 572 |
MultiHack file would be nice...If you weren't going to change the amount of fields...
~Jon
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
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...
|
|
|
|
Joined: Jun 2001
Posts: 572
Member
|
Member
Joined: Jun 2001
Posts: 572 |
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
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Ouch! Good job
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
thanks LK 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 
|
|
|
|
Joined: Jun 2001
Posts: 572
Member
|
Member
Joined: Jun 2001
Posts: 572 |
quote: Originally posted by AllenAyres: thanks LK
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
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
|
|
|
|
Joined: Dec 2000
Posts: 371
Member
|
Member
Joined: Dec 2000
Posts: 371 |
Great job AA. 
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
Good job AA. I'll use it when I need to. 
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
Nice work AA. 
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
Whoa, I just saw this thread.  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.
|
|
|
|
Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
|
Spotlight Runner-Up
Joined: Mar 2002
Posts: 451 |
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.. 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! 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
heheh  I really should cut it back to about 10 and re-post it 
|
|
|
|
Joined: Jan 2002
Posts: 48
Member
|
Member
Joined: Jan 2002
Posts: 48 |
quote: Originally posted by LK: Ouch! Good job
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]
|
|
|
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
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...
UBB.classic: Love it or hate it, it was mine.
|
|
|
|
Joined: Jan 2002
Posts: 48
Member
|
Member
Joined: Jan 2002
Posts: 48 |
Wow, that was fast. You answered before I even fixed my quote problem!
Thanks!
|
|
|
|
Joined: Jan 2002
Posts: 48
Member
|
Member
Joined: Jan 2002
Posts: 48 |
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: 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+.
|
|
|
|
Joined: Jan 2002
Posts: 48
Member
|
Member
Joined: Jan 2002
Posts: 48 |
Edit: Nevermind. A re-upload fixed my latest problem.
Thanks for a great mod!
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
thanks getagrip  if you'll post the instructions for the 16, that will be much more useful to most people 
|
|
|
|
Joined: Jan 2002
Posts: 48
Member
|
Member
Joined: Jan 2002
Posts: 48 |
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
|
|
|
|
Joined: Jan 2002
Posts: 48
Member
|
Member
Joined: Jan 2002
Posts: 48 |
OK, now that I've done that... a question. 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]In ubb_profile, it's in sub edit_my_profile
</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.
|
|
|
|
Joined: Mar 2001
Posts: 56
Member
|
Member
Joined: Mar 2001
Posts: 56 |
Does this work with DPK's 6.4.5 Memberlist hack, or do I need to make modifications to that?
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Hey Dino, it would depend on which profile field the memberlist used, it's been quite a while since I've used that 
|
|
|
|
Joined: Mar 2001
Posts: 56
Member
|
Member
Joined: Mar 2001
Posts: 56 |
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.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 69
Joined: January 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|