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)
-   -   Execution Order Installer -> Stops Errors when installing 3.6.x Pluggins & Products (https://vborg.vbsupport.ru/showthread.php?t=134603)

Quarterbore 12-21-2006 10:00 PM

Execution Order Installer -> Stops Errors when installing 3.6.x Pluggins & Products
 
Background:

I am almost ashamed to submit what is likely the smallest product ever released here on vBulletin.org. I created this very simple product file as I am about to release a major addition to vBulletin and because I wrote the script in 3.6.x. it was not going to be installable in 3.5.x. forums.

Now, there was nothing in my plugins or code that would make this not work in 3.5.x. forums other then the fact that my 3.6.x forums added the execution order to all of my plugins.

So, What does this do?

This will add a single field to your 3.5.x forums "plugin" table. This field is used in 3.6.x forums to allow 3.6.x forums to assign a specific order for plugins attached to the same hook to be executed.

Now, as long as the hack you are installing does not use any special 3.6.x code, adding this program will allow you to install SOME 3.6.x plugins and products on your 3.5.x forums without error.

I have tested this on three separate 3.5.x forums of my own and installed plugins and products exported from 3.6.x and it worked fie for me. Feedback is welcomed and again, I am embarrassed to have uploaded the smallest Product file to ever have been uploaded!

UPDATES
23-Dec-2006 8:00PM EST - Uploaded new product file that includes UNINSTALL code!

23-Dec-2006 9:15PM EST - Removed the uninstall code per advise having code to remove the execution order may do more harm then not having it in the code.

Ziki 12-22-2006 07:32 PM

LOL :D

(Outta words)

Kungfu 12-23-2006 03:52 AM

whatever gets the job done right.

Shazz 12-23-2006 04:11 AM

Smallest plugin made in history -.-

Kirk Y 12-23-2006 04:57 AM

Size doesn't matter. :)

Good idea, though.

PoetJA-1975 12-23-2006 07:32 AM

tehehehe - sounds nice actually... But why not just instruct 3.5.x users like myself to comment out the execution code??? LOL - also records have to be made for something = Congrats on the modification ;)

Jacquii.

ps - just curious... What's the "major addition" modification going to be - Sounds kinda exciting :P

Milad 12-23-2006 07:52 AM

What may it occur if one upgrade his 3.5 forum to 3.6?
he will face a MySQL error 'field already exists'.

Kungfu 12-23-2006 04:58 PM

Quote:

Originally Posted by PoetJA-1975 (Post 1143877)
tehehehe - sounds nice actually... But why not just instruct 3.5.x users like myself to comment out the execution code??? LOL - also records have to be made for something = Congrats on the modification ;)

Jacquii.

ps - just curious... What's the "major addition" modification going to be - Sounds kinda exciting :P

He took over sr_classifieds and basically reworked it and came out with a new product.

He has a few other gadgets hes going release too probably, but this is basically what its for is vbclassifieds.

Quote:

Originally Posted by Milad (Post 1143885)
What may it occur if one upgrade his 3.5 forum to 3.6?
he will face a MySQL error 'field already exists'.

It shouldnt, because it wont try to create it unless it doesnt exist or it shouldnt at least. Basically if you were to upgrade it would skip that step.

Quarterbore 12-23-2006 05:02 PM

Quote:

Originally Posted by Milad (Post 1143885)
What may it occur if one upgrade his 3.5 forum to 3.6?
he will face a MySQL error 'field already exists'.

If that happens, just delete the field. I should have included an uninstall code and I will get that added to the product file when I get a chance tonight.

As for the product, I call it vbclassified and the link is in my sig.

Quarterbore 12-23-2006 11:00 PM

Product is updated to include the uninstall code. This was tested on two of my sites (3.5.3. and 3.5.5. forums).

I have also posted directions on how to add the uninstall code if you already have added the product file.

Enjoy!


All times are GMT. The time now is 04: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.01134 seconds
  • Memory Usage 1,736KB
  • 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
  • (3)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