vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   From Custom to Custom (https://vborg.vbsupport.ru/showthread.php?t=50336)

SpeedStreet 03-17-2003 02:00 PM

From Custom to Custom
 
Question:

I've edited my forum to allow a text box vs. text line in a few of my custom profile fields. What I need, is when a user checks a profile, that the line breaks used in the Text Box are parsed properly.

e.g.

When you type in the text box, you can hit enter to return to the next line.

When you view a profile, it still shows everything on one line.

Any ideas?

SVTBlackLight01 08-12-2004 09:54 PM

Did you get this figured out?

SpeedStreet 08-13-2004 12:33 PM

Nope.

SiMateoAko 12-27-2006 02:01 PM

Just figured this out if anyone is interested.

This works for vb 3.5.4. I'm sure it works on versions above this as well.

create a plugin with hook location "member_complete"

The code will look like this:

Code:

//This parses BBCODE and linebreaks for the memberinfo page

        $parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());

$userinfo[field1] = $parser->do_parse($userinfo[field1]);

Change the userfield accordingly (field2, field4, etc.)


All times are GMT. The time now is 07:31 AM.

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.00962 seconds
  • Memory Usage 1,709KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete