The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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
![]() |
#4
|
||||
|
||||
![]()
If you go to the showthread.php file, you'll see the query that will create the $post variable around line 943.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|