![]() |
Custom BBcode to display template
I've got a problem I've been working on for the past few days to no avail. I wanted to give it a shot myself before taking the easy way out and just posting here.
I'm trying to create a new custom bbcode that will display the contents of a template when it's called. I tried to edit the class_bbcode.php file and add it in there but I couldn't seem to get it to work. I somewhat copied a few of the existing codes and modified them but in the end the template would never display even though I didn't get any errors. This is what I tried: Added the following after the // [QUOTE] code on line 2171 of class_bbcode.php Code:
// [RIBBONS] Code:
function handle_bbcode_ribbons($ribbontext) Any ideas what i'm missing/forgetting? EDIT/UPDATE: Okay, my code above actually works. It was the template I was calling that had the problem as it relies on another set of plugins to operate. I answered my own question, but it seems others were looking to do something similar so this may help. |
All times are GMT. The time now is 07:14 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:
|