Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Details »»

Version: , by treszoks treszoks is offline
Developer Last Online: Aug 2008 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 10-20-2001 Last Update: Never Installs: 4
 
No support by the author.

Someone asked for this and here it is. Hopefully the documentation is clear enough and I didn't miss anything. Post here with any problems and/or comments.

This hack adds a select field (dropdown menu) to the profile. *Make sure to backup everything first!*

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-22-2001, 06:51 PM
alkatraz alkatraz is offline
 
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 384
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can you add form Textarea support plz!!

thank you!
Reply With Quote
  #3  
Old 10-22-2001, 09:38 PM
treszoks treszoks is offline
 
Join Date: Oct 2001
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here you go. Untested, but should work.
Reply With Quote
  #4  
Old 10-22-2001, 11:38 PM
snyx's Avatar
snyx snyx is offline
 
Join Date: Oct 2001
Location: Vancouver (whistler.2010)
Posts: 556
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is the difference between this and the other hack like it created by mutt (I think thats what his name was)
Reply With Quote
  #5  
Old 10-23-2001, 01:37 AM
cooldude
Guest
 
Posts: n/a
Default

thankx m8
Reply With Quote
  #6  
Old 10-23-2001, 01:43 AM
treszoks treszoks is offline
 
Join Date: Oct 2001
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mine only requires adding two templates and modifying a couple of lines in register.php and member.php and doesn't use text files that must be opened and read from.
Reply With Quote
  #7  
Old 10-25-2001, 12:17 AM
alkatraz alkatraz is offline
 
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 384
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thx a ton doode!

your the best ! =)
Reply With Quote
  #8  
Old 10-25-2001, 01:06 AM
alkatraz alkatraz is offline
 
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 384
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

doh!

it works great, except for one thing:

when its displaying the custom textarea field in the Getinfo template (to view a members profile), the text thats entered in the textarea box doesnt have any linebreaks, so its displayed in one long line.


I know about a php function called "nl2br()" that is supposed to display multiline text with <br>'s instead of hidden carriege returns, BUT when I add it to getinfo_customfields, it doesnt do anything..

This is the code that I need to modify to display line breaks:
Code:
<tr>
	<td bgcolor="$backcolor"><normalfont><b>$profilefield[title]</b></normalfont></td>
	<td bgcolor="$backcolor"><normalfont>$profilefield[value]&nbsp;</normalfont></td>
</tr>
if you can help me at all, id really appreciate!
thx
-Colin
Reply With Quote
  #9  
Old 10-25-2001, 01:53 AM
treszoks treszoks is offline
 
Join Date: Oct 2001
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Assuming the linebreaks were added to the db:

In member.php find this in the "getinfo" action segment (should be around line 1200):

$profilefield[value]=$userinfo[$profilefieldname];

Change it to this:

if ($profilefieldname == "fieldX") //where X is the field number
{
$profilefield[value]=nl2br($userinfo[$profilefieldname]);
}
else
{
$profilefield[value]=$userinfo[$profilefieldname];
}
Reply With Quote
  #10  
Old 10-25-2001, 08:58 PM
alkatraz alkatraz is offline
 
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 384
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sweet thank you!

I just noticed one more little issue,
the max input for custom fields is 250 characters so if a user types more then that it cuts it off.. I've changed the max input value in the Admin CP to 1000 chars but it still cuts it off at 250, I guess vbb has an internal max of 250.

admin cp:
Quote:
Maximum Input
- how many characters may a user enter into this field?
- maximum 250

Thank you very much for all of your help, I really appreciate it Treszoks.
Reply With Quote
Reply

Thread Tools

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 02:42 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.04646 seconds
  • Memory Usage 2,277KB
  • Queries Executed 23 (?)
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)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete