vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Format Profilefield (https://vborg.vbsupport.ru/showthread.php?t=287949)

Infinity101 09-17-2012 07:48 PM

Format Profilefield
 
Hello,

I have a custom field which user's generally write several paragraphs. I display this field manually {vb:raw bbuserinfo.field}.

When the field displays, it does not include the formatting the user specified. For example, a input with 3 paragraphs will display the entire field as one paragraph.

I have tried a plugin I found posted by Lynne, however had no such luck.

Code:

if ($profilefield['profilefieldid'] == 1)
{
$find = "\n";
$replace = "<br />";

$profilefield['value']= str_replace($find, $replace, $profilefield['value']);
}

I used member_complete and multiple other plugin locations in the hopes that I'd get lucky before posting.

Thanks for any help.


-- Edit --
This is for member.php in the aboutme tab.

kh99 09-18-2012 02:27 AM

When you tried Lynne's plugin, did you change the '1' to your actual field id?

Infinity101 09-18-2012 04:18 AM

Yes, the above is with two change I've made. The \n for the line break and the field value.


All times are GMT. The time now is 11:43 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.01006 seconds
  • Memory Usage 1,708KB
  • 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
  • (3)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