![]() |
what's the difference between plug-in, hook and hack-in?
I was reading this : https://vborg.vbsupport.ru/showthread.php?t=82625
and found a few things that messed up my understanding and also fixed my other confusion but since there's new confusion, I want to know that difference before I choose the wrong path in case I get a larger forum. Quote:
|
Quote:
Usually a plugin is the actually code your write and it 'plugs into' a hook in the code. If you look at an actual hook in the code, it looks like this: PHP Code:
|
Quote:
And could you explain in brief what's happening in this? What do these do? This ".=" and the dots in between? I can't find a good place from eval explanation. Tried w3schools, any suggestion? PHP Code:
|
Do not edit the XML file directly. Create and edit plugins/templates in the Admin CP, and when you're done, export the XML. This prevents structural errors.
The ".=" you are talking about is the concatenation operator (I dare you to say it!) in PHP. It is used to append content onto the end of a variable, etc. As for eval(), anything in between its parentheses is executed as PHP code. See the PHP Manual. |
Quote:
|
Quote:
Quote:
|
All times are GMT. The time now is 04:18 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|