Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-14-2003, 11:55 AM
TimPYN TimPYN is offline
 
Join Date: Feb 2003
Location: texas
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Profile- multi lines per field

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
Reply With Quote
  #2  
Old 02-15-2003, 11:50 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:

PHP Code:
<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

Hope that helps :beard:
Reply With Quote
  #3  
Old 03-06-2003, 12:30 PM
TimPYN TimPYN is offline
 
Join Date: Feb 2003
Location: texas
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 03-06-2003, 12:39 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Reply With Quote
  #5  
Old 03-06-2003, 12:45 PM
TimPYN TimPYN is offline
 
Join Date: Feb 2003
Location: texas
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 03-06-2003, 12:46 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:15 PM.


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.15513 seconds
  • Memory Usage 2,214KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete