vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Type of field to create in forum table? (https://vborg.vbsupport.ru/showthread.php?t=50235)

N9ne 03-15-2003 10:41 PM

Type of field to create in forum table?
 
I want to have a text area in each forum's edit/add screen. I know how to do that. I want to allow vbcode and htmlcode, I know how to do that too. One thing I don't know how to do or know if it's possible or not:

The field to create in the database...now a huge amount of text and code is to be entered into this text area and saved to the database, so i'm wondering, can a database store this much information? What query do I run to create the field? What details should the field hold? Type, size, etc. all that complicated stuff I never bothered to learn :p

filburt1 03-15-2003 10:44 PM

TEXT. IIRC it can store upwards of 65,536 characters.

Actually I was wrong: http://www.mysql.com/doc/en/Column_types.html. Use LONGTEXT for obscene amounts of text (4294967295 chars *falls out of chair*).

N9ne 03-15-2003 10:54 PM

Mega-cool, 4294967295 chars, I can work with that!

I'm running MySQL 4.0.11a on localhost, and I must say, it is great :D.

Xenon 03-16-2003 01:07 PM

;)
mediumtext should be really enough for all ;)

N9ne 03-16-2003 01:41 PM

What if some one has loads and loads of rules for a forum? :p

Xenon 03-16-2003 03:16 PM

hehe, i wan't to see the user which reads these rules completly and then registers ;)

N9ne 03-16-2003 03:20 PM

Someone who has a lot of time on their hands ;).

sparky2 03-18-2003 02:58 AM

Quote:

03-16-03 at 03:41 PM N9ne said this in Post #5
What if some one has loads and loads of rules for a forum? :p
then conserve database space by just storing a hyperlink in the field
(a link to an external rules page) :rambo:

N9ne 03-18-2003 02:34 PM

hehe, well I'm just trying to leave options open for users who install the hack I used the longtext in, just incase they want to put up some huge document in some forum before you can post a new thread :p.


All times are GMT. The time now is 11:40 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.02567 seconds
  • Memory Usage 1,719KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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