Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-22-2004, 10:35 AM
GregorS's Avatar
GregorS GregorS is offline
 
Join Date: Dec 2003
Location: Vienna
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default no line break with a profilefield

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!
Attached Images
File Type: jpg custfields.jpg (46.7 KB, 0 views)
Reply With Quote
  #2  
Old 08-12-2004, 09:50 PM
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am having the same problem. Anyone have an answer?
Reply With Quote
  #3  
Old 08-13-2004, 02:35 PM
GregorS's Avatar
GregorS GregorS is offline
 
Join Date: Dec 2003
Location: Vienna
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 08-14-2004, 05:47 AM
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

"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.
Reply With Quote
  #5  
Old 08-14-2004, 11:22 AM
GregorS's Avatar
GregorS GregorS is offline
 
Join Date: Dec 2003
Location: Vienna
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
.....
Reply With Quote
  #6  
Old 08-18-2004, 10:19 PM
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 08-28-2004, 02:37 PM
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anybody have any ideas on this?
Reply With Quote
  #8  
Old 08-28-2004, 03:26 PM
GregorS's Avatar
GregorS GregorS is offline
 
Join Date: Dec 2003
Location: Vienna
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SVTBlackLight01
Anybody have any ideas on this?

it look?s ok, what?s the problem???
Reply With Quote
  #9  
Old 08-28-2004, 03:29 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 .
Reply With Quote
  #10  
Old 08-28-2004, 11:21 PM
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

filburt1,

I've tried the second method, but I must not be looking in the right file. Where would this need to be added?
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 02:34 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.06323 seconds
  • Memory Usage 2,281KB
  • Queries Executed 14 (?)
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
  • (3)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)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
  • (10)postbit
  • (1)postbit_attachment
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete