vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   VBCode Limit? (https://vborg.vbsupport.ru/showthread.php?t=44268)

SoloX 10-04-2002 12:13 AM

VBCode Limit?
 
Hello,

I am using about 6 lines of HTML code that will be replaced by the vb code. The problem is that only a few lines get translated and the rest is truncated. Is there any hard limit on how many characters I can subsitute with vb code?

Thanks

Ninth Dimension 10-04-2002 09:13 AM

I'm really sorry but I don't understand what you mean. But if I understand you right then I don't think there is a limit. Maybe you can give an example here??? :D

SoloX 10-05-2002 12:23 AM

ok. for example:

PHP Code:

<BR><A HREF='javascript:play
("http://www.abc.org/gsvposts/files/{param}.wav")'
>
<
img border="0" src="http://www.abc.org/gsvposts/speaker.gif" 
width="32" height="32"></A>
<
A HREF='http://www.abc.org/gsvposts/files/{param}.wav">text link</A><br> 


but when I run the vbcode, it only displays

PHP Code:

<BR><A HREF='javascript:play
("http://www.abc.org/gsvposts/files/aaaaaa.wav")'
>
<
img border="0" src="http://www.abc.org/gsvposts/speaker.gif" 
width="32" height="32"></A

see how it would truncate the translation?

Steve Machol 10-05-2002 12:48 AM

The bbcodetag in the bbcode table is limited to 200 characters. You would need to change this in phpMyAdmin.

SoloX 10-11-2002 06:39 PM

thanks ...

When I try to chnage the 200 to say 400, I get:

Quote:

MySQL said: Too big column length for column 'bbcodereplacement' (max = 255). Use BLOB instead.
when I try to use BLOB, I get:
Quote:

MySQL said: You have an error in your SQL syntax near '(400) not null ' at line 1.

I get the same response for all BLOBs (tiny,medium,large) ... please help.

Steve Machol 10-11-2002 07:05 PM

Sorry I have no idea. Maybe someone else will know.

the_sisko 10-12-2002 10:51 PM

change the type to text and delete the lenght/value of it!

Steve Machol 10-13-2002 03:36 AM

The only caution I have is that by doing this you may affect your ability to do future upgrades. It's a very slight risk but one you need to consider.

the_sisko 10-13-2002 12:17 PM

I did the same some time ago and had no probs with updates. There isn't a big difference in varchar and text except the length in this case...

Steve Machol 10-13-2002 03:08 PM

As I said there is a very slight risk. I'm going by the changes that are being made to the vB 3.0 database and some cautions posted by the Developers.

SoloX 10-13-2002 08:08 PM

thanks all for your help. the problem was solved by changing the type to TEXT ... i will be careful when upgrading ... maybe I will note down the values and switch back while upgrading .. but with all the mods, it will be a while b4 i even think about moving to the latest and the greatest ...


All times are GMT. The time now is 05:58 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.01080 seconds
  • Memory Usage 1,736KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)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