vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How does vb know to retain... (https://vborg.vbsupport.ru/showthread.php?t=54988)

97cobracpe 07-03-2003 08:47 PM

How does vb know to retain...
 
...the post formatting? I was curious about this. To be a bit more clear, when you're posting vb retains the look of your post exactly as you typed it. Now when vb pulls the info from the database, how does it know to retain carriage returns, mutliple spaces, etc?

I hack I'm trying to modify for my needs doesn't do this. It'll simply put all the content from the database on 1 line, word wrapping if necessary.

I looked at the database to see how posts were saved and compared the content field for post to the content field for this hack. Both look just like they did when they were typed.

So I'm thinking it is the way it is pulled off the database and displayed. I'm no expert, but I'm learning, so a push in the right direction would be greatly appreciate. Should I start looking at the code? templates?

SmEdD 07-03-2003 11:58 PM

Look in google for the nl2br() function. If you don't figure it out I'll help you but it's better for you to try on your own.

cinq 07-04-2003 01:02 AM

Here

I hope you manage to figure this out :)


All times are GMT. The time now is 11:26 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.01569 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)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