The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I would like to have a custom BBcode that returns the results of a query.
For example - I have a list of songs in an external database. I would like to be able to have a tag - [music]Girls[/music] - query a database and return the number of songs that have the words Girls in the title. It would display Girls - (10) where 10 is the results of the query. Where would the hook fire? How would I capture or scan the post? Mark |
#2
|
|||
|
|||
![]()
I know this is old but I'd like to know the same thing and I can't find anything helpful with extensive searching. I just know it's possible and that I need to mod the class_bbcode.php file. The reference (which gave no details) said it was easy but I've been staring at the file for 2 days and I'm not sure where to add my query.
the custom bbcode I want to use would be something like [cite=inline]45[/cite], where "inline" is the type of citation and "45" is the id number of the record to be cited. |
#3
|
||||
|
||||
![]()
You'll need to write some code to do that. You can look at the hook location bbcode_create and see what needs to be done. Dismounted has helped a couple of users do this, so you can search on some posts by him.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|