vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Plugin Accelerator (https://vborg.vbsupport.ru/showthread.php?t=107315)

Trigunflame 02-07-2006 03:12 AM

Quote:

Originally Posted by Zia
hello...
im not a coder or a xpert...
in easy way...does it help speed up vb3.5.3 ?????
.i read the description mentioned...:S kinda hard to realize..

it will create another plug in system that will work faster than the defult system?




sorry for this kind of raw qus...but im not a coder or an xpert..
thnx

This is alpha quality code, we are just in the testing stages; the current code in the archive simply provides 2 tests that you can run to see if the plugin system code will work on your server/forum/site.

We should have "fully" operational code with the next day or so.

Zia 02-07-2006 03:40 AM

Thans let us try with it in our test site ...
:)
thnx

uae 02-07-2006 04:34 AM

Hey thanks,
But there is no file called static_plugins.php in the zip file!

Trigunflame 02-07-2006 04:38 AM

Quote:

Originally Posted by uae
Hey thanks,
But there is no file called static_plugins.php in the zip file!

I renamed it to test.php, sorry I'll update page.

The Realist 02-07-2006 12:18 PM

Re: No4 below, what findings do you want?

Quote:

1) Instructions:
2) Download the zip file.
3) Place the static_plugins folder in your forum directory.
4) Run the script via the url [U]http:// yoursite.com/static_plugins/test.php
5) Report your finding back here if you would please.

Snake 02-07-2006 01:55 PM

/me clicks on the clicky clicky Install button...

Trigunflame 02-07-2006 05:00 PM

Quote:

Originally Posted by The Realist
Re: No4 below, what findings do you want?

Check the results of test 2 to verify that the ($hook = vbxxxxxx ? : false) is replaced with example php code inside comment blocks.

Paul M 02-07-2006 05:13 PM

So let's just make sure I understand this;

This will scan every vbulletin php file for hook calls, and for each one it will ;-

1. If you have no plugins associated with that hook it will just comment it out

2. If you have a plugin that uses it, it will edit the actual file - to copy the code into it.

What happens when I edit/enable/disable plugins ?

Would it not be less dangerous to copy the plugin code to a php file named after the hook, and just edit the hook call to an include() for that file (have a plugins folder the same as the includes folder) ?

Trigunflame 02-07-2006 05:25 PM

Paul, included I have a file called hook_files.php that list 1 file per line that tell the script which files are permitted to be parsed.

The hooks that have no plugincode associated with it, are commented out in "Accelerated Plugin Style Comment Blocks" for use later (Which Still Saves You an Empty Hook Function Call". If there is a valid hook that there is plugin code, it will insert the code in the correct location inside the files that use that hook.

When you enable/disable plugins, the files that are modified are reverted back to their natural state with their default vbulletin php code.

As for using includes, specifically "naming a file after each hook name", we would encounter 'the law of diminished returns'; as there are 8+ hooks in some files, includes() account for filesystem stat calls while on "Most" pages be faster than an eval() to a large amount of code; still be slower than running it directly from inside the script using it.

Note to Anyone Reading This: None of the above actually Works yet; we are still in testing stages.

PennylessZ28 02-07-2006 06:41 PM

Interesting cocept. I think I'll stick to manually doing my files.


All times are GMT. The time now is 05:59 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.01315 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete