PDA

View Full Version : Profile- multi lines per field


TimPYN
02-14-2003, 11:55 AM
Can anyone steer me to a hack, or,
where to start to be able to show
like a textbox 10rows x 40cols for example?

What I need is one of the custom fields
to have the ability to be shown as many lines
and larger than 250 chars.

such as (example)

--------------------------------------------------------------------------
field "BIO" Hi, I enjoy underwater basket weaving.
and seek others that like the same.
besides that, snipe hunting is a good
pastime.

check out this site blah.blah.com
oh, also, I am in the area of west texas
known as the "armpit" of texas.

and more free style text, blah blah bllah
------------------------------------------------------------------------------

ok, to where I could have a custum entry on the profile
do something like above,
and, I would love to have the ability to set max chars to a
large setting, yet, if someone enters just 3 lines,
then, just 3 lines are shown.

thanks for any replies or ideas etc in advance!

Tim

007
02-15-2003, 11:50 PM
Yep, I just did this exact same thing recently:

Templates to edit: modifyprofile, registeradult, and registercoppa

find the bio section you have in each of these, and change it to:

<tr>
<td bgcolor="#XXXXXX" valign="top"><normalfont><b>Biography:</b></normalfont></td>
<td bgcolor="#XXXXXX"><normalfont><textarea rows="6" name="fieldX" cols="40">$bbuserinfo[fieldX]</textarea></normalfont></td>
</tr>

"fieldX" should be whatever your bio field # is. I believe field1 is the default. Then put in what colors you want.

Then, to make the field more than 250 characters, here is where I learned this:

How to allow Custom Profile Fields to exceed 250 characters (https://vborg.vbsupport.ru/showthread.php?s=&threadid=48545&highlight=250)

Hope that helps :beard:

TimPYN
03-06-2003, 12:30 PM
thanks "006",

I was able to get very close, but...

the custom fields seem to be where one "universal" field code
is used for all custom fields,
meaning if i make it a big text box, all custom fields
become a large text box

so,
I then used the field name from a custom field
and just added it right into the adultregister, editprofile
and viewprofile fields.

of course, then i got the same info twice,
once where i had added it and in the custom fields area

so, then i went and made my own field "name" and
a new entry in mysql for it......
but, i got close, but no luck,
in mysql i added the field in the same area where the others
are, i did blob and medium text,
.... still no luck

hum....

HELP!!!!!!

heehehh

007
03-06-2003, 12:39 PM
OOooooohhh... I forgot what else I had to do.

Yeah, I had that problem too.

You will need to delete the text: "$customprofilefields" (or whatever it is called) from your templates.

Then, go back through and add what I posted before for each custom field. The best part is now you can put these fields wherever you want in the registeradult, registercoppa, and modifyprofile templates.

Just make sure you replace the variables in the code.

I think that makes sense. It's late. Let me know if that was what you wanted. I am pretty sure that's everything I did. The only other thing is you may have to change the "firstaltcolor" and "secondaltcolor" replacement tags to match the every other pattern that VB defaults to. That's the easy part though. :)

:knockedout:

TimPYN
03-06-2003, 12:45 PM
I really feel stupid now!!
lol
but, now that i have tore it up and put it back together
42 times, heck, maybe i can get it to work now!!

MANY thanks "006" !!!!!!

now I am off with a good feeling to see if I can't crash
my board!!!

LOL

Tim

007
03-06-2003, 12:46 PM
Yeah, this really isn't a hack at all. It is probably possible with hacking, but why hack when you can simply edit the templates. I'm going to bed now but I'll check this when I get back. Good luck! :)