The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#4
|
|||
|
|||
![]()
Well first let's start off with a simple plugin so you know the basics.
Let's create a plugin that'll display an easter egg if you type in "index.php?chris777" Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <product productid="chris777_easteregg" active="1"> <title>Easter Egg</title> <description>Will show an easter egg</description> <version>1.0.0</version> <codes> </codes> <templates> </templates> <plugins> <plugin active="1"> <title>Easter Egg</title> <hookname>forumhome_complete</hookname> <phpcode><![CDATA[ if($_REQUEST['do'] == "chris777") { $easter_egg = "Easter Egg Here"; } ]]> </phpcode> </plugin> </plugins> <phrases> </phrases> <options> </options> </product> Above $header Add $easter_egg<br /><br /> Let's take a closer look of why it works. PHP Code:
The reason why you assign the text to a variable is so you can place it into a template, otherwise the text doesn't know where to go, I suppose. I'm sorry but I'm not good at explaining how things work. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|