The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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). |
#2
|
||||
|
||||
*bump*
|
#3
|
|||
|
|||
What are you trying to add? I did a few, seemed to be easy.
|
#4
|
|||
|
|||
Hehe, i also don't have a clue what he is asking. :d
|
#5
|
||||
|
||||
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. |
#6
|
|||
|
|||
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] In the ACP, your html would be <a href='http://www.domain.com/user/{param}'>My Profile</a> Then when the code is used, it will return <a href='http://www.domain.com/user/Testvar'>My Profile</a> |
#7
|
||||
|
||||
the version require php processing
PHP Code:
but i still need to find the hook for the function PHP Code:
|
#8
|
||||
|
||||
*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 |
#9
|
|||
|
|||
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)
|
#10
|
||||
|
||||
Ah figured it out
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|