vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Increase Plugin Size? (https://vborg.vbsupport.ru/showthread.php?t=275893)

AdamCap 12-23-2011 05:34 PM

Increase Plugin Size?
 
Is there a way to increase the allowable plugin size? I've noticed that if I go past a certain file size (or maybe number of lines), my PHP code gets truncated when I save it.

I tried Googling for an answer, but couldn't find any info. Thanks in advance for any help!

nhawk 12-23-2011 09:30 PM

I know this won't help, but I've written some plugins that I consider huge. The largest is around 15k and 404 lines in length and never ran across that problem.

AdamCap 12-23-2011 09:44 PM

I was trying to port over a 7000 line, 454 kb plugin (nearly all search/replace terms). :P I broke it up into small sections so it still works, though it would be nice to leave it whole.

EDIT: Errr scratch that. I'm having issues now since I had to break it up. It would be a huge help if there was no limit on the plugin size. :o

kh99 12-24-2011 01:02 AM

Looks like the phpcode column in the plugin table is mysql type "text" which has a limit of 64 Kb, so I guess you are going over the limit. Anyway, what you can do is put your code in a .php file then just make the plugin code a single include (or require) statement.

AdamCap 12-24-2011 01:14 AM

Great idea! Thanks kh99.


All times are GMT. The time now is 05:10 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.02285 seconds
  • Memory Usage 1,706KB
  • 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
  • (5)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