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 04-07-2006 04:54 PM

Quote:

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

Thanks

It seems to be :)

jazde86 04-11-2006 09:39 AM

Sorry, but the plugin makes a lot of trouble. When there are "0" in a field, then other plugins doesn't work anymore, example for that ist the "Who has visited today"-Plugin. The same with "The threadprefix"-Plugin.

I deactivated it.

hambil 04-11-2006 11:52 AM

Quote:

Originally Posted by jazde86
Sorry, but the plugin makes a lot of trouble. When there are "0" in a field, then other plugins doesn't work anymore, example for that ist the "Who has visited today"-Plugin. The same with "The threadprefix"-Plugin.

I deactivated it.

Hmmmm. Could you be more specific? I tried installing two plugins in the same hook and setting the order of one to "0" and it worked fine.

jazde86 04-11-2006 12:34 PM

Plugin "Members who have visited the forum":

cache_templates -> Members who have visited (1) -> Order "0" The Plugin doesn't shown on forumhome, switch to "1" and ahh, there is it. ;)

forumhome_start -> Members who have visited (2)


Other Plugins in cache_templates:
  • Post Thank You Hack
  • Top 'X' Stats by InfiniteWebby
  • vB Pager 3.0.4
  • VBGooglemap by StonyArc

robert_2004 04-20-2006 01:41 PM

i can't get the 'plugin order' showing up in my adminCP's left menu pane.

hambil 04-20-2006 02:27 PM

Quote:

Originally Posted by robert_2004
i can't get the 'plugin order' showing up in my adminCP's left menu pane.

Hmmm. You've uploaded all the files? There is an xml file for the cpnav that has to be uploaded.

robert_2004 04-20-2006 04:09 PM

there are no files to upload on this thread mate. only the xml product.

hambil 04-20-2006 04:29 PM

Quote:

Originally Posted by robert_2004
there are no files to upload on this thread mate. only the xml product.

Well, that's a problem. Now I'm wondering what the other people who install this are doing...

Give me a few minutes and I'll fix that and replace with a zip.

Logician 05-14-2006 08:45 AM

Edit : Hambil fixed the problem below in his pluggin. Thanks!


This hack causes serious problems if your board has table prefixes. If it is installed in a board where tables are prefixed, the board start producing DB errors and it won't even allow you to access admin cp and disable product. So if you dont know what you are doing, you'll get stuck in a very bad position.

Problem & Fix:

This query in the pluggin is problematic:

PHP Code:

SELECT p.*, po.`orderFROM " . TABLE_PREFIX . "pluginorder AS po
JOIN plugin 
AS p ON(p.pluginid po.pluginid)
ORDER BY p.hooknamepo.order 

It should be:
PHP Code:

SELECT p.*, po.`orderFROM " . TABLE_PREFIX . "pluginorder AS po
LEFT JOIN 
" . TABLE_PREFIX . "plugin AS p ON(p.pluginid po.pluginid)
ORDER BY p.hooknamepo.order 

If you installed the hack and stuck with an DB error and you can't even access admin cp here is the fix for you:

Edit includes/init.php, find:
PHP Code:

if ($vbulletin->options['enablehooks'] OR defined('FORCE_HOOKS')) 

Before that add:
PHP Code:

$vbulletin->options['enablehooks'] = FALSE

Upload init.php.

This will cure DB error and now you can login to admin cp. Go to products and uninstall the product. Now delete the line you edit to init.php, reupload init.php and you are done.

@hambil : Sorry to post this into your thread and I appreciate your sharing your work with other vb members but I feel obligated to post this so that people won't get into trouble. It maybe a good idea to apply the fix I provided to your pluggin. Sorry again!

Boofo 05-14-2006 08:55 AM

An easier way is to add a disable hooks line to the config.php. That way you could comment it out and use it again if you had to. ;)

PHP Code:

define('DISABLE_HOOKS'true); 



All times are GMT. The time now is 02:03 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.01298 seconds
  • Memory Usage 1,753KB
  • 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
  • (5)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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