![]() |
adding new bbcode
could someone tell me how to do it.
i should just be able to add the new function, add to the tag_list, throw in a new template and voila. however i'm not sure where the hook is for the functions (and i'm hoping that's what's causing me all the errors i'm getting because i am getting a few). |
*bump*
|
What are you trying to add? I did a few, seemed to be easy.
|
Hehe, i also don't have a clue what he is asking. :d
|
i want to add a bbcode via the class because of the fact it requires back-end processing, however in the old version.
i'd simply find each instance of the quote being created and add my relative code underneath that, however with the new plugin system that's not quite possible. so i'm wondering how i'd add bbcode. i've added the taglist stuff, now i've just gotta add the function but not sure what hook to use for that. |
In the custom BB code area, you can set the BBcode var, and the html to use for that var. you use {param} as the var in the html. Example:
Code:
[test]Testvar[/test] |
the version require php processing
PHP Code:
but i still need to find the hook for the function PHP Code:
|
*bump*
anyone have a solution for this yet? I also need to add a bbcode tag that has a callback the problem is that the vbcode parser calls $this->$callback(...) I don't want to edit the original file for this hack |
You can define it as a user function (which youll need to call using a calling function) in the _start hook for the class. (i think)
|
Ah figured it out
PHP Code:
|
Ok, I think I get as much so far on this topic, but for some reason none of my added codes are being parsed. I'm using the bbcode_create hook for a bbcode plugin, here's my xml:
PHP Code:
|
*bump*
Maybe someone has link to a thread or other resource on how to add a custom BB Code which needs PHP processing on the backend? |
Hi!
I am also interested in more information! Best Regards, Jan Jaap |
for the life of me i couldn't figure out where to define the function so i ended up hardcoding it.
|
All times are GMT. The time now is 04:00 AM. |
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:
|