![]() |
Custom BBcode that returns query results
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 |
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. |
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.
|
All times are GMT. The time now is 07:02 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:
|