vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   no line break with a profilefield (https://vborg.vbsupport.ru/showthread.php?t=65397)

GregorS 05-22-2004 10:35 AM

no line break with a profilefield
 
1 Attachment(s)
Hi!

I adapt the template memberinfo and have a small problem with a profilefield (Biography) with the variable "userinfo[fieldX]"

i use it in a table and the variable make no line break

my code:

Code:

<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="500" align="center">
  <tr>
    <td class="thead" width="100">Name:</td>
    <td class="custlisting">
      <div align="center">$userinfo[field9]</div>
    </td>
    <td class="custlisting">
      <div align="center">$userinfo[field10]</div>
    </td>
  </tr>
  <tr>
    <td class="thead" width="100">Beschreibung:</td>
    <td width="300" colspan="2" class="custlisting">
          <div align="left">$userinfo[field1]</div>
    </td>
  </tr>
</table>

any chance to fetch out the custom-fields with line breaks???

thaks!

SVTBlackLight01 08-12-2004 09:50 PM

I am having the same problem. Anyone have an answer?

GregorS 08-13-2004 02:35 PM

Quote:

Originally Posted by SVTBlackLight01
I am having the same problem. Anyone have an answer?

Hi!

I found the problem!

It is the "class" command!

Without you have no trouble! ;)

cu

SVTBlackLight01 08-14-2004 05:47 AM

"class", as in: class="custlisting"

I'm using standard classes (alt1), and removing the class doesn't have an affect on the display. I don't know if it matters, but I am using custom profile fields.

GregorS 08-14-2004 11:22 AM

Quote:

Originally Posted by SVTBlackLight01
"class", as is: class="custlisting"

I'm using standard classes (alt1), and removing the class doesn't have an affect on the display. I don't know if it matters, but I am using custom profile fields.

please post your code....

My code:

Code:

.....
<tr>
    <td class="thead" height="100" valign="top">Beschreibung:</td>
    <td bgcolor="#BBC7CE" height="100" valign="top" colspan="2">
        <table cellpadding="3" border="0">
        <tr>
          <td>
            <div align="left">$userinfo[field1]</div>
          </td>
        </tr>
        </table>
    </td>
</tr>
.....


SVTBlackLight01 08-18-2004 10:19 PM

In this case I am using a separate table that contains all the info of the user fields.

It looks something like this:
Code:

<tr>
<td class="alt1" colspan="5"> 

<table border="0" cellpadding="10" cellspacing="0" width="100%">

    <tr>
      <td width="25%" rowspan="2" valign="top">
<if condition="$userinfo['field69']">
<strong><u>Current Modifications</u></strong><br />
$userinfo[field69]<br />
<br />
</if>

</tr>
        </table>
      </td>
    </tr>

Here is an example of a how the fields are being displayed.

http://www.modernengineuity.com/fm/feature.html?u=38

SVTBlackLight01 08-28-2004 02:37 PM

Anybody have any ideas on this?

GregorS 08-28-2004 03:26 PM

Quote:

Originally Posted by SVTBlackLight01
Anybody have any ideas on this?


it look?s ok, what?s the problem???

filburt1 08-28-2004 03:29 PM

If you mean the user typed a newline and it doesn't show up, that is because the \n character has no effect in HTML other than adding a space if there wasn't one there initally. Two solutions:

1. Use vB's BB code parsing functions to convert it to vB code, which interprets newline characters.
2. Use http://www.php.net/nl2br .

SVTBlackLight01 08-28-2004 11:21 PM

filburt1,

I've tried the second method, but I must not be looking in the right file. Where would this need to be added?


All times are GMT. The time now is 09:02 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.01198 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete