Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin 3 Articles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[How to] Install Plug-ins/Hooks
Brad
Join Date: Nov 2001
Posts: 4,765

 

Show Printable Version Email this Page Subscription
Brad Brad is offline 06-06-2005, 10:00 PM

This is a basic guide to installing plug-in's via the admin cp written for newbies

[high]What you should have[/high]

All plug-in's require one thing, a .xml that contains the plug-in name, php code, and hook location. In most cases this file will be named plugin_name.xml but some authors may not change the file name and use the default vbulletin-plugins.xml filename.

Some plug-in's may require you to run SQL queries on the database before you can use them, you can find instructions on how to do this in Logician's "How to install a vBulletin Hack" thread found here: https://vborg.vbsupport.ru/showthread.php?t=39142

[high]Installing the Plug-in[/high]

This is a very simple process, browse to the download/upload plug-in's page in your admin cp (located at http://www.yoururl.com/forum/admincp...n.php?do=files)

See the first attachment for a picture of the page I'm talking about

In the "Import Plugin Definitions XML File" table locate the "EITHER upload the XML file from your computer" columns and click on the browse button. A new window will pop up, locate the plug-in.xml file on your hard-drive and select it. Click the 'Import' button. Your plug-in is now active.

If the .xml file is large and you are worried about php time outs you can upload it to the /xml/ folder in your forum root, then insert the correct filename/path in the "OR import the XML file from your server" column.

Next thing you will want to do is browse to the plug-in manager page (located at http://www.yoururl.com/forum/admincp....php?do=modify) and make sure your newly added plug-in's are active.

See second attachment for a pic.

I almost forgot, if your plug-in's are set up correctly but not working make sure you have the global vBoption for the plug-in system set to enabled. You can find this option in the admin cp by browsing to vBoptions -> Select Plugin/Hook System from menu -> Set Enable Plugin/Hook System to yes.

That is all it is to it!
Attached Images
File Type: jpg ht_plugdown.JPG (51.2 KB, 0 views)
File Type: jpg ht_manage.JPG (26.4 KB, 0 views)
Reply With Quote
  #2  
Old 06-10-2005, 03:49 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you ever face major problems with your plugins and can't get into AdminCP to disable them:

Place
PHP Code:
define('DISABLE_HOOKS'1); 
in config.php.

This will disable the whole plugins system, no matter what the ACP setting is.
Reply With Quote
  #3  
Old 06-10-2005, 03:52 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This actually exists ? - only it appeared as a suggestion on vb.com a few minutes ago ???
Reply With Quote
  #4  
Old 06-10-2005, 03:54 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, that was my fault - I didn't read the files carefully enough
Reply With Quote
  #5  
Old 06-10-2005, 05:24 PM
southernlady's Avatar
southernlady southernlady is offline
 
Join Date: May 2005
Posts: 213
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What about the Hook Location part? Where does that fit in? Liz
Reply With Quote
  #6  
Old 07-09-2005, 01:59 PM
Borimikan Borimikan is offline
 
Join Date: Apr 2005
Location: Brooklyn, NY
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was trying to find the Pluging/hook on my AdminCP, but I do notr have it.. Im running 3.0.7.. Do i need to do something?
Reply With Quote
  #7  
Old 07-09-2005, 05:41 PM
xxskullxx xxskullxx is offline
 
Join Date: Jun 2002
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It only exists in 3.5
Reply With Quote
  #8  
Old 07-13-2005, 09:00 AM
TitanKing TitanKing is offline
 
Join Date: Mar 2005
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea this is one of the major changes VB 3.5.0 offers...
Reply With Quote
  #9  
Old 09-11-2005, 10:32 PM
WNxWakko's Avatar
WNxWakko WNxWakko is offline
 
Join Date: Apr 2003
Location: Paradise, Texas
Posts: 309
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am wondering, do upgrades partially wipeout plugins or are plugins pretty much safe from having to fix it to work on the next upgrade?
Reply With Quote
  #10  
Old 09-11-2005, 10:33 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As long as Hooks aren't removed/necessary Objects/Variables for the Plugins changed they will continue to work just fine.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:18 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04285 seconds
  • Memory Usage 2,310KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete