View Full Version : BBCode include
troyuncucom
06-02-2011, 10:54 AM
Hello;
How can i use include(php) for BBcode?
<?php include("http://xxx.com/{param}.txt") ?>
it's not work :o
asdfadrian
06-02-2011, 02:49 PM
You will need to do that through hooks and variables. BBcode are template only and does nothing on the server-side. So you will need to include the proper hook as well as the include to define the txt file. Then call it with the defined variable in your template.
Unless I am wrong and your page is not a custom vbulletin page but your own php/html?
BirdOPrey5
06-05-2011, 02:39 PM
You cannot include php or template conditionals in BB Codes.
You cannot include php in templates.
If you want to use PHP you will need to write a plugin. You can make a plugin on the hook postbit_diplay_complete or the bbcode parser hooks to make something that works like a bbcode but isn't a real bbcode.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.