The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Plug in
Before it is mentioned - I realise how seriously unsecure this is but I will take the necessary precautions.
I was hoping to create a plug in using the bbcode_fetch_tags which parses PHP script in the bbcode tags. I wanted to use this for such pranks like [phpparsecode]echo "$_SERVER['REMOTE_ADDR']"[/phpparsecode] I realise a lot of you probably feel like this is pointless or whatever but i'd like to create this. How would I go about creating the bbcode tags and hooking it to the plug in? |
#2
|
||||
|
||||
The example will not work with the standard BB code system, as posts are fully parsed, then cached for X amount of time. You are better off doing an eval() at a plugin at postbit_display_complete.
I can't stress enough how dangerous this is! |
#3
|
|||
|
|||
Does the eval() function parse the PHP as it is displayed? Thus displaying all PHP codes as it is parsed?
Also, how would I call the input using eval(), I am not familiar with vBulletin's global variables. |
#4
|
||||
|
||||
<a href="http://www.php.net/manual/en/function.eval.php" target="_blank">http://www.php.net/manual/en/function.eval.php</a>
|
#5
|
|||
|
|||
I have tried reading and understanding the use of eval(), with no success.
Could anyone help me implement this into my vBulletin? |
#6
|
||||
|
||||
Honestly, if you don't understand how PHP (or specifically eval()) does work you should not code such an Add-on (in fact nobody should anyway).
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|