The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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:
|
#2
|
||||
|
||||
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:
|
#3
|
|||
|
|||
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:
|
#4
|
||||
|
||||
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. |
#5
|
|||
|
|||
Quote:
|
#6
|
|||
|
|||
Quote:
Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|