vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Plugins - how they work (https://vborg.vbsupport.ru/showthread.php?t=280720)

Jon12345 03-27-2012 12:40 PM

Plugins - how they work
 
When I add a plugin to my board, do they modify the templates? Is this normally permanent or do they uninstall cleanly?

I'm curious because I like the idea of testing some plugins but not if they are a one way street!

Thanks,

Jon

vbenhancer 03-27-2012 12:45 PM

plugins are not editing the templates that are stored in the database, they are editing the cached content that will be displayed to the visitor only... so it is safe to use a plugin that add things to the screen.

Jon12345 03-27-2012 12:48 PM

Are plugins and products the same thing? Newbie questions I know!

vbenhancer 03-27-2012 01:09 PM

plugins are wrapped into product files... you can have multiple plugins into one product file... the product name identify the bundle...

Jon12345 03-27-2012 01:15 PM

Ok, that makes sense. So they hierachy is Products>(potneially) multiple plugins

That brings up a rather important question for me. Since the plugins are showing cached content, does that mean when I go to customize a template, the plugin may overide that code and therefore ignoring my modifications or additional html/javascript?

BirdOPrey5 03-27-2012 01:43 PM

Plugins and templates work together to create the page being viewed. I think of plugins kind of as the "back end" and templates more of the "front end."

If a plugin looks for specific data on a template that it will modify (called an automatic template edit) then editing the template and altering that data could well prevent the plugin from working as intended.

If the plugin relies on a template hook to display data on a template then remove the hook would prevent the plugin from working.

But in most cases editing a template does not affect the plugins.

Jon12345 03-27-2012 02:19 PM

Great explanation and a big thank you. This helps because I want to edit the register.php page, but I will probably use a plugin so that the DOB/rules/details are all on one page, rather than spread over 3. At least I know that if I test a plugin, it won't permanently alter the register.php template in case I need to revert back.

BirdOPrey5 03-27-2012 04:16 PM

That's right, you can always disable a plugin and any changes will be undone on the next page load.

On the other hand you can also always "Revert" a template back to the VB stock version thereby undoing any changes made to it as well.

And as a last ditch scenario if somehow you made a plugin preventing you from logging into the admin cp- you can disable all plugins via config.php file as described here:

https://www.vbulletin.com/forum/show...ystem-globally

Jon12345 03-27-2012 04:22 PM

Good advice - thanks BidOPrey5!


All times are GMT. The time now is 11:25 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.01581 seconds
  • Memory Usage 1,723KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete