The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
need help making my 1st simple plugin
hello ,
I want to add a custom field in the postbit. To get the data I need to run an sql query on table reputation. The result of the query will be an interger (i.e count). So how do i register a template variable in php and access that in template code ? What must be the necessary files to be included to make the plugin ? -Regards , Power_user_EX |
#2
|
||||
|
||||
Cellarius wrote a really good article that you may be interested in - [vB4] Rendering templates and registering variables - a short guide
Are you sure you need to actually run an individual query for each postbit (that's 20 extra queries per page) instead of just hooking into an existing query for $post? |
#3
|
|||
|
|||
Thx Lynne... for the link Will go through it asap. Also do you know ny article which mentions what all info is present in $post and to access the same.
|
#4
|
||||
|
||||
If you go to the showthread.php file, you'll see the query that will create the $post variable around line 943.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|