vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - vbPluginOrder (https://vborg.vbsupport.ru/showthread.php?t=111679)

hambil 03-29-2006 10:00 PM

vbPluginOrder
 
Keywords: plugin, order, hook

Description:
A simple but potentially very useful tool that allows you to set the order of execution for plugins within the same hook.

Features:
  • Fully Phrased.
  • Set the order of plugin execution within the same hook.
Install
  1. Download the vbPluginOrder_1.2.zip file.
  2. Unzip and upload the files in the upload directory to your forum root.
  3. Import the product file in your admincp.
  4. Set the order for your plugins if needed and desired.
Notes:
If you have Hellcat's real time page compressor installed it must be set as the first plugin in its hook after you activate plugin order.

Version 1.2
  • Fixed bug causing plugin order not to run on some systems because of cookie settings
Version 1.1
  • Fixed nasty sql bug where I forgot to use TABLE_PREFIX for one join. Causes a problem if you have a table prefix (obviously) :)

Paul M 03-29-2006 10:23 PM

Interesting, I will be taking a look at this later. :)

Zia 03-30-2006 03:14 AM

:) helo

plugin order...? does that mean this hack will set the order(no 1,2,3.....) as per my desire?

Ummm whats the benifit of using this hack ?

thnx

hambil 03-30-2006 04:07 AM

Quote:

Originally Posted by Zia
:) helo

plugin order...? does that mean this hack will set the order(no 1,2,3.....) as per my desire?

Ummm whats the benifit of using this hack ?

thnx

You can make one plugin run before another in the same hook. You probably won't need it until you really need it - then you'll be glad I wrote it :)

Paul M 03-30-2006 06:50 AM

Quote:

Originally Posted by Zia
:)Ummm whats the benifit of using this hack ?

See ;

https://vborg.vbsupport.ru/showthrea...843#post933843

or

https://vborg.vbsupport.ru/showthrea...312#post935312

for recent examples.

Snake 03-30-2006 11:55 AM

Good work. This could be useful since I'm having way too many plugins! :)

jazde86 04-03-2006 09:50 PM

Help me, please!

Quote:

Invalid SQL:

SELECT p.*, po.`order` FROM trillian_pluginorder AS po
JOIN plugin AS p ON(p.pluginid = po.pluginid)
ORDER BY p.hookname, po.order;

MySQL-Fehler : Table 'trillian_forum.trillian_pluginorder' doesn't exist
Oh no, my forum is down. What can I do? Its urgent! Thanks for your help.

hambil 04-03-2006 09:54 PM

First, disable the product so your forum isn't down.

hambil 04-03-2006 09:58 PM

Quote:

Invalid SQL:

SELECT p.*, po.`order` FROM trillian_pluginorder AS po
JOIN plugin AS p ON(p.pluginid = po.pluginid)
ORDER BY p.hookname, po.order;

MySQL-Fehler : Table 'trillian_forum.trillian_pluginorder' doesn't exist
It sounds like the table didn't get created for some reason when you installed. Can you look at the database and verify if the table 'pluginorder' exists?

jazde86 04-03-2006 10:08 PM

Cool, thanks for your reply.

In my database trillian_forum exists the table trillian_pluginorder

I've disabled the product and the plugin, but nothing has changed. :(


All times are GMT. The time now is 01:11 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.01089 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)pagenav_pagelink
  • (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