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. :(

hambil 04-03-2006 10:11 PM

You've disabled the product and you're still getting an error? Have you tried uninstalling it?

jazde86 04-03-2006 10:16 PM

New Error:

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.plugin' doesn't exist
I don't come into the AdminCP to uninstall it, only the database is my my tool to work. The table plugin doesn't exist, thats correct because the correct name of the table is trillian_plugin at database trillian_forum.

Your Product creates the table TABLE_PREFIX . "pluginorder and the problem the problem is with the path. Can it helps disabeling all products and plugins or adapt the path in your product/plugin?

hambil 04-03-2006 10:37 PM

Ah yes. That's a nasty bug. I'll fix and upload right away. Thanks.

jazde86 04-03-2006 10:40 PM

Thank you, thank you, thank you. :) I hope that then everything is well. ;)

hambil 04-03-2006 10:42 PM

Quote:

Originally Posted by jazde86
Thank you, thank you, thank you. :) I hope that then everything is well. ;)

You're welcome. Updated and ready for download again. Let me know if it solves the problem please :)

jazde86 04-03-2006 10:56 PM

Hmm...

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.plugin' doesn't exist

hambil 04-03-2006 10:59 PM

Quote:

Originally Posted by jazde86
Hmm...

Make sure you click 'allow overwrite', or better yet uninstall before you install the new one.

jazde86 04-03-2006 11:08 PM

How can I install it with MySQL? Uninstallation is done by cleaning.

hambil 04-03-2006 11:10 PM

Quote:

Originally Posted by jazde86
How can I install it with MySQL? Uninstallation is done by cleaning.

You don't have admincp access?

jazde86 04-03-2006 11:12 PM

No :(, thats my problem. Look at forum.trillian-deutsch.de :confused:

Your help is wonderful. :cool:

why there still is the error, although I deleted your plugin?

hambil 04-03-2006 11:15 PM

If you remove the plugin from the plugin table, and you remove the plugin cache from the datastore table, you should have access to your admin cp again. That is, if my plugin is the problem anyway.

jazde86 04-03-2006 11:26 PM

Oh yeah, very nice. Cool, I love you. ;) Great tip and now I'm really happy. :D

hambil 04-03-2006 11:27 PM

Quote:

Originally Posted by jazde86
Oh yeah, very nice. Cool, I love you. ;) Great tip and now I'm really happy. :D

Glad it worked. Now did the re-install work, or are you afraid to try now? LOL

jazde86 04-03-2006 11:40 PM

Navbar in AdminCP is damaged.
Quote:

Warnung: array_keys(): The first argument should be an array in /includes/adminfunctions_navpanel.php (Zeile 147)

Warnung: implode(): Bad arguments. in /includes/adminfunctions_navpanel.php (Zeile 147)

Warnung: Invalid argument supplied for foreach() in /includes/adminfunctions_navpanel.php (Zeile 150)
And Shoutbox on index lost.

hambil 04-04-2006 12:52 AM

Goto your plugin manager in the admincp, don't change anything, but just click on 'save active status'. That should rebuild the plugin datastore.

jazde86 04-04-2006 07:59 AM

I've in my AdminCP no navbar and don't know the directlink to do it. In ModCP the navigation is ok. Argh, I've done, the navibar is there - but there is only the profilefields in postbit. :(

To many things deletet yesterday in the datastore-Database?!? :(

hambil 04-04-2006 12:32 PM

Quote:

Originally Posted by jazde86
I've in my AdminCP no navbar and don't know the directlink to do it. In ModCP the navigation is ok. Argh, I've done, the navibar is there - but there is only the profilefields in postbit. :(

To many things deletet yesterday in the datastore-Database?!? :(

Maybe. The url is yourdomain/admincp/plugin.php?do=modify

jazde86 04-04-2006 12:38 PM

So is it, thx. Menu is very empty now... :-\

hambil 04-04-2006 12:45 PM

Quote:

Originally Posted by jazde86
So is it, thx. Menu is very empty now... :-\

What menu?

jazde86 04-04-2006 12:49 PM

My Menu (Navigationsbar) in AdminCP, there is now only the field for profilefields in postbits.

hambil 04-04-2006 12:52 PM

What exactly did you delete from the datastore?

jazde86 04-04-2006 01:03 PM

In datastore
  1. products - last line
  2. pluginlist - many lines on the end
  3. pluginlistadmin - many lines on the end

In plugins
  • 2x vbPluginOrder

Delete Table pluginorder

hambil 04-04-2006 01:10 PM

Okay. First, before doing anything else, backup your database. Then, try setting pluginlist and pluginlistadmin to blank, instead of editing them, and then go to the plugin page in admincp and click "update active" like before.

jazde86 04-04-2006 01:23 PM

I cleaned the two things, but nothing has changed yet.

My last backup is from 2006-03-29 22-28... I've asked my webhoster for backup - waiting, waiting, waiting. The rest of my forum is ok.

hambil 04-04-2006 03:14 PM

One little bug, so much trouble... sorry mate.

jazde86 04-04-2006 03:20 PM

Do you have any idea to activate the full menu? Original files to admincp changed nothing.

One bug, everything broken . :( :( :(

hambil 04-04-2006 04:34 PM

Well, it's not the files then, it's the database. Did you get the database restored?

jazde86 04-04-2006 05:05 PM

Yeah, all is ok now! :banana:

I've started a new test forum, installed the products in the same order and copied the data from pluginlist and pluginlistadmin to my database. The cache is the bad thing, I think. Well done and thanks for your great work here.

I'll install your product soon as possible. I'm not so afraid. ;) :D

hambil 04-04-2006 05:06 PM

Okay. Let me think. I have a couple of ideas still.

luroca 04-07-2006 03:14 PM

This can be a very useful hack. I click install for future use :)
Is it working ok now?

Thanks


All times are GMT. The time now is 05:52 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.01326 seconds
  • Memory Usage 1,816KB
  • 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
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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