The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I looked around for answer and didn't see one so figured I'd ask.
I've updated my vbulletin postbit template to include a custom html link under a username next to their post easy enough. What I want to do is calculate a count value from non-VB tables and have that number appear next to the link. I know the php code to make this happen but I have no idea where to put it. Any ideas? Thanks! Dan |
#2
|
||||
|
||||
![]()
you would need to put it in a plugin, at a hook near where you want the code to fire.
probably in the hook postbit_start ..... maybe postbit_complete. im not sure of which one exactly, but you can always change it if it doesnt work. Go to your Plugins & Products > Plugin Manager > Add New Plugin - Stick your code in there. |
#3
|
|||
|
|||
![]()
Thx, I'll give that a go and see what happens.
--------------- Added [DATE]1236787619[/DATE] at [TIME]1236787619[/TIME] --------------- Followup: I created the plugin in postbit_start and called it Collection Numbers. What code do I put in the template postbit to make the plugin appear? --------------- Added [DATE]1236788910[/DATE] at [TIME]1236788910[/TIME] --------------- Followup: I created the plugin in postbit_start and called it collection. What code do I put in the template postbit to make the plugin appear? |
#4
|
|||
|
|||
![]()
Within the plugin you would need to store any data that you want to appear in a php variable such as $myvariable, and then you would need to edit the template, in this case postbit, and place that variable name wherever you want the data to show up at.
|
#5
|
||||
|
||||
![]()
what he said
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|