The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How Best to Code This?
I have been trying to figure out how to code something and hope I can get some guidance on where things should go and how they should be treated.
Basically I need someone who can say "this should be in X file and that should be a new plugin and yada yada" Here goes: I need to add a button to showthread on posts for users of a particular secondary usergroup. This button will make an AJAX call to update a new table. Normally I would place the code for this added button into Postbit, but here's the rub - the button should only appear under conditions which are more complex than the secondary usergroup membership and as such are not covered by vB variables. If I need to create a new variable that will be available to postbit and it contains information for each post in a thread (maybe an array?) where should the query go that gets that information and where should the variable be declared? The information used to determine the existence of this button all exists in a new table. I can store thread id and user id and post id in the new table for every instance of where a button should go, but I need to know where to place the query such that when viewthread is called it can be aware (and make <if> conditional branches in postbit) of what posts need the button. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|